text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">The expected behavior (like other browser behave) is</p>
<ul dir="auto">
<li>Reloading does not creates history items</li>
<li>redirects does not creates history items</li>
</ul>
<p dir="auto">In atom shell:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<webview id="foo" src="http://www.github.com/" style="width:640px; height:480px"></webview>
<script>
var webview = document.getElementById("foo");
// wait for page being loaded
webview.canGoBack(); // returns false
webview.reload();
// wait for page being loaded
webview.canGoBack(); // returns true but should returns false
</script>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">webview</span> <span class="pl-c1">id</span>="<span class="pl-s">foo</span>" <span class="pl-c1">src</span>="<span class="pl-s">http://www.github.com/</span>" <span class="pl-c1">style</span>="<span class="pl-s">width:640px; height:480px</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">webview</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-k">var</span> <span class="pl-s1">webview</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"foo"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// wait for page being loaded</span>
<span class="pl-s1">webview</span><span class="pl-kos">.</span><span class="pl-en">canGoBack</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// returns false </span>
<span class="pl-s1">webview</span><span class="pl-kos">.</span><span class="pl-en">reload</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// wait for page being loaded</span>
<span class="pl-s1">webview</span><span class="pl-kos">.</span><span class="pl-en">canGoBack</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// returns true but should returns false</span>
<span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span></pre></div> | <p dir="auto">When atom-shell is initially loaded <code class="notranslate">window.history.back()</code> works correctly doing nothing. After a refresh, problems arise calling <code class="notranslate">window.history.back()</code>. It appears that history for a <code class="notranslate">BrowserWindow</code> is not persisted across a refresh as is the case in the Chrome browser and other issues come into play.</p>
<p dir="auto">So steps to repro are, refresh and <code class="notranslate">window.history.back()</code>, if the browser is navigated anywhere several calls to <code class="notranslate">window.history.back()</code> will cause the same behavior after a refresh.</p>
<p dir="auto">I am using the <code class="notranslate">v0.21.1</code> release version of <code class="notranslate">atom-shell</code>.</p> | 1 |
<p dir="auto">Now that universal Webpack (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="288925622" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/3578" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/3578/hovercard" href="https://github.com/vercel/next.js/pull/3578">#3578</a>) is released, there's a great opportunity to streamline custom servers using Next. Having the ability to write in a consistent syntax (whether ES6+ or TypeScript) between client and server code would greatly benefit the developer experience. I find it sort of awkward that a custom server entry point <a href="https://github.com/zeit/next.js#custom-server-and-routing">has to remain compatible with whatever your current version of Node is.</a> I created a <a href="https://gitlab.com/smidgen-studio/next-custom-server" rel="nofollow">work-around as a Next plugin</a>, but I find it hacky and awkward. I can't imagine it would be too much work to build a server bundle separately from the client bundle. What can I do to help this along?</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When I run <code class="notranslate">next dev</code> or <code class="notranslate">next start</code>, my custom server is bundled via Webpack and served, enabling consistent syntax across the client and custom server code.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">A custom server is started using <code class="notranslate">node ./path/to/server.js</code>, so Webpack never touches it.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I usually write in TypeScript, so bundling Next custom server code through Webpack would enforce consistent syntax in my code base and eliminate my dependency on ESLint or Babel.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>^5.0.0</td>
</tr>
<tr>
<td>node</td>
<td>8.7.0</td>
</tr>
<tr>
<td>OS</td>
<td>macOS 10.13.3</td>
</tr>
<tr>
<td>browser</td>
<td>Firefox 58.0.2</td>
</tr>
<tr>
<td>etc</td>
<td>N/A</td>
</tr>
</tbody>
</table> | <h1 dir="auto">Examples bug report</h1>
<h2 dir="auto">Example name</h2>
<p dir="auto">with-<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-css">next-css</a></p>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">Impossible to go from one page which doesn't contain an imported css file to a one containing an imported css file</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository: <a href="https://github.com/MarchWorks/with-next-css-issue">https://github.com/MarchWorks/with-next-css-issue</a></p>
<ol dir="auto">
<li>Go to 'index page'</li>
<li>Click on 'About'</li>
<li>See error</li>
</ol>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>Version of Next.js: 8.1.0</li>
</ul> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open PT Run</li>
<li>Type an application name</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Only correct and working result were shown.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">A not working result of the type "search:" will be shown.</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/61519853/82364027-022e5800-9a0f-11ea-9c02-fbdb60cc6afa.png"><img src="https://user-images.githubusercontent.com/61519853/82364027-022e5800-9a0f-11ea-9c02-fbdb60cc6afa.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Hi all</p>
<p dir="auto">For some reason Launcher duplicates items on the list. It shows the application in the search list but also it duplicates that same application by showing .lnk file from the menu start folder for the same app. Please see the screenshot below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/53837030/82354452-1bc8a300-9a01-11ea-8a0d-b69c828e0fb3.png"><img src="https://user-images.githubusercontent.com/53837030/82354452-1bc8a300-9a01-11ea-8a0d-b69c828e0fb3.png" alt="Annotation 2020-05-19 184232" style="max-width: 100%;"></a></p>
<p dir="auto">Do you think it is a bug. Perhaps we could exlude .lnk file in future updates as an option?</p> | 1 |
<p dir="auto">I just installed CUDA 9.2 and CUDANN and Tensor Flow on Windows 10. I'm using Anaconda 3.6 Python.</p>
<p dir="auto">Here is a trace that I get when I try to import tensor flow. It's telling me it can't load a dll but its is not telling me which one. Can you help.</p>
<p dir="auto">Here is a directory listing of the CUDA dlls in my path and the trace.</p>
<p dir="auto">******************** Directory Listing ************************</p>
<p dir="auto">PS C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin> dir</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Directory: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin"><pre class="notranslate"><code class="notranslate">Directory: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin
</code></pre></div>
<p dir="auto">Mode LastWriteTime Length Name</p>
<hr>
<p dir="auto">d----- 7/5/2018 8:32 PM crt<br>
-a---- 4/12/2018 1:20 AM 202752 bin2c.exe<br>
-a---- 4/12/2018 1:21 AM 54600704 cublas64_92.dll<br>
-a---- 4/12/2018 1:20 AM 370176 cuda-memcheck.exe<br>
-a---- 4/12/2018 1:20 AM 4092416 cudafe++.exe<br>
-a---- 4/12/2018 1:21 AM 299008 cudart32_92.dll<br>
-a---- 4/12/2018 1:21 AM 368128 cudart64_90.dll<br>
-a---- 4/12/2018 1:21 AM 368128 cudart64_92.dll<br>
-a---- 7/5/2018 10:17 PM 336443392 cudnn64_7.dll<br>
-a---- 4/12/2018 1:21 AM 87017472 cufft64_92.dll<br>
-a---- 4/12/2018 1:21 AM 197632 cufftw64_92.dll<br>
-a---- 4/12/2018 1:21 AM 3692032 cuinj32_92.dll<br>
-a---- 4/12/2018 1:21 AM 4625408 cuinj64_92.dll<br>
-a---- 4/12/2018 1:20 AM 1695744 cuobjdump.exe<br>
-a---- 4/12/2018 1:21 AM 47990784 curand64_92.dll<br>
-a---- 4/12/2018 1:21 AM 114172416 cusolver64_92.dll<br>
-a---- 4/12/2018 1:21 AM 65776128 cusparse64_92.dll<br>
-a---- 4/12/2018 1:20 AM 284672 fatbinary.exe<br>
-a---- 4/12/2018 1:20 AM 1306112 gpu-library-advisor.exe<br>
-a---- 4/12/2018 1:21 AM 203264 nppc64_92.dll<br>
-a---- 4/12/2018 1:21 AM 10174464 nppial64_92.dll<br>
-a---- 4/12/2018 1:21 AM 3985920 nppicc64_92.dll<br>
-a---- 4/12/2018 1:21 AM 1010688 nppicom64_92.dll<br>
-a---- 4/12/2018 1:21 AM 6928896 nppidei64_92.dll<br>
-a---- 4/12/2018 1:21 AM 51902976 nppif64_92.dll<br>
-a---- 4/12/2018 1:21 AM 25260032 nppig64_92.dll<br>
-a---- 4/12/2018 1:21 AM 6574592 nppim64_92.dll<br>
-a---- 4/12/2018 1:21 AM 15030272 nppist64_92.dll<br>
-a---- 4/12/2018 1:21 AM 177152 nppisu64_92.dll<br>
-a---- 4/12/2018 1:21 AM 2621440 nppitc64_92.dll<br>
-a---- 4/12/2018 1:21 AM <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/8543232720cf8231e5a214cf5fafd17c206584e6/hovercard" href="https://github.com/tensorflow/tensorflow/commit/8543232720cf8231e5a214cf5fafd17c206584e6"><tt>8543232</tt></a> npps64_92.dll<br>
-a---- 4/12/2018 1:20 AM 241152 nvblas64_92.dll<br>
-a---- 4/12/2018 1:20 AM 379904 nvcc.exe<br>
-a---- 4/12/2018 1:20 AM 310 nvcc.profile<br>
-a---- 4/12/2018 1:20 AM 18156032 nvdisasm.exe<br>
-a---- 4/12/2018 1:21 AM 66096128 nvgraph64_92.dll<br>
-a---- 4/12/2018 1:20 AM 7804928 nvlink.exe<br>
-a---- 4/12/2018 1:20 AM 4115968 nvprof.exe<br>
-a---- 4/12/2018 1:20 AM 220160 nvprune.exe<br>
-a---- 4/12/2018 1:20 AM 3213312 nvrtc-builtins64_92.dll<br>
-a---- 4/12/2018 1:20 AM 15532544 nvrtc64_92.dll<br>
-a---- 4/12/2018 1:20 AM 53 nvvp.bat<br>
-a---- 4/12/2018 1:20 AM 7686144 ptxas.exe</p>
<p dir="auto">******************** Python Output ************************</p>
<p dir="auto">PS C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin> python<br>
Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32<br>
Type "help", "copyright", "credits" or "license" for more information.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">import tensorflow as tf<br>
Traceback (most recent call last):<br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in <br>
<em>pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in swig_import_helper<br>
return importlib.import_module(mname)<br>
File "C:\Program Files\Anaconda3\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
ImportError: DLL load failed: The specified module could not be found.</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow<br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br>
raise ImportError(msg)<br>
ImportError: Traceback (most recent call last):<br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in <br>
<em>pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in swig_import_helper<br>
return importlib.import_module(mname)<br>
File "C:\Program Files\Anaconda3\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
ImportError: DLL load failed: The specified module could not be found.</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/install_sources#common_installation_problems" rel="nofollow">https://www.tensorflow.org/install/install_sources#common_installation_problems</a></p>
<p dir="auto">for some common reasons and solutions. Include the entire stack trace<br>
above this error message when asking for help.</p>
<blockquote>
<blockquote>
<blockquote>
</blockquote>
</blockquote>
</blockquote> | <p dir="auto">As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:</p>
<ul dir="auto">
<li><code class="notranslate">ImportError: DLL load failed:</code></li>
<li>A crash with return code 132</li>
</ul>
<p dir="auto">Our recommendation is to build TF from sources on these systems.</p>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: ubuntu/windows/macos</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.6 and up</li>
<li><strong>Python version</strong>: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer</li>
<li><strong>Bazel version (if compiling from source)</strong>: n/a</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li>
<li><strong>CUDA/cuDNN version</strong>: any</li>
<li><strong>GPU model and memory</strong>: any</li>
<li><strong>Exact command to reproduce</strong>: python -c "import tensorflow as tf"</li>
</ul> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ansible-vault</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Feb 11 2017, 12:22:40) [GCC 6.3.1 20170109]"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Feb 11 2017, 12:22:40) [GCC 6.3.1 20170109]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">None</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Ansible vault no longer writes to stdout correctly.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ echo secret | ansible-vault encrypt --vault-password-file=~/.vault_password_file --output=-"><pre class="notranslate">$ <span class="pl-c1">echo</span> secret <span class="pl-k">|</span> ansible-vault encrypt --vault-password-file=<span class="pl-k">~</span>/.vault_password_file --output=-</pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ANSIBLE_VAULT;1.1;AES256
37633461343236623465393564643231623135316432653433333663653262336633356261393433
6135343866303138623931303030343635616331393664650a663233383839356430623338376332
61666238356539323562373538376133626265363234343264633565666332646331366130363766
6533353966343463340a623562366464383334663066376461366536633764393761643635656261
3736
Encryption successful"><pre class="notranslate"><code class="notranslate">$ANSIBLE_VAULT;1.1;AES256
37633461343236623465393564643231623135316432653433333663653262336633356261393433
6135343866303138623931303030343635616331393664650a663233383839356430623338376332
61666238356539323562373538376133626265363234343264633565666332646331366130363766
6533353966343463340a623562366464383334663066376461366536633764393761643635656261
3736
Encryption successful
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR! [Errno 2] No such file or directory: '/home/notroot/-'"><pre class="notranslate"><code class="notranslate">ERROR! [Errno 2] No such file or directory: '/home/notroot/-'
</code></pre></div> | <p dir="auto">I have this in my task file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Check if we already have an openvpn key file
stat: "path='/etc/openvpn/{{ vpn_domain }}.conf'"
register: openvpn_config
- include: "openvpn-genkey.yml"
when: openvpn_config.stat.exists == False"><pre class="notranslate"><code class="notranslate">- name: Check if we already have an openvpn key file
stat: "path='/etc/openvpn/{{ vpn_domain }}.conf'"
register: openvpn_config
- include: "openvpn-genkey.yml"
when: openvpn_config.stat.exists == False
</code></pre></div>
<p dir="auto">However, I see this output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="time ansible-playbook --forks=20 timeboxes.yml --limit guardhome1 --tag timeagent
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [guardhome1 -> localhost]
TASK [common : include] ********************************************************
included: user.yml for guardhome1
TASK [common : include] ********************************************************
included: apt.yml for guardhome1
... MORE OUTPUT HERE ...
TASK [timebox : include] *******************************************************
fatal: [guardhome1]: FAILED! => {"failed": true, "msg": "ERROR! The conditional check 'openvpn_config.stat.exists == False' failed. The error was: ERROR! error while evaluating conditional: openvpn_config.stat.exists == False ({% if openvpn_config.stat.exists == False %} True {% else %} False {% endif %})"}
PLAY RECAP *********************************************************************
guardhome1 : ok=19 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">time ansible-playbook --forks=20 timeboxes.yml --limit guardhome1 --tag timeagent
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [guardhome1 -> localhost]
TASK [common : include] ********************************************************
included: user.yml for guardhome1
TASK [common : include] ********************************************************
included: apt.yml for guardhome1
... MORE OUTPUT HERE ...
TASK [timebox : include] *******************************************************
fatal: [guardhome1]: FAILED! => {"failed": true, "msg": "ERROR! The conditional check 'openvpn_config.stat.exists == False' failed. The error was: ERROR! error while evaluating conditional: openvpn_config.stat.exists == False ({% if openvpn_config.stat.exists == False %} True {% else %} False {% endif %})"}
PLAY RECAP *********************************************************************
guardhome1 : ok=19 changed=0 unreachable=0 failed=1
</code></pre></div>
<p dir="auto">I'm using latest Ansible from git.</p> | 0 |
<h3 dir="auto">Proposed new feature or change:</h3>
<p dir="auto">Currently we can use <code class="notranslate">median()</code> and <code class="notranslate">nanmedian()</code> to calculate the median of an array along an axis, and we can compute other basic statistical metrics similarly. However, there are no methods to calculate the modes of an array directly.</p>
<p dir="auto">I would suggest adding the method <code class="notranslate">mode()</code>, which returns an array of modes, and <code class="notranslate">nanmode()</code>, which does the same but ignoring <code class="notranslate">NaN</code>s. They would work in the same fashion as <code class="notranslate">median()</code> and <code class="notranslate">nanmedian()</code>, and I reckon that they would be useful even to applications that are not related to statistics.</p>
<p dir="auto">I would appreciate any suggestions or constructive criticism</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/681" rel="nofollow">http://projects.scipy.org/numpy/ticket/681</a> on 2008-03-10 by trac user eilifmuller, assigned to unknown.</em></p>
<p dir="auto">numpy.random performance is weak compared to matlab.</p>
<p dir="auto">The AMD Core Math Library (ACML) provides fast random number generator functions for use with AMD64 architectures, and it would be nice to somehow incorporate these into numpy.random.</p>
<p dir="auto">Attached is a simple implementation of some of the basic functions of numpy.random using ACML. The performance is superior to matlab rand,randn.</p> | 0 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/style-text-inputs-as-form-controls" rel="nofollow">Style Text Inputs as Form Controls</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
</style>
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>
</div>
</div>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-ent">h2</span> {
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace;
}
.<span class="pl-c1">thick-green-border</span> {
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> green;
<span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
<span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-8</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">img-responsive thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-running-cats</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive</span>" <span class="pl-c1">alt</span>="<span class="pl-s">Three kittens running towards the camera. </span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-primary</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-thumbs-up</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</span><span class="pl-kos">></span> Like<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-info</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-info-circle</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</span><span class="pl-kos">></span> Info<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-danger</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-trash</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</span><span class="pl-kos">></span> Delete<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats <span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">text-danger</span>"<span class="pl-kos">></span>love:<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">></span> Indoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">></span> Outdoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Loving<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Lazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-4</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Crazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">></span>Submit<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">form</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | <p dir="auto">In all the exercises, we the users are forced to press the enter key before writing any code.</p>
<hr>
<h4 dir="auto">Update:</h4>
<p dir="auto">We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.</p>
<p dir="auto">The fix can be confirmed on the beta website.</p>
<p dir="auto">The workaround currently on production website is:<br>
Press the <kbd>Enter</kbd> key on the challenge editor and then proceed with the challenge.</p>
<p dir="auto">Apologies for the inconvenience meanwhile.</p>
<p dir="auto">Reach us in the chat room if you need any assistance.</p> | 1 |
<p dir="auto">Julia 0.5 will ship with a versioned <code class="notranslate">libjulia.so.0.5</code> that is installed system-wide for embedding by other programs. The standard library however is still installed to an unversioned path, which is inconsistent and creates a conflict when different versions of <code class="notranslate">libjulia.so.$(SOMAJOR)</code> are installed on a system, since these will depend on different versions of the standard library.</p>
<p dir="auto">Therefore <code class="notranslate">base</code> and <code class="notranslate">test</code> should be installed to a versioned path <code class="notranslate">$(prefix)/share/julia/$(SOMAJOR)</code>.</p>
<p dir="auto">Likewise, <code class="notranslate">juliarc.jl</code> should be installed to <code class="notranslate">$(prefix)/etc/julia/$(SOMAJOR)</code>.</p>
<p dir="auto">This also affects the private libdir, <code class="notranslate">$(prefix)/lib/$(MULTIARCH)/julia/$(SOMAJOR)</code>.</p> | <p dir="auto">Most people seemed to agree with the basic improvements I <a href="https://groups.google.com/forum/#!msg/julia-dev/Z6GsLURuIZE/AmxBLNsz60MJ" rel="nofollow">suggested on the mailing list</a> in order for Julia to play nicely with the Unix <a href="http://www.pathname.com/fhs/" rel="nofollow">FHS</a> as well as with external (non-Pkg) packagers like Linux distributions. See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9055084" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/1692" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/1692/hovercard" href="https://github.com/JuliaLang/julia/issues/1692">#1692</a>.</p>
<p dir="auto">The main changes that are needed are:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Put standard places in the <code class="notranslate">LOAD_PATH</code> for non-Pkg code. <em>Done in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="11930003" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/2550" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/2550/hovercard" href="https://github.com/JuliaLang/julia/pull/2550">#2550</a></em></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> On Unix, there should be places for code installation under both <code class="notranslate">/usr/share</code> and <code class="notranslate">/usr/local/share</code> according to the FHS (the former for system packagers, i.e. distros, and the latter for local installations from source etc.) <em>Done in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="11930003" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/2550" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/2550/hovercard" href="https://github.com/JuliaLang/julia/pull/2550">#2550</a></em></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The Julia version (major.minor only) should be a part of the path so that different Julia versions can co-exist. That is, install everything under <code class="notranslate">/usr/share/julia/0.1</code>, not under <code class="notranslate">/usr/share/julia</code> directly.</li>
</ul>
<p dir="auto">These kinds of path choices need to be made ASAP, in my opinion; the longer you wait, the more disruptive it gets to make this kind of change.</p>
<p dir="auto">The first two points require only a trivial patch (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10969848" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/2296" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/2296/hovercard" href="https://github.com/JuliaLang/julia/pull/2296">#2296</a>): modify <code class="notranslate">base/client.jl</code> to define <code class="notranslate">LOAD_PATH</code> as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="global const LOAD_PATH = ByteString[
".", # TODO: should we really look here?
abspath(Pkg.dir()),
abspath(JULIA_HOME,"..","share","julia","extras"),
abspath(JULIA_HOME,"..","local","share","julia","lib"),
abspath(JULIA_HOME,"..","share","julia","lib"),
]"><pre class="notranslate"><code class="notranslate">global const LOAD_PATH = ByteString[
".", # TODO: should we really look here?
abspath(Pkg.dir()),
abspath(JULIA_HOME,"..","share","julia","extras"),
abspath(JULIA_HOME,"..","local","share","julia","lib"),
abspath(JULIA_HOME,"..","share","julia","lib"),
]
</code></pre></div>
<p dir="auto">Change (<em>update</em>: changed from <code class="notranslate">nonpkg</code>) <code class="notranslate">lib</code> to whatever directory name you prefer. (<code class="notranslate">external</code>, <code class="notranslate">site</code>, ...?)</p>
<p dir="auto">The third point requires a bit more invasive patch to the <code class="notranslate">Makefile</code> etcetera in order to update the installation paths. (You might also consider installing <code class="notranslate">julia</code> as <code class="notranslate">julia</code><em>major.minor</em>, e.g. <code class="notranslate">julia0.1</code>, with <code class="notranslate">julia</code> being a symlink, similar to Python.) I looked through the <code class="notranslate">src/</code> directory, but I couldn't find where <code class="notranslate">jl_load("boot.jl")</code> looks to find <code class="notranslate">boot.jl</code>, but that would need to be changed too.</p>
<p dir="auto">(Possibly the /usr/local/share path should be <code class="notranslate">@unix_only</code>, but it seems harmless to include it on Windows too.)</p> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [版本 10.0.18362.418]
Windows Terminal version (if applicable): 0.5.2762.0
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [版本 10.0.18362.418]
Windows Terminal version (if applicable): 0.5.2762.0
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Unclear, but I unlocked the screen and switched to terminal from another application to find this happening.</p>
<p dir="auto">Update:<br>
When I resize the window from maximized to normal the body is shown.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">A full window is shown.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Only the tab bar is shown and the main body is transparent.</p>
<p dir="auto">When focused:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3133289/66929043-f176c780-f064-11e9-97e4-4c5a86cbd70e.png"><img src="https://user-images.githubusercontent.com/3133289/66929043-f176c780-f064-11e9-97e4-4c5a86cbd70e.png" alt="screenshot-20191016222658" style="max-width: 100%;"></a></p>
<p dir="auto">Application switcher view:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3133289/66929044-f3d92180-f064-11e9-8bb3-32b4a4f125af.png"><img src="https://user-images.githubusercontent.com/3133289/66929044-f3d92180-f064-11e9-8bb3-32b4a4f125af.png" alt="screenshot-20191016223158" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<p dir="auto">I don't have sure. My cmd is not opening.<br>
Windows build number: [run <code class="notranslate">[Environment]::OSVersion</code> for powershell, or <code class="notranslate">ver</code> for cmd]<br>
Windows Terminal version (if applicable):</p>
<p dir="auto">Any other software?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
# Steps to reproduce
<!-- A description of how to trigger this bug. -->
# Expected behavior
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
I've tried to activate the bash into Windows. I followed some instructions to activate the Windows feature "Windows Subsystem for Linux" (https://www.laptopmag.com/articles/use-bash-shell-windows-10). After that, when I tried to run bash, my terminal window quickly opened and just after closed, without ask me nothing.
# Actual behavior
<!-- What's actually happening? -->
My bash installation was not conclude, and now neither my terminal is working. When I try to open CMD, my terminal is completely on back screen..
"><pre class="notranslate"><code class="notranslate">
# Steps to reproduce
<!-- A description of how to trigger this bug. -->
# Expected behavior
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
I've tried to activate the bash into Windows. I followed some instructions to activate the Windows feature "Windows Subsystem for Linux" (https://www.laptopmag.com/articles/use-bash-shell-windows-10). After that, when I tried to run bash, my terminal window quickly opened and just after closed, without ask me nothing.
# Actual behavior
<!-- What's actually happening? -->
My bash installation was not conclude, and now neither my terminal is working. When I try to open CMD, my terminal is completely on back screen..

</code></pre></div> | 0 |
<ul dir="auto">
<li>[√] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li>[√] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.5 and 2.7.6</li>
<li>Operating System version: windows 10</li>
<li>Java version: 1.8.0_151</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li><code class="notranslate">apollo.bootstrap.enabled=true</code> and make sure 'dubbo' is removed from <code class="notranslate">apollo.bootstrap.namespaces</code> (I know dubbo has ability to load from Apollo's namespace 'dubbo' by default)</li>
<li>Define a bean <code class="notranslate">ConfigCenterConfig</code> (It will fail with 'No registry config found or it's not a valid config'). We ignore it now, so define a <code class="notranslate">ConfigCenterBean</code> which is a real Spring style bean. And <code class="notranslate">configManager</code> in <code class="notranslate">DubboBootstrap</code> will find it.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration
public class DubboConfig {
@Bean
public ConfigCenterBean configCenter() {
ConfigCenterBean configCenterBean = new ConfigCenterBean();
configCenterBean.setAddress("apollo.yourcompany.com");
configCenterBean.setProtocol("apollo");
configCenterBean.setNamespace("dubbo");
// configCenterBean.setIncludeSpringEnv(true);
configCenterBean .setGroup(null); // I don't want appConfigContent(DubboBootstrap.java:821)
return configCenterBean ;
}
}"><pre class="notranslate"><code class="notranslate">@Configuration
public class DubboConfig {
@Bean
public ConfigCenterBean configCenter() {
ConfigCenterBean configCenterBean = new ConfigCenterBean();
configCenterBean.setAddress("apollo.yourcompany.com");
configCenterBean.setProtocol("apollo");
configCenterBean.setNamespace("dubbo");
// configCenterBean.setIncludeSpringEnv(true);
configCenterBean .setGroup(null); // I don't want appConfigContent(DubboBootstrap.java:821)
return configCenterBean ;
}
}
</code></pre></div>
<ol start="3" dir="auto">
<li>Start application</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">I don't think DubboBootstrap should load from ConfigCenter using Application name.<br>
<code class="notranslate">appConfigContent = dynamicConfiguration.getProperties ... </code> should not be executed.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">The <code class="notranslate">DubboBootstrap</code> just force to load from ConfigCenter, it doesn't allow property set by<br>
configCenterConfig, even <code class="notranslate">dubbo.application.name</code> is set in Apollo's dubbo namespace.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="String appGroup = getApplication().getName();"><pre class="notranslate"><code class="notranslate">String appGroup = getApplication().getName();
</code></pre></div>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<p dir="auto"><em>Realtime-Compute-Server is spring.application.name</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARN 17952 --- [ main] c.c.f.a.i.RemoteConfigRepository : Load config failed, will retry in 1 SECONDS. appId: realtime-compute, cluster: default, namespaces: Realtime-Compute-Server.properties"><pre class="notranslate"><code class="notranslate">WARN 17952 --- [ main] c.c.f.a.i.RemoteConfigRepository : Load config failed, will retry in 1 SECONDS. appId: realtime-compute, cluster: default, namespaces: Realtime-Compute-Server.properties
</code></pre></div>
<p dir="auto">soon later:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.UnsupportedOperationException: No support
at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.publishConfig(DynamicConfiguration.java:155)
at org.apache.dubbo.common.config.configcenter.wrapper.CompositeDynamicConfiguration.publishConfig(CompositeDynamicConfiguration.java:72)
at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.lambda$map$0(DynamicConfigurationServiceNameMapping.java:59)
at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.execute(DynamicConfigurationServiceNameMapping.java:92)
at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.map(DynamicConfigurationServiceNameMapping.java:58)"><pre class="notranslate"><code class="notranslate">java.lang.UnsupportedOperationException: No support
at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.publishConfig(DynamicConfiguration.java:155)
at org.apache.dubbo.common.config.configcenter.wrapper.CompositeDynamicConfiguration.publishConfig(CompositeDynamicConfiguration.java:72)
at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.lambda$map$0(DynamicConfigurationServiceNameMapping.java:59)
at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.execute(DynamicConfigurationServiceNameMapping.java:92)
at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.map(DynamicConfigurationServiceNameMapping.java:58)
</code></pre></div>
<hr>
<p dir="auto">SPLIT LINE</p>
<hr>
<p dir="auto">Here is my thought:</p>
<ol dir="auto">
<li>DubboBootstrap should using group defined in ConfigCenterBean or <code class="notranslate">configContent</code> from configFile to load some app individual config.</li>
<li>If my first way of using configCenter config is correct, why UnsupportedOperationException is thrown.</li>
<li>If some of maintainers approve my idea, I'm pleased to submit a PR.</li>
</ol> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.5</li>
<li>Operating System version: win7</li>
<li>Java version: jdk1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>执行status -l 命令</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">之前的版本是可以取到threadpool的信息</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">现在缺少了threadpool的信息</p> | 0 |
<p dir="auto">The error print</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: the following command failed with exit code 0 but produced no further output
CompileC /Users/paco/Library/Developer/Xcode/DerivedData/Runner-bidthradlmamepejziapbzsplvkm/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/armv7/main.o /Users/paco/Workspaces/flutterapp/ios/Runner/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
error: open /Users/paco/Workspaces/flutterapp/build/ios/Debug-iphoneos/Runner.app/Frameworks/Flutter.framework/Flutter: Permission denied
note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the precompiled application for the device."><pre class="notranslate"><code class="notranslate">error: the following command failed with exit code 0 but produced no further output
CompileC /Users/paco/Library/Developer/Xcode/DerivedData/Runner-bidthradlmamepejziapbzsplvkm/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/armv7/main.o /Users/paco/Workspaces/flutterapp/ios/Runner/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
error: open /Users/paco/Workspaces/flutterapp/build/ios/Debug-iphoneos/Runner.app/Frameworks/Flutter.framework/Flutter: Permission denied
note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the precompiled application for the device.
</code></pre></div> | <p dir="auto">The following code in a drawer control causes dispose to be called after the initState function.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" new ListTile(
leading: new Icon(FontAwesomeIcons.newspaper),
title: new Text("News Feed"),
onTap: () { // Navigator.pop(context);
while (Navigator.of(context).canPop())
Navigator.of(context).pop();
Navigator.of(context).pushReplacementNamed('/news'); }
),"><pre class="notranslate"> <span class="pl-k">new</span> <span class="pl-c1">ListTile</span>(
leading<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">FontAwesomeIcons</span>.newspaper),
title<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">"News Feed"</span>),
onTap<span class="pl-k">:</span> () { <span class="pl-c">// Navigator.pop(context); </span>
<span class="pl-k">while</span> (<span class="pl-c1">Navigator</span>.<span class="pl-en">of</span>(context).<span class="pl-en">canPop</span>())
<span class="pl-c1">Navigator</span>.<span class="pl-en">of</span>(context).<span class="pl-en">pop</span>();
<span class="pl-c1">Navigator</span>.<span class="pl-en">of</span>(context).<span class="pl-en">pushReplacementNamed</span>(<span class="pl-s">'/news'</span>); }
),</pre></div>
<p dir="auto">The problem that I'm trying to solve with this code is that I'm trying to get the drawer control to work properly when I change screens. Without the while loop with the canPop function flutter just stacks the windows on top of each other and the drawer function behaves in an erratic manner. However, when I pop the screens to the top level so that I can then call the new route. dispose is getting called after the initState function on the very Screen that I just loaded.</p>
<ol dir="auto">
<li>... create a drawer control with a set of the above code as a set of options.</li>
<li>... Page screen must have a dispose function and an initState function.</li>
<li>... create an object that must be run when the initState is run and unset when the dispose function is run.</li>
</ol>
<p dir="auto">This will cause the widget to not function properly.</p>
<h2 dir="auto">Logs</h2>
<p dir="auto">There is no error message. The functions are just getting called in the wrong order.</p>
<p dir="auto">flutter analyze<br>
Analyzing loyality...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" info • Unused import: 'package:loyality/MainScreen.dart' • lib/AddItemSuccess.dart:2:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/AddItemSuccess.dart:20:12 • non_constant_identifier_names
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/AddItemSuccess.dart:23:10 • must_call_super
info • Unused import: 'dart:convert' • lib/CompanyDirectory.dart:11:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:28:22 • non_constant_identifier_names
info • Close instances of `dart.core.Sink` • lib/CompanyDirectory.dart:39:40 • close_sinks
info • Cancel instances of dart.async.StreamSubscription • lib/CompanyDirectory.dart:44:28 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/CompanyDirectory.dart:44:28 • unused_field
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:233:23 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:299:23 • non_constant_identifier_names
info • The value of the local variable 'response' isn't used • lib/CompanyDirectory.dart:348:23 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:396:53 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:396:70 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:396:81 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:417:39 • non_constant_identifier_names
info • The value of the local variable 'response' isn't used • lib/CompanyDirectory.dart:419:23 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:444:40 • non_constant_identifier_names
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:446:23 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:480:21 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:539:19 • unused_local_variable
info • Avoid using braces in interpolation when not needed • lib/CompanyDirectory.dart:547:63 • unnecessary_brace_in_string_interps
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:566:19 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:593:19 • unused_local_variable
info • Unused import: 'package:loyality/Services/AppServices.dart' • lib/CreateAccount.dart:3:8 • unused_import
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/CreateAccount.dart:31:8 • must_call_super
info • Unused import: 'dart:convert' • lib/Home.dart:3:8 • unused_import
info • Unused import: 'dart:io' • lib/Home.dart:5:8 • unused_import
info • Cancel instances of dart.async.StreamSubscription • lib/Home.dart:28:24 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/Home.dart:28:24 • unused_field
info • Name non-constant identifiers using lowerCamelCase • lib/Home.dart:169:35 • non_constant_identifier_names
info • The value of the local variable 'response' isn't used • lib/Home.dart:171:17 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/Home.dart:197:38 • non_constant_identifier_names
info • The value of the local variable 'response' isn't used • lib/Home.dart:199:17 • unused_local_variable
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Home.dart:225:5 • missing_return
info • The value of the local variable 'dialog' isn't used • lib/Home.dart:291:15 • unused_local_variable
info • Avoid using braces in interpolation when not needed • lib/Home.dart:299:59 • unnecessary_brace_in_string_interps
info • The value of the local variable 'dialog' isn't used • lib/Home.dart:317:15 • unused_local_variable
info • Avoid using braces in interpolation when not needed • lib/Home.dart:325:61 • unnecessary_brace_in_string_interps
info • The value of the local variable 'dialog' isn't used • lib/Home.dart:343:15 • unused_local_variable
info • Avoid using braces in interpolation when not needed • lib/Home.dart:351:65 • unnecessary_brace_in_string_interps
info • Unused import: 'dart:typed_data' • lib/LoadGiftcardAmounts.dart:3:8 • unused_import
info • Unused import: 'dart:io' • lib/LoadGiftcardAmounts.dart:4:8 • unused_import
info • Close instances of `dart.core.Sink` • lib/LoadGiftcardAmounts.dart:28:49 • close_sinks
info • The value of the field '_organizationId' isn't used • lib/Locations.dart:31:14 • unused_field
warning • Element 'Image' from SDK library 'ui.dart' is implicitly hidden by 'image.dart' • lib/Locations.dart:118:29 • conflicting_dart_import
warning • Element 'TextStyle' from SDK library 'ui.dart' is implicitly hidden by 'text_style.dart' • lib/Locations.dart:120:63 • conflicting_dart_import
info • 'child' is deprecated and shouldn't be used • lib/Locations.dart:239:30 • deprecated_member_use
info • 'child' is deprecated and shouldn't be used • lib/Locations.dart:260:32 • deprecated_member_use
info • The value of the local variable 'iconImage' isn't used • lib/Locations.dart:342:30 • unused_local_variable
warning • Element 'Image' from SDK library 'ui.dart' is implicitly hidden by 'image.dart' • lib/Locations.dart:342:42 • conflicting_dart_import
info • The value of the local variable 'marker' isn't used • lib/Locations.dart:349:27 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/Login.dart:160:13 • non_constant_identifier_names
info • The value of the field '_isPressed' isn't used • lib/NewsFeed.dart:26:12 • unused_field
info • This function has a return type of 'Widget', but doesn't end with a return statement • lib/NewsFeed.dart:137:7 • missing_return
info • Cancel instances of dart.async.StreamSubscription • lib/NewsFeed.dart:194:24 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/NewsFeed.dart:194:24 • unused_field
info • The value of the field '_initialWidth' isn't used • lib/NewsFeed.dart:204:12 • unused_field
info • The value of the field '_state' isn't used • lib/NewsFeed.dart:208:9 • unused_field
info • The value of the local variable 'dialog' isn't used • lib/NewsFeed.dart:516:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/NewsFeed.dart:542:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/NewsFeed.dart:568:15 • unused_local_variable
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/PaymentPage.dart:27:14 • must_call_super
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/PaymentPage.dart:42:9 • missing_return
info • Unused import: 'dart:typed_data' • lib/PointsAccounts.dart:3:8 • unused_import
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/PointsAccounts.dart:204:5 • missing_return
info • Unused import: 'package:loyality/MainScreen.dart' • lib/Profile.dart:3:8 • unused_import
info • Unused import: 'package:loyality/Services/AppServices.dart' • lib/Profile.dart:5:8 • unused_import
info • Unused import: 'package:loyality/Services/LoginService.dart' • lib/Profile.dart:6:8 • unused_import
info • Unused import: 'dart:io' • lib/PurchaseItems.dart:4:8 • unused_import
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/PurchaseItems.dart:48:12 • must_call_super
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/PurchaseItems.dart:179:7 • missing_return
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/PurchaseItems.dart:188:7 • missing_return
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/QrCodeAdd.dart:161:7 • missing_return
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/QrCodeAdd.dart:172:7 • missing_return
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/RecipientEntry.dart:33:12 • must_call_super
info • Unused import: 'package:loyality/Util/Event.dart' • lib/Register.dart:4:8 • unused_import
info • Duplicate import • lib/Register.dart:5:8 • duplicate_import
info • Unused import: 'package:http/http.dart' • lib/Register.dart:6:8 • unused_import
info • The value of the local variable 'widgetList' isn't used • lib/Register.dart:56:22 • unused_local_variable
info • Unused import: 'dart:convert' • lib/SelectGiftcardTemplate.dart:4:8 • unused_import
info • Unused import: 'dart:io' • lib/SelectGiftcardTemplate.dart:6:8 • unused_import
info • Don't explicitly initialize variables to null • lib/SelectGiftcardTemplate.dart:31:15 • avoid_init_to_null
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/SelectGiftcardTemplate.dart:34:12 • must_call_super
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/SelectGiftcardTemplate.dart:88:7 • missing_return
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:10:52 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:13:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:38:14 • non_constant_identifier_names
info • Avoid return types on setters • lib/Services/AccountServices.dart:49:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:50:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:51:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:52:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:53:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:54:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:55:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:56:7 • avoid_return_types_on_setters
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:84:34 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:129:33 • non_constant_identifier_names
info • The value of the local variable 'error_output' isn't used • lib/Services/AccountServices.dart:129:33 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:142:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:178:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:215:23 • non_constant_identifier_names
info • Unused import: 'package:web_socket_channel/io.dart' • lib/Services/AppServices.dart:9:8 • unused_import
info • Unused import: 'package:web_socket_channel/status.dart' • lib/Services/AppServices.dart:10:8 • unused_import
info • Don't explicitly initialize variables to null • lib/Services/AppServices.dart:34:12 • avoid_init_to_null
info • 'READ' is deprecated and shouldn't be used • lib/Services/AppServices.dart:95:45 • deprecated_member_use
info • 'WRITE' is deprecated and shouldn't be used • lib/Services/AppServices.dart:119:63 • deprecated_member_use
info • Unused import: 'dart:io' • lib/Services/Countries.dart:1:8 • unused_import
info • Unused import: 'package:flutter/services.dart' • lib/Services/LoginService.dart:8:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/Services/LoginService.dart:13:25 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/LoginService.dart:15:14 • non_constant_identifier_names
info • 'READ' is deprecated and shouldn't be used • lib/Services/LoginService.dart:51:45 • deprecated_member_use
info • Await only futures • lib/Services/LoginService.dart:53:37 • await_only_futures
info • 'WRITE' is deprecated and shouldn't be used • lib/Services/LoginService.dart:85:34 • deprecated_member_use
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:11:15 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:12:15 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:14:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:15:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:16:15 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:17:15 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:18:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:19:14 • non_constant_identifier_names
info • Avoid wrapping fields in getters and setters just to be "safe" • lib/Services/NewsServices.dart:60:16 • unnecessary_getters_setters
info • Avoid return types on setters • lib/Services/NewsServices.dart:61:7 • avoid_return_types_on_setters
info • Avoid wrapping fields in getters and setters just to be "safe" • lib/Services/NewsServices.dart:61:16 • unnecessary_getters_setters
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:71:23 • non_constant_identifier_names
info • Duplicate import • lib/Services/OrganizationService.dart:7:8 • duplicate_import
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:11:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:12:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:13:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:14:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:16:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:17:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:18:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:33:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:43:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:44:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:74:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:75:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:76:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:97:23 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:97:118 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:138:23 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:138:118 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:182:23 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:218:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:224:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:224:39 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:229:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:234:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:234:41 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:239:14 • non_constant_identifier_names
info • Duplicate import • lib/Services/PurchaseServices.dart:8:8 • duplicate_import
info • Unused import: 'package:url_launcher/url_launcher.dart' • lib/Services/PurchaseServices.dart:10:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:15:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:18:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:19:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:20:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:21:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:22:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:147:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:181:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:217:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:251:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:313:20 • non_constant_identifier_names
info • Don't explicitly initialize variables to null • lib/Services/PurchaseServices.dart:319:17 • avoid_init_to_null
info • Unused import: 'dart:io' • lib/Services/WalletService.dart:1:8 • unused_import
info • Unused import: 'package:flutter/services.dart' • lib/Services/WalletService.dart:9:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:21:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:22:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:24:21 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:26:21 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:27:21 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:28:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:29:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:30:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:48:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:49:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:53:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:54:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:55:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:56:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:57:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:58:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:59:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:79:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:80:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:81:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:82:17 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:83:17 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:84:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:85:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:99:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:100:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:101:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:102:17 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:103:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:793:28 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:891:23 • non_constant_identifier_names
info • The value of the local variable 'loginInstance' isn't used • lib/Services/WalletService.dart:895:21 • unused_local_variable
info • Unused import: 'dart:io' • lib/Services/WebsocketServices.dart:1:8 • unused_import
info • Unused import: 'package:web_socket_channel/status.dart' • lib/Services/WebsocketServices.dart:6:8 • unused_import
info • Avoid wrapping fields in getters and setters just to be "safe" • lib/Services/WebsocketServices.dart:24:32 • unnecessary_getters_setters
info • Avoid wrapping fields in getters and setters just to be "safe" • lib/Services/WebsocketServices.dart:25:13 • unnecessary_getters_setters
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Services/WebsocketServices.dart:58:9 • missing_return
info • Cancel instances of dart.async.StreamSubscription • lib/Settings.dart:34:28 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/Settings.dart:34:28 • unused_field
info • The value of the local variable 'response' isn't used • lib/Settings.dart:218:21 • unused_local_variable
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Settings.dart:248:5 • missing_return
info • The value of the local variable 'dialog' isn't used • lib/Settings.dart:311:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/Settings.dart:336:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/Settings.dart:362:15 • unused_local_variable
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/StampCards.dart:229:7 • missing_return
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Vouchers.dart:210:5 • missing_return
info • Cancel instances of dart.async.StreamSubscription • lib/Wallet.dart:38:24 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/Wallet.dart:38:24 • unused_field
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Wallet.dart:197:9 • missing_return
info • The value of the local variable 'dialog' isn't used • lib/Wallet.dart:262:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/Wallet.dart:288:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/Wallet.dart:314:15 • unused_local_variable
info • Unused import: 'package:loyality/Services/WalletService.dart' • lib/main.dart:34:8 • unused_import
info • Unused import: 'package:web_socket_channel/io.dart' • lib/main.dart:37:8 • unused_import
info • Unused import: 'package:web_socket_channel/status.dart' • lib/main.dart:38:8 • unused_import
info • The value of the field '_platformVersion' isn't used • lib/main.dart:70:14 • unused_field
info • The value of the field '_startLocation' isn't used • lib/main.dart:76:27 • unused_field
info • The value of the field '_currentLocation' isn't used • lib/main.dart:77:27 • unused_field
info • Cancel instances of dart.async.StreamSubscription • lib/main.dart:80:47 • cancel_subscriptions
info • The value of the field '_locationSubscription' isn't used • lib/main.dart:80:47 • unused_field
info • The value of the field '_deviceData' isn't used • lib/main.dart:103:28 • unused_field
info • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) • lib/main.dart:426:7 • must_be_immutable"><pre class="notranslate"><code class="notranslate"> info • Unused import: 'package:loyality/MainScreen.dart' • lib/AddItemSuccess.dart:2:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/AddItemSuccess.dart:20:12 • non_constant_identifier_names
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/AddItemSuccess.dart:23:10 • must_call_super
info • Unused import: 'dart:convert' • lib/CompanyDirectory.dart:11:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:28:22 • non_constant_identifier_names
info • Close instances of `dart.core.Sink` • lib/CompanyDirectory.dart:39:40 • close_sinks
info • Cancel instances of dart.async.StreamSubscription • lib/CompanyDirectory.dart:44:28 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/CompanyDirectory.dart:44:28 • unused_field
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:233:23 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:299:23 • non_constant_identifier_names
info • The value of the local variable 'response' isn't used • lib/CompanyDirectory.dart:348:23 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:396:53 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:396:70 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:396:81 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:417:39 • non_constant_identifier_names
info • The value of the local variable 'response' isn't used • lib/CompanyDirectory.dart:419:23 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/CompanyDirectory.dart:444:40 • non_constant_identifier_names
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:446:23 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:480:21 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:539:19 • unused_local_variable
info • Avoid using braces in interpolation when not needed • lib/CompanyDirectory.dart:547:63 • unnecessary_brace_in_string_interps
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:566:19 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/CompanyDirectory.dart:593:19 • unused_local_variable
info • Unused import: 'package:loyality/Services/AppServices.dart' • lib/CreateAccount.dart:3:8 • unused_import
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/CreateAccount.dart:31:8 • must_call_super
info • Unused import: 'dart:convert' • lib/Home.dart:3:8 • unused_import
info • Unused import: 'dart:io' • lib/Home.dart:5:8 • unused_import
info • Cancel instances of dart.async.StreamSubscription • lib/Home.dart:28:24 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/Home.dart:28:24 • unused_field
info • Name non-constant identifiers using lowerCamelCase • lib/Home.dart:169:35 • non_constant_identifier_names
info • The value of the local variable 'response' isn't used • lib/Home.dart:171:17 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/Home.dart:197:38 • non_constant_identifier_names
info • The value of the local variable 'response' isn't used • lib/Home.dart:199:17 • unused_local_variable
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Home.dart:225:5 • missing_return
info • The value of the local variable 'dialog' isn't used • lib/Home.dart:291:15 • unused_local_variable
info • Avoid using braces in interpolation when not needed • lib/Home.dart:299:59 • unnecessary_brace_in_string_interps
info • The value of the local variable 'dialog' isn't used • lib/Home.dart:317:15 • unused_local_variable
info • Avoid using braces in interpolation when not needed • lib/Home.dart:325:61 • unnecessary_brace_in_string_interps
info • The value of the local variable 'dialog' isn't used • lib/Home.dart:343:15 • unused_local_variable
info • Avoid using braces in interpolation when not needed • lib/Home.dart:351:65 • unnecessary_brace_in_string_interps
info • Unused import: 'dart:typed_data' • lib/LoadGiftcardAmounts.dart:3:8 • unused_import
info • Unused import: 'dart:io' • lib/LoadGiftcardAmounts.dart:4:8 • unused_import
info • Close instances of `dart.core.Sink` • lib/LoadGiftcardAmounts.dart:28:49 • close_sinks
info • The value of the field '_organizationId' isn't used • lib/Locations.dart:31:14 • unused_field
warning • Element 'Image' from SDK library 'ui.dart' is implicitly hidden by 'image.dart' • lib/Locations.dart:118:29 • conflicting_dart_import
warning • Element 'TextStyle' from SDK library 'ui.dart' is implicitly hidden by 'text_style.dart' • lib/Locations.dart:120:63 • conflicting_dart_import
info • 'child' is deprecated and shouldn't be used • lib/Locations.dart:239:30 • deprecated_member_use
info • 'child' is deprecated and shouldn't be used • lib/Locations.dart:260:32 • deprecated_member_use
info • The value of the local variable 'iconImage' isn't used • lib/Locations.dart:342:30 • unused_local_variable
warning • Element 'Image' from SDK library 'ui.dart' is implicitly hidden by 'image.dart' • lib/Locations.dart:342:42 • conflicting_dart_import
info • The value of the local variable 'marker' isn't used • lib/Locations.dart:349:27 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/Login.dart:160:13 • non_constant_identifier_names
info • The value of the field '_isPressed' isn't used • lib/NewsFeed.dart:26:12 • unused_field
info • This function has a return type of 'Widget', but doesn't end with a return statement • lib/NewsFeed.dart:137:7 • missing_return
info • Cancel instances of dart.async.StreamSubscription • lib/NewsFeed.dart:194:24 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/NewsFeed.dart:194:24 • unused_field
info • The value of the field '_initialWidth' isn't used • lib/NewsFeed.dart:204:12 • unused_field
info • The value of the field '_state' isn't used • lib/NewsFeed.dart:208:9 • unused_field
info • The value of the local variable 'dialog' isn't used • lib/NewsFeed.dart:516:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/NewsFeed.dart:542:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/NewsFeed.dart:568:15 • unused_local_variable
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/PaymentPage.dart:27:14 • must_call_super
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/PaymentPage.dart:42:9 • missing_return
info • Unused import: 'dart:typed_data' • lib/PointsAccounts.dart:3:8 • unused_import
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/PointsAccounts.dart:204:5 • missing_return
info • Unused import: 'package:loyality/MainScreen.dart' • lib/Profile.dart:3:8 • unused_import
info • Unused import: 'package:loyality/Services/AppServices.dart' • lib/Profile.dart:5:8 • unused_import
info • Unused import: 'package:loyality/Services/LoginService.dart' • lib/Profile.dart:6:8 • unused_import
info • Unused import: 'dart:io' • lib/PurchaseItems.dart:4:8 • unused_import
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/PurchaseItems.dart:48:12 • must_call_super
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/PurchaseItems.dart:179:7 • missing_return
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/PurchaseItems.dart:188:7 • missing_return
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/QrCodeAdd.dart:161:7 • missing_return
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/QrCodeAdd.dart:172:7 • missing_return
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/RecipientEntry.dart:33:12 • must_call_super
info • Unused import: 'package:loyality/Util/Event.dart' • lib/Register.dart:4:8 • unused_import
info • Duplicate import • lib/Register.dart:5:8 • duplicate_import
info • Unused import: 'package:http/http.dart' • lib/Register.dart:6:8 • unused_import
info • The value of the local variable 'widgetList' isn't used • lib/Register.dart:56:22 • unused_local_variable
info • Unused import: 'dart:convert' • lib/SelectGiftcardTemplate.dart:4:8 • unused_import
info • Unused import: 'dart:io' • lib/SelectGiftcardTemplate.dart:6:8 • unused_import
info • Don't explicitly initialize variables to null • lib/SelectGiftcardTemplate.dart:31:15 • avoid_init_to_null
info • This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method • lib/SelectGiftcardTemplate.dart:34:12 • must_call_super
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/SelectGiftcardTemplate.dart:88:7 • missing_return
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:10:52 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:13:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:38:14 • non_constant_identifier_names
info • Avoid return types on setters • lib/Services/AccountServices.dart:49:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:50:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:51:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:52:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:53:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:54:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:55:7 • avoid_return_types_on_setters
info • Avoid return types on setters • lib/Services/AccountServices.dart:56:7 • avoid_return_types_on_setters
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:84:34 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:129:33 • non_constant_identifier_names
info • The value of the local variable 'error_output' isn't used • lib/Services/AccountServices.dart:129:33 • unused_local_variable
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:142:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:178:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/AccountServices.dart:215:23 • non_constant_identifier_names
info • Unused import: 'package:web_socket_channel/io.dart' • lib/Services/AppServices.dart:9:8 • unused_import
info • Unused import: 'package:web_socket_channel/status.dart' • lib/Services/AppServices.dart:10:8 • unused_import
info • Don't explicitly initialize variables to null • lib/Services/AppServices.dart:34:12 • avoid_init_to_null
info • 'READ' is deprecated and shouldn't be used • lib/Services/AppServices.dart:95:45 • deprecated_member_use
info • 'WRITE' is deprecated and shouldn't be used • lib/Services/AppServices.dart:119:63 • deprecated_member_use
info • Unused import: 'dart:io' • lib/Services/Countries.dart:1:8 • unused_import
info • Unused import: 'package:flutter/services.dart' • lib/Services/LoginService.dart:8:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/Services/LoginService.dart:13:25 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/LoginService.dart:15:14 • non_constant_identifier_names
info • 'READ' is deprecated and shouldn't be used • lib/Services/LoginService.dart:51:45 • deprecated_member_use
info • Await only futures • lib/Services/LoginService.dart:53:37 • await_only_futures
info • 'WRITE' is deprecated and shouldn't be used • lib/Services/LoginService.dart:85:34 • deprecated_member_use
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:11:15 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:12:15 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:14:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:15:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:16:15 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:17:15 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:18:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:19:14 • non_constant_identifier_names
info • Avoid wrapping fields in getters and setters just to be "safe" • lib/Services/NewsServices.dart:60:16 • unnecessary_getters_setters
info • Avoid return types on setters • lib/Services/NewsServices.dart:61:7 • avoid_return_types_on_setters
info • Avoid wrapping fields in getters and setters just to be "safe" • lib/Services/NewsServices.dart:61:16 • unnecessary_getters_setters
info • Name non-constant identifiers using lowerCamelCase • lib/Services/NewsServices.dart:71:23 • non_constant_identifier_names
info • Duplicate import • lib/Services/OrganizationService.dart:7:8 • duplicate_import
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:11:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:12:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:13:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:14:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:16:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:17:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:18:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:33:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:43:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:44:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:74:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:75:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:76:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:97:23 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:97:118 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:138:23 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:138:118 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:182:23 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:218:14 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:224:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:224:39 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:229:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:234:12 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:234:41 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/OrganizationService.dart:239:14 • non_constant_identifier_names
info • Duplicate import • lib/Services/PurchaseServices.dart:8:8 • duplicate_import
info • Unused import: 'package:url_launcher/url_launcher.dart' • lib/Services/PurchaseServices.dart:10:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:15:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:18:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:19:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:20:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:21:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:22:16 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:147:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:181:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:217:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:251:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/PurchaseServices.dart:313:20 • non_constant_identifier_names
info • Don't explicitly initialize variables to null • lib/Services/PurchaseServices.dart:319:17 • avoid_init_to_null
info • Unused import: 'dart:io' • lib/Services/WalletService.dart:1:8 • unused_import
info • Unused import: 'package:flutter/services.dart' • lib/Services/WalletService.dart:9:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:21:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:22:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:24:21 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:26:21 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:27:21 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:28:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:29:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:30:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:48:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:49:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:53:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:54:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:55:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:56:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:57:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:58:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:59:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:79:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:80:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:81:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:82:17 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:83:17 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:84:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:85:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:99:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:100:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:101:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:102:17 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:103:20 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:793:28 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/Services/WalletService.dart:891:23 • non_constant_identifier_names
info • The value of the local variable 'loginInstance' isn't used • lib/Services/WalletService.dart:895:21 • unused_local_variable
info • Unused import: 'dart:io' • lib/Services/WebsocketServices.dart:1:8 • unused_import
info • Unused import: 'package:web_socket_channel/status.dart' • lib/Services/WebsocketServices.dart:6:8 • unused_import
info • Avoid wrapping fields in getters and setters just to be "safe" • lib/Services/WebsocketServices.dart:24:32 • unnecessary_getters_setters
info • Avoid wrapping fields in getters and setters just to be "safe" • lib/Services/WebsocketServices.dart:25:13 • unnecessary_getters_setters
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Services/WebsocketServices.dart:58:9 • missing_return
info • Cancel instances of dart.async.StreamSubscription • lib/Settings.dart:34:28 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/Settings.dart:34:28 • unused_field
info • The value of the local variable 'response' isn't used • lib/Settings.dart:218:21 • unused_local_variable
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Settings.dart:248:5 • missing_return
info • The value of the local variable 'dialog' isn't used • lib/Settings.dart:311:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/Settings.dart:336:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/Settings.dart:362:15 • unused_local_variable
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/StampCards.dart:229:7 • missing_return
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Vouchers.dart:210:5 • missing_return
info • Cancel instances of dart.async.StreamSubscription • lib/Wallet.dart:38:24 • cancel_subscriptions
info • The value of the field '_sub' isn't used • lib/Wallet.dart:38:24 • unused_field
info • This function has a return type of 'Future<Null>', but doesn't end with a return statement • lib/Wallet.dart:197:9 • missing_return
info • The value of the local variable 'dialog' isn't used • lib/Wallet.dart:262:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/Wallet.dart:288:15 • unused_local_variable
info • The value of the local variable 'dialog' isn't used • lib/Wallet.dart:314:15 • unused_local_variable
info • Unused import: 'package:loyality/Services/WalletService.dart' • lib/main.dart:34:8 • unused_import
info • Unused import: 'package:web_socket_channel/io.dart' • lib/main.dart:37:8 • unused_import
info • Unused import: 'package:web_socket_channel/status.dart' • lib/main.dart:38:8 • unused_import
info • The value of the field '_platformVersion' isn't used • lib/main.dart:70:14 • unused_field
info • The value of the field '_startLocation' isn't used • lib/main.dart:76:27 • unused_field
info • The value of the field '_currentLocation' isn't used • lib/main.dart:77:27 • unused_field
info • Cancel instances of dart.async.StreamSubscription • lib/main.dart:80:47 • cancel_subscriptions
info • The value of the field '_locationSubscription' isn't used • lib/main.dart:80:47 • unused_field
info • The value of the field '_deviceData' isn't used • lib/main.dart:103:28 • unused_field
info • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) • lib/main.dart:426:7 • must_be_immutable
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-CA)
• Flutter version 0.8.2 at /Users/philipneves/flutter
• Framework revision 5ab9e70727 (4 days ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/philipneves/Library/Android/sdk
• Android NDK at /Users/philipneves/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.26.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.18.0
[✓] Connected devices (1 available)
• Philip Neves’s iPod • e24ffe8e35a025b77a30c57e549b62942abb0358 • ios • iOS 11.4.1
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-CA)
• Flutter version 0.8.2 at /Users/philipneves/flutter
• Framework revision 5ab9e70727 (4 days ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/philipneves/Library/Android/sdk
• Android NDK at /Users/philipneves/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.26.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.18.0
[✓] Connected devices (1 available)
• Philip Neves’s iPod • e24ffe8e35a025b77a30c57e549b62942abb0358 • ios • iOS 11.4.1
• No issues found!
</code></pre></div> | 0 |
<p dir="auto">With the beta releases 3rd party modules either needs always to be updated otherwise developer will end up with obscure errors when instanceof doesn't work. For example, the <code class="notranslate">angular2-jwt</code> had this problem when it's dependency was beta.0 and devs would use beta.1 so two versions of angular2 would bundle together when using browserify or webpack. Developers will also have this problem if they revert to beta.0 for the minification problems and these 3rd party modules didn't specify compatibility correctly in package.json</p>
<h3 dir="auto">proposal</h3>
<ul dir="auto">
<li>Provide a way to determine the angular2 version</li>
<li>Warn developers if there are two versions bundled (only during the beta releases and in development)</li>
</ul> | <p dir="auto">Trying to implement a custom Exceptionhandler fails. The docs suggest:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { ExceptionHandler } from 'angular2/core';
class MyExceptionHandler implements ExceptionHandler {
call(error, stackTrace = null, reason = null) {
// do something with the exception
}
}"><pre class="notranslate"><code class="notranslate">import { ExceptionHandler } from 'angular2/core';
class MyExceptionHandler implements ExceptionHandler {
call(error, stackTrace = null, reason = null) {
// do something with the exception
}
}
</code></pre></div>
<p dir="auto"><a href="https://angular.io/docs/ts/latest/api/core/ExceptionHandler-class.html" rel="nofollow">https://angular.io/docs/ts/latest/api/core/ExceptionHandler-class.html</a></p>
<p dir="auto">But this fails with:</p>
<p dir="auto">error TS2420: Class 'MyExceptionHandler' incorrectly implements interface 'ExceptionHandler'.<br>
Property '_logger' is missing in type 'MyExceptionHandler'.</p>
<p dir="auto">Trying to add a _logger causes:<br>
error TS2420: Class 'MyExceptionHandler' incorrectly implements interface 'ExceptionHandler'.<br>
Types have separate declarations of a private property '_logger'.</p>
<p dir="auto">Trying to extend ExceptionHandler instead gives various other errors about _logger being duplicated.</p> | 0 |
<p dir="auto">The <a href="https://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html" rel="nofollow">ES6 support announcement</a> says:</p>
<blockquote>
<p dir="auto">the idiomatic way to specify class state is to just use a simple instance property. Likewise getDefaultProps and propTypes are really just properties on the constructor.</p>
</blockquote>
<p dir="auto">This makes a lot of sense to me, but I noticed some small inconsistencies that may be worth rethinking.</p>
<p dir="auto">When using the original <code class="notranslate">.createClass</code> syntax, the value returned by <code class="notranslate">getDefaultProps</code> seems to be used at other points in the component lifecycle -- not just in the constructor. For example, if I inspect what gets sent to <code class="notranslate">componentWillReceiveProps(props)</code>, I can see that the default props are applied.</p>
<p dir="auto">This <em>doesn't</em> seem to be the case when using the ES6 class syntax, which means I have to duplicate code. Here's an example of what I mean:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Control extends React.Component {
constructor(props) {
props.value = props.value || '';
super(props);
}
// ...
componentWillReceiveProps(props) {
props.value = props.value || '';
// Do something with props...
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Control</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">||</span> <span class="pl-s">''</span><span class="pl-kos">;</span>
<span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c">// ...</span>
<span class="pl-en">componentWillReceiveProps</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">||</span> <span class="pl-s">''</span><span class="pl-kos">;</span>
<span class="pl-c">// Do something with props...</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">As you can see, I'm duplicating the expression <code class="notranslate">props.value = props.value || ''</code>. If I had more than one default, I'd obviously have a lot more duplication.</p>
<p dir="auto">When using the <code class="notranslate">.createClass</code> method, I could return <code class="notranslate">{value: ''}</code> from the <code class="notranslate">getDefaultProps</code> method, and this would work, and I'd only have to do it once.</p>
<p dir="auto">Does it make sense to restore this method to avoid unnecessary duplication? Is there another, more React-like approach that I'm not aware of?</p> | <p dir="auto">With other higher-order/wrapper components from other libraries, I can replace a component with a wrapped version of itself like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let Component = () => <div>hello world</div>;
// connect from react-redux
Component = connect(selector)(Component);
// withRouter from react-router
Component = withRouter(Component);
export default Component;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-v">Component</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>hello world<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span><span class="pl-kos">;</span>
<span class="pl-c">// connect from react-redux</span>
<span class="pl-v">Component</span> <span class="pl-c1">=</span> <span class="pl-en">connect</span><span class="pl-kos">(</span><span class="pl-s1">selector</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Component</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// withRouter from react-router</span>
<span class="pl-v">Component</span> <span class="pl-c1">=</span> <span class="pl-en">withRouter</span><span class="pl-kos">(</span><span class="pl-v">Component</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Component</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I don't see a lot of people do it this way, so I guess it's not recommended best practice. I know mutating is the devil and functional is always the way to go, but I think this is a lot cleaner because, 1) you don't have to nest a bunch of functions which increases the indent of the code and decreases readability, 2) you don't have to create a bunch of separate duplicate component names with obtuse names like <code class="notranslate">ComponentWithRouter</code> or <code class="notranslate">ConnectedComponentWithRouterWithForwardedRef</code>, and 3) your first definition of the component is just the pure display component that receives all the props it needs (it doesn't care where they come from), and then you define everything that "connects" to it separately.</p>
<p dir="auto">Anyway, with <code class="notranslate">forwardRef</code>, reassigning the component like this seems to crash React.</p>
<p dir="auto"><strong>Fine:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const UnforwardedComponent = ({ forwardedRef, ...props}) => <div>sup</div>
const Component = forwardRef((props, ref) => <UnforwardedComponent {...props} forwardedRef={ref} />;
export default Component;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">UnforwardedComponent</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> forwardedRef<span class="pl-kos">,</span> ...<span class="pl-s1">props</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>sup<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-k">const</span> <span class="pl-v">Component</span> <span class="pl-c1">=</span> <span class="pl-en">forwardRef</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">,</span> <span class="pl-s1">ref</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-v">UnforwardedComponent</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">forwardedRef</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">ref</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos"></span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Component</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Also fine:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const Component = forwardRef((props, ref) => <div {...props} ref={ref}>sup</div>;
export default Component;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">Component</span> <span class="pl-c1">=</span> <span class="pl-en">forwardRef</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">,</span> <span class="pl-s1">ref</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">ref</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">ref</span><span class="pl-kos">}</span><span class="pl-c1">></span>sup<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span><span class="pl-kos"></span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Component</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Crashes:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let Component = ({ forwardedRef, ...props }) => <div>sup</div>;
Component = forwardRef((props, ref) => <Component {...props} forwardedRef={ref} />
export default Component;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-v">Component</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> forwardedRef<span class="pl-kos">,</span> ...<span class="pl-s1">props</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>sup<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span><span class="pl-kos">;</span>
<span class="pl-v">Component</span> <span class="pl-c1">=</span> <span class="pl-s1">forwardRef</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">,</span> <span class="pl-s1">ref</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-v">Component</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">forwardedRef</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">ref</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-s1">export</span> <span class="pl-k">default</span> <span class="pl-v">Component</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I assume there's a under-the-hood reason why this doesn't work. But if it's at all possible, it'd be great to allow <code class="notranslate">forwardRef</code> to work in this manner.</p>
<p dir="auto">Please let me know if I'm missing something obvious.</p> | 0 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
df = pd.DataFrame([[1, 2, 3], [2, 2, 3]], columns=['a', 'b', 'c'])
def t(df):
print(df)
print('-' * 10)
return None
g = df.groupby(by=['a', 'b'])
g.apply(t)
print(g.groups)
g.apply(lambda x:print(x.index))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], [<span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>]], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>])
<span class="pl-k">def</span> <span class="pl-en">t</span>(<span class="pl-s1">df</span>):
<span class="pl-en">print</span>(<span class="pl-s1">df</span>)
<span class="pl-en">print</span>(<span class="pl-s">'-'</span> <span class="pl-c1">*</span> <span class="pl-c1">10</span>)
<span class="pl-k">return</span> <span class="pl-c1">None</span>
<span class="pl-s1">g</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s1">by</span><span class="pl-c1">=</span>[<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>])
<span class="pl-s1">g</span>.<span class="pl-en">apply</span>(<span class="pl-s1">t</span>)
<span class="pl-en">print</span>(<span class="pl-s1">g</span>.<span class="pl-s1">groups</span>)
<span class="pl-s1">g</span>.<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>:<span class="pl-en">print</span>(<span class="pl-s1">x</span>.<span class="pl-s1">index</span>))</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The function is invoked by 'apply' three times while there are only two groups.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">The function is only invoked once by 'apply' for each group.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]<br>
INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.6.2.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.4.0-119-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_HK.UTF-8<br>
LOCALE: en_HK.UTF-8</p>
<p dir="auto">pandas: 0.21.0<br>
pytest: 3.2.1<br>
pip: 9.0.1<br>
setuptools: 36.4.0<br>
Cython: None<br>
numpy: 1.14.3<br>
scipy: None<br>
pyarrow: None<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.7.3<br>
pytz: 2018.4<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: 2.6.5<br>
feather: None<br>
matplotlib: None<br>
openpyxl: 2.4.9<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: 0.999999999<br>
sqlalchemy: 1.1.15<br>
pymysql: None<br>
psycopg2: 2.7.3.1 (dt dec pq3 ext lo64)<br>
jinja2: 2.9.6<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
df = pd.read_hdf('data.h5')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_hdf</span>(<span class="pl-s">'data.h5'</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The HDF5 dataset was created with <code class="notranslate">pandas</code>, <code class="notranslate">to_hdf</code> in Python 2.7 and can be read in by Python 2.7. When I try to read it in with Python 3.5 or Python 3.6, I get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-2-53006689fd2c> in <module>()
----> 1 df = pd.read_hdf(data.h5')
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in read_hdf(path_or_buf, key, **kwargs)
356 'contains multiple datasets.')
357 key = candidate_only_group._v_pathname
--> 358 return store.select(key, auto_close=auto_close, **kwargs)
359 except:
360 # if there is an error, close the store
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in select(self, key, where, start, stop, columns, iterator, chunksize, auto_close, **kwargs)
720 chunksize=chunksize, auto_close=auto_close)
721
--> 722 return it.get_result()
723
724 def select_as_coordinates(
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in get_result(self, coordinates)
1426
1427 # directly return the result
-> 1428 results = self.func(self.start, self.stop, where)
1429 self.close()
1430 return results
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in func(_start, _stop, _where)
713 return s.read(start=_start, stop=_stop,
714 where=_where,
--> 715 columns=columns, **kwargs)
716
717 # create the iterator
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in read(self, start, stop, **kwargs)
2864 blk_items = self.read_index('block%d_items' % i)
2865 values = self.read_array('block%d_values' % i,
-> 2866 start=_start, stop=_stop)
2867 blk = make_block(values,
2868 placement=items.get_indexer(blk_items))
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in read_array(self, key, start, stop)
2413 import tables
2414 node = getattr(self.group, key)
-> 2415 data = node[start:stop]
2416 attrs = node._v_attrs
2417
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/tables/vlarray.py in __getitem__(self, key)
673 start, stop, step = self._process_range(
674 key.start, key.stop, key.step)
--> 675 return self.read(start, stop, step)
676 # Try with a boolean or point selection
677 elif type(key) in (list, tuple) or isinstance(key, numpy.ndarray):
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/tables/vlarray.py in read(self, start, stop, step)
813 atom = self.atom
814 if not hasattr(atom, 'size'): # it is a pseudo-atom
--> 815 outlistarr = [atom.fromarray(arr) for arr in listarr]
816 else:
817 # Convert the list to the right flavor
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/tables/vlarray.py in <listcomp>(.0)
813 atom = self.atom
814 if not hasattr(atom, 'size'): # it is a pseudo-atom
--> 815 outlistarr = [atom.fromarray(arr) for arr in listarr]
816 else:
817 # Convert the list to the right flavor
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/tables/atom.py in fromarray(self, array)
1226 if array.size == 0:
1227 return None
-> 1228 return six.moves.cPickle.loads(array.tostring())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 23: ordinal not in range(128)"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-2-53006689fd2c> in <module>()
----> 1 df = pd.read_hdf(data.h5')
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in read_hdf(path_or_buf, key, **kwargs)
356 'contains multiple datasets.')
357 key = candidate_only_group._v_pathname
--> 358 return store.select(key, auto_close=auto_close, **kwargs)
359 except:
360 # if there is an error, close the store
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in select(self, key, where, start, stop, columns, iterator, chunksize, auto_close, **kwargs)
720 chunksize=chunksize, auto_close=auto_close)
721
--> 722 return it.get_result()
723
724 def select_as_coordinates(
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in get_result(self, coordinates)
1426
1427 # directly return the result
-> 1428 results = self.func(self.start, self.stop, where)
1429 self.close()
1430 return results
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in func(_start, _stop, _where)
713 return s.read(start=_start, stop=_stop,
714 where=_where,
--> 715 columns=columns, **kwargs)
716
717 # create the iterator
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in read(self, start, stop, **kwargs)
2864 blk_items = self.read_index('block%d_items' % i)
2865 values = self.read_array('block%d_values' % i,
-> 2866 start=_start, stop=_stop)
2867 blk = make_block(values,
2868 placement=items.get_indexer(blk_items))
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/pandas/io/pytables.py in read_array(self, key, start, stop)
2413 import tables
2414 node = getattr(self.group, key)
-> 2415 data = node[start:stop]
2416 attrs = node._v_attrs
2417
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/tables/vlarray.py in __getitem__(self, key)
673 start, stop, step = self._process_range(
674 key.start, key.stop, key.step)
--> 675 return self.read(start, stop, step)
676 # Try with a boolean or point selection
677 elif type(key) in (list, tuple) or isinstance(key, numpy.ndarray):
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/tables/vlarray.py in read(self, start, stop, step)
813 atom = self.atom
814 if not hasattr(atom, 'size'): # it is a pseudo-atom
--> 815 outlistarr = [atom.fromarray(arr) for arr in listarr]
816 else:
817 # Convert the list to the right flavor
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/tables/vlarray.py in <listcomp>(.0)
813 atom = self.atom
814 if not hasattr(atom, 'size'): # it is a pseudo-atom
--> 815 outlistarr = [atom.fromarray(arr) for arr in listarr]
816 else:
817 # Convert the list to the right flavor
/home/tct/anaconda2/envs/py36/lib/python3.6/site-packages/tables/atom.py in fromarray(self, array)
1226 if array.size == 0:
1227 return None
-> 1228 return six.moves.cPickle.loads(array.tostring())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 23: ordinal not in range(128)
</code></pre></div>
<p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p>
<p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p>
<p dir="auto">For documentation-related issues, you can check the latest versions of the docs on <code class="notranslate">master</code> here:</p>
<p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/</a></p>
<p dir="auto">If the issue has not been resolved there, go ahead and file it in the issue tracker.</p>
<h4 dir="auto">Expected Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import pandas as pd
In [2]: df = pd.read_hdf('data.h5')"><pre class="notranslate"><code class="notranslate">In [1]: import pandas as pd
In [2]: df = pd.read_hdf('data.h5')
</code></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]</p>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.0-3-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.20.1
pytest: 3.0.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.12.1
scipy: 0.19.0
xarray: None
IPython: 5.3.0
sphinx: 1.5.6
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.3.0
numexpr: 2.6.2
feather: None
matplotlib: 2.0.2
openpyxl: 2.4.7
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.3
bs4: 4.6.0
html5lib: 0.999
sqlalchemy: 1.1.9
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
pandas_gbq: None
pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.0-3-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.20.1
pytest: 3.0.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.12.1
scipy: 0.19.0
xarray: None
IPython: 5.3.0
sphinx: 1.5.6
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.3.0
numexpr: 2.6.2
feather: None
matplotlib: 2.0.2
openpyxl: 2.4.7
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.3
bs4: 4.6.0
html5lib: 0.999
sqlalchemy: 1.1.9
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
pandas_gbq: None
pandas_datareader: None
</code></pre></div>
</details>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS
------------------
commit: None
python: 2.7.13.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.0-3-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.20.1
pytest: 3.0.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.2
scipy: 0.18.1
xarray: None
IPython: 5.3.0
sphinx: 1.5.6
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.3.0
numexpr: 2.6.1
feather: None
matplotlib: 2.0.2
openpyxl: 2.4.7
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.3
bs4: 4.6.0
html5lib: 0.999
sqlalchemy: 1.1.9
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
pandas_gbq: None
pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS
------------------
commit: None
python: 2.7.13.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.0-3-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.20.1
pytest: 3.0.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.2
scipy: 0.18.1
xarray: None
IPython: 5.3.0
sphinx: 1.5.6
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.3.0
numexpr: 2.6.1
feather: None
matplotlib: 2.0.2
openpyxl: 2.4.7
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.3
bs4: 4.6.0
html5lib: 0.999
sqlalchemy: 1.1.9
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
pandas_gbq: None
pandas_datareader: None
</code></pre></div>
</details> | 0 |
<p dir="auto">I can import seaborn in termimal.<br>
But it can't in ipython terminal or jupyter</p> | <p dir="auto"><code class="notranslate">seaborn.lineplot</code> makes it easy to plot either a confidence intervals around the estimator, or the standard deviation of the data. It would be nice to directly support plotting quantiles of the data distribution instead, rather than only the standard deviation.</p>
<p dir="auto">Maybe it would make sense to have a separate key-word argument for controlling whether <code class="notranslate">ci</code> refers to the estimator or data distribution? e.g., <code class="notranslate">ci_source='estimator'</code> vs <code class="notranslate">ci_source='data'</code>? Then <code class="notranslate">ci</code> would only indicate how large of a confidence interval to plot, not the source.</p> | 0 |
<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: <strong>4x / 5x</strong></li>
<li>Operating System (Platform and Version): Windows 10/ Windows 7/ Ubuntu 18.04.1</li>
</ul>
<p dir="auto">aes gcm mode is missing from the list of available ciphers. it works for on my end so is there any reason for this?</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const crypto = require('crypto');
console.log(crypto.getCiphers())
// returns
[ 'aes-128-cbc','aes-128-ctr','aes-128-ecb','aes-128-ofb','aes-256-cbc',
'aes-256-ctr','aes-256-ecb','aes-256-ofb','aes-256-xts','des-cbc',
'des-ecb','des-ede','des-ede-cbc','des-ede3-cbc','rc2-cbc','rc4'
]
// encrypt with gcm
const encGcm = function(text, secret, salt){
let obj = {},
iv = crypto.randomBytes(32).toString('hex'),
key = crypto.pbkdf2Sync(secret, salt, 10000, 32, 'sha512'),
cipher = crypto.createCipheriv('aes-256-gcm', key, iv),
encrypted = Buffer.concat([cipher.update(text, 'utf8'), cipher.final()]),
tag = cipher.getAuthTag();
obj.iv = iv
obj.tag = tag.toString('hex');
obj.encrypted = encrypted.toString('hex');
return obj;
}
let i = encGcm('text', 'secret', 'salt')
// decrypt with gcm
const decGcm = function(encdata, secret, salt, iv, tag){
let key = crypto.pbkdf2Sync(secret, salt , 10000, 32, 'sha512'),
decipher = crypto.createDecipheriv('aes-256-gcm', key, iv);
decipher.setAuthTag(Buffer.from(tag, 'hex'));
let decrypted = decipher.update(Buffer.from(encdata, 'hex')) + decipher.final();
return decrypted;
}
console.log(decGcm(i.encrypted, 'secret', 'salt', i.iv, i.tag))
// returns
text"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">crypto</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'crypto'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">crypto</span><span class="pl-kos">.</span><span class="pl-en">getCiphers</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-c">// returns</span>
<span class="pl-kos">[</span> <span class="pl-s">'aes-128-cbc'</span><span class="pl-kos">,</span><span class="pl-s">'aes-128-ctr'</span><span class="pl-kos">,</span><span class="pl-s">'aes-128-ecb'</span><span class="pl-kos">,</span><span class="pl-s">'aes-128-ofb'</span><span class="pl-kos">,</span><span class="pl-s">'aes-256-cbc'</span><span class="pl-kos">,</span>
<span class="pl-s">'aes-256-ctr'</span><span class="pl-kos">,</span><span class="pl-s">'aes-256-ecb'</span><span class="pl-kos">,</span><span class="pl-s">'aes-256-ofb'</span><span class="pl-kos">,</span><span class="pl-s">'aes-256-xts'</span><span class="pl-kos">,</span><span class="pl-s">'des-cbc'</span><span class="pl-kos">,</span>
<span class="pl-s">'des-ecb'</span><span class="pl-kos">,</span><span class="pl-s">'des-ede'</span><span class="pl-kos">,</span><span class="pl-s">'des-ede-cbc'</span><span class="pl-kos">,</span><span class="pl-s">'des-ede3-cbc'</span><span class="pl-kos">,</span><span class="pl-s">'rc2-cbc'</span><span class="pl-kos">,</span><span class="pl-s">'rc4'</span>
<span class="pl-kos">]</span>
<span class="pl-c">// encrypt with gcm</span>
<span class="pl-k">const</span> <span class="pl-en">encGcm</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s1">secret</span><span class="pl-kos">,</span> <span class="pl-s1">salt</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s1">iv</span> <span class="pl-c1">=</span> <span class="pl-s1">crypto</span><span class="pl-kos">.</span><span class="pl-en">randomBytes</span><span class="pl-kos">(</span><span class="pl-c1">32</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-s">'hex'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-s1">crypto</span><span class="pl-kos">.</span><span class="pl-en">pbkdf2Sync</span><span class="pl-kos">(</span><span class="pl-s1">secret</span><span class="pl-kos">,</span> <span class="pl-s1">salt</span><span class="pl-kos">,</span> <span class="pl-c1">10000</span><span class="pl-kos">,</span> <span class="pl-c1">32</span><span class="pl-kos">,</span> <span class="pl-s">'sha512'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">cipher</span> <span class="pl-c1">=</span> <span class="pl-s1">crypto</span><span class="pl-kos">.</span><span class="pl-en">createCipheriv</span><span class="pl-kos">(</span><span class="pl-s">'aes-256-gcm'</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">iv</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">encrypted</span> <span class="pl-c1">=</span> <span class="pl-v">Buffer</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s1">cipher</span><span class="pl-kos">.</span><span class="pl-en">update</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s">'utf8'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">cipher</span><span class="pl-kos">.</span><span class="pl-en">final</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">tag</span> <span class="pl-c1">=</span> <span class="pl-s1">cipher</span><span class="pl-kos">.</span><span class="pl-en">getAuthTag</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">iv</span> <span class="pl-c1">=</span> <span class="pl-s1">iv</span>
<span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">tag</span> <span class="pl-c1">=</span> <span class="pl-s1">tag</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-s">'hex'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">encrypted</span> <span class="pl-c1">=</span> <span class="pl-s1">encrypted</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-s">'hex'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">obj</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-en">encGcm</span><span class="pl-kos">(</span><span class="pl-s">'text'</span><span class="pl-kos">,</span> <span class="pl-s">'secret'</span><span class="pl-kos">,</span> <span class="pl-s">'salt'</span><span class="pl-kos">)</span>
<span class="pl-c">// decrypt with gcm</span>
<span class="pl-k">const</span> <span class="pl-en">decGcm</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">encdata</span><span class="pl-kos">,</span> <span class="pl-s1">secret</span><span class="pl-kos">,</span> <span class="pl-s1">salt</span><span class="pl-kos">,</span> <span class="pl-s1">iv</span><span class="pl-kos">,</span> <span class="pl-s1">tag</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-s1">crypto</span><span class="pl-kos">.</span><span class="pl-en">pbkdf2Sync</span><span class="pl-kos">(</span><span class="pl-s1">secret</span><span class="pl-kos">,</span> <span class="pl-s1">salt</span> <span class="pl-kos">,</span> <span class="pl-c1">10000</span><span class="pl-kos">,</span> <span class="pl-c1">32</span><span class="pl-kos">,</span> <span class="pl-s">'sha512'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">decipher</span> <span class="pl-c1">=</span> <span class="pl-s1">crypto</span><span class="pl-kos">.</span><span class="pl-en">createDecipheriv</span><span class="pl-kos">(</span><span class="pl-s">'aes-256-gcm'</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">iv</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">decipher</span><span class="pl-kos">.</span><span class="pl-en">setAuthTag</span><span class="pl-kos">(</span><span class="pl-v">Buffer</span><span class="pl-kos">.</span><span class="pl-en">from</span><span class="pl-kos">(</span><span class="pl-s1">tag</span><span class="pl-kos">,</span> <span class="pl-s">'hex'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">decrypted</span> <span class="pl-c1">=</span> <span class="pl-s1">decipher</span><span class="pl-kos">.</span><span class="pl-en">update</span><span class="pl-kos">(</span><span class="pl-v">Buffer</span><span class="pl-kos">.</span><span class="pl-en">from</span><span class="pl-kos">(</span><span class="pl-s1">encdata</span><span class="pl-kos">,</span> <span class="pl-s">'hex'</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-s1">decipher</span><span class="pl-kos">.</span><span class="pl-en">final</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">decrypted</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">decGcm</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-c1">encrypted</span><span class="pl-kos">,</span> <span class="pl-s">'secret'</span><span class="pl-kos">,</span> <span class="pl-s">'salt'</span><span class="pl-kos">,</span> <span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-c1">iv</span><span class="pl-kos">,</span> <span class="pl-s1">i</span><span class="pl-kos">.</span><span class="pl-c1">tag</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-c">// returns</span>
<span class="pl-s1">text</span></pre></div> | <h3 dir="auto">code</h3>
<p dir="auto">header.vue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { remote, ipcRenderer, clipboard, shell } from 'electron';
let thisWindow = remote.getCurrentWindow();
const thisview = thisWindow.getBrowserView();
export default {
name: 'header',
created() {
console.log(thisWindow, thisWindow.maximizable, thisview);
this.isMaximizable = thisWindow.maximizable;
},
}"><pre class="notranslate"><code class="notranslate">import { remote, ipcRenderer, clipboard, shell } from 'electron';
let thisWindow = remote.getCurrentWindow();
const thisview = thisWindow.getBrowserView();
export default {
name: 'header',
created() {
console.log(thisWindow, thisWindow.maximizable, thisview);
this.isMaximizable = thisWindow.maximizable;
},
}
</code></pre></div>
<p dir="auto">after I change the frame value to true while create the window , the maximizable will return the right value which is set while created the window</p>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
"electron": "8.2.0",</li>
</ul> | 0 |
<h2 dir="auto">command</h2>
<p dir="auto">flutter build apk</p>
<h2 dir="auto">exception</h2>
<p dir="auto">FormatException: FormatException: Bad UTF-8 encoding 0xbe (at offset 0)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 _Utf8Decoder.convert (dart:convert/utf.dart:574)
#1 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:345)
#2 _Utf8ConversionSink.add (dart:convert/string_conversion.dart:341)
#3 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:86)
#4 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120)
#5 _rootRunUnary (dart:async/zone.dart:1134)
#6 _CustomZone.runUnary (dart:async/zone.dart:1031)
#7 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)
#8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)
#9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257)
#10 _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763)
#11 _StreamController._add (dart:async/stream_controller.dart:639)
#12 _StreamController.add (dart:async/stream_controller.dart:585)
#13 _Socket._onData (dart:io-patch/socket_patch.dart:1654)
#14 _rootRunUnary (dart:async/zone.dart:1138)
#15 _CustomZone.runUnary (dart:async/zone.dart:1031)
#16 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)
#17 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)
#18 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257)
#19 _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763)
#20 _StreamController._add (dart:async/stream_controller.dart:639)
#21 _StreamController.add (dart:async/stream_controller.dart:585)
#22 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1231)
#23 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:784)
#24 _microtaskLoop (dart:async/schedule_microtask.dart:41)
#25 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
#26 _runPendingImmediateCallback (dart:isolate-patch/dart:isolate/isolate_patch.dart:113)
#27 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:166)"><pre class="notranslate"><code class="notranslate">#0 _Utf8Decoder.convert (dart:convert/utf.dart:574)
#1 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:345)
#2 _Utf8ConversionSink.add (dart:convert/string_conversion.dart:341)
#3 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:86)
#4 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120)
#5 _rootRunUnary (dart:async/zone.dart:1134)
#6 _CustomZone.runUnary (dart:async/zone.dart:1031)
#7 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)
#8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)
#9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257)
#10 _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763)
#11 _StreamController._add (dart:async/stream_controller.dart:639)
#12 _StreamController.add (dart:async/stream_controller.dart:585)
#13 _Socket._onData (dart:io-patch/socket_patch.dart:1654)
#14 _rootRunUnary (dart:async/zone.dart:1138)
#15 _CustomZone.runUnary (dart:async/zone.dart:1031)
#16 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)
#17 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)
#18 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257)
#19 _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763)
#20 _StreamController._add (dart:async/stream_controller.dart:639)
#21 _StreamController.add (dart:async/stream_controller.dart:585)
#22 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1231)
#23 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:784)
#24 _microtaskLoop (dart:async/schedule_microtask.dart:41)
#25 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
#26 _runPendingImmediateCallback (dart:isolate-patch/dart:isolate/isolate_patch.dart:113)
#27 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:166)
</code></pre></div>
<h2 dir="auto">flutter doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.125], locale zh-CN)
• Flutter version 0.1.5 at H:\google\flutter
• Framework revision 3ea4d06340 (2 weeks ago), 2018-02-22 11:12:39 -0800
• Engine revision ead227f118
• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at H:\android-sdk
• Android NDK at H:\android-sdk\ndk-bundle
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = H:\android-sdk
• Java binary at: H:\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Android Studio (version 3.0)
• Android Studio at H:\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.2)
• Flutter plugin version 21.2.2
• Dart plugin version 172.4343.25
[✓] Connected devices (1 available)
• MIX 2 • 356a5f19 • android-arm64 • Android 8.0.0 (API 26)
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.125], locale zh-CN)
• Flutter version 0.1.5 at H:\google\flutter
• Framework revision 3ea4d06340 (2 weeks ago), 2018-02-22 11:12:39 -0800
• Engine revision ead227f118
• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at H:\android-sdk
• Android NDK at H:\android-sdk\ndk-bundle
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = H:\android-sdk
• Java binary at: H:\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Android Studio (version 3.0)
• Android Studio at H:\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.2)
• Flutter plugin version 21.2.2
• Dart plugin version 172.4343.25
[✓] Connected devices (1 available)
• MIX 2 • 356a5f19 • android-arm64 • Android 8.0.0 (API 26)
• No issues found!
</code></pre></div>
<p dir="auto">Run this "flutter build apk" on PowerShell without this error</p> | <p dir="auto">I have a bottomsheet, and it contains a Listview which shows comment list. The comment List can be scroll, but when I scroll to the top of the list, I can not trigger the pull down to dismiss event even add the physics: ScrollPhysics .</p> | 0 |
<p dir="auto">This commit: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17979232" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9403" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9403/hovercard" href="https://github.com/twbs/bootstrap/pull/9403">#9403</a></p>
<p dir="auto">caused this issue to break: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17557441" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9007" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9007/hovercard" href="https://github.com/twbs/bootstrap/issues/9007">#9007</a></p> | <p dir="auto">I have a navbar with 8 links. I've noticed that when I activate the navbar on a phone and view it in landscape, it doesn't scroll all the way down to display the last link.</p>
<p dir="auto">A live example of this can be shown on the 'Jumbotron' example template. When I drop down the menu I can't view the whole login form.</p> | 1 |
<h1 dir="auto">Bug Description</h1>
<p dir="auto">Usually, the _id field is known as global unique in a index, right?<br>
But I found it become non-unique when a doc's routing field is modified to another value and reindex to ES. Then, there will be two doc alive in diffrent shard but the same index.</p>
<p dir="auto">It seems the delete operation is broadcasted to all shards, but the index operation not.</p>
<p dir="auto">Since it's hard to monitor if the routing filed is modified, the only thing I can do is do an delete operation before each index operation, I really don't like it >_<</p>
<h1 dir="auto">how to reproduce the bug</h1>
<p dir="auto"><code class="notranslate">Tested under both v0.90.0</code></p>
<h2 dir="auto">[1] Create A Index</h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -XPUT 'http://localhost:9200/user' -d '
{
"mappings": {
"User": {
"store": "no",
"_id": {
"type": "string",
"index": "not_analyzed",
"store": "yes"
},
"_type": {
"enabled": true
},
"_routing": {
"path": "tag",
"required": true
},
"properties": {
"tag": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
'"><pre class="notranslate">curl -XPUT <span class="pl-s"><span class="pl-pds">'</span>http://localhost:9200/user<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span></span>
<span class="pl-s">{</span>
<span class="pl-s"> "mappings": {</span>
<span class="pl-s"> "User": {</span>
<span class="pl-s"> "store": "no",</span>
<span class="pl-s"> "_id": {</span>
<span class="pl-s"> "type": "string",</span>
<span class="pl-s"> "index": "not_analyzed",</span>
<span class="pl-s"> "store": "yes"</span>
<span class="pl-s"> },</span>
<span class="pl-s"> "_type": {</span>
<span class="pl-s"> "enabled": true</span>
<span class="pl-s"> },</span>
<span class="pl-s"> "_routing": {</span>
<span class="pl-s"> "path": "tag",</span>
<span class="pl-s"> "required": true</span>
<span class="pl-s"> },</span>
<span class="pl-s"> "properties": {</span>
<span class="pl-s"> "tag": {</span>
<span class="pl-s"> "type": "string",</span>
<span class="pl-s"> "index": "not_analyzed"</span>
<span class="pl-s"> }</span>
<span class="pl-s"> }</span>
<span class="pl-s"> }</span>
<span class="pl-s"> }</span>
<span class="pl-s">}</span>
<span class="pl-s"><span class="pl-pds">'</span></span></pre></div>
<h2 dir="auto">[2] Input Data</h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -XPOST 'http://localhost:9200/user/User/123' -d '{"tag" : "good"}'"><pre class="notranslate">curl -XPOST <span class="pl-s"><span class="pl-pds">'</span>http://localhost:9200/user/User/123<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span>{"tag" : "good"}<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">{"ok":true,"_index":"user","_type":"User","_id":"123","_version":1}</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -XPOST 'http://localhost:9200/user/User/123' -d '{"tag" : "bad"}'"><pre class="notranslate">curl -XPOST <span class="pl-s"><span class="pl-pds">'</span>http://localhost:9200/user/User/123<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span>{"tag" : "bad"}<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">{"ok":true,"_index":"user","_type":"User","_id":"123","_version":1}</p>
<h2 dir="auto">[3] Search</h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -XPOST 'http://localhost:9200/user/User/_search' -d '{
"query": {
"term": {
"_id": "123"
}
},
"facets": {
"tag": {
"terms": {
"field": "tag"
}
}
}
}'"><pre class="notranslate">curl -XPOST <span class="pl-s"><span class="pl-pds">'</span>http://localhost:9200/user/User/_search<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span>{</span>
<span class="pl-s"> "query": {</span>
<span class="pl-s"> "term": {</span>
<span class="pl-s"> "_id": "123"</span>
<span class="pl-s"> }</span>
<span class="pl-s"> },</span>
<span class="pl-s"> "facets": {</span>
<span class="pl-s"> "tag": {</span>
<span class="pl-s"> "terms": {</span>
<span class="pl-s"> "field": "tag"</span>
<span class="pl-s"> }</span>
<span class="pl-s"> }</span>
<span class="pl-s"> }</span>
<span class="pl-s">}<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">Result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"took": 1,
"timed_out": false,
"_shards": {
"total": 10,
"successful": 10,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 0.30685282,
"hits": [
{
"_index": "user",
"_type": "User",
"_id": "123",
"_score": 0.30685282,
"_source": {
"tag": "bad"
}
},
{
"_index": "user",
"_type": "User",
"_id": "123",
"_score": 0.30685282,
"_source": {
"tag": "good"
}
}
]
},
"facets": {
"tag": {
"_type": "terms",
"missing": 0,
"total": 2,
"other": 0,
"terms": [
{
"term": "good",
"count": 1
},
{
"term": "bad",
"count": 1
}
]
}
}
}"><pre class="notranslate"><code class="notranslate">{
"took": 1,
"timed_out": false,
"_shards": {
"total": 10,
"successful": 10,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 0.30685282,
"hits": [
{
"_index": "user",
"_type": "User",
"_id": "123",
"_score": 0.30685282,
"_source": {
"tag": "bad"
}
},
{
"_index": "user",
"_type": "User",
"_id": "123",
"_score": 0.30685282,
"_source": {
"tag": "good"
}
}
]
},
"facets": {
"tag": {
"_type": "terms",
"missing": 0,
"total": 2,
"other": 0,
"terms": [
{
"term": "good",
"count": 1
},
{
"term": "bad",
"count": 1
}
]
}
}
}
</code></pre></div> | <p dir="auto">It seems, that it's not possible to create node that could elect but not to become master.<br>
This option could be useful in some cases.<br>
For example, we have 2 master nodes with data and we want to avoid split brain and the existence of two masters. We can create another instance without data and <code class="notranslate">node.master = true</code>. But this third node can become master. So this node must be able to handle a lot of request and must have low latency connection with other nodes.<br>
But in fact we want to have node with minimum hardware requirement.<br>
Is it possible to add option like "weigth" or "priority" which will be considered in master election?<br>
Another way is to add flag which will disallow to elect current node as master.<br>
Current option <code class="notranslate">node.master</code> controls both actions: to elect and to be elected.</p> | 0 |
<p dir="auto">Not sure if it's an intended behavior, anyway it seems that Angular2 doesn't assign the active state (the "router-link-active" class) to a routerLink element when its corresponding route contains query string params.<br>
You can reproduce this situation with the official routing example itself:<br>
<a href="https://angular.io/resources/live-examples/router/ts/plnkr.html" rel="nofollow">https://angular.io/resources/live-examples/router/ts/plnkr.html</a></p>
<ul dir="auto">
<li>Click on "heroes" to step in the Horoes list view (note how the active class has been correctly assigned to the Heroes anchor element in the navbar)</li>
<li>Choose one from the list ( the new route removes the active state from the heroes link)</li>
<li>Click on the back button</li>
<li>You're back in the hero list view, but the Heroes anchor element hasn't been given the router-link-active class in the navbar</li>
</ul>
<p dir="auto">The last click triggers the following:<br>
this._router.navigate(['Heroes', {id: heroId, foo: 'foo'} ]);</p>
<p dir="auto">As stated in the doc "Unfortunately, the browser address bar does not change when running the live example in plunker." anyway "The id value appears in the query string (?id=15&foo=foo), not in the URL path. The path for the "Heroes" route doesn't have an :id token."</p> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<blockquote>
<p dir="auto">Navigate to a route that has child routes.<br>
Navigate to one of the child routes.<br>
Navigate back to top level route.<br>
Navigate to any other root. (this is where you receive the error)</p>
</blockquote>
<p dir="auto"><strong>Expected behavior</strong></p>
<blockquote>
<p dir="auto">Navigate to a route that has child routes.<br>
Navigate to one of the child routes.<br>
Navigate back to top level route.<br>
Navigate to any other root. (without receiving the error)</p>
</blockquote>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto">Step1<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11085642/21839481/a89d433a-d7e0-11e6-83a8-1c87ae363619.png"><img src="https://cloud.githubusercontent.com/assets/11085642/21839481/a89d433a-d7e0-11e6-83a8-1c87ae363619.png" alt="1" style="max-width: 100%;"></a></p>
<p dir="auto">Step2<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11085642/21839484/acbd7516-d7e0-11e6-8fb3-8daa9f959b7d.png"><img src="https://cloud.githubusercontent.com/assets/11085642/21839484/acbd7516-d7e0-11e6-8fb3-8daa9f959b7d.png" alt="2" style="max-width: 100%;"></a></p>
<p dir="auto">Step3<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11085642/21839488/afdd9d2a-d7e0-11e6-9299-3fdbf902eae9.png"><img src="https://cloud.githubusercontent.com/assets/11085642/21839488/afdd9d2a-d7e0-11e6-9299-3fdbf902eae9.png" alt="3" style="max-width: 100%;"></a></p>
<p dir="auto">Step4<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11085642/21839490/b2d85d58-d7e0-11e6-8ade-e4261b4b4aa5.png"><img src="https://cloud.githubusercontent.com/assets/11085642/21839490/b2d85d58-d7e0-11e6-8ade-e4261b4b4aa5.png" alt="4" style="max-width: 100%;"></a></p>
<p dir="auto">Error<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11085642/21839493/b59b608a-d7e0-11e6-86de-955d1adcd4ff.png"><img src="https://cloud.githubusercontent.com/assets/11085642/21839493/b59b608a-d7e0-11e6-86de-955d1adcd4ff.png" alt="error" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://plnkr.co/edit/GuQuWnW2GsfnBOVyWQRh?p=preview" rel="nofollow">https://plnkr.co/edit/GuQuWnW2GsfnBOVyWQRh?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
To fix the bug</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
ASP.Net Core</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 3.1.1</p>
</li>
<li>
<p dir="auto"><strong>Angular/router Version:</strong> 3.3.1</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [Chrome]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript 1.0.3.0 | ES6 | ES5]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node v6.9.2</code></p>
</li>
</ul> | 0 |
<p dir="auto">So I'm pretty much at the end here.<br>
Every time I make the browser window transparent, a wired title appears.<br>
So in it is the HTML title and when I remove it says index.html or the folder/package name.<br>
(this sort of thing just appears, when I unfocus and focus the app again.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32692451/36626489-1502c1cc-1934-11e8-9600-0f43a4d1b386.PNG"><img src="https://user-images.githubusercontent.com/32692451/36626489-1502c1cc-1934-11e8-9600-0f43a4d1b386.PNG" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto">Best Regards</p>
<p dir="auto">Elias</p> | <p dir="auto">We're seeing a bug where <code class="notranslate">BrowserWindows</code> created with <code class="notranslate">transparent: true, frame: false</code> show a title bar in various states of user interaction.</p>
<ul dir="auto">
<li>Electron version: 1.8.2-beta.5 (not present on beta.4, like <a href="https://github.com/electron/electron/pull/11710" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/11710/hovercard">due to this change</a>)</li>
<li>Operating system: Windows</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><code class="notranslate">BrowserWindows</code> created with <code class="notranslate">transparent: true, frame: false</code> should never show a title bar.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto"><code class="notranslate">BrowserWindows</code> created with <code class="notranslate">transparent: true, frame: false</code> show a title bar in various states of user interaction.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1426799/35893110-5588740c-0b61-11e8-8d10-73838a1f88d7.JPG"><img src="https://user-images.githubusercontent.com/1426799/35893110-5588740c-0b61-11e8-8d10-73838a1f88d7.JPG" alt="frameless" style="max-width: 100%;"></a></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Run the following:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone https://github.com/felixrieseberg/electron-quick-start
git checkout frame-titlebar-issue
npm start"><pre class="notranslate">git clone https://github.com/felixrieseberg/electron-quick-start
git checkout frame-titlebar-issue
npm start</pre></div>
<p dir="auto">Then, select the window in the taskbar, or click on it. The repro steps vary a bit, but you should eventually see a title bar.</p> | 1 |
<p dir="auto">for example, kubernetes-e2e-gce-slow, kubernetes-e2e-gce-reboot, kubernetes-e2e-gce, kubernetes-e2e-gce-parallel</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jszczepkowski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jszczepkowski">@jszczepkowski</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wojtek-t/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wojtek-t">@wojtek-t</a></p> | <p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7761/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7761/</a></p>
<p dir="auto">Failed: BeforeSuite {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:138
May 23 21:08:38.707: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:138
May 23 21:08:38.707: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s
</code></pre></div> | 1 |
<h1 dir="auto">What / Why</h1>
<p dir="auto">npm: v5.8.0, v6.13.4</p>
<p dir="auto">When I attempt to install a package from GitHub globally, I am getting a permission error: "could not create leading directories".</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo -H npm install -g git+https://github.com/richRemer/pool.git
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/richRemer/pool.git /root/.npm/_cacache/tmp/git-clone-e33b6b4f
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e33b6b4f': Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-29T20_06_58_093Z-debug.log"><pre class="notranslate"><code class="notranslate">$ sudo -H npm install -g git+https://github.com/richRemer/pool.git
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/richRemer/pool.git /root/.npm/_cacache/tmp/git-clone-e33b6b4f
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e33b6b4f': Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-29T20_06_58_093Z-debug.log
</code></pre></div>
<p dir="auto">The relevant log bits:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="12 silly fetchPackageMetaData error for git+https://github.com/richRemer/pool.git Command failed: /usr/bin/git clone -q https://github.com/richRemer/pool.git /root/.npm/_cacache/tmp/git-clone-e33b6b4f
12 silly fetchPackageMetaData fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e33b6b4f': Permission denied
13 verbose stack Error: Command failed: /usr/bin/git clone -q https://github.com/richRemer/pool.git /root/.npm/_cacache/tmp/git-clone-e33b6b4f
13 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e33b6b4f': Permission denied
13 verbose stack
13 verbose stack at ChildProcess.exithandler (child_process.js:294:12)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Socket.stream.socket.on (internal/child_process.js:389:11)
13 verbose stack at Socket.emit (events.js:189:13)
13 verbose stack at Pipe._handle.close (net.js:600:12)
14 verbose cwd /home/rremer
15 verbose Linux 5.3.0-24-generic
16 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "git+https://github.com/richRemer/pool.git"
17 verbose node v10.15.2
18 verbose npm v5.8.0
19 error code 128
20 error Command failed: /usr/bin/git clone -q https://github.com/richRemer/pool.git /root/.npm/_cacache/tmp/git-clone-e33b6b4f
20 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e33b6b4f': Permission denied
21 verbose exit [ 1, true ]"><pre class="notranslate"><code class="notranslate">12 silly fetchPackageMetaData error for git+https://github.com/richRemer/pool.git Command failed: /usr/bin/git clone -q https://github.com/richRemer/pool.git /root/.npm/_cacache/tmp/git-clone-e33b6b4f
12 silly fetchPackageMetaData fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e33b6b4f': Permission denied
13 verbose stack Error: Command failed: /usr/bin/git clone -q https://github.com/richRemer/pool.git /root/.npm/_cacache/tmp/git-clone-e33b6b4f
13 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e33b6b4f': Permission denied
13 verbose stack
13 verbose stack at ChildProcess.exithandler (child_process.js:294:12)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Socket.stream.socket.on (internal/child_process.js:389:11)
13 verbose stack at Socket.emit (events.js:189:13)
13 verbose stack at Pipe._handle.close (net.js:600:12)
14 verbose cwd /home/rremer
15 verbose Linux 5.3.0-24-generic
16 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "git+https://github.com/richRemer/pool.git"
17 verbose node v10.15.2
18 verbose npm v5.8.0
19 error code 128
20 error Command failed: /usr/bin/git clone -q https://github.com/richRemer/pool.git /root/.npm/_cacache/tmp/git-clone-e33b6b4f
20 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e33b6b4f': Permission denied
21 verbose exit [ 1, true ]
</code></pre></div>
<h2 dir="auto">When</h2>
<ul dir="auto">
<li>happens when using "... install -g git+https://..."</li>
<li>happens with all repos, public or private, but ultimately I'm trying to solve this for private repos</li>
<li>happens whether I use "sudo -H" or if switch to root user and run directly</li>
</ul>
<h2 dir="auto">Where</h2>
<ul dir="auto">
<li>n/a</li>
</ul>
<h2 dir="auto">How</h2>
<h3 dir="auto">Current Behavior</h3>
<ul dir="auto">
<li>fails to install global packages from GitHub</li>
</ul>
<h3 dir="auto">Steps to Reproduce</h3>
<ul dir="auto">
<li>run the following command</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sudo -H npm install -g git+https://github.com/richRemer/pool.git"><pre class="notranslate"><code class="notranslate">sudo -H npm install -g git+https://github.com/richRemer/pool.git
</code></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<ul dir="auto">
<li>it should work the same as running:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/richRemer/pool.git
sudo -H npm install -g $(npm pack pool/)"><pre class="notranslate"><code class="notranslate">git clone https://github.com/richRemer/pool.git
sudo -H npm install -g $(npm pack pool/)
</code></pre></div>
<h2 dir="auto">Who</h2>
<ul dir="auto">
<li>n/a</li>
</ul>
<h2 dir="auto">References</h2>
<ul dir="auto">
<li><a href="https://docs.npmjs.com/cli/install" rel="nofollow">https://docs.npmjs.com/cli/install</a> (git+https syntax)</li>
<li><a href="https://stackoverflow.com/questions/11542846/nvm-node-js-recommended-install-for-all-users#comment-58129097" rel="nofollow">https://stackoverflow.com/questions/11542846/nvm-node-js-recommended-install-for-all-users#comment-58129097</a> (using nvm is a non-starter)</li>
</ul> | <h1 dir="auto">What / Why</h1>
<p dir="auto">This bug is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="521884660" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/476" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/476/hovercard?comment_id=553917541&comment_type=issue_comment" href="https://github.com/npm/cli/issues/476#issuecomment-553917541">#476 (comment)</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="527439839" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/514" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/514/hovercard" href="https://github.com/npm/cli/issues/514">#514</a></p>
<h2 dir="auto">When</h2>
<p dir="auto"><code class="notranslate">npm install</code> packages from git in docker</p>
<h2 dir="auto">Where</h2>
<ul dir="auto">
<li>packages from public git repositories</li>
</ul>
<h2 dir="auto">How</h2>
<h3 dir="auto">Current Behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# npm i
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b v2.0.5 git://github.com/boblauer/MockDate.git /root/.npm/_cacache/tmp/git-clone-c9699b7f
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c9699b7f': Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-23T09_49_05_990Z-debug.log"><pre class="notranslate"><code class="notranslate"># npm i
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b v2.0.5 git://github.com/boblauer/MockDate.git /root/.npm/_cacache/tmp/git-clone-c9699b7f
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c9699b7f': Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-23T09_49_05_990Z-debug.log
</code></pre></div>
<h3 dir="auto">Steps to Reproduce</h3>
<ul dir="auto">
<li>Create simple package.json with git dependency</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"name": "test-npm",
"dependencies": {
"mockdate": "git://github.com/boblauer/MockDate.git#v2.0.5"
}
}"><pre class="notranslate"><code class="notranslate">{
"name": "test-npm",
"dependencies": {
"mockdate": "git://github.com/boblauer/MockDate.git#v2.0.5"
}
}
</code></pre></div>
<ul dir="auto">
<li>run <code class="notranslate">docker run --network=host -it -v $(pwd):/var/work/test -w /var/work/test node:12.14.0 /bin/bash</code></li>
<li><code class="notranslate">ls -l</code> shows that files are owned by unknown user and unknown group (this is typical behaviour on build agents like teamcity, teamcity clones git repo and mounts it inside docker container)</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ls -l
-rw-r--r-- 1 20857 115755 114 Dec 23 09:46 package.json"><pre class="notranslate"><code class="notranslate"># ls -l
-rw-r--r-- 1 20857 115755 114 Dec 23 09:46 package.json
</code></pre></div>
<ul dir="auto">
<li>run <code class="notranslate">npm install</code></li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Depends on environment you can get
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b v2.0.5 git://github.com/boblauer/MockDate.git /root/.npm/_cacache/tmp/git-clone-c9699b7f
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c9699b7f': Permission denied
npm ERR!
# or
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@<private server>/admin-template.git
npm ERR!
npm ERR! No user exists for uid 1000
npm ERR! fatal: Could not read from remote repository."><pre class="notranslate"><code class="notranslate"># Depends on environment you can get
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b v2.0.5 git://github.com/boblauer/MockDate.git /root/.npm/_cacache/tmp/git-clone-c9699b7f
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c9699b7f': Permission denied
npm ERR!
# or
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@<private server>/admin-template.git
npm ERR!
npm ERR! No user exists for uid 1000
npm ERR! fatal: Could not read from remote repository.
</code></pre></div>
<ul dir="auto">
<li>run <code class="notranslate">npm i -g [email protected]</code> (downgrade to npm 6.10.X)</li>
<li>run <code class="notranslate">npm install</code></li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# all works well!
updated 1 package and audited 1 package in 1.355s
found 0 vulnerabilities"><pre class="notranslate"><code class="notranslate"># all works well!
updated 1 package and audited 1 package in 1.355s
found 0 vulnerabilities
</code></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<ul dir="auto">
<li><code class="notranslate">npm install</code> / <code class="notranslate">npm ci</code> works well like [email protected]</li>
</ul> | 1 |
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">I get three "Bullet list ends without a blank line; unexpected unindent." warnings when I 'make html' in sqlalchemy/doc/build.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(mydevenv)diana@diana-laptop:~/workspace/sqlalchemy/doc/build$ make html
mkdir -p output/html output/doctrees
sphinx-build -b html -A mako_layout=html -d output/doctrees . output/html
Running Sphinx v0.6.4
loading pickled environment... not found
building [html](html): targets for 43 source files that are out of date
updating environment: 43 added, 0 changed, 0 removed
reading sources... [100%](100%) sqlexpression
/home/diana/workspace/sqlalchemy/doc/build/dbengine.rst:67: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.
/home/diana/workspace/sqlalchemy/doc/build/dbengine.rst:79: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.
/home/diana/workspace/sqlalchemy/doc/build/dbengine.rst:85: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.
/home/diana/workspace/sqlalchemy/doc/build/intro.rst:: (WARNING/2) Duplicate explicit target name: "setuptools".
looking for now-outdated files... none found
pickling environment... done
checking consistency... /home/diana/workspace/sqlalchemy/doc/build/copyright.rst:: WARNING: document isn't included in any toctree
done
preparing documents... done
writing output... [100%](100%) sqlexpression
writing additional files... genindex search
copying images... sqla_arch_small.jpg
copying static files... done
dumping search index... done
dumping object inventory... done
build succeeded, 5 warnings."><pre class="notranslate"><code class="notranslate">(mydevenv)diana@diana-laptop:~/workspace/sqlalchemy/doc/build$ make html
mkdir -p output/html output/doctrees
sphinx-build -b html -A mako_layout=html -d output/doctrees . output/html
Running Sphinx v0.6.4
loading pickled environment... not found
building [html](html): targets for 43 source files that are out of date
updating environment: 43 added, 0 changed, 0 removed
reading sources... [100%](100%) sqlexpression
/home/diana/workspace/sqlalchemy/doc/build/dbengine.rst:67: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.
/home/diana/workspace/sqlalchemy/doc/build/dbengine.rst:79: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.
/home/diana/workspace/sqlalchemy/doc/build/dbengine.rst:85: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.
/home/diana/workspace/sqlalchemy/doc/build/intro.rst:: (WARNING/2) Duplicate explicit target name: "setuptools".
looking for now-outdated files... none found
pickling environment... done
checking consistency... /home/diana/workspace/sqlalchemy/doc/build/copyright.rst:: WARNING: document isn't included in any toctree
done
preparing documents... done
writing output... [100%](100%) sqlexpression
writing additional files... genindex search
copying images... sqla_arch_small.jpg
copying static files... done
dumping search index... done
dumping object inventory... done
build succeeded, 5 warnings.
</code></pre></div>
<p dir="auto">The sphinx docs say:</p>
<p dir="auto">"Nested lists are possible, but be aware that they must be separated from the parent list items by blank lines:"</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="* this is
* a list
* with a nested list
* and some subitems
* and here the parent list continues"><pre class="notranslate"><code class="notranslate">* this is
* a list
* with a nested list
* and some subitems
* and here the parent list continues
</code></pre></div>
<p dir="auto"><a href="http://sphinx.pocoo.org/rest.html#lists-and-quotes" rel="nofollow">http://sphinx.pocoo.org/rest.html#lists-and-quotes</a></p>
<p dir="auto">Attached is a diff.</p>
<p dir="auto">Some 'id' attribute values change as a result of this diff -- I'm totally new to sphinx & not sure if this matters. For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(mydevenv)diana@diana-laptop:~/workspace/sqlalchemy/doc/build$ diff /home/diana/dbengine.html.before /home/diana/dbengine.html.after
53c53
< Version: <span class="versionnum">0.6beta2</span> Last Updated: 02/22/2010 13:50:25
---
> Version: <span class="versionnum">0.6beta2</span> Last Updated: 02/22/2010 13:49:03
292c292
< <p id="index-9">Connection facts:</p>
---
> <p id="index-7">Connection facts:</p>
339c339
< <p id="index-10">Transaction Facts:</p>
---
> <p id="index-8">Transaction Facts:</p>"><pre class="notranslate"><code class="notranslate">(mydevenv)diana@diana-laptop:~/workspace/sqlalchemy/doc/build$ diff /home/diana/dbengine.html.before /home/diana/dbengine.html.after
53c53
< Version: <span class="versionnum">0.6beta2</span> Last Updated: 02/22/2010 13:50:25
---
> Version: <span class="versionnum">0.6beta2</span> Last Updated: 02/22/2010 13:49:03
292c292
< <p id="index-9">Connection facts:</p>
---
> <p id="index-7">Connection facts:</p>
339c339
< <p id="index-10">Transaction Facts:</p>
---
> <p id="index-8">Transaction Facts:</p>
</code></pre></div>
<p dir="auto">Also, are there tests I should run for the docs? I did run 'python setup.pt test':</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Ran 2141 tests in 230.564s
OK"><pre class="notranslate"><code class="notranslate">Ran 2141 tests in 230.564s
OK
</code></pre></div>
<p dir="auto">Note that this is my first ever ticket and diff to an open source project, so please let me know if I'm doing something wrong.</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1700/sphinx-lists.diff">sphinx-lists.diff</a></p> | <p dir="auto">I'm trying to remove duplicates from my table by running the following SQL Server query:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WITH deldup AS (
SELECT name,
date_hour,
ROW_NUMBER() OVER (PARTITION BY name, date_hour ORDER BY value DESC) AS RN FROM testtable
)
DELETE FROM deldup WHERE RN > 1"><pre class="notranslate"><code class="notranslate">WITH deldup AS (
SELECT name,
date_hour,
ROW_NUMBER() OVER (PARTITION BY name, date_hour ORDER BY value DESC) AS RN FROM testtable
)
DELETE FROM deldup WHERE RN > 1
</code></pre></div>
<p dir="auto">where the table <strong>testtable</strong> has three columns:</p>
<ul dir="auto">
<li>name NVARCHAR(50) --represents sensor name</li>
<li>date_hour DATETIME --represents when the sensor value was taken</li>
<li>value INT --represents sensor value<br>
There should exist only one [name] and [date_hour] combination in table, but sometimes duplicates get inserted. By runing the above query, I'm trying to keep the row with the highest [value] and remove the rest.</li>
</ul>
<p dir="auto">I used to run the following code to do that in version 1.3.22:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import select, delete, text
q = select([text('''
name, date_hour, ROW_NUMBER() OVER(PARTITION BY name, date_hour ORDER BY value DESC) AS RN FROM testtable
''')])
cte = q.cte('deldup')
q2 = delete(cte, text("RN > 1"))
engn.execute(q2) #engn was previously created by create_engine()"><pre class="notranslate"><code class="notranslate">from sqlalchemy import select, delete, text
q = select([text('''
name, date_hour, ROW_NUMBER() OVER(PARTITION BY name, date_hour ORDER BY value DESC) AS RN FROM testtable
''')])
cte = q.cte('deldup')
q2 = delete(cte, text("RN > 1"))
engn.execute(q2) #engn was previously created by create_engine()
</code></pre></div>
<p dir="auto">However, the same code does not run in version 1.4.15 producing the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ArgumentError Traceback (most recent call last)
<ipython-input-37-1ca2629b15cf> in <module>
3 ''')])
4 cte = q.cte('deldup')
----> 5 q2 = delete(cte, text("RN > 1"))
6 engn.execute(q2) #engn was previously created by create_engine()
<string> in delete(table, whereclause, bind, returning, prefixes, **dialect_kw)
<string> in __init__(self, table, whereclause, bind, returning, prefixes, **dialect_kw)
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\util\deprecations.py in warned(fn, *args, **kwargs)
296 stacklevel=3,
297 )
--> 298 return fn(*args, **kwargs)
299
300 doc = fn.__doc__ is not None and fn.__doc__ or ""
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\dml.py in __init__(self, table, whereclause, bind, returning, prefixes, **dialect_kw)
1414 self._bind = bind
1415 self.table = coercions.expect(
-> 1416 roles.DMLTableRole, table, apply_propagate_attrs=self
1417 )
1418 if returning:
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\coercions.py in expect(role, element, apply_propagate_attrs, argname, post_inspect, **kw)
199 else:
200 return impl._implicit_coercions(
--> 201 original_element, resolved, argname=argname, **kw
202 )
203
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\coercions.py in _implicit_coercions(self, element, resolved, argname, **kw)
240
241 def _implicit_coercions(self, element, resolved, argname=None, **kw):
--> 242 self._raise_for_expected(element, argname, resolved)
243
244 def _raise_for_expected(
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\coercions.py in _raise_for_expected(self, element, argname, resolved, **kw)
428 advice=advice,
429 code=code,
--> 430 **kw
431 )
432
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\coercions.py in _raise_for_expected(self, element, argname, resolved, advice, code, err)
268 msg += " " + advice
269
--> 270 util.raise_(exc.ArgumentError(msg, code=code), replace_context=err)
271
272
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\util\compat.py in raise_(***failed resolving arguments***)
209
210 try:
--> 211 raise exception
212 finally:
213 # credit to
ArgumentError: subject table for an INSERT, UPDATE or DELETE expected, got <sqlalchemy.sql.selectable.CTE at 0x1b1ff07e708; deldup>."><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
ArgumentError Traceback (most recent call last)
<ipython-input-37-1ca2629b15cf> in <module>
3 ''')])
4 cte = q.cte('deldup')
----> 5 q2 = delete(cte, text("RN > 1"))
6 engn.execute(q2) #engn was previously created by create_engine()
<string> in delete(table, whereclause, bind, returning, prefixes, **dialect_kw)
<string> in __init__(self, table, whereclause, bind, returning, prefixes, **dialect_kw)
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\util\deprecations.py in warned(fn, *args, **kwargs)
296 stacklevel=3,
297 )
--> 298 return fn(*args, **kwargs)
299
300 doc = fn.__doc__ is not None and fn.__doc__ or ""
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\dml.py in __init__(self, table, whereclause, bind, returning, prefixes, **dialect_kw)
1414 self._bind = bind
1415 self.table = coercions.expect(
-> 1416 roles.DMLTableRole, table, apply_propagate_attrs=self
1417 )
1418 if returning:
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\coercions.py in expect(role, element, apply_propagate_attrs, argname, post_inspect, **kw)
199 else:
200 return impl._implicit_coercions(
--> 201 original_element, resolved, argname=argname, **kw
202 )
203
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\coercions.py in _implicit_coercions(self, element, resolved, argname, **kw)
240
241 def _implicit_coercions(self, element, resolved, argname=None, **kw):
--> 242 self._raise_for_expected(element, argname, resolved)
243
244 def _raise_for_expected(
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\coercions.py in _raise_for_expected(self, element, argname, resolved, **kw)
428 advice=advice,
429 code=code,
--> 430 **kw
431 )
432
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\sql\coercions.py in _raise_for_expected(self, element, argname, resolved, advice, code, err)
268 msg += " " + advice
269
--> 270 util.raise_(exc.ArgumentError(msg, code=code), replace_context=err)
271
272
c:\users\new user\appdata\local\programs\python\python37\lib\site-packages\sqlalchemy\util\compat.py in raise_(***failed resolving arguments***)
209
210 try:
--> 211 raise exception
212 finally:
213 # credit to
ArgumentError: subject table for an INSERT, UPDATE or DELETE expected, got <sqlalchemy.sql.selectable.CTE at 0x1b1ff07e708; deldup>.
</code></pre></div>
<p dir="auto">No matter how hard I try, I keep encountering the same error at <code class="notranslate">delete(cte)</code> part. Are CTEs not usable in Insert/Update/Delete anymore? If not, how can I achieve the functionality of the SQL query I listed at the top?</p>
<p dir="auto">Thank you for going through my long long ticket. I'll be looking forward to your replies :)</p> | 0 |
<h2 dir="auto">Bug</h2>
<h3 dir="auto">Input Code</h3>
<p dir="auto">Here is link to <a href="https://babeljs.io/repl/#?babili=false&browsers=&build=&builtIns=false&code_lz=MYGwhgzhAECyCeswAdoFMAeAXNA7AJjEqgN4BQ0l0wA9rhFgE4CuwWNjAFAJTTlUDoEZsjRduAbgpUAvtMo4GPPvMGM0WZo1zQARAAkwIEDWgB3DiHy6pAuXIBuYRtAC2iFNAC80XGjNwHsg8UrT0NCBoAHQmAOac7sTQAJb0WGC4wGg0AGaBxJJkYRAR0XEJQVGKWDyFAPR1AMRCNFpZxMipsQCqAEoAMl7E3bjJdFEAVhBRrihAA&debug=false&circleciRepo=&evaluate=true&lineWrap=false&presets=es2015&targets=&version=6.26.0" rel="nofollow">babel playground</a></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyMap extends Map {
constructor() {
super();
}
test() {
return "Hallo world";
}
}
var myMap = new MyMap();
console.log(myMap instanceof MyMap);
console.log(myMap.test());"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyMap</span> <span class="pl-k">extends</span> <span class="pl-v">Map</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s">"Hallo world"</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">myMap</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">MyMap</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">myMap</span> <span class="pl-k">instanceof</span> <span class="pl-v">MyMap</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">myMap</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": [
"env"
]
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"env"</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Should output in console:<br>
true<br>
"Hallo world"</p>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">If I run it in Chrome v61 directly - works fine, but if I precompile it with babel then the following error logged:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Constructor Map requires 'new'
at MyMap.Map (<anonymous>)
at new MyMap (<anonymous>:17:99)
at <anonymous>:30:13"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Constructor Map requires 'new'
at MyMap.Map (<anonymous>)
at new MyMap (<anonymous>:17:99)
at <anonymous>:30:13
</code></pre></div>
<h3 dir="auto">Possible Solution</h3>
<p dir="auto">There is a way to identify if the function is class by executing ".arguments" or ".caller". For regular functions it will return a value or undefined. But for classes (custom or system, like Map or Set) it will throw error <code class="notranslate">'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them</code> - maybe this can be used to solve this</p>
<h3 dir="auto">Context</h3>
<p dir="auto">Cannot extend Map class</p>
<h3 dir="auto">Your Environment</h3>
<table role="table">
<thead>
<tr>
<th>software</th>
<th>version(s)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Babel</td>
<td>6.26.0 latest available online at 10/9/2017</td>
</tr>
<tr>
<td>node</td>
<td>n/a</td>
</tr>
<tr>
<td>npm</td>
<td>n/a</td>
</tr>
<tr>
<td>Operating System</td>
<td>Win7 x64</td>
</tr>
</tbody>
</table> | <p dir="auto">Current Babel transform, when it comes to call the parent</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function _possibleConstructorReturn(self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">_possibleConstructorReturn</span><span class="pl-kos">(</span><span class="pl-s1">self</span><span class="pl-kos">,</span> <span class="pl-s1">call</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">ReferenceError</span><span class="pl-kos">(</span><span class="pl-s">"this hasn't been initialised - super() hasn't been called"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-s1">call</span> <span class="pl-c1">&&</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">call</span> <span class="pl-c1">===</span> <span class="pl-s">"object"</span> <span class="pl-c1">||</span> <span class="pl-k">typeof</span> <span class="pl-s1">call</span> <span class="pl-c1">===</span> <span class="pl-s">"function"</span><span class="pl-kos">)</span> ? <span class="pl-s1">call</span> : <span class="pl-s1">self</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">It's a way too poor implementation.</p>
<p dir="auto">If we take the current basic ES6 compat syntax:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class List extends Array {}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">List</span> <span class="pl-k">extends</span> <span class="pl-v">Array</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">We'll realize babel does a bad job.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var l = new List();
l instanceof List; // false"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">l</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">List</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">l</span> <span class="pl-k">instanceof</span> <span class="pl-v">List</span><span class="pl-kos">;</span> <span class="pl-c">// false</span></pre></div>
<p dir="auto">The reason is simple: Babel replace the returns and exit, without caring about userland expectations.</p>
<p dir="auto">This is how above basic extend should desugar:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function List() {
return Object.setPrototypeOf(
Array.apply(this, arguments),
List.prototype
);
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">List</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span>
<span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">It's a very ad-hoc case for the initial example that currently fails, but it's good enough to understand that inheriting the prototype is the least of the problem.</p>
<p dir="auto">Indeed, we have 3 ways to do that within a transpiled code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// losing the initial prototype
// for polyfilled ES5+ or lower
List.prototype = Object.create(
Array.prototype,
{constructor: {
configurable: true,
writable: true,
value: List.prototype
}}
);
// using a cleaner way
// for ES5+ compliant targets
Object.setPrototypeOf(
List.prototype,
Array.prototype
);
// using a cleaner way
// that works well with
// partially polyfilled .setPrototypeOf
List.prototype = Object.setPrototypeOf(
List.prototype,
Array.prototype
);"><pre class="notranslate"><span class="pl-c">// losing the initial prototype</span>
<span class="pl-c">// for polyfilled ES5+ or lower</span>
<span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span>
<span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span><span class="pl-c1">constructor</span>: <span class="pl-kos">{</span>
<span class="pl-c1">configurable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">writable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">value</span>: <span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span>
<span class="pl-kos">}</span><span class="pl-kos">}</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// using a cleaner way</span>
<span class="pl-c">// for ES5+ compliant targets</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span>
<span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span>
<span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// using a cleaner way</span>
<span class="pl-c">// that works well with</span>
<span class="pl-c">// partially polyfilled .setPrototypeOf</span>
<span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span>
<span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span>
<span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Solved the inheritance bit, considering Babel also set the prototype of each constructor,<br>
we need to address cases where a <code class="notranslate">super</code> call might "<em>upgrade</em>" the current context, like it is for <code class="notranslate">HTMLELement</code> or exotic native objects.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// native ES6 static example
class List extends Array {
constructor(a, b, c) {
super(a, b);
this.push(c);
}
}"><pre class="notranslate"><span class="pl-c">// native ES6 static example</span>
<span class="pl-k">class</span> <span class="pl-v">List</span> <span class="pl-k">extends</span> <span class="pl-v">Array</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Above case should desugar to something like the follwoing:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function List(a, b, c) {
// the super bit
var self = Object.setPrototypeOf(
Array.call(this, a, b),
List.prototype
);
// the rest with swapped context
self.push(c);
// at the end
return self;
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">List</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// the super bit</span>
<span class="pl-k">var</span> <span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span>
<span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// the rest with swapped context</span>
<span class="pl-s1">self</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// at the end</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">which is also ad-hoc example code for the previous example.</p>
<p dir="auto">Considering a transpiler will get the arguments part easily right, this is how previous case could be generically transpiled for arguments used in both constructors:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// to make it as generic as possible
function Child() {
// the super call bit desugar to ...
var
instance = Object.getPrototypeOf(Child)
.apply(this, arguments),
type = instance ? typeof instance : '',
// if Parent overwrote its default return
self = (type === 'object' || type === 'function') ?
// upgrade the instance to reflect Child constructor
Object.setPrototypeOf(instance, Child.prototype) :
// otherwise use the current context as is
this
;
// at this point, the rest of the constructor
// should use `self` instead of `this`
self.push(c);
// and return `self` reference at the end
return self;
}"><pre class="notranslate"><span class="pl-c">// to make it as generic as possible</span>
<span class="pl-k">function</span> <span class="pl-v">Child</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// the super call bit desugar to ...</span>
<span class="pl-k">var</span>
<span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">getPrototypeOf</span><span class="pl-kos">(</span><span class="pl-v">Child</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-s1">instance</span> ? <span class="pl-k">typeof</span> <span class="pl-s1">instance</span> : <span class="pl-s">''</span><span class="pl-kos">,</span>
<span class="pl-c">// if Parent overwrote its default return</span>
<span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'object'</span> <span class="pl-c1">||</span> <span class="pl-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span><span class="pl-kos">)</span> ?
<span class="pl-c">// upgrade the instance to reflect Child constructor</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">,</span> <span class="pl-v">Child</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">)</span> :
<span class="pl-c">// otherwise use the current context as is</span>
<span class="pl-smi">this</span>
<span class="pl-kos">;</span>
<span class="pl-c">// at this point, the rest of the constructor</span>
<span class="pl-c">// should use `self` instead of `this`</span>
<span class="pl-s1">self</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// and return `self` reference at the end</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">The last problem is that modern syntax would use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect" rel="nofollow">Reflect</a> to create any sort of object, instead of old, ES3 friendly, <code class="notranslate">.call</code> or <code class="notranslate">.apply</code> way.</p>
<p dir="auto">Following a past, present, and even future proof approach:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var
reConstruct = typeof Reflect === 'object' ?
Reflect.construct :
function (Parent, args, Child) {
return Parent.apply(this, args);
}
;
function Child() {
// the super call bit
var
instance = reConstruct.call(
this,
Object.getPrototypeOf(Child),
arguments,
Child
),
type = instance ? typeof instance : '',
self = (type === 'object' || type === 'function') ?
Object.setPrototypeOf(instance, Child.prototype) :
this
;
// the rest of the constructor body
self.push(c);
// at the end or instead of empty returns
return self;
}"><pre class="notranslate"><span class="pl-k">var</span>
<span class="pl-s1">reConstruct</span> <span class="pl-c1">=</span> <span class="pl-k">typeof</span> <span class="pl-v">Reflect</span> <span class="pl-c1">===</span> <span class="pl-s">'object'</span> ?
<span class="pl-v">Reflect</span><span class="pl-kos">.</span><span class="pl-c1">construct</span> :
<span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Parent</span><span class="pl-kos">,</span> <span class="pl-s1">args</span><span class="pl-kos">,</span> <span class="pl-v">Child</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-v">Parent</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-v">Child</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// the super call bit</span>
<span class="pl-k">var</span>
<span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-s1">reConstruct</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span>
<span class="pl-smi">this</span><span class="pl-kos">,</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">getPrototypeOf</span><span class="pl-kos">(</span><span class="pl-v">Child</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-smi">arguments</span><span class="pl-kos">,</span>
<span class="pl-v">Child</span>
<span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-s1">instance</span> ? <span class="pl-k">typeof</span> <span class="pl-s1">instance</span> : <span class="pl-s">''</span><span class="pl-kos">,</span>
<span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'object'</span> <span class="pl-c1">||</span> <span class="pl-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span><span class="pl-kos">)</span> ?
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">,</span> <span class="pl-v">Child</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">)</span> :
<span class="pl-smi">this</span>
<span class="pl-kos">;</span>
<span class="pl-c">// the rest of the constructor body</span>
<span class="pl-s1">self</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// at the end or instead of empty returns</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Above solution would work with userland, exotic, or DOM constructors, and in both native and transpiled engines.</p> | 1 |
<h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from typing import Tuple
from fastapi import FastAPI
from pydantic import BaseModel
class FooArgs(BaseModel):
bars: Tuple[str, str]
app = FastAPI()
@app.post("/foo")
def foo(args: FooArgs):
..."><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Tuple</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>
<span class="pl-k">from</span> <span class="pl-s1">pydantic</span> <span class="pl-k">import</span> <span class="pl-v">BaseModel</span>
<span class="pl-k">class</span> <span class="pl-v">FooArgs</span>(<span class="pl-v">BaseModel</span>):
<span class="pl-s1">bars</span>: <span class="pl-v">Tuple</span>[<span class="pl-s1">str</span>, <span class="pl-s1">str</span>]
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">"/foo"</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">args</span>: <span class="pl-v">FooArgs</span>):
...</pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">If you try to retrieve the <code class="notranslate">/openapi.json</code>, the FooArgs get a validation error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File ".../lib/python3.9/site-packages/fastapi/openapi/utils.py", line 410, in get_openapi
return jsonable_encoder(OpenAPI(**output), by_alias=True, exclude_none=True) # type: ignore
File "pydantic/main.py", line 406, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 2 validation errors for OpenAPI
components -> schemas -> FooArgs -> properties -> bars -> items
value is not a valid dict (type=type_error.dict)
components -> schemas -> FooArgs -> $ref
field required (type=value_error.missing)"><pre class="notranslate"><code class="notranslate"> File ".../lib/python3.9/site-packages/fastapi/openapi/utils.py", line 410, in get_openapi
return jsonable_encoder(OpenAPI(**output), by_alias=True, exclude_none=True) # type: ignore
File "pydantic/main.py", line 406, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 2 validation errors for OpenAPI
components -> schemas -> FooArgs -> properties -> bars -> items
value is not a valid dict (type=type_error.dict)
components -> schemas -> FooArgs -> $ref
field required (type=value_error.missing)
</code></pre></div>
<p dir="auto">This error is new to <code class="notranslate">fastapi>=0.68</code>, it <strong>does not</strong> happen with <code class="notranslate">fastapi==0.67.0</code>.</p>
<p dir="auto">I think this is related to Pydantic coercing <code class="notranslate">Tuple[str, str]</code> into <code class="notranslate">Dict[str, str]</code> somewhere?</p>
<p dir="auto">Things that don't cause this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class FooArgs(BaseModel):
bars: Tuple[str]"><pre class="notranslate"><code class="notranslate">class FooArgs(BaseModel):
bars: Tuple[str]
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class FooArgs(BaseModel):
bars: Tuple[str, ...]"><pre class="notranslate"><code class="notranslate">class FooArgs(BaseModel):
bars: Tuple[str, ...]
</code></pre></div>
<p dir="auto">This that do cause this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class FooArgs(BaseModel):
bars: Tuple[str, str]"><pre class="notranslate"><code class="notranslate">class FooArgs(BaseModel):
bars: Tuple[str, str]
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class FooArgs(BaseModel):
bars: Tuple[int, str]"><pre class="notranslate"><code class="notranslate">class FooArgs(BaseModel):
bars: Tuple[int, str]
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class FooArgs(BaseModel):
bars: Tuple[str, str, str] # etc."><pre class="notranslate"><code class="notranslate">class FooArgs(BaseModel):
bars: Tuple[str, str, str] # etc.
</code></pre></div>
<h3 dir="auto">Operating System</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.68.1</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">3.9.1 (also seeing this in 3.8.*)</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto">Seems pretty likely that this commit introduced it, but there's a lot going on so I'm not sure where:</p>
<p dir="auto"><a class="commit-link" href="https://github.com/tiangolo/fastapi/commit/97fa743ecb5a716fa0223a7463cb83f3f0df494c#diff-4939896f79697822446463d5d6dfbf7a0ea5805c46565d355c7305d86f3405c7"><tt>97fa743</tt>#diff-4939896f79697822446463d5d6dfbf7a0ea5805c46565d355c7305d86f3405c7</a></p> | <h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# main.py
import uvicorn
from fastapi import FastAPI, Form
app = FastAPI()
@app.post("/")
def hello(arg: tuple[int, int] = Form(...)) -> str:
pass
if __name__ == "__main__":
uvicorn.run("main:app", port=8080)"><pre class="notranslate"><span class="pl-c"># main.py</span>
<span class="pl-k">import</span> <span class="pl-s1">uvicorn</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>, <span class="pl-v">Form</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">"/"</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">hello</span>(<span class="pl-s1">arg</span>: <span class="pl-s1">tuple</span>[<span class="pl-s1">int</span>, <span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Form</span>(...)) <span class="pl-c1">-></span> <span class="pl-s1">str</span>:
<span class="pl-k">pass</span>
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>:
<span class="pl-s1">uvicorn</span>.<span class="pl-en">run</span>(<span class="pl-s">"main:app"</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">8080</span>)</pre></div>
<h3 dir="auto">Description</h3>
<ol dir="auto">
<li>Run <code class="notranslate">pip install uvicorn fastapi==0.68.0</code>.</li>
<li>Run <code class="notranslate">python ./main.py</code></li>
<li>Hit <code class="notranslate">localhost:8080/docs</code>, observe internal server error with below validation errors:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pydantic.error_wrappers.ValidationError: 2 validation errors for OpenAPI
components -> schemas -> Body_hello__post -> properties -> arg -> items
value is not a valid dict (type=type_error.dict)
components -> schemas -> Body_hello__post -> $ref
field required (type=value_error.missing)"><pre class="notranslate"><code class="notranslate">pydantic.error_wrappers.ValidationError: 2 validation errors for OpenAPI
components -> schemas -> Body_hello__post -> properties -> arg -> items
value is not a valid dict (type=type_error.dict)
components -> schemas -> Body_hello__post -> $ref
field required (type=value_error.missing)
</code></pre></div>
<ol start="4" dir="auto">
<li>Run <code class="notranslate">pip install fastapi==0.67.0</code></li>
<li>Hit <code class="notranslate">localhost:8080/docs</code>, observe that endpoint documentation is successfully generated.</li>
</ol>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Linux</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto">Ubuntu 20.04</p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.68.0 has bug, 0.67.0 does not have bug.</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">3.9</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto">Any use of <code class="notranslate">tuple</code> in an input (<code class="notranslate">Form</code>, and <code class="notranslate">BaseModel</code> as JSON) or output (<code class="notranslate">BaseModel</code> as JSON) results in above error.</p> | 1 |
<p dir="auto">I have observed that there is large increase in computation time when differentiating through a loss that involves index a complex128-valued array. Consider the following demo script.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import argparse
import time
import jax.numpy as jnp
from jax import jit, grad
from jax import random
from jax.config import config
parser = argparse.ArgumentParser(description='Complex indexing and gradients in JAX')
parser.add_argument('--complex', default=True, dest='complex', action='store_true', help='Index a complex-valued object')
parser.add_argument('--no-complex', dest='complex', action='store_false')
parser.add_argument('--double', default=True, dest='double', action='store_true', help='Use double precision')
parser.add_argument('--no-double', dest='double', action='store_false')
parser.add_argument('--index', default=True, dest='index', action='store_true', help='Index the object inside the loss')
parser.add_argument('--no-index', dest='index', action='store_false')
args = parser.parse_args()
if args.double:
config.update("jax_enable_x64", True)
def loss(fvol, idx):
# Define a loss function that either indexes or does not index the array.
if args.index:
vv = fvol[idx].sum([-1])
# Doing this is fast again in complex-128.
# fvol_real = fvol.real[idx]
# fvol_imag = fvol.imag[idx]
# vv = jnp.sum(fvol_real + 1j*fvol_imag, [-1])
else:
vv = fvol
return jnp.square(jnp.linalg.norm(vv))
@jit
def loss_grad(fvol, idx):
return grad(loss)(fvol, idx)
# Create a large array.
rng = random.PRNGKey(0)
rng_real, rng_imag = random.split(rng, 2)
L = 256
fvol = random.normal(rng_real, [L**3])
if args.complex:
fvol += 1j * random.normal(rng_imag, fvol.shape)
dtype = fvol.dtype
idx = random.randint(rng, [L*L*8], minval=0, maxval=L)
# Time how long it takes to compute the loss.
for i in range(3):
start = time.time()
lv = loss(fvol, idx)
lv.block_until_ready()
elapsed = time.time() - start
print('object data: {} - time elapsed to evaluate loss: {:.5f}'.format(dtype, elapsed))
# Time how long it takes to compute the gradient of the loss.
for i in range(3):
start = time.time()
g = loss_grad(fvol, idx)
g.block_until_ready()
elapsed = time.time() - start
print('object data: {} - time elapsed to evaluate gradient: {:.5f}'.format(dtype, elapsed))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">argparse</span>
<span class="pl-k">import</span> <span class="pl-s1">time</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-k">from</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">jit</span>, <span class="pl-s1">grad</span>
<span class="pl-k">from</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">random</span>
<span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">config</span> <span class="pl-k">import</span> <span class="pl-s1">config</span>
<span class="pl-s1">parser</span> <span class="pl-c1">=</span> <span class="pl-s1">argparse</span>.<span class="pl-v">ArgumentParser</span>(<span class="pl-s1">description</span><span class="pl-c1">=</span><span class="pl-s">'Complex indexing and gradients in JAX'</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">'--complex'</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">'complex'</span>, <span class="pl-s1">action</span><span class="pl-c1">=</span><span class="pl-s">'store_true'</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">'Index a complex-valued object'</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">'--no-complex'</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">'complex'</span>, <span class="pl-s1">action</span><span class="pl-c1">=</span><span class="pl-s">'store_false'</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">'--double'</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">'double'</span>, <span class="pl-s1">action</span><span class="pl-c1">=</span><span class="pl-s">'store_true'</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">'Use double precision'</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">'--no-double'</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">'double'</span>, <span class="pl-s1">action</span><span class="pl-c1">=</span><span class="pl-s">'store_false'</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">'--index'</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">'index'</span>, <span class="pl-s1">action</span><span class="pl-c1">=</span><span class="pl-s">'store_true'</span>, <span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">'Index the object inside the loss'</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">'--no-index'</span>, <span class="pl-s1">dest</span><span class="pl-c1">=</span><span class="pl-s">'index'</span>, <span class="pl-s1">action</span><span class="pl-c1">=</span><span class="pl-s">'store_false'</span>)
<span class="pl-s1">args</span> <span class="pl-c1">=</span> <span class="pl-s1">parser</span>.<span class="pl-en">parse_args</span>()
<span class="pl-k">if</span> <span class="pl-s1">args</span>.<span class="pl-s1">double</span>:
<span class="pl-s1">config</span>.<span class="pl-en">update</span>(<span class="pl-s">"jax_enable_x64"</span>, <span class="pl-c1">True</span>)
<span class="pl-k">def</span> <span class="pl-en">loss</span>(<span class="pl-s1">fvol</span>, <span class="pl-s1">idx</span>):
<span class="pl-c"># Define a loss function that either indexes or does not index the array.</span>
<span class="pl-k">if</span> <span class="pl-s1">args</span>.<span class="pl-s1">index</span>:
<span class="pl-s1">vv</span> <span class="pl-c1">=</span> <span class="pl-s1">fvol</span>[<span class="pl-s1">idx</span>].<span class="pl-en">sum</span>([<span class="pl-c1">-</span><span class="pl-c1">1</span>])
<span class="pl-c"># Doing this is fast again in complex-128.</span>
<span class="pl-c"># fvol_real = fvol.real[idx]</span>
<span class="pl-c"># fvol_imag = fvol.imag[idx]</span>
<span class="pl-c"># vv = jnp.sum(fvol_real + 1j*fvol_imag, [-1])</span>
<span class="pl-k">else</span>:
<span class="pl-s1">vv</span> <span class="pl-c1">=</span> <span class="pl-s1">fvol</span>
<span class="pl-k">return</span> <span class="pl-s1">jnp</span>.<span class="pl-en">square</span>(<span class="pl-s1">jnp</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">norm</span>(<span class="pl-s1">vv</span>))
<span class="pl-en">@<span class="pl-s1">jit</span></span>
<span class="pl-k">def</span> <span class="pl-en">loss_grad</span>(<span class="pl-s1">fvol</span>, <span class="pl-s1">idx</span>):
<span class="pl-k">return</span> <span class="pl-en">grad</span>(<span class="pl-s1">loss</span>)(<span class="pl-s1">fvol</span>, <span class="pl-s1">idx</span>)
<span class="pl-c"># Create a large array.</span>
<span class="pl-s1">rng</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">0</span>)
<span class="pl-s1">rng_real</span>, <span class="pl-s1">rng_imag</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">split</span>(<span class="pl-s1">rng</span>, <span class="pl-c1">2</span>)
<span class="pl-v">L</span> <span class="pl-c1">=</span> <span class="pl-c1">256</span>
<span class="pl-s1">fvol</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">rng_real</span>, [<span class="pl-v">L</span><span class="pl-c1">**</span><span class="pl-c1">3</span>])
<span class="pl-k">if</span> <span class="pl-s1">args</span>.<span class="pl-s1">complex</span>:
<span class="pl-s1">fvol</span> <span class="pl-c1">+=</span> <span class="pl-c1">1j</span> <span class="pl-c1">*</span> <span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">rng_imag</span>, <span class="pl-s1">fvol</span>.<span class="pl-s1">shape</span>)
<span class="pl-s1">dtype</span> <span class="pl-c1">=</span> <span class="pl-s1">fvol</span>.<span class="pl-s1">dtype</span>
<span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-s1">rng</span>, [<span class="pl-v">L</span><span class="pl-c1">*</span><span class="pl-v">L</span><span class="pl-c1">*</span><span class="pl-c1">8</span>], <span class="pl-s1">minval</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">maxval</span><span class="pl-c1">=</span><span class="pl-v">L</span>)
<span class="pl-c"># Time how long it takes to compute the loss.</span>
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">3</span>):
<span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>()
<span class="pl-s1">lv</span> <span class="pl-c1">=</span> <span class="pl-en">loss</span>(<span class="pl-s1">fvol</span>, <span class="pl-s1">idx</span>)
<span class="pl-s1">lv</span>.<span class="pl-en">block_until_ready</span>()
<span class="pl-s1">elapsed</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-c1">-</span> <span class="pl-s1">start</span>
<span class="pl-en">print</span>(<span class="pl-s">'object data: {} - time elapsed to evaluate loss: {:.5f}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">dtype</span>, <span class="pl-s1">elapsed</span>))
<span class="pl-c"># Time how long it takes to compute the gradient of the loss.</span>
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">3</span>):
<span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>()
<span class="pl-s1">g</span> <span class="pl-c1">=</span> <span class="pl-en">loss_grad</span>(<span class="pl-s1">fvol</span>, <span class="pl-s1">idx</span>)
<span class="pl-s1">g</span>.<span class="pl-en">block_until_ready</span>()
<span class="pl-s1">elapsed</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-c1">-</span> <span class="pl-s1">start</span>
<span class="pl-en">print</span>(<span class="pl-s">'object data: {} - time elapsed to evaluate gradient: {:.5f}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">dtype</span>, <span class="pl-s1">elapsed</span>))</pre></div>
<p dir="auto">I am running this demo script on a V100 GPU with jaxlib 0.1.57 with Python 3.6.9. When I invoke the demo as <code class="notranslate">python demo.py --complex --double --index</code> (meaning that I have a complex-valued array, double precision, and a loss function that involves indexing) I get the following result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="object data: complex128 - time elapsed to evaluate loss: 0.63968
object data: complex128 - time elapsed to evaluate loss: 0.03179
object data: complex128 - time elapsed to evaluate loss: 0.03082
object data: complex128 - time elapsed to evaluate gradient: 4.70996
object data: complex128 - time elapsed to evaluate gradient: 4.55858
object data: complex128 - time elapsed to evaluate gradient: 4.56153"><pre class="notranslate"><code class="notranslate">object data: complex128 - time elapsed to evaluate loss: 0.63968
object data: complex128 - time elapsed to evaluate loss: 0.03179
object data: complex128 - time elapsed to evaluate loss: 0.03082
object data: complex128 - time elapsed to evaluate gradient: 4.70996
object data: complex128 - time elapsed to evaluate gradient: 4.55858
object data: complex128 - time elapsed to evaluate gradient: 4.56153
</code></pre></div>
<p dir="auto">We see that it takes significantly longer to compute the gradient than the loss itself. If I invoke the script as <code class="notranslate">python demo.py --complex --double --no-index</code> (complex-valued array, double precision, and a loss that does not involve indexing) then things are better; the gradient calculation is ~3x the timing of the loss calculation.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="object data: complex128 - time elapsed to evaluate loss: 0.18214
object data: complex128 - time elapsed to evaluate loss: 0.00098
object data: complex128 - time elapsed to evaluate loss: 0.00059
object data: complex128 - time elapsed to evaluate gradient: 0.13375
object data: complex128 - time elapsed to evaluate gradient: 0.00175
object data: complex128 - time elapsed to evaluate gradient: 0.00148"><pre class="notranslate"><code class="notranslate">object data: complex128 - time elapsed to evaluate loss: 0.18214
object data: complex128 - time elapsed to evaluate loss: 0.00098
object data: complex128 - time elapsed to evaluate loss: 0.00059
object data: complex128 - time elapsed to evaluate gradient: 0.13375
object data: complex128 - time elapsed to evaluate gradient: 0.00175
object data: complex128 - time elapsed to evaluate gradient: 0.00148
</code></pre></div>
<p dir="auto">What about in single precision? Invoking the script as <code class="notranslate">python demo.py --complex --no-double --index</code> yields</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="object data: complex64 - time elapsed to evaluate loss: 0.60020
object data: complex64 - time elapsed to evaluate loss: 0.00300
object data: complex64 - time elapsed to evaluate loss: 0.00164
object data: complex64 - time elapsed to evaluate gradient: 0.18140
object data: complex64 - time elapsed to evaluate gradient: 0.03122
object data: complex64 - time elapsed to evaluate gradient: 0.03108"><pre class="notranslate"><code class="notranslate">object data: complex64 - time elapsed to evaluate loss: 0.60020
object data: complex64 - time elapsed to evaluate loss: 0.00300
object data: complex64 - time elapsed to evaluate loss: 0.00164
object data: complex64 - time elapsed to evaluate gradient: 0.18140
object data: complex64 - time elapsed to evaluate gradient: 0.03122
object data: complex64 - time elapsed to evaluate gradient: 0.03108
</code></pre></div>
<p dir="auto">The gradient calculation is around an order of magnitude slower. What about when we have an unindexed loss function using the invocation <code class="notranslate">python demo.py --complex --no-double --no-index</code>?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="object data: complex64 - time elapsed to evaluate loss: 0.17156
object data: complex64 - time elapsed to evaluate loss: 0.00114
object data: complex64 - time elapsed to evaluate loss: 0.00057
object data: complex64 - time elapsed to evaluate gradient: 0.11934
object data: complex64 - time elapsed to evaluate gradient: 0.00087
object data: complex64 - time elapsed to evaluate gradient: 0.00077"><pre class="notranslate"><code class="notranslate">object data: complex64 - time elapsed to evaluate loss: 0.17156
object data: complex64 - time elapsed to evaluate loss: 0.00114
object data: complex64 - time elapsed to evaluate loss: 0.00057
object data: complex64 - time elapsed to evaluate gradient: 0.11934
object data: complex64 - time elapsed to evaluate gradient: 0.00087
object data: complex64 - time elapsed to evaluate gradient: 0.00077
</code></pre></div>
<p dir="auto">Finally, what happens if I consider indexing a real-valued array instead of a complex one? Using the invocation <code class="notranslate">python demo.py --no-complex --double --index</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="object data: float64 - time elapsed to evaluate loss: 0.60958
object data: float64 - time elapsed to evaluate loss: 0.00578
object data: float64 - time elapsed to evaluate loss: 0.00180
object data: float64 - time elapsed to evaluate gradient: 0.13558
object data: float64 - time elapsed to evaluate gradient: 0.00106
object data: float64 - time elapsed to evaluate gradient: 0.00082"><pre class="notranslate"><code class="notranslate">object data: float64 - time elapsed to evaluate loss: 0.60958
object data: float64 - time elapsed to evaluate loss: 0.00578
object data: float64 - time elapsed to evaluate loss: 0.00180
object data: float64 - time elapsed to evaluate gradient: 0.13558
object data: float64 - time elapsed to evaluate gradient: 0.00106
object data: float64 - time elapsed to evaluate gradient: 0.00082
</code></pre></div>
<p dir="auto">and compare this to the first output I showed where the gradient calculation was around four seconds.</p>
<p dir="auto">I note in the demo script that there is a correction to the loss that will make the code fast again when run in double precision and indexing a complex-valued array. Replacing <code class="notranslate">vv = fvol[idx].sum([-1])</code> (line 25) with</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fvol_real = fvol.real[idx]
fvol_imag = fvol.imag[idx]
vv = jnp.sum(fvol_real + 1j*fvol_imag, [-1])"><pre class="notranslate"><span class="pl-s1">fvol_real</span> <span class="pl-c1">=</span> <span class="pl-s1">fvol</span>.<span class="pl-s1">real</span>[<span class="pl-s1">idx</span>]
<span class="pl-s1">fvol_imag</span> <span class="pl-c1">=</span> <span class="pl-s1">fvol</span>.<span class="pl-s1">imag</span>[<span class="pl-s1">idx</span>]
<span class="pl-s1">vv</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">sum</span>(<span class="pl-s1">fvol_real</span> <span class="pl-c1">+</span> <span class="pl-c1">1j</span><span class="pl-c1">*</span><span class="pl-s1">fvol_imag</span>, [<span class="pl-c1">-</span><span class="pl-c1">1</span>])</pre></div>
<p dir="auto">produces the output</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="object data: complex128 - time elapsed to evaluate loss: 0.92206
object data: complex128 - time elapsed to evaluate loss: 0.03364
object data: complex128 - time elapsed to evaluate loss: 0.03140
object data: complex128 - time elapsed to evaluate gradient: 0.20444
object data: complex128 - time elapsed to evaluate gradient: 0.06708
object data: complex128 - time elapsed to evaluate gradient: 0.06507"><pre class="notranslate"><code class="notranslate">object data: complex128 - time elapsed to evaluate loss: 0.92206
object data: complex128 - time elapsed to evaluate loss: 0.03364
object data: complex128 - time elapsed to evaluate loss: 0.03140
object data: complex128 - time elapsed to evaluate gradient: 0.20444
object data: complex128 - time elapsed to evaluate gradient: 0.06708
object data: complex128 - time elapsed to evaluate gradient: 0.06507
</code></pre></div>
<p dir="auto">which a significant improvement over the four seconds the code was taking before. This is just speculation, but in researching this issue my colleagues and I thought this bug could be at play here as well: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="683139267" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/4115" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/4115/hovercard" href="https://github.com/google/jax/issues/4115">#4115</a></p> | <p dir="auto">Hi,<br>
I observe a severe drop of performance of the index_update function on a GPU, when changing the data type from complex single to complex double. Is there a fundamental reason for that or is it something that could be improved?</p>
<p dir="auto">Here is a simple example to illustrate this issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import jax
import jax.numpy as jnp
import numpy as np
import time
from jax.config import config
config.update("jax_enable_x64", True) # Remove this line for single precision
# Set up data
a1=jnp.zeros((1000,256),dtype=np.complex128).block_until_ready()
a2=jax.random.normal(jax.random.PRNGKey(0),(1000,256),dtype=jnp.float64) + 1.j * jax.random.normal(jax.random.PRNGKey(0),(1000,256),dtype=jnp.float64)
idx=jnp.where(jnp.abs(a2)>0)
a3=a2[idx]
# Check data types used
print(a1.dtype)
print(a2.dtype)
# define jit'd index_update function
index_update_jitd=jax.jit(jax.ops.index_update)
# timing including jit
tic=time.perf_counter()
a1=index_update_jitd(a1,idx, a3).block_until_ready()
print("Execution time including jit: ", time.perf_counter() -tic)
# reset data
a1=jnp.zeros((1000,256),dtype=np.complex128).block_until_ready()
# timing of jit'd function
tic=time.perf_counter()
a1=index_update_jitd(a1,idx, a3).block_until_ready()
print("Execution time of jit'd function: ", time.perf_counter() -tic)"><pre class="notranslate"><code class="notranslate">import jax
import jax.numpy as jnp
import numpy as np
import time
from jax.config import config
config.update("jax_enable_x64", True) # Remove this line for single precision
# Set up data
a1=jnp.zeros((1000,256),dtype=np.complex128).block_until_ready()
a2=jax.random.normal(jax.random.PRNGKey(0),(1000,256),dtype=jnp.float64) + 1.j * jax.random.normal(jax.random.PRNGKey(0),(1000,256),dtype=jnp.float64)
idx=jnp.where(jnp.abs(a2)>0)
a3=a2[idx]
# Check data types used
print(a1.dtype)
print(a2.dtype)
# define jit'd index_update function
index_update_jitd=jax.jit(jax.ops.index_update)
# timing including jit
tic=time.perf_counter()
a1=index_update_jitd(a1,idx, a3).block_until_ready()
print("Execution time including jit: ", time.perf_counter() -tic)
# reset data
a1=jnp.zeros((1000,256),dtype=np.complex128).block_until_ready()
# timing of jit'd function
tic=time.perf_counter()
a1=index_update_jitd(a1,idx, a3).block_until_ready()
print("Execution time of jit'd function: ", time.perf_counter() -tic)
</code></pre></div>
<p dir="auto">I am running this on an NVIDIA V100. Using single precision I get the output</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="complex64
complex64
Execution time including jit: 0.1222537359863054
Execution time of jit'd function: 0.0004156339855398983"><pre class="notranslate"><code class="notranslate">complex64
complex64
Execution time including jit: 0.1222537359863054
Execution time of jit'd function: 0.0004156339855398983
</code></pre></div>
<p dir="auto">With double precision it is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="complex128
complex128
Execution time including jit: 3.707396164012607
Execution time of jit'd function: 3.5751446500071324"><pre class="notranslate"><code class="notranslate">complex128
complex128
Execution time including jit: 3.707396164012607
Execution time of jit'd function: 3.5751446500071324
</code></pre></div>
<p dir="auto">You see that for double precision the execution is almost 10000 times slower, which puzzles me.</p>
<p dir="auto">Also, the execution time seems to be roughly linear in the array size for double precision, whereas on the sizes I checked it did not really change for single precision.</p> | 1 |
<p dir="auto">Describe what you were doing when the bug occurred:<br>
1.<br>
2.<br>
3.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.2.1-3816ae7c3</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br>
at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br>
at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br>
at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)<br>
at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br>
at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br>
at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)</p>
<p dir="auto">Component stack: in vl<br>
in div<br>
in div<br>
in div<br>
in wo<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Li<br>
in $e<br>
in dn<br>
in Ca<br>
in Pc</p> | <h3 dir="auto">Describe what you were doing when the bug occurred:</h3>
<ol dir="auto">
<li>I did profiling on a list, that gets updated on each pagination api call.</li>
<li>Once the profiling was done, I moved around in the Profiler to view the Flamegraph</li>
<li>Moving to second capture, the Profiler crashed.</li>
</ol>
<p dir="auto"><strong>DevTools version</strong>: 4.6.0-6cceaeb67</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Component stack: in ec
in div
in div
in div
in So
in Unknown
in n
in Unknown
in div
in div
in rl
in Ze
in fn
in Ga
in _s"><pre class="notranslate"><code class="notranslate">Component stack: in ec
in div
in div
in div
in So
in Unknown
in n
in Unknown
in div
in div
in rl
in Ze
in fn
in Ga
in _s
</code></pre></div> | 0 |
<p dir="auto">I ran a few benchmarks on the server (modifying <a href="https://github.com/paulshen/react-bench">https://github.com/paulshen/react-bench</a> to not use jsdom). The results were surprising, as the browserified <code class="notranslate">react.js</code> was about <strong>30% faster</strong> than the npm version, even with <code class="notranslate">NODE_ENV=production</code>.</p>
<p dir="auto">The performance ranking (test run time) was <code class="notranslate">react.min.js</code> < <code class="notranslate">react.js</code> < <code class="notranslate">NODE_ENV=production node react</code> < <code class="notranslate">node react</code>.</p>
<p dir="auto">I suspect <code class="notranslate">process.env</code> is not a regular js object but perhaps a getter and thus carries a penalty when you test for <code class="notranslate">"production" !== process.env.NODE_ENV</code> everywhere.</p>
<p dir="auto">Also the minified version might still perform best of all, as at least some time ago V8 used function source length (including comments) as a heuristic for function complexity / compilation time and thus affecting chances for optimization in some cases, but the effect might be negligible.</p> | <p dir="auto">I have recently adapted my app to use server-side rendered markup and then reconciliate it with the client to increase loading speeds.<br>
React correctly recognizes the rendered markup and doesn't actually touch the dom on the first rendering step.</p>
<p dir="auto">However, when I interact(clicking, dragging, etc) with any server-side rendered react components I get the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invariant Violation: findComponentRoot .... Try inspecting the child nodes of the element with React ID ``"><pre class="notranslate"><code class="notranslate">Invariant Violation: findComponentRoot .... Try inspecting the child nodes of the element with React ID ``
</code></pre></div>
<p dir="auto">I understand this is a side-effect of dom mutation, however no such mutation has occured in the react element container.</p>
<p dir="auto">Altering the state programatically(as opposed to interacting with clicks etc) does not cause these errors.</p>
<p dir="auto">Here is the server-side rendered markup:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div class="viewport" data-reactid=".0" data-react-checksum="-1591792822">
<div class="login-view" data-reactid=".0.0">
<div class="wrapper" data-reactid=".0.0.0">
<img src="images/logo.png" class="logo" width="150" height="164" data-reactid=".0.0.0.0">
<div class="form" data-reactid=".0.0.0.1">
<div class="input-container username" data-reactid=".0.0.0.1.0">
<div class="label username-label icon ss-standard ss-user" data-reactid=".0.0.0.1.0.0">
</div>
<input class="username" type="email" name="username" placeholder="Email" value="" data-reactid=".0.0.0.1.0.1">
</div>
<div class="input-container password" data-reactid=".0.0.0.1.1">
<div class="label password-label icon ss-standard ss-lock" data-reactid=".0.0.0.1.1.0">
</div>
<input class="password" type="password" name="password" placeholder="Password" value="" data-reactid=".0.0.0.1.1.1">
</div>
<button class="button login" data-reactid=".0.0.0.1.2">
Login
</button>
</div>
</div>
<img src="images/waves.png" class="waves" width="1366" height="94" data-reactid=".0.0.1">
</div>
<div class="app hide" data-reactid=".0.1">
<div class="sidebar phone" data-reactid=".0.1.0">
<div class="categories" data-reactid=".0.1.0.0">
<div class="categories-header" data-reactid=".0.1.0.0.0">
<div class="text" data-reactid=".0.1.0.0.0.0">
Categories
</div>
<div class="arrow ss-standard ss-navigatedown" data-reactid=".0.1.0.0.0.1">
</div>
</div>
<div class="categories-scroller" data-reactid=".0.1.0.0.1">
<div class="categories-wrapper" data-reactid=".0.1.0.0.1.0">
</div>
</div>
</div>
<div class="add-category" data-reactid=".0.1.0.1">
<div class="icon ss-standard ss-plus" data-reactid=".0.1.0.1.0">
</div>
<div class="text" data-reactid=".0.1.0.1.1">
Add Category
</div>
</div>
<div class="bottom-menu" data-reactid=".0.1.0.2">
<div class="settings" data-reactid=".0.1.0.2.1">
<div class="icon ss-standard ss-settings" data-reactid=".0.1.0.2.1.0">
</div>
<div class="text" data-reactid=".0.1.0.2.1.1">
SETTINGS
</div>
</div>
<div class="minimize" data-reactid=".0.1.0.2.2">
<div class="icon ss-standard ss-navigateright" data-reactid=".0.1.0.2.2.0">
</div>
</div>
</div>
</div>
<div class="columns" data-reactid=".0.1.1">
<span data-reactid=".0.1.1.0">
</span>
</div>
</div>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">viewport</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0</span>" <span class="pl-c1">data-react-checksum</span>="<span class="pl-s">-1591792822</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">login-view</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">wrapper</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">images/logo.png</span>" <span class="pl-c1">class</span>="<span class="pl-s">logo</span>" <span class="pl-c1">width</span>="<span class="pl-s">150</span>" <span class="pl-c1">height</span>="<span class="pl-s">164</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">form</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">input-container username</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.1.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">label username-label icon ss-standard ss-user</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.1.0.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">class</span>="<span class="pl-s">username</span>" <span class="pl-c1">type</span>="<span class="pl-s">email</span>" <span class="pl-c1">name</span>="<span class="pl-s">username</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">Email</span>" <span class="pl-c1">value</span>="" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.1.0.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">input-container password</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.1.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">label password-label icon ss-standard ss-lock</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.1.1.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">class</span>="<span class="pl-s">password</span>" <span class="pl-c1">type</span>="<span class="pl-s">password</span>" <span class="pl-c1">name</span>="<span class="pl-s">password</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">Password</span>" <span class="pl-c1">value</span>="" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.1.1.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">button login</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.0.1.2</span>"<span class="pl-kos">></span>
Login
<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">images/waves.png</span>" <span class="pl-c1">class</span>="<span class="pl-s">waves</span>" <span class="pl-c1">width</span>="<span class="pl-s">1366</span>" <span class="pl-c1">height</span>="<span class="pl-s">94</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.0.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">app hide</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">sidebar phone</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">categories</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">categories-header</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.0.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">text</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.0.0.0</span>"<span class="pl-kos">></span>
Categories
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">arrow ss-standard ss-navigatedown</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.0.0.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">categories-scroller</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.0.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">categories-wrapper</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.0.1.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">add-category</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">icon ss-standard ss-plus</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.1.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">text</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.1.1</span>"<span class="pl-kos">></span>
Add Category
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">bottom-menu</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.2</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">settings</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.2.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">icon ss-standard ss-settings</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.2.1.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">text</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.2.1.1</span>"<span class="pl-kos">></span>
SETTINGS
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">minimize</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.2.2</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">icon ss-standard ss-navigateright</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.0.2.2.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">columns</span>" <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.1</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">data-reactid</span>="<span class="pl-s">.0.1.1.0</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">I am calling renderComponent on the client, on the dom node that contains that server-rendered markup.<br>
E.g</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="viewportElement = document.getElementById("viewport-element")
React.render(<Viewport />, viewportElement)"><pre class="notranslate"><span class="pl-s1">viewportElement</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"viewport-element"</span><span class="pl-kos">)</span>
<span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1"><</span><span class="pl-ent">Viewport</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">,</span> <span class="pl-s1">viewportElement</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">Thanks for creating and maintaining this amazing UI framework!</p> | 0 |
<p dir="auto">When a request is made through AJAX Symfony correctly knows that the request is an XMLHttpRequest. This can be retrieved from the isXmlHttpRequest method of the Request class. However, this doesn't set the _format parameter in the request to the correct value. For example, making an AJAX request with JQuery.ajax sends the content-type <strong>application/json</strong> which isn't then used to set the response format. This means that for example when an exception is thrown and returned as response it will always be in HTML format except when a route has the _format parameter explicitly set. I don't find anything about the fact that this behaviour is intended. I resolved by setting manually that parameter if I detect that the request is an XMLHttpRequest. However, I really think that this is a bug because Symfony should always use the content-type if detected to generate the appropriate response</p> | <p dir="auto">The symfony default _format which is used to determine the right template should be aware of the HTTP Accept header(<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html" rel="nofollow">http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html</a>)</p>
<p dir="auto">This shouldn't effect the default behavior like it is right now for websites, but if you're building an (REST[FUL]) API this would be a really great improvement.</p>
<p dir="auto">As far as I discovered it now, the format is determined here: [...]/symfony/src/Symfony/Component/HttpFoundation/Request.php:833</p>
<p dir="auto">What do you think?</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: macos 10.14.6</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">rpc接口返回值对象包含有Money类型的值,在调用方会提示:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3291861/63836077-6f92e800-c9ab-11e9-8d13-761232cadd0f.png"><img src="https://user-images.githubusercontent.com/3291861/63836077-6f92e800-c9ab-11e9-8d13-761232cadd0f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">希望后续版本能实现jsr354的Money序列化处理</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: xxx</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>xxx</li>
<li>xxx</li>
<li>xxx</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | 0 |
<p dir="auto">rustc panics with the following backtrace when building <a href="https://github.com/alexchandel/rlibc">this fork of rlibc</a>. I can't even tell which line of my code is causing it, but it occurs after most of the warnings are printed:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="...
src/posix/fcntl.rs:6:62: 6:66 warning: unused variable: `mode`, #[warn(unused_variables)] on by default
src/posix/fcntl.rs:6 pub unsafe extern fn open(path: *const char_t, flags: int_t, mode: mode_t) -> int_t {
^~~~
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Trying to convert unsized value to lval', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc_trans/trans/datum.rs:495
stack backtrace:
1: 0x112612be3 - sys::backtrace::write::h918207864656307b0nC
2: 0x112640be5 - panicking::on_panic::h2c4b1456225ae37fnPL
3: 0x11256a418 - rt::unwind::begin_unwind_inner::h6c7f1344c68dd4a7AwL
4: 0x10ea6dc45 - rt::unwind::begin_unwind::h4082345751407454387
5: 0x10eaec56f - trans::datum::Datum<'tcx, Expr>::to_lvalue_datum::h4809841e9861f286hYf
6: 0x10eb20dd5 - trans::expr::trans_index::h56dd6242817519cf6Ei
7: 0x10eb0d9c9 - trans::expr::trans_unadjusted::h8c78f89bb783464csqi
8: 0x10eac21d0 - trans::expr::trans::h25c26cd42d9241e1HMh
9: 0x10eb237e3 - trans::expr::trans_addr_of::h5be1b2f119f51174rNj
10: 0x10eb0dbd7 - trans::expr::trans_unadjusted::h8c78f89bb783464csqi
11: 0x10eac21d0 - trans::expr::trans::h25c26cd42d9241e1HMh
12: 0x10eafdba5 - trans::callee::trans_args::hc52bfad7cdf49353xjh
13: 0x10eb048fc - trans::callee::trans_call_inner::h5306915459861161960
14: 0x10eb0fdaa - trans::expr::trans_rvalue_dps_unadjusted::hb1406d54d45518409Wi
15: 0x10eb0d642 - trans::expr::trans_unadjusted::h8c78f89bb783464csqi
16: 0x10eac21d0 - trans::expr::trans::h25c26cd42d9241e1HMh
17: 0x10eb22c0c - trans::expr::trans_unary::h509c840b305ef674LFj
18: 0x10eb0dbc0 - trans::expr::trans_unadjusted::h8c78f89bb783464csqi
19: 0x10eac0a0b - trans::expr::trans_into::h0f31dfb1ff207cd8pGh
20: 0x10ebb5fd7 - trans::_match::trans_match_inner::h56e2641ee60bee0daMx
21: 0x10eb0f1b3 - trans::expr::trans_rvalue_dps_unadjusted::hb1406d54d45518409Wi
22: 0x10eac09eb - trans::expr::trans_into::h0f31dfb1ff207cd8pGh
23: 0x10eac17fa - trans::controlflow::trans_block::hb675814db44e1ef35ee
24: 0x10eb982bf - trans::base::trans_closure::h1fc9dae5b42c150ephu
25: 0x10eaac086 - trans::base::trans_fn::h1baa1a79c6642379Gsu
26: 0x10eaa6fc9 - trans::base::trans_item::h99ee5fcee3ea0222zRu
27: 0x10eb99a89 - trans::base::trans_mod::h0f4f7f5d04ce3f65yXu
28: 0x10eaa70dd - trans::base::trans_item::h99ee5fcee3ea0222zRu
29: 0x10eb9ee0c - trans::base::trans_crate::h89e3520c5dfd05b21Ov
30: 0x10e92d058 - driver::phase_4_translate_to_llvm::h5a7c1f8c7ec04632qPa
31: 0x10e907f72 - driver::compile_input::h32723f720e0c3c95Gba
32: 0x10e9e08a7 - run_compiler::hfdf8469da778a8d4Zbc
33: 0x10e9ddd21 - thunk::F.Invoke<A, R>::invoke::h56535309890628509
34: 0x10e9dc980 - rt::unwind::try::try_fn::h6830563953582217021
35: 0x1126ba7e9 - rust_try_inner
36: 0x1126ba7d6 - rust_try
37: 0x10e9dd0e5 - thunk::F.Invoke<A, R>::invoke::h12775416177659868106
38: 0x112629ac3 - sys::thread::thread_start::hccc0587963a6c50bU4G
39: 0x7fff8cc79268 - _pthread_body
40: 0x7fff8cc791e5 - _pthread_body
make: *** [target/x86_64-apple-darwin/c.o] Error 101"><pre class="notranslate">...
src/posix/fcntl.rs:6:62: 6:66 warning: unused variable: <span class="pl-s"><span class="pl-pds">`</span>mode<span class="pl-pds">`</span></span>, <span class="pl-c"><span class="pl-c">#</span>[warn(unused_variables)] on by default</span>
src/posix/fcntl.rs:6 pub unsafe extern fn open(path: <span class="pl-k">*</span>const char_t, flags: int_t, mode: mode_t) -<span class="pl-k">></span> int_t {
^~~~
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with <span class="pl-s"><span class="pl-pds">`</span>RUST_BACKTRACE=1<span class="pl-pds">`</span></span> <span class="pl-k">for</span> a backtrace
thread <span class="pl-s"><span class="pl-pds">'</span>rustc<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>Trying to convert unsized value to lval<span class="pl-pds">'</span></span>, /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc_trans/trans/datum.rs:495
stack backtrace:
1: 0x112612be3 - sys::backtrace::write::h918207864656307b0nC
2: 0x112640be5 - panicking::on_panic::h2c4b1456225ae37fnPL
3: 0x11256a418 - rt::unwind::begin_unwind_inner::h6c7f1344c68dd4a7AwL
4: 0x10ea6dc45 - rt::unwind::begin_unwind::h4082345751407454387
5: 0x10eaec56f - trans::datum::Datum<span class="pl-k"><</span><span class="pl-s"><span class="pl-pds">'</span>tcx, Expr>::to_lvalue_datum::h4809841e9861f286hYf</span>
<span class="pl-s"> 6: 0x10eb20dd5 - trans::expr::trans_index::h56dd6242817519cf6Ei</span>
<span class="pl-s"> 7: 0x10eb0d9c9 - trans::expr::trans_unadjusted::h8c78f89bb783464csqi</span>
<span class="pl-s"> 8: 0x10eac21d0 - trans::expr::trans::h25c26cd42d9241e1HMh</span>
<span class="pl-s"> 9: 0x10eb237e3 - trans::expr::trans_addr_of::h5be1b2f119f51174rNj</span>
<span class="pl-s"> 10: 0x10eb0dbd7 - trans::expr::trans_unadjusted::h8c78f89bb783464csqi</span>
<span class="pl-s"> 11: 0x10eac21d0 - trans::expr::trans::h25c26cd42d9241e1HMh</span>
<span class="pl-s"> 12: 0x10eafdba5 - trans::callee::trans_args::hc52bfad7cdf49353xjh</span>
<span class="pl-s"> 13: 0x10eb048fc - trans::callee::trans_call_inner::h5306915459861161960</span>
<span class="pl-s"> 14: 0x10eb0fdaa - trans::expr::trans_rvalue_dps_unadjusted::hb1406d54d45518409Wi</span>
<span class="pl-s"> 15: 0x10eb0d642 - trans::expr::trans_unadjusted::h8c78f89bb783464csqi</span>
<span class="pl-s"> 16: 0x10eac21d0 - trans::expr::trans::h25c26cd42d9241e1HMh</span>
<span class="pl-s"> 17: 0x10eb22c0c - trans::expr::trans_unary::h509c840b305ef674LFj</span>
<span class="pl-s"> 18: 0x10eb0dbc0 - trans::expr::trans_unadjusted::h8c78f89bb783464csqi</span>
<span class="pl-s"> 19: 0x10eac0a0b - trans::expr::trans_into::h0f31dfb1ff207cd8pGh</span>
<span class="pl-s"> 20: 0x10ebb5fd7 - trans::_match::trans_match_inner::h56e2641ee60bee0daMx</span>
<span class="pl-s"> 21: 0x10eb0f1b3 - trans::expr::trans_rvalue_dps_unadjusted::hb1406d54d45518409Wi</span>
<span class="pl-s"> 22: 0x10eac09eb - trans::expr::trans_into::h0f31dfb1ff207cd8pGh</span>
<span class="pl-s"> 23: 0x10eac17fa - trans::controlflow::trans_block::hb675814db44e1ef35ee</span>
<span class="pl-s"> 24: 0x10eb982bf - trans::base::trans_closure::h1fc9dae5b42c150ephu</span>
<span class="pl-s"> 25: 0x10eaac086 - trans::base::trans_fn::h1baa1a79c6642379Gsu</span>
<span class="pl-s"> 26: 0x10eaa6fc9 - trans::base::trans_item::h99ee5fcee3ea0222zRu</span>
<span class="pl-s"> 27: 0x10eb99a89 - trans::base::trans_mod::h0f4f7f5d04ce3f65yXu</span>
<span class="pl-s"> 28: 0x10eaa70dd - trans::base::trans_item::h99ee5fcee3ea0222zRu</span>
<span class="pl-s"> 29: 0x10eb9ee0c - trans::base::trans_crate::h89e3520c5dfd05b21Ov</span>
<span class="pl-s"> 30: 0x10e92d058 - driver::phase_4_translate_to_llvm::h5a7c1f8c7ec04632qPa</span>
<span class="pl-s"> 31: 0x10e907f72 - driver::compile_input::h32723f720e0c3c95Gba</span>
<span class="pl-s"> 32: 0x10e9e08a7 - run_compiler::hfdf8469da778a8d4Zbc</span>
<span class="pl-s"> 33: 0x10e9ddd21 - thunk::F.Invoke<A, R>::invoke::h56535309890628509</span>
<span class="pl-s"> 34: 0x10e9dc980 - rt::unwind::try::try_fn::h6830563953582217021</span>
<span class="pl-s"> 35: 0x1126ba7e9 - rust_try_inner</span>
<span class="pl-s"> 36: 0x1126ba7d6 - rust_try</span>
<span class="pl-s"> 37: 0x10e9dd0e5 - thunk::F.Invoke<A, R>::invoke::h12775416177659868106</span>
<span class="pl-s"> 38: 0x112629ac3 - sys::thread::thread_start::hccc0587963a6c50bU4G</span>
<span class="pl-s"> 39: 0x7fff8cc79268 - _pthread_body</span>
<span class="pl-s"> 40: 0x7fff8cc791e5 - _pthread_body</span>
<span class="pl-s"></span>
<span class="pl-s">make: *** [target/x86_64-apple-darwin/c.o] Error 101</span></pre></div> | <p dir="auto">I got this compiling a fairly large app:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Trying to convert unsized value to lval', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc_trans/trans/datum.rs:402
stack backtrace:
1: 0x10c85ecd7 - sys::backtrace::write::h4ee5c5ad264b65f5mbu
2: 0x10c884e9c - failure::on_fail::h55e5ff39107f11fcHbB
3: 0x10c7e6618 - rt::unwind::begin_unwind_inner::habba3c5d37f59591DTA
4: 0x10904eca5 - rt::unwind::begin_unwind::h5615917778268573803
5: 0x1090d753e - trans::datum::Datum<'tcx, Expr>::to_lvalue_datum::h9595aad7c2992d4cZSf
6: 0x1090feaac - trans::expr::trans_index::h33588fb9dd7ce121yzi
7: 0x1090e75a3 - trans::expr::trans_unadjusted::h4bfe4622405612c0Vki
8: 0x10909f7d4 - trans::expr::trans::h87900629b98dec94YCh
9: 0x109101448 - trans::expr::trans_addr_of::he4d93cb9897bf566uHj
10: 0x1090e779e - trans::expr::trans_unadjusted::h4bfe4622405612c0Vki
11: 0x10909f7d4 - trans::expr::trans::h87900629b98dec94YCh
12: 0x10909e521 - trans::expr::trans_into::h8d099f5179d39277uzh
13: 0x10911d773 - trans::expr::trans_adt::h04652ea6bac31317Drj
14: 0x1090b0cdf - trans::base::trans_named_tuple_constructor::h27bf054814ac4386Dcu
15: 0x1090e25a6 - trans::callee::trans_call_inner::h12337891083913942824
16: 0x1090e9b77 - trans::expr::trans_rvalue_dps_unadjusted::h76d104b0c393ded0ITi
17: 0x10909e762 - trans::expr::trans_into::h8d099f5179d39277uzh
18: 0x10909f339 - trans::controlflow::trans_block::ha4c3bc4d960bd55aT3d
19: 0x1090e8c91 - trans::expr::trans_rvalue_dps_unadjusted::h76d104b0c393ded0ITi
20: 0x10909e762 - trans::expr::trans_into::h8d099f5179d39277uzh
21: 0x10909f339 - trans::controlflow::trans_block::ha4c3bc4d960bd55aT3d
22: 0x10916c644 - trans::base::trans_closure::hc2f7f2fc0f6c7df0WXt
23: 0x10908b1c9 - trans::base::trans_fn::he8bb083f0eb63cd3Q8t
24: 0x109086f0b - trans::base::trans_item::h6e886ccbd5f66d227vu
25: 0x10916de29 - trans::base::trans_mod::hacffe7d798632c0cIBu
26: 0x10908664e - trans::base::trans_item::h6e886ccbd5f66d227vu
27: 0x109172a8c - trans::base::trans_crate::h03f93f510f95d199hrv
28: 0x108f29f6e - driver::phase_4_translate_to_llvm::hf01e1f3e6069eac9mOa
29: 0x108f05f3c - driver::compile_input::h8e0204b8bb9ea44bBba
30: 0x108fced3e - run_compiler::h322f9334a9a1d7e6l9b
31: 0x108fcbd7f - thunk::F.Invoke<A, R>::invoke::h14356237310415989951
32: 0x108fcaa10 - rt::unwind::try::try_fn::h798029436104877783
33: 0x10c8fb329 - rust_try_inner
34: 0x10c8fb316 - rust_try
35: 0x108fcb0d4 - thunk::F.Invoke<A, R>::invoke::h15628186897385384602
36: 0x10c86f553 - sys::thread::thread_start::h3f48e8c893476626A3w
37: 0x7fff854c5899 - _pthread_body
38: 0x7fff854c572a - _pthread_struct_init"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Trying to convert unsized value to lval', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc_trans/trans/datum.rs:402
stack backtrace:
1: 0x10c85ecd7 - sys::backtrace::write::h4ee5c5ad264b65f5mbu
2: 0x10c884e9c - failure::on_fail::h55e5ff39107f11fcHbB
3: 0x10c7e6618 - rt::unwind::begin_unwind_inner::habba3c5d37f59591DTA
4: 0x10904eca5 - rt::unwind::begin_unwind::h5615917778268573803
5: 0x1090d753e - trans::datum::Datum<'tcx, Expr>::to_lvalue_datum::h9595aad7c2992d4cZSf
6: 0x1090feaac - trans::expr::trans_index::h33588fb9dd7ce121yzi
7: 0x1090e75a3 - trans::expr::trans_unadjusted::h4bfe4622405612c0Vki
8: 0x10909f7d4 - trans::expr::trans::h87900629b98dec94YCh
9: 0x109101448 - trans::expr::trans_addr_of::he4d93cb9897bf566uHj
10: 0x1090e779e - trans::expr::trans_unadjusted::h4bfe4622405612c0Vki
11: 0x10909f7d4 - trans::expr::trans::h87900629b98dec94YCh
12: 0x10909e521 - trans::expr::trans_into::h8d099f5179d39277uzh
13: 0x10911d773 - trans::expr::trans_adt::h04652ea6bac31317Drj
14: 0x1090b0cdf - trans::base::trans_named_tuple_constructor::h27bf054814ac4386Dcu
15: 0x1090e25a6 - trans::callee::trans_call_inner::h12337891083913942824
16: 0x1090e9b77 - trans::expr::trans_rvalue_dps_unadjusted::h76d104b0c393ded0ITi
17: 0x10909e762 - trans::expr::trans_into::h8d099f5179d39277uzh
18: 0x10909f339 - trans::controlflow::trans_block::ha4c3bc4d960bd55aT3d
19: 0x1090e8c91 - trans::expr::trans_rvalue_dps_unadjusted::h76d104b0c393ded0ITi
20: 0x10909e762 - trans::expr::trans_into::h8d099f5179d39277uzh
21: 0x10909f339 - trans::controlflow::trans_block::ha4c3bc4d960bd55aT3d
22: 0x10916c644 - trans::base::trans_closure::hc2f7f2fc0f6c7df0WXt
23: 0x10908b1c9 - trans::base::trans_fn::he8bb083f0eb63cd3Q8t
24: 0x109086f0b - trans::base::trans_item::h6e886ccbd5f66d227vu
25: 0x10916de29 - trans::base::trans_mod::hacffe7d798632c0cIBu
26: 0x10908664e - trans::base::trans_item::h6e886ccbd5f66d227vu
27: 0x109172a8c - trans::base::trans_crate::h03f93f510f95d199hrv
28: 0x108f29f6e - driver::phase_4_translate_to_llvm::hf01e1f3e6069eac9mOa
29: 0x108f05f3c - driver::compile_input::h8e0204b8bb9ea44bBba
30: 0x108fced3e - run_compiler::h322f9334a9a1d7e6l9b
31: 0x108fcbd7f - thunk::F.Invoke<A, R>::invoke::h14356237310415989951
32: 0x108fcaa10 - rt::unwind::try::try_fn::h798029436104877783
33: 0x10c8fb329 - rust_try_inner
34: 0x10c8fb316 - rust_try
35: 0x108fcb0d4 - thunk::F.Invoke<A, R>::invoke::h15628186897385384602
36: 0x10c86f553 - sys::thread::thread_start::h3f48e8c893476626A3w
37: 0x7fff854c5899 - _pthread_body
38: 0x7fff854c572a - _pthread_struct_init
</code></pre></div>
<p dir="auto">The problem appears to be in this function:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub fn chunk_containing(&self, abs_x: u32, abs_y: u32) -> Option<&Chunk> {
// x_idx and y_idx are indices int the chunks array.
let x_idx: usize = abs_x.div_floor(&self.chunk_x_size) as usize;
let y_idx: usize = abs_y.div_floor(&self.chunk_y_size) as usize;
if ((x_idx as u32) < self.x_chunks && (y_idx as u32) < self.y_chunks) {
Some(&self.chunks[y_idx][x_idx])
} else {
None
}
}"><pre class="notranslate"><code class="notranslate">pub fn chunk_containing(&self, abs_x: u32, abs_y: u32) -> Option<&Chunk> {
// x_idx and y_idx are indices int the chunks array.
let x_idx: usize = abs_x.div_floor(&self.chunk_x_size) as usize;
let y_idx: usize = abs_y.div_floor(&self.chunk_y_size) as usize;
if ((x_idx as u32) < self.x_chunks && (y_idx as u32) < self.y_chunks) {
Some(&self.chunks[y_idx][x_idx])
} else {
None
}
}
</code></pre></div>
<p dir="auto">And specifically, the problem appears to be this line:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Some(&self.chunks[y_idx][x_idx])"><pre class="notranslate"><code class="notranslate">Some(&self.chunks[y_idx][x_idx])
</code></pre></div>
<p dir="auto">I reached that conclusion because replacing the above line with <code class="notranslate">None</code> clears the error. The type of <code class="notranslate">self.chunks</code> is <code class="notranslate">[[Chunk]]</code>. Changing its type to <code class="notranslate">Vec<Vec<Chunk>></code> also clears the error.</p>
<p dir="auto">OSX 10.9.5<br>
rustc 1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7/hovercard" href="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7"><tt>1d00c54</tt></a> 2015-01-30 19:56:34 +0000)<br>
binary: rustc<br>
commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7/hovercard" href="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7"><tt>1d00c54</tt></a><br>
commit-date: 2015-01-30 19:56:34 +0000<br>
host: x86_64-apple-darwin<br>
release: 1.0.0-nightly</p> | 1 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.10</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows...
function bool_fun(value: string) : boolean {
return value && value == "bug";
}
console.log(bool_fun(null)); // should log false or throw a compiler error, but logs null
console.log(bool_fun("false"));
console.log(bool_fun("bug"));"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span>
<span class="pl-k">function</span> <span class="pl-en">bool_fun</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> : <span class="pl-smi">boolean</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">value</span> <span class="pl-c1">&&</span> <span class="pl-s1">value</span> <span class="pl-c1">==</span> <span class="pl-s">"bug"</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">bool_fun</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// should log false or throw a compiler error, but logs null</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">bool_fun</span><span class="pl-kos">(</span><span class="pl-s">"false"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">bool_fun</span><span class="pl-kos">(</span><span class="pl-s">"bug"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">A <code class="notranslate">boolean</code> value should always be <code class="notranslate">true</code> or <code class="notranslate">false</code>, but never <code class="notranslate">null</code> (even if it's a falsy value). This would break strict comparisons like <code class="notranslate">===</code>. The spec is also very clear: <a href="https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#3.2.2">https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#3.2.2</a></p>
<p dir="auto"><strong>Expected behavior:</strong><br>
Either we have a compiler error or the console prints:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="false
false
true"><pre class="notranslate"><code class="notranslate">false
false
true
</code></pre></div>
<p dir="auto"><strong>Actual behavior:</strong><br>
The console prints:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="null
false
true"><pre class="notranslate"><code class="notranslate">null
false
true
</code></pre></div> | <p dir="auto">This code does not end the compilation on Windows 7 using master branch of TypeScript.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ node built/local/tsc.js hang.ts"><pre class="notranslate"><code class="notranslate">$ node built/local/tsc.js hang.ts
</code></pre></div>
<p dir="auto">And VS2013 was hangup. <code class="notranslate">devenv.exe</code> consume memory about 3.5GB.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// hang.ts
interface LazyChain<T> extends LAZYCHAIN.Stream<T> {
}
interface LazyMonad<T, M> extends LAZYCHAIN.MonadStream<T, M> {
}
interface Array<T> extends LAZYCHAIN.StreamMethod<T> {
}
declare module LAZYCHAIN {
interface Callback<T, U, V> {
(value?: T, index?: number, array?: T[], env?: V): U
}
interface CallbackAsync<T, U, V> {
(value?: T, index?: number, array?: T[], env?: V, deferred?): any
}
interface StreamMethod<T> {
// lazy
// - basic
lazy(onmessage: CallbackAsync<T, T, {}>): LazyChain<T>
lazy(onmessage: CallbackAsync<T, T, {}>, sequential: boolean): LazyChain<T[]>
}
interface Stream<T> extends StreamMethod<T> {
// pattern
pattern(...patterns: Array<[T|Function]|[T|Function, (...args: T[]) => T]|[T|Function, (...args: T[]) => boolean, (...args: T[]) => T]>): LazyChain<T>
// monad
monad<M>(monad: Monad<T, M>, convert?: boolean): LazyMonad<T, M>
monad<M>(monad: Monad<T, M>, type: T|((...args: any[]) => T)): LazyMonad<T, M>
// array
array(): T[]
}
interface MonadStream<T, M> {
// pattern
pattern(...patterns: Array<[M]|[M, (...args: M[]) => M]|[M, (...args: M[]) => boolean, (...args: M[]) => M]>): LazyMonad<T, M>
// monadic
monadic(...patterns: Array<[M]|[M, (...args: T[]) => M]|[M, (...args: T[]) => boolean, (...args: T[]) => M]>): LazyMonad<T, M>
// lazy
// - basic
lazy(onmessage: CallbackAsync<M, M, {}>): LazyMonad<T, M>
lazy(onmessage: CallbackAsync<M, M, {}>, sequential: boolean): LazyMonad<T, M[]>
// array
array(): T[]
}
interface Monad<T, M> extends Monoid<M> {
return(arg: T): M
bind(m: M, f: (arg: T) => M): M
fail?(arg: any): M
}
interface Monoid<M> {
mempty?(): M
mappend?(m1: M, m2: M): M
mconcat?(ms: M[]): M
}
}
function f<T, U>(): LazyChain<T|U> {
return <LazyChain<T|T[]|U|U[]>>null;
}"><pre class="notranslate"><span class="pl-c">// hang.ts</span>
<span class="pl-k">interface</span> <span class="pl-smi">LazyChain</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-k">extends</span> <span class="pl-smi">LAZYCHAIN</span><span class="pl-kos">.</span><span class="pl-smi">Stream</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">LazyMonad</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-c1">></span> <span class="pl-k">extends</span> <span class="pl-smi">LAZYCHAIN</span><span class="pl-kos">.</span><span class="pl-smi">MonadStream</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">Array</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-k">extends</span> <span class="pl-smi">LAZYCHAIN</span><span class="pl-kos">.</span><span class="pl-smi">StreamMethod</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-k">declare</span> module <span class="pl-smi">LAZYCHAIN</span> <span class="pl-kos">{</span>
<span class="pl-k">interface</span> <span class="pl-smi">Callback</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">U</span><span class="pl-kos">,</span> <span class="pl-smi">V</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-kos">(</span><span class="pl-s1">value</span>?: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">index</span>?: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">array</span>?: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">env</span>?: <span class="pl-smi">V</span><span class="pl-kos">)</span>: <span class="pl-smi">U</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">CallbackAsync</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">U</span><span class="pl-kos">,</span> <span class="pl-smi">V</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-kos">(</span><span class="pl-s1">value</span>?: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">index</span>?: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">array</span>?: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">env</span>?: <span class="pl-smi">V</span><span class="pl-kos">,</span> <span class="pl-s1">deferred</span>?<span class="pl-kos">)</span>: <span class="pl-smi">any</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">StreamMethod</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c">// lazy</span>
<span class="pl-c">// - basic</span>
<span class="pl-c1">lazy</span><span class="pl-kos">(</span><span class="pl-s1">onmessage</span>: <span class="pl-smi">CallbackAsync</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">LazyChain</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span>
<span class="pl-c1">lazy</span><span class="pl-kos">(</span><span class="pl-s1">onmessage</span>: <span class="pl-smi">CallbackAsync</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">></span><span class="pl-kos">,</span> <span class="pl-s1">sequential</span>: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">LazyChain</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">></span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">Stream</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-k">extends</span> <span class="pl-smi">StreamMethod</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-c">// pattern</span>
<span class="pl-c1">pattern</span><span class="pl-kos">(</span>...<span class="pl-s1">patterns</span>: <span class="pl-smi">Array</span><span class="pl-kos"><</span><span class="pl-kos">[</span><span class="pl-smi">T</span><span class="pl-c1">|</span><span class="pl-smi">Function</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-kos">[</span><span class="pl-smi">T</span><span class="pl-c1">|</span><span class="pl-smi">Function</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">T</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-kos">[</span><span class="pl-smi">T</span><span class="pl-c1">|</span><span class="pl-smi">Function</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">T</span><span class="pl-kos">]</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">LazyChain</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span>
<span class="pl-c">// monad</span>
<span class="pl-c1">monad</span><span class="pl-c1"><</span><span class="pl-smi">M</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">monad</span>: <span class="pl-smi">Monad</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">></span><span class="pl-kos">,</span> <span class="pl-s1">convert</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">LazyMonad</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">></span>
<span class="pl-c1">monad</span><span class="pl-c1"><</span><span class="pl-smi">M</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">monad</span>: <span class="pl-smi">Monad</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">></span><span class="pl-kos">,</span> <span class="pl-s1">type</span>: <span class="pl-smi">T</span><span class="pl-c1">|</span><span class="pl-kos">(</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">any</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">T</span><span class="pl-kos">)</span><span class="pl-kos">)</span>: <span class="pl-smi">LazyMonad</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">></span>
<span class="pl-c">// array</span>
<span class="pl-c1">array</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">MonadStream</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c">// pattern</span>
<span class="pl-c1">pattern</span><span class="pl-kos">(</span>...<span class="pl-s1">patterns</span>: <span class="pl-smi">Array</span><span class="pl-kos"><</span><span class="pl-kos">[</span><span class="pl-smi">M</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-kos">[</span><span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">M</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">M</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-kos">[</span><span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">M</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">M</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">M</span><span class="pl-kos">]</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">LazyMonad</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">></span>
<span class="pl-c">// monadic</span>
<span class="pl-c1">monadic</span><span class="pl-kos">(</span>...<span class="pl-s1">patterns</span>: <span class="pl-smi">Array</span><span class="pl-kos"><</span><span class="pl-kos">[</span><span class="pl-smi">M</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-kos">[</span><span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">M</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-kos">[</span><span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">M</span><span class="pl-kos">]</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">LazyMonad</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">></span>
<span class="pl-c">// lazy</span>
<span class="pl-c">// - basic</span>
<span class="pl-c1">lazy</span><span class="pl-kos">(</span><span class="pl-s1">onmessage</span>: <span class="pl-smi">CallbackAsync</span><span class="pl-kos"><</span><span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">LazyMonad</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">></span>
<span class="pl-c1">lazy</span><span class="pl-kos">(</span><span class="pl-s1">onmessage</span>: <span class="pl-smi">CallbackAsync</span><span class="pl-kos"><</span><span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">></span><span class="pl-kos">,</span> <span class="pl-s1">sequential</span>: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">LazyMonad</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">></span>
<span class="pl-c">// array</span>
<span class="pl-c1">array</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">Monad</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">M</span><span class="pl-c1">></span> <span class="pl-k">extends</span> <span class="pl-smi">Monoid</span><span class="pl-kos"><</span><span class="pl-smi">M</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-c1">return</span><span class="pl-kos">(</span><span class="pl-s1">arg</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi">M</span>
<span class="pl-c1">bind</span><span class="pl-kos">(</span><span class="pl-s1">m</span>: <span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-s1">f</span>: <span class="pl-kos">(</span><span class="pl-s1">arg</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">M</span><span class="pl-kos">)</span>: <span class="pl-smi">M</span>
<span class="pl-c1">fail</span>?<span class="pl-kos">(</span><span class="pl-s1">arg</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-smi">M</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">Monoid</span><span class="pl-c1"><</span><span class="pl-smi">M</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c1">mempty</span>?<span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">M</span>
<span class="pl-c1">mappend</span>?<span class="pl-kos">(</span><span class="pl-s1">m1</span>: <span class="pl-smi">M</span><span class="pl-kos">,</span> <span class="pl-s1">m2</span>: <span class="pl-smi">M</span><span class="pl-kos">)</span>: <span class="pl-smi">M</span>
<span class="pl-c1">mconcat</span>?<span class="pl-kos">(</span><span class="pl-s1">ms</span>: <span class="pl-smi">M</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-smi">M</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">f</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">U</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">LazyChain</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-c1">|</span><span class="pl-smi">U</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-kos"><</span><span class="pl-smi">LazyChain</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-c1">|</span><span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-c1">|</span><span class="pl-smi">U</span><span class="pl-c1">|</span><span class="pl-smi">U</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Update:<br>
I was able to get the error message after 3 hours.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ node built/local/tsc.js hang.ts
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory"><pre class="notranslate"><code class="notranslate">$ node built/local/tsc.js hang.ts
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
</code></pre></div> | 0 |
<p dir="auto">It's really hard to see what tests failed across different runs, especially if you don't have access to Jenkins (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117637019" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/17443" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/17443/hovercard" href="https://github.com/kubernetes/kubernetes/issues/17443">#17443</a>).</p> | <p dir="auto">Right now visibility is the biggest problem we have with e2e tests. We have too many jenkins jobs to keep track of test history for each one manually, and with test filters becoming increasingly targeted, there is no easy way to know what job a particular test is running in. Moreover, because test filters are shared across jobs, changing them can result in a set of tests that <em>should</em> be running on a particular provider/branch/job becoming silently disabled and no one is the wiser, as the test still looks green.</p>
<p dir="auto">Case in point, filter updates caused reboot tests to be skipped on <a href="http://kubekins.dls.corp.google.com/view/GKE/job/kubernetes-e2e-gke-ci-reboot/" rel="nofollow">gke-ci-reboot</a>. So the job is green but it isn't even testing what it's meant to.</p>
<p dir="auto">In order to avoid this kind of confusion and get proper visibility into what tests are running, it would be immensely helpful to have a single test dashboard that aggregates latest test results across all jobs for every defined e2e test in one big grid. Ideally it would also make results viewable by provider (GCE, GKE) and release name.</p> | 1 |
<p dir="auto">Currently the spilt panel is not able to be resized. Is there any ongoing plan or implementation? :)</p> | <p dir="auto">Panels split the difference between the space available. It'd be nice if we could manually resize them. Should take a look at what <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nakajima/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nakajima">@nakajima</a> did with the tree view.</p> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.0</li>
<li>Operating System / Platform => Mac OS Mojave 10.14</li>
<li>Compiler => n/a python 3.7</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto"><a href="https://docs.opencv.org/4.1.0/d3/d96/tutorial_basic_geometric_drawing.html" rel="nofollow">https://docs.opencv.org/4.1.0/d3/d96/tutorial_basic_geometric_drawing.html</a><br>
python version of tutorial throws the following error:</p>
<p dir="auto">'''TypeError: ellipse() takes at most 5 arguments (9 given)'''</p>
<p dir="auto">This error appears to be a bit misleading. Instead the problem seems to be the way python 3 treats integer division (converts to float). Casting positional arguments to int should solve this.</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" cv.ellipse(img,
(W / 2, W / 2),
(W / 4, W / 16),
angle,
0,
360,
(255, 0, 0),
thickness,
line_type)
"><pre class="notranslate"> <span class="pl-s1">cv</span>.<span class="pl-en">ellipse</span>(<span class="pl-s1">img</span>,
(<span class="pl-v">W</span> <span class="pl-c1">/</span> <span class="pl-c1">2</span>, <span class="pl-v">W</span> <span class="pl-c1">/</span> <span class="pl-c1">2</span>),
(<span class="pl-v">W</span> <span class="pl-c1">/</span> <span class="pl-c1">4</span>, <span class="pl-v">W</span> <span class="pl-c1">/</span> <span class="pl-c1">16</span>),
<span class="pl-s1">angle</span>,
<span class="pl-c1">0</span>,
<span class="pl-c1">360</span>,
(<span class="pl-c1">255</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>),
<span class="pl-s1">thickness</span>,
<span class="pl-s1">line_type</span>)
</pre></div> | <p dir="auto">OpenCV => master<br>
Operating System / Platform => Windows 64 Bit<br>
Compiler => Visual Studio 2017<br>
CMake option WITH_OPENMP=ON</p>
<p dir="auto">Here: <a href="https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L553">https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L553</a><br>
pbody need integer value: <a href="https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L428">https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L428</a></p> | 0 |
<p dir="auto">The following code</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Struct([u8]);
fn as_slice(s: &Struct) -> &[u8] {
let &Struct(ref this) = s;
this
}
fn main() { }"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Struct</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">as_slice</span><span class="pl-kos">(</span><span class="pl-s1">s</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-smi">Struct</span><span class="pl-kos">)</span> -> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-c1">&</span><span class="pl-v">Struct</span><span class="pl-kos">(</span><span class="pl-k">ref</span> this<span class="pl-kos">)</span> = s<span class="pl-kos">;</span>
this
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">fails to compile, the error message is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Assertion failed: (Ty && "Invalid GetElementPtrInst indices for type!"), function checkGEPType, file /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/llvm/include/llvm/IR/Instructions.h, line 782.
Abort trap: 6"><pre class="notranslate"><code class="notranslate">Assertion failed: (Ty && "Invalid GetElementPtrInst indices for type!"), function checkGEPType, file /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/llvm/include/llvm/IR/Instructions.h, line 782.
Abort trap: 6
</code></pre></div> | <p dir="auto">Trying to build this:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Foo(pub str);
impl Foo {
fn print(&self) {
match self {
&Foo(ref s) => println!("f\"{}\"", s),
}
}
}
fn main() {}"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Foo</span><span class="pl-kos">(</span><span class="pl-k">pub</span> <span class="pl-smi">str</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">print</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">match</span> <span class="pl-smi">self</span> <span class="pl-kos">{</span>
<span class="pl-c1">&</span><span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-k">ref</span> s<span class="pl-kos">)</span> => <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"f<span class="pl-cce">\"</span>{}<span class="pl-cce">\"</span>"</span>, s<span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">and I get this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/shum/src/rust/rust/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = const llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = const llvm::PointerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed."><pre class="notranslate"><code class="notranslate">rustc: /home/shum/src/rust/rust/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = const llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = const llvm::PointerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
</code></pre></div> | 1 |
<p dir="auto">when i use like this:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(mContext).load(mUrl).placeholder(R.drawable.placeholder).crossFade().into(mViewHolder.getImageView()); "><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>).<span class="pl-en">load</span>(<span class="pl-s1">mUrl</span>).<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">placeholder</span>).<span class="pl-en">crossFade</span>().<span class="pl-en">into</span>(<span class="pl-s1">mViewHolder</span>.<span class="pl-en">getImageView</span>()); </pre></div>
<p dir="auto">on android may cause picture looks smaller than imageview .note that i have set imageview scale fitXY.</p> | <p dir="auto">How can I load app icons to listView or RecyclerView. A app icon is a drawable. If i set the drawable to listview directly,the listview often caton that get a bad experience.</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Any other software?
Windows Terminal built from git clone 9/92019. Have noticed it in the past.
"><pre lang="Windows" class="notranslate"><code class="notranslate">Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Any other software?
Windows Terminal built from git clone 9/92019. Have noticed it in the past.
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Build Microsoft Terminal<br>
git clone <a href="https://github.com/microsoft/Terminal.git">https://github.com/microsoft/Terminal.git</a><br>
cd Terminal<br>
git submodule update --init --recursive<br>
nuget restore OpenConsole.sln<br>
Open VS2019<br>
Set build to release X64<br>
Build Solution<br>
Deploy Solution</p>
<p dir="auto">Launch Terminal from Start menu.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">At this point the build directory should be able to be deleted. Solution was deployed. Build dirs should not be used</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Build dir tree is still used by running deployed release build app<br>
Terminal\src\cascadia\CascadiaPackage\bin\x64\Release\AppX<br>
Files opened by running "Windows Terminal.exe" verified by Process Explorer.</p>
<p dir="auto">Not sure why it does this, but it shouldn't</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [Version 10.0.18936.1000]
Windows Terminal version (if applicable): Version: 0.3.2171.0
Any other software?"><pre class="notranslate"><code class="notranslate">Microsoft Windows [Version 10.0.18936.1000]
Windows Terminal version (if applicable): Version: 0.3.2171.0
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Run powershell as admin<br>
Run the following command: choco upgrade microsoft-windows-terminal</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I expect Chocolatey to install the latest version of Terminal (0.4.2382.0)</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The installation fails with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CFB, The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details.
Deployment of package Microsoft.WindowsTerminal_0.3.2171.0_x64__8wekyb3d8bbwe was blocked because the provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old package for every user on the system before installing this package.
NOTE: For additional information, look for [ActivityId] a1d00f98-5894-0000-f26c-d5a19458d501 in the Event Log or use the command line Get-AppPackageLog -ActivityID a1d00f98-5894-0000-f26c-d5a19458d501
The upgrade of microsoft-windows-terminal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
See log for details.
Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- microsoft-windows-terminal (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
See log for details."><pre class="notranslate"><code class="notranslate">RROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CFB, The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details.
Deployment of package Microsoft.WindowsTerminal_0.3.2171.0_x64__8wekyb3d8bbwe was blocked because the provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old package for every user on the system before installing this package.
NOTE: For additional information, look for [ActivityId] a1d00f98-5894-0000-f26c-d5a19458d501 in the Event Log or use the command line Get-AppPackageLog -ActivityID a1d00f98-5894-0000-f26c-d5a19458d501
The upgrade of microsoft-windows-terminal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
See log for details.
Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- microsoft-windows-terminal (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
See log for details.
</code></pre></div>
<p dir="auto">Full logfile:<br>
<a href="https://gist.github.com/Taubin/57643031f49ab624cfe5375d79f7b93e">https://gist.github.com/Taubin/57643031f49ab624cfe5375d79f7b93e</a></p> | 0 |
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto">No.</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<p dir="auto">I searched for the words "Tim Hockin" on my chat roster. :-)</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p>
<p dir="auto">FEATURE.</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<p dir="auto">Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.4", GitCommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", GitTreeState:"clean"}<br>
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.5", GitCommit:"25eb53b54e08877d3789455964b3e97bdd3f3bce", GitTreeState:"clean"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: GCE/GKE</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): VERSION="14.04.5 LTS, Trusty Tahr"</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux edpin-linux.mtv.corp.google.com 3.13.0-91-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35930943" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/138" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/138/hovercard" href="https://github.com/kubernetes/kubernetes/pull/138">#138</a>-Ubuntu SMP Fri Jun 24 17:00:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">I tried to attach a PD in the wrong zone. I had pods in us-central1-c but this operator copy-and-pasted some examples around and created the PD in us-central1-a.</p>
<p dir="auto">Then the pod would not tell me why it was in ContainerCreating for long minutes. kubectl logs didn't show anything useful and kubectl describe pod showed me this unhelpful message:</p>
<p dir="auto">Events:<br>
FirstSeen LastSeen Count From SubobjectPath Type Reason Message</p>
<hr>
<p dir="auto">6m 6m 1 {default-scheduler } Normal Scheduled Successfully assigned dirserver-3381994805-8cfe6 to gke-cluster-1-default-pool-bb87ddba-hogl<br>
5m 23s 6 {kubelet gke-cluster-1-default-pool-bb87ddba-hogl} Warning FailedMount Unable to mount volumes for pod "dirserver-3381994805-8cfe6_default(fe8e0537-68c1-11e6-8f90-42010af00083)": Could not attach GCE PD "dirserver-logs". Timeout waiting for mount paths to be created.<br>
5m 23s 6 {kubelet gke-cluster-1-default-pool-bb87ddba-hogl} Warning FailedSync Error syncing pod, skipping: Could not attach GCE PD "dirserver-logs". Timeout waiting for mount paths to be created.</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">A message such as:<br>
"Can't connect to PD in a different zone: requested PD in "zones/us-central1-a", pod is running in "zones/us-central1-c".</p>
<p dir="auto">or somesuch.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<p dir="auto">gcloud compute disks create --size=100GB some-name --zone=us-central1-a</p>
<p dir="auto">Then configure your yaml job to run on us-central1-c.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p> | <p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you found any duplicates, you should instead reply there or use the 👍 icon in the upper-right of the issue message):</p>
<h2 dir="auto"><code class="notranslate">lookup on 8.8.8.8:53: no such host</code></h2>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-alpha.0.6480+b7e87917462559-dirty", GitCommit:"b7e879174625599c8c232f9d7e9bed9b7e7a9998", GitTreeState:"dirty", BuildDate:"2016-08-10T17:02:20Z", GoVersion:"go1.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-alpha.0.6480+b7e87917462559-dirty", GitCommit:"b7e879174625599c8c232f9d7e9bed9b7e7a9998", GitTreeState:"dirty", BuildDate:"2016-08-10T17:02:20Z", GoVersion:"go1.6", Compiler:"gc", Platform:"linux/amd64"}
"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-alpha.0.6480+b7e87917462559-dirty", GitCommit:"b7e879174625599c8c232f9d7e9bed9b7e7a9998", GitTreeState:"dirty", BuildDate:"2016-08-10T17:02:20Z", GoVersion:"go1.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-alpha.0.6480+b7e87917462559-dirty", GitCommit:"b7e879174625599c8c232f9d7e9bed9b7e7a9998", GitTreeState:"dirty", BuildDate:"2016-08-10T17:02:20Z", GoVersion:"go1.6", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: 3 GB RAM, 60 GB hard disk</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): <code class="notranslate">Ubuntu 14.04.1 LTS</code></li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): <code class="notranslate">Linux vagrant 3.13.0-83-generic #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</code></li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
I ran a single node cluster version using hack/local-up-cluster.sh and tried running petset examples provided - both galera and redis. The <code class="notranslate">peer-finder</code> keeps complaining with the following error : <code class="notranslate">lookup <service> on 8.8.8.8:53: no such host</code> where service is either <code class="notranslate">redis</code> or <code class="notranslate">galera</code>.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
Expect the petset to start properly.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
Run a single node cluster using hack/local-up-cluster.sh and run the petset example.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p> | 0 |
<p dir="auto">When kwarg <code class="notranslate">depthshade</code> is <code class="notranslate">False</code>, the color of the points is seemingly random.</p>
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When kwarg <code class="notranslate">depthshade</code> is <code class="notranslate">False</code> in scatter3D, the color of the points is seemingly random. Using <code class="notranslate">depthshade=True</code> gives the correct colors.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib
from matplotlib import pyplot as plt
backend = matplotlib.get_backend()
# to reproduce values
np.random.seed(1234)
# 3D Gaussian distribution of points
data = np.random.normal(0, 1, size=(3,1000))
for depthshade in [False, True]:
fig = plt.figure(f'backend {backend}, depthshade={depthshade}', clear=True)
ax3d = fig.gca(projection='3d')
ax3d.set(title=f'backend {backend}, depthshade={depthshade}',
xlabel='x', ylabel='y', zlabel='z')
# color data according to z-coordinate
scatter = ax3d.scatter(*data, c=data[2], depthshade=depthshade)
fig.colorbar(scatter, label='z-coordinate')
fig.tight_layout()
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">backend</span> <span class="pl-c1">=</span> <span class="pl-s1">matplotlib</span>.<span class="pl-en">get_backend</span>()
<span class="pl-c"># to reproduce values</span>
<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">1234</span>)
<span class="pl-c"># 3D Gaussian distribution of points</span>
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span>(<span class="pl-c1">3</span>,<span class="pl-c1">1000</span>))
<span class="pl-k">for</span> <span class="pl-s1">depthshade</span> <span class="pl-c1">in</span> [<span class="pl-c1">False</span>, <span class="pl-c1">True</span>]:
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s">f'backend <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">backend</span><span class="pl-kos">}</span></span>, depthshade=<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">depthshade</span><span class="pl-kos">}</span></span>'</span>, <span class="pl-s1">clear</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">ax3d</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">gca</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">ax3d</span>.<span class="pl-en">set</span>(<span class="pl-s1">title</span><span class="pl-c1">=</span><span class="pl-s">f'backend <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">backend</span><span class="pl-kos">}</span></span>, depthshade=<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">depthshade</span><span class="pl-kos">}</span></span>'</span>,
<span class="pl-s1">xlabel</span><span class="pl-c1">=</span><span class="pl-s">'x'</span>, <span class="pl-s1">ylabel</span><span class="pl-c1">=</span><span class="pl-s">'y'</span>, <span class="pl-s1">zlabel</span><span class="pl-c1">=</span><span class="pl-s">'z'</span>)
<span class="pl-c"># color data according to z-coordinate</span>
<span class="pl-s1">scatter</span> <span class="pl-c1">=</span> <span class="pl-s1">ax3d</span>.<span class="pl-en">scatter</span>(<span class="pl-c1">*</span><span class="pl-s1">data</span>, <span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-s1">data</span>[<span class="pl-c1">2</span>], <span class="pl-s1">depthshade</span><span class="pl-c1">=</span><span class="pl-s1">depthshade</span>)
<span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">scatter</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'z-coordinate'</span>)
<span class="pl-s1">fig</span>.<span class="pl-en">tight_layout</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/27952782/91016824-a9fa8980-e5ed-11ea-8a3e-6e0ce597e9cb.png"><img src="https://user-images.githubusercontent.com/27952782/91016824-a9fa8980-e5ed-11ea-8a3e-6e0ce597e9cb.png" alt="Qt5Agg_False" style="max-width: 100%;"></a><br>
With <code class="notranslate">depthshade=False</code> the color is assigned seemingly randomly.</p>
<p dir="auto"><strong>Expected outcome</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/27952782/91017952-3194c800-e5ef-11ea-9189-0caea4e2d032.png"><img src="https://user-images.githubusercontent.com/27952782/91017952-3194c800-e5ef-11ea-9189-0caea4e2d032.png" alt="Qt5Agg_True_linear" style="max-width: 100%;"></a><br>
With <code class="notranslate">depthshade=True</code> the color is assigned correctly.</p>
<p dir="auto">The problem appeared after I updated these packages from conda-forge:<br>
attrs 19.3.0-py_0 --> 20.1.0-pyh9f0ad1d_0<br>
matplotlib 3.3.1-0 --> 3.3.1-1<br>
matplotlib-base 3.3.1-py37h886f89f_0 --> 3.3.1-py37h886f89f_1<br>
numpy 1.19.1-py37h1efc2f6_1 --> 1.19.1-py37h1efc2f6_2<br>
The problem persisted after I reverted back to matplotlib 3.3.1-0 and matplotlib-base 3.3.1-py37h886f89f_0. (Maybe I did not revert back to the old version, since <code class="notranslate">matplotlib._version.get_versions()</code> prints <code class="notranslate">'full-revisionid': '079e015ccad39526098098c05b5e7e510fef19df'</code> with either build?)</p>
<p dir="auto">Sometimes (i.e. I have not managed to reproduce it reliably) the face- and edge-colors don't agree when <code class="notranslate">depthshade=True</code>.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: macOS 10.15.6 (19G2021)</li>
<li>Matplotlib version: 3.3.1-1 (from conda-forge)</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): tested in Qt5Agg and MacOSX</li>
<li>Python version: 3.7.8</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries:</li>
</ul> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When colors are based on coordinates in <code class="notranslate">scatter3D</code>, the color changes when the orientation of the plot is changed.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">This codes plots 10 points along the x-axis from 0 to <code class="notranslate">x_max</code>, using <code class="notranslate">scatter3D</code> with their color depending on their x-position (dark purple for 0, yellow for <code class="notranslate">x_max</code>). The first <code class="notranslate">view_point</code> gives the expected result, whereas the second does not. For comparison, the same data plotted with <code class="notranslate">plot</code> (and offset by 1 in the z-direction for clarity) always give the expected result.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
from matplotlib import pyplot as plt
import matplotlib
backend = matplotlib.get_backend()
# two view points to show the problem
view_points = [[15, -70],[15, -110]]
# create points along the x-axis
num_points, x_max = 10, 4
x_coord = np.linspace(0, x_max, num_points)
y_coord = np.zeros_like(x_coord)
z_coord = np.zeros_like(x_coord)
coords_3d = np.array([x_coord, y_coord, z_coord])
for view_point in view_points:
fig = plt.figure(f'view point {view_point}', clear=True)
ax3d = fig.gca(projection='3d')
ax3d.set_title(f'backend {backend}, view point {view_point}')
ax3d.set_xlabel('x')
ax3d.set_ylabel('y')
ax3d.set_zlabel('z')
# color points according to x-coordinate
scatter = ax3d.scatter3D(*coords_3d, c=x_coord, depthshade=False)
# draw same points using `plot` and offset by 1 in z-direction for clarity
for coord in coords_3d.T:
ax3d.plot(*coord + [0,0,1], 'x',
color=scatter.cmap(scatter.norm(coord[0])) )
fig.colorbar(scatter, label='x-coordinate')
ax3d.view_init(*view_point)
ax3d.legend(ax3d.get_children()[:2], ['scatter','plot'])
fig.tight_layout()
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-s1">backend</span> <span class="pl-c1">=</span> <span class="pl-s1">matplotlib</span>.<span class="pl-en">get_backend</span>()
<span class="pl-c"># two view points to show the problem</span>
<span class="pl-s1">view_points</span> <span class="pl-c1">=</span> [[<span class="pl-c1">15</span>, <span class="pl-c1">-</span><span class="pl-c1">70</span>],[<span class="pl-c1">15</span>, <span class="pl-c1">-</span><span class="pl-c1">110</span>]]
<span class="pl-c"># create points along the x-axis</span>
<span class="pl-s1">num_points</span>, <span class="pl-s1">x_max</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span>, <span class="pl-c1">4</span>
<span class="pl-s1">x_coord</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-s1">x_max</span>, <span class="pl-s1">num_points</span>)
<span class="pl-s1">y_coord</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros_like</span>(<span class="pl-s1">x_coord</span>)
<span class="pl-s1">z_coord</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros_like</span>(<span class="pl-s1">x_coord</span>)
<span class="pl-s1">coords_3d</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">x_coord</span>, <span class="pl-s1">y_coord</span>, <span class="pl-s1">z_coord</span>])
<span class="pl-k">for</span> <span class="pl-s1">view_point</span> <span class="pl-c1">in</span> <span class="pl-s1">view_points</span>:
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s">f'view point <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">view_point</span><span class="pl-kos">}</span></span>'</span>, <span class="pl-s1">clear</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">ax3d</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">gca</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">ax3d</span>.<span class="pl-en">set_title</span>(<span class="pl-s">f'backend <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">backend</span><span class="pl-kos">}</span></span>, view point <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">view_point</span><span class="pl-kos">}</span></span>'</span>)
<span class="pl-s1">ax3d</span>.<span class="pl-en">set_xlabel</span>(<span class="pl-s">'x'</span>)
<span class="pl-s1">ax3d</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">'y'</span>)
<span class="pl-s1">ax3d</span>.<span class="pl-en">set_zlabel</span>(<span class="pl-s">'z'</span>)
<span class="pl-c"># color points according to x-coordinate</span>
<span class="pl-s1">scatter</span> <span class="pl-c1">=</span> <span class="pl-s1">ax3d</span>.<span class="pl-en">scatter3D</span>(<span class="pl-c1">*</span><span class="pl-s1">coords_3d</span>, <span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-s1">x_coord</span>, <span class="pl-s1">depthshade</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-c"># draw same points using `plot` and offset by 1 in z-direction for clarity</span>
<span class="pl-k">for</span> <span class="pl-s1">coord</span> <span class="pl-c1">in</span> <span class="pl-s1">coords_3d</span>.<span class="pl-v">T</span>:
<span class="pl-s1">ax3d</span>.<span class="pl-en">plot</span>(<span class="pl-c1">*</span><span class="pl-s1">coord</span> <span class="pl-c1">+</span> [<span class="pl-c1">0</span>,<span class="pl-c1">0</span>,<span class="pl-c1">1</span>], <span class="pl-s">'x'</span>,
<span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s1">scatter</span>.<span class="pl-en">cmap</span>(<span class="pl-s1">scatter</span>.<span class="pl-en">norm</span>(<span class="pl-s1">coord</span>[<span class="pl-c1">0</span>])) )
<span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">scatter</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'x-coordinate'</span>)
<span class="pl-s1">ax3d</span>.<span class="pl-en">view_init</span>(<span class="pl-c1">*</span><span class="pl-s1">view_point</span>)
<span class="pl-s1">ax3d</span>.<span class="pl-en">legend</span>(<span class="pl-s1">ax3d</span>.<span class="pl-en">get_children</span>()[:<span class="pl-c1">2</span>], [<span class="pl-s">'scatter'</span>,<span class="pl-s">'plot'</span>])
<span class="pl-s1">fig</span>.<span class="pl-en">tight_layout</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/27952782/90535991-c5900b00-e17b-11ea-959e-a25f4cf0cf01.png"><img src="https://user-images.githubusercontent.com/27952782/90535991-c5900b00-e17b-11ea-959e-a25f4cf0cf01.png" alt="Qt5Agg_-110" style="max-width: 100%;"></a></p>
<p dir="auto">The <code class="notranslate">view_point=[15,-110]</code> assigns the color in the wrong (reversed) order: the point at (0,0,0) has the bright color corresponding to an x-coordinate of <code class="notranslate">x_max</code>, which is clearly wrong. This occurs for azimuth angles between [-180,-90] and [90, 180] degrees.</p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/27952782/90536018-cde84600-e17b-11ea-8687-5b793466fc40.png"><img src="https://user-images.githubusercontent.com/27952782/90536018-cde84600-e17b-11ea-8687-5b793466fc40.png" alt="Qt5Agg_-70" style="max-width: 100%;"></a></p>
<p dir="auto">The <code class="notranslate">view_point=[15,-70]</code> produces the expected outcome, i.e. dark colors for points close to the origin at (0,0,0) and bright colors for points farther away. This should be independent on the orientation of the plot.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: maxOS 10.15.6 (19G2021)</li>
<li>Matplotlib version: 3.3.1</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): tested with Qt5Agg and MacOSX</li>
<li>Python version: 3.7.8</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries:</li>
</ul> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.8</li>
<li>Operating System version: win10 2004</li>
<li>Java version: OracleJDK-8u241</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Generate a new dubbo project ,and 2+ dubbo modules at least to start</li>
<li>The dubbo port configuration for both modules is as follows:</li>
</ol>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dubbo:
protocol:
name: dubbo
port: -1"><pre class="notranslate"><span class="pl-ent">dubbo</span>:
<span class="pl-ent">protocol</span>:
<span class="pl-ent">name</span>: <span class="pl-s">dubbo</span>
<span class="pl-ent">port</span>: <span class="pl-c1">-1</span></pre></div>
<ol start="3" dir="auto">
<li>Start both modules at the same time on the same host</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Two dubbo modules start normally and use two different random ports</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">One dubbo modules start normally and another not. Because they use the same dubbo protocol port.</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2020-09-09 10:42:23.414 WARN 17632 [main] o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.apache.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.137.1:20880/com.alibaba.cloud.dubbo.service.DubboMetadataService?anyhost=true&application=dubbo-sample-consumer&bind.ip=192.168.137.1&bind.port=20880&channel.readonly.sent=true&codec=dubbo&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&group=dubbo-sample-consumer&heartbeat=60000&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=17632&qos.enable=false&release=2.7.8&retries=-1&revision=2.2.1.RELEASE&side=provider&timeout=40000&timestamp=1599619340513&version=1.0.0) Failed to bind NettyServer on /192.168.137.1:20880, cause: Address already in use: bind
... ...
2020-09-09 10:42:48.024 ERROR 17632 [Nacso-Watch-Task-Scheduler-1] o.s.s.support.TaskUtils$LoggingErrorHandler Unexpected error occurred in scheduled task
java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@11841b15 has not been refreshed yet
at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1096) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1108) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.getTargetBean(ApplicationListenerMethodAdapter.java:332) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:297) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:190) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:153) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at com.alibaba.cloud.nacos.discovery.NacosWatch.nacosServicesWatch(NacosWatch.java:130) ~[spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar:2.2.1.RELEASE]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_241]
at java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:308) [na:1.8.0_241]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) [na:1.8.0_241]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_241]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_241]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_241]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_241]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_241]
"><pre class="notranslate"><code class="notranslate">2020-09-09 10:42:23.414 WARN 17632 [main] o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.apache.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.137.1:20880/com.alibaba.cloud.dubbo.service.DubboMetadataService?anyhost=true&application=dubbo-sample-consumer&bind.ip=192.168.137.1&bind.port=20880&channel.readonly.sent=true&codec=dubbo&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&group=dubbo-sample-consumer&heartbeat=60000&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=17632&qos.enable=false&release=2.7.8&retries=-1&revision=2.2.1.RELEASE&side=provider&timeout=40000&timestamp=1599619340513&version=1.0.0) Failed to bind NettyServer on /192.168.137.1:20880, cause: Address already in use: bind
... ...
2020-09-09 10:42:48.024 ERROR 17632 [Nacso-Watch-Task-Scheduler-1] o.s.s.support.TaskUtils$LoggingErrorHandler Unexpected error occurred in scheduled task
java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@11841b15 has not been refreshed yet
at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1096) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1108) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.getTargetBean(ApplicationListenerMethodAdapter.java:332) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:297) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:190) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:153) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at com.alibaba.cloud.nacos.discovery.NacosWatch.nacosServicesWatch(NacosWatch.java:130) ~[spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar:2.2.1.RELEASE]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_241]
at java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:308) [na:1.8.0_241]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) [na:1.8.0_241]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_241]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_241]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_241]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_241]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_241]
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">i want get the inbound and onbound channels of dubbo.<br>
how to do it ?</p> | 0 |
<h2 dir="auto">Proposed solution</h2>
<p dir="auto">Right now access to thread locals defined by <code class="notranslate">thread_local!</code> aren't inlined across crates, causing performance problems that wouldn't otherwise be seen within one crate. This can probably be solved with a few new minor language features:</p>
<ul dir="auto">
<li>First, the <code class="notranslate">#[inline]</code> annotation could be processed on <code class="notranslate">static</code> variables. If the variable does not have any internal mutability, then the definition can be inlined into other LLVM modules and tagged with <code class="notranslate">available_externally</code>. That means that the contents are available for optimization, but if you're taking the address it's available elsewhere.</li>
<li>Second, when we inline the contents of a static across modules, function pointers should also be chased and inlined if they're tagged with <code class="notranslate">#[inline]</code>.</li>
</ul>
<p dir="auto">Those two pieces I believe should provide enough inlining opportunities to ensure that accesses are as fast when done from external crates as they are done with internal crates.</p>
<h2 dir="auto">Original description</h2>
<p dir="auto">This hurts performance for the locks in <code class="notranslate">std::sync</code>, as they call <code class="notranslate">std::rt::unwind::panicking()</code> (which just reads a thread-local). For uncontended locks the cost is quite significant.</p>
<p dir="auto">There are two problems:</p>
<ol dir="auto">
<li><code class="notranslate">std::rt::unwind::panicking()</code> isn't marked inline. This is trivial to solve.</li>
<li>Accessing a <code class="notranslate">thread_local!</code> goes through function pointers, which LLVM fails to see through. These are the <code class="notranslate">__getit</code> functions in <code class="notranslate">libstd/thread/local.rs</code>. Consider these two files:</li>
</ol>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// tls.rs
use std::cell::Cell;
thread_local! { static FOO: Cell<bool> = Cell::new(false) }
#[inline]
pub fn get_foo() -> bool {
FOO.with(|s| s.get())
}"><pre class="notranslate"><span class="pl-c">// tls.rs</span>
<span class="pl-k">use</span> std<span class="pl-kos">::</span>cell<span class="pl-kos">::</span><span class="pl-v">Cell</span><span class="pl-kos">;</span>
<span class="pl-en">thread_local</span><span class="pl-en">!</span> <span class="pl-kos">{</span> <span class="pl-k">static</span> <span class="pl-v">FOO</span>: <span class="pl-v">Cell</span><<span class="pl-smi">bool</span>> = <span class="pl-v">Cell</span>::new<span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>inline<span class="pl-kos">]</span></span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">get_foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -> <span class="pl-smi">bool</span> <span class="pl-kos">{</span>
<span class="pl-v">FOO</span><span class="pl-kos">.</span><span class="pl-en">with</span><span class="pl-kos">(</span>|s| s<span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// other.rs
extern crate tls;
#[inline(never)]
fn call_foo() -> bool {
tls::get_foo()
}"><pre class="notranslate"><span class="pl-c">// other.rs</span>
<span class="pl-k">extern</span> <span class="pl-k">crate</span> tls<span class="pl-kos">;</span>
<span class="pl-c1">#<span class="pl-kos">[</span>inline<span class="pl-kos">(</span>never<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">fn</span> <span class="pl-en">call_foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -> <span class="pl-smi">bool</span> <span class="pl-kos">{</span>
tls<span class="pl-kos">::</span><span class="pl-en">get_foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><code class="notranslate">call_foo</code> gets the following IR with everything compiled with full optimization. Note the call through a function pointer:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="define internal fastcc zeroext i1 @_ZN8call_foo20h55fb2c2ba5981f51PaaE() unnamed_addr #3 {
entry-block:
%0 = load %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* ()** getelementptr inbounds (%"1.std::thread::local::LocalKey<core::cell::Cell<bool>>"* @_ZN3FOO20hefc7cdadc988b7defaaE, i64 0, i32 0), align 8
%1 = tail call dereferenceable(4) %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %0()
%2 = getelementptr inbounds %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %1, i64 0, i32 0, i32 0, i32 0, i32 0
%3 = load i8* %2, align 1, !range !13
%cond.i.i = icmp eq i8 %3, 1
br i1 %cond.i.i, label %match_case.i.i, label %match_else.i.i
match_else.i.i: ; preds = %entry-block
%4 = load i8 ()** getelementptr inbounds (%"1.std::thread::local::LocalKey<core::cell::Cell<bool>>"* @_ZN3FOO20hefc7cdadc988b7defaaE, i64 0, i32 1), align 8
%5 = tail call i8 %4()
%6 = zext i8 %5 to i16
%7 = shl nuw i16 %6, 8
%8 = or i16 %7, 1
%9 = bitcast %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %1 to i16*
store i16 %8, i16* %9, align 1
%10 = getelementptr inbounds %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %1, i64 0, i32 0, i32 0, i32 0, i32 2, i64 0
%11 = bitcast i8* %10 to %"2.core::cell::Cell<bool>"*
br label %_ZN7get_foo20h73631102cae2c5b4lbaE.exit
match_case.i.i: ; preds = %entry-block
%12 = getelementptr inbounds %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %1, i64 0, i32 0, i32 0, i32 0, i32 2
%13 = bitcast [1 x i8]* %12 to %"2.core::cell::Cell<bool>"*
br label %_ZN7get_foo20h73631102cae2c5b4lbaE.exit
_ZN7get_foo20h73631102cae2c5b4lbaE.exit: ; preds = %match_else.i.i, %match_case.i.i
%.0.i.i = phi %"2.core::cell::Cell<bool>"* [ %13, %match_case.i.i ], [ %11, %match_else.i.i ]
%.0.idx.i.i = getelementptr %"2.core::cell::Cell<bool>"* %.0.i.i, i64 0, i32 0, i32 0
%.0.idx.val.i.i = load i8* %.0.idx.i.i, align 1
%14 = icmp ne i8 %.0.idx.val.i.i, 0
ret i1 %14
}"><pre class="notranslate"><code class="notranslate">define internal fastcc zeroext i1 @_ZN8call_foo20h55fb2c2ba5981f51PaaE() unnamed_addr #3 {
entry-block:
%0 = load %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* ()** getelementptr inbounds (%"1.std::thread::local::LocalKey<core::cell::Cell<bool>>"* @_ZN3FOO20hefc7cdadc988b7defaaE, i64 0, i32 0), align 8
%1 = tail call dereferenceable(4) %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %0()
%2 = getelementptr inbounds %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %1, i64 0, i32 0, i32 0, i32 0, i32 0
%3 = load i8* %2, align 1, !range !13
%cond.i.i = icmp eq i8 %3, 1
br i1 %cond.i.i, label %match_case.i.i, label %match_else.i.i
match_else.i.i: ; preds = %entry-block
%4 = load i8 ()** getelementptr inbounds (%"1.std::thread::local::LocalKey<core::cell::Cell<bool>>"* @_ZN3FOO20hefc7cdadc988b7defaaE, i64 0, i32 1), align 8
%5 = tail call i8 %4()
%6 = zext i8 %5 to i16
%7 = shl nuw i16 %6, 8
%8 = or i16 %7, 1
%9 = bitcast %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %1 to i16*
store i16 %8, i16* %9, align 1
%10 = getelementptr inbounds %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %1, i64 0, i32 0, i32 0, i32 0, i32 2, i64 0
%11 = bitcast i8* %10 to %"2.core::cell::Cell<bool>"*
br label %_ZN7get_foo20h73631102cae2c5b4lbaE.exit
match_case.i.i: ; preds = %entry-block
%12 = getelementptr inbounds %"1.std::thread::local::imp::Key<core::cell::UnsafeCell<core::option::Option<core::cell::Cell<bool>>>>"* %1, i64 0, i32 0, i32 0, i32 0, i32 2
%13 = bitcast [1 x i8]* %12 to %"2.core::cell::Cell<bool>"*
br label %_ZN7get_foo20h73631102cae2c5b4lbaE.exit
_ZN7get_foo20h73631102cae2c5b4lbaE.exit: ; preds = %match_else.i.i, %match_case.i.i
%.0.i.i = phi %"2.core::cell::Cell<bool>"* [ %13, %match_case.i.i ], [ %11, %match_else.i.i ]
%.0.idx.i.i = getelementptr %"2.core::cell::Cell<bool>"* %.0.i.i, i64 0, i32 0, i32 0
%.0.idx.val.i.i = load i8* %.0.idx.i.i, align 1
%14 = icmp ne i8 %.0.idx.val.i.i, 0
ret i1 %14
}
</code></pre></div> | <p dir="auto">There are multiple instructions for building on Windows, and they are not in agreement, as described here: <a href="http://www.reddit.com/r/rust/comments/2e62f6/compiling_rust_on_windows_aka_why_does_this_have/" rel="nofollow">http://www.reddit.com/r/rust/comments/2e62f6/compiling_rust_on_windows_aka_why_does_this_have/</a></p> | 0 |
<p dir="auto">Minimal example of the problem:</p>
<ul dir="auto">
<li>App component that uses ContenteditableModel component which allows to edit bonded property and emit changes to parent component via two-way data binding - [()]</li>
<li>ContenteditableModel is able to change App.text property</li>
<li>App.OnChanges should be executed.</li>
</ul>
<p dir="auto"><a href="http://plnkr.co/edit/teURR9?p=preview" rel="nofollow">http://plnkr.co/edit/teURR9?p=preview</a></p>
<p dir="auto">Problem is that OnChanges hook is not executed in the App component , although value {{text}} is changing properly.</p>
<p dir="auto">My app setup:<br>
"angular2": "2.0.0-beta.13",<br>
"es6-promise": "^3.1.2",<br>
"es6-shim": "^0.35.0",<br>
"reflect-metadata": "0.1.2",<br>
"rxjs": "5.0.0-beta.2",<br>
"systemjs": "0.19.22",<br>
"zone.js": "^0.6.6"</p> | <p dir="auto">Not sure if this is the right forum but opening an issue nevertheless</p>
<p dir="auto">I was looking at the bio page at <a href="https://angular.io/about/" rel="nofollow">https://angular.io/about/</a>. I clicked on a bio once to view the person profile. I then close the bio and then click on the same bio again. Voila!! I get a 404. This is happening across bios and is easily reproducible.</p>
<p dir="auto"><a href="https://angular.io/about/" rel="nofollow">https://angular.io/about/</a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2028580/7850848/bdec4ba8-052a-11e5-802f-09b0cf93f4ef.png"><img src="https://cloud.githubusercontent.com/assets/2028580/7850848/bdec4ba8-052a-11e5-802f-09b0cf93f4ef.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">How to use Ble?Is there an API?</p> | <p dir="auto">Mobile platforms offer APIs to connect and communicate with Bluetooth.</p> | 1 |
<p dir="auto">The <code class="notranslate">reduce</code> function should, according to its docstring, "reduce the given collection with the given binary operator." I believe this is also what most programmers would expect a <code class="notranslate">reduce</code> function to do.</p>
<p dir="auto">However, this is not always what it does. Some input types, e.g. <code class="notranslate">Int32</code> are converted before the operator is applied. This can lead to unexpected results.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> my_op(a::Int32,b::Int32) = max(a,b)
my_op (generic function with 1 method)
julia> reduce(my_op, ones(Int32,42))
ERROR: MethodError: no method matching my_op(::Int64, ::Int64)
in mapreduce_impl(::Base.#identity, ::#my_op, ::Array{Int32,1}, ::Int64, ::Int64, ::Int64) at ./reduce.jl:101
in _mapreduce(::Base.#identity, ::#my_op, ::Base.LinearFast, ::Array{Int32,1}) at ./reduce.jl:168
in mapreduce(::Function, ::Function, ::Array{Int32,1}) at ./reduce.jl:175
in reduce(::Function, ::Array{Int32,1}) at ./reduce.jl:179"><pre class="notranslate"><code class="notranslate">julia> my_op(a::Int32,b::Int32) = max(a,b)
my_op (generic function with 1 method)
julia> reduce(my_op, ones(Int32,42))
ERROR: MethodError: no method matching my_op(::Int64, ::Int64)
in mapreduce_impl(::Base.#identity, ::#my_op, ::Array{Int32,1}, ::Int64, ::Int64, ::Int64) at ./reduce.jl:101
in _mapreduce(::Base.#identity, ::#my_op, ::Base.LinearFast, ::Array{Int32,1}) at ./reduce.jl:168
in mapreduce(::Function, ::Function, ::Array{Int32,1}) at ./reduce.jl:175
in reduce(::Function, ::Array{Int32,1}) at ./reduce.jl:179
</code></pre></div>
<p dir="auto">The exact same problem occurs with <code class="notranslate">mapreduce(identity, my_op, ones(Int32,42))</code>.</p>
<p dir="auto">I realize that using an accumulator that is wider than the input could be beneficial in some special circumstances, such as if the <code class="notranslate">sum</code> function didn't exist and one wanted to create it using <code class="notranslate">reduce(+, ...)</code> without risking integer overflow. But in those cases one could supply a <code class="notranslate">v0</code> argument of the desired return type (or there could be an optional <code class="notranslate">accumulator_type</code> argument).</p> | <p dir="auto">I'm running a code similar to following (data: <a href="https://homes.cs.washington.edu/~grechkin/bugreport1.jld" rel="nofollow">https://homes.cs.washington.edu/~grechkin/bugreport1.jld</a>)</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using JLD
type A1
v1::String
v2::String
end
type B1
val::A1
tag::String
end
@load "bugreport1.jld" tmp_data2
Base.hash(x::A1) = hash((x.v1, x.v2))
Base.hash(x::B1) = hash((hash(x.tag), hash(x.val)))
import Base.==
==(x::B1, y::B1) = x.tag == y.tag && x.val.v1 == y.val.v1 && x.val.v2 == y.val.v2
@show tmp_data2 # 12 items in the array with last two duplicated
@show unique(tmp_data2[1:12]) # expect here that one of the last two entries will be removed
@show unique(tmp_data2[6:12]) # when I call it like this, last two items are actually deduplicated
# yet:
@show hash(tmp_data2[11]) == hash(tmp_data2[12]) # true
@show tmp_data2[11] == tmp_data2[12] # true"><pre class="notranslate"><span class="pl-k">using</span> JLD
type A1
v1<span class="pl-k">::</span><span class="pl-c1">String</span>
v2<span class="pl-k">::</span><span class="pl-c1">String</span>
<span class="pl-k">end</span>
type B1
val<span class="pl-k">::</span><span class="pl-c1">A1</span>
tag<span class="pl-k">::</span><span class="pl-c1">String</span>
<span class="pl-k">end</span>
<span class="pl-c1">@load</span> <span class="pl-s"><span class="pl-pds">"</span>bugreport1.jld<span class="pl-pds">"</span></span> tmp_data2
Base<span class="pl-k">.</span><span class="pl-en">hash</span>(x<span class="pl-k">::</span><span class="pl-c1">A1</span>) <span class="pl-k">=</span> <span class="pl-c1">hash</span>((x<span class="pl-k">.</span>v1, x<span class="pl-k">.</span>v2))
Base<span class="pl-k">.</span><span class="pl-en">hash</span>(x<span class="pl-k">::</span><span class="pl-c1">B1</span>) <span class="pl-k">=</span> <span class="pl-c1">hash</span>((<span class="pl-c1">hash</span>(x<span class="pl-k">.</span>tag), <span class="pl-c1">hash</span>(x<span class="pl-k">.</span>val)))
<span class="pl-k">import</span> Base<span class="pl-k">.==</span>
<span class="pl-k">==</span>(x<span class="pl-k">::</span><span class="pl-c1">B1</span>, y<span class="pl-k">::</span><span class="pl-c1">B1</span>) <span class="pl-k">=</span> x<span class="pl-k">.</span>tag <span class="pl-k">==</span> y<span class="pl-k">.</span>tag <span class="pl-k">&&</span> x<span class="pl-k">.</span>val<span class="pl-k">.</span>v1 <span class="pl-k">==</span> y<span class="pl-k">.</span>val<span class="pl-k">.</span>v1 <span class="pl-k">&&</span> x<span class="pl-k">.</span>val<span class="pl-k">.</span>v2 <span class="pl-k">==</span> y<span class="pl-k">.</span>val<span class="pl-k">.</span>v2
<span class="pl-c1">@show</span> tmp_data2 <span class="pl-c"><span class="pl-c">#</span> 12 items in the array with last two duplicated</span>
<span class="pl-c1">@show</span> <span class="pl-c1">unique</span>(tmp_data2[<span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">12</span>]) <span class="pl-c"><span class="pl-c">#</span> expect here that one of the last two entries will be removed</span>
<span class="pl-c1">@show</span> <span class="pl-c1">unique</span>(tmp_data2[<span class="pl-c1">6</span><span class="pl-k">:</span><span class="pl-c1">12</span>]) <span class="pl-c"><span class="pl-c">#</span> when I call it like this, last two items are actually deduplicated</span>
<span class="pl-c"><span class="pl-c">#</span> yet:</span>
<span class="pl-c1">@show</span> <span class="pl-c1">hash</span>(tmp_data2[<span class="pl-c1">11</span>]) <span class="pl-k">==</span> <span class="pl-c1">hash</span>(tmp_data2[<span class="pl-c1">12</span>]) <span class="pl-c"><span class="pl-c">#</span> true</span>
<span class="pl-c1">@show</span> tmp_data2[<span class="pl-c1">11</span>] <span class="pl-k">==</span> tmp_data2[<span class="pl-c1">12</span>] <span class="pl-c"><span class="pl-c">#</span> true</span></pre></div>
<p dir="auto">On Julia 0.5 and it looks like <code class="notranslate">unique</code> is not removing elements even though they are equal to each other and hash to the same value.</p> | 0 |
<p dir="auto">I use console to generate new bundle.<br>
Normally, default path for bundle was <code class="notranslate">%root_dir%/src</code><br>
But now new bundle in my case is saved in cache folder: <code class="notranslate">app/cache/dev/src</code><br>
I guess that problem is new added function <code class="notranslate">removeAbsolutePathsFromContainer</code></p> | <p dir="auto">In 2.3.14, 2.3.15, and 2.4.5, when I run <code class="notranslate">php app/console generate:bundle</code> I get the following prompt:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Target directory [/home/intrepion/path/app/cache/dev/../src]:"><pre class="notranslate"><code class="notranslate">Target directory [/home/intrepion/path/app/cache/dev/../src]:
</code></pre></div>
<p dir="auto">But when I revert back to 2.3.13 or 2.4.4, I get exactly what I expect:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Target directory [/home/intrepion/path/src]: "><pre class="notranslate"><code class="notranslate">Target directory [/home/intrepion/path/src]:
</code></pre></div> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18995.1]
Windows Terminal version: source git at: #aa682bfd (origin/master, origin/HEAD) doc: update the path to profiles.json (#3087) [Dustin L. Howett (MSFT)]
Any other software? Ubuntu-18.04_LTS WSL 2"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18995.1]
Windows Terminal version: source git at: #aa682bfd (origin/master, origin/HEAD) doc: update the path to profiles.json (#3087) [Dustin L. Howett (MSFT)]
Any other software? Ubuntu-18.04_LTS WSL 2
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Simply open terminal, then open a new tab using the profile:</p>
<p dir="auto"><code class="notranslate">"commandline" : "wsl.exe -d Ubuntu-18.04"</code></p>
<p dir="auto">Then run <code class="notranslate">$ ls</code> on a directory that has a lot of files (or any command such that the screen displays more then the number of lines your terminal is able show at one time. It may take more than one time, but usually after a couple.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">There should be normal display lines without the shifting of a section of the entry/cursor line down by one line; it should display correctly, like with prior builds.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">At some point, adding lines to the buffer after listing files (or anything else), starting from where the cursor is at, the current line gets shifted down by one line. Then near the end of the line, the remainder of the line is displayed correctly.</p>
<p dir="auto">Any typing is displayed on the line down and is initially treated as valid input by your shell, but soon, the input line starts being displayed twice, or characters don't show up correctly, and generally becomes visually and functionally almost impossible to use.</p>
<p dir="auto">I've also confirmed that is not related to any particular shell, commands, or programs. It's how Terminal's display handling of the line that appears to be the problem (no pun intended ;-).</p>
<p dir="auto">Images attached show this more clearly. The first is simple file listing from zsh. The second is an example in Vim that shows exactly where the shift occurs. The cursor is on the line number that is underlined, but insert characters display on the next line. And the status bar provides clear range of the shift.</p>
<p dir="auto">It's not .vimrc or any configuration issue in any program or dotfiles, none of those have changed, and vanilla vim and/or nvim show it clearly as well.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1682691/66421502-f5a44480-e9d5-11e9-9378-db8bf48744b5.png"><img src="https://user-images.githubusercontent.com/1682691/66421502-f5a44480-e9d5-11e9-9378-db8bf48744b5.png" alt="terminal-issue-line-display-001" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1682691/66421503-f5a44480-e9d5-11e9-8f59-1b40240ff679.png"><img src="https://user-images.githubusercontent.com/1682691/66421503-f5a44480-e9d5-11e9-8f59-1b40240ff679.png" alt="terminal-issue-line-display-002" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version: 0.5.2681.0
Powershell: 5.1"><pre class="notranslate"><code class="notranslate">Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version: 0.5.2681.0
Powershell: 5.1
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Set color scheme for powershell profile to be One Half Dark or any of the other ones and then launch the powershell profile.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The background of powershell profile should change, as you select different <code class="notranslate">colorShemes</code> in the profile.json</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">No changes to the background color, the text colors do change but Powerhshell still remains blue</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.5.16</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/weituotian/k5hLxf1d/" rel="nofollow">https://jsfiddle.net/weituotian/k5hLxf1d/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>make sure the curPage in data is 1 or 2 or 3</li>
<li>click add transition</li>
<li>click change page</li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">not all the transition of <code class="notranslate">li</code> disapper.<br>
every time it should be one disapper.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">the transition is Disappear. all of the <code class="notranslate">li</code><br>
This shows that vue replaces all elements instead of incremental updates.</p>
<p dir="auto">if the curPage is 0,4,5, not all the transition of <code class="notranslate">li</code> wiil disapper</p>
<hr>
<p dir="auto">do not close my issue so easily.<br>
i will close it myself if i find the appropriate answer.</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codesandbox.io/s/js-duixiangzhongdezhidushichangliang-u8lzg?fontsize=14" rel="nofollow">https://codesandbox.io/s/js-duixiangzhongdezhidushichangliang-u8lzg?fontsize=14</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Add a dynamic component with slots to tbody lable.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Do not pop up error messages in the console.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Although it works normally, an error is reported.</p> | 0 |
<p dir="auto"><strong>Apache Airflow version</strong>: 1.10.15, but happens in all of them</p>
<p dir="auto"><strong>Environment</strong>: GCP Composer -> Kubernetes + Celery</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: Google</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
Errors appear while trying to use SqlSensor against a BigQuery View.<br>
For context I'll explain a little bit: BigQuery seemingly executes only SQL, but in reality there are two versions of the language. For backwards compatibility the so called <code class="notranslate">legacySQL</code> is set by default.</p>
<p dir="auto">I'm hot-fixing it like so:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class BigQuerySqlSensor(SqlSensor):
"""
Overwrites hook config when using SqlSensor with a BigQuery
connection
"""
def _get_hook(self):
hook = super()._get_hook()
hook.use_legacy_sql = False
hook.location = 'europe-west1'
return hook"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">BigQuerySqlSensor</span>(<span class="pl-v">SqlSensor</span>):
<span class="pl-s">"""</span>
<span class="pl-s"> Overwrites hook config when using SqlSensor with a BigQuery</span>
<span class="pl-s"> connection</span>
<span class="pl-s"> """</span>
<span class="pl-k">def</span> <span class="pl-en">_get_hook</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">hook</span> <span class="pl-c1">=</span> <span class="pl-en">super</span>().<span class="pl-en">_get_hook</span>()
<span class="pl-s1">hook</span>.<span class="pl-s1">use_legacy_sql</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>
<span class="pl-s1">hook</span>.<span class="pl-s1">location</span> <span class="pl-c1">=</span> <span class="pl-s">'europe-west1'</span>
<span class="pl-k">return</span> <span class="pl-s1">hook</span></pre></div>
<p dir="auto"><strong>How to reproduce it</strong>:<br>
The issue I'm experiencing is trying to run a simple query agains a view</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="check_resource_has_data = SqlSensor(
task_id="check_resource_has_data",
conn_id='google_cloud_default',
sql=f'SELECT COUNT(*) > 0 FROM `{dataset_id}.{resource_id}`',
)"><pre class="notranslate"><span class="pl-s1">check_resource_has_data</span> <span class="pl-c1">=</span> <span class="pl-v">SqlSensor</span>(
<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">"check_resource_has_data"</span>,
<span class="pl-s1">conn_id</span><span class="pl-c1">=</span><span class="pl-s">'google_cloud_default'</span>,
<span class="pl-s1">sql</span><span class="pl-c1">=</span><span class="pl-s">f'SELECT COUNT(*) > 0 FROM `<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">dataset_id</span><span class="pl-kos">}</span></span>.<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">resource_id</span><span class="pl-kos">}</span></span>`'</span>,
)</pre></div>
<p dir="auto"><em>First Error</em>: As I am using a standard language but the hook automatically sets this to legacy BigQuery will try to run this as Legacy, fail to parse and return an erro</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-07-28 16:03:05,499] {taskinstance.py:1152} ERROR - BigQuery job failed. Final error was: {'reason': 'invalid', 'location': '`my-project.test.cashflow_abacus_view`', 'message': 'Invalid table name: `my-project.test.my_view`
[Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)].'}. The job was: {'kind': 'bigquery#job', 'etag': 'random_etag==', 'id': 'my-project:US.job_some_randome_id_123412', 'selfLink': 'https://bigquery.googleapis.com/bigquery/v2/projects/my-project/jobs/job_some_randome_id_123412?location=US', 'user_email': '[email protected]', 'configuration': {'query': {'query': '
SELECT COUNT(*) > 0
FROM `my-project.test.my_view`
', 'priority': 'INTERACTIVE', 'useLegacySql': True},
'jobType': 'QUERY'}, 'jobReference': {'projectId':
'my-project', 'jobId': 'job_some_randome_id_123412', 'location': 'SO'}, 'statistics': {'creationTime': '1627488185084', 'startTime': '1627488185109', 'endTime': '1627488185109'}, 'status': {'errorResult': {'reason': 'invalid', 'location': '`my-project.test.my_view`', 'message': 'Invalid table name: `my-project.test.my_view`
[Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)].'}, 'errors': [{'reason': 'invalid', 'location': '`my-project.test.my_view`', 'message': 'Invalid table name: `my-project.test.my_view`
[Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)].'}], 'state': 'DONE'}}"><pre class="notranslate"><code class="notranslate">[2021-07-28 16:03:05,499] {taskinstance.py:1152} ERROR - BigQuery job failed. Final error was: {'reason': 'invalid', 'location': '`my-project.test.cashflow_abacus_view`', 'message': 'Invalid table name: `my-project.test.my_view`
[Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)].'}. The job was: {'kind': 'bigquery#job', 'etag': 'random_etag==', 'id': 'my-project:US.job_some_randome_id_123412', 'selfLink': 'https://bigquery.googleapis.com/bigquery/v2/projects/my-project/jobs/job_some_randome_id_123412?location=US', 'user_email': '[email protected]', 'configuration': {'query': {'query': '
SELECT COUNT(*) > 0
FROM `my-project.test.my_view`
', 'priority': 'INTERACTIVE', 'useLegacySql': True},
'jobType': 'QUERY'}, 'jobReference': {'projectId':
'my-project', 'jobId': 'job_some_randome_id_123412', 'location': 'SO'}, 'statistics': {'creationTime': '1627488185084', 'startTime': '1627488185109', 'endTime': '1627488185109'}, 'status': {'errorResult': {'reason': 'invalid', 'location': '`my-project.test.my_view`', 'message': 'Invalid table name: `my-project.test.my_view`
[Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)].'}, 'errors': [{'reason': 'invalid', 'location': '`my-project.test.my_view`', 'message': 'Invalid table name: `my-project.test.my_view`
[Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)].'}], 'state': 'DONE'}}
</code></pre></div>
<p dir="auto"><em>Second Error</em>: In order to switch the "dialect" you have several options. One of them, the closest to the code is prepending the query with a comment line like so <code class="notranslate"># standardSQL</code> (<a href="https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql#sql-prefix" rel="nofollow">docs</a>). But</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">There's no way to pass information to the hock that the SqlSensor is using underneath. It would be interesting to add a <code class="notranslate">hook_params</code> to the SqlSensor to be able to config the underlaying hooks:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# airflow/sensors/sql.py
class SqlSensor(BaseSensorOperator):
def __init__(
self, *, conn_id, sql, hook_config: Dict, parameters=None, success=None, failure=None, fail_on_empty=False, **kwargs
):
self.conn_id = conn_id
# init all the params...
self.hook_config = hook_config or {}
super().__init__(**kwargs)
def _get_hook(self):
conn = BaseHook.get_connection(self.conn_id)
# ...
return conn.get_hook(**self.hook_config)"><pre class="notranslate"><span class="pl-c"># airflow/sensors/sql.py</span>
<span class="pl-k">class</span> <span class="pl-v">SqlSensor</span>(<span class="pl-v">BaseSensorOperator</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(
<span class="pl-s1">self</span>, <span class="pl-c1">*</span>, <span class="pl-s1">conn_id</span>, <span class="pl-s1">sql</span>, <span class="pl-s1">hook_config</span>: <span class="pl-v">Dict</span>, <span class="pl-s1">parameters</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">success</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">failure</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">fail_on_empty</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>
):
<span class="pl-s1">self</span>.<span class="pl-s1">conn_id</span> <span class="pl-c1">=</span> <span class="pl-s1">conn_id</span>
<span class="pl-c"># init all the params...</span>
<span class="pl-s1">self</span>.<span class="pl-s1">hook_config</span> <span class="pl-c1">=</span> <span class="pl-s1">hook_config</span> <span class="pl-c1">or</span> {}
<span class="pl-en">super</span>().<span class="pl-en">__init__</span>(<span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-k">def</span> <span class="pl-en">_get_hook</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">conn</span> <span class="pl-c1">=</span> <span class="pl-v">BaseHook</span>.<span class="pl-en">get_connection</span>(<span class="pl-s1">self</span>.<span class="pl-s1">conn_id</span>)
<span class="pl-c"># ...</span>
<span class="pl-k">return</span> <span class="pl-s1">conn</span>.<span class="pl-en">get_hook</span>(<span class="pl-c1">**</span><span class="pl-s1">self</span>.<span class="pl-s1">hook_config</span>)</pre></div>
<p dir="auto">And in the connection</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# airflow/models/connection.py
class Connection(Base, LoggingMixin):
# ...
def get_hook(self, **kwargs):
"""Return hook based on conn_type."""
# locate hook class ...
return hook_class(**{conn_id_param: self.conn_id}, **kwargs)"><pre class="notranslate"><span class="pl-c"># airflow/models/connection.py</span>
<span class="pl-k">class</span> <span class="pl-v">Connection</span>(<span class="pl-v">Base</span>, <span class="pl-v">LoggingMixin</span>):
<span class="pl-c"># ...</span>
<span class="pl-k">def</span> <span class="pl-en">get_hook</span>(<span class="pl-s1">self</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>):
<span class="pl-s">"""Return hook based on conn_type."""</span>
<span class="pl-c"># locate hook class ...</span>
<span class="pl-k">return</span> <span class="pl-en">hook_class</span>(<span class="pl-c1">**</span>{<span class="pl-s1">conn_id_param</span>: <span class="pl-s1">self</span>.<span class="pl-s1">conn_id</span>}, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)</pre></div> | <p dir="auto"><strong>Description</strong></p>
<p dir="auto">A sql sensor which uses Standard SQL due to default one uses legacy sql</p>
<p dir="auto"><strong>Use case / motivation</strong></p>
<p dir="auto">Currently (correct me if I am wrong!), the sql sensor only supports legacy sql. If I want to poke a BQ table, I do not think I can do that using standard sql right now.</p>
<p dir="auto"><strong>Are you willing to submit a PR?</strong></p>
<p dir="auto">If community approves of this idea, sure!</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=steve_barham" rel="nofollow">Steve Barham</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6269?redirect=false" rel="nofollow">SPR-6269</a></strong> and commented</p>
<p dir="auto">JdbcUtils#commonDatabaseName uses a number of hardcoded database product names to identify Sybase.</p>
<p dir="auto">public static String commonDatabaseName(String source) {<br>
String name = source;<br>
if (source != null && source.startsWith("DB2")) {<br>
name = "DB2";<br>
}<br>
else if ("Sybase SQL Server".equals(source) ||<br>
"Adaptive Server Enterprise".equals(source) || "sql server".equals(source) ) {<br>
name = "Sybase";<br>
}<br>
return name;<br>
}</p>
<p dir="auto">Unfortunately, when using JTDS 1.2.4 against a Sybase 15.0.3 server, JtdsDatabaseMetadata will (for some server configurations) return 'ASE' rather than 'sql server'.</p>
<p dir="auto">This has knock on implications, most notably in this case in CallMetaDataProviderFactory, which uses the common database name to determine which meta data provider to use:</p>
<p dir="auto">else if ("Sybase".equals(databaseProductName)) {<br>
provider = new SybaseCallMetaDataProvider((databaseMetaData));<br>
}</p>
<p dir="auto">The net result of this is that a generic provider is used rather than a Sybase provider. The generic provider does not function correctly with at least one stored procedure in one of our applications, which results in no parameters being passed to the server.</p>
<p dir="auto">The proposed change would be to introduce 'ASE' alongside the existing Sybase product name checks in JdbcUtils, so that it is identified correctly as Sybase.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398097161" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10722" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10722/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10722">#10722</a> Cannot retrieve database metadata for Sybase (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=heymjo" rel="nofollow">Jorg Heymans</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2441?redirect=false" rel="nofollow">SPR-2441</a></strong> and commented</p>
<p dir="auto">I raised the issue here (<a href="http://forum.springframework.org/showthread.php?t=28170" rel="nofollow">http://forum.springframework.org/showthread.php?t=28170</a>), but nobody seems to have picked it up.</p>
<p dir="auto">This configuration worked fine in 2.0-RC2 (and 1.2.x for that matter)</p>
<p dir="auto"><bean id="advisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor"><br>
<property name="advice"><br>
<ref bean="interceptor" /><br>
</property><br>
<property name="patterns"><br>
<list><br>
<value>.<em>save.</em></value><br>
<value>.<em>do.</em></value><br>
<value>.<em>delete.</em></value><br>
</list><br>
</property><br>
</bean></p>
<p dir="auto">When upgrading to 2.0-RC3 i get following exception:</p>
<p dir="auto">2006-08-17 09:12:47,129 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed<br>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'advisor' defined in class path resource [service.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalArgumentException: 'patterns' cannot be null or empty.<br>
Caused by:<br>
java.lang.IllegalArgumentException: 'patterns' cannot be null or empty.<br>
at org.springframework.util.Assert.notEmpty(Assert.java:214)<br>
at org.springframework.aop.support.AbstractRegexpMethodPointcut.setPatterns(AbstractRegexpMethodPointcut.java:82)<br>
at org.springframework.aop.support.RegexpMethodPointcutAdvisor.getPointcut(RegexpMethodPointcutAdvisor.java:150)<br>
at org.springframework.aop.support.AbstractPointcutAdvisor.toString(AbstractPointcutAdvisor.java:71)<br>
at java.lang.String.valueOf(String.java:2131)<br>
at java.lang.StringBuffer.append(StringBuffer.java:370)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)</p>
<p dir="auto">If you need more information or if there is anything i can do to help debugging this let me know.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 RC3</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398069849" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7172" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7172/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7172">#7172</a> IllegalArgumentException from RegexpMethodPointcutAdvisor initialization when using DEBUG log level (<em><strong>"is duplicated by"</strong></em>)</li>
</ul> | 0 |
<p dir="auto">It is currently quiet hard to test modifications within custom error pages. It involves the following steps:</p>
<ol dir="auto">
<li>Make the exception controller use the right template:<br>
When in development mode the exception controller defaults to use a template called "exception_". In production it searches for "error_". So you either need to switch to production locally or rename your template temporarily. When switching to production locally Twig will start to cache the compiled templates. So you even need to clear the cache after each modification or deactivate caching in your Twig configuration. It is ugly anyway.</li>
<li>Trigger an exception<br>
To actually see the error page, an exception has to be thrown. This might still be easy for 404 exceptions (<a href="http://localhost/app.php/there/is/no/page/here" rel="nofollow">http://localhost/app.php/there/is/no/page/here</a>...), but is more difficult for other exception types (e.g. 403, 500).</li>
</ol>
<p dir="auto">Suggestion:</p>
<ol dir="auto">
<li>The exception controller should offer a way to make him use the "production" templates within development mode. This could be a configuration variable in TwigBundle.</li>
<li>We could offer routes for exception tests in development mode (e.g. /_exceptions-test/403). This routes would start a controller that just throws the specified exception.<br>
It would be even nicer if calling the test route would implicitly switch to "production" templates without having to reconfigure TwigBundle.</li>
</ol>
<p dir="auto">I have already had a look into TwigBundle and could provide a PR if you like the idea.</p>
<p dir="auto">Or am I overseeing something existing?</p> | <p dir="auto">When I'm viewing my site in production, I get to take advantage of the extremely useful error pages symfony provides. Unfortunately, this is clobbering my user-facing error pages.</p>
<p dir="auto">It would be nice if somewhere in the ui of the default app_dev error page, a button was made available to re-render the request using the production error templates.</p>
<p dir="auto">I'm going to clarify something ahead of time as I brought this up on IRC and some people struggled to understand the usefulness of this: Ideally I wouldn't have to re-enter the same URL in the address bar to view the production template. Reason being that I may not have directly navigated to the page I'm viewing. As a result, things like post variables or anything set server side are not guaranteed to be present.</p> | 1 |
<p dir="auto">Let's assume we have an application with sessions with the following routes:</p>
<p dir="auto">/1<br>
/1/2<br>
/1/2/3<br>
/1/3</p>
<p dir="auto">The first path, when called from a WebTestCase, will create a cookie in the local Client object with the path set to "/". Calling the second route will renew the cookie, setting its path to /1. The third will update the cookie's path to /1/2.</p>
<p dir="auto">Now when I call the fourth route, the cookie is not available any more for that request, because it is set to another path (/1/2 instead of / or /1). The cookie will not be sent and therefore the application will create a new cookie. This breaks my test cases, obviously.</p>
<p dir="auto">Please let me know if this is an error on my side, or if I can provide further information with this problem.</p> | <p dir="auto">I know it had been discussed a lot, but I thought the problem had been fixed.</p>
<p dir="auto">I am writing functional tests that requires the session to stays the same between client requests. What is the recommended way to do so ?</p> | 1 |
<h3 dir="auto">Description</h3>
<p dir="auto">The Table implementation does not support multiple <code class="notranslate">tbody</code> elements. According to the HTML specification multiple <code class="notranslate">tbody</code> elements are allowed (along with a footer for each) and can be used for grouping rows of data. This would allow more advanced features to be built using the material-ui Table Component and match the implementation of the React DOM and HTML specification.</p>
<h3 dir="auto">Images & references</h3>
<p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table</a><br>
<a href="https://www.w3.org/TR/xhtml1/dtds.html" rel="nofollow">https://www.w3.org/TR/xhtml1/dtds.html</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!ELEMENT table
(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>"><pre class="notranslate"><code class="notranslate"><!ELEMENT table
(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>
</code></pre></div> | <p dir="auto">According to w3c, it is valid to have multiple <code class="notranslate"><tbody></code>tags within a <code class="notranslate"><table></code>, but this is currently not supported with material-ui's Table component.</p>
<p dir="auto">I have a PR coming shortly to fix this.</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">im using Yaml Component in a project,<br>
but when I dump a array into a YAML,<br>
it returns something like this:<br>
Yaml::dump()</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test:
value: "1 \r\n 2 \r\n 3""><pre class="notranslate">test:
value: <span class="pl-s">"1 \r\n 2 \r\n 3"</span></pre></div>
<p dir="auto">and I need something like this:<br>
Yaml::dump()</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test:
value: |
1
2
3"><pre class="notranslate">test:
<span class="pl-s1">value</span>: <span class="pl-c1">|</span>
<span class="pl-c1">1</span>
<span class="pl-c1">2</span>
<span class="pl-c1">3</span></pre></div>
<p dir="auto">This is the original array:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Array(
"teste" => Array(
"value" => "1
2
3"
)
)"><pre class="notranslate"><span class="pl-en">Array</span>(
"<span class="pl-s">teste</span>" => <span class="pl-en">Array</span>(
"<span class="pl-s">value</span>" => "<span class="pl-s">1</span>
<span class="pl-s">2</span>
<span class="pl-s">3</span>"
)
)</pre></div>
<p dir="auto">Its is possible?</p> | <p dir="auto">In a Controller, I have two actions :</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /**
* @Route("/search", name="search_with_default", defaults={"p"=1})
*/
public function searchWithDefaultAction(Request $request)
{
return $this->render('default/index.html.twig');
}
/**
* @Route("/search", name="search_without_default")
*/
public function searchWithoutDefaultAction(Request $request)
{
return $this->render('default/index.html.twig');
}"><pre class="notranslate"> <span class="pl-c">/**</span>
<span class="pl-c"> * @Route("/search", name="search_with_default", defaults={"p"=1})</span>
<span class="pl-c"> */</span>
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">searchWithDefaultAction</span>(<span class="pl-smi"><span class="pl-smi">Request</span></span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>)
{
<span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">render</span>(<span class="pl-s">'default/index.html.twig'</span>);
}
<span class="pl-c">/**</span>
<span class="pl-c"> * @Route("/search", name="search_without_default")</span>
<span class="pl-c"> */</span>
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">searchWithoutDefaultAction</span>(<span class="pl-smi"><span class="pl-smi">Request</span></span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>)
{
<span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">render</span>(<span class="pl-s">'default/index.html.twig'</span>);
}</pre></div>
<p dir="auto">In twig, I generate routes to these actions with an additional GET parameter 'p' :</p>
<div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" {{ path('search_with_default',{'p':2}) }}<br/>
{{ path('search_without_default',{'p':2}) }}"><pre class="notranslate"> {{ path(<span class="pl-s"><span class="pl-pds">'</span>search_with_default<span class="pl-pds">'</span></span>,{<span class="pl-s"><span class="pl-pds">'</span>p<span class="pl-pds">'</span></span>:<span class="pl-c1">2</span>}) }}<<span class="pl-ent">br</span>/>
{{ path(<span class="pl-s"><span class="pl-pds">'</span>search_without_default<span class="pl-pds">'</span></span>,{<span class="pl-s"><span class="pl-pds">'</span>p<span class="pl-pds">'</span></span>:<span class="pl-c1">2</span>}) }}</pre></div>
<p dir="auto">Result :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/app_dev.php/search
/app_dev.php/search?p=2 "><pre class="notranslate"><code class="notranslate">/app_dev.php/search
/app_dev.php/search?p=2
</code></pre></div>
<p dir="auto">The first one, totally ignore the value assigned on 'p'.</p>
<p dir="auto">Bug reproduced here :</p>
<p dir="auto"><a href="https://github.com/Alsatian67/symfony-standard">https://github.com/Alsatian67/symfony-standard</a></p>
<p dir="auto">(index page shows the two paths)</p> | 0 |
<p dir="auto">How about we add numbers to the challenges?</p>
<p dir="auto">Problem: So many people come to the chat and say that they are stuck on XX-challenge, which actually does not tell helpers anything.</p>
<p dir="auto">Solution: Add actual numbers to challenges ;)</p> | <p dir="auto">As per the umptieth I've just had this conversation on FB where people are confused/misled as to what that number next to their avatar picture represents.</p>
<p dir="auto">The general conclusion seems to be we should add a more clear explanation of the brownie points. How each challenge gives you a point, but someone can have the same number after completing the same amount of challenges, even if they decide to start from back end. Also, how you get points by being said thanks to over gitter.</p>
<p dir="auto">Perhaps adding some info in the onboarding challenges?</p> | 1 |
<p dir="auto">Like Python, Julia's <code class="notranslate">zip(a, b)</code> ignores the tail end of its input sequences when they are of unequal length (but see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170274627" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/17928" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/17928/hovercard" href="https://github.com/JuliaLang/julia/issues/17928">#17928</a>). I've yet to encounter a problem where I wanted that behavior, and I would much prefer seeing an error when the inputs are of unequal length. Are there applications where truncation is very convenient?</p> | <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> collect(zip([1,2,3],[1,2],[1,2,3]))
ERROR: DimensionMismatch("dimensions must match")
in promote_shape(::Tuple{Base.OneTo{Int64}}, ::Tuple{Base.OneTo{Int64}}) at ./operators.jl:401
in indices(::Base.Zip2{Array{Int64,1},Array{Int64,1}}) at ./iterator.jl:91
in _similar_for(::UnitRange{Int64}, ::Type{T}, ::Zip{Array{Int64,1},Base.Zip2{Array{Int64,1},Array{Int64,1}}}, ::Base.HasShape) at ./array.jl:260
in collect(::Zip{Array{Int64,1},Base.Zip2{Array{Int64,1},Array{Int64,1}}}) at ./array.jl:270
julia> for x in zip([1,2,3],[1,2],[1,2,3])
println(x)
end
(1,1,1)
(2,2,2)"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">collect</span>(<span class="pl-c1">zip</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]))
ERROR<span class="pl-k">:</span> <span class="pl-c1">DimensionMismatch</span>(<span class="pl-s"><span class="pl-pds">"</span>dimensions must match<span class="pl-pds">"</span></span>)
<span class="pl-k">in</span> <span class="pl-c1">promote_shape</span>(<span class="pl-k">::</span><span class="pl-c1">Tuple{Base.OneTo{Int64}}</span>, <span class="pl-k">::</span><span class="pl-c1">Tuple{Base.OneTo{Int64}}</span>) at <span class="pl-k">./</span>operators<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">401</span>
<span class="pl-k">in</span> <span class="pl-c1">indices</span>(<span class="pl-k">::</span><span class="pl-c1">Base.Zip2{Array{Int64,1},Array{Int64,1}}</span>) at <span class="pl-k">./</span>iterator<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">91</span>
<span class="pl-k">in</span> <span class="pl-c1">_similar_for</span>(<span class="pl-k">::</span><span class="pl-c1">UnitRange{Int64}</span>, <span class="pl-k">::</span><span class="pl-c1">Type{T}</span>, <span class="pl-k">::</span><span class="pl-c1">Zip{Array{Int64,1},Base.Zip2{Array{Int64,1},Array{Int64,1}}}</span>, <span class="pl-k">::</span><span class="pl-c1">Base.HasShape</span>) at <span class="pl-k">./</span>array<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">260</span>
<span class="pl-k">in</span> <span class="pl-c1">collect</span>(<span class="pl-k">::</span><span class="pl-c1">Zip{Array{Int64,1},Base.Zip2{Array{Int64,1},Array{Int64,1}}}</span>) at <span class="pl-k">./</span>array<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">270</span>
julia<span class="pl-k">></span> <span class="pl-k">for</span> x <span class="pl-k">in</span> <span class="pl-c1">zip</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>])
<span class="pl-c1">println</span>(x)
<span class="pl-k">end</span>
(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>)
(<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>)</pre></div> | 1 |
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">you know sometimes you cant always use variable form filter when you want to Extract the abstract logic on filter<br>
such like:<br>
.item1<br>
.item-count {{(item.shouldFilterValue[0] || 0) | item.filterName[0]}}<br>
.item2<br>
.item-count {{item.shouldFilterValue[1] || 0 | item.filterName[1]}}<br>
.item3<br>
.item-count {{item.shouldFilterValue[2] || 0 | item.filterName[2]}}<br>
the code above is served as a basic child component,and its parent component will provide string form filter name like:<br>
const normalRunItem = {<br>
title: ['Km', 'Speed', 'Time'],<br>
shouldFilterValue: [distance, pace, secondDuration],<br>
filterName: ['calRunningDistance', 'formatRunPace']<br>
}<br>
const cyclingItem = {<br>
title: ['Km', 'Km/h', 'Time'],<br>
shouldFilterValue: [distance, [secondDuration, distance], secondDuration],<br>
filterName: ['calCyclingDistance', 'calAverageSpeed']<br>
}<br>
const hikingItem = {<br>
title: ['Km', 'Pace', 'Duration'],<br>
shouldFilterValue: [distance, steps, secondDuration],<br>
filterName: ['calCyclingDistance', '']<br>
}</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto">support string form filter gonna be ok</p> | <p dir="auto">According to the document, the filterId would be parsed by using the text after | as the filterId. Is there possible to support use expression as the filterId. For example: we can use obj.filter as the filterId. vue can calc the expression, then use the result to be the filterId? Thx for your time:)</p> | 1 |
<p dir="auto">I have first 9 taskbar items pinned for apps that I use the most. I really love the fast switching between apps using <code class="notranslate">Win+1..9</code>.</p>
<p dir="auto">Also, I'm using different virtual desktops for different purposes (home x work).</p>
<p dir="auto">For such setup, it would be really useful to have the possibility to organize pinned taskbar items per purpose of the desktop.</p> | <p dir="auto">I want to pin application to non-primary monitor taskbar.</p> | 1 |
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">Other Airflow 2 version (please specify below)</p>
<h3 dir="auto">What happened</h3>
<p dir="auto"><strong>Airflow version: 2.4.3</strong></p>
<p dir="auto">I just upgraded from Airflow 2.1.2 to 2.4.3. Whenever I load the webserver, it gives the following errors in webserver.log and doesnt load the application.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File "/a/lib/python3.7/site-packages/flask_session/sessions.py", line 578, in save_session
self.db.session.commit()
File "<string>", line 2, in commit
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1428, in commit
self._transaction.commit(_to_root=self.future)
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 829, in commit
self._prepare_impl()
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 808, in _prepare_impl
self.session.flush()
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 3339, in flush
self._flush(objects)
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 3479, in _flush
transaction.rollback(_capture_exception=True)
File "/a/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 72, in __exit__
with_traceback=exc_tb,
File "/a/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 3439, in _flush
flush_context.execute()
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 456, in execute
rec.execute(self)
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 633, in execute
uow,
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 247, in save_obj
insert,
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 1222, in _emit_insert_statements
execution_options=execution_options,
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1611, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "/a/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 324, in _execute_on_connection
self, multiparams, params, execution_options
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1488, in _execute_clauseelement
cache_hit=cache_hit,
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1843, in _execute_context
e, statement, parameters, cursor, context
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2024, in _handle_dbapi_exception
sqlalchemy_exception, with_traceback=exc_info[2], from_=e
File "/a/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1800, in _execute_context
cursor, statement, parameters, context
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "session_session_id_key"
DETAIL: Key (session_id)=(249cba6d-7fdf-4788-9a96-3bbe0b61012e) already exists.
[SQL: INSERT INTO session (session_id, data, expiry) VALUES (%(session_id)s, %(data)s, %(expiry)s) RETURNING session.id]
[parameters: {'session_id': '249cba6d-7fdf-4788-9a96-3bbe0b61012e', 'data': <psycopg2.extensions.Binary object at 0x7f773a397420>, 'expiry': datetime.datetime(2022, 12, 15, 4, 29, 42, 513681, tzinfo=datetime.timezone.utc)}]
"><pre class="notranslate"><code class="notranslate">File "/a/lib/python3.7/site-packages/flask_session/sessions.py", line 578, in save_session
self.db.session.commit()
File "<string>", line 2, in commit
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1428, in commit
self._transaction.commit(_to_root=self.future)
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 829, in commit
self._prepare_impl()
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 808, in _prepare_impl
self.session.flush()
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 3339, in flush
self._flush(objects)
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 3479, in _flush
transaction.rollback(_capture_exception=True)
File "/a/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 72, in __exit__
with_traceback=exc_tb,
File "/a/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 3439, in _flush
flush_context.execute()
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 456, in execute
rec.execute(self)
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 633, in execute
uow,
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 247, in save_obj
insert,
File "/a/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 1222, in _emit_insert_statements
execution_options=execution_options,
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1611, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "/a/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 324, in _execute_on_connection
self, multiparams, params, execution_options
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1488, in _execute_clauseelement
cache_hit=cache_hit,
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1843, in _execute_context
e, statement, parameters, cursor, context
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2024, in _handle_dbapi_exception
sqlalchemy_exception, with_traceback=exc_info[2], from_=e
File "/a/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1800, in _execute_context
cursor, statement, parameters, context
File "/a/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "session_session_id_key"
DETAIL: Key (session_id)=(249cba6d-7fdf-4788-9a96-3bbe0b61012e) already exists.
[SQL: INSERT INTO session (session_id, data, expiry) VALUES (%(session_id)s, %(data)s, %(expiry)s) RETURNING session.id]
[parameters: {'session_id': '249cba6d-7fdf-4788-9a96-3bbe0b61012e', 'data': <psycopg2.extensions.Binary object at 0x7f773a397420>, 'expiry': datetime.datetime(2022, 12, 15, 4, 29, 42, 513681, tzinfo=datetime.timezone.utc)}]
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">The webserver should display the normal login page without any errors.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">We are using 'airflow.www.security.AirflowSecurityManager' as our FAB_SECURITY_MANAGER_CLASS in the webserver_config.py. We are currently running Airflow 2.4.3. We are also using a postgres external database as our metadata db.</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Mac OS Monterey</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">apache-airflow-providers-amazon==6.0.0<br>
apache-airflow-providers-apache-hive==4.0.1<br>
apache-airflow-providers-apache-spark==3.0.0<br>
apache-airflow-providers-celery==3.1.0<br>
apache-airflow-providers-common-sql==1.3.1<br>
apache-airflow-providers-ftp==3.2.0<br>
apache-airflow-providers-http==4.0.0<br>
apache-airflow-providers-imap==3.1.0<br>
apache-airflow-providers-papermill==3.1.0<br>
apache-airflow-providers-postgres==5.2.0<br>
apache-airflow-providers-redis==3.1.0<br>
apache-airflow-providers-sqlite==3.3.1<br>
apache-airflow-providers-ssh==3.3.0</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Virtualenv installation</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Description</h3>
<p dir="auto">Currently, <code class="notranslate">DAG Runs</code> have two "done" states: "succeeded" or "failed". I propose a third, <strong>"aborted"</strong>.</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">Currently if I wish to stop a <code class="notranslate">DAG Run</code>, I must mark it one of the states listed above, and usually choose "failed" for lack of a better option. This means that later I have no easy way to differentiate between runs that actually failed, due to some exception, and runs that I manually stopped. Adding an <strong>"aborted"</strong> state will solve that.</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<p dir="auto">This code causes ICE after recent rust changes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use std::default::Default;
pub trait Message {
fn new() -> Self { panic!(); }
}
fn new_instance<M : 'static + Message>() -> Box<Message + 'static> {
let m: M = Default::default();
box m as Box<Message>
}
fn main() {}"><pre class="notranslate"><code class="notranslate">use std::default::Default;
pub trait Message {
fn new() -> Self { panic!(); }
}
fn new_instance<M : 'static + Message>() -> Box<Message + 'static> {
let m: M = Default::default();
box m as Box<Message>
}
fn main() {}
</code></pre></div>
<p dir="auto">This is minimal example I can think of.</p>
<p dir="auto">Error is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'assertion failed: *start <= *end', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/slice.rs:396
stack backtrace:
1: 0x10c899619 - rt::backtrace::imp::write::h03fee16d4a0b6b41moq
2: 0x10c89c85c - failure::on_fail::h3e0f6b3c6c4bbcc3VEq
3: 0x10caf9f05 - unwind::begin_unwind_inner::h6c7f4532e72658d7SJd
4: 0x10caf9b9f - unwind::begin_unwind_fmt::h9863b25c438d6314kHd
5: 0x10caf98f2 - rust_begin_unwind
6: 0x10cb5053c - panicking::panic_fmt::hc53a414d3d53805bi7j
7: 0x10cb46f6f - panicking::panic::h5cf45d77d6cb56acm4j
8: 0x109a8f83b - middle::typeck::check::vtable::check_object_safety::h3ee32f70bc2a6910cvN
9: 0x109a8eab4 - middle::typeck::check::vtable::check_object_cast::ha17cfa6c915c29failN
10: 0x109af7954 - middle::typeck::check::check_cast::h212d4526506e607bdwW
11: 0x109b1fae4 - middle::typeck::check::check_expr_with_unifier::h153e2ccf9b0cb061XCY
12: 0x109aeb2d1 - middle::typeck::check::check_block_with_expected::heb9a0fb2300c4559PJ0
13: 0x109ae6d42 - middle::typeck::check::check_fn::h0449d63e5b4f3e3a9oV
14: 0x109ae626f - middle::typeck::check::check_bare_fn::hf2de12c52654551eoeV
15: 0x109ae218d - middle::typeck::check::check_item::hfaeea23703d7dd28xyV
16: 0x109ae60bf - middle::typeck::check::check_item_types::haaff85b74e988d92ydV
17: 0x1095fc556 - util::common::time::h11920059333862041717
18: 0x109da659e - middle::typeck::check_crate::h50fcc5c8b39993f4LVn
19: 0x109e0ebcf - driver::driver::phase_3_run_analysis_passes::h1425a4ca465c7b097DA
20: 0x109e092b8 - driver::driver::compile_input::h60bc42ef7fabbfd4SkA
21: 0x109e86ca8 - driver::run_compiler::h4031243f49082a9fw7D
22: 0x109e84ece - driver::run::closure.145349
23: 0x10961481b - task::TaskBuilder<S>::try_future::closure.103709
24: 0x109614713 - task::TaskBuilder<S>::spawn_internal::closure.103680
25: 0x10959798d - task::NativeSpawner.Spawner::spawn::closure.8526
26: 0x10cb6020c - rust_try_inner
27: 0x10cb601f6 - rust_try
28: 0x10caf7677 - unwind::try::hab84862d0081b274cyd
29: 0x10caf750c - task::Task::run::h39093ecd59554b49ZJc
30: 0x1095977b3 - task::NativeSpawner.Spawner::spawn::closure.8463
31: 0x10caf8d37 - thread::thread_start::h589be8c0a398d299e5c
32: 0x7fff993572fc - _pthread_body
33: 0x7fff99357279 - _pthread_body"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'assertion failed: *start <= *end', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/slice.rs:396
stack backtrace:
1: 0x10c899619 - rt::backtrace::imp::write::h03fee16d4a0b6b41moq
2: 0x10c89c85c - failure::on_fail::h3e0f6b3c6c4bbcc3VEq
3: 0x10caf9f05 - unwind::begin_unwind_inner::h6c7f4532e72658d7SJd
4: 0x10caf9b9f - unwind::begin_unwind_fmt::h9863b25c438d6314kHd
5: 0x10caf98f2 - rust_begin_unwind
6: 0x10cb5053c - panicking::panic_fmt::hc53a414d3d53805bi7j
7: 0x10cb46f6f - panicking::panic::h5cf45d77d6cb56acm4j
8: 0x109a8f83b - middle::typeck::check::vtable::check_object_safety::h3ee32f70bc2a6910cvN
9: 0x109a8eab4 - middle::typeck::check::vtable::check_object_cast::ha17cfa6c915c29failN
10: 0x109af7954 - middle::typeck::check::check_cast::h212d4526506e607bdwW
11: 0x109b1fae4 - middle::typeck::check::check_expr_with_unifier::h153e2ccf9b0cb061XCY
12: 0x109aeb2d1 - middle::typeck::check::check_block_with_expected::heb9a0fb2300c4559PJ0
13: 0x109ae6d42 - middle::typeck::check::check_fn::h0449d63e5b4f3e3a9oV
14: 0x109ae626f - middle::typeck::check::check_bare_fn::hf2de12c52654551eoeV
15: 0x109ae218d - middle::typeck::check::check_item::hfaeea23703d7dd28xyV
16: 0x109ae60bf - middle::typeck::check::check_item_types::haaff85b74e988d92ydV
17: 0x1095fc556 - util::common::time::h11920059333862041717
18: 0x109da659e - middle::typeck::check_crate::h50fcc5c8b39993f4LVn
19: 0x109e0ebcf - driver::driver::phase_3_run_analysis_passes::h1425a4ca465c7b097DA
20: 0x109e092b8 - driver::driver::compile_input::h60bc42ef7fabbfd4SkA
21: 0x109e86ca8 - driver::run_compiler::h4031243f49082a9fw7D
22: 0x109e84ece - driver::run::closure.145349
23: 0x10961481b - task::TaskBuilder<S>::try_future::closure.103709
24: 0x109614713 - task::TaskBuilder<S>::spawn_internal::closure.103680
25: 0x10959798d - task::NativeSpawner.Spawner::spawn::closure.8526
26: 0x10cb6020c - rust_try_inner
27: 0x10cb601f6 - rust_try
28: 0x10caf7677 - unwind::try::hab84862d0081b274cyd
29: 0x10caf750c - task::Task::run::h39093ecd59554b49ZJc
30: 0x1095977b3 - task::NativeSpawner.Spawner::spawn::closure.8463
31: 0x10caf8d37 - thread::thread_start::h589be8c0a398d299e5c
32: 0x7fff993572fc - _pthread_body
33: 0x7fff99357279 - _pthread_body
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% rustc --version
rustc 0.13.0-nightly (88b6e93d3 2014-10-31 23:36:48 +0000)
% uname
Darwin"><pre class="notranslate"><code class="notranslate">% rustc --version
rustc 0.13.0-nightly (88b6e93d3 2014-10-31 23:36:48 +0000)
% uname
Darwin
</code></pre></div> | <p dir="auto">I'm getting the following ICE</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
mindTree:RustyJen Mitch$ cargo build
Compiling jen v0.0.0 (file:///Users/Mitch/Programming/Rust/RustyJen)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'assertion failed: *start <= *end', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/b
uild/src/libcore/slice.rs:396
"><pre class="notranslate">mindTree:RustyJen Mitch$ cargo build
Compiling jen v0.0.0 (file:///Users/Mitch/Programming/Rust/RustyJen)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with <span class="pl-s"><span class="pl-pds">`</span>RUST_BACKTRACE=1<span class="pl-pds">`</span></span> <span class="pl-k">for</span> a backtrace
task <span class="pl-s"><span class="pl-pds">'</span>rustc<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>assertion failed: *start <= *end<span class="pl-pds">'</span></span>, /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/b
uild/src/libcore/slice.rs:396
</pre></div>
<p dir="auto">when compiling my project against the latest OSX nightly <code class="notranslate">rustc 0.13.0-nightly (221fc1e3c 2014-10-31 02:27:15 +0000)</code>.</p> | 1 |
<p dir="auto">numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found. Note: Accelerate is no longer supported.<br>
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.</p>
<p dir="auto">How can i build source on mac m1?</p> | <p dir="auto">As Matt suggested (issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="564578793" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/11515" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/11515/hovercard" href="https://github.com/scipy/scipy/issues/11515">#11515</a>) I've been taking a look at the presolve routine and its reference, the Andersen & Andersen paper.</p>
<p dir="auto">A&A describes a set of options for trivial simplifications of the problem (some not too trivial, though), numbered (i) - (xvii). The current <code class="notranslate">_presolve</code> function handles just a couple of them:</p>
<ul dir="auto">
<li>zero row in equality constraints (i)</li>
<li>zero row in inequality constraints (i)</li>
<li>zero column in both constraints (ii)</li>
<li>row singleton in equality constraints (v)</li>
<li>row singleton in inequality constraints (v)</li>
<li>identical bounds (iv)</li>
</ul>
<p dir="auto">A&A also suggest some of these options should be repeated. That currently doesn't happen either. The variables <code class="notranslate">bounds</code> and <code class="notranslate">undo</code> contain the information for reversing the simplification in <code class="notranslate">_postsolve</code>. <code class="notranslate">_postsolve</code> als reverses the problem standardization of <code class="notranslate">_get_Abc</code> using <code class="notranslate">bounds</code>.</p>
<p dir="auto">I have a couple of considerations and questions with respect to updating <code class="notranslate">_presolve</code>:</p>
<ol dir="auto">
<li>It would be good to redesign the presolve routine in such a way that we can add options one at a time, in a modular way. Right?</li>
<li>A&A warn that some options may be computationally heavy, so it may be good to modify the solver option 'presolve'. Instead of just <code class="notranslate">True</code> or <code class="notranslate">False</code>, we may introduce a numeric level which in- or excludes specific presolve options. Can we do that?</li>
<li>Do we know if we can 'match' presolve efforts to an actual solver? What presolve activity is always advantageous? What presolve activities make sense for specific solvers only?</li>
<li>I think we should not use <code class="notranslate">bounds</code> as carrier of information for reversing <code class="notranslate">_presolve</code> (in <code class="notranslate">_postsolve</code>). For some A&A options the <code class="notranslate">bounds</code>/<code class="notranslate">undo</code> implementation will not work anyway. But it is also not elegant to use a problem parameter for this.</li>
<li>Where in the process should presolve take place? In the current implementation, it is the first step, but the A&A-options relate to the standard form. That means that we have to 'translate' their options, e.g. to include <code class="notranslate">A_ub</code> and <code class="notranslate">b_ub</code>. Would it be better to presolve after the standardization?</li>
<li>Some A&A options refer to the dual problem - that is not available at the presolve level. (Is it even used? I did not check the specific <code class="notranslate">linprog</code> solvers). What to do with these A&A-options?</li>
<li>The final A&A options (xiv - xvii) address rank deficiency, but in a rather ad-hoc way it seems to me. Linprog currently implements a more thorough procedure to remove redundant equations, but I have also read the comment in <code class="notranslate">_remove_redundancy</code>. What is the proper location to address/check linear dependencies? Immediately before the solver is called? Or can it be done before the standardization in <code class="notranslate">_get_Abc</code>? Is there proof that the standardization never introduces linear dependencies?</li>
<li>Analyzing matrix rank (or doing a SVD) is necessary, but it also takes time. Are the solver algorithms able to detect (and perhaps repair) linear dependencies in the course of their process more 'cheaply'? I see quite a bit of literature on this subject, which suggests it is a topic worth exploring, but it is outside of my area of expertise.</li>
<li>Am I missing something?</li>
</ol>
<p dir="auto">Regarding <code class="notranslate">bounds</code>: I'm confused about the use of <code class="notranslate">None</code> and <code class="notranslate">np.inf</code> at various locations in the code. Do they have different meanings? Perhaps related to the <code class="notranslate">_postsolve</code> process? See 4 above: I would prefer to standardize the use of <code class="notranslate">(-)np.inf</code> for an absent bound.</p>
<p dir="auto">What do you think of this presolve framework?:</p>
<p dir="auto">Code each A&A option as a separate function <code class="notranslate">PR</code>, with:</p>
<ul dir="auto">
<li>1 input: current values of the problem parameters <code class="notranslate">pp</code> = <code class="notranslate">(c, A_eq, b_eq, A_ub, b_ub, u, l, x0)</code></li>
<li>3 outputs: modified values of the problem parameters <code class="notranslate">pp</code> = <code class="notranslate">(c, A_eq, b_eq, A_ub, b_ub, u, l, x0)</code>, a function <code class="notranslate">REV</code> to undo this specific modification and a <code class="notranslate">status</code> flag (0 : Modification made, 1 : No modification made, 2 : Problem appears to be infeasible, 3 : Problem appears to be unbounded)</li>
</ul>
<p dir="auto">The function <code class="notranslate">REV</code> is pre-parametrized to carry out the restauration. It has:</p>
<ul dir="auto">
<li>1 input: current values of the criterion vector, solution, and initial guess <code class="notranslate">cp</code> = <code class="notranslate">(c, x, x0)</code></li>
<li>1 output: restored values of the criterion vector, solution, and initial guess <code class="notranslate">cp</code> = <code class="notranslate">(c, x, x0)</code></li>
</ul>
<p dir="auto">The <code class="notranslate">REV</code>-functions can be put on a stack for reversing the modifications, as A&A suggest.</p>
<p dir="auto">Presolve would now work as follows:</p>
<ol dir="auto">
<li>input: current values of the problem parameters <code class="notranslate">pp = (c, A_e, b_e, A_f, b_f, u, l, x0)</code></li>
<li></li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="REVstack = []"><pre class="notranslate"><code class="notranslate">REVstack = []
</code></pre></div>
<ol start="3" dir="auto">
<li>Perform initial presolve routines</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(pp, REV, status) = PR_1(pp)
if status == 0: REVstack.append(REV)
if status == 2 or 3: raise error infeasible or unbound"><pre class="notranslate"><code class="notranslate">(pp, REV, status) = PR_1(pp)
if status == 0: REVstack.append(REV)
if status == 2 or 3: raise error infeasible or unbound
</code></pre></div>
<p dir="auto">... and other initial presolve routines in the same way</p>
<ol start="4" dir="auto">
<li>Perform the looped presolve routines</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="while modifications:
modifications = False
(pp, REV, status) = PR_2(pp)
if status == 0: REVstack.append(REV), modifiations = True
if status == 2 or 3: raise error infeasible or unbound"><pre lang="modifications" class="notranslate"><code class="notranslate">while modifications:
modifications = False
(pp, REV, status) = PR_2(pp)
if status == 0: REVstack.append(REV), modifiations = True
if status == 2 or 3: raise error infeasible or unbound
</code></pre></div>
<p dir="auto">... and other presolve routine which must be repeated</p>
<ol start="5" dir="auto">
<li>Perform final presolve routines</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(pp, REV, status) = PR_3(pp)
if status == 0: REVstack.append(REV)
if status == 2 or 3: raise error infeasible or unbound"><pre class="notranslate"><code class="notranslate">(pp, REV, status) = PR_3(pp)
if status == 0: REVstack.append(REV)
if status == 2 or 3: raise error infeasible or unbound
</code></pre></div>
<p dir="auto">... and other final presolve routines in the same way</p>
<ol start="6" dir="auto">
<li>output: modified values of the problem parameters <code class="notranslate">pp = (c, A_e, b_e, A_f, b_f, u, l, x0)</code></li>
<li>output: <code class="notranslate">REVstack</code> containing the functions to reverse the modifications</li>
</ol>
<p dir="auto">Postsolve would work like this:</p>
<ol dir="auto">
<li>input: criterion vector, solution and initial values of the modified problem <code class="notranslate">cp = (c, x, x0)</code></li>
<li>apply functions in <code class="notranslate">REVstack</code>, last one first</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for i in range(len(REVstack),-1,-1):
cp = REVstack[i](cp)"><pre class="notranslate"><code class="notranslate">for i in range(len(REVstack),-1,-1):
cp = REVstack[i](cp)
</code></pre></div>
<ol start="3" dir="auto">
<li>output: criterion vector, solution and initial guess <code class="notranslate">cp = (c, x, x0)</code> in their original context</li>
</ol> | 0 |
<p dir="auto">There is an abstract static method here, which causes an error.</p>
<p dir="auto"><a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/Tests/Mapping/Loader/AbstractMethodStaticLoader.php#L9">https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/Tests/Mapping/Loader/AbstractMethodStaticLoader.php#L9</a></p> | <p dir="auto">I´m seeing loads of test failures and exceptions on the current master branch when running <code class="notranslate">phpunit</code></p>
<p dir="auto"><code class="notranslate">php --version PHP 5.4.20 (cli) (built: Oct 10 2013 14:49:05) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies</code></p>
<p dir="auto"><code class="notranslate">phpunit --version PHPUnit 3.7.28 by Sebastian Bergmann.</code></p>
<p dir="auto"><code class="notranslate">Tests: 11739, Assertions: 22421, Errors: 49, Incomplete: 1, Skipped: 1265.</code></p>
<p dir="auto">The errors are a mixture of<br>
<code class="notranslate">session_start(): Cannot send session cookie - headers already sent by (output started at /usr/local/bin/phpunit:2)</code> and <code class="notranslate">[...]Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes)[...]</code></p>
<p dir="auto">This is whats listed as a requirement for dev. Anything else I´m missing?</p> | 1 |
<p dir="auto">When rendering <a href="https://doc.rust-lang.org/std/collections/struct.LinkedList.html" rel="nofollow">the documentation to any standard library class</a> with Chrome Version 44.0.2403.130 m (64-bit) - the latest release on Windows 10, the & character is obviously not rendered correctly, as demonstrated by <a href="http://imgur.com/RsVvnJg" rel="nofollow">this picture</a>.</p>
<p dir="auto">Is there any more information I can provide to help fix this issue?</p> | <p dir="auto">On my system, ampersands in the documentation are drawn incorrectly in Chrome: <a href="https://i.imgur.com/FmG93G5.png" rel="nofollow">https://i.imgur.com/FmG93G5.png</a>. I'm using Windows 7, 64-bit. This doesn't happen in Firefox.</p>
<p dir="auto">I'm thinking this could be a bug in Chrome, but I haven't seen it on any other site. It seems to happen on any page generated with rustdoc. Ampersands in the examples aren't affected.</p> | 1 |
<p dir="auto">I am using Webpack 2 beta21 in some setup where I am trying to combine <code class="notranslate">System.import</code> auto chunks + HMR + SSR React. I am currently struggle with how to use modules in es2015 module syntax (as suggested by <code class="notranslate">module</code>/<code class="notranslate">jsnext:main</code> entries). As far as I understand I have to transpile that code. But normally we do not transpile any code from <code class="notranslate">node_modules</code>, correct? So how can I do that "basic" transpilation that I have a non-module output from all these different sources?</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">After running my command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cross-env webpack --watch --mode development ./run/start.web.js"><pre class="notranslate"><code class="notranslate">cross-env webpack --watch --mode development ./run/start.web.js
</code></pre></div>
<p dir="auto">I get an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="This dependency was not found:
* fs in ./node_modules/minio/dist/main/minio.js, ./node_modules/mkdirp/index.js"><pre class="notranslate"><code class="notranslate">This dependency was not found:
* fs in ./node_modules/minio/dist/main/minio.js, ./node_modules/mkdirp/index.js
</code></pre></div>
<p dir="auto">I tried:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node: {
fs: 'empty'
}"><pre class="notranslate"><code class="notranslate">node: {
fs: 'empty'
}
</code></pre></div>
<p dir="auto">It does remove the error and succesfully launches the client<br>
However it looks like the site is unresponsive and some controls are missing, like there is no javascript applied.</p>
<p dir="auto">If I remove usage of file which uses <code class="notranslate">minio</code> (from error). Everything works just fine.</p>
<p dir="auto">Webpack config:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const Dir = global.DIR;
export function loader() {
return {
jsx: {
use: {
query: {
presets: [['es2015', { modules: false }], 'stage-0', 'react'],
plugins: [
'transform-decorators-legacy',
'transform-class-properties',
'transform-runtime',
'babel-root-import',
'react-hot-loader/babel',
],
},
},
},
cssModules: {
use: [
'style-loader',
{
loader: 'css-loader',
options: {
localIdentName: '[name]__[local]___[hash:base64:5]',
modules: true,
sourceMap: true,
importLoaders: 1,
},
},
'postcss-loader',
],
},
};
}
export function config(entry) {
return {
devtool: 'cheap-module-eval-source-map',
entry: {
app: [
'babel-polyfill',
'isomorphic-fetch',
'whatwg-fetch',
'react-hot-loader/patch',
'webpack-hot-middleware/client',
// ['webpack-hot-middleware/client', webhost].join('?'),
path.join(Dir.src, entry, 'client'),
],
},
output: {
path: '/',
publicPath: '/',
filename: 'bundle.js',
},
plugins: [
new FriendlyErrorsWebpackPlugin({
clearConsole: true,
compilationSuccessInfo: {
messages: logServerConfigWebpack(entry),
},
}),
new BrowserSyncPlugin({
host: getenv('BROWSERSYNC_HOST'),
port: getenv('BROWSERSYNC_PORT'),
proxy: webhost(entry),
}, { reload: false }),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(),
],
};
}"><pre class="notranslate"><code class="notranslate">const Dir = global.DIR;
export function loader() {
return {
jsx: {
use: {
query: {
presets: [['es2015', { modules: false }], 'stage-0', 'react'],
plugins: [
'transform-decorators-legacy',
'transform-class-properties',
'transform-runtime',
'babel-root-import',
'react-hot-loader/babel',
],
},
},
},
cssModules: {
use: [
'style-loader',
{
loader: 'css-loader',
options: {
localIdentName: '[name]__[local]___[hash:base64:5]',
modules: true,
sourceMap: true,
importLoaders: 1,
},
},
'postcss-loader',
],
},
};
}
export function config(entry) {
return {
devtool: 'cheap-module-eval-source-map',
entry: {
app: [
'babel-polyfill',
'isomorphic-fetch',
'whatwg-fetch',
'react-hot-loader/patch',
'webpack-hot-middleware/client',
// ['webpack-hot-middleware/client', webhost].join('?'),
path.join(Dir.src, entry, 'client'),
],
},
output: {
path: '/',
publicPath: '/',
filename: 'bundle.js',
},
plugins: [
new FriendlyErrorsWebpackPlugin({
clearConsole: true,
compilationSuccessInfo: {
messages: logServerConfigWebpack(entry),
},
}),
new BrowserSyncPlugin({
host: getenv('BROWSERSYNC_HOST'),
port: getenv('BROWSERSYNC_PORT'),
proxy: webhost(entry),
}, { reload: false }),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(),
],
};
}
</code></pre></div>
<p dir="auto">webpack version: 4.14<br>
Node.js version: 8.91<br>
Operating System: Ubuntu</p> | 0 |
<p dir="auto"><code class="notranslate">tuple(DeviceArray)</code> evaluates the DeviceArray (at least when using xla) and returns them as np arrays.</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ar = jnp.ones(shape=3, dtype=jnp.float32) # type: jax.interpreters.xla.DeviceArray,
tuple(ar)"><pre class="notranslate"><span class="pl-s1">ar</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">ones</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">float32</span>) <span class="pl-c"># type: jax.interpreters.xla.DeviceArray,</span>
<span class="pl-en">tuple</span>(<span class="pl-s1">ar</span>)</pre></div>
<p dir="auto">produces a tuple of <code class="notranslate">numpy.float32: (1.0, 1.0, 1.0)</code>, while</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tuple(ar[i] for i in range(ar.shape[0]))"><pre class="notranslate"><span class="pl-en">tuple</span>(<span class="pl-s1">ar</span>[<span class="pl-s1">i</span>] <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">ar</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>]))</pre></div>
<p dir="auto">produces a tuple of DeviceArrays.</p>
<p dir="auto">It feels like <code class="notranslate">tuple(ar)</code> returning a tuple of DeviceArrays would make sense. Is there some drawback to this?</p>
<p dir="auto">Furthermore, when jitting vs not-jitting the following:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def tuple_split(ar):
return tuple(ar)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">tuple_split</span>(<span class="pl-s1">ar</span>):
<span class="pl-k">return</span> <span class="pl-en">tuple</span>(<span class="pl-s1">ar</span>)</pre></div>
<p dir="auto">I do get different return types like so:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="print("orig:", tuple_split(jnp.ones(shape=3, dtype=jnp.float32)))
> orig: (1.0, 1.0, 1.0)
print("jit:", jit_tuple_split(jnp.ones(shape=3, dtype=jnp.float32)))
> jit: (DeviceArray(1., dtype=float32), DeviceArray(1., dtype=float32), DeviceArray(1., dtype=float32))"><pre class="notranslate"><span class="pl-en">print</span>(<span class="pl-s">"orig:"</span>, <span class="pl-en">tuple_split</span>(<span class="pl-s1">jnp</span>.<span class="pl-en">ones</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">float32</span>)))
<span class="pl-c1">></span> <span class="pl-s1">orig</span>: (<span class="pl-c1">1.0</span>, <span class="pl-c1">1.0</span>, <span class="pl-c1">1.0</span>)
<span class="pl-en">print</span>(<span class="pl-s">"jit:"</span>, <span class="pl-en">jit_tuple_split</span>(<span class="pl-s1">jnp</span>.<span class="pl-en">ones</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">float32</span>)))
<span class="pl-c1">></span> <span class="pl-s1">jit</span>: (<span class="pl-v">DeviceArray</span>(<span class="pl-c1">1.</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>), <span class="pl-v">DeviceArray</span>(<span class="pl-c1">1.</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>), <span class="pl-v">DeviceArray</span>(<span class="pl-c1">1.</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>))</pre></div>
<p dir="auto">which I also didn't expect.</p>
<p dir="auto">xla tuple implementation: <a href="https://github.com/google/jax/blob/master/jax/interpreters/xla.py#L1044">https://github.com/google/jax/blob/master/jax/interpreters/xla.py#L1044</a></p> | <p dir="auto">Looping through a <code class="notranslate">DeviceArray</code> like in a list comprehension, for loop, or enumerate returns <code class="notranslate">numpy.ndarray</code>. Is this expected behaviour?</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.numpy as np
X = np.array(range(3)).reshape(3,1)
print(type(X))
#<class 'jax.interpreters.xla.DeviceArray'>
x0,x1,x2 = [xi for xi in X]
print(type(x0))
#<type 'numpy.ndarray'>
for xi in X:
print(type(xi))
#<type 'numpy.ndarray'>
#<type 'numpy.ndarray'>
#<type 'numpy.ndarray'>"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-en">range</span>(<span class="pl-c1">3</span>)).<span class="pl-en">reshape</span>(<span class="pl-c1">3</span>,<span class="pl-c1">1</span>)
<span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-v">X</span>))
<span class="pl-c">#<class 'jax.interpreters.xla.DeviceArray'></span>
<span class="pl-s1">x0</span>,<span class="pl-s1">x1</span>,<span class="pl-s1">x2</span> <span class="pl-c1">=</span> [<span class="pl-s1">xi</span> <span class="pl-k">for</span> <span class="pl-s1">xi</span> <span class="pl-c1">in</span> <span class="pl-v">X</span>]
<span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">x0</span>))
<span class="pl-c">#<type 'numpy.ndarray'></span>
<span class="pl-k">for</span> <span class="pl-s1">xi</span> <span class="pl-c1">in</span> <span class="pl-v">X</span>:
<span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">xi</span>))
<span class="pl-c">#<type 'numpy.ndarray'></span>
<span class="pl-c">#<type 'numpy.ndarray'></span>
<span class="pl-c">#<type 'numpy.ndarray'></span></pre></div>
<p dir="auto">This is unexpected to me. Why are these not also <code class="notranslate">DeviceArray</code>s?</p> | 1 |
<h3 dir="auto">Describe the bug</h3>
<p dir="auto">When connecting to the database, we use a connection string. What happens is when using an at ("@") inside the password, the db_engine object gets wrong password and host. This worked on the sqlalchemy version 1.4.9</p>
<p dir="auto">Going into debug-mode and looking at the db_engine object below, I can see that the password has been split on the first at sign ("@"). What should actually happen is not splitting the password, but splitting on the last at sign in the string before the connection string.</p>
<p dir="auto">TLDR:</p>
<ul dir="auto">
<li>First part of password with @ is used as password.</li>
<li>Second part of password after @ is then part of the host string.</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6339551/130208354-246d6829-fc15-4bac-b5b8-0e3d06886c56.png"><img src="https://user-images.githubusercontent.com/6339551/130208354-246d6829-fc15-4bac-b5b8-0e3d06886c56.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bjornamr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bjornamr">@bjornamr</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Falkon353/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Falkon353">@Falkon353</a></p>
<h3 dir="auto">To Reproduce</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine, Column, String
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
CONNECTION_STRING = "mssql+pymssql://username:firstpartpass@lastpartpass@localhost:1433/dev"
class User(Base):
__tablename__ = "user"
ssid = Column(String(256), primary_key=True, index=True)
Name = Column(String(256))
db_engine = create_engine(CONNECTION_STRING)
db_session = sessionmaker(bind=db_engine)
Base.metadata.create_all(bind=db_engine)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">sessionmaker</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">create_engine</span>, <span class="pl-v">Column</span>, <span class="pl-v">String</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span>
<span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>()
<span class="pl-v">CONNECTION_STRING</span> <span class="pl-c1">=</span> <span class="pl-s">"mssql+pymssql://username:firstpartpass@lastpartpass@localhost:1433/dev"</span>
<span class="pl-k">class</span> <span class="pl-v">User</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"user"</span>
<span class="pl-s1">ssid</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-v">Name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">256</span>))
<span class="pl-s1">db_engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-v">CONNECTION_STRING</span>)
<span class="pl-s1">db_session</span> <span class="pl-c1">=</span> <span class="pl-en">sessionmaker</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">db_engine</span>)
<span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">db_engine</span>)</pre></div>
<h3 dir="auto">Error</h3>
<p dir="auto">Exception has occurred: OperationalError<br>
(pymssql._pymssql.OperationalError) (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (<a href="mailto:[email protected]">[email protected]</a>)\n')<br>
(Background on this error at: <a href="https://sqlalche.me/e/14/e3q8" rel="nofollow">https://sqlalche.me/e/14/e3q8</a>)</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">The above exception was the direct cause of the following exception:</p>
<p dir="auto">File "password_error.py", line 19, in <br>
Base.metadata.create_all(bind=db_engine)</p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>OS: Windows 10</li>
<li>Python: 3.8</li>
<li>SQLAlchemy: 1.4.22</li>
<li>Database: MS SQL 2019</li>
<li>DBAPI: pymssql version: 2.2.1</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p> | <p dir="auto"><strong>Describe the bug</strong><br>
When a password contains a <code class="notranslate">@</code> character. Sqlalchemy with a string url cannot connect to the database.</p>
<p dir="auto">I greatly suspect that it was induced by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="891509156" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/6482" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/6482/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/6482">#6482</a>.</p>
<p dir="auto">Was working fine in 1.4.15.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" url = (
"mssql+pyodbc://"
"SA:P@[email protected]:1433/master"
"?driver=ODBC Driver 17 for SQL Server"
)"><pre class="notranslate"> <span class="pl-s1">url</span> <span class="pl-c1">=</span> (
<span class="pl-s">"mssql+pyodbc://"</span>
<span class="pl-s">"SA:P@[email protected]:1433/master"</span>
<span class="pl-s">"?driver=ODBC Driver 17 for SQL Server"</span>
)</pre></div>
<p dir="auto"><strong>Error</strong><br>
``<br>
sqlalchemy.exc.OperationalError: (pyodbc.OperationalError) ('HYT00', '[HYT00] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')</p>
<p dir="auto">``</p>
<p dir="auto"><strong>Versions.</strong></p>
<ul dir="auto">
<li>OS:</li>
<li>Python: 3.8</li>
<li>SQLAlchemy: 1.4.17</li>
<li>Database: mssql</li>
<li>DBAPI: pyodbc</li>
</ul>
<p dir="auto"><strong>Have a nice day!</strong></p> | 1 |
<p dir="auto">We have made several changes to the window.open functionality to use the native blink/chromium code, but we are always working with embedded views so I'm looking for a little help to upstream this without breaking other use cases<br>
Starting from <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/brave/muon/commit/6ee28c3927a34495fb0a059ac3071e6e14358743/hovercard" href="https://github.com/brave/muon/commit/6ee28c3927a34495fb0a059ac3071e6e14358743">brave/muon@<tt>6ee28c3</tt></a> to <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/brave/muon/commit/9dc98b1448f1efa1f2898fb714643df2b3474b12/hovercard" href="https://github.com/brave/muon/commit/9dc98b1448f1efa1f2898fb714643df2b3474b12">brave/muon@<tt>9dc98b1</tt></a><br>
We are working on getting the remaining electron tests passing and I'm happy to create a pull request as the basis for this, but some help/feedback would be welcome. Thanks!</p> | <p dir="auto">when opening a new window using window.open, we currently get a BrowserWindowProxy that only support posting messages.</p>
<p dir="auto">Some websites, webapps and libraries uses <code class="notranslate">window.opener</code> to access properties and objects of the opener window. Thoose are broken in Electron.<br>
That's the case for example of Chromium devtools, that use window.open / window.opener in dockable/undockable mode.</p> | 1 |
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: [1.10.0]</li>
<li>Operating System: [Linux]</li>
<li>Node.js version: [14.10.0]</li>
<li>Browser: [Chromium]</li>
<li>Extra: []</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Generate a 400M large file</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dd if=/dev/zero of=/tmp/400M bs=1M count=400"><pre class="notranslate">dd if=/dev/zero of=/tmp/400M bs=1M count=400</pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { chromium } = require("playwright");
const dataPath='/tmp/400M';
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.setContent(
'<input type="file" name="fileToUpload" id="fileToUpload">'
);
await page.setInputFiles("input", dataPath);
await browser.close();
})();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"playwright"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">dataPath</span><span class="pl-c1">=</span><span class="pl-s">'/tmp/400M'</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span>
<span class="pl-s">'<input type="file" name="fileToUpload" id="fileToUpload">'</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setInputFiles</span><span class="pl-kos">(</span><span class="pl-s">"input"</span><span class="pl-kos">,</span> <span class="pl-s1">dataPath</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
Can't upload a large file(about 400MB).</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
pw:api => browserType.launch started +0ms
pw:api <= browserType.launch succeeded +85ms
pw:api => browser.newContext started +0ms
pw:api <= browser.newContext succeeded +3ms
pw:api => browserContext.newPage started +0ms
pw:api <= browserContext.newPage succeeded +20ms
pw:api => page.setContent started +1ms
pw:api setting frame content, waiting until "load" +1ms
pw:api navigated to "about:blank" +4ms
pw:api <= page.setContent succeeded +13ms
pw:api => page.setInputFiles started +0ms
pw:api <= page.setInputFiles failed +1s
(node:25801) UnhandledPromiseRejectionWarning: Error: page.setInputFiles: Cannot create a string longer than 0x1fffffe8 characters
at Object.slice (buffer.js:653:37)
at Buffer.toString (buffer.js:801:14)
at /home/king/Desktop/wifi/node_modules/playwright/lib/client/elementHandle.js:280:77
at async Promise.all (index 0)
at async Object.convertInputFiles (/home/king/Desktop/wifi/node_modules/playwright/lib/client/elementHandle.js:275:26)
at async /home/king/Desktop/wifi/node_modules/playwright/lib/client/frame.js:366:60
at async Frame._wrapApiCall (/home/king/Desktop/wifi/node_modules/playwright/lib/client/channelOwner.js:77:28)
at async /home/king/Desktop/wifi/index2.js:12:3
(Use `node --trace-warnings ...` to show where the warning was created)
(node:25801) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:25801) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
"><pre class="notranslate"> pw:api =<span class="pl-k">></span> browserType.launch started +0ms
pw:api <span class="pl-k"><</span>= browserType.launch succeeded +85ms
pw:api =<span class="pl-k">></span> browser.newContext started +0ms
pw:api <span class="pl-k"><</span>= browser.newContext succeeded +3ms
pw:api =<span class="pl-k">></span> browserContext.newPage started +0ms
pw:api <span class="pl-k"><</span>= browserContext.newPage succeeded +20ms
pw:api =<span class="pl-k">></span> page.setContent started +1ms
pw:api setting frame content, waiting <span class="pl-k">until</span> <span class="pl-s"><span class="pl-pds">"</span>load<span class="pl-pds">"</span></span> +1ms
pw:api navigated to <span class="pl-s"><span class="pl-pds">"</span>about:blank<span class="pl-pds">"</span></span> +4ms
pw:api <span class="pl-k"><</span>= page.setContent succeeded +13ms
pw:api =<span class="pl-k">></span> page.setInputFiles started +0ms
pw:api <span class="pl-k"><</span>= page.setInputFiles failed +1s
(node:25801) UnhandledPromiseRejectionWarning: Error: page.setInputFiles: Cannot create a string longer than 0x1fffffe8 characters
at Object.slice (buffer.js:653:37)
at Buffer.toString (buffer.js:801:14)
at /home/king/Desktop/wifi/node_modules/playwright/lib/client/elementHandle.js:280:77
at async Promise.all (index 0)
at async Object.convertInputFiles (/home/king/Desktop/wifi/node_modules/playwright/lib/client/elementHandle.js:275:26)
at async /home/king/Desktop/wifi/node_modules/playwright/lib/client/frame.js:366:60
at async Frame._wrapApiCall (/home/king/Desktop/wifi/node_modules/playwright/lib/client/channelOwner.js:77:28)
at async /home/king/Desktop/wifi/index2.js:12:3
(Use <span class="pl-s"><span class="pl-pds">`</span>node --trace-warnings ...<span class="pl-pds">`</span></span> to show where the warning was created)
(node:25801) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async <span class="pl-k">function</span> <span class="pl-en">without</span> a catch block, or by rejecting a promise which was not handled with <span class="pl-en">.catch</span>(). To terminate the node process on unhandled promise rejection, use the CLI flag <span class="pl-s"><span class="pl-pds">`</span>--unhandled-rejections=strict<span class="pl-pds">`</span></span> (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:25801) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero <span class="pl-c1">exit</span> code.
</pre></div> | <p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.3.0</li>
<li>Operating System: Windows</li>
<li>Node.js version: 12.18.3</li>
<li>Browser: Chromium</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { chromium } = require("playwright");
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.setContent(
'<input type="file" name="fileToUpload" id="fileToUpload">'
);
await page.setInputFiles("input", "path/to/large/file.txt");
await browser.close();
})();
"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"playwright"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span>
<span class="pl-s">'<input type="file" name="fileToUpload" id="fileToUpload">'</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setInputFiles</span><span class="pl-kos">(</span><span class="pl-s">"input"</span><span class="pl-kos">,</span> <span class="pl-s">"path/to/large/file.txt"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
When uploading large file, about 100MB, <code class="notranslate">page.setInputFiles</code> fails. With Firefox and Webkit it takes some time but it works.<br>
Log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pw:api => page.setContent started +0ms
pw:api setting frame content, waiting until "load" [] +1ms
pw:api <= page.setContent succeeded +79ms
pw:api => page.setInputFiles started +2ms
pw:api waiting for selector "input" [] +1ms
pw:api selector resolved to visible <input type="file" id="fileToUpload" name="fileToUpload"/> [] +26ms
pw:api <= page.setInputFiles failed +1s
(node:19668) UnhandledPromiseRejectionWarning: page.setInputFiles: Protocol error (Runtime.callFunctionOn): Target closed.
=========================== logs ===========================
[api] waiting for selector "input"
[api] selector resolved to visible <input type="file" id="fileToUpload" name="fileToUpload"/>
============================================================
Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.Error
at C:\dev\playwright\node_modules\playwright\lib\chromium\crConnection.js:131:63
at new Promise (<anonymous>)
at CRSession.send (C:\dev\playwright\node_modules\playwright\lib\chromium\crConnection.js:130:16)
at CRSession.send (C:\dev\playwright\node_modules\playwright\lib\helper.js:80:31)
at CRExecutionContext.evaluateWithArguments (C:\dev\playwright\node_modules\playwright\lib\chromium\crExecutionContext.js:40:79)
at evaluateExpression (C:\dev\playwright\node_modules\playwright\lib\javascript.js:164:40)
at async FrameManager.waitForSignalsCreatedBy (C:\dev\playwright\node_modules\playwright\lib\frames.js:90:24)
at async FrameExecutionContext.evaluateInternal (C:\dev\playwright\node_modules\playwright\lib\dom.js:36:16)
at async CRPage.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\chromium\crPage.js:210:9)
at async C:\dev\playwright\node_modules\playwright\lib\dom.js:440:13
-- ASYNC --
at CRSession.send (C:\dev\playwright\node_modules\playwright\lib\helper.js:79:23)
at CRExecutionContext.evaluateWithArguments (C:\dev\playwright\node_modules\playwright\lib\chromium\crExecutionContext.js:40:79)
at evaluateExpression (C:\dev\playwright\node_modules\playwright\lib\javascript.js:164:40)
at async FrameManager.waitForSignalsCreatedBy (C:\dev\playwright\node_modules\playwright\lib\frames.js:90:24)
at async FrameExecutionContext.evaluateInternal (C:\dev\playwright\node_modules\playwright\lib\dom.js:36:16)
at async CRPage.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\chromium\crPage.js:210:9)
at async C:\dev\playwright\node_modules\playwright\lib\dom.js:440:13
at async FrameManager.waitForSignalsCreatedBy (C:\dev\playwright\node_modules\playwright\lib\frames.js:90:24)
at async ElementHandle._setInputFiles (C:\dev\playwright\node_modules\playwright\lib\dom.js:438:9)
at async C:\dev\playwright\node_modules\playwright\lib\frames.js:674:32
-- ASYNC --
at Frame.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\helper.js:79:23)
at C:\dev\playwright\node_modules\playwright\lib\page.js:407:61
at Page._attributeToPage (C:\dev\playwright\node_modules\playwright\lib\page.js:370:20)
at Page.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\page.js:407:21)
at Page.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\helper.js:80:31)
at C:\dev\playwright\upload.js:9:14
(node:19668) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:19668) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code."><pre class="notranslate"><code class="notranslate"> pw:api => page.setContent started +0ms
pw:api setting frame content, waiting until "load" [] +1ms
pw:api <= page.setContent succeeded +79ms
pw:api => page.setInputFiles started +2ms
pw:api waiting for selector "input" [] +1ms
pw:api selector resolved to visible <input type="file" id="fileToUpload" name="fileToUpload"/> [] +26ms
pw:api <= page.setInputFiles failed +1s
(node:19668) UnhandledPromiseRejectionWarning: page.setInputFiles: Protocol error (Runtime.callFunctionOn): Target closed.
=========================== logs ===========================
[api] waiting for selector "input"
[api] selector resolved to visible <input type="file" id="fileToUpload" name="fileToUpload"/>
============================================================
Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.Error
at C:\dev\playwright\node_modules\playwright\lib\chromium\crConnection.js:131:63
at new Promise (<anonymous>)
at CRSession.send (C:\dev\playwright\node_modules\playwright\lib\chromium\crConnection.js:130:16)
at CRSession.send (C:\dev\playwright\node_modules\playwright\lib\helper.js:80:31)
at CRExecutionContext.evaluateWithArguments (C:\dev\playwright\node_modules\playwright\lib\chromium\crExecutionContext.js:40:79)
at evaluateExpression (C:\dev\playwright\node_modules\playwright\lib\javascript.js:164:40)
at async FrameManager.waitForSignalsCreatedBy (C:\dev\playwright\node_modules\playwright\lib\frames.js:90:24)
at async FrameExecutionContext.evaluateInternal (C:\dev\playwright\node_modules\playwright\lib\dom.js:36:16)
at async CRPage.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\chromium\crPage.js:210:9)
at async C:\dev\playwright\node_modules\playwright\lib\dom.js:440:13
-- ASYNC --
at CRSession.send (C:\dev\playwright\node_modules\playwright\lib\helper.js:79:23)
at CRExecutionContext.evaluateWithArguments (C:\dev\playwright\node_modules\playwright\lib\chromium\crExecutionContext.js:40:79)
at evaluateExpression (C:\dev\playwright\node_modules\playwright\lib\javascript.js:164:40)
at async FrameManager.waitForSignalsCreatedBy (C:\dev\playwright\node_modules\playwright\lib\frames.js:90:24)
at async FrameExecutionContext.evaluateInternal (C:\dev\playwright\node_modules\playwright\lib\dom.js:36:16)
at async CRPage.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\chromium\crPage.js:210:9)
at async C:\dev\playwright\node_modules\playwright\lib\dom.js:440:13
at async FrameManager.waitForSignalsCreatedBy (C:\dev\playwright\node_modules\playwright\lib\frames.js:90:24)
at async ElementHandle._setInputFiles (C:\dev\playwright\node_modules\playwright\lib\dom.js:438:9)
at async C:\dev\playwright\node_modules\playwright\lib\frames.js:674:32
-- ASYNC --
at Frame.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\helper.js:79:23)
at C:\dev\playwright\node_modules\playwright\lib\page.js:407:61
at Page._attributeToPage (C:\dev\playwright\node_modules\playwright\lib\page.js:370:20)
at Page.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\page.js:407:21)
at Page.setInputFiles (C:\dev\playwright\node_modules\playwright\lib\helper.js:80:31)
at C:\dev\playwright\upload.js:9:14
(node:19668) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:19668) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
</code></pre></div> | 1 |
<p dir="auto">I tried to upgrade my application from Sf 2.4 to Sf 2.5 and I discovered a bug :</p>
<p dir="auto">A service working with the "validator.initializer" tag, is not called anymore.</p>
<p dir="auto">Service definition :</p>
<p dir="auto">cpl.sitebundle.canonicalizer:<br>
class: Cpl\SiteBundle\Validator\Canonicalizer<br>
tags:<br>
- { name: validator.initializer }</p>
<p dir="auto">This service fill a "canonical" field on many entities before validations (same logic as FOSUserbundle "Name_canonical" field).</p>
<p dir="auto">Thank you</p> | <p dir="auto">see: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35746841" data-permission-text="Title is private" data-url="https://github.com/FriendsOfSymfony/FOSUserBundle/issues/1511" data-hovercard-type="issue" data-hovercard-url="/FriendsOfSymfony/FOSUserBundle/issues/1511/hovercard" href="https://github.com/FriendsOfSymfony/FOSUserBundle/issues/1511">FriendsOfSymfony/FOSUserBundle#1511</a></p>
<p dir="auto">The problem is solved by using the 2.4 validation api.</p> | 1 |
<p dir="auto">followup to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162736183" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/17165" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/17165/hovercard" href="https://github.com/JuliaLang/julia/pull/17165">#17165</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180202806" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/18738" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/18738/hovercard" href="https://github.com/JuliaLang/julia/pull/18738">#18738</a>, cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kshyatt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kshyatt">@kshyatt</a></p>
<p dir="auto">right now the base tests are printing both old as-you-go info, in addition to a new table so it looks like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" * dsp maxrss 3501.18 MB
* examples maxrss 3501.18 MB
* compile maxrss 3501.18 MB
Test Summary: | Pass Broken Total
Overall | 22171317 28 22171345
Test: | Total time (s): | GC time (s): | Percent in gc: | Allocated (MB): | RSS (MB):
linalg/triangular | 546.77 | 11.92 | 2.18 | 8420.77 | 680.38
linalg/qr | 89.66 | 1.85 | 2.06 | 2312.61 | 751.55"><pre class="notranslate"><code class="notranslate"> * dsp maxrss 3501.18 MB
* examples maxrss 3501.18 MB
* compile maxrss 3501.18 MB
Test Summary: | Pass Broken Total
Overall | 22171317 28 22171345
Test: | Total time (s): | GC time (s): | Percent in gc: | Allocated (MB): | RSS (MB):
linalg/triangular | 546.77 | 11.92 | 2.18 | 8420.77 | 680.38
linalg/qr | 89.66 | 1.85 | 2.06 | 2312.61 | 751.55
</code></pre></div>
<p dir="auto">I propose we get rid of the old style and attempt to make the table just print new rows as they come in, if that's possible. The maxrss numbers are the same so it's duplicated information.</p>
<p dir="auto">Additional printing-related followup from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162736183" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/17165" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/17165/hovercard?comment_id=250615742&comment_type=issue_comment" href="https://github.com/JuliaLang/julia/pull/17165#issuecomment-250615742">#17165 (comment)</a>, printing of <code class="notranslate">@test true</code> or <code class="notranslate">@test 1==1</code> should be adjusted to not bother showing <code class="notranslate">Expression: nothing</code> now that passing tests don't save the input expressions any more.</p> | <p dir="auto">As per discussion in <a href="https://groups.google.com/forum/#!topic/julia-users/alavN8tRdyI" rel="nofollow">https://groups.google.com/forum/#!topic/julia-users/alavN8tRdyI</a> :<br>
Let e.g.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Array{<:Real}"><pre class="notranslate"><code class="notranslate">Array{<:Real}
</code></pre></div>
<p dir="auto">act like <code class="notranslate">RArray</code> given by</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="typealias RArray{T<:Real} Array{T}"><pre class="notranslate"><code class="notranslate">typealias RArray{T<:Real} Array{T}
</code></pre></div>
<p dir="auto">This convenient shortcut should go a long way in those cases where people would want covariant types.</p>
<p dir="auto">The type parameter of <code class="notranslate">Array{<:Real}</code> might become anonymous or hidden; it probably doesn't matter so much since you would rarely re-provide it, e.g. <code class="notranslate">Array{<:Real}{Int}</code>.</p> | 0 |
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">Actually we use <code class="notranslate">:bool-prop="false"</code>. What would be the chances of implementing <code class="notranslate">!bool-prop</code>?</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto">Instead of</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<button :ripple="false">Download</button>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-s1">button</span> :<span class="pl-s1">ripple</span><span class="pl-c1">=</span><span class="pl-s">"false"</span><span class="pl-c1">></span><span class="pl-v">Download</span><span class="pl-c1"><</span><span class="pl-c1">/</span>button></pre></div>
<p dir="auto">Would be</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<button !ripple>Download</button>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">!</span><span class="pl-c1">ripple</span><span class="pl-c1">></span>Download<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">></span></pre></div>
<p dir="auto">Think of several props in the same element.</p> | <h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">我有一个类似于qq聊天的窗体,聊天框需要缓存用户行为(滚动条位置、输入框内容等),keepalive渲染的组件都是同一个,只是加了不同的key,用keepalive可以实现我的需求的,当我关闭某个用户的聊天窗口时,配置include时缓存是没法清除;<br>
我的组件结构如下:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<keep-alive :include="included">
<chat v-if="_interlocutor.Key===interlocutor" :interlocutor="_interlocutor"
:key="_interlocutor.Key" v-for="_interlocutor in interlocutors"/>
</keep-alive>"><pre class="notranslate"><code class="notranslate"><keep-alive :include="included">
<chat v-if="_interlocutor.Key===interlocutor" :interlocutor="_interlocutor"
:key="_interlocutor.Key" v-for="_interlocutor in interlocutors"/>
</keep-alive>
</code></pre></div>
<p dir="auto">现在只能通过_vnode.componentInstance获取到keys,和cache,在程序中自己来处理。处理起来比较麻烦。</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto">看代码发现include和exclude的配置都是判断的组件name,能否增加include和exclude对key的支持。</p> | 0 |
<p dir="auto">Currently gradients can only be computed manually in C++ or automatically in Python with tf.gradients. Work on registering C++ implemented gradients for all the OPs has started. However, there is currently no easy way to automatically use those gradients to generate a graph. The C-api also does not have gradient creation calls yet.</p>
<p dir="auto">This supercedes the gradient part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121630790" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/476" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/476/hovercard" href="https://github.com/tensorflow/tensorflow/issues/476">#476</a>, since the rest of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121630790" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/476" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/476/hovercard" href="https://github.com/tensorflow/tensorflow/issues/476">#476</a>'s issue was addressed.</p> | <p dir="auto">I have started <a href="https://github.com/kmalakoff/tensorflow-node">porting Tensorflow to Node.js</a> and was wondering about the status of gradients support in the C and C++ APIs:</p>
<ul dir="auto">
<li><a href="https://www.tensorflow.org/versions/r0.12/how_tos/language_bindings/index.html" rel="nofollow">https://www.tensorflow.org/versions/r0.12/how_tos/language_bindings/index.html</a></li>
<li><a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/resources/roadmap.md">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/resources/roadmap.md</a></li>
</ul>
<p dir="auto">Could I ask for some help and / or offer some assistance? A couple of ideas:</p>
<ol dir="auto">
<li>I would be happy to test the work-in-progress API in Node.js using either of both <a href="https://github.com/kmalakoff/tensorflow-node/tree/master/src/native/c">C</a> or <a href="https://github.com/kmalakoff/tensorflow-node/tree/master/src/native/cc">C++</a>. I have tried both APIs and would be happy to maintain both as a test case.</li>
<li>I would be happy to receive some guidance from someone on the tensorflow team on how to implement gradients / training without an official API. I see from this issue (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177892952" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4473" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/4473/hovercard" href="https://github.com/tensorflow/tensorflow/issues/4473">#4473</a>) that it might be possible, but it has been hard to study the Python and OCAML code to understand what to do. Some pseudocode or links to existing code that would need to replicated could be enough.</li>
<li>Something else? For example, I could help move the gradient API forward by working with someone on the tensorflow team.</li>
</ol>
<p dir="auto">Let me know if you have any suggestions for a path forward. Thank you!</p> | 1 |
<p dir="auto">OpenCV uses some ffmpeg APIs that have been removed in the just released ffmpeg 5.0 and makes some assumptions about ffmpeg structs that are no longer true (primarily trying to access the "codec" member in an AVStream).<br>
This causes the build to fail.</p> | <p dir="auto">related:<br>
<a href="https://forum.opencv.org/t/error-avstream-aka-struct-avstream-has-no-member-named-codec/3506" rel="nofollow">https://forum.opencv.org/t/error-avstream-aka-struct-avstream-has-no-member-named-codec/3506</a></p>
<p dir="auto">ffmpeg changed its <code class="notranslate">AVStream</code> structure. in ffmpeg v3.1 (~2016) the <code class="notranslate">codecpar</code> member was introduced to replace <code class="notranslate">codec</code> member. <code class="notranslate">codec</code> has been deprecated since then. it is still available in ffmpeg v4.4 but not in the master branch.</p>
<p dir="auto">availability is modulated by <code class="notranslate">#define FF_API_LAVF_AVCTX (LIBAVFORMAT_VERSION_MAJOR < 59)</code></p>
<p dir="auto">this version was bumped to 59 a month ago in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/FFmpeg/FFmpeg/commit/85ba17f36dbfde1baeaa47e14d30c337add52c0d/hovercard" href="https://github.com/FFmpeg/FFmpeg/commit/85ba17f36dbfde1baeaa47e14d30c337add52c0d">FFmpeg/FFmpeg@<tt>85ba17f</tt></a></p>
<p dir="auto">OpenCV v4.5.2/master still assumes the existence of the <code class="notranslate">codec</code> member:<br>
</p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/opencv/opencv/blob/ae4cc404c15a206e7bc953e183e9a6812df6d5b0/modules/videoio/src/cap_ffmpeg_impl.hpp#L606">opencv/modules/videoio/src/cap_ffmpeg_impl.hpp</a>
</p>
<p class="mb-0 color-fg-muted">
Line 606
in
<a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/ae4cc404c15a206e7bc953e183e9a6812df6d5b0">ae4cc40</a>
</p>
</div>
<div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
<table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">
<tbody><tr class="border-0">
<td id="L606" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="606"></td>
<td id="LC606" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">avcodec_close</span>( video_st-><span class="pl-smi">codec</span> ); </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">I've checked issues and pull requests for mentions of <code class="notranslate">codecpar</code> and it seems this hasn't been reported yet.</p> | 1 |
<ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Ubuntu 15.10 x64</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ul dir="auto">
<li>
<ol dir="auto">
<li>Define a variable in a Javascript/Typescript file and assign a multi-line string value, using the "" (backslash) character to join lines. e.g.</li>
</ol>
</li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var mlString = "The is my long multi-line string which I am using a backslash \
to join over these lines.""><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">mlString</span> <span class="pl-c1">=</span> <span class="pl-s">"The is my long multi-line string which I am using a backslash \</span>
<span class="pl-s"> to join over these lines."</span></pre></div>
<ul dir="auto">
<li>
<ol start="2" dir="auto">
<li>In the vscode editor only the first line of the string is correctly color-coded as a string-type. See screenshot attached.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12181805/13895716/0f8c2ecc-edcb-11e5-8e9e-2e9358263410.PNG"><img src="https://cloud.githubusercontent.com/assets/12181805/13895716/0f8c2ecc-edcb-11e5-8e9e-2e9358263410.PNG" alt="multi-line string color coding" style="max-width: 100%;"></a></li>
</ol>
</li>
</ul> | <p dir="auto"><em>From @KevinSCreative on December 30, 2015 18:13</em></p>
<p dir="auto">After the first line, multi-line strings in JavaScript don't get string color. In the following example, only "Hello World" has the string color, and the obj variable declaration is all one color. In the default theme, 'var' is supposed to be blue. I would also expect the rest of the string to be orange in the default theme, not just the first line.</p>
<p dir="auto">I am running VSC 0.10.6 and I have no extensions installed.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var test = 'Hello World!\
<div>\
<p>Testing</p>\
</div>\
';
var obj = $(test);
"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-s">'Hello World!\</span>
<span class="pl-s"><div>\</span>
<span class="pl-s"><p>Testing</p>\</span>
<span class="pl-s"></div>\</span>
<span class="pl-s"> '</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s1">test</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="124381843" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1716" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1716/hovercard" href="https://github.com/microsoft/vscode/issues/1716">microsoft/vscode#1716</a></em></p> | 1 |
<p dir="auto">i think package.json shouldn't be deprecated, but changed: the current proposal suggest full urls in the imports; i suggest the full urls will reside on the package.json, along with the version, and have a semantic short-name for the imported package, so it would be easier to refer to it from the multitudes of projects files... Also, i'd suggest an option to provide a repository short-name in the package.json, so make the more readable.</p>
<p dir="auto">example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
repositories: {
kuku: 'https://www.github.com/kuku/'
},
dependencies: {
matrices: '@kuku/matrix-utils@~2.0.0'
}
}"><pre class="notranslate"><code class="notranslate">{
repositories: {
kuku: 'https://www.github.com/kuku/'
},
dependencies: {
matrices: '@kuku/matrix-utils@~2.0.0'
}
}
</code></pre></div>
<p dir="auto">the usage is simple:</p>
<p dir="auto">my-code.ts:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {multiply} from 'matrices' // or perhaps import {multiply} from '@matrices'
...
...
"><pre class="notranslate"><code class="notranslate">import {multiply} from 'matrices' // or perhaps import {multiply} from '@matrices'
...
...
</code></pre></div> | <p dir="auto">Very interesting project! I love the web-compatibility goal.</p>
<p dir="auto">One thing that would help there is support for bare module specifiers via package name maps: <a href="https://github.com/domenic/package-name-maps">https://github.com/domenic/package-name-maps</a></p>
<p dir="auto">This would allow for imports like:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as _ from 'lodash';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">_</span> <span class="pl-k">from</span> <span class="pl-s">'lodash'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Without any requirements on a specific package manager. It's our hope that npm, yarn and others will produce package-name maps during installation, giving you a bridge there. We have a reference implementation in progress here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="323321191" data-permission-text="Title is private" data-url="https://github.com/WICG/import-maps/issues/37" data-hovercard-type="pull_request" data-hovercard-url="/WICG/import-maps/pull/37/hovercard" href="https://github.com/WICG/import-maps/pull/37">WICG/import-maps#37</a></p> | 1 |
<p dir="auto">by <strong>jht5945</strong>:</p>
<pre class="notranslate">1. What is a short input program that triggers the error?
{{{
package main
import "fmt"
func GetValue(val bool) string {
if val {
return "true"
} else {
return "false"
}
}
func main() {
fmt.Println(GetValue(true))
}
}}}
2. What is the full compiler output?
`prog.go:5: function ends without a return statement`
3. What version of the compiler are you using? (Run it with the -V flag.)
`go version go1.0.2`</pre> | <pre class="notranslate">12156:8086095a2f8e tip
Build with AddressSanitizer
(<a href="http://code.google.com/p/address-sanitizer/wiki/AddressSanitizer)" rel="nofollow">http://code.google.com/p/address-sanitizer/wiki/AddressSanitizer)</a>:
CC="clang -faddress-sanitizer -g -fno-omit-frame-pointer" ./make.bash
ERROR: AddressSanitizer global-buffer-overflow on address
0x0000006e7ebe at pc 0x46ab3e bp 0x7fff80741d00 sp 0x7fff80741cf8
READ of size 1 at 0x0000006e7ebe thread T0
#0 0x47643e in typ src/cmd/cc/sub.c:159
#1 0x45a620 in fnproto1 src/cmd/cc/dcl.c:899
#2 0x4546c7 in dodecl src/cmd/cc/dcl.c:77
#3 0x485106 in yyparse src/cc.y:145
#4 0x46798e in compile src/cmd/cc/lex.c:284
#5 0x465ed5 in p9main src/cmd/cc/lex.c:156
#6 0x494329 in main src/lib9/main.c:36
0x0000006e7ebe is located 10 bytes to the right of global variable
'ewidth (src/cmd/6c/txt.c)' (0x6e7ea0) of size 20</pre> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18990.0
Windows Terminal version (if applicable): v0.6 on commit [71debc1](https://github.com/microsoft/terminal/commit/71debc158b6d90106a2dfc26b9029429499dfb29)
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18990.0
Windows Terminal version (if applicable): v0.6 on commit [71debc1](https://github.com/microsoft/terminal/commit/71debc158b6d90106a2dfc26b9029429499dfb29)
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Drag the tabs around</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I should be able to see the tab while dragging</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">No tab until I drop :(</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/48369326/69386670-208de380-0c78-11ea-9f2c-afa3894de3ef.gif"><img src="https://user-images.githubusercontent.com/48369326/69386670-208de380-0c78-11ea-9f2c-afa3894de3ef.gif" alt="tab-reorder-bug" data-animated-image="" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18963.1000]
Windows Terminal version (if applicable): 0.5.2762.0"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18963.1000]
Windows Terminal version (if applicable): 0.5.2762.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Launch WSL terminal</li>
<li>Use other applications like a web browser</li>
<li>Go back to the WSL terminal</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">See a working terminal with all the past text output</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The area where you would expect to see the terminal output is completely blank (black). Not sure how to reproduce this consistently, seems to happen at random. Looks like it can go back to normal after a bit (a minute?) of waiting.</p>
<p dir="auto">Might be <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/2733/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/2733">@2733</a></p> | 0 |
<ul dir="auto">
<li>Electron version: v1.2.4</li>
<li>Operating system: Ubuntu LTS 14.04<br>
If there is an existing Electron issue for this, please link it here:</li>
</ul>
<p dir="auto"><a href="https://github.com/atom/electron/issues">https://github.com/atom/electron/issues</a></p>
<p dir="auto">Describe your problem:<br>
Electron won't open at all. I ran the command to install electron-prebuilt. Nothing happens when I run electron afterward. I am using the code found on the website under Quick Start and it won't open so it's not the code as far as I am concerned. There have been other issues regarding electron not opening but those have been with errors popping up when trying to run electron. Mine is simple: electron doesn't do anything. I don't really know why this is happening but I need it to work asap and after having spent four hours of trying to get it to work I am running out of options</p> | <ul dir="auto">
<li>Electron version: 1.2.4</li>
<li>Operating system: Linux xxx 4.2.0-38-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17570403" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/45" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/45/hovercard" href="https://github.com/electron/electron/issues/45">#45</a>~14.04.1-Ubuntu SMP Thu Jun 9 09:27:51 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
</ul>
<p dir="auto">I was trying to set 1.2.2 - 1.2.3 versions and works fine. When updating to 1.2.4 app.on('ready'...) never works. No errors output on console.<br>
Trying "Quick start" from electron. <a href="https://github.com/electron/electron-quick-start">https://github.com/electron/electron-quick-start</a></p> | 1 |
<h1 dir="auto">Feature request</h1>
<h2 dir="auto">Is your feature request related to a problem? Please describe.</h2>
<p dir="auto">Currently when deploying to now 2.0 we force all dependencies to be <code class="notranslate">devDependencies</code>, the reason for this is creating the <em>smallest possible lambda</em>.<br>
This however introduces some issues:</p>
<ul dir="auto">
<li>When everything is a devDependency, how are my pages requiring these modules?
<ul dir="auto">
<li>answer: <code class="notranslate">next build --lambdas</code> bundles imported modules and no longer uses <code class="notranslate">externals</code> for this reason.</li>
</ul>
</li>
<li>When the user has a <code class="notranslate">next.config.js</code> that uses any module, most commonly a Next.js plugin like <code class="notranslate">@zeit/next-css</code> loading <code class="notranslate">next.config.js</code> in production will fail because of the module not being there. However this opens up the question: why is <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-css">next-css</a> being loaded on cold start in production.</li>
</ul>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">One solution is forcing <code class="notranslate">phases</code> to be used, documentation can be found here: <a href="https://github.com/zeit/next.js#custom-configuration">https://github.com/zeit/next.js#custom-configuration</a></p>
<p dir="auto">However there are alternatives, for example:</p>
<ul dir="auto">
<li>bundling the configuration (would also allow for <code class="notranslate">next.config.ts</code> or similar. At first glance this seems like a solution, however it doesn't solve the build-time modules being loaded in production mode.</li>
<li>No longer allowing a "runtime" next.config.js, this would be a breaking change but it would make a lot of sense since this forces applications to optimize at build and not have runtime values being passed for convenience. However we'd still need a way to allow <code class="notranslate">publicRuntimeConfig</code> and <code class="notranslate">assetPrefix</code> (which does work at runtime), which is for example used by Trulia's appshell.</li>
</ul>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">I'd love to know how people are using <code class="notranslate">next.config.js</code> currently. From what I've seen the vast majority looks like the equivalent of:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const thePlugin = require('theplugin')
module.exports = thePlugin({})"><pre class="notranslate"><code class="notranslate">const thePlugin = require('theplugin')
module.exports = thePlugin({})
</code></pre></div>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Issue reference for Now 2.0: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384521475" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/5750" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/5750/hovercard" href="https://github.com/vercel/next.js/issues/5750">#5750</a></p>
<p dir="auto">For now this issue is just a writeup of one issue regarding serverless execution, I don't have a definitive opinion about this yet, but I wanted to write down my thoughts on the subject so that we can get the community involved and work towards a solution <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p> | <h1 dir="auto">Feature request</h1>
<p dir="auto">Support <code class="notranslate">assetPrefix</code> with <code class="notranslate">next/link</code> component.</p>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">Provide <code class="notranslate">assetPrefix</code> props for <code class="notranslate">next/link</code> component.</p>
<h2 dir="auto">Additional context</h2>
<p dir="auto">This feature is needed in case we have multiple NextJS apps on the same domain with different <code class="notranslate">assetPrefix</code> .<br>
Note that, even page urls are on the same domain, <code class="notranslate">assetPrefix</code> might be on different CDN host.</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.7.4</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://sfc.vuejs.org/#eNp9kEFvgzAMhf+KlQubVGC7Moo07bJdd84lBReoQhLFptOo+O9zSrXDJlXKIe/F+ezni3oNoTjPqCpVUxvHwGCN6/daMWnVaNd6RwzLUsHHO3P4RAriYE0cR9c3sIeLdgDiz5YreNol1Rk2FWTUHeVkYq0vG8lbLKzvH7JlyXZCfRS/LrfG0kwE4xSsYRQFUA/PzZtxDDMh8IDQW38wFvg7IEGHrTXR8OiFIZWQWL//1U6NU/CR88mE4kTeScbrrPr2IAGrbfrkyRKS1mqQmFSVJR3btJkTFT72pdyKODseJyyQpvwQ/RdhFLBW18w3RinmGWMe0XUYMd5j/in9x03YVZan1h8FAZLe" rel="nofollow">sfc.vuejs.org/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Step1. create the project with @vue/cli 5.0.8; <code class="notranslate">vue create vue27-ts-mini</code>,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, TS, Router, Vuex, CSS Pre-processors, Linter
? Choose a version of Vue.js that you want to start the project with 2.x
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)?
Yes
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Less
? Pick a linter / formatter config: Prettier
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files"><pre class="notranslate"><code class="notranslate"> ? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, TS, Router, Vuex, CSS Pre-processors, Linter
? Choose a version of Vue.js that you want to start the project with 2.x
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)?
Yes
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Less
? Pick a linter / formatter config: Prettier
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
</code></pre></div>
<p dir="auto">Step2. <code class="notranslate">mkdir types && mv src/*.d.ts types/ && pnpm i</code></p>
<p dir="auto">Step3. edit shims-tsx.d.ts, add interface to global</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Vue, { VNode } from "vue";
declare global {
namespace JSX {
interface Element extends VNode { }
interface ElementClass extends Vue { }
interface IntrinsicElements {
[elem: string]: any;
}
}
interface IHttpResponse<T> {
Result: number
Reason?: string
ErrCode?: number
// ErrCode?:number
data?: T
}
}"><pre class="notranslate"><code class="notranslate">import Vue, { VNode } from "vue";
declare global {
namespace JSX {
interface Element extends VNode { }
interface ElementClass extends Vue { }
interface IntrinsicElements {
[elem: string]: any;
}
}
interface IHttpResponse<T> {
Result: number
Reason?: string
ErrCode?: number
// ErrCode?:number
data?: T
}
}
</code></pre></div>
<p dir="auto">Step4. edit <code class="notranslate">.eslintrc.js </code>add <code class="notranslate"> "prettier/prettier": 0,</code> to rules section<br>
Step5. add this code to main.ts and src/views/HomeView.vue</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" const zz: IHttpResponse<string> = {
Result: 0,
data: 'sdfsdf',
};
console.log('zz', zz);"><pre class="notranslate"><code class="notranslate"> const zz: IHttpResponse<string> = {
Result: 0,
data: 'sdfsdf',
};
console.log('zz', zz);
</code></pre></div>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">No Warning</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">the main.ts does not has any error.</p>
<p dir="auto">the src/views/HomeView.vue has an no-undef warning:<br>
[{<br>
"resource": "/D:/Playground/vue2.7-ts/vue2.7-ts/src/views/HomeView.vue",<br>
"owner": "eslint",<br>
"code": {<br>
"value": "no-undef",<br>
"target": {<br>
"$mid": 1,<br>
"external": "https://eslint.org/docs/rules/no-undef",<br>
"path": "/docs/rules/no-undef",<br>
"scheme": "https",<br>
"authority": "eslint.org"<br>
}<br>
},<br>
"severity": 8,<br>
"message": "'IHttpResponse' is not defined.",<br>
"source": "eslint",<br>
"startLineNumber": 11,<br>
"startColumn": 11,<br>
"endLineNumber": 11,<br>
"endColumn": 24<br>
}]</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3477901/178397452-6e13e61d-841b-4722-ba8e-b3676dd3e8c2.png"><img src="https://user-images.githubusercontent.com/3477901/178397452-6e13e61d-841b-4722-ba8e-b3676dd3e8c2.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">The <code class="notranslate"><slot></code> functionality is really useful, however I wonder if having a <code class="notranslate">vm.$slots</code> instance property could be useful. Much like <a href="http://forum.vuejs.org/topic/927/using-v-show-if-with-named-slots" rel="nofollow">this thread</a>, I'd like to show/hide parts of a component depending on whether a particular named slot was passed through. Although the thread was answered, I think having an instance property could make things much cleaner.</p>
<p dir="auto">I don't really know much about Vue's internals, but it looks like a list is already compiled as <code class="notranslate">vm._slotContents</code> <a href="https://github.com/vuejs/vue/blob/1af06013c69e77fa9f6545243aa282bcd8453771/src/compiler/resolve-slots.js#L20">here</a>. Perhaps this was purposefully not exposed as a public API, but being able to perform actions based on whether certain slots were provided seems quite useful to me.</p>
<p dir="auto">I imagine it'd be similar to <code class="notranslate">vm.$els</code>, where each key is the slot's name and each value is its element.</p>
<p dir="auto">Let me know what you think. Thanks!</p> | 0 |
<p dir="auto">I saw an issue with aggs not working when upgrading from 1.4.4 to 1.5.1. I was able to reproduce with generic data in both a linux server (ubuntu on CircleCI) and OS X on my laptop locally. (nice to have CI)</p>
<p dir="auto">After some debugging, I was able to narrow it down to adding a second mapping where the second mapping's doc type has the same name as the first mapping's nested object. The following script below will return <code class="notranslate">0</code> or <code class="notranslate">null</code> aggs results for the <code class="notranslate">stats</code> aggregation in 1.5.1 when the second mapping is applied. Without the second mapping, this isn't an issue, and in 1.4.4 this isn't an issue.</p>
<p dir="auto">Cheers,<br>
Aleck</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/bin/bash
# Aleck Landgraf - Elasticsearch 1.5.1 aggs tests with various mappings
# This test will return 0 or null aggregations for elasticsearch version 1.5.1
# and return valid aggs on 1.4.4. See output at the bottom.
#
# Comment out line 35 (mapping of building_snapshot) to work on 1.5.1.
#
# I've only tested for the value_counts and stats aggs, but more are probably
# affected.
echo ""
echo "get elasticsearch version for debug"
echo ""
curl -XGET localhost:9200
echo ""
echo ""
echo "drop index"
echo ""
curl -XDELETE localhost:9200/test
echo ""
echo ""
echo ""
echo "create index"
echo ""
curl -XPUT localhost:9200/test
echo ""
echo ""
echo "create mappings"
echo ""
curl -XPUT localhost:9200/test/_mapping/test -d '{"test": {"properties": {"building_snapshot": {"properties": {"lot_number": {"type": "string"}, "owner_address": {"type": "string"}, "owner_postal_code": {"type": "string"}, "block_number": {"type": "string"}, "project_buildings": {"type": "nested"}, "source_eui_weather_normalized": {"type": "float"}, "owner_email": {"type": "string"}, "year_ending": {"type": "date"}, "building_count": {"type": "float"}, "meters": {"index_name": "meter", "type": "string"}, "owner": {"type": "string"}, "site_eui": {"type": "float"}, "address_line_1": {"type": "string"}, "occupied_floor_area": {"type": "float"}, "source_eui": {"type": "float"}, "custom_id_1": {"index": "not_analyzed", "type": "string", "doc_values": true}, "city": {"type": "string"}, "property_notes": {"type": "string"}, "district": {"type": "string"}, "location": {"type": "geo_point"}, "latitude": {"type": "float"}, "generation_date": {"type": "date"}, "extra_data": {"type": "object", "properties": {"Wall Insulation Location": {"type": "string"}, "Audit Cost": {"ignore_malformed": true, "type": "float"}, "Design Food Sales - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Exterior Shading Type": {"type": "string"}, "Design Electricity Use - Grid Purchase (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Coal - Anthracite Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Static Pressure Reset Control": {"type": "string"}, "Annual Water Savings": {"ignore_malformed": true, "type": "float"}, "Library - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Evaporatively Cooled Condenser Minimum Temperature": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site Natural Gas Use (therms)": {"ignore_malformed": true, "type": "float"}, "Mailing Center/Post Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Fuel Interruptibility": {"type": "string"}, "Building air leakage": {"ignore_malformed": true, "type": "float"}, "Indoor Water Cost (All Water Sources) ($)": {"ignore_malformed": true, "type": "float"}, "Footprint Shape": {"type": "string"}, "Guiding Principle 4.7 Indoor Environment - Tobacco Smoke Control": {"type": "string"}, "Hotel - Gym/fitness Center Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Refrigerant Return Line Diameter": {"ignore_malformed": true, "type": "float"}, "Transportation Terminal/Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Outside Air Reset Minimum Heating Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Typical Exterior Shading Depth": {"ignore_malformed": true, "type": "float"}, "Annual Net Emissions": {"ignore_malformed": true, "type": "float"}, "Combustion Efficiency": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Design Other - Entertainment/Public Assembly - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Schedule End Month": {"ignore_malformed": true, "type": "float"}, "Police Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Education - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Ignition Type": {"type": "string"}, "PV Module Rated Power": {"ignore_malformed": true, "type": "float"}, "Space Occupant Capacity": {"ignore_malformed": true, "type": "float"}, "Supply Duct Percent Conditioned Space": {"ignore_malformed": true, "type": "float"}, "Medical Office - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Water collected for Reuse": {"type": "string"}, "Convenience Store without Gas Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Minimum Fan Speed as a Fraction of Maximum - Heating": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Conveyance Standby Time": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Lighting Control Type Manual": {"type": "string"}, "Wood Cost ($)": {"ignore_malformed": true, "type": "float"}, "Hotel- Number of guest meals served per year": {"ignore_malformed": true, "type": "float"}, "Floors Above Grade": {"ignore_malformed": true, "type": "float"}, "Contact Name": {"type": "string"}, "Enclosed Mall - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Cooling Delivery Type": {"type": "string"}, "Dishwasher Year of Manufacture": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Percent of Total Electricity Generated from Onsite Renewable Systems": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Site EUI - Adjusted to Current Year (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Design Manufacturing/Industrial Plant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Commercial Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 1.4 Integrated -Occupant Feedback": {"type": "string"}, "Property Use Detail Alerts": {"type": "string"}, "Vertical Abutments": {"type": "string"}, "Premises Street Address 2": {"type": "string"}, "Evaporatively Cooled Condenser": {"type": "string"}, "Other - Stadium - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Premises Name": {"type": "string"}, "Foundation Wall Below Grade Depth": {"ignore_malformed": true, "type": "float"}, "Glass Type": {"type": "string"}, "Certification Version": {"type": "string"}, "Foundation Wall Insulation Continuity": {"type": "string"}, "Date Property Last Modified": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Bar/Nightclub - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Casino - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other - Technology/Science - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Specular Reflectors": {"type": "string"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Stadium (Open) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Third Party Certification Date Achieved": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Other - Technology/Science - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Mailing Center/Post Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Casino - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Federal Agency/Department": {"type": "string"}, "Audit Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Aquarium - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Medical Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Owner City": {"type": "string"}, "Quantity of Processed Laundry": {"ignore_malformed": true, "type": "float"}, "NYC Borough, Block and Lot (BBL)": {"type": "string"}, "Premises Occupancy Classification": {"type": "string"}, "Other - Public Services - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.3 Energy - Onsite Renewable": {"type": "string"}, "Residence Hall/Dormitory - Room Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Interior Shading Type": {"type": "string"}, "Lifestyle Center - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "National Median Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Floor Framing Factor": {"ignore_malformed": true, "type": "float"}, "Cooling Efficiency Units": {"type": "string"}, "Fuel Oil #4 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Evaporatively Cooled Condenser Maximum Temperature": {"ignore_malformed": true, "type": "float"}, "Sequencing": {"type": "string"}, "Hotel- Hours per day guests on-site": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Minimum Part Load Ratio": {"ignore_malformed": true, "type": "float"}, "Generation Capacity": {"ignore_malformed": true, "type": "float"}, "Water Fixture Fraction Hot Water": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Other - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Primary Service Hot Water Type": {"type": "string"}, "Source Energy Use Intensity": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Number of Bedrooms": {"ignore_malformed": true, "type": "float"}, "Shared Resource System": {"type": "string"}, "Worship Facility - Cooking Facilities": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.3 Indoor Environment - Automated Lighting Controls": {"type": "string"}, "K-12 School - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Medical Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Water Use (All Water Sources) (kgal)": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Regional Average EUI": {"type": "string"}, "Other - Education - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Dishwasher Quantity": {"ignore_malformed": true, "type": "float"}, "Design Electricity Use - Grid Purchase and Onsite Renewable Energy (kBtu)": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Pre-school/Daycare - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Motor Application": {"type": "string"}, "Premises County": {"type": "string"}, "Fire Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel- Number of Rooms": {"ignore_malformed": true, "type": "float"}, "Longitude": {"ignore_malformed": true, "type": "float"}, "Office - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Federal Property": {"type": "string"}, "Manufacturing/Industrial Plant - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Medical Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Outside Lighting Type": {"type": "string"}, "Pre-school/Daycare - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 1.3 Integrated - Plan": {"type": "string"}, "Medical Office - Surgery Center Size (ft2)": {"ignore_malformed": true, "type": "float"}, "Diesel Cost ($)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Living Unit Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Complete Resource": {"type": "string"}, "Contact Type": {"type": "string"}, "Fuel Oil #1 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Roof Insulation Material": {"type": "string"}, "Other - Technology/Science - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Hot Water Reset Control": {"type": "string"}, "College/University - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Loop Type": {"type": "string"}, "Window Layout": {"type": "string"}, "Other - Specialty Hospital - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Most Recent Sale Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Social/Meeting Hall - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Residence Hall/Dormitory - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Daylighting Control Steps": {"type": "string"}, "Ice/Curling Rink - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site Natural Gas Intensity (therms/ft2)": {"ignore_malformed": true, "type": "float"}, "Door Operation": {"type": "string"}, "Fitness Center/Health Club/Gym - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Adult Education - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other Water Sources: Combined Indoor/Outdoor or Other Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Central Refrigeration System": {"type": "string"}, "Design Convenience Store with Gas Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Building Operator Type": {"type": "string"}, "Bank Branch - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Water Cost": {"ignore_malformed": true, "type": "float"}, "Pipe Location": {"type": "string"}, "Pump Control Type": {"type": "string"}, "Design Barracks - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Day Start Hour": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 5.5 Materials - Ozone Depleting Compounds": {"type": "string"}, "Skylight Layout": {"type": "string"}, "Design Fuel Oil #1 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Fitness Center/Health Club/Gym - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Cost Effectiveness Screening Method": {"type": "string"}, "Metered Areas (Energy)": {"type": "string"}, "Restaurant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Cooling Refrigerant": {"type": "string"}, "Certification Value": {"type": "string"}, "Financial Office - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Design Other - Stadium - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Pool Volume": {"ignore_malformed": true, "type": "float"}, "Floor Area Type": {"type": "string"}, "Hotel - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Roller Rink - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Static Pressure": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Outdoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Food Sales - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Part Load Ratio Below Which Hot Gas Bypass Operates": {"ignore_malformed": true, "type": "float"}, "Equipment Disposal and Salvage Costs": {"ignore_malformed": true, "type": "float"}, "Minimum Power Factor Without Penalty": {"ignore_malformed": true, "type": "float"}, "Wall Exterior Solar Absorptance": {"ignore_malformed": true, "type": "float"}, "HPWH Minimum Air Temperature": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Indoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Percent Better than National Median Water/Wastewater Site EUI": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Number of Laundry Hookups in All Units": {"ignore_malformed": true, "type": "float"}, "Scenario Qualifier": {"type": "string"}, "Skylight Glazing": {"type": "string"}, "Audit Team Member Certification Type": {"type": "string"}, "Space Number of FTE Workers": {"ignore_malformed": true, "type": "float"}, "Convenience Store with Gas Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Courthouse - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Lamp Length": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Fuel Oil (No. 5 and No. 6) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Azimuth": {"ignore_malformed": true, "type": "float"}, "Auditor Qualification": {"type": "string"}, "Swimming Pool - Approximate Pool Size": {"ignore_malformed": true, "type": "float"}, "Number of Buildings": {"ignore_malformed": true, "type": "float"}, "Wall Insulation Condition": {"type": "string"}, "Fan Type": {"type": "string"}, "Design Other - Specialty Hospital - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Residential Electronic Lift Systems": {"ignore_malformed": true, "type": "float"}, "Design Target Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "SHW Efficiency": {"ignore_malformed": true, "type": "float"}, "Typical Wall R-Value": {"ignore_malformed": true, "type": "float"}, "Conveyance Peak Time": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Other - Stadium - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Design Senior Care Community - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Data Center - PDU Output Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "Space Name": {"type": "string"}, "Premises Year Completed": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Weather Normalized Site Electricity Intensity (kWh/ft2)": {"ignore_malformed": true, "type": "float"}, "End Use": {"type": "string"}, "Compressor Staging": {"type": "string"}, "Senior Care Community - Commercial Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Motor Pole Count": {"ignore_malformed": true, "type": "float"}, "Number of Luminaires": {"ignore_malformed": true, "type": "float"}, "Schedule Day": {"ignore_malformed": true, "type": "float"}, "Room Density": {"ignore_malformed": true, "type": "float"}, "Adult Education - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Vocational School - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Reference For Rate Structure": {"type": "string"}, "Recirculation Flow Rate": {"ignore_malformed": true, "type": "float"}, "Indoor Water Intensity (All Water Sources) (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Floor Framing Material": {"type": "string"}, "Distribution Center - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Water Use Type": {"type": "string"}, "Space Floors Above Grade": {"ignore_malformed": true, "type": "float"}, "Natural Gas Cost ($)": {"ignore_malformed": true, "type": "float"}, "Design Convenience Store without Gas Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Type of Laundry Facility": {"type": "string"}, "Manufacturing/Industrial Plant - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Storage Volume": {"ignore_malformed": true, "type": "float"}, "Measure Life": {"ignore_malformed": true, "type": "float"}, "Parasitic Fuel Consumption Rate": {"ignore_malformed": true, "type": "float"}, "Propane Cost ($)": {"ignore_malformed": true, "type": "float"}, "Net Refrigeration Capacity": {"ignore_malformed": true, "type": "float"}, "Owner Name": {"type": "string"}, "Capacity Unit": {"type": "string"}, "Other - Public Services - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Percent Better than National Median Source EUI": {"ignore_malformed": true, "type": "float"}, "Humidity Control Minimum": {"ignore_malformed": true, "type": "float"}, "Maximum Outside Air Flow Rate": {"ignore_malformed": true, "type": "float"}, "Pump Power Demand": {"ignore_malformed": true, "type": "float"}, "Deck Type": {"type": "string"}, "Target Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Cooking Capacity Unit": {"type": "string"}, "Other - Public Services - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Primary Cooling Type": {"type": "string"}, "Financial Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Electronic Lift Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Site Energy Use Intensity": {"ignore_malformed": true, "type": "float"}, "Site EUI - Adjusted to Current Year (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "K-12 School - Months in Use": {"ignore_malformed": true, "type": "float"}, "Floor Insulation Condition": {"type": "string"}, "Electricity": {"type": "string"}, "Municipally Supplied Reclaimed Water - Outdoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Vocational School - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Indoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Auditor Qualification State": {"type": "string"}, "Wholesale Club/Supercenter- Number of Open or Closed Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "PV System Racking System Tilt Angle Min": {"ignore_malformed": true, "type": "float"}, "Off-Cycle Heat Loss Coefficient": {"ignore_malformed": true, "type": "float"}, "Fast Food Restaurant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Data Center - PDU Input Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "Dishwasher Hot Water Use": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Pump Efficiency": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Floors Below Grade": {"ignore_malformed": true, "type": "float"}, "Transportation Terminal/Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Fuel Oil #5 & 6 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Other - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.1 Indoor Water - Option 1": {"type": "string"}, "Guiding Principle 3.1 Indoor Water - Option 2": {"type": "string"}, "Electricity Price Escalation Rate": {"type": "string"}, "Retail Store - Number of Cash Registers": {"ignore_malformed": true, "type": "float"}, "Laboratory - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Ice Events": {"ignore_malformed": true, "type": "float"}, "Dryer Secondary Energy Use Per Load": {"ignore_malformed": true, "type": "float"}, "Investment in Energy Projects, Cumulative ($)": {"ignore_malformed": true, "type": "float"}, "Conveyance Peak Power": {"ignore_malformed": true, "type": "float"}, "Design Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Suction Vapor Temperature": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Residential Living Units": {"ignore_malformed": true, "type": "float"}, "Electrical Plug Load Intensity": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Hotel - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Outdoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Air Distribution Configuration": {"type": "string"}, "Electricity Use - Generated from Onsite Renewable Systems and Used Onsite (kWh)": {"ignore_malformed": true, "type": "float"}, "Skylight Window Treatments": {"type": "string"}, "Biomass GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Race Track - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Clothes Washer Loader Type": {"type": "string"}, "Design Supermarket/Grocery Store - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design District Chilled Water Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Commercial Washing Machine Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Parking - Open Parking Lot Size (ft2)": {"ignore_malformed": true, "type": "float"}, "Direct GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Race Track - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Chiller Compressor Type": {"type": "string"}, "Fast Food Restaurant - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Energy Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Courthouse - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Cooling Equipment Maintenance Frequency": {"type": "string"}, "Medical Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Boiler Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Open or Closed Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Number of MRI Machines": {"ignore_malformed": true, "type": "float"}, "Property Data Administrator - Email": {"type": "string"}, "Coefficient of Performance": {"ignore_malformed": true, "type": "float"}, "Estimated Savings from Energy Projects, Cumulative ($)": {"ignore_malformed": true, "type": "float"}, "Other - Utility - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Social/Meeting Hall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "District Steam Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Design Source EUI": {"ignore_malformed": true, "type": "float"}, "Design Fuel Oil #2 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Measure End Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Other - Entertainment/Public Assembly - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Office - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Wholesale Club/Supercenter - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Resource Units": {"type": "string"}, "Typical Skylight Frame Type": {"type": "string"}, "Stadium (Open) - Ice Events": {"ignore_malformed": true, "type": "float"}, "Diesel #2 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Measure Description": {"type": "string"}, "Roof Insulation Continuity": {"type": "string"}, "Water Intensity": {"ignore_malformed": true, "type": "float"}, "Net Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Heat Pump Water Heater Refrigerant Designation": {"type": "string"}, "AC Adjusted": {"type": "string"}, "Medical Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Skylight Pitch": {"ignore_malformed": true, "type": "float"}, "Natural Gas": {"type": "string"}, "Supply Air Temperature Setpoint": {"ignore_malformed": true, "type": "float"}, "Publicly Subsidized": {"type": "string"}, "Kerosene Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Burner Turndown Ratio": {"ignore_malformed": true, "type": "float"}, "Skylights Visible Transmittance": {"ignore_malformed": true, "type": "float"}, "Ice/Curling Rink - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Target Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Exterior Roughness": {"type": "string"}, "Rate Structure Sector": {"type": "string"}, "Chilled Water Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Exterior Wall Color": {"type": "string"}, "Emissions Factor": {"ignore_malformed": true, "type": "float"}, "Storage Tank Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Static Pressure - Installed": {"ignore_malformed": true, "type": "float"}, "Fixed Monthly Charge": {"ignore_malformed": true, "type": "float"}, "Lighting Efficacy": {"ignore_malformed": true, "type": "float"}, "Parking - Partially Enclosed Parking Garage Size (ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Average Number of Residents": {"ignore_malformed": true, "type": "float"}, "Exterior Wall Type": {"type": "string"}, "Guiding Principle 1.2 Integrated - Goals": {"type": "string"}, "Water/Wastewater Biomass GHG Emissions Intensity (kgCO2e/gpd)": {"ignore_malformed": true, "type": "float"}, "Premises Notes": {"type": "string"}, "Drinking Water Treatment & Distribution - Average Flow (MGD)": {"ignore_malformed": true, "type": "float"}, "Prison/Incarceration - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "SHW Year installed": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Measure Notes": {"type": "string"}, "SHW is FEMP Designated Product": {"type": "string"}, "Data Center - UPS System Redundancy": {"type": "string"}, "Lamp Subtype": {"type": "string"}, "Owner State": {"type": "string"}, "Number of Lamps per Ballast": {"ignore_malformed": true, "type": "float"}, "Portfolio Manager Property ID": {"type": "string"}, "Makeup Air Source": {"type": "string"}, "PVc System Racking System Tilt Angle Max": {"ignore_malformed": true, "type": "float"}, "Zoo - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Services - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Vertical Fin Depth": {"ignore_malformed": true, "type": "float"}, "Transformer Nameplate Efficiency": {"ignore_malformed": true, "type": "float"}, "US Federal Real Property Unique Identifier": {"type": "string"}, "Guiding Principle 4.4 Daylighting and Occupant Controls - Option 2": {"type": "string"}, "Guiding Principle 4.4 Daylighting and Occupant Controls - Option 1": {"type": "string"}, "Scenario Name": {"type": "string"}, "Measure Start Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Indoor Arena - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Lighting Control Type Daylighting": {"type": "string"}, "Electricity Use - Grid Purchase (kBtu)": {"ignore_malformed": true, "type": "float"}, "Library - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "County": {"type": "string"}, "Process Load Heat Gain Fraction": {"ignore_malformed": true, "type": "float"}, "Design Electricity Use - Generated from Onsite Renewable Systems and Used Onsite (kBtu)": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Motor Efficiency": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Number of Laundry Hookups in Common Area(s)": {"ignore_malformed": true, "type": "float"}, "Hotel - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Residence Hall/Dormitory - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Site Energy Use": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Number of Sporting Events per Year": {"ignore_malformed": true, "type": "float"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "NYC Building Identification Number (BIN)": {"type": "string"}, "Installation Type": {"type": "string"}, "Courthouse - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Target % Better Than Median Source EUI": {"ignore_malformed": true, "type": "float"}, "Library - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Cell Count": {"ignore_malformed": true, "type": "float"}, "Aquarium - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Heating Equipment Maintenance Frequency": {"type": "string"}, "Condenser Water Temperature": {"ignore_malformed": true, "type": "float"}, "Refrigerated Warehouse - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Refrigeration Unit is Third Party Certified": {"type": "string"}, "Heat Pump Backup system fuel": {"type": "string"}, "Motor Drive Efficiency": {"ignore_malformed": true, "type": "float"}, "Cooling Efficiency Value": {"ignore_malformed": true, "type": "float"}, "Electricity Use - Grid Purchase (kWh)": {"ignore_malformed": true, "type": "float"}, "Auditor Qualification Number": {"type": "string"}, "Coal (anthracite) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Roller Rink - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Recover Efficiency": {"ignore_malformed": true, "type": "float"}, "Outdoor Water Use (All Water Sources) (kgal)": {"ignore_malformed": true, "type": "float"}, "Terrace R-Value": {"ignore_malformed": true, "type": "float"}, "Typical Skylight Frames R-Value": {"ignore_malformed": true, "type": "float"}, "Off-Peak Occupancy Percentage": {"ignore_malformed": true, "type": "float"}, "Operable Windows": {"type": "string"}, "Site Energy Use - Adjusted to Current Year (kBtu)": {"ignore_malformed": true, "type": "float"}, "Motor Brake HP": {"ignore_malformed": true, "type": "float"}, "Motor Location Relative to Air Stream": {"type": "string"}, "Hospital (General Medical & Surgical) - Staffed Bed Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Enclosed Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Software program version": {"type": "string"}, "Economizer Dry Bulb Control Point": {"ignore_malformed": true, "type": "float"}, "Design Non-Refrigerated Warehouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Parking - Supplemental Heating": {"type": "string"}, "Skylight Type": {"type": "string"}, "Rated Heat Pump Sensible Heat Ratio": {"ignore_malformed": true, "type": "float"}, "Daily Water Use": {"ignore_malformed": true, "type": "float"}, "Financial Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Premises State": {"type": "string"}, "Alternative Water Generated On-Site: Combined Indoor/Outdoor or Other Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Draft Type": {"type": "string"}, "Minimum Dimming Light Fraction": {"ignore_malformed": true, "type": "float"}, "Cooled Floor Area": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Number of Concert/Show Events per Year": {"ignore_malformed": true, "type": "float"}, "Ventilation Rate": {"ignore_malformed": true, "type": "float"}, "Refrigerated Case Doors": {"type": "string"}, "Guiding Principles - % Not Applicable": {"type": "string"}, "Name of Retro-commissioning Certification Holder": {"type": "string"}, "Metal Halide Start Type": {"type": "string"}, "Measure First Cost": {"ignore_malformed": true, "type": "float"}, "Library - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Perimeter": {"ignore_malformed": true, "type": "float"}, "Condenser Type": {"type": "string"}, "Adult Education - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Luminaire Height": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Cash Register Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design K-12 School - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Percent Better than National Median Site EUI": {"ignore_malformed": true, "type": "float"}, "Financial Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Zoo - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Direct GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Water Use": {"ignore_malformed": true, "type": "float"}, "Dehumidification Type": {"type": "string"}, "Prison/Incarceration - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.2 Energy - Efficient Products": {"type": "string"}, "Output Capacity": {"ignore_malformed": true, "type": "float"}, "Cooking Equipment is Third Party Certified": {"type": "string"}, "Guiding Principles - % Not Assessed": {"type": "string"}, "Urgent Care/Clinic/Other Outpatient - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.1 Energy - Energy Efficiency Any Option (Any Option)": {"type": "string"}, "Alternative Water Generated On-Site - Indoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Utility Account Number": {"type": "string"}, "Skylight to Roof Ratio": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Water/Wastewater Site Electricity Intensity (kWh/gpd)": {"ignore_malformed": true, "type": "float"}, "Weather Year": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Convention Center - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Winter Peak Electricity Reduction": {"ignore_malformed": true, "type": "float"}, "Target Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Number of Meals": {"ignore_malformed": true, "type": "float"}, "Indirect GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Design Ambulatory Surgical Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Number of Worker on Main Shift": {"ignore_malformed": true, "type": "float"}, "Humidification Type": {"type": "string"}, "Casino - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site Electricity (kWh)": {"ignore_malformed": true, "type": "float"}, "Design Natural Gas Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Restaurant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Source EUI - Adjusted to Current Year (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.2 Indoor Environment - Moisture Control": {"type": "string"}, "Design Energy/Power Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Indirect GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Dishwasher Energy Factor": {"ignore_malformed": true, "type": "float"}, "Coal - Anthracite Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Other - Education - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Supply Fraction of Duct Leakage": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Station Category": {"type": "string"}, "Foundation Wall Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Space Number Main Shift Workers": {"ignore_malformed": true, "type": "float"}, "Data Center - IT Equipment Input Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "On-site Renewable Electricity": {"ignore_malformed": true, "type": "float"}, "Date of Last PM Modification": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Municipally Supplied Potable Water: Combined Indoor/Outdoor or Other Cost ($)": {"ignore_malformed": true, "type": "float"}, "Slab Insulation Condition": {"type": "string"}, "Police Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Number of Discrete Fan Speeds - Heating": {"ignore_malformed": true, "type": "float"}, "Number of Ballasts per Luminaire": {"ignore_malformed": true, "type": "float"}, "Outside Air Temperature Upper Limit Cooling Reset Control": {"ignore_malformed": true, "type": "float"}, "Installed Fan Flow Rate": {"ignore_malformed": true, "type": "float"}, "Fluorescent Start Type": {"type": "string"}, "Chilled Water Reset Control": {"type": "string"}, "Anti-Sweat Heater Power": {"ignore_malformed": true, "type": "float"}, "Federal Region/Sub-Department": {"type": "string"}, "Outpatient Rehabilitation/Physical Therapy - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design District Hot Water Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Boiler Type": {"type": "string"}, "Bar/Nightclub - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Point Of Use": {"type": "string"}, "Summer Peak Electricity Reduction": {"ignore_malformed": true, "type": "float"}, "Slab Perimeter": {"ignore_malformed": true, "type": "float"}, "Pre-school/Daycare - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Lighting Control Type Timer": {"type": "string"}, "Other HVAC Type": {"type": "string"}, "Guiding Principle 4.1 Indoor Environment - Ventilation and Thermal Comfort": {"type": "string"}, "Demand Reduction": {"ignore_malformed": true, "type": "float"}, "Green Power - Offsite (kWh)": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Cooling Type": {"type": "string"}, "Food Service - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Mailing Center/Post Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Design Drinking Water Treatment & Distribution - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Steam Boiler Maximum Operating Pressure": {"ignore_malformed": true, "type": "float"}, "Investment in Energy Projects, Cumulative ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Special/Other Events per Year": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Potable Water - Indoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Occupant Activity Level": {"type": "string"}, "Worship Facility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Other - Education - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Reclaimed Water - Indoor Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Manufacturing/Industrial Plant - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Target Total GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Setpoint temperature cooling": {"ignore_malformed": true, "type": "float"}, "Ice/Curling Rink - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Power Minimum Ratio": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Ice Events": {"ignore_malformed": true, "type": "float"}, "Weather Type": {"type": "string"}, "PM Profile Status": {"type": "string"}, "Other - Lodging/Residential - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Annual Combined Whole Building Annual Weather Normalized Site Resource Use": {"ignore_malformed": true, "type": "float"}, "Design Diesel #2 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Target Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Motor HP": {"ignore_malformed": true, "type": "float"}, "Convenience Store without Gas Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Police Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Chiller Compressor Driver": {"type": "string"}, "Multifamily Housing - Resident Population Type": {"type": "string"}, "Strip Mall - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Ventilation Type": {"type": "string"}, "Courthouse - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Refrigerated Warehouse - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Supply Air Control Strategy": {"type": "string"}, "Software program used": {"type": "string"}, "Duct Type": {"type": "string"}, "Cooling Supply Air Temperature": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Duct Leakage Test Method": {"type": "string"}, "Ventilation Zone Control": {"type": "string"}, "Funding from Tax Credits": {"type": "string"}, "Vocational School - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Absorption Heat Source": {"type": "string"}, "Transportation Terminal/Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Slab Insulation Orientation": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Outdoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Adult Education - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Target ENERGY STAR Score": {"ignore_malformed": true, "type": "float"}, "Design Vocational School - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Potable Water: Combined Indoor/Outdoor or Other Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Outside Air Reset Minimum Cooling Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Normalization Years": {"type": "string"}, "Tank Heating Type": {"type": "string"}, "Electricity Use - Generated from Onsite Renewable Systems and Exported (kWh)": {"ignore_malformed": true, "type": "float"}, "Primary Contact": {"type": "string"}, "Average Daily Hours": {"ignore_malformed": true, "type": "float"}, "Courthouse - Number of Computers": {"ignore_malformed": true, "type": "float"}, "eGRID Output Emissions Rate (kgCO2e/MBtu)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Enclosed Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Number of Concert/Show Events per Year": {"ignore_malformed": true, "type": "float"}, "Design Financial Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Heat Pump Backup AFUE": {"ignore_malformed": true, "type": "float"}, "Target Finder EUI": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Certification - Year(s) Certified": {"type": "string"}, "Coke Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Adult Education - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "NAICS Code": {"type": "string"}, "Self-Storage Facility - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "ENERGY Star Score": {"ignore_malformed": true, "type": "float"}, "Process Load Duty Cycle": {"type": "string"}, "Alternative Water Generated On-Site: Combined Indoor/Outdoor or Other Cost ($)": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Number of Discrete Fan Speeds - Cooling": {"ignore_malformed": true, "type": "float"}, "Vocational School - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Museum - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Convenience Store without Gas Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fuel Oil #5 & 6 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Receive Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Automobile Dealership - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Fenestration Area": {"ignore_malformed": true, "type": "float"}, "Aquarium - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "NPV of Tax Implications": {"ignore_malformed": true, "type": "float"}, "Casino - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Window to Wall Ratio": {"ignore_malformed": true, "type": "float"}, "Internal Rate of Return": {"ignore_malformed": true, "type": "float"}, "Residence Hall/ Dormitory - Computer Lab": {"type": "string"}, "Defrost Type": {"type": "string"}, "Supermarket/Grocery - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Design Greenhouse Gas Emissions": {"ignore_malformed": true, "type": "float"}, "Energy Cost Intensity ($)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.4 Energy - Measurement and Verification": {"type": "string"}, "Ambulatory Surgical Center - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Building Certification": {"type": "string"}, "Door Visible Transmittance": {"ignore_malformed": true, "type": "float"}, "Convenience Store without Gas Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Data Station ID": {"type": "string"}, "Plug Load Peak Power": {"ignore_malformed": true, "type": "float"}, "Type of Measure": {"type": "string"}, "Active Dehumidification": {"type": "string"}, "Design ENERGY STAR Score": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Exterior Entrance to the Public": {"ignore_malformed": true, "type": "float"}, "College/University - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Kerosene Cost ($)": {"ignore_malformed": true, "type": "float"}, "Design Zoo - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Liquid Propane Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Window Orientation": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "National Median Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "Dryer Primary Energy Use Per Load": {"ignore_malformed": true, "type": "float"}, "Library - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Indoor Intensity (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Design Static Pressure": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Type": {"type": "string"}, "Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Net Metering": {"type": "string"}, "Demand Window": {"type": "string"}, "Recirculation Loop Count": {"ignore_malformed": true, "type": "float"}, "Lot Size": {"ignore_malformed": true, "type": "float"}, "K-12 School - Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Compressor Unloader": {"type": "string"}, "Design Multifamily Housing - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Annual Fuel Use Native Units (Native Units)": {"type": "string"}, "Municipally Supplied Potable Water - Indoor Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Convenience Store with Gas Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Clothes Washer Modified Energy Factor": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Number of Commercial Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Number of Refrigerant Return Lines": {"ignore_malformed": true, "type": "float"}, "National Median Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Property Data Administrator": {"type": "string"}, "Natural Ventilation Method": {"type": "string"}, "Outpatient Rehabilitation/Physical Therapy - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Student Seating Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Percent of Roof Terraces": {"ignore_malformed": true, "type": "float"}, "Cooling Control Strategy": {"type": "string"}, "Rate Structure Effective Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Overhang Height above Window": {"ignore_malformed": true, "type": "float"}, "Typical Skylights SHGC": {"ignore_malformed": true, "type": "float"}, "MV Cost": {"ignore_malformed": true, "type": "float"}, "Transportation Terminal/Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Race Track - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Target % Better Than Median Source EUI": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.2 Water - Outdoor Water Any Option (Any Option)": {"type": "string"}, "Other - Utility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Indoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "PV Module Width": {"ignore_malformed": true, "type": "float"}, "District Hot Water Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "PM Sharing Account": {"type": "string"}, "Hospital (General Medical & Surgical) - Owned By": {"type": "string"}, "Evaporative Cooling Entering Supply Air WB Temperature": {"ignore_malformed": true, "type": "float"}, "Roof Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "National Median Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Percent Savings in Lighting Power Density": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Type of Rate Structure": {"type": "string"}, "Typical Window Frame R-Value": {"ignore_malformed": true, "type": "float"}, "Evaporative Cooling Operation": {"type": "string"}, "Liquid Propane Cost ($)": {"ignore_malformed": true, "type": "float"}, "Other - Specialty Hospital - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Self-Storage Facility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Outpatient Rehabilitation/Physical Therapy - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Number of Cash Registers": {"ignore_malformed": true, "type": "float"}, "Heating Type": {"type": "string"}, "Annual Heating Efficiency Value": {"ignore_malformed": true, "type": "float"}, "Percentage of Common Space": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Primary Hot Water Fuel Type for units (for units)": {"type": "string"}, "Duct Pressure Test Leakage Percentage (Percentage)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Financial Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Contact Address 1": {"type": "string"}, "Contact Address 2": {"type": "string"}, "Senior Care Community - Number of Commercial Refrigeration/ Freezer Units": {"ignore_malformed": true, "type": "float"}, "Design Swimming Pool - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water Alerts": {"type": "string"}, "Annual Efficiency Unit": {"type": "string"}, "Barracks - Dining Hall": {"type": "string"}, "Zoo - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Full Service Spa Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Electric Distribution Utility": {"type": "string"}, "Design Total GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Prison/Incarceration - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Window Height": {"ignore_malformed": true, "type": "float"}, "Guiding Principles - Checklist Manager": {"type": "string"}, "Measure Capital Replacement Costs": {"ignore_malformed": true, "type": "float"}, "Rate Structure End Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Thermal Efficiency": {"ignore_malformed": true, "type": "float"}, "Replaced/modified/removed system identifier": {"type": "string"}, "Schedule Type": {"ignore_malformed": true, "type": "float"}, "District Chilled Water": {"type": "string"}, "Minimum Outside Air Percentage": {"ignore_malformed": true, "type": "float"}, "Lifestyle Center - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Exterior Wall Type": {"type": "string"}, "Design Other - Lodging/Residential - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Laundry Type": {"type": "string"}, "Design Refrigerated Warehouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Compressor Unloader Stages": {"type": "string"}, "Design Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Wall Insulation Continuity": {"type": "string"}, "Financial Office - Number of Computers": {"ignore_malformed": true, "type": "float"}, "GHG Emissions": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Open or Closed Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Property Management Company": {"type": "string"}, "Municipally Supplied Reclaimed Water: Combined Indoor/Outdoor or Other Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Design Prison/Incarceration - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Flow Control Type": {"type": "string"}, "K-12 School - Gymnasium Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Heat Pump Backup Heating Switchover Temperature": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Year Of Latest Retrofit": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Fenestration R-value": {"ignore_malformed": true, "type": "float"}, "Return Duct Percent Conditioned Space": {"ignore_malformed": true, "type": "float"}, "Minimum Fan Speed as a Fraction of Maximum - Cooling": {"ignore_malformed": true, "type": "float"}, "Barracks - Computer Lab": {"type": "string"}, "Fuel Oil (No. 2) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Average Effluent Biological Oxygen Demand (BOD5) (mg/l)": {"ignore_malformed": true, "type": "float"}, "Ground Coupling": {"type": "string"}, "Diesel": {"type": "string"}, "Other - Education - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Other - Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Demand Ratchet Percentage": {"ignore_malformed": true, "type": "float"}, "Premises Gross Floor Area": {"ignore_malformed": true, "type": "float"}, "Scope": {"type": "string"}, "Design District Steam Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Education - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water Current Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "normalized_address": {"index": "not_analyzed", "type": "string", "store": true}, "Design Temperature Difference": {"ignore_malformed": true, "type": "float"}, "Number of Months in Operation": {"ignore_malformed": true, "type": "float"}, "Barracks- Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Fast Food Restaurant - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Adult Education - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Station ID": {"type": "string"}, "Hospital (General Medical & Surgical) - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Pump Application": {"type": "string"}, "Design Bank Branch - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Enclosed Mall - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Room Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "IT System Type": {"type": "string"}, "Desuperheat Valve": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 1.1 Integrated - Team": {"type": "string"}, "Wall Area": {"ignore_malformed": true, "type": "float"}, "Certification Year": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Roller Rink - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Third Party Certification Date Anticipated": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Target Finder Baseline": {"ignore_malformed": true, "type": "float"}, "Total Water Cost (All Water Sources) ($)": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Water-Side Economizer Temperature Maximum": {"ignore_malformed": true, "type": "float"}, "Home Energy Score": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Application Status": {"type": "string"}, "Estimated Savings from Energy Projects, Cumulative ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Specialty Hospital - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Swimming Pool - Months in Use": {"ignore_malformed": true, "type": "float"}, "Skylight Solar tube": {"type": "string"}, "Avoided Emissions - Offsite Green Power (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Police Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Space Peak Number of Occupants": {"ignore_malformed": true, "type": "float"}, "Outpatient Rehabilitation/Physical Therapy - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Heating Setback Temperature": {"ignore_malformed": true, "type": "float"}, "Design Repair Services (Vehicle, Shoe, Locksmith, etc) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Courthouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Capacity": {"ignore_malformed": true, "type": "float"}, "Pump Maximum Flow Rate": {"ignore_malformed": true, "type": "float"}, "Design Museum - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Sporting Events per Year": {"ignore_malformed": true, "type": "float"}, "Economizer Control": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Investment in Energy Projects, Cumulative ($/GPD)": {"ignore_malformed": true, "type": "float"}, "Design Other - Recreation - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Anti-Sweat Heaters": {"type": "string"}, "Coal (bituminous) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Window Frame Type": {"type": "string"}, "Other - Education - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Measure Implementation Status": {"type": "string"}, "Single Family Home - Bedroom Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Certification Expiration Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Mailing Center/Post Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Roof Color": {"type": "string"}, "Windows Gas Filled": {"type": "string"}, "Design Kerosene Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "SHW Control Type": {"type": "string"}, "Other Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Annual Savings Cost (Cost)": {"ignore_malformed": true, "type": "float"}, "PV System Location": {"type": "string"}, "Municipally Supplied Potable Water - Indoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Reclaimed Water - Indoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Latitude": {"type": "string"}, "Design College/University - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Vocational School - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Average Weekly Business Hours": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Lifestyle Center - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Reheat Control Strategy": {"type": "string"}, "Urgent Care/Clinic/Other Outpatient - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Schedule Begin Month": {"ignore_malformed": true, "type": "float"}, "Other - Services - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Country": {"type": "string"}, "Primary Service Hot Water Fuel": {"type": "string"}, "Plug Load Type": {"type": "string"}, "Number of Occupants": {"ignore_malformed": true, "type": "float"}, "Vocational School - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Data Center - UPS Output Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "Green Power - Onsite and Offsite (kWh)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 5.3 Materials - Environmentally Preferred Products": {"type": "string"}, "Clothes Washer Capacity": {"ignore_malformed": true, "type": "float"}, "Motor Enclosure Type": {"type": "string"}, "PM Administrator": {"type": "string"}, "Data Center - Cooling Equipment Redundancy": {"type": "string"}, "Annual Combined Whole Builidng Annual Source Energy Use Intensity (EUI)": {"ignore_malformed": true, "type": "float"}, "Auditor Company": {"type": "string"}, "Restaurant - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Guiding Principles - Principles Date Anticipated": {"type": "string"}, "Urgent Care/Clinic/Other Outpatient - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Window Frame": {"type": "string"}, "Roller Rink - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Percent Better than National Median Water/Wastewater Source EUI": {"ignore_malformed": true, "type": "float"}, "Fast Food Restaurant - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "ASHRAE Baseline Lighting Power Density": {"ignore_malformed": true, "type": "float"}, "First Cost": {"ignore_malformed": true, "type": "float"}, "Casino - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Laundry Equipment Usage": {"type": "string"}, "Retail Store - Cash Register Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.4 Water - Efficient Products": {"type": "string"}, "Source EUI - Adjusted to Current Year (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Barracks- Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Source Site Ratio": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Certification - Next Eligible Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Coal - Bituminous Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Water Cooled Condenser Flow Control": {"type": "string"}, "Design Pre-school/Daycare - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.4 Indoor Environment - Daylighting and Occupant Controls Any Option (Any Option)": {"type": "string"}, "Property Floor Area (Buildings and Parking) (ft2)": {"ignore_malformed": true, "type": "float"}, "Control Technology": {"type": "string"}, "Marginal Cost Rate": {"ignore_malformed": true, "type": "float"}, "Contact Postal Code": {"type": "string"}, "Fuel Oil #2 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Percent Better Than Baseline Design Site Energy Use Intensity": {"ignore_malformed": true, "type": "float"}, "Typical Floor R-Value": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Wall Framing Factor": {"ignore_malformed": true, "type": "float"}, "Outpatient Rehabilitation/Physical Therapy - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "District Chilled Water Cost ($)": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Type": {"type": "string"}, "M&V Option": {"type": "string"}, "Primary Heating Fuel Type": {"type": "string"}, "Refrigerant Subcooler": {"type": "string"}, "District Hot Water": {"type": "string"}, "Pre-school/Daycare - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Fire Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Wall Framing Material": {"type": "string"}, "Race Track - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Boiler Entering Water Temperature": {"ignore_malformed": true, "type": "float"}, "Refrigeration Unit is ENERGY STAR Rated": {"type": "string"}, "Pool Surface Area": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Utility Billpayer": {"type": "string"}, "Guiding Principles - % Complete (Yes or Not Applicable)": {"type": "string"}, "District Steam Cost ($)": {"ignore_malformed": true, "type": "float"}, "Percent of Electricity that is Green Power": {"ignore_malformed": true, "type": "float"}, "US Agency Designated Covered Facility ID": {"type": "string"}, "Library - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Fuel Generated": {"type": "string"}, "Supermarket/Grocery - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Hospital (General Medical & Surgical) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Outside Air Reset Maximum Heating Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Floor Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Avoided Emissions - Onsite and Offsite Green Power (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Federal Agency": {"type": "string"}, "Tank Height": {"ignore_malformed": true, "type": "float"}, "Heated Floor Area": {"ignore_malformed": true, "type": "float"}, "Floor Area Source": {"type": "string"}, "Stadium (Open) - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Floor Construction Type": {"type": "string"}, "Energy Baseline Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Primary Property Type - EPA Calculated": {"type": "string"}, "Weather Normalized Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Maximum Number of Floors": {"ignore_malformed": true, "type": "float"}, "Museum - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Size of Electronic Scoreboards (ft2)": {"ignore_malformed": true, "type": "float"}, "Target Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Annual Savings Source Energy (Source Energy)": {"ignore_malformed": true, "type": "float"}, "Design Target Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Recirculation Control Type": {"type": "string"}, "Design Other - Restaurant/Bar - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Quantity": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.6 Indoor Environment - Integrated Pest Management": {"type": "string"}, "Hospital (General Medical & Surgical) - Laboratory": {"type": "string"}, "Resource Generated On Site": {"ignore_malformed": true, "type": "float"}, "Other - Utility - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Biomass GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Station Name": {"type": "string"}, "Guiding Principles - % In Process": {"type": "string"}, "Retail Store - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Refrigerant Charge Factor": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Area": {"ignore_malformed": true, "type": "float"}, "Aspect Ratio": {"ignore_malformed": true, "type": "float"}, "Other - Services - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Year of Last Energy Audit": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Indoor Arena - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Parking - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Percent of Window Area Shaded": {"ignore_malformed": true, "type": "float"}, "Daylight Sensors": {"type": "string"}, "Interior Visible Absorptance": {"ignore_malformed": true, "type": "float"}, "Crankcase Heater": {"type": "string"}, "Floor Covering": {"type": "string"}, "Simple Payback": {"ignore_malformed": true, "type": "float"}, "Metering Configuration": {"type": "string"}, "Refrigerated Warehouse - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Refrigeration Unit Size": {"ignore_malformed": true, "type": "float"}, "IT Energy Intensity": {"ignore_malformed": true, "type": "float"}, "Economizer": {"type": "string"}, "Wholesale Club/Supercenter- Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Auditor Team Member with Certification": {"type": "string"}, "K-12 School - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Site Address Line 2": {"type": "string"}, "Backup Generator": {"type": "string"}, "Roller Rink - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Site Address Line 1": {"type": "string"}, "Design Library - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "IT Standby Power": {"ignore_malformed": true, "type": "float"}, "Fire Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Premises Postal Code": {"type": "string"}, "Conveyance System Type": {"type": "string"}, "Race Track - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Roof Type": {"type": "string"}, "Convenience Store with Gas Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Target Total GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Cooking Facilities": {"type": "string"}, "K-12 School - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Single Store": {"type": "string"}, "Design Site EUI": {"ignore_malformed": true, "type": "float"}, "IT Peak Power": {"ignore_malformed": true, "type": "float"}, "Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "Recirculation Energy Loss Rate": {"ignore_malformed": true, "type": "float"}, "Lighting is FEMP Designated Product": {"type": "string"}, "Design Fire Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Distribution Type": {"type": "string"}, "Design Roller Rink - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Heat Gain Coefficient SHGC (SHGC)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Number of Residential Living Units": {"ignore_malformed": true, "type": "float"}, "Hotel - Amount of Laundry Processed On-site Annually (short tons/year)": {"ignore_malformed": true, "type": "float"}, "Doors Weather-Stripped": {"type": "string"}, "Restaurant - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Electricity Use - Generated from Onsite Renewable Systems and Used Onsite (kBtu)": {"ignore_malformed": true, "type": "float"}, "Electric Demand Rate": {"type": "string"}, "Food Service - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Specialty Hospital - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Heat Recovery Efficiency": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.1 Energy Efficiency - Option 3": {"type": "string"}, "Guiding Principle 2.1 Energy Efficiency - Option 2": {"type": "string"}, "Guiding Principle 2.1 Energy Efficiency - Option 1": {"type": "string"}, "Cooling Equipment Redundancy": {"type": "string"}, "Space Floors Below Grade": {"ignore_malformed": true, "type": "float"}, "Design Coal - Bituminous Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Split Condenser": {"type": "string"}, "Other Water Sources - Indoor Intensity (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Dishwasher Type": {"type": "string"}, "Movie Theater - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Light Shelf Exterior Protrusion": {"ignore_malformed": true, "type": "float"}, "Primary Air Distribution Type": {"type": "string"}, "Design Bowling Alley - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Day End Hour": {"ignore_malformed": true, "type": "float"}, "Boiler percent condensate return": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Hot Water Boiler Maximum Flow Rate": {"ignore_malformed": true, "type": "float"}, "Mailing Center/Post Office - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Horizontal Abutments": {"type": "string"}, "Space Use Description": {"type": "string"}, "K-12 School - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Indoor Arena - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "On-Site Generation Type": {"type": "string"}, "Design Single Family Home - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Minimum Dimming Power Fraction": {"ignore_malformed": true, "type": "float"}, "Target Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "National Average EUI": {"ignore_malformed": true, "type": "float"}, "Owner Street Address": {"type": "string"}, "Other - Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Air Duct Configuration": {"type": "string"}, "Mailing Center/Post Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Indirect GHG Emissions Intensity (kgCO2e/gpd)": {"ignore_malformed": true, "type": "float"}, "PV System Inverter Efficiency": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical)- Full Time Equivalent (FTE) Workers": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Food Service - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Year of Last Major Remodel": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Water Fixture Volume per Cycle": {"ignore_malformed": true, "type": "float"}, "Water Fixture Cycles per day": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Office - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Maximum Fan Power": {"ignore_malformed": true, "type": "float"}, "Typical Skylight Area": {"ignore_malformed": true, "type": "float"}, "Visible Transmittance": {"ignore_malformed": true, "type": "float"}, "Number of Cooling Stages": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Plant Design Flow Rate (MGD)": {"ignore_malformed": true, "type": "float"}, "Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Residual Value": {"type": "string"}, "Power Plant": {"type": "string"}, "Liquid Propane Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Window Glass Layers": {"ignore_malformed": true, "type": "float"}, "Design Other - Utility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Minimum Fan Flow Rate": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Number of Sporting Events per Year": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Size of Electronic Scoreboards (ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Efficiency": {"ignore_malformed": true, "type": "float"}, "Design Other - Public Services - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Average Influent Biological Oxygen Demand (BOD5) (mg/l)": {"ignore_malformed": true, "type": "float"}, "Enclosed Mall - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "SHW Setpoint Temp": {"ignore_malformed": true, "type": "float"}, "Duty Cycle": {"type": "string"}, "College/University - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Floors Partially Below Grade": {"ignore_malformed": true, "type": "float"}, "Retail Store - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Natural Gas Use (therms)": {"ignore_malformed": true, "type": "float"}, "Energy Storage Type": {"type": "string"}, "Food Sales - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Azimuth": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Manufacturing/Industrial Plant - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Occupancy Sensors": {"type": "string"}, "Case Return Line Diameter": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Design Aquarium - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Fixed Film Trickle Filtration Process": {"type": "string"}, "Design Courthouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Target Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Overhang Projection": {"type": "string"}, "National Median ENERGY STAR Score": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Barracks - Room Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Plug Load Equipment is ENERGY STAR Rated": {"type": "string"}, "Occupancy": {"type": "string"}, "Enclosed Mall - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Parent Property Name": {"type": "string"}, "Hotel- Number of Commercial Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Required Ventilation Rate": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 5.4 Materials - Waste and Materials Mgmt": {"type": "string"}, "Fast Food Restaurant - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.3 Water - Stormwater": {"type": "string"}, "Design Laboratory - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Premises Street Address 1": {"type": "string"}, "Other - Technology/Science - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Medical Office - Number of MRI Machines": {"ignore_malformed": true, "type": "float"}, "Heating Delivery Type": {"type": "string"}, "Other - Stadium - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Tertiary Care": {"type": "string"}, "Other - Public Services - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Wall R-Value": {"ignore_malformed": true, "type": "float"}, "Typical Window to Wall Ratio": {"ignore_malformed": true, "type": "float"}, "Refrigeration Energy": {"ignore_malformed": true, "type": "float"}, "Recommended Measure": {"type": "string"}, "K-12 School - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Wood Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Water Fixture Rated Flow Rate": {"ignore_malformed": true, "type": "float"}, "Number of Rooms": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Indoor Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Door Glazed Area Fraction": {"ignore_malformed": true, "type": "float"}, "Recirculation": {"type": "string"}, "Potable Water Savings": {"ignore_malformed": true, "type": "float"}, "Design Casino - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Window Sill Height": {"ignore_malformed": true, "type": "float"}, "Floor Type": {"type": "string"}, "Daylighting Illuminance Set Point": {"ignore_malformed": true, "type": "float"}, "Water-Side Economizer DB Temperature Maximum": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Fast Food Restaurant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Anti-Sweat Heater Controls Manufacturer": {"type": "string"}, "Design Wastewater Treatment Plant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Outpatient Rehabilitation/Physical Therapy - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Number of Staffed Beds": {"ignore_malformed": true, "type": "float"}, "Design Retail Store - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Worship Facility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Commercial Washing Machines": {"ignore_malformed": true, "type": "float"}, "Burner Type": {"type": "string"}, "Other - Services - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Pump Minimum Flow Rate": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Convenience Store with Gas Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Maximum Number of Floors": {"ignore_malformed": true, "type": "float"}, "National Median Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Number of Open or Closed Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Guiding Principles - % Yes": {"type": "string"}, "Refrigeration Unit Type": {"type": "string"}, "Medical Office - MRI Machine Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Transformer Rated Power": {"ignore_malformed": true, "type": "float"}, "Rated Cooling Sensible Heat Ratio": {"ignore_malformed": true, "type": "float"}, "Domestic Hot Water Type": {"type": "string"}, "Typical Window Area": {"ignore_malformed": true, "type": "float"}, "Laboratory - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other Water Sources: Combined Indoor/Outdoor or Other Cost ($)": {"ignore_malformed": true, "type": "float"}, "Arch2030 Baseline": {"ignore_malformed": true, "type": "float"}, "Alternate Baseline Lighting Power Density": {"ignore_malformed": true, "type": "float"}, "Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Veterinary Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Serves Multiple Buildings": {"type": "string"}, "Performing Arts - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Humidity Control Maximum": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Onsite Laundry Facility": {"type": "string"}, "Pool Pump Duty Cycle": {"type": "string"}, "Process Load Installed Power": {"ignore_malformed": true, "type": "float"}, "Other - Public Services - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Ownership Status": {"type": "string"}, "Convenience Store with Gas Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Zoo - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Window SHGC": {"ignore_malformed": true, "type": "float"}, "National Median Reference Property Type": {"type": "string"}, "Prison/Incarceration - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Roof Area": {"ignore_malformed": true, "type": "float"}, "Convention Center - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Fenestration Type": {"type": "string"}, "Economizer Low Temperature Lockout": {"type": "string"}, "ENERGY STAR Certification - Eligibility": {"type": "string"}, "Design Performing Arts - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Adult Education - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Open All Weekdays": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Number of Sporting Events per Year": {"ignore_malformed": true, "type": "float"}, "Average Weekly Hours": {"ignore_malformed": true, "type": "float"}, "Wood Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Generation Annual Operation Hours": {"ignore_malformed": true, "type": "float"}, "Total GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Reactive Power Charge": {"ignore_malformed": true, "type": "float"}, "Technology Category": {"type": "string"}, "Roof Exterior Thermal Absorptance": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Interior Automated Shades": {"type": "string"}, "Design Ice/Curling Rink - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "College/University - Enrollment": {"ignore_malformed": true, "type": "float"}, "Roof Framing Depth": {"ignore_malformed": true, "type": "float"}, "Evaporative Cooling Entering Supply Air DB Temperature": {"ignore_malformed": true, "type": "float"}, "Annual Fuel Use Consistent Units (Consistent Units)": {"type": "string"}, "Design Target Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Pool Water Temperature": {"ignore_malformed": true, "type": "float"}, "Condensing Temperature": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Technology/Science - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Data Center - National Median PUE": {"ignore_malformed": true, "type": "float"}, "Cooling Stage Capacity": {"ignore_malformed": true, "type": "float"}, "District Chilled Water Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Outdoor Water Cost (All Water Sources) ($)": {"ignore_malformed": true, "type": "float"}, "Aquarium - Number of Computers": {"ignore_malformed": true, "type": "float"}, "K-12 School - High School": {"type": "string"}, "Other - Utility - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Food Service - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Laundry Unit Quantity": {"ignore_malformed": true, "type": "float"}, "Pool Type": {"type": "string"}, "Fuel Oil (No. 1) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Percent of Gross Floor Area That is Common Space Only": {"ignore_malformed": true, "type": "float"}, "Locations of exterior water intrusion damage": {"type": "string"}, "Police Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Electricity (Grid Purchase) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Light Shelf Distance from Top": {"ignore_malformed": true, "type": "float"}, "Laundry Unit Year of Manufacture": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Weather Data Source": {"type": "string"}, "Roof Exterior Solar Absorptance": {"ignore_malformed": true, "type": "float"}, "Boiler Insulation R Value": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Design PUE": {"ignore_malformed": true, "type": "float"}, "Food Service - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Residence Hall/ Dormitory - Dining Hall": {"type": "string"}, "Duct Pressure Test Leakage cfm (cfm)": {"ignore_malformed": true, "type": "float"}, "Data Center - IT Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "Laboratory - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Setup temperature cooling": {"ignore_malformed": true, "type": "float"}, "Roof Framing Material": {"type": "string"}, "Lifestyle Center - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Roof Insulated Area": {"ignore_malformed": true, "type": "float"}, "CMU Fill": {"type": "string"}, "Evaporator Pressure Regulators": {"type": "string"}, "Cooling is FEMP Designated Product": {"type": "string"}, "Emissions Factor - Source": {"type": "string"}, "Other - Stadium - Size of Electronic Scoreboards (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Number of Concert/Show Events per Year": {"ignore_malformed": true, "type": "float"}, "Courthouse - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Window Horizontal Spacing": {"ignore_malformed": true, "type": "float"}, "Winter Peak": {"ignore_malformed": true, "type": "float"}, "Roof R-Value": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Residence Hall/Dormitory - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Reclaimed Water - Indoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Economizer Enthalpy Control Point": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Data Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "College/University - Grant Dollars ($)": {"ignore_malformed": true, "type": "float"}, "Outpatient Rehabilitation/Physical Therapy - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Cash Register Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Condensing Operation": {"type": "string"}, "Museum - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Placement": {"type": "string"}, "National Median Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Data Center - IT Energy Configuration": {"type": "string"}, "Medical Office - Surgical Operating Bed Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Potable": {"type": "string"}, "Quality Alert-Space Alert": {"type": "string"}, "Stadium (Closed) - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Percent of RECs Retained": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "National Median Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Lighting Type": {"type": "string"}, "REALPac Energy Benchmarking Program Building Name": {"type": "string"}, "Utility Meter Number": {"type": "string"}, "Stadium (Closed) - Number of Special/Other Events per Year": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Target Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Museum - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Technology/Science - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Food Sales - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Installed Power": {"ignore_malformed": true, "type": "float"}, "Primary Service Hot Water Location": {"type": "string"}, "Rated Lamp Life": {"ignore_malformed": true, "type": "float"}, "Natural Gas Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Clothes Washer Water Factor": {"ignore_malformed": true, "type": "float"}, "Energy Cost": {"ignore_malformed": true, "type": "float"}, "Cooling Tower Control Type": {"type": "string"}, "Annual Water Cost Savings": {"ignore_malformed": true, "type": "float"}, "Ice/Curling Rink - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Plumbing Penetration Sealing": {"type": "string"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Cooling Degree Days (CDD) (\\u00b0F)": {"ignore_malformed": true, "type": "float"}, "Enclosed Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Duct Surface Area": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Owner Email Address": {"type": "string"}, "Pump Installed Flow Rate": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Licensed Bed Capacity Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Climate Zone": {"type": "string"}, "Police Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Net Present Value": {"ignore_malformed": true, "type": "float"}, "Other - Technology/Science - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Computers": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Certification - Profile Published": {"type": "string"}, "Senior Care Community - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Input Voltage": {"ignore_malformed": true, "type": "float"}, "Electricity Sourced from Onsite Renewable Systems": {"ignore_malformed": true, "type": "float"}, "Motor RPM": {"ignore_malformed": true, "type": "float"}, "Ownership": {"type": "string"}, "Convenience Store without Gas Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Coke Cost ($)": {"ignore_malformed": true, "type": "float"}, "Fan Size": {"ignore_malformed": true, "type": "float"}, "Pool Hours Uncovered": {"ignore_malformed": true, "type": "float"}, "District Hot Water Cost ($)": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Heating Degree Days (HDD) (\\u00b0F)": {"ignore_malformed": true, "type": "float"}, "Portfolio Manager Parent Property ID": {"type": "string"}, "Senior Care Community - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Type of resource meter": {"type": "string"}, "Museum - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Wall Exterior Thermal Absorptance": {"ignore_malformed": true, "type": "float"}, "Aquarium - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Percent Skylight Area": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other Financial Incentives": {"type": "string"}, "Target Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "College/University - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.2 Outdoor Water - Option 3": {"type": "string"}, "Guiding Principle 3.2 Outdoor Water - Option 2": {"type": "string"}, "Guiding Principle 3.2 Outdoor Water - Option 1": {"type": "string"}, "Water-Side Economizer Temperature Setpoint": {"ignore_malformed": true, "type": "float"}, "Pump Operation": {"type": "string"}, "Other - Specialty Hospital - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Target Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Heat Recovery Type": {"type": "string"}, "Drinking Water Treatment & Distribution - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Quality Alert-Energy Alerts": {"type": "string"}, "Urgent Care/Clinic/Other Outpatient - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Refrigeration Compressor Type": {"type": "string"}, "Floor Area Value": {"ignore_malformed": true, "type": "float"}, "Work Plane Height": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Seating Capacity": {"ignore_malformed": true, "type": "float"}, "Avoided Emissions - Onsite Green Power (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Benchmark Type": {"type": "string"}, "Multifamily Housing - Number of Dishwasher Hookups": {"ignore_malformed": true, "type": "float"}, "Roof Slope": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Annual Combined Whole Building Annual Weather Normalized Source Resource Use": {"ignore_malformed": true, "type": "float"}, "Primary Heating Type": {"type": "string"}, "Data Center - PUE": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Roller Rink - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Race Track - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Primary Fan Configuration": {"type": "string"}, "ENERGY STAR Certification - Last Approval Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Avoided Emissions": {"ignore_malformed": true, "type": "float"}, "Generation Capacity Unit": {"type": "string"}, "Other - Restaurant/Bar - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fast Food Restaurant - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Fuel Oil (No. 4) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Marginal Sell Rate": {"ignore_malformed": true, "type": "float"}, "Pool Control Type": {"type": "string"}, "Name of Audit Certification Holder": {"type": "string"}, "Roof Framing Configuration": {"type": "string"}, "Design Race Track - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.5 Indoor Environment - Low-Emitting Materials": {"type": "string"}, "Service and Product Provider": {"type": "string"}, "Mailing Center/Post Office - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Laboratory - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Measure Name": {"type": "string"}, "Normalization Start Year": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Bar/Nightclub - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Outside Air Temperature Upper Limit Heating Reset Control": {"ignore_malformed": true, "type": "float"}, "Laboratory - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Direct GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Number of Heating Stages": {"ignore_malformed": true, "type": "float"}, "Barracks- Number of Rooms": {"ignore_malformed": true, "type": "float"}, "Pool is Heated": {"type": "string"}, "Vertical Edge Fin Only": {"type": "string"}, "Owner Postal Code": {"type": "string"}, "Stadium (Open) - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Potable Water - Outdoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Year PM Benchmarked": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Biomass GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Cooling is ENERGY STAR Rated": {"type": "string"}, "Wall Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Other - Specialty Hospital - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Convention Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Residence Hall/Dormitory - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Zoo - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Typical Skylight U-Value": {"ignore_malformed": true, "type": "float"}, "Other - Utility - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Prison/Incarceration - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Data Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 5.2 Materials - Biobased Content": {"type": "string"}, "Electricity Use - Grid Purchase and Generated from Onsite Renewable Systems (kBtu)": {"ignore_malformed": true, "type": "float"}, "Water Use (All Water Sources) (kgal)": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Indoor Water Cost Intensity (All Water Sources) ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Number of Cash Registers": {"ignore_malformed": true, "type": "float"}, "eGRID Region Code": {"type": "string"}, "Guiding Principle 5.1 Materials - Recycled Content": {"type": "string"}, "Year Occupied": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Building air leakage unit": {"type": "string"}, "Typical Window U-Value": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Heating Refrigerant Type": {"type": "string"}, "Senior Care Community - Residential Washing Machine Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Outside Air Temperature Lower Limit Heating Reset Control": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Funding from Rebates": {"type": "string"}, "Process Load Type": {"type": "string"}, "Design Propane Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Financial Office - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Average Cooling Operating Hours": {"ignore_malformed": true, "type": "float"}, "Building Operator Name": {"type": "string"}, "Supermarket/Grocery - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Premises Tax Map Number": {"type": "string"}, "Retro-commissioning Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Water/Wastewater Estimated Savings from Energy Projects, Cumulative ($/GPD)": {"ignore_malformed": true, "type": "float"}, "Case Door Orientation": {"type": "string"}, "Owner Telephone Number": {"type": "string"}, "Office - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Urgent Care/Clinic/Other Outpatient - Number of Computers": {"ignore_malformed": true, "type": "float"}, "U.S. Federal Campus": {"type": "string"}, "Tightness": {"type": "string"}, "K-12 School - Student Seating Capacity": {"ignore_malformed": true, "type": "float"}, "Zoo - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Multiple Building Heights": {"ignore_malformed": true, "type": "float"}, "Hotel - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Annual Combined Whole Builidng Annual Site Energy Use Intensity (EUI)": {"ignore_malformed": true, "type": "float"}, "Other - Services - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Prison/Incarceration - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Concert/Show Events per Year": {"ignore_malformed": true, "type": "float"}, "Number of Computers": {"ignore_malformed": true, "type": "float"}, "Scenario Type": {"type": "string"}, "Restaurant - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Reference Case": {"type": "string"}, "Wastewater Treatment Plant - Nutrient Removal": {"type": "string"}, "Municipally Supplied Potable Water - Indoor Intensity (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Condenser Fan Speed Operation": {"type": "string"}, "Weather Normalized Water/Wastewater Site Natural Gas Intensity (therms/gpd)": {"ignore_malformed": true, "type": "float"}, "Window Width": {"ignore_malformed": true, "type": "float"}, "Plug Load Standby Power": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Restaurant - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Government Subsidized Housing": {"type": "string"}, "Peak Occupancy Percentage": {"ignore_malformed": true, "type": "float"}, "Daily Hot Water Draw": {"ignore_malformed": true, "type": "float"}, "Analysis Period": {"type": "string"}, "Fan Application": {"type": "string"}, "Hotel - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Premises Conditioned Floor Area": {"ignore_malformed": true, "type": "float"}, "Design Other - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Onsite Renewable System Electricity Exported": {"ignore_malformed": true, "type": "float"}, "Pipe Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Site Use Description": {"type": "string"}, "PV System Maximum Power Output": {"ignore_malformed": true, "type": "float"}, "Measure Scale of Application": {"type": "string"}, "Transportation Terminal/Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Residence Hall/Dormitory - Number of Rooms": {"ignore_malformed": true, "type": "float"}, "Storage Tank Insulation R-Value": {"ignore_malformed": true, "type": "float"}, "Single Family Home - Number of Bedrooms": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Ventilation Control Method": {"type": "string"}, "Bank Branch - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Medical Office - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Cooking Facilities": {"type": "string"}, "Hospital (General Medical & Surgical) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.1 Water - Indoor Water Any Option (Any Option)": {"type": "string"}, "Typical Ground Coupling Type": {"type": "string"}, "Contact City": {"type": "string"}, "Design Distribution Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Pre-school/Daycare - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Tightness/Fit Condition": {"type": "string"}, "Design Other - Services - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Utility - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "College/University - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Retail Store - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Wall Insulation Material": {"type": "string"}, "Gas Price Escalation Rate": {"ignore_malformed": true, "type": "float"}, "Absorption Stages": {"type": "string"}, "Floor R-Value": {"ignore_malformed": true, "type": "float"}, "Floor Area Custom Name": {"type": "string"}, "Water/Wastewater Direct GHG Emissions Intensity (kgCO2e/gpd)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Retail Store - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Number of Open or Closed Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Supply Air Temp Reset Control": {"type": "string"}, "Stadium (Closed) - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Single Family Home - Density of People (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Hot Water Present": {"type": "string"}, "Wall Framing Configuration": {"type": "string"}, "National Median Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Hotel - Commercial Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Weekend Operation": {"type": "string"}, "Fire Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "LEED Certification Audit Exemption": {"type": "string"}, "Hospital (General Medical & Surgical) - Full Time Equivalent (FTE) Workers Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Premises Tax Book Number": {"type": "string"}, "Supermarket/Grocery - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Certification Program": {"type": "string"}, "Boiler Leaving Water Temperature": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Number of Computers": {"ignore_malformed": true, "type": "float"}, "Control Type": {"type": "string"}, "Premises Block Number": {"type": "string"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Bar/Nightclub - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Summer Peak": {"ignore_malformed": true, "type": "float"}, "Convention Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Lamp Distribution Type": {"type": "string"}, "Water-Side Economizer Type": {"type": "string"}, "Manufacturing/Industrial Plant - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Transportation Terminal/Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "PV System Array Azimuth": {"ignore_malformed": true, "type": "float"}, "Roof Insulation Type": {"type": "string"}, "Premises Occupied Floor Area": {"ignore_malformed": true, "type": "float"}, "Skylight Operability": {"type": "string"}, "Financial Office - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "SHW is ENERGY STAR Rated": {"type": "string"}, "Stadium (Open) - Enclosed Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indirect GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.5 Energy - Benchmarking": {"type": "string"}, "Lighting Control Type Occupancy": {"type": "string"}, "Premises Custom ID": {"type": "string"}, "Hospital (General Medical & Surgical) - Number of Workers on Main Shift Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Fuel Oil #4 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "K-12 School - School District": {"type": "string"}, "Municipally Supplied Reclaimed Water: Combined Indoor/Outdoor or Other Cost ($)": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "End Time Stamp": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Lifestyle Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Other Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Source Energy Use - Adjusted to Current Year (kBtu)": {"ignore_malformed": true, "type": "float"}, "Annual Savings Site Energy (Site Energy)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Economizer Type": {"type": "string"}, "Tank Volume": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Resident Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Number of Units": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Average Influent Flow (MGD)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Swimming Pool - Location of Pool": {"type": "string"}, "Manufacturing/Industrial Plant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "College/University - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Heating Staging": {"type": "string"}, "Distance Between Vertical Fins": {"ignore_malformed": true, "type": "float"}, "Total Heat Rejection": {"ignore_malformed": true, "type": "float"}, "Guiding Principles - % No": {"type": "string"}, "Floor Framing Configuration": {"type": "string"}, "Medical Office - Number of Surgical Operating Beds": {"ignore_malformed": true, "type": "float"}, "Restaurant - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Heating Setpoint setpoint": {"ignore_malformed": true, "type": "float"}, "Weather-Stripped": {"type": "string"}, "Fuel Use Intensity": {"ignore_malformed": true, "type": "float"}, "Contact State": {"type": "string"}, "Roof Framing Factor": {"ignore_malformed": true, "type": "float"}, "Bar/Nightclub - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Locations of interior water intrusion damage": {"type": "string"}, "Exterior Door Type": {"type": "string"}, "Enclosed Mall - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Slab Exposed Perimeter": {"ignore_malformed": true, "type": "float"}, "Type of Cooking Equipment": {"type": "string"}, "Target Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Enclosed Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Total GHG Emissions Intensity (kgCO2e/gpd)": {"ignore_malformed": true, "type": "float"}, "Discount Factor": {"ignore_malformed": true, "type": "float"}, "Retail Store - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Laboratory - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Premises Count": {"ignore_malformed": true, "type": "float"}, "Urgent Care/Clinic/Other Outpatient - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "OM Cost Annual Savings": {"ignore_malformed": true, "type": "float"}, "Casino - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Water Baseline Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Typical Window Type": {"type": "string"}, "Steam Boiler Minimum Operating Pressure": {"ignore_malformed": true, "type": "float"}, "Energy Recovery Efficiency": {"ignore_malformed": true, "type": "float"}, "Duct Insulation R-Value": {"ignore_malformed": true, "type": "float"}, "Premises City": {"type": "string"}, "Aquarium - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Vestibule": {"type": "string"}, "Municipally Supplied Reclaimed Water - Outdoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Indirect Tank Heating Source": {"type": "string"}, "Other - Public Services - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Federal Department": {"type": "string"}, "Other - Recreation - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Single Family Home - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Tilt": {"ignore_malformed": true, "type": "float"}, "Fire Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Exterior Shading Type": {"type": "string"}, "Anti-Sweat Heater Controls": {"type": "string"}, "Ice/Curling Rink - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other Peak Rate": {"type": "string"}, "Design Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - MRI Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Pre-school/Daycare - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Duct Insulation": {"type": "string"}, "Bar/Nightclub - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Property Floor Area (Parking) (ft2)": {"ignore_malformed": true, "type": "float"}, "Resource": {"type": "string"}, "PV Module Length": {"ignore_malformed": true, "type": "float"}, "Tank Perimeter": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Licensed Bed Capacity": {"ignore_malformed": true, "type": "float"}, "Food Sales - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Ballast Type": {"type": "string"}, "Indoor Arena - Number of Special/Other Events per Year": {"ignore_malformed": true, "type": "float"}, "Door Configuration": {"type": "string"}, "Guiding Principle 1.5 Integrated - Commissioning": {"type": "string"}, "Convention Center - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Convention Center - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Target Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Calculation Method": {"type": "string"}, "Radiant Barrier": {"type": "string"}, "Bar/Nightclub - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Light Shelf Interior Protrusion": {"ignore_malformed": true, "type": "float"}, "Convenience Store with Gas Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Certification - Application Status": {"type": "string"}, "Veterinary Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Conveyance Standby Power": {"ignore_malformed": true, "type": "float"}, "Outside Air Reset Maximum Cooling Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Floor-to-Floor Height": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Ice Events": {"ignore_malformed": true, "type": "float"}, "Transportation Terminal/Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Primary Zonal Cooling Type": {"type": "string"}, "eGRID Subregion": {"type": "string"}, "Window Sill Height": {"ignore_malformed": true, "type": "float"}, "Food Sales - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Convention Center - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Foundation Wall Insulation Condition": {"type": "string"}, "Construction Status": {"type": "string"}, "Indoor Arena - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Roof Insulation Condition": {"type": "string"}, "Design Stadium (Closed) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Enclosed Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Electricity Use - Grid Purchase and Generated from Onsite Renewable Systems (kWh)": {"ignore_malformed": true, "type": "float"}, "Heating Setback Frequency": {"type": "string"}, "Barracks- Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Ice/Curling Rink - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Anti-Sweat Heater Controls Model Number": {"type": "string"}, "Primary Zonal Cooling Fuel Type": {"type": "string"}, "Floor-to-Ceiling Height": {"ignore_malformed": true, "type": "float"}, "Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Reclaimed Water - Indoor Intensity (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Dishwasher Loads Per Week": {"ignore_malformed": true, "type": "float"}, "Other - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Food Sales - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Non-Potable Water used for Irrigation": {"type": "string"}, "Asset Score": {"ignore_malformed": true, "type": "float"}, "Collection Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Electricity Use - Generated from Onsite Renewable Systems (kWh)": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Outdoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Wall Framing Depth": {"ignore_malformed": true, "type": "float"}, "Natural Ventilation Rate": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Target Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Fire Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Refrigerated Warehouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Foundation Wall Type": {"type": "string"}, "Indoor Arena - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Input Capacity": {"ignore_malformed": true, "type": "float"}, "Natural Ventilation": {"type": "string"}, "Design Greenhouse Gas Emissions Intensity": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Hot Water Boiler Minimum Flow Rate": {"ignore_malformed": true, "type": "float"}, "PV System Number of Modules per Array": {"ignore_malformed": true, "type": "float"}, "Propane Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Primary Zonal Heating Type": {"type": "string"}, "Lifestyle Center - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Residential Washing Machines": {"ignore_malformed": true, "type": "float"}, "Retail Store - Open or Closed Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Potable Water - Outdoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Floor Framing Depth": {"ignore_malformed": true, "type": "float"}, "Retail Store - Exterior Entrance to the Public": {"type": "string"}, "Lifestyle Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Food Service - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Indoor Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Police Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "In Portfolio Manager": {"type": "string"}, "Utility Name": {"type": "string"}, "Design Ambient Temperature": {"ignore_malformed": true, "type": "float"}, "Primary Cooking Fuel": {"type": "string"}, "PV System Number of Arrays": {"ignore_malformed": true, "type": "float"}, "Courthouse - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Lighting Power Density": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Size of Electronic Scoreboards (ft2)": {"ignore_malformed": true, "type": "float"}, "Parking - Completely Enclosed Parking Garage Size (ft2)": {"ignore_malformed": true, "type": "float"}, "Fixture Spacing": {"type": "string"}, "Heating Stage Capacity": {"ignore_malformed": true, "type": "float"}, "Number of Exterior Doors": {"ignore_malformed": true, "type": "float"}, "Museum - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Coke Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Personal Services (Health/Beauty, Dry Cleaning, etc) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Lighting is ENERGY STAR Rated": {"type": "string"}, "Green Power - Onsite (kWh)": {"ignore_malformed": true, "type": "float"}, "Outside Air Temperature Lower Limit Cooling Reset Control": {"ignore_malformed": true, "type": "float"}, "Wall Insulation Type": {"type": "string"}, "Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Target ENERGY STAR Score": {"ignore_malformed": true, "type": "float"}, "Cooking Energy per Meal": {"ignore_malformed": true, "type": "float"}, "Ceiling Visible Absorptance": {"ignore_malformed": true, "type": "float"}, "Food Service - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Cooking Capacity": {"ignore_malformed": true, "type": "float"}, "Typical Window Visual Transmittance": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Number of Special/Other Events per Year": {"ignore_malformed": true, "type": "float"}, "Motor Full Load Amps": {"ignore_malformed": true, "type": "float"}, "Number of Lamps per Luminaire": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Duct Sealing": {"type": "string"}, "Design Parking - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Cooling Supply Air Temperature Control Type": {"type": "string"}, "Supermarket/Grocery - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Data Center - IT Source Energy (kBtu)": {"ignore_malformed": true, "type": "float"}, "Convenience Store without Gas Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Slab Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Design Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "Pumping Configuration": {"type": "string"}, "Federal Sustainability Checklist Completion Percentage": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Metered Areas (Water)": {"type": "string"}, "Senior Care Community - Maximum Resident Capacity": {"ignore_malformed": true, "type": "float"}, "Other - Services - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "K-12 School - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Foundation Area": {"ignore_malformed": true, "type": "float"}, "Third party certification": {"type": "string"}, "Guiding Principles - Principles Date Achieved": {"type": "string"}, "Design Movie Theater - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Cooking Facilities": {"type": "string"}, "Design Urgent Care/Clinic/Other Outpatient - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Single Family Home - Number of People": {"ignore_malformed": true, "type": "float"}, "Design Strip Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Source Energy Use": {"ignore_malformed": true, "type": "float"}, "District Steam": {"type": "string"}, "Other Cost ($)": {"ignore_malformed": true, "type": "float"}}}, "space_alerts": {"type": "string"}, "pm_property_id": {"index": "not_analyzed", "type": "string", "doc_values": true}, "use_description": {"type": "string"}, "conditioned_floor_area": {"type": "float"}, "site_eui_weather_normalized": {"type": "float"}, "property_name": {"type": "string"}, "building_certification": {"type": "string"}, "state_province": {"type": "string"}, "energy_alerts": {"type": "string"}, "year_built": {"type": "float"}, "release_date": {"type": "date"}, "gross_floor_area": {"type": "float"}, "longitude": {"type": "float"}, "owner_city_state": {"type": "string"}, "owner_telephone": {"type": "string"}, "recent_sale_date": {"type": "date"}, "postal_code": {"type": "string"}, "tax_lot_id": {"index": "not_analyzed", "type": "string", "doc_values": true}, "address_line_2": {"type": "string"}, "energy_score": {"type": "float"}}}}, "dynamic_templates": [{"goals_as_floats": {"path_match": "building_snapshot.extra_data.*_goal", "mapping": {"ignore_malformed": true, "type": "float"}, "match_pattern": "regex", "match_mapping_type": "double|long|integer|float"}}, {"extra_data_as_string": {"path_match": "building_snapshot.extra_data.*", "mapping": {"type": "string"}, "match_pattern": "regex", "match_mapping_type": "date|boolean|double|long|integer|float"}}]}}'
# comment out the following line (mapping building_snapshot) to get aggs on 1.5.1
curl -XPUT localhost:9200/test/_mapping/building_snapshot -d '{"building_snapshot": {"properties": {"lot_number": {"type": "string"}, "owner_address": {"type": "string"}, "owner_postal_code": {"type": "string"}, "block_number": {"type": "string"}, "project_buildings": {"type": "nested"}, "source_eui_weather_normalized": {"type": "float"}, "owner_email": {"type": "string"}, "year_ending": {"type": "date"}, "building_count": {"type": "float"}, "postal_code": {"type": "string"}, "owner": {"type": "string"}, "site_eui": {"type": "float"}, "address_line_1": {"type": "string"}, "occupied_floor_area": {"type": "float"}, "source_eui": {"type": "float"}, "custom_id_1": {"index": "not_analyzed", "type": "string", "doc_values": true}, "city": {"type": "string"}, "property_notes": {"type": "string"}, "district": {"type": "string"}, "location": {"type": "geo_point"}, "latitude": {"type": "float"}, "generation_date": {"type": "date"}, "extra_data": {"dynamic": false, "type": "object", "properties": {"normalized_address": {"index": "not_analyzed", "type": "string", "store": true}}}, "space_alerts": {"type": "string"}, "pm_property_id": {"index": "not_analyzed", "type": "string", "doc_values": true}, "use_description": {"type": "string"}, "conditioned_floor_area": {"type": "float"}, "site_eui_weather_normalized": {"type": "float"}, "property_name": {"type": "string"}, "building_certification": {"type": "string"}, "state_province": {"type": "string"}, "energy_alerts": {"type": "string"}, "year_built": {"type": "float"}, "release_date": {"type": "date"}, "gross_floor_area": {"type": "float"}, "longitude": {"type": "float"}, "owner_city_state": {"type": "string"}, "owner_telephone": {"type": "string"}, "recent_sale_date": {"type": "date"}, "tax_lot_id": {"index": "not_analyzed", "type": "string", "doc_values": true}, "address_line_2": {"type": "string"}, "energy_score": {"type": "float"}}}}'
echo ""
echo ""
echo "check mappings"
echo ""
# comment in for mappings
# curl -XGET localhost:9200/test/_mapping
echo ""
echo ""
echo "create docs"
echo ""
curl -XPUT localhost:9200/test/test/1 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 10, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/2 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 11, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/3 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 12, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/4 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 13, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/5 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 14, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/6 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 8, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/7 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 4, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/8 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 1, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/9 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 1995, "gross_floor_area": 39636.66217959946}}'
curl -XPUT localhost:9200/test/test/10 -d '{"building_snapshot": {"extra_data": {"test": 13}, "year_built": null, "gross_floor_area": 39636.66217959946}}'
echo ""
echo ""
echo "wait for index to refresh"
curl -XPOST localhost:9200/_refresh
echo ""
echo ""
echo "search with aggs"
echo ""
curl -XGET localhost:9200/test/test/_search?pretty -d '{"query": {"filtered": {"filter": {"range": {"building_snapshot.gross_floor_area": {"gte": 200}}}}}, "aggs": {"gfa": {"stats": {"field": "building_snapshot.year_built"}}}}'
# Output 1.5.1 building_snapshot mapping included
# "aggregations" : {
# "gfa" : {
# "count" : 0,
# "min" : null,
# "max" : null,
# "avg" : null,
# "sum" : null
# }
# }
#
# Output 1.5.1 building_snapshot mapping excluded
# "aggregations" : {
# "gfa" : {
# "count" : 9,
# "min" : 1.0,
# "max" : 1995.0,
# "avg" : 229.77777777777777,
# "sum" : 2068.0,
# "min_as_string" : "1.0",
# "max_as_string" : "1995.0",
# "avg_as_string" : "229.77777777777777",
# "sum_as_string" : "2068.0"
# }
# }
#
# Output 1.4.4 mapping included or excluded
# "aggregations" : {
# "gfa" : {
# "count" : 9,
# "min" : 1.0,
# "max" : 1995.0,
# "avg" : 229.77777777777777,
# "sum" : 2068.0
# }
# }"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#!</span>/bin/bash</span>
<span class="pl-c"><span class="pl-c">#</span> Aleck Landgraf - Elasticsearch 1.5.1 aggs tests with various mappings</span>
<span class="pl-c"><span class="pl-c">#</span> This test will return 0 or null aggregations for elasticsearch version 1.5.1</span>
<span class="pl-c"><span class="pl-c">#</span> and return valid aggs on 1.4.4. See output at the bottom.</span>
<span class="pl-c"><span class="pl-c">#</span></span>
<span class="pl-c"><span class="pl-c">#</span> Comment out line 35 (mapping of building_snapshot) to work on 1.5.1.</span>
<span class="pl-c"><span class="pl-c">#</span></span>
<span class="pl-c"><span class="pl-c">#</span> I've only tested for the value_counts and stats aggs, but more are probably</span>
<span class="pl-c"><span class="pl-c">#</span> affected.</span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>get elasticsearch version for debug<span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
curl -XGET localhost:9200
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>drop index<span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
curl -XDELETE localhost:9200/test
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>create index<span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
curl -XPUT localhost:9200/test
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>create mappings<span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
curl -XPUT localhost:9200/test/_mapping/test -d '{"test": {"properties": {"building_snapshot": {"properties": {"lot_number": {"type": "string"}, "owner_address": {"type": "string"}, "owner_postal_code": {"type": "string"}, "block_number": {"type": "string"}, "project_buildings": {"type": "nested"}, "source_eui_weather_normalized": {"type": "float"}, "owner_email": {"type": "string"}, "year_ending": {"type": "date"}, "building_count": {"type": "float"}, "meters": {"index_name": "meter", "type": "string"}, "owner": {"type": "string"}, "site_eui": {"type": "float"}, "address_line_1": {"type": "string"}, "occupied_floor_area": {"type": "float"}, "source_eui": {"type": "float"}, "custom_id_1": {"index": "not_analyzed", "type": "string", "doc_values": true}, "city": {"type": "string"}, "property_notes": {"type": "string"}, "district": {"type": "string"}, "location": {"type": "geo_point"}, "latitude": {"type": "float"}, "generation_date": {"type": "date"}, "extra_data": {"type": "object", "properties": {"Wall Insulation Location": {"type": "string"}, "Audit Cost": {"ignore_malformed": true, "type": "float"}, "Design Food Sales - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Exterior Shading Type": {"type": "string"}, "Design Electricity Use - Grid Purchase (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Coal - Anthracite Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Static Pressure Reset Control": {"type": "string"}, "Annual Water Savings": {"ignore_malformed": true, "type": "float"}, "Library - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Evaporatively Cooled Condenser Minimum Temperature": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site Natural Gas Use (therms)": {"ignore_malformed": true, "type": "float"}, "Mailing Center/Post Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Fuel Interruptibility": {"type": "string"}, "Building air leakage": {"ignore_malformed": true, "type": "float"}, "Indoor Water Cost (All Water Sources) ($)": {"ignore_malformed": true, "type": "float"}, "Footprint Shape": {"type": "string"}, "Guiding Principle 4.7 Indoor Environment - Tobacco Smoke Control": {"type": "string"}, "Hotel - Gym/fitness Center Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Refrigerant Return Line Diameter": {"ignore_malformed": true, "type": "float"}, "Transportation Terminal/Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Outside Air Reset Minimum Heating Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Typical Exterior Shading Depth": {"ignore_malformed": true, "type": "float"}, "Annual Net Emissions": {"ignore_malformed": true, "type": "float"}, "Combustion Efficiency": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Design Other - Entertainment/Public Assembly - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Schedule End Month": {"ignore_malformed": true, "type": "float"}, "Police Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Education - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Ignition Type": {"type": "string"}, "PV Module Rated Power": {"ignore_malformed": true, "type": "float"}, "Space Occupant Capacity": {"ignore_malformed": true, "type": "float"}, "Supply Duct Percent Conditioned Space": {"ignore_malformed": true, "type": "float"}, "Medical Office - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Water collected for Reuse": {"type": "string"}, "Convenience Store without Gas Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Minimum Fan Speed as a Fraction of Maximum - Heating": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Conveyance Standby Time": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Lighting Control Type Manual": {"type": "string"}, "Wood Cost ($)": {"ignore_malformed": true, "type": "float"}, "Hotel- Number of guest meals served per year": {"ignore_malformed": true, "type": "float"}, "Floors Above Grade": {"ignore_malformed": true, "type": "float"}, "Contact Name": {"type": "string"}, "Enclosed Mall - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Cooling Delivery Type": {"type": "string"}, "Dishwasher Year of Manufacture": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Percent of Total Electricity Generated from Onsite Renewable Systems": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Site EUI - Adjusted to Current Year (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Design Manufacturing/Industrial Plant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Commercial Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 1.4 Integrated -Occupant Feedback": {"type": "string"}, "Property Use Detail Alerts": {"type": "string"}, "Vertical Abutments": {"type": "string"}, "Premises Street Address 2": {"type": "string"}, "Evaporatively Cooled Condenser": {"type": "string"}, "Other - Stadium - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Premises Name": {"type": "string"}, "Foundation Wall Below Grade Depth": {"ignore_malformed": true, "type": "float"}, "Glass Type": {"type": "string"}, "Certification Version": {"type": "string"}, "Foundation Wall Insulation Continuity": {"type": "string"}, "Date Property Last Modified": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Bar/Nightclub - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Casino - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other - Technology/Science - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Specular Reflectors": {"type": "string"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Stadium (Open) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Third Party Certification Date Achieved": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Other - Technology/Science - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Mailing Center/Post Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Casino - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Federal Agency/Department": {"type": "string"}, "Audit Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Aquarium - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Medical Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Owner City": {"type": "string"}, "Quantity of Processed Laundry": {"ignore_malformed": true, "type": "float"}, "NYC Borough, Block and Lot (BBL)": {"type": "string"}, "Premises Occupancy Classification": {"type": "string"}, "Other - Public Services - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.3 Energy - Onsite Renewable": {"type": "string"}, "Residence Hall/Dormitory - Room Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Interior Shading Type": {"type": "string"}, "Lifestyle Center - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "National Median Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Floor Framing Factor": {"ignore_malformed": true, "type": "float"}, "Cooling Efficiency Units": {"type": "string"}, "Fuel Oil #4 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Evaporatively Cooled Condenser Maximum Temperature": {"ignore_malformed": true, "type": "float"}, "Sequencing": {"type": "string"}, "Hotel- Hours per day guests on-site": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Minimum Part Load Ratio": {"ignore_malformed": true, "type": "float"}, "Generation Capacity": {"ignore_malformed": true, "type": "float"}, "Water Fixture Fraction Hot Water": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Other - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Primary Service Hot Water Type": {"type": "string"}, "Source Energy Use Intensity": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Number of Bedrooms": {"ignore_malformed": true, "type": "float"}, "Shared Resource System": {"type": "string"}, "Worship Facility - Cooking Facilities": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.3 Indoor Environment - Automated Lighting Controls": {"type": "string"}, "K-12 School - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Medical Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Water Use (All Water Sources) (kgal)": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Regional Average EUI": {"type": "string"}, "Other - Education - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Dishwasher Quantity": {"ignore_malformed": true, "type": "float"}, "Design Electricity Use - Grid Purchase and Onsite Renewable Energy (kBtu)": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Pre-school/Daycare - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Motor Application": {"type": "string"}, "Premises County": {"type": "string"}, "Fire Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel- Number of Rooms": {"ignore_malformed": true, "type": "float"}, "Longitude": {"ignore_malformed": true, "type": "float"}, "Office - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Federal Property": {"type": "string"}, "Manufacturing/Industrial Plant - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Medical Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Outside Lighting Type": {"type": "string"}, "Pre-school/Daycare - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 1.3 Integrated - Plan": {"type": "string"}, "Medical Office - Surgery Center Size (ft2)": {"ignore_malformed": true, "type": "float"}, "Diesel Cost ($)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Living Unit Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Complete Resource": {"type": "string"}, "Contact Type": {"type": "string"}, "Fuel Oil #1 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Roof Insulation Material": {"type": "string"}, "Other - Technology/Science - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Hot Water Reset Control": {"type": "string"}, "College/University - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Loop Type": {"type": "string"}, "Window Layout": {"type": "string"}, "Other - Specialty Hospital - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Most Recent Sale Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Social/Meeting Hall - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Residence Hall/Dormitory - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Daylighting Control Steps": {"type": "string"}, "Ice/Curling Rink - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site Natural Gas Intensity (therms/ft2)": {"ignore_malformed": true, "type": "float"}, "Door Operation": {"type": "string"}, "Fitness Center/Health Club/Gym - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Adult Education - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other Water Sources: Combined Indoor/Outdoor or Other Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Central Refrigeration System": {"type": "string"}, "Design Convenience Store with Gas Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Building Operator Type": {"type": "string"}, "Bank Branch - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Water Cost": {"ignore_malformed": true, "type": "float"}, "Pipe Location": {"type": "string"}, "Pump Control Type": {"type": "string"}, "Design Barracks - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Day Start Hour": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 5.5 Materials - Ozone Depleting Compounds": {"type": "string"}, "Skylight Layout": {"type": "string"}, "Design Fuel Oil #1 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Fitness Center/Health Club/Gym - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Cost Effectiveness Screening Method": {"type": "string"}, "Metered Areas (Energy)": {"type": "string"}, "Restaurant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Cooling Refrigerant": {"type": "string"}, "Certification Value": {"type": "string"}, "Financial Office - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Design Other - Stadium - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Pool Volume": {"ignore_malformed": true, "type": "float"}, "Floor Area Type": {"type": "string"}, "Hotel - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Roller Rink - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Static Pressure": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Outdoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Food Sales - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Part Load Ratio Below Which Hot Gas Bypass Operates": {"ignore_malformed": true, "type": "float"}, "Equipment Disposal and Salvage Costs": {"ignore_malformed": true, "type": "float"}, "Minimum Power Factor Without Penalty": {"ignore_malformed": true, "type": "float"}, "Wall Exterior Solar Absorptance": {"ignore_malformed": true, "type": "float"}, "HPWH Minimum Air Temperature": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Indoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Percent Better than National Median Water/Wastewater Site EUI": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Number of Laundry Hookups in All Units": {"ignore_malformed": true, "type": "float"}, "Scenario Qualifier": {"type": "string"}, "Skylight Glazing": {"type": "string"}, "Audit Team Member Certification Type": {"type": "string"}, "Space Number of FTE Workers": {"ignore_malformed": true, "type": "float"}, "Convenience Store with Gas Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Courthouse - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Lamp Length": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Fuel Oil (No. 5 and No. 6) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Azimuth": {"ignore_malformed": true, "type": "float"}, "Auditor Qualification": {"type": "string"}, "Swimming Pool - Approximate Pool Size": {"ignore_malformed": true, "type": "float"}, "Number of Buildings": {"ignore_malformed": true, "type": "float"}, "Wall Insulation Condition": {"type": "string"}, "Fan Type": {"type": "string"}, "Design Other - Specialty Hospital - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Residential Electronic Lift Systems": {"ignore_malformed": true, "type": "float"}, "Design Target Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "SHW Efficiency": {"ignore_malformed": true, "type": "float"}, "Typical Wall R-Value": {"ignore_malformed": true, "type": "float"}, "Conveyance Peak Time": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Other - Stadium - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Design Senior Care Community - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Data Center - PDU Output Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "Space Name": {"type": "string"}, "Premises Year Completed": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Weather Normalized Site Electricity Intensity (kWh/ft2)": {"ignore_malformed": true, "type": "float"}, "End Use": {"type": "string"}, "Compressor Staging": {"type": "string"}, "Senior Care Community - Commercial Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Motor Pole Count": {"ignore_malformed": true, "type": "float"}, "Number of Luminaires": {"ignore_malformed": true, "type": "float"}, "Schedule Day": {"ignore_malformed": true, "type": "float"}, "Room Density": {"ignore_malformed": true, "type": "float"}, "Adult Education - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Vocational School - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Reference For Rate Structure": {"type": "string"}, "Recirculation Flow Rate": {"ignore_malformed": true, "type": "float"}, "Indoor Water Intensity (All Water Sources) (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Floor Framing Material": {"type": "string"}, "Distribution Center - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Water Use Type": {"type": "string"}, "Space Floors Above Grade": {"ignore_malformed": true, "type": "float"}, "Natural Gas Cost ($)": {"ignore_malformed": true, "type": "float"}, "Design Convenience Store without Gas Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Type of Laundry Facility": {"type": "string"}, "Manufacturing/Industrial Plant - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Storage Volume": {"ignore_malformed": true, "type": "float"}, "Measure Life": {"ignore_malformed": true, "type": "float"}, "Parasitic Fuel Consumption Rate": {"ignore_malformed": true, "type": "float"}, "Propane Cost ($)": {"ignore_malformed": true, "type": "float"}, "Net Refrigeration Capacity": {"ignore_malformed": true, "type": "float"}, "Owner Name": {"type": "string"}, "Capacity Unit": {"type": "string"}, "Other - Public Services - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Percent Better than National Median Source EUI": {"ignore_malformed": true, "type": "float"}, "Humidity Control Minimum": {"ignore_malformed": true, "type": "float"}, "Maximum Outside Air Flow Rate": {"ignore_malformed": true, "type": "float"}, "Pump Power Demand": {"ignore_malformed": true, "type": "float"}, "Deck Type": {"type": "string"}, "Target Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Cooking Capacity Unit": {"type": "string"}, "Other - Public Services - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Primary Cooling Type": {"type": "string"}, "Financial Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Electronic Lift Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Site Energy Use Intensity": {"ignore_malformed": true, "type": "float"}, "Site EUI - Adjusted to Current Year (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "K-12 School - Months in Use": {"ignore_malformed": true, "type": "float"}, "Floor Insulation Condition": {"type": "string"}, "Electricity": {"type": "string"}, "Municipally Supplied Reclaimed Water - Outdoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Vocational School - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Indoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Auditor Qualification State": {"type": "string"}, "Wholesale Club/Supercenter- Number of Open or Closed Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "PV System Racking System Tilt Angle Min": {"ignore_malformed": true, "type": "float"}, "Off-Cycle Heat Loss Coefficient": {"ignore_malformed": true, "type": "float"}, "Fast Food Restaurant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Data Center - PDU Input Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "Dishwasher Hot Water Use": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Pump Efficiency": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Floors Below Grade": {"ignore_malformed": true, "type": "float"}, "Transportation Terminal/Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Fuel Oil #5 & 6 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Other - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.1 Indoor Water - Option 1": {"type": "string"}, "Guiding Principle 3.1 Indoor Water - Option 2": {"type": "string"}, "Electricity Price Escalation Rate": {"type": "string"}, "Retail Store - Number of Cash Registers": {"ignore_malformed": true, "type": "float"}, "Laboratory - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Ice Events": {"ignore_malformed": true, "type": "float"}, "Dryer Secondary Energy Use Per Load": {"ignore_malformed": true, "type": "float"}, "Investment in Energy Projects, Cumulative ($)": {"ignore_malformed": true, "type": "float"}, "Conveyance Peak Power": {"ignore_malformed": true, "type": "float"}, "Design Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Suction Vapor Temperature": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Residential Living Units": {"ignore_malformed": true, "type": "float"}, "Electrical Plug Load Intensity": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Hotel - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Outdoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Air Distribution Configuration": {"type": "string"}, "Electricity Use - Generated from Onsite Renewable Systems and Used Onsite (kWh)": {"ignore_malformed": true, "type": "float"}, "Skylight Window Treatments": {"type": "string"}, "Biomass GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Race Track - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Clothes Washer Loader Type": {"type": "string"}, "Design Supermarket/Grocery Store - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design District Chilled Water Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Commercial Washing Machine Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Parking - Open Parking Lot Size (ft2)": {"ignore_malformed": true, "type": "float"}, "Direct GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Race Track - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Chiller Compressor Type": {"type": "string"}, "Fast Food Restaurant - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Energy Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Courthouse - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Cooling Equipment Maintenance Frequency": {"type": "string"}, "Medical Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Boiler Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Open or Closed Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Number of MRI Machines": {"ignore_malformed": true, "type": "float"}, "Property Data Administrator - Email": {"type": "string"}, "Coefficient of Performance": {"ignore_malformed": true, "type": "float"}, "Estimated Savings from Energy Projects, Cumulative ($)": {"ignore_malformed": true, "type": "float"}, "Other - Utility - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Social/Meeting Hall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "District Steam Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Design Source EUI": {"ignore_malformed": true, "type": "float"}, "Design Fuel Oil #2 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Measure End Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Other - Entertainment/Public Assembly - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Office - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Wholesale Club/Supercenter - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Resource Units": {"type": "string"}, "Typical Skylight Frame Type": {"type": "string"}, "Stadium (Open) - Ice Events": {"ignore_malformed": true, "type": "float"}, "Diesel #2 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Measure Description": {"type": "string"}, "Roof Insulation Continuity": {"type": "string"}, "Water Intensity": {"ignore_malformed": true, "type": "float"}, "Net Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Heat Pump Water Heater Refrigerant Designation": {"type": "string"}, "AC Adjusted": {"type": "string"}, "Medical Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Skylight Pitch": {"ignore_malformed": true, "type": "float"}, "Natural Gas": {"type": "string"}, "Supply Air Temperature Setpoint": {"ignore_malformed": true, "type": "float"}, "Publicly Subsidized": {"type": "string"}, "Kerosene Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Burner Turndown Ratio": {"ignore_malformed": true, "type": "float"}, "Skylights Visible Transmittance": {"ignore_malformed": true, "type": "float"}, "Ice/Curling Rink - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Target Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Exterior Roughness": {"type": "string"}, "Rate Structure Sector": {"type": "string"}, "Chilled Water Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Exterior Wall Color": {"type": "string"}, "Emissions Factor": {"ignore_malformed": true, "type": "float"}, "Storage Tank Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Static Pressure - Installed": {"ignore_malformed": true, "type": "float"}, "Fixed Monthly Charge": {"ignore_malformed": true, "type": "float"}, "Lighting Efficacy": {"ignore_malformed": true, "type": "float"}, "Parking - Partially Enclosed Parking Garage Size (ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Average Number of Residents": {"ignore_malformed": true, "type": "float"}, "Exterior Wall Type": {"type": "string"}, "Guiding Principle 1.2 Integrated - Goals": {"type": "string"}, "Water/Wastewater Biomass GHG Emissions Intensity (kgCO2e/gpd)": {"ignore_malformed": true, "type": "float"}, "Premises Notes": {"type": "string"}, "Drinking Water Treatment & Distribution - Average Flow (MGD)": {"ignore_malformed": true, "type": "float"}, "Prison/Incarceration - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "SHW Year installed": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Measure Notes": {"type": "string"}, "SHW is FEMP Designated Product": {"type": "string"}, "Data Center - UPS System Redundancy": {"type": "string"}, "Lamp Subtype": {"type": "string"}, "Owner State": {"type": "string"}, "Number of Lamps per Ballast": {"ignore_malformed": true, "type": "float"}, "Portfolio Manager Property ID": {"type": "string"}, "Makeup Air Source": {"type": "string"}, "PVc System Racking System Tilt Angle Max": {"ignore_malformed": true, "type": "float"}, "Zoo - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Services - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Vertical Fin Depth": {"ignore_malformed": true, "type": "float"}, "Transformer Nameplate Efficiency": {"ignore_malformed": true, "type": "float"}, "US Federal Real Property Unique Identifier": {"type": "string"}, "Guiding Principle 4.4 Daylighting and Occupant Controls - Option 2": {"type": "string"}, "Guiding Principle 4.4 Daylighting and Occupant Controls - Option 1": {"type": "string"}, "Scenario Name": {"type": "string"}, "Measure Start Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Indoor Arena - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Lighting Control Type Daylighting": {"type": "string"}, "Electricity Use - Grid Purchase (kBtu)": {"ignore_malformed": true, "type": "float"}, "Library - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "County": {"type": "string"}, "Process Load Heat Gain Fraction": {"ignore_malformed": true, "type": "float"}, "Design Electricity Use - Generated from Onsite Renewable Systems and Used Onsite (kBtu)": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Motor Efficiency": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Number of Laundry Hookups in Common Area(s)": {"ignore_malformed": true, "type": "float"}, "Hotel - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Residence Hall/Dormitory - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Site Energy Use": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Number of Sporting Events per Year": {"ignore_malformed": true, "type": "float"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "NYC Building Identification Number (BIN)": {"type": "string"}, "Installation Type": {"type": "string"}, "Courthouse - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Target % Better Than Median Source EUI": {"ignore_malformed": true, "type": "float"}, "Library - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Cell Count": {"ignore_malformed": true, "type": "float"}, "Aquarium - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Heating Equipment Maintenance Frequency": {"type": "string"}, "Condenser Water Temperature": {"ignore_malformed": true, "type": "float"}, "Refrigerated Warehouse - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Refrigeration Unit is Third Party Certified": {"type": "string"}, "Heat Pump Backup system fuel": {"type": "string"}, "Motor Drive Efficiency": {"ignore_malformed": true, "type": "float"}, "Cooling Efficiency Value": {"ignore_malformed": true, "type": "float"}, "Electricity Use - Grid Purchase (kWh)": {"ignore_malformed": true, "type": "float"}, "Auditor Qualification Number": {"type": "string"}, "Coal (anthracite) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Roller Rink - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Recover Efficiency": {"ignore_malformed": true, "type": "float"}, "Outdoor Water Use (All Water Sources) (kgal)": {"ignore_malformed": true, "type": "float"}, "Terrace R-Value": {"ignore_malformed": true, "type": "float"}, "Typical Skylight Frames R-Value": {"ignore_malformed": true, "type": "float"}, "Off-Peak Occupancy Percentage": {"ignore_malformed": true, "type": "float"}, "Operable Windows": {"type": "string"}, "Site Energy Use - Adjusted to Current Year (kBtu)": {"ignore_malformed": true, "type": "float"}, "Motor Brake HP": {"ignore_malformed": true, "type": "float"}, "Motor Location Relative to Air Stream": {"type": "string"}, "Hospital (General Medical & Surgical) - Staffed Bed Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Enclosed Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Software program version": {"type": "string"}, "Economizer Dry Bulb Control Point": {"ignore_malformed": true, "type": "float"}, "Design Non-Refrigerated Warehouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Parking - Supplemental Heating": {"type": "string"}, "Skylight Type": {"type": "string"}, "Rated Heat Pump Sensible Heat Ratio": {"ignore_malformed": true, "type": "float"}, "Daily Water Use": {"ignore_malformed": true, "type": "float"}, "Financial Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Premises State": {"type": "string"}, "Alternative Water Generated On-Site: Combined Indoor/Outdoor or Other Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Draft Type": {"type": "string"}, "Minimum Dimming Light Fraction": {"ignore_malformed": true, "type": "float"}, "Cooled Floor Area": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Number of Concert/Show Events per Year": {"ignore_malformed": true, "type": "float"}, "Ventilation Rate": {"ignore_malformed": true, "type": "float"}, "Refrigerated Case Doors": {"type": "string"}, "Guiding Principles - % Not Applicable": {"type": "string"}, "Name of Retro-commissioning Certification Holder": {"type": "string"}, "Metal Halide Start Type": {"type": "string"}, "Measure First Cost": {"ignore_malformed": true, "type": "float"}, "Library - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Perimeter": {"ignore_malformed": true, "type": "float"}, "Condenser Type": {"type": "string"}, "Adult Education - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Luminaire Height": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Cash Register Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design K-12 School - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Percent Better than National Median Site EUI": {"ignore_malformed": true, "type": "float"}, "Financial Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Zoo - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Direct GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Water Use": {"ignore_malformed": true, "type": "float"}, "Dehumidification Type": {"type": "string"}, "Prison/Incarceration - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.2 Energy - Efficient Products": {"type": "string"}, "Output Capacity": {"ignore_malformed": true, "type": "float"}, "Cooking Equipment is Third Party Certified": {"type": "string"}, "Guiding Principles - % Not Assessed": {"type": "string"}, "Urgent Care/Clinic/Other Outpatient - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.1 Energy - Energy Efficiency Any Option (Any Option)": {"type": "string"}, "Alternative Water Generated On-Site - Indoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Utility Account Number": {"type": "string"}, "Skylight to Roof Ratio": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Water/Wastewater Site Electricity Intensity (kWh/gpd)": {"ignore_malformed": true, "type": "float"}, "Weather Year": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Convention Center - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Winter Peak Electricity Reduction": {"ignore_malformed": true, "type": "float"}, "Target Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Number of Meals": {"ignore_malformed": true, "type": "float"}, "Indirect GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Design Ambulatory Surgical Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Number of Worker on Main Shift": {"ignore_malformed": true, "type": "float"}, "Humidification Type": {"type": "string"}, "Casino - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site Electricity (kWh)": {"ignore_malformed": true, "type": "float"}, "Design Natural Gas Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Restaurant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Source EUI - Adjusted to Current Year (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.2 Indoor Environment - Moisture Control": {"type": "string"}, "Design Energy/Power Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Indirect GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Dishwasher Energy Factor": {"ignore_malformed": true, "type": "float"}, "Coal - Anthracite Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Other - Education - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Supply Fraction of Duct Leakage": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Station Category": {"type": "string"}, "Foundation Wall Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Space Number Main Shift Workers": {"ignore_malformed": true, "type": "float"}, "Data Center - IT Equipment Input Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "On-site Renewable Electricity": {"ignore_malformed": true, "type": "float"}, "Date of Last PM Modification": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Municipally Supplied Potable Water: Combined Indoor/Outdoor or Other Cost ($)": {"ignore_malformed": true, "type": "float"}, "Slab Insulation Condition": {"type": "string"}, "Police Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Number of Discrete Fan Speeds - Heating": {"ignore_malformed": true, "type": "float"}, "Number of Ballasts per Luminaire": {"ignore_malformed": true, "type": "float"}, "Outside Air Temperature Upper Limit Cooling Reset Control": {"ignore_malformed": true, "type": "float"}, "Installed Fan Flow Rate": {"ignore_malformed": true, "type": "float"}, "Fluorescent Start Type": {"type": "string"}, "Chilled Water Reset Control": {"type": "string"}, "Anti-Sweat Heater Power": {"ignore_malformed": true, "type": "float"}, "Federal Region/Sub-Department": {"type": "string"}, "Outpatient Rehabilitation/Physical Therapy - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design District Hot Water Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Boiler Type": {"type": "string"}, "Bar/Nightclub - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Point Of Use": {"type": "string"}, "Summer Peak Electricity Reduction": {"ignore_malformed": true, "type": "float"}, "Slab Perimeter": {"ignore_malformed": true, "type": "float"}, "Pre-school/Daycare - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Lighting Control Type Timer": {"type": "string"}, "Other HVAC Type": {"type": "string"}, "Guiding Principle 4.1 Indoor Environment - Ventilation and Thermal Comfort": {"type": "string"}, "Demand Reduction": {"ignore_malformed": true, "type": "float"}, "Green Power - Offsite (kWh)": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Cooling Type": {"type": "string"}, "Food Service - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Mailing Center/Post Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Design Drinking Water Treatment & Distribution - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Steam Boiler Maximum Operating Pressure": {"ignore_malformed": true, "type": "float"}, "Investment in Energy Projects, Cumulative ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Special/Other Events per Year": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Potable Water - Indoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Occupant Activity Level": {"type": "string"}, "Worship Facility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Other - Education - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Reclaimed Water - Indoor Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Manufacturing/Industrial Plant - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Target Total GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Setpoint temperature cooling": {"ignore_malformed": true, "type": "float"}, "Ice/Curling Rink - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Power Minimum Ratio": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Ice Events": {"ignore_malformed": true, "type": "float"}, "Weather Type": {"type": "string"}, "PM Profile Status": {"type": "string"}, "Other - Lodging/Residential - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Annual Combined Whole Building Annual Weather Normalized Site Resource Use": {"ignore_malformed": true, "type": "float"}, "Design Diesel #2 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Target Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Motor HP": {"ignore_malformed": true, "type": "float"}, "Convenience Store without Gas Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Police Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Chiller Compressor Driver": {"type": "string"}, "Multifamily Housing - Resident Population Type": {"type": "string"}, "Strip Mall - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Ventilation Type": {"type": "string"}, "Courthouse - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Refrigerated Warehouse - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Supply Air Control Strategy": {"type": "string"}, "Software program used": {"type": "string"}, "Duct Type": {"type": "string"}, "Cooling Supply Air Temperature": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Duct Leakage Test Method": {"type": "string"}, "Ventilation Zone Control": {"type": "string"}, "Funding from Tax Credits": {"type": "string"}, "Vocational School - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Absorption Heat Source": {"type": "string"}, "Transportation Terminal/Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Slab Insulation Orientation": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Outdoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Adult Education - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Target ENERGY STAR Score": {"ignore_malformed": true, "type": "float"}, "Design Vocational School - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Potable Water: Combined Indoor/Outdoor or Other Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Outside Air Reset Minimum Cooling Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Normalization Years": {"type": "string"}, "Tank Heating Type": {"type": "string"}, "Electricity Use - Generated from Onsite Renewable Systems and Exported (kWh)": {"ignore_malformed": true, "type": "float"}, "Primary Contact": {"type": "string"}, "Average Daily Hours": {"ignore_malformed": true, "type": "float"}, "Courthouse - Number of Computers": {"ignore_malformed": true, "type": "float"}, "eGRID Output Emissions Rate (kgCO2e/MBtu)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Enclosed Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Number of Concert/Show Events per Year": {"ignore_malformed": true, "type": "float"}, "Design Financial Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Heat Pump Backup AFUE": {"ignore_malformed": true, "type": "float"}, "Target Finder EUI": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Certification - Year(s) Certified": {"type": "string"}, "Coke Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Adult Education - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "NAICS Code": {"type": "string"}, "Self-Storage Facility - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "ENERGY Star Score": {"ignore_malformed": true, "type": "float"}, "Process Load Duty Cycle": {"type": "string"}, "Alternative Water Generated On-Site: Combined Indoor/Outdoor or Other Cost ($)": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Number of Discrete Fan Speeds - Cooling": {"ignore_malformed": true, "type": "float"}, "Vocational School - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Recreation - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Museum - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Convenience Store without Gas Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fuel Oil #5 & 6 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Receive Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Automobile Dealership - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Fenestration Area": {"ignore_malformed": true, "type": "float"}, "Aquarium - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "NPV of Tax Implications": {"ignore_malformed": true, "type": "float"}, "Casino - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Window to Wall Ratio": {"ignore_malformed": true, "type": "float"}, "Internal Rate of Return": {"ignore_malformed": true, "type": "float"}, "Residence Hall/ Dormitory - Computer Lab": {"type": "string"}, "Defrost Type": {"type": "string"}, "Supermarket/Grocery - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Design Greenhouse Gas Emissions": {"ignore_malformed": true, "type": "float"}, "Energy Cost Intensity ($)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.4 Energy - Measurement and Verification": {"type": "string"}, "Ambulatory Surgical Center - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Building Certification": {"type": "string"}, "Door Visible Transmittance": {"ignore_malformed": true, "type": "float"}, "Convenience Store without Gas Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Data Station ID": {"type": "string"}, "Plug Load Peak Power": {"ignore_malformed": true, "type": "float"}, "Type of Measure": {"type": "string"}, "Active Dehumidification": {"type": "string"}, "Design ENERGY STAR Score": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Exterior Entrance to the Public": {"ignore_malformed": true, "type": "float"}, "College/University - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Kerosene Cost ($)": {"ignore_malformed": true, "type": "float"}, "Design Zoo - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Liquid Propane Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Window Orientation": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "National Median Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "Dryer Primary Energy Use Per Load": {"ignore_malformed": true, "type": "float"}, "Library - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Indoor Intensity (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Design Static Pressure": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Type": {"type": "string"}, "Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Net Metering": {"type": "string"}, "Demand Window": {"type": "string"}, "Recirculation Loop Count": {"ignore_malformed": true, "type": "float"}, "Lot Size": {"ignore_malformed": true, "type": "float"}, "K-12 School - Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Compressor Unloader": {"type": "string"}, "Design Multifamily Housing - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Annual Fuel Use Native Units (Native Units)": {"type": "string"}, "Municipally Supplied Potable Water - Indoor Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Convenience Store with Gas Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Clothes Washer Modified Energy Factor": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Number of Commercial Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Number of Refrigerant Return Lines": {"ignore_malformed": true, "type": "float"}, "National Median Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Property Data Administrator": {"type": "string"}, "Natural Ventilation Method": {"type": "string"}, "Outpatient Rehabilitation/Physical Therapy - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Student Seating Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Percent of Roof Terraces": {"ignore_malformed": true, "type": "float"}, "Cooling Control Strategy": {"type": "string"}, "Rate Structure Effective Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Overhang Height above Window": {"ignore_malformed": true, "type": "float"}, "Typical Skylights SHGC": {"ignore_malformed": true, "type": "float"}, "MV Cost": {"ignore_malformed": true, "type": "float"}, "Transportation Terminal/Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Race Track - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Target % Better Than Median Source EUI": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.2 Water - Outdoor Water Any Option (Any Option)": {"type": "string"}, "Other - Utility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Indoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "PV Module Width": {"ignore_malformed": true, "type": "float"}, "District Hot Water Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "PM Sharing Account": {"type": "string"}, "Hospital (General Medical & Surgical) - Owned By": {"type": "string"}, "Evaporative Cooling Entering Supply Air WB Temperature": {"ignore_malformed": true, "type": "float"}, "Roof Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "National Median Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Percent Savings in Lighting Power Density": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Type of Rate Structure": {"type": "string"}, "Typical Window Frame R-Value": {"ignore_malformed": true, "type": "float"}, "Evaporative Cooling Operation": {"type": "string"}, "Liquid Propane Cost ($)": {"ignore_malformed": true, "type": "float"}, "Other - Specialty Hospital - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Self-Storage Facility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Outpatient Rehabilitation/Physical Therapy - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Number of Cash Registers": {"ignore_malformed": true, "type": "float"}, "Heating Type": {"type": "string"}, "Annual Heating Efficiency Value": {"ignore_malformed": true, "type": "float"}, "Percentage of Common Space": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Primary Hot Water Fuel Type for units (for units)": {"type": "string"}, "Duct Pressure Test Leakage Percentage (Percentage)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Financial Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Contact Address 1": {"type": "string"}, "Contact Address 2": {"type": "string"}, "Senior Care Community - Number of Commercial Refrigeration/ Freezer Units": {"ignore_malformed": true, "type": "float"}, "Design Swimming Pool - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water Alerts": {"type": "string"}, "Annual Efficiency Unit": {"type": "string"}, "Barracks - Dining Hall": {"type": "string"}, "Zoo - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Full Service Spa Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Electric Distribution Utility": {"type": "string"}, "Design Total GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Prison/Incarceration - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Window Height": {"ignore_malformed": true, "type": "float"}, "Guiding Principles - Checklist Manager": {"type": "string"}, "Measure Capital Replacement Costs": {"ignore_malformed": true, "type": "float"}, "Rate Structure End Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Thermal Efficiency": {"ignore_malformed": true, "type": "float"}, "Replaced/modified/removed system identifier": {"type": "string"}, "Schedule Type": {"ignore_malformed": true, "type": "float"}, "District Chilled Water": {"type": "string"}, "Minimum Outside Air Percentage": {"ignore_malformed": true, "type": "float"}, "Lifestyle Center - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Exterior Wall Type": {"type": "string"}, "Design Other - Lodging/Residential - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Laundry Type": {"type": "string"}, "Design Refrigerated Warehouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Compressor Unloader Stages": {"type": "string"}, "Design Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Wall Insulation Continuity": {"type": "string"}, "Financial Office - Number of Computers": {"ignore_malformed": true, "type": "float"}, "GHG Emissions": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Open or Closed Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Property Management Company": {"type": "string"}, "Municipally Supplied Reclaimed Water: Combined Indoor/Outdoor or Other Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Design Prison/Incarceration - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Flow Control Type": {"type": "string"}, "K-12 School - Gymnasium Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Heat Pump Backup Heating Switchover Temperature": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Year Of Latest Retrofit": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Fenestration R-value": {"ignore_malformed": true, "type": "float"}, "Return Duct Percent Conditioned Space": {"ignore_malformed": true, "type": "float"}, "Minimum Fan Speed as a Fraction of Maximum - Cooling": {"ignore_malformed": true, "type": "float"}, "Barracks - Computer Lab": {"type": "string"}, "Fuel Oil (No. 2) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Average Effluent Biological Oxygen Demand (BOD5) (mg/l)": {"ignore_malformed": true, "type": "float"}, "Ground Coupling": {"type": "string"}, "Diesel": {"type": "string"}, "Other - Education - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Other - Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Demand Ratchet Percentage": {"ignore_malformed": true, "type": "float"}, "Premises Gross Floor Area": {"ignore_malformed": true, "type": "float"}, "Scope": {"type": "string"}, "Design District Steam Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Education - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water Current Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "normalized_address": {"index": "not_analyzed", "type": "string", "store": true}, "Design Temperature Difference": {"ignore_malformed": true, "type": "float"}, "Number of Months in Operation": {"ignore_malformed": true, "type": "float"}, "Barracks- Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Fast Food Restaurant - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Adult Education - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Station ID": {"type": "string"}, "Hospital (General Medical & Surgical) - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Pump Application": {"type": "string"}, "Design Bank Branch - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Enclosed Mall - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Room Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "IT System Type": {"type": "string"}, "Desuperheat Valve": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 1.1 Integrated - Team": {"type": "string"}, "Wall Area": {"ignore_malformed": true, "type": "float"}, "Certification Year": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Roller Rink - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Third Party Certification Date Anticipated": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Target Finder Baseline": {"ignore_malformed": true, "type": "float"}, "Total Water Cost (All Water Sources) ($)": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Water-Side Economizer Temperature Maximum": {"ignore_malformed": true, "type": "float"}, "Home Energy Score": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Application Status": {"type": "string"}, "Estimated Savings from Energy Projects, Cumulative ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Specialty Hospital - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Swimming Pool - Months in Use": {"ignore_malformed": true, "type": "float"}, "Skylight Solar tube": {"type": "string"}, "Avoided Emissions - Offsite Green Power (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Police Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Space Peak Number of Occupants": {"ignore_malformed": true, "type": "float"}, "Outpatient Rehabilitation/Physical Therapy - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Heating Setback Temperature": {"ignore_malformed": true, "type": "float"}, "Design Repair Services (Vehicle, Shoe, Locksmith, etc) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Courthouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Capacity": {"ignore_malformed": true, "type": "float"}, "Pump Maximum Flow Rate": {"ignore_malformed": true, "type": "float"}, "Design Museum - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Sporting Events per Year": {"ignore_malformed": true, "type": "float"}, "Economizer Control": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Investment in Energy Projects, Cumulative ($/GPD)": {"ignore_malformed": true, "type": "float"}, "Design Other - Recreation - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Anti-Sweat Heaters": {"type": "string"}, "Coal (bituminous) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Window Frame Type": {"type": "string"}, "Other - Education - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Measure Implementation Status": {"type": "string"}, "Single Family Home - Bedroom Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Certification Expiration Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Mailing Center/Post Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Roof Color": {"type": "string"}, "Windows Gas Filled": {"type": "string"}, "Design Kerosene Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "SHW Control Type": {"type": "string"}, "Other Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Annual Savings Cost (Cost)": {"ignore_malformed": true, "type": "float"}, "PV System Location": {"type": "string"}, "Municipally Supplied Potable Water - Indoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Reclaimed Water - Indoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Latitude": {"type": "string"}, "Design College/University - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Vocational School - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Average Weekly Business Hours": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Lifestyle Center - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Reheat Control Strategy": {"type": "string"}, "Urgent Care/Clinic/Other Outpatient - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Schedule Begin Month": {"ignore_malformed": true, "type": "float"}, "Other - Services - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Country": {"type": "string"}, "Primary Service Hot Water Fuel": {"type": "string"}, "Plug Load Type": {"type": "string"}, "Number of Occupants": {"ignore_malformed": true, "type": "float"}, "Vocational School - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Data Center - UPS Output Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "Green Power - Onsite and Offsite (kWh)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 5.3 Materials - Environmentally Preferred Products": {"type": "string"}, "Clothes Washer Capacity": {"ignore_malformed": true, "type": "float"}, "Motor Enclosure Type": {"type": "string"}, "PM Administrator": {"type": "string"}, "Data Center - Cooling Equipment Redundancy": {"type": "string"}, "Annual Combined Whole Builidng Annual Source Energy Use Intensity (EUI)": {"ignore_malformed": true, "type": "float"}, "Auditor Company": {"type": "string"}, "Restaurant - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Guiding Principles - Principles Date Anticipated": {"type": "string"}, "Urgent Care/Clinic/Other Outpatient - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Window Frame": {"type": "string"}, "Roller Rink - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Percent Better than National Median Water/Wastewater Source EUI": {"ignore_malformed": true, "type": "float"}, "Fast Food Restaurant - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "ASHRAE Baseline Lighting Power Density": {"ignore_malformed": true, "type": "float"}, "First Cost": {"ignore_malformed": true, "type": "float"}, "Casino - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Laundry Equipment Usage": {"type": "string"}, "Retail Store - Cash Register Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.4 Water - Efficient Products": {"type": "string"}, "Source EUI - Adjusted to Current Year (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Barracks- Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Source Site Ratio": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Certification - Next Eligible Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Coal - Bituminous Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Water Cooled Condenser Flow Control": {"type": "string"}, "Design Pre-school/Daycare - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.4 Indoor Environment - Daylighting and Occupant Controls Any Option (Any Option)": {"type": "string"}, "Property Floor Area (Buildings and Parking) (ft2)": {"ignore_malformed": true, "type": "float"}, "Control Technology": {"type": "string"}, "Marginal Cost Rate": {"ignore_malformed": true, "type": "float"}, "Contact Postal Code": {"type": "string"}, "Fuel Oil #2 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Percent Better Than Baseline Design Site Energy Use Intensity": {"ignore_malformed": true, "type": "float"}, "Typical Floor R-Value": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Wall Framing Factor": {"ignore_malformed": true, "type": "float"}, "Outpatient Rehabilitation/Physical Therapy - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "District Chilled Water Cost ($)": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Type": {"type": "string"}, "M&V Option": {"type": "string"}, "Primary Heating Fuel Type": {"type": "string"}, "Refrigerant Subcooler": {"type": "string"}, "District Hot Water": {"type": "string"}, "Pre-school/Daycare - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Fire Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Wall Framing Material": {"type": "string"}, "Race Track - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Boiler Entering Water Temperature": {"ignore_malformed": true, "type": "float"}, "Refrigeration Unit is ENERGY STAR Rated": {"type": "string"}, "Pool Surface Area": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Utility Billpayer": {"type": "string"}, "Guiding Principles - % Complete (Yes or Not Applicable)": {"type": "string"}, "District Steam Cost ($)": {"ignore_malformed": true, "type": "float"}, "Percent of Electricity that is Green Power": {"ignore_malformed": true, "type": "float"}, "US Agency Designated Covered Facility ID": {"type": "string"}, "Library - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Fuel Generated": {"type": "string"}, "Supermarket/Grocery - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Hospital (General Medical & Surgical) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Outside Air Reset Maximum Heating Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Floor Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Avoided Emissions - Onsite and Offsite Green Power (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Federal Agency": {"type": "string"}, "Tank Height": {"ignore_malformed": true, "type": "float"}, "Heated Floor Area": {"ignore_malformed": true, "type": "float"}, "Floor Area Source": {"type": "string"}, "Stadium (Open) - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Floor Construction Type": {"type": "string"}, "Energy Baseline Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Primary Property Type - EPA Calculated": {"type": "string"}, "Weather Normalized Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Maximum Number of Floors": {"ignore_malformed": true, "type": "float"}, "Museum - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Size of Electronic Scoreboards (ft2)": {"ignore_malformed": true, "type": "float"}, "Target Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Annual Savings Source Energy (Source Energy)": {"ignore_malformed": true, "type": "float"}, "Design Target Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Recirculation Control Type": {"type": "string"}, "Design Other - Restaurant/Bar - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Quantity": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.6 Indoor Environment - Integrated Pest Management": {"type": "string"}, "Hospital (General Medical & Surgical) - Laboratory": {"type": "string"}, "Resource Generated On Site": {"ignore_malformed": true, "type": "float"}, "Other - Utility - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Biomass GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Weather Station Name": {"type": "string"}, "Guiding Principles - % In Process": {"type": "string"}, "Retail Store - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Refrigerant Charge Factor": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Area": {"ignore_malformed": true, "type": "float"}, "Aspect Ratio": {"ignore_malformed": true, "type": "float"}, "Other - Services - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Year of Last Energy Audit": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Indoor Arena - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Parking - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Percent of Window Area Shaded": {"ignore_malformed": true, "type": "float"}, "Daylight Sensors": {"type": "string"}, "Interior Visible Absorptance": {"ignore_malformed": true, "type": "float"}, "Crankcase Heater": {"type": "string"}, "Floor Covering": {"type": "string"}, "Simple Payback": {"ignore_malformed": true, "type": "float"}, "Metering Configuration": {"type": "string"}, "Refrigerated Warehouse - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Refrigeration Unit Size": {"ignore_malformed": true, "type": "float"}, "IT Energy Intensity": {"ignore_malformed": true, "type": "float"}, "Economizer": {"type": "string"}, "Wholesale Club/Supercenter- Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Auditor Team Member with Certification": {"type": "string"}, "K-12 School - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Site Address Line 2": {"type": "string"}, "Backup Generator": {"type": "string"}, "Roller Rink - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Site Address Line 1": {"type": "string"}, "Design Library - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "IT Standby Power": {"ignore_malformed": true, "type": "float"}, "Fire Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Premises Postal Code": {"type": "string"}, "Conveyance System Type": {"type": "string"}, "Race Track - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Roof Type": {"type": "string"}, "Convenience Store with Gas Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Target Total GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Cooking Facilities": {"type": "string"}, "K-12 School - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Single Store": {"type": "string"}, "Design Site EUI": {"ignore_malformed": true, "type": "float"}, "IT Peak Power": {"ignore_malformed": true, "type": "float"}, "Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "Recirculation Energy Loss Rate": {"ignore_malformed": true, "type": "float"}, "Lighting is FEMP Designated Product": {"type": "string"}, "Design Fire Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Distribution Type": {"type": "string"}, "Design Roller Rink - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Heat Gain Coefficient SHGC (SHGC)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Number of Residential Living Units": {"ignore_malformed": true, "type": "float"}, "Hotel - Amount of Laundry Processed On-site Annually (short tons/year)": {"ignore_malformed": true, "type": "float"}, "Doors Weather-Stripped": {"type": "string"}, "Restaurant - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Electricity Use - Generated from Onsite Renewable Systems and Used Onsite (kBtu)": {"ignore_malformed": true, "type": "float"}, "Electric Demand Rate": {"type": "string"}, "Food Service - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Specialty Hospital - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Heat Recovery Efficiency": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.1 Energy Efficiency - Option 3": {"type": "string"}, "Guiding Principle 2.1 Energy Efficiency - Option 2": {"type": "string"}, "Guiding Principle 2.1 Energy Efficiency - Option 1": {"type": "string"}, "Cooling Equipment Redundancy": {"type": "string"}, "Space Floors Below Grade": {"ignore_malformed": true, "type": "float"}, "Design Coal - Bituminous Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Split Condenser": {"type": "string"}, "Other Water Sources - Indoor Intensity (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Dishwasher Type": {"type": "string"}, "Movie Theater - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Light Shelf Exterior Protrusion": {"ignore_malformed": true, "type": "float"}, "Primary Air Distribution Type": {"type": "string"}, "Design Bowling Alley - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Day End Hour": {"ignore_malformed": true, "type": "float"}, "Boiler percent condensate return": {"ignore_malformed": true, "type": "float"}, "Weather Normalized Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Hot Water Boiler Maximum Flow Rate": {"ignore_malformed": true, "type": "float"}, "Mailing Center/Post Office - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Horizontal Abutments": {"type": "string"}, "Space Use Description": {"type": "string"}, "K-12 School - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Indoor Arena - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "On-Site Generation Type": {"type": "string"}, "Design Single Family Home - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Minimum Dimming Power Fraction": {"ignore_malformed": true, "type": "float"}, "Target Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "National Average EUI": {"ignore_malformed": true, "type": "float"}, "Owner Street Address": {"type": "string"}, "Other - Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Air Duct Configuration": {"type": "string"}, "Mailing Center/Post Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Indirect GHG Emissions Intensity (kgCO2e/gpd)": {"ignore_malformed": true, "type": "float"}, "PV System Inverter Efficiency": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical)- Full Time Equivalent (FTE) Workers": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Food Service - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Year of Last Major Remodel": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Water Fixture Volume per Cycle": {"ignore_malformed": true, "type": "float"}, "Water Fixture Cycles per day": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Office - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Maximum Fan Power": {"ignore_malformed": true, "type": "float"}, "Typical Skylight Area": {"ignore_malformed": true, "type": "float"}, "Visible Transmittance": {"ignore_malformed": true, "type": "float"}, "Number of Cooling Stages": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Plant Design Flow Rate (MGD)": {"ignore_malformed": true, "type": "float"}, "Office - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Residual Value": {"type": "string"}, "Power Plant": {"type": "string"}, "Liquid Propane Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Window Glass Layers": {"ignore_malformed": true, "type": "float"}, "Design Other - Utility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Minimum Fan Flow Rate": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Number of Sporting Events per Year": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Size of Electronic Scoreboards (ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Efficiency": {"ignore_malformed": true, "type": "float"}, "Design Other - Public Services - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Average Influent Biological Oxygen Demand (BOD5) (mg/l)": {"ignore_malformed": true, "type": "float"}, "Enclosed Mall - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "SHW Setpoint Temp": {"ignore_malformed": true, "type": "float"}, "Duty Cycle": {"type": "string"}, "College/University - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Floors Partially Below Grade": {"ignore_malformed": true, "type": "float"}, "Retail Store - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Natural Gas Use (therms)": {"ignore_malformed": true, "type": "float"}, "Energy Storage Type": {"type": "string"}, "Food Sales - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Azimuth": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Manufacturing/Industrial Plant - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Occupancy Sensors": {"type": "string"}, "Case Return Line Diameter": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Design Aquarium - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Fixed Film Trickle Filtration Process": {"type": "string"}, "Design Courthouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Target Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Overhang Projection": {"type": "string"}, "National Median ENERGY STAR Score": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Barracks - Room Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Plug Load Equipment is ENERGY STAR Rated": {"type": "string"}, "Occupancy": {"type": "string"}, "Enclosed Mall - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Parent Property Name": {"type": "string"}, "Hotel- Number of Commercial Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Required Ventilation Rate": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 5.4 Materials - Waste and Materials Mgmt": {"type": "string"}, "Fast Food Restaurant - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.3 Water - Stormwater": {"type": "string"}, "Design Laboratory - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Premises Street Address 1": {"type": "string"}, "Other - Technology/Science - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Medical Office - Number of MRI Machines": {"ignore_malformed": true, "type": "float"}, "Heating Delivery Type": {"type": "string"}, "Other - Stadium - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Tertiary Care": {"type": "string"}, "Other - Public Services - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Wall R-Value": {"ignore_malformed": true, "type": "float"}, "Typical Window to Wall Ratio": {"ignore_malformed": true, "type": "float"}, "Refrigeration Energy": {"ignore_malformed": true, "type": "float"}, "Recommended Measure": {"type": "string"}, "K-12 School - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Wood Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Water Fixture Rated Flow Rate": {"ignore_malformed": true, "type": "float"}, "Number of Rooms": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Indoor Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Door Glazed Area Fraction": {"ignore_malformed": true, "type": "float"}, "Recirculation": {"type": "string"}, "Potable Water Savings": {"ignore_malformed": true, "type": "float"}, "Design Casino - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Window Sill Height": {"ignore_malformed": true, "type": "float"}, "Floor Type": {"type": "string"}, "Daylighting Illuminance Set Point": {"ignore_malformed": true, "type": "float"}, "Water-Side Economizer DB Temperature Maximum": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Fast Food Restaurant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Anti-Sweat Heater Controls Manufacturer": {"type": "string"}, "Design Wastewater Treatment Plant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Outpatient Rehabilitation/Physical Therapy - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Number of Staffed Beds": {"ignore_malformed": true, "type": "float"}, "Design Retail Store - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Worship Facility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Commercial Washing Machines": {"ignore_malformed": true, "type": "float"}, "Burner Type": {"type": "string"}, "Other - Services - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Pump Minimum Flow Rate": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Convenience Store with Gas Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Maximum Number of Floors": {"ignore_malformed": true, "type": "float"}, "National Median Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Number of Open or Closed Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Guiding Principles - % Yes": {"type": "string"}, "Refrigeration Unit Type": {"type": "string"}, "Medical Office - MRI Machine Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Transformer Rated Power": {"ignore_malformed": true, "type": "float"}, "Rated Cooling Sensible Heat Ratio": {"ignore_malformed": true, "type": "float"}, "Domestic Hot Water Type": {"type": "string"}, "Typical Window Area": {"ignore_malformed": true, "type": "float"}, "Laboratory - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other Water Sources: Combined Indoor/Outdoor or Other Cost ($)": {"ignore_malformed": true, "type": "float"}, "Arch2030 Baseline": {"ignore_malformed": true, "type": "float"}, "Alternate Baseline Lighting Power Density": {"ignore_malformed": true, "type": "float"}, "Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Veterinary Office - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Serves Multiple Buildings": {"type": "string"}, "Performing Arts - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Humidity Control Maximum": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Onsite Laundry Facility": {"type": "string"}, "Pool Pump Duty Cycle": {"type": "string"}, "Process Load Installed Power": {"ignore_malformed": true, "type": "float"}, "Other - Public Services - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Ownership Status": {"type": "string"}, "Convenience Store with Gas Station - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Zoo - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Window SHGC": {"ignore_malformed": true, "type": "float"}, "National Median Reference Property Type": {"type": "string"}, "Prison/Incarceration - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Roof Area": {"ignore_malformed": true, "type": "float"}, "Convention Center - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Fenestration Type": {"type": "string"}, "Economizer Low Temperature Lockout": {"type": "string"}, "ENERGY STAR Certification - Eligibility": {"type": "string"}, "Design Performing Arts - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Adult Education - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Open All Weekdays": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Number of Sporting Events per Year": {"ignore_malformed": true, "type": "float"}, "Average Weekly Hours": {"ignore_malformed": true, "type": "float"}, "Wood Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Performing Arts - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Generation Annual Operation Hours": {"ignore_malformed": true, "type": "float"}, "Total GHG Emissions Intensity (kgCO2e/ft2)": {"ignore_malformed": true, "type": "float"}, "Reactive Power Charge": {"ignore_malformed": true, "type": "float"}, "Technology Category": {"type": "string"}, "Roof Exterior Thermal Absorptance": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Interior Automated Shades": {"type": "string"}, "Design Ice/Curling Rink - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "College/University - Enrollment": {"ignore_malformed": true, "type": "float"}, "Roof Framing Depth": {"ignore_malformed": true, "type": "float"}, "Evaporative Cooling Entering Supply Air DB Temperature": {"ignore_malformed": true, "type": "float"}, "Annual Fuel Use Consistent Units (Consistent Units)": {"type": "string"}, "Design Target Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Pool Water Temperature": {"ignore_malformed": true, "type": "float"}, "Condensing Temperature": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Technology/Science - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Data Center - National Median PUE": {"ignore_malformed": true, "type": "float"}, "Cooling Stage Capacity": {"ignore_malformed": true, "type": "float"}, "District Chilled Water Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Outdoor Water Cost (All Water Sources) ($)": {"ignore_malformed": true, "type": "float"}, "Aquarium - Number of Computers": {"ignore_malformed": true, "type": "float"}, "K-12 School - High School": {"type": "string"}, "Other - Utility - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Food Service - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Laundry Unit Quantity": {"ignore_malformed": true, "type": "float"}, "Pool Type": {"type": "string"}, "Fuel Oil (No. 1) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Percent of Gross Floor Area That is Common Space Only": {"ignore_malformed": true, "type": "float"}, "Locations of exterior water intrusion damage": {"type": "string"}, "Police Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Electricity (Grid Purchase) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Light Shelf Distance from Top": {"ignore_malformed": true, "type": "float"}, "Laundry Unit Year of Manufacture": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Weather Data Source": {"type": "string"}, "Roof Exterior Solar Absorptance": {"ignore_malformed": true, "type": "float"}, "Boiler Insulation R Value": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Design PUE": {"ignore_malformed": true, "type": "float"}, "Food Service - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fitness Center/Health Club/Gym - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Residence Hall/ Dormitory - Dining Hall": {"type": "string"}, "Duct Pressure Test Leakage cfm (cfm)": {"ignore_malformed": true, "type": "float"}, "Data Center - IT Site Energy (kWh)": {"ignore_malformed": true, "type": "float"}, "Laboratory - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Setup temperature cooling": {"ignore_malformed": true, "type": "float"}, "Roof Framing Material": {"type": "string"}, "Lifestyle Center - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Roof Insulated Area": {"ignore_malformed": true, "type": "float"}, "CMU Fill": {"type": "string"}, "Evaporator Pressure Regulators": {"type": "string"}, "Cooling is FEMP Designated Product": {"type": "string"}, "Emissions Factor - Source": {"type": "string"}, "Other - Stadium - Size of Electronic Scoreboards (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Number of Concert/Show Events per Year": {"ignore_malformed": true, "type": "float"}, "Courthouse - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Window Horizontal Spacing": {"ignore_malformed": true, "type": "float"}, "Winter Peak": {"ignore_malformed": true, "type": "float"}, "Roof R-Value": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Source Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Residence Hall/Dormitory - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Reclaimed Water - Indoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Economizer Enthalpy Control Point": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Data Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "College/University - Grant Dollars ($)": {"ignore_malformed": true, "type": "float"}, "Outpatient Rehabilitation/Physical Therapy - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Cash Register Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Condensing Operation": {"type": "string"}, "Museum - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fan Placement": {"type": "string"}, "National Median Site EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Data Center - IT Energy Configuration": {"type": "string"}, "Medical Office - Surgical Operating Bed Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Potable": {"type": "string"}, "Quality Alert-Space Alert": {"type": "string"}, "Stadium (Closed) - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Percent of RECs Retained": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "National Median Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Lighting Type": {"type": "string"}, "REALPac Energy Benchmarking Program Building Name": {"type": "string"}, "Utility Meter Number": {"type": "string"}, "Stadium (Closed) - Number of Special/Other Events per Year": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Design Target Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Museum - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Technology/Science - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Other - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Other - Mall - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Food Sales - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Installed Power": {"ignore_malformed": true, "type": "float"}, "Primary Service Hot Water Location": {"type": "string"}, "Rated Lamp Life": {"ignore_malformed": true, "type": "float"}, "Natural Gas Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Clothes Washer Water Factor": {"ignore_malformed": true, "type": "float"}, "Energy Cost": {"ignore_malformed": true, "type": "float"}, "Cooling Tower Control Type": {"type": "string"}, "Annual Water Cost Savings": {"ignore_malformed": true, "type": "float"}, "Ice/Curling Rink - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Plumbing Penetration Sealing": {"type": "string"}, "Personal Services (Health/Beauty, Dry Cleaning, etc.) - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Cooling Degree Days (CDD) (\\u00b0F)": {"ignore_malformed": true, "type": "float"}, "Enclosed Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Duct Surface Area": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Owner Email Address": {"type": "string"}, "Pump Installed Flow Rate": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Licensed Bed Capacity Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Climate Zone": {"type": "string"}, "Police Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Net Present Value": {"ignore_malformed": true, "type": "float"}, "Other - Technology/Science - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Computers": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Certification - Profile Published": {"type": "string"}, "Senior Care Community - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Input Voltage": {"ignore_malformed": true, "type": "float"}, "Electricity Sourced from Onsite Renewable Systems": {"ignore_malformed": true, "type": "float"}, "Motor RPM": {"ignore_malformed": true, "type": "float"}, "Ownership": {"type": "string"}, "Convenience Store without Gas Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Coke Cost ($)": {"ignore_malformed": true, "type": "float"}, "Fan Size": {"ignore_malformed": true, "type": "float"}, "Pool Hours Uncovered": {"ignore_malformed": true, "type": "float"}, "District Hot Water Cost ($)": {"ignore_malformed": true, "type": "float"}, "Veterinary Office - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Heating Degree Days (HDD) (\\u00b0F)": {"ignore_malformed": true, "type": "float"}, "Portfolio Manager Parent Property ID": {"type": "string"}, "Senior Care Community - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Type of resource meter": {"type": "string"}, "Museum - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Wall Exterior Thermal Absorptance": {"ignore_malformed": true, "type": "float"}, "Aquarium - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Percent Skylight Area": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other Financial Incentives": {"type": "string"}, "Target Site Energy Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "College/University - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.2 Outdoor Water - Option 3": {"type": "string"}, "Guiding Principle 3.2 Outdoor Water - Option 2": {"type": "string"}, "Guiding Principle 3.2 Outdoor Water - Option 1": {"type": "string"}, "Water-Side Economizer Temperature Setpoint": {"ignore_malformed": true, "type": "float"}, "Pump Operation": {"type": "string"}, "Other - Specialty Hospital - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Target Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Distribution Center - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Heat Recovery Type": {"type": "string"}, "Drinking Water Treatment & Distribution - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Quality Alert-Energy Alerts": {"type": "string"}, "Urgent Care/Clinic/Other Outpatient - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Refrigeration Compressor Type": {"type": "string"}, "Floor Area Value": {"ignore_malformed": true, "type": "float"}, "Work Plane Height": {"ignore_malformed": true, "type": "float"}, "Worship Facility - Seating Capacity": {"ignore_malformed": true, "type": "float"}, "Avoided Emissions - Onsite Green Power (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Benchmark Type": {"type": "string"}, "Multifamily Housing - Number of Dishwasher Hookups": {"ignore_malformed": true, "type": "float"}, "Roof Slope": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Annual Combined Whole Building Annual Weather Normalized Source Resource Use": {"ignore_malformed": true, "type": "float"}, "Primary Heating Type": {"type": "string"}, "Data Center - PUE": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Roller Rink - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Race Track - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Primary Fan Configuration": {"type": "string"}, "ENERGY STAR Certification - Last Approval Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Avoided Emissions": {"ignore_malformed": true, "type": "float"}, "Generation Capacity Unit": {"type": "string"}, "Other - Restaurant/Bar - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Fast Food Restaurant - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Fuel Oil (No. 4) Cost ($)": {"ignore_malformed": true, "type": "float"}, "Marginal Sell Rate": {"ignore_malformed": true, "type": "float"}, "Pool Control Type": {"type": "string"}, "Name of Audit Certification Holder": {"type": "string"}, "Roof Framing Configuration": {"type": "string"}, "Design Race Track - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 4.5 Indoor Environment - Low-Emitting Materials": {"type": "string"}, "Service and Product Provider": {"type": "string"}, "Mailing Center/Post Office - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Laboratory - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Measure Name": {"type": "string"}, "Normalization Start Year": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Bar/Nightclub - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Outside Air Temperature Upper Limit Heating Reset Control": {"ignore_malformed": true, "type": "float"}, "Laboratory - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Direct GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Number of Heating Stages": {"ignore_malformed": true, "type": "float"}, "Barracks- Number of Rooms": {"ignore_malformed": true, "type": "float"}, "Pool is Heated": {"type": "string"}, "Vertical Edge Fin Only": {"type": "string"}, "Owner Postal Code": {"type": "string"}, "Stadium (Open) - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Potable Water - Outdoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Year PM Benchmarked": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Biomass GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Cooling is ENERGY STAR Rated": {"type": "string"}, "Wall Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Other - Specialty Hospital - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Design Convention Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Residence Hall/Dormitory - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Zoo - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Typical Skylight U-Value": {"ignore_malformed": true, "type": "float"}, "Other - Utility - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Prison/Incarceration - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Data Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 5.2 Materials - Biobased Content": {"type": "string"}, "Electricity Use - Grid Purchase and Generated from Onsite Renewable Systems (kBtu)": {"ignore_malformed": true, "type": "float"}, "Water Use (All Water Sources) (kgal)": {"ignore_malformed": true, "type": "float"}, "Other - Lodging/Residential - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Bowling Alley - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Indoor Water Cost Intensity (All Water Sources) ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Number of Cash Registers": {"ignore_malformed": true, "type": "float"}, "eGRID Region Code": {"type": "string"}, "Guiding Principle 5.1 Materials - Recycled Content": {"type": "string"}, "Year Occupied": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Building air leakage unit": {"type": "string"}, "Typical Window U-Value": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Heating Refrigerant Type": {"type": "string"}, "Senior Care Community - Residential Washing Machine Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Outside Air Temperature Lower Limit Heating Reset Control": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Funding from Rebates": {"type": "string"}, "Process Load Type": {"type": "string"}, "Design Propane Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Financial Office - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Average Cooling Operating Hours": {"ignore_malformed": true, "type": "float"}, "Building Operator Name": {"type": "string"}, "Supermarket/Grocery - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Social/Meeting Hall - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Premises Tax Map Number": {"type": "string"}, "Retro-commissioning Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Water/Wastewater Estimated Savings from Energy Projects, Cumulative ($/GPD)": {"ignore_malformed": true, "type": "float"}, "Case Door Orientation": {"type": "string"}, "Owner Telephone Number": {"type": "string"}, "Office - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Movie Theater - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Urgent Care/Clinic/Other Outpatient - Number of Computers": {"ignore_malformed": true, "type": "float"}, "U.S. Federal Campus": {"type": "string"}, "Tightness": {"type": "string"}, "K-12 School - Student Seating Capacity": {"ignore_malformed": true, "type": "float"}, "Zoo - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Multiple Building Heights": {"ignore_malformed": true, "type": "float"}, "Hotel - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Annual Combined Whole Builidng Annual Site Energy Use Intensity (EUI)": {"ignore_malformed": true, "type": "float"}, "Other - Services - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Prison/Incarceration - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Stadium - Number of Concert/Show Events per Year": {"ignore_malformed": true, "type": "float"}, "Number of Computers": {"ignore_malformed": true, "type": "float"}, "Scenario Type": {"type": "string"}, "Restaurant - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Reference Case": {"type": "string"}, "Wastewater Treatment Plant - Nutrient Removal": {"type": "string"}, "Municipally Supplied Potable Water - Indoor Intensity (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Condenser Fan Speed Operation": {"type": "string"}, "Weather Normalized Water/Wastewater Site Natural Gas Intensity (therms/gpd)": {"ignore_malformed": true, "type": "float"}, "Window Width": {"ignore_malformed": true, "type": "float"}, "Plug Load Standby Power": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Restaurant - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Government Subsidized Housing": {"type": "string"}, "Peak Occupancy Percentage": {"ignore_malformed": true, "type": "float"}, "Daily Hot Water Draw": {"ignore_malformed": true, "type": "float"}, "Analysis Period": {"type": "string"}, "Fan Application": {"type": "string"}, "Hotel - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Premises Conditioned Floor Area": {"ignore_malformed": true, "type": "float"}, "Design Other - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Onsite Renewable System Electricity Exported": {"ignore_malformed": true, "type": "float"}, "Pipe Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Site Use Description": {"type": "string"}, "PV System Maximum Power Output": {"ignore_malformed": true, "type": "float"}, "Measure Scale of Application": {"type": "string"}, "Transportation Terminal/Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Residence Hall/Dormitory - Number of Rooms": {"ignore_malformed": true, "type": "float"}, "Storage Tank Insulation R-Value": {"ignore_malformed": true, "type": "float"}, "Single Family Home - Number of Bedrooms": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Ventilation Control Method": {"type": "string"}, "Bank Branch - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Medical Office - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Cooking Facilities": {"type": "string"}, "Hospital (General Medical & Surgical) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 3.1 Water - Indoor Water Any Option (Any Option)": {"type": "string"}, "Typical Ground Coupling Type": {"type": "string"}, "Contact City": {"type": "string"}, "Design Distribution Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Entertainment/Public Assembly - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Pre-school/Daycare - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Tightness/Fit Condition": {"type": "string"}, "Design Other - Services - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Utility - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "College/University - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Retail Store - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Wall Insulation Material": {"type": "string"}, "Gas Price Escalation Rate": {"ignore_malformed": true, "type": "float"}, "Absorption Stages": {"type": "string"}, "Floor R-Value": {"ignore_malformed": true, "type": "float"}, "Floor Area Custom Name": {"type": "string"}, "Water/Wastewater Direct GHG Emissions Intensity (kgCO2e/gpd)": {"ignore_malformed": true, "type": "float"}, "Multifamily Housing - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Retail Store - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Number of Open or Closed Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Supply Air Temp Reset Control": {"type": "string"}, "Stadium (Closed) - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Single Family Home - Density of People (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Hot Water Present": {"type": "string"}, "Wall Framing Configuration": {"type": "string"}, "National Median Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Hotel - Commercial Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Weekend Operation": {"type": "string"}, "Fire Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "LEED Certification Audit Exemption": {"type": "string"}, "Hospital (General Medical & Surgical) - Full Time Equivalent (FTE) Workers Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Premises Tax Book Number": {"type": "string"}, "Supermarket/Grocery - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Certification Program": {"type": "string"}, "Boiler Leaving Water Temperature": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Number of Computers": {"ignore_malformed": true, "type": "float"}, "Control Type": {"type": "string"}, "Premises Block Number": {"type": "string"}, "Repair Services (Vehicle, Shoe, Locksmith, etc.) - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Bar/Nightclub - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Summer Peak": {"ignore_malformed": true, "type": "float"}, "Convention Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Lamp Distribution Type": {"type": "string"}, "Water-Side Economizer Type": {"type": "string"}, "Manufacturing/Industrial Plant - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Transportation Terminal/Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "PV System Array Azimuth": {"ignore_malformed": true, "type": "float"}, "Roof Insulation Type": {"type": "string"}, "Premises Occupied Floor Area": {"ignore_malformed": true, "type": "float"}, "Skylight Operability": {"type": "string"}, "Financial Office - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "SHW is ENERGY STAR Rated": {"type": "string"}, "Stadium (Open) - Enclosed Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indirect GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Guiding Principle 2.5 Energy - Benchmarking": {"type": "string"}, "Lighting Control Type Occupancy": {"type": "string"}, "Premises Custom ID": {"type": "string"}, "Hospital (General Medical & Surgical) - Number of Workers on Main Shift Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Fuel Oil #4 Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "K-12 School - School District": {"type": "string"}, "Municipally Supplied Reclaimed Water: Combined Indoor/Outdoor or Other Cost ($)": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Retail Store - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "End Time Stamp": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Design Lifestyle Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Wholesale Club/Supercenter- Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Other Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Source Energy Use - Adjusted to Current Year (kBtu)": {"ignore_malformed": true, "type": "float"}, "Annual Savings Site Energy (Site Energy)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Economizer Type": {"type": "string"}, "Tank Volume": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Resident Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Number of Units": {"ignore_malformed": true, "type": "float"}, "Automobile Dealership - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Wastewater Treatment Plant - Average Influent Flow (MGD)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Swimming Pool - Location of Pool": {"type": "string"}, "Manufacturing/Industrial Plant - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "College/University - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Heating Staging": {"type": "string"}, "Distance Between Vertical Fins": {"ignore_malformed": true, "type": "float"}, "Total Heat Rejection": {"ignore_malformed": true, "type": "float"}, "Guiding Principles - % No": {"type": "string"}, "Floor Framing Configuration": {"type": "string"}, "Medical Office - Number of Surgical Operating Beds": {"ignore_malformed": true, "type": "float"}, "Restaurant - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Non-Refrigerated Warehouse - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Heating Setpoint setpoint": {"ignore_malformed": true, "type": "float"}, "Weather-Stripped": {"type": "string"}, "Fuel Use Intensity": {"ignore_malformed": true, "type": "float"}, "Contact State": {"type": "string"}, "Roof Framing Factor": {"ignore_malformed": true, "type": "float"}, "Bar/Nightclub - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Locations of interior water intrusion damage": {"type": "string"}, "Exterior Door Type": {"type": "string"}, "Enclosed Mall - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Slab Exposed Perimeter": {"ignore_malformed": true, "type": "float"}, "Type of Cooking Equipment": {"type": "string"}, "Target Water/Wastewater Source EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Enclosed Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Supermarket/Grocery - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Water/Wastewater Total GHG Emissions Intensity (kgCO2e/gpd)": {"ignore_malformed": true, "type": "float"}, "Discount Factor": {"ignore_malformed": true, "type": "float"}, "Retail Store - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Laboratory - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Premises Count": {"ignore_malformed": true, "type": "float"}, "Urgent Care/Clinic/Other Outpatient - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "OM Cost Annual Savings": {"ignore_malformed": true, "type": "float"}, "Casino - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Water Baseline Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Typical Window Type": {"type": "string"}, "Steam Boiler Minimum Operating Pressure": {"ignore_malformed": true, "type": "float"}, "Energy Recovery Efficiency": {"ignore_malformed": true, "type": "float"}, "Duct Insulation R-Value": {"ignore_malformed": true, "type": "float"}, "Premises City": {"type": "string"}, "Aquarium - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Vestibule": {"type": "string"}, "Municipally Supplied Reclaimed Water - Outdoor Cost ($)": {"ignore_malformed": true, "type": "float"}, "Indirect Tank Heating Source": {"type": "string"}, "Other - Public Services - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Federal Department": {"type": "string"}, "Other - Recreation - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Single Family Home - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Solar Thermal System Collector Tilt": {"ignore_malformed": true, "type": "float"}, "Fire Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Typical Exterior Shading Type": {"type": "string"}, "Anti-Sweat Heater Controls": {"type": "string"}, "Ice/Curling Rink - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other Peak Rate": {"type": "string"}, "Design Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - MRI Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "K-12 School - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Pre-school/Daycare - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Duct Insulation": {"type": "string"}, "Bar/Nightclub - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Property Floor Area (Parking) (ft2)": {"ignore_malformed": true, "type": "float"}, "Resource": {"type": "string"}, "PV Module Length": {"ignore_malformed": true, "type": "float"}, "Tank Perimeter": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Licensed Bed Capacity": {"ignore_malformed": true, "type": "float"}, "Food Sales - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Ballast Type": {"type": "string"}, "Indoor Arena - Number of Special/Other Events per Year": {"ignore_malformed": true, "type": "float"}, "Door Configuration": {"type": "string"}, "Guiding Principle 1.5 Integrated - Commissioning": {"type": "string"}, "Convention Center - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Convention Center - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Target Water/Wastewater Site EUI (kBtu/gpd)": {"ignore_malformed": true, "type": "float"}, "Calculation Method": {"type": "string"}, "Radiant Barrier": {"type": "string"}, "Bar/Nightclub - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Light Shelf Interior Protrusion": {"ignore_malformed": true, "type": "float"}, "Convenience Store with Gas Station - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "ENERGY STAR Certification - Application Status": {"type": "string"}, "Veterinary Office - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Conveyance Standby Power": {"ignore_malformed": true, "type": "float"}, "Outside Air Reset Maximum Cooling Supply Temperature": {"ignore_malformed": true, "type": "float"}, "Energy/Power Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Floor-to-Floor Height": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Ice Events": {"ignore_malformed": true, "type": "float"}, "Transportation Terminal/Station - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Primary Zonal Cooling Type": {"type": "string"}, "eGRID Subregion": {"type": "string"}, "Window Sill Height": {"ignore_malformed": true, "type": "float"}, "Food Sales - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Convention Center - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Foundation Wall Insulation Condition": {"type": "string"}, "Construction Status": {"type": "string"}, "Indoor Arena - Walk-in Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Roof Insulation Condition": {"type": "string"}, "Design Stadium (Closed) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Enclosed Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Electricity Use - Grid Purchase and Generated from Onsite Renewable Systems (kWh)": {"ignore_malformed": true, "type": "float"}, "Heating Setback Frequency": {"type": "string"}, "Barracks- Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Ice/Curling Rink - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Anti-Sweat Heater Controls Model Number": {"type": "string"}, "Primary Zonal Cooling Fuel Type": {"type": "string"}, "Floor-to-Ceiling Height": {"ignore_malformed": true, "type": "float"}, "Total GHG Emissions (MtCO2e)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Reclaimed Water - Indoor Intensity (gal/ft2)": {"ignore_malformed": true, "type": "float"}, "Dishwasher Loads Per Week": {"ignore_malformed": true, "type": "float"}, "Other - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Food Sales - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Non-Potable Water used for Irrigation": {"type": "string"}, "Asset Score": {"ignore_malformed": true, "type": "float"}, "Collection Date": {"ignore_malformed": true, "type": "date", "format": "MM/dd/yyyy||yyyy-MM-dd||d-MMM-y||dd-MMM-y||dd-MMM-yy||date_optional_time"}, "Electricity Use - Generated from Onsite Renewable Systems (kWh)": {"ignore_malformed": true, "type": "float"}, "Other Water Sources - Outdoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Wall Framing Depth": {"ignore_malformed": true, "type": "float"}, "Natural Ventilation Rate": {"ignore_malformed": true, "type": "float"}, "Self-Storage Facility - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Target Source EUI (kBtu/ft2)": {"ignore_malformed": true, "type": "float"}, "Fire Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Refrigerated Warehouse - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Foundation Wall Type": {"type": "string"}, "Indoor Arena - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Input Capacity": {"ignore_malformed": true, "type": "float"}, "Natural Ventilation": {"type": "string"}, "Design Greenhouse Gas Emissions Intensity": {"ignore_malformed": true, "type": "float"}, "Ambulatory Surgical Center - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Hot Water Boiler Minimum Flow Rate": {"ignore_malformed": true, "type": "float"}, "PV System Number of Modules per Array": {"ignore_malformed": true, "type": "float"}, "Propane Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Primary Zonal Heating Type": {"type": "string"}, "Lifestyle Center - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Senior Care Community - Number of Residential Washing Machines": {"ignore_malformed": true, "type": "float"}, "Retail Store - Open or Closed Refrigeration Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Municipally Supplied Potable Water - Outdoor Use (kgal)": {"ignore_malformed": true, "type": "float"}, "Floor Framing Depth": {"ignore_malformed": true, "type": "float"}, "Retail Store - Exterior Entrance to the Public": {"type": "string"}, "Lifestyle Center - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Food Service - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Alternative Water Generated On-Site - Indoor Cost Intensity ($/ft2)": {"ignore_malformed": true, "type": "float"}, "Bank Branch - Number of Computers": {"ignore_malformed": true, "type": "float"}, "Design Police Station - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "In Portfolio Manager": {"type": "string"}, "Utility Name": {"type": "string"}, "Design Ambient Temperature": {"ignore_malformed": true, "type": "float"}, "Primary Cooking Fuel": {"type": "string"}, "PV System Number of Arrays": {"ignore_malformed": true, "type": "float"}, "Courthouse - Percent That Can Be Cooled": {"ignore_malformed": true, "type": "float"}, "Lighting Power Density": {"ignore_malformed": true, "type": "float"}, "Stadium (Closed) - Size of Electronic Scoreboards (ft2)": {"ignore_malformed": true, "type": "float"}, "Parking - Completely Enclosed Parking Garage Size (ft2)": {"ignore_malformed": true, "type": "float"}, "Fixture Spacing": {"type": "string"}, "Heating Stage Capacity": {"ignore_malformed": true, "type": "float"}, "Number of Exterior Doors": {"ignore_malformed": true, "type": "float"}, "Museum - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Design Coke Use (kBtu)": {"ignore_malformed": true, "type": "float"}, "Design Personal Services (Health/Beauty, Dry Cleaning, etc) - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Lighting is ENERGY STAR Rated": {"type": "string"}, "Green Power - Onsite (kWh)": {"ignore_malformed": true, "type": "float"}, "Outside Air Temperature Lower Limit Cooling Reset Control": {"ignore_malformed": true, "type": "float"}, "Wall Insulation Type": {"type": "string"}, "Office - Worker Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Design Target ENERGY STAR Score": {"ignore_malformed": true, "type": "float"}, "Cooking Energy per Meal": {"ignore_malformed": true, "type": "float"}, "Ceiling Visible Absorptance": {"ignore_malformed": true, "type": "float"}, "Food Service - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Cooking Capacity": {"ignore_malformed": true, "type": "float"}, "Typical Window Visual Transmittance": {"ignore_malformed": true, "type": "float"}, "Stadium (Open) - Number of Special/Other Events per Year": {"ignore_malformed": true, "type": "float"}, "Motor Full Load Amps": {"ignore_malformed": true, "type": "float"}, "Number of Lamps per Luminaire": {"ignore_malformed": true, "type": "float"}, "Indoor Arena - Number of Walk-in Refrigeration/Freezer Units": {"ignore_malformed": true, "type": "float"}, "Duct Sealing": {"type": "string"}, "Design Parking - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Other - Restaurant/Bar - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Cooling Supply Air Temperature Control Type": {"type": "string"}, "Supermarket/Grocery - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Data Center - IT Source Energy (kBtu)": {"ignore_malformed": true, "type": "float"}, "Convenience Store without Gas Station - Computer Density (Number per 1,000 ft2)": {"ignore_malformed": true, "type": "float"}, "Slab Insulation Thickness": {"ignore_malformed": true, "type": "float"}, "Design Energy Cost ($)": {"ignore_malformed": true, "type": "float"}, "Pumping Configuration": {"type": "string"}, "Federal Sustainability Checklist Completion Percentage": {"ignore_malformed": true, "type": "float"}, "Hospital (General Medical & Surgical) - Number of Workers on Main Shift": {"ignore_malformed": true, "type": "float"}, "Strip Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Metered Areas (Water)": {"type": "string"}, "Senior Care Community - Maximum Resident Capacity": {"ignore_malformed": true, "type": "float"}, "Other - Services - Weekly Operating Hours": {"ignore_malformed": true, "type": "float"}, "K-12 School - Percent That Can Be Heated": {"ignore_malformed": true, "type": "float"}, "Foundation Area": {"ignore_malformed": true, "type": "float"}, "Third party certification": {"type": "string"}, "Guiding Principles - Principles Date Achieved": {"type": "string"}, "Design Movie Theater - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Hotel - Cooking Facilities": {"type": "string"}, "Design Urgent Care/Clinic/Other Outpatient - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Single Family Home - Number of People": {"ignore_malformed": true, "type": "float"}, "Design Strip Mall - Gross Floor Area (ft2)": {"ignore_malformed": true, "type": "float"}, "Source Energy Use": {"ignore_malformed": true, "type": "float"}, "District Steam": {"type": "string"}, "Other Cost ($)": {"ignore_malformed": true, "type": "float"}}}, "space_alerts": {"type": "string"}, "pm_property_id": {"index": "not_analyzed", "type": "string", "doc_values": true}, "use_description": {"type": "string"}, "conditioned_floor_area": {"type": "float"}, "site_eui_weather_normalized": {"type": "float"}, "property_name": {"type": "string"}, "building_certification": {"type": "string"}, "state_province": {"type": "string"}, "energy_alerts": {"type": "string"}, "year_built": {"type": "float"}, "release_date": {"type": "date"}, "gross_floor_area": {"type": "float"}, "longitude": {"type": "float"}, "owner_city_state": {"type": "string"}, "owner_telephone": {"type": "string"}, "recent_sale_date": {"type": "date"}, "postal_code": {"type": "string"}, "tax_lot_id": {"index": "not_analyzed", "type": "string", "doc_values": true}, "address_line_2": {"type": "string"}, "energy_score": {"type": "float"}}}}, "dynamic_templates": [{"goals_as_floats": {"path_match": "building_snapshot.extra_data.*_goal", "mapping": {"ignore_malformed": true, "type": "float"}, "match_pattern": "regex", "match_mapping_type": "double|long|integer|float"}}, {"extra_data_as_string": {"path_match": "building_snapshot.extra_data.*", "mapping": {"type": "string"}, "match_pattern": "regex", "match_mapping_type": "date|boolean|double|long|integer|float"}}]}}'
<span class="pl-c"><span class="pl-c">#</span> comment out the following line (mapping building_snapshot) to get aggs on 1.5.1</span>
curl -XPUT localhost:9200/test/_mapping/building_snapshot -d '{"building_snapshot": {"properties": {"lot_number": {"type": "string"}, "owner_address": {"type": "string"}, "owner_postal_code": {"type": "string"}, "block_number": {"type": "string"}, "project_buildings": {"type": "nested"}, "source_eui_weather_normalized": {"type": "float"}, "owner_email": {"type": "string"}, "year_ending": {"type": "date"}, "building_count": {"type": "float"}, "postal_code": {"type": "string"}, "owner": {"type": "string"}, "site_eui": {"type": "float"}, "address_line_1": {"type": "string"}, "occupied_floor_area": {"type": "float"}, "source_eui": {"type": "float"}, "custom_id_1": {"index": "not_analyzed", "type": "string", "doc_values": true}, "city": {"type": "string"}, "property_notes": {"type": "string"}, "district": {"type": "string"}, "location": {"type": "geo_point"}, "latitude": {"type": "float"}, "generation_date": {"type": "date"}, "extra_data": {"dynamic": false, "type": "object", "properties": {"normalized_address": {"index": "not_analyzed", "type": "string", "store": true}}}, "space_alerts": {"type": "string"}, "pm_property_id": {"index": "not_analyzed", "type": "string", "doc_values": true}, "use_description": {"type": "string"}, "conditioned_floor_area": {"type": "float"}, "site_eui_weather_normalized": {"type": "float"}, "property_name": {"type": "string"}, "building_certification": {"type": "string"}, "state_province": {"type": "string"}, "energy_alerts": {"type": "string"}, "year_built": {"type": "float"}, "release_date": {"type": "date"}, "gross_floor_area": {"type": "float"}, "longitude": {"type": "float"}, "owner_city_state": {"type": "string"}, "owner_telephone": {"type": "string"}, "recent_sale_date": {"type": "date"}, "tax_lot_id": {"index": "not_analyzed", "type": "string", "doc_values": true}, "address_line_2": {"type": "string"}, "energy_score": {"type": "float"}}}}'
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>check mappings<span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c"><span class="pl-c">#</span> comment in for mappings</span>
<span class="pl-c"><span class="pl-c">#</span> curl -XGET localhost:9200/test/_mapping</span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>create docs<span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
curl -XPUT localhost:9200/test/test/1 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 10, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/2 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 11, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/3 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 12, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/4 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 13, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/5 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 14, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/6 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 8, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/7 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 4, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/8 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 1, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/9 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": 1995, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
curl -XPUT localhost:9200/test/test/10 -d <span class="pl-s"><span class="pl-pds">'</span>{"building_snapshot": {"extra_data": {"test": 13}, "year_built": null, "gross_floor_area": 39636.66217959946}}<span class="pl-pds">'</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>wait for index to refresh<span class="pl-pds">"</span></span>
curl -XPOST localhost:9200/_refresh
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>search with aggs<span class="pl-pds">"</span></span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
curl -XGET localhost:9200/test/test/_search<span class="pl-k">?</span>pretty -d <span class="pl-s"><span class="pl-pds">'</span>{"query": {"filtered": {"filter": {"range": {"building_snapshot.gross_floor_area": {"gte": 200}}}}}, "aggs": {"gfa": {"stats": {"field": "building_snapshot.year_built"}}}}<span class="pl-pds">'</span></span>
<span class="pl-c"><span class="pl-c">#</span> Output 1.5.1 building_snapshot mapping included</span>
<span class="pl-c"><span class="pl-c">#</span> "aggregations" : {</span>
<span class="pl-c"><span class="pl-c">#</span> "gfa" : {</span>
<span class="pl-c"><span class="pl-c">#</span> "count" : 0,</span>
<span class="pl-c"><span class="pl-c">#</span> "min" : null,</span>
<span class="pl-c"><span class="pl-c">#</span> "max" : null,</span>
<span class="pl-c"><span class="pl-c">#</span> "avg" : null,</span>
<span class="pl-c"><span class="pl-c">#</span> "sum" : null</span>
<span class="pl-c"><span class="pl-c">#</span> }</span>
<span class="pl-c"><span class="pl-c">#</span> }</span>
<span class="pl-c"><span class="pl-c">#</span></span>
<span class="pl-c"><span class="pl-c">#</span> Output 1.5.1 building_snapshot mapping excluded</span>
<span class="pl-c"><span class="pl-c">#</span> "aggregations" : {</span>
<span class="pl-c"><span class="pl-c">#</span> "gfa" : {</span>
<span class="pl-c"><span class="pl-c">#</span> "count" : 9,</span>
<span class="pl-c"><span class="pl-c">#</span> "min" : 1.0,</span>
<span class="pl-c"><span class="pl-c">#</span> "max" : 1995.0,</span>
<span class="pl-c"><span class="pl-c">#</span> "avg" : 229.77777777777777,</span>
<span class="pl-c"><span class="pl-c">#</span> "sum" : 2068.0,</span>
<span class="pl-c"><span class="pl-c">#</span> "min_as_string" : "1.0",</span>
<span class="pl-c"><span class="pl-c">#</span> "max_as_string" : "1995.0",</span>
<span class="pl-c"><span class="pl-c">#</span> "avg_as_string" : "229.77777777777777",</span>
<span class="pl-c"><span class="pl-c">#</span> "sum_as_string" : "2068.0"</span>
<span class="pl-c"><span class="pl-c">#</span> }</span>
<span class="pl-c"><span class="pl-c">#</span> }</span>
<span class="pl-c"><span class="pl-c">#</span></span>
<span class="pl-c"><span class="pl-c">#</span> Output 1.4.4 mapping included or excluded</span>
<span class="pl-c"><span class="pl-c">#</span> "aggregations" : {</span>
<span class="pl-c"><span class="pl-c">#</span> "gfa" : {</span>
<span class="pl-c"><span class="pl-c">#</span> "count" : 9,</span>
<span class="pl-c"><span class="pl-c">#</span> "min" : 1.0,</span>
<span class="pl-c"><span class="pl-c">#</span> "max" : 1995.0,</span>
<span class="pl-c"><span class="pl-c">#</span> "avg" : 229.77777777777777,</span>
<span class="pl-c"><span class="pl-c">#</span> "sum" : 2068.0</span>
<span class="pl-c"><span class="pl-c">#</span> }</span>
<span class="pl-c"><span class="pl-c">#</span> }</span></pre></div> | <p dir="auto">If I have an inner object that has the same name as a type, then queries for that inner object will fail.</p>
<p dir="auto">The workaround is to rename the type or the inner object, but the behaviour is confusing and misleading (and wrong).</p>
<p dir="auto">To reproduce, create a new index, type and document:<br>
curl -XPOST 'localhost:9200/test/flow/' -d '{<br>
"device": {<br>
"id": "dummy"<br>
}<br>
}'</p>
<p dir="auto">Querying for that document by device.id will work:<br>
curl 'localhost:9200/test/_search?pretty' -d '{<br>
"query":{<br>
"filtered": {<br>
"filter": {<br>
"term": {<br>
"device.id": "dummy"<br>
}<br>
}<br>
}<br>
}<br>
}'</p>
<p dir="auto">Add a type with the same name as the inner object, AND containing an inner object with that name as well:<br>
curl -XPOST 'localhost:9200/test/device/' -d '{<br>
"device": {<br>
"id": "foo"<br>
}<br>
}'</p>
<p dir="auto">Now querying for the original document by device.id will fail:<br>
{<br>
"took" : 0,<br>
"timed_out" : false,<br>
"_shards" : {<br>
"total" : 5,<br>
"successful" : 5,<br>
"failed" : 0<br>
},<br>
"hits" : {<br>
"total" : 0,<br>
"max_score" : null,<br>
"hits" : [ ]<br>
}<br>
}</p>
<p dir="auto">Removing the 'device' type will allow the original document to be queryable again:<br>
curl -XDELETE 'localhost:9200/test/device'</p> | 1 |
<p dir="auto">ansible 2.0.0.2</p>
<p dir="auto">Run against a set of tasks like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Duplicate
debug: msg="hi"
- name: Duplicate
command: sleep 100"><pre class="notranslate"><code class="notranslate">- name: Duplicate
debug: msg="hi"
- name: Duplicate
command: sleep 100
</code></pre></div>
<p dir="auto">You'll notice you only get timing on one. This is flaw in the core architecture of this plugin. It uses a dict to store values by task name it seems.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aioue/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aioue">@aioue</a></p> | <h5 dir="auto">ISSUE TYPE</h5>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" config file = /home/douglas/repos/ansible/ansible.cfg
configured module search path = Default w/o overrides
"><pre lang="ansible" class="notranslate"><code class="notranslate"> config file = /home/douglas/repos/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
ansible-playbook accounts.yml --step -e hosts=localhost -e homedir=/boot -vvv -e user=foo
- name: get fs free space
shell: df | grep {{ homedir }} | awk 'FNR == 2 { print $2 } '
register: fsusage
- name: print fsusage in kb
debug: var=fsusage.stdout_lines
- name: check existing homedir quota usage
shell: w
failed_when: "'{{ item | int }}' < '146800640'"
with_items: fsusage.stdout
"><pre class="notranslate"><code class="notranslate">
ansible-playbook accounts.yml --step -e hosts=localhost -e homedir=/boot -vvv -e user=foo
- name: get fs free space
shell: df | grep {{ homedir }} | awk 'FNR == 2 { print $2 } '
register: fsusage
- name: print fsusage in kb
debug: var=fsusage.stdout_lines
- name: check existing homedir quota usage
shell: w
failed_when: "'{{ item | int }}' < '146800640'"
with_items: fsusage.stdout
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">fsusage.stdout_lines is 523248 so task "check existing homedir quota usage" should fail given that value is less than 146800640</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
Task " check existing homedir quota usage" does not fail...
PLAYBOOK: accounts.yml *********************************************************
1 plays in accounts.yml
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: douglas
<127.0.0.1> EXEC /bin/sh -c 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python && sleep 0'
ok: [localhost]
TASK [accounts : include] ******************************************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/main.yml:2
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
TASK [accounts : include] ******************************************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/main.yml:5
[DEPRECATION WARNING]: You should not specify tags in the include parameters. All tags should be specified using the task-level option.
This feature will be removed in a future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
included: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/nfs.yml for localhost
TASK [accounts : get fs free space] ********************************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/nfs.yml:4
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: douglas
<127.0.0.1> EXEC /bin/sh -c 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python && sleep 0'
changed: [localhost] => {"changed": true, "cmd": "df | grep /boot | awk 'FNR == 2 { print $2 } '", "delta": "0:00:00.003666", "end": "2016-06-15 13:55:11.982607", "invocation": {"module_args": {"_raw_params": "df | grep /boot | awk 'FNR == 2 { print $2 } '", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-06-15 13:55:11.978941", "stderr": "", "stdout": "523248", "stdout_lines": ["523248"], "warnings": []}
TASK [accounts : print fsusage in kb] ******************************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/nfs.yml:13
ok: [localhost] => {
"fsusage.stdout_lines": [
"523248"
]
}
TASK [accounts : check existing homedir quota usage] ***************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/nfs.yml:16
[DEPRECATION WARNING]: Using bare variables is deprecated. Update your playbooks so that the environment value uses the full variable syntax ('{{fsusage.stdout}}').
This feature will be removed in a future release. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: douglas
<127.0.0.1> EXEC /bin/sh -c 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python && sleep 0'
changed: [localhost] => (item=523248) => {"changed": true, "cmd": "w", "delta": "0:00:00.012080", "end": "2016-06-15 13:55:12.160439", "failed": false, "failed_when_result": false, "invocation": {"module_args": {"_raw_params": "w", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "item": "523248", "rc": 0, "start": "2016-06-15 13:55:12.148359", "stderr": "", "stdout": " 13:55:12 up 2:46, 3 users, load average: 0.35, 0.26, 0.24\nUSER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT\ndouglas tty8 :0 11:09 2:46m 2:28 0.33s cinnamon-session --session cinnamon\ndouglas pts/1 :0 12:31 16:00 0.06s 0.00s tmux attach -d\ndouglas pts/8 :0 11:25 8.00s 5.40s 0.00s /bin/sh -c w", "stdout_lines": [" 13:55:12 up 2:46, 3 users, load average: 0.35, 0.26, 0.24", "USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT", "douglas tty8 :0 11:09 2:46m 2:28 0.33s cinnamon-session --session cinnamon", "douglas pts/1 :0 12:31 16:00 0.06s 0.00s tmux attach -d", "douglas pts/8 :0 11:25 8.00s 5.40s 0.00s /bin/sh -c w"], "warnings": []}
PLAY RECAP *********************************************************************
localhost : ok=5 changed=2 unreachable=0 failed=0
"><pre class="notranslate"><code class="notranslate">
Task " check existing homedir quota usage" does not fail...
PLAYBOOK: accounts.yml *********************************************************
1 plays in accounts.yml
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: douglas
<127.0.0.1> EXEC /bin/sh -c 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python && sleep 0'
ok: [localhost]
TASK [accounts : include] ******************************************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/main.yml:2
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
TASK [accounts : include] ******************************************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/main.yml:5
[DEPRECATION WARNING]: You should not specify tags in the include parameters. All tags should be specified using the task-level option.
This feature will be removed in a future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
included: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/nfs.yml for localhost
TASK [accounts : get fs free space] ********************************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/nfs.yml:4
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: douglas
<127.0.0.1> EXEC /bin/sh -c 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python && sleep 0'
changed: [localhost] => {"changed": true, "cmd": "df | grep /boot | awk 'FNR == 2 { print $2 } '", "delta": "0:00:00.003666", "end": "2016-06-15 13:55:11.982607", "invocation": {"module_args": {"_raw_params": "df | grep /boot | awk 'FNR == 2 { print $2 } '", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-06-15 13:55:11.978941", "stderr": "", "stdout": "523248", "stdout_lines": ["523248"], "warnings": []}
TASK [accounts : print fsusage in kb] ******************************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/nfs.yml:13
ok: [localhost] => {
"fsusage.stdout_lines": [
"523248"
]
}
TASK [accounts : check existing homedir quota usage] ***************************
task path: /home/douglas/repos/ansible/playbooks/roles/accounts/tasks/nfs.yml:16
[DEPRECATION WARNING]: Using bare variables is deprecated. Update your playbooks so that the environment value uses the full variable syntax ('{{fsusage.stdout}}').
This feature will be removed in a future release. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: douglas
<127.0.0.1> EXEC /bin/sh -c 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python && sleep 0'
changed: [localhost] => (item=523248) => {"changed": true, "cmd": "w", "delta": "0:00:00.012080", "end": "2016-06-15 13:55:12.160439", "failed": false, "failed_when_result": false, "invocation": {"module_args": {"_raw_params": "w", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "item": "523248", "rc": 0, "start": "2016-06-15 13:55:12.148359", "stderr": "", "stdout": " 13:55:12 up 2:46, 3 users, load average: 0.35, 0.26, 0.24\nUSER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT\ndouglas tty8 :0 11:09 2:46m 2:28 0.33s cinnamon-session --session cinnamon\ndouglas pts/1 :0 12:31 16:00 0.06s 0.00s tmux attach -d\ndouglas pts/8 :0 11:25 8.00s 5.40s 0.00s /bin/sh -c w", "stdout_lines": [" 13:55:12 up 2:46, 3 users, load average: 0.35, 0.26, 0.24", "USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT", "douglas tty8 :0 11:09 2:46m 2:28 0.33s cinnamon-session --session cinnamon", "douglas pts/1 :0 12:31 16:00 0.06s 0.00s tmux attach -d", "douglas pts/8 :0 11:25 8.00s 5.40s 0.00s /bin/sh -c w"], "warnings": []}
PLAY RECAP *********************************************************************
localhost : ok=5 changed=2 unreachable=0 failed=0
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I am trying to override the Grid item style, specifically the padding, using the classes prop.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">They way the object key is generated for the grid item padding it makes it very difficult to override it.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I want to use the grid system to generate 2 rows AppBar. The padding of the Grid item makes the AppBar not resize in height as the standard AppBar would do when the width changes.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>beta13</td>
</tr>
<tr>
<td>React</td>
<td>15.6.2</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When using the <code class="notranslate">Input</code> component with <code class="notranslate">multiline={true}</code> and <code class="notranslate">fullWidth={true}, the generated </code>MuiTextarea-root<code class="notranslate">component should have a</code>width<code class="notranslate">of</code>100%`.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">When using the <code class="notranslate">Input</code> component with <code class="notranslate">multiline={true}</code> and <code class="notranslate">fullWidth={true}</code>, the generated <code class="notranslate">MuiTextarea-root</code> doesn't have a <code class="notranslate">width</code> set up.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">set up a <code class="notranslate">div</code> container with an arbitrary width, insert an <code class="notranslate">Input</code> component with properties <code class="notranslate">fullWidth={true}</code> and <code class="notranslate">multiline={true}</code> and a <code class="notranslate">defaultValue</code> that is big enough.<br>
you will see that the text doesn't stretch to the width of the container.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">This problem happens because <code class="notranslate">width: 100%</code> is applied to <code class="notranslate">MuiInput-root</code> only, and not its descendant <code class="notranslate">MuiTextarea-root</code>.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>latest</td>
</tr>
<tr>
<td>React</td>
<td>latest</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Currently, the env var in <code class="notranslate">.env</code> or <code class="notranslate">.flaskenv</code> will not override existing value. However, if a user installed <code class="notranslate">python-dotenv</code> and created a <code class="notranslate">.flaskenv</code>, he will expect the variables in <code class="notranslate">.flaskenv</code> override the old values. It's inconvenience when you develop multiple applications at the same time.</p> | <p dir="auto">I want to start by apologizing in advance if I make any mistakes in this bug report, I'm new to development and any mistakes are unintentional. That being said I appreciate any input as to how I can improve.</p>
<h1 dir="auto">The issue:</h1>
<p dir="auto">Creating a class that inherits from FlaskForm causes an error with the following traceback</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: While importing 'app', an ImportError was raised:
Traceback (most recent call last):
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask/cli.py", line 218, in locate_app
__import__(module_name)
File "/home/rburd/academy/Mod-6/w18/d5/app/__init__.py", line 2, in <module>
from .form import Tweet
File "/home/rburd/academy/Mod-6/w18/d5/app/form.py", line 1, in <module>
from flask_wtf import FlaskForm
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask_wtf/__init__.py", line 4, in <module>
from .recaptcha import Recaptcha
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask_wtf/recaptcha/__init__.py", line 1, in <module>
from .fields import RecaptchaField
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask_wtf/recaptcha/fields.py", line 3, in <module>
from . import widgets
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask_wtf/recaptcha/widgets.py", line 2, in <module>
from flask import Markup
ImportError: cannot import name 'Markup' from 'flask' (/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask/__init__.py)"><pre class="notranslate"><code class="notranslate">Error: While importing 'app', an ImportError was raised:
Traceback (most recent call last):
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask/cli.py", line 218, in locate_app
__import__(module_name)
File "/home/rburd/academy/Mod-6/w18/d5/app/__init__.py", line 2, in <module>
from .form import Tweet
File "/home/rburd/academy/Mod-6/w18/d5/app/form.py", line 1, in <module>
from flask_wtf import FlaskForm
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask_wtf/__init__.py", line 4, in <module>
from .recaptcha import Recaptcha
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask_wtf/recaptcha/__init__.py", line 1, in <module>
from .fields import RecaptchaField
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask_wtf/recaptcha/fields.py", line 3, in <module>
from . import widgets
File "/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask_wtf/recaptcha/widgets.py", line 2, in <module>
from flask import Markup
ImportError: cannot import name 'Markup' from 'flask' (/home/rburd/.local/share/virtualenvs/d5-9RMvys9g/lib/python3.11/site-packages/flask/__init__.py)
</code></pre></div>
<p dir="auto">If I switch to flask ver. 2.2.3 I receive no such error</p>
<h1 dir="auto">How to reproduce:</h1>
<p dir="auto">Start a new project in an empty directory using the command <code class="notranslate">pipenv install flask flask-wtf python-dotenv</code><br>
Create a subfolder named 'app' with the following files</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# /app/__init__.py
from flask import Flask
from .form import Tweet
app = Flask(__name__)
"><pre class="notranslate"><span class="pl-c"># /app/__init__.py</span>
<span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span>
<span class="pl-k">from</span> .<span class="pl-s1">form</span> <span class="pl-k">import</span> <span class="pl-v">Tweet</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>)</pre></div>
<p dir="auto">and</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# /app/form.py
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
class Tweet(FlaskForm):
author = StringField("Author")
submit = SubmitField("Create New Tweet")"><pre class="notranslate"><span class="pl-c"># /app/form.py</span>
<span class="pl-k">from</span> <span class="pl-s1">flask_wtf</span> <span class="pl-k">import</span> <span class="pl-v">FlaskForm</span>
<span class="pl-k">from</span> <span class="pl-s1">wtforms</span> <span class="pl-k">import</span> <span class="pl-v">StringField</span>, <span class="pl-v">SubmitField</span>
<span class="pl-k">class</span> <span class="pl-v">Tweet</span>(<span class="pl-v">FlaskForm</span>):
<span class="pl-s1">author</span> <span class="pl-c1">=</span> <span class="pl-v">StringField</span>(<span class="pl-s">"Author"</span>)
<span class="pl-s1">submit</span> <span class="pl-c1">=</span> <span class="pl-v">SubmitField</span>(<span class="pl-s">"Create New Tweet"</span>)</pre></div>
<p dir="auto">Create a .flaskenv file with the following contents:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FLASK_APP=app"><pre class="notranslate"><code class="notranslate">FLASK_APP=app
</code></pre></div>
<p dir="auto">Finally try to start the app with the command <code class="notranslate">pipenv run flask run</code></p>
<h1 dir="auto">What I Expected:</h1>
<p dir="auto">When the <code class="notranslate">flask run</code> command is given no error should occur, which is the behavior observed when using flask ver. 2.2.3</p>
<p dir="auto">Environment:</p>
<ul dir="auto">
<li>Python version: 3.11.3</li>
<li>Flask version: 2.3.0</li>
</ul> | 0 |
<p dir="auto">I upgraded my flutter and there are something wrong with my project: the third libraries can not be found. So I run "flutter packages get", and the result is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running "flutter packages get" in XXX...
The current Flutter SDK version is 0.0.0-unknown.
Because XXX depends on shared_preferences >=0.4.0 which requires Flutter SDK version >=0.1.4 <2.0.0, version solving failed.
pub get failed (1)"><pre class="notranslate"><code class="notranslate">Running "flutter packages get" in XXX...
The current Flutter SDK version is 0.0.0-unknown.
Because XXX depends on shared_preferences >=0.4.0 which requires Flutter SDK version >=0.1.4 <2.0.0, version solving failed.
pub get failed (1)
</code></pre></div>
<p dir="auto">Then I run "flutter doctor -v", and the result is :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v0.0.0-unknown, on Mac OS X 10.13.4 17E199, locale zh-Hans-CN)
• Flutter version 0.0.0-unknown at ***
• Framework revision 2239344597 (17 hours ago), 2018-08-16 16:31:34 +0800
• Engine revision e3687f70c7
• Dart version 2.1.0-dev.0.0.flutter-be6309690f
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at ***
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.0
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.26.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.17.1
[!] Connected devices
! No devices available
! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v0.0.0-unknown, on Mac OS X 10.13.4 17E199, locale zh-Hans-CN)
• Flutter version 0.0.0-unknown at ***
• Framework revision 2239344597 (17 hours ago), 2018-08-16 16:31:34 +0800
• Engine revision e3687f70c7
• Dart version 2.1.0-dev.0.0.flutter-be6309690f
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at ***
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.0
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.26.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.17.1
[!] Connected devices
! No devices available
! Doctor found issues in 2 categories.
</code></pre></div>
<p dir="auto">Why the flutter version is "v0.0.0-unknown"?</p> | <p dir="auto">Hey there! I've been noticing an interesting problem as I upgrade my libs to Dart 2. I run my tests very often, and have seen them take far longer to start up than in Dart 1. If you're running many iterations of a test trying to fix a bug, it can feel a bit sluggish compared to how fast it was before.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Create a new Flutter project</li>
<li>Enter project</li>
<li>Run <code class="notranslate">flutter test</code> from command line</li>
<li>Tests take 5-6 seconds to run</li>
<li>Compare to Dart1, which was 1-2 seconds</li>
</ol>
<h2 dir="auto">Logs</h2>
<h3 dir="auto">Dart 1</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="gunter lab/slow_tests » time flutter test
00:01 +1: All tests passed!
flutter test 2.02s user 0.36s system 111% cpu 2.125 total
gunter lab/slow_tests » time flutter test
00:01 +1: All tests passed!
flutter test 2.01s user 0.35s system 112% cpu 2.104 total
gunter lab/slow_tests » time flutter test
00:01 +1: All tests passed!
flutter test 2.02s user 0.36s system 112% cpu 2.115 total"><pre class="notranslate"><code class="notranslate">gunter lab/slow_tests » time flutter test
00:01 +1: All tests passed!
flutter test 2.02s user 0.36s system 111% cpu 2.125 total
gunter lab/slow_tests » time flutter test
00:01 +1: All tests passed!
flutter test 2.01s user 0.35s system 112% cpu 2.104 total
gunter lab/slow_tests » time flutter test
00:01 +1: All tests passed!
flutter test 2.02s user 0.36s system 112% cpu 2.115 total
</code></pre></div>
<h3 dir="auto">Dart 2</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="gunter lab/slow_tests » time flutter test --preview-dart-2
00:04 +1: All tests passed!
flutter test --preview-dart-2 6.19s user 0.70s system 134% cpu 5.134 total
gunter lab/slow_tests » time flutter test --preview-dart-2
00:04 +1: All tests passed!
flutter test --preview-dart-2 6.26s user 0.68s system 134% cpu 5.163 total
gunter lab/slow_tests » time flutter test --preview-dart-2
00:04 +1: All tests passed!
flutter test --preview-dart-2 6.32s user 0.69s system 134% cpu 5.234 total"><pre class="notranslate"><code class="notranslate">gunter lab/slow_tests » time flutter test --preview-dart-2
00:04 +1: All tests passed!
flutter test --preview-dart-2 6.19s user 0.70s system 134% cpu 5.134 total
gunter lab/slow_tests » time flutter test --preview-dart-2
00:04 +1: All tests passed!
flutter test --preview-dart-2 6.26s user 0.68s system 134% cpu 5.163 total
gunter lab/slow_tests » time flutter test --preview-dart-2
00:04 +1: All tests passed!
flutter test --preview-dart-2 6.32s user 0.69s system 134% cpu 5.234 total
</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale en-US)
• Flutter version 0.1.5 at /Users/phillywiggins/lab/flutter
• Framework revision 3ea4d06340 (4 weeks ago), 2018-02-22 11:12:39 -0800
• Engine revision ead227f118
• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
• Android SDK at /Users/phillywiggins/Library/Android/sdk
• Android NDK at /Users/phillywiggins/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.2
• ANDROID_HOME = /Users/phillywiggins/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Community Edition (version 2017.3.5)
• Flutter plugin version 22.2.2
• Dart plugin version 173.4548.30
[✓] VS Code (version 1.21.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.8.2
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
• No issues found!"><pre class="notranslate">[✓] <span class="pl-c1">Flutter</span> (<span class="pl-c1">Channel</span> beta, v0.<span class="pl-c1">1.5</span>, <span class="pl-k">on</span> <span class="pl-c1">Mac</span> <span class="pl-c1">OS</span> <span class="pl-c1">X</span> <span class="pl-c1">10.13</span>.<span class="pl-c1">3</span> 17D102, locale en<span class="pl-k">-</span><span class="pl-c1">US</span>)
• <span class="pl-c1">Flutter</span> version <span class="pl-c1">0.1</span>.<span class="pl-c1">5</span> at <span class="pl-k">/</span><span class="pl-c1">Users</span><span class="pl-k">/</span>phillywiggins<span class="pl-k">/</span>lab<span class="pl-k">/</span>flutter
• <span class="pl-c1">Framework</span> revision 3ea4d06340 (<span class="pl-c1">4</span> weeks ago), <span class="pl-c1">2018</span><span class="pl-k">-</span><span class="pl-c1">02</span><span class="pl-k">-</span><span class="pl-c1">22</span> <span class="pl-c1">11</span><span class="pl-k">:</span><span class="pl-c1">12</span><span class="pl-k">:</span><span class="pl-c1">39</span> <span class="pl-k">-</span><span class="pl-c1">0800</span>
• <span class="pl-c1">Engine</span> revision ead227f118
• <span class="pl-c1">Dart</span> version <span class="pl-c1">2.0</span>.<span class="pl-c1">0</span><span class="pl-k">-</span>dev.<span class="pl-c1">28.0</span>.flutter<span class="pl-k">-</span>0b4f01f759
[✓] <span class="pl-c1">Android</span> toolchain <span class="pl-k">-</span> develop <span class="pl-k">for</span> <span class="pl-c1">Android</span> devices (<span class="pl-c1">Android</span> <span class="pl-c1">SDK</span> <span class="pl-c1">27.0</span>.<span class="pl-c1">2</span>)
• <span class="pl-c1">Android</span> <span class="pl-c1">SDK</span> at <span class="pl-k">/</span><span class="pl-c1">Users</span><span class="pl-k">/</span>phillywiggins<span class="pl-k">/</span><span class="pl-c1">Library</span><span class="pl-k">/</span><span class="pl-c1">Android</span><span class="pl-k">/</span>sdk
• <span class="pl-c1">Android</span> <span class="pl-c1">NDK</span> at <span class="pl-k">/</span><span class="pl-c1">Users</span><span class="pl-k">/</span>phillywiggins<span class="pl-k">/</span><span class="pl-c1">Library</span><span class="pl-k">/</span><span class="pl-c1">Android</span><span class="pl-k">/</span>sdk<span class="pl-k">/</span>ndk<span class="pl-k">-</span>bundle
• <span class="pl-c1">Platform</span> android<span class="pl-k">-</span><span class="pl-c1">27</span>, build<span class="pl-k">-</span>tools <span class="pl-c1">27.0</span>.<span class="pl-c1">2</span>
• <span class="pl-c1">ANDROID_HOME</span> <span class="pl-k">=</span> <span class="pl-k">/</span><span class="pl-c1">Users</span><span class="pl-k">/</span>phillywiggins<span class="pl-k">/</span><span class="pl-c1">Library</span><span class="pl-k">/</span><span class="pl-c1">Android</span><span class="pl-k">/</span>sdk
• <span class="pl-c1">Java</span> binary at<span class="pl-k">:</span> <span class="pl-k">/</span><span class="pl-c1">Applications</span><span class="pl-k">/</span><span class="pl-c1">Android</span> <span class="pl-c1">Studio</span>.app<span class="pl-k">/</span><span class="pl-c1">Contents</span><span class="pl-k">/</span>jre<span class="pl-k">/</span>jdk<span class="pl-k">/</span><span class="pl-c1">Contents</span><span class="pl-k">/</span><span class="pl-c1">Home</span><span class="pl-k">/</span>bin<span class="pl-k">/</span>java
• <span class="pl-c1">Java</span> version <span class="pl-c1">OpenJDK</span> <span class="pl-c1">Runtime</span> <span class="pl-c1">Environment</span> (build <span class="pl-c1">1.8</span>.0_152<span class="pl-k">-</span>release<span class="pl-k">-</span><span class="pl-c1">915</span><span class="pl-k">-</span>b08)
[✓] iOS toolchain <span class="pl-k">-</span> develop <span class="pl-k">for</span> iOS devices (<span class="pl-c1">Xcode</span> <span class="pl-c1">9.2</span>)
• <span class="pl-c1">Xcode</span> at <span class="pl-k">/</span><span class="pl-c1">Applications</span><span class="pl-k">/</span><span class="pl-c1">Xcode</span>.app<span class="pl-k">/</span><span class="pl-c1">Contents</span><span class="pl-k">/</span><span class="pl-c1">Developer</span>
• <span class="pl-c1">Xcode</span> <span class="pl-c1">9.2</span>, <span class="pl-c1">Build</span> version 9C40b
• ios<span class="pl-k">-</span>deploy <span class="pl-c1">1.9</span>.<span class="pl-c1">2</span>
• <span class="pl-c1">CocoaPods</span> version <span class="pl-c1">1.3</span>.<span class="pl-c1">1</span>
[✓] <span class="pl-c1">Android</span> <span class="pl-c1">Studio</span> (version <span class="pl-c1">3.0</span>)
• <span class="pl-c1">Android</span> <span class="pl-c1">Studio</span> at <span class="pl-k">/</span><span class="pl-c1">Applications</span><span class="pl-k">/</span><span class="pl-c1">Android</span> <span class="pl-c1">Studio</span>.app<span class="pl-k">/</span><span class="pl-c1">Contents</span>
• <span class="pl-c1">Java</span> version <span class="pl-c1">OpenJDK</span> <span class="pl-c1">Runtime</span> <span class="pl-c1">Environment</span> (build <span class="pl-c1">1.8</span>.0_152<span class="pl-k">-</span>release<span class="pl-k">-</span><span class="pl-c1">915</span><span class="pl-k">-</span>b08)
[✓] <span class="pl-c1">IntelliJ</span> <span class="pl-c1">IDEA</span> <span class="pl-c1">Community</span> <span class="pl-c1">Edition</span> (version <span class="pl-c1">2017.3</span>.<span class="pl-c1">5</span>)
• <span class="pl-c1">Flutter</span> plugin version <span class="pl-c1">22.2</span>.<span class="pl-c1">2</span>
• <span class="pl-c1">Dart</span> plugin version <span class="pl-c1">173.4548</span>.<span class="pl-c1">30</span>
[✓] <span class="pl-c1">VS</span> <span class="pl-c1">Code</span> (version <span class="pl-c1">1.21</span>.<span class="pl-c1">1</span>)
• <span class="pl-c1">VS</span> <span class="pl-c1">Code</span> at <span class="pl-k">/</span><span class="pl-c1">Applications</span><span class="pl-k">/</span><span class="pl-c1">Visual</span> <span class="pl-c1">Studio</span> <span class="pl-c1">Code</span>.app<span class="pl-k">/</span><span class="pl-c1">Contents</span>
• <span class="pl-c1">Dart</span> <span class="pl-c1">Code</span> <span class="pl-k">extension</span> version <span class="pl-c1">2.8</span>.<span class="pl-c1">2</span>
[✓] <span class="pl-c1">Connected</span> devices (<span class="pl-c1">1</span> available)
• <span class="pl-c1">Android</span> <span class="pl-c1">SDK</span> built <span class="pl-k">for</span> x86 • emulator<span class="pl-k">-</span><span class="pl-c1">5554</span> • android<span class="pl-k">-</span>x86 • <span class="pl-c1">Android</span> <span class="pl-c1">8.0</span>.<span class="pl-c1">0</span> (<span class="pl-c1">API</span> <span class="pl-c1">26</span>) (emulator)
• <span class="pl-c1">No</span> issues found<span class="pl-k">!</span></pre></div> | 0 |
<p dir="auto">The new explain API for detailing heap usage can be a huge help in debugging large Elasticsearch systems - for performance or crashes</p>
<p dir="auto">Obviously if you can add the ES's structures to this functionality , all the better</p>
<p dir="auto"><a href="https://issues.apache.org/jira/browse/LUCENE-5949" rel="nofollow">https://issues.apache.org/jira/browse/LUCENE-5949</a></p> | <p dir="auto">A primary shard was stuck in RELOCATION state. Recovery API shows that all files have completed at 100%. The stage shows that it is TRANSLOG. But it has been sitting there for > 15 hours.</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" {
"id": 0,
"type": "RELOCATION",
"stage": "TRANSLOG",
"primary": true,
"start_time": "16443.3d",
"start_time_in_millis": 1420704589802,
"stop_time": "0s",
"stop_time_in_millis": 0,
"total_time": "15.1h",
"total_time_in_millis": 54706836,
"source": {
"id": "0eltfic0RdmC9v-Yb17Wzw",
"host": "elasticsearch1.localdomain",
"transport_address": "inet[/IP:9300]",
"ip": "127.0.1.1",
"name": "elasticsearch1.localdomain"
},
"target": {
"id": "ctCRm_huQsSBoTobhmqJdg",
"host": "elasticsearch8.localdomain",
"transport_address": "inet[/IP:9300]",
"ip": "127.0.1.1",
"name": "elasticsearch8.localdomain"
},
"index": {
"files": {
"total": 318,
"reused": 0,
"recovered": 318,
"percent": "100.0%",
"details": [
... list of files
]
},
"bytes": {
"total": 58111147927,
"reused": 0,
"recovered": 58111147927,
"percent": "100.0%"
},
"total_time": "0s",
"total_time_in_millis": 0
},
"translog": {
"recovered": 24685532,
"total_time": "0s",
"total_time_in_millis": 0
},
"start": {
"check_index_time": "0s",
"check_index_time_in_millis": 0,
"total_time": "0s",
"total_time_in_millis": 0
}
}
"><pre class="notranslate"> {
<span class="pl-ent">"id"</span>: <span class="pl-c1">0</span>,
<span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>RELOCATION<span class="pl-pds">"</span></span>,
<span class="pl-ent">"stage"</span>: <span class="pl-s"><span class="pl-pds">"</span>TRANSLOG<span class="pl-pds">"</span></span>,
<span class="pl-ent">"primary"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"start_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>16443.3d<span class="pl-pds">"</span></span>,
<span class="pl-ent">"start_time_in_millis"</span>: <span class="pl-c1">1420704589802</span>,
<span class="pl-ent">"stop_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>0s<span class="pl-pds">"</span></span>,
<span class="pl-ent">"stop_time_in_millis"</span>: <span class="pl-c1">0</span>,
<span class="pl-ent">"total_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>15.1h<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_time_in_millis"</span>: <span class="pl-c1">54706836</span>,
<span class="pl-ent">"source"</span>: {
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>0eltfic0RdmC9v-Yb17Wzw<span class="pl-pds">"</span></span>,
<span class="pl-ent">"host"</span>: <span class="pl-s"><span class="pl-pds">"</span>elasticsearch1.localdomain<span class="pl-pds">"</span></span>,
<span class="pl-ent">"transport_address"</span>: <span class="pl-s"><span class="pl-pds">"</span>inet[/IP:9300]<span class="pl-pds">"</span></span>,
<span class="pl-ent">"ip"</span>: <span class="pl-s"><span class="pl-pds">"</span>127.0.1.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>elasticsearch1.localdomain<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"target"</span>: {
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>ctCRm_huQsSBoTobhmqJdg<span class="pl-pds">"</span></span>,
<span class="pl-ent">"host"</span>: <span class="pl-s"><span class="pl-pds">"</span>elasticsearch8.localdomain<span class="pl-pds">"</span></span>,
<span class="pl-ent">"transport_address"</span>: <span class="pl-s"><span class="pl-pds">"</span>inet[/IP:9300]<span class="pl-pds">"</span></span>,
<span class="pl-ent">"ip"</span>: <span class="pl-s"><span class="pl-pds">"</span>127.0.1.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>elasticsearch8.localdomain<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"index"</span>: {
<span class="pl-ent">"files"</span>: {
<span class="pl-ent">"total"</span>: <span class="pl-c1">318</span>,
<span class="pl-ent">"reused"</span>: <span class="pl-c1">0</span>,
<span class="pl-ent">"recovered"</span>: <span class="pl-c1">318</span>,
<span class="pl-ent">"percent"</span>: <span class="pl-s"><span class="pl-pds">"</span>100.0%<span class="pl-pds">"</span></span>,
<span class="pl-ent">"details"</span>: [
<span class="pl-ii">... list of files</span>
]
},
<span class="pl-ent">"bytes"</span>: {
<span class="pl-ent">"total"</span>: <span class="pl-c1">58111147927</span>,
<span class="pl-ent">"reused"</span>: <span class="pl-c1">0</span>,
<span class="pl-ent">"recovered"</span>: <span class="pl-c1">58111147927</span>,
<span class="pl-ent">"percent"</span>: <span class="pl-s"><span class="pl-pds">"</span>100.0%<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"total_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>0s<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_time_in_millis"</span>: <span class="pl-c1">0</span>
},
<span class="pl-ent">"translog"</span>: {
<span class="pl-ent">"recovered"</span>: <span class="pl-c1">24685532</span>,
<span class="pl-ent">"total_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>0s<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_time_in_millis"</span>: <span class="pl-c1">0</span>
},
<span class="pl-ent">"start"</span>: {
<span class="pl-ent">"check_index_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>0s<span class="pl-pds">"</span></span>,
<span class="pl-ent">"check_index_time_in_millis"</span>: <span class="pl-c1">0</span>,
<span class="pl-ent">"total_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>0s<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_time_in_millis"</span>: <span class="pl-c1">0</span>
}
}
</pre></div>
<p dir="auto">Running a reroute command with no post body got it to unstuck:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -XPOST 'localhost:9200/_cluster/reroute?pretty&explain=true'"><pre class="notranslate"><code class="notranslate">curl -XPOST 'localhost:9200/_cluster/reroute?pretty&explain=true'
</code></pre></div>
<p dir="auto">Not sure how it got into this state (no log entries related to recovery of this shard in the data or master logs) and why we have to run an empty reroute request to get it unstuck.</p> | 0 |
<h3 dir="auto">Vue.js version</h3>
<p dir="auto">2.0.1</p>
<h3 dir="auto">Reproduction Link</h3>
<p dir="auto">I have written an example in jsfiddle<br>
<a href="https://jsfiddle.net/yreenchan/vfxtb7ps/1/" rel="nofollow">https://jsfiddle.net/yreenchan/vfxtb7ps/1/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto"><code class="notranslate">var vm = new Vue({ el: '#app', data: { isShow: 0, second: 1 } });</code></p>
<ol dir="auto">
<li>:style="{opacity: isShow}", the default value of isShow is 0, and the dom is hidden;</li>
<li>change the value of another property 'second'</li>
</ol>
<h3 dir="auto">What is Expected?</h3>
<p dir="auto">Don't effect the :style renderer results when it's value is not changed.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">when after i change the value of another property 'second', the hidden dom show again.</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.6.11</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/0vxoaz75/" rel="nofollow">https://jsfiddle.net/0vxoaz75/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Click on the "Unset" radiobutton.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">The checked radiobutton (top row) should be unchecked.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Nothing.</p>
<hr>
<ul dir="auto">
<li>Vue DevTools are showing me that the value is actually being set to <code class="notranslate">null</code>. But the view isn't updated.</li>
<li>If I do the value change inside DevTools(i.e. without clicking), it works as expected.</li>
<li>Or when I remove the <code class="notranslate">name</code> from the "Unset" radiobutton, it works too.</li>
<li>Or when I remove <code class="notranslate">.prevent</code>, it works too. From my understanding, <code class="notranslate">.prevent</code> in this case should only prevent the clicked radiobutton from getting checked; not prevent the others from being unchecked.</li>
</ul> | 0 |
<p dir="auto">In my app, I have a Recycler view with GridLayoutManager. The code I am using to load images bindImage method of recycler view adapter:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Override
public void onBindViewHolder(ImageViewHolder holder, int position) {
GSImage dbImage = mLandscapeImagesList.get(position);
File imageFile = new File(mImageDirectoryFile, dbImage.getImageName());
Glide.with(MyImageFragement.this).load(imageFile).centerCrop().into(holder.imageView);
int indexInSelectedImagesSet = mSelectedLandscapeImages.indexOf(dbImage);
if (indexInSelectedImagesSet>-1){
holder.itemView.setSelected(true);
} else {
holder.itemView.setSelected(false);
}
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">onBindViewHolder</span>(<span class="pl-smi">ImageViewHolder</span> <span class="pl-s1">holder</span>, <span class="pl-smi">int</span> <span class="pl-s1">position</span>) {
<span class="pl-smi">GSImage</span> <span class="pl-s1">dbImage</span> = <span class="pl-s1">mLandscapeImagesList</span>.<span class="pl-en">get</span>(<span class="pl-s1">position</span>);
<span class="pl-smi">File</span> <span class="pl-s1">imageFile</span> = <span class="pl-k">new</span> <span class="pl-smi">File</span>(<span class="pl-s1">mImageDirectoryFile</span>, <span class="pl-s1">dbImage</span>.<span class="pl-en">getImageName</span>());
<span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">MyImageFragement</span>.<span class="pl-smi">this</span>).<span class="pl-en">load</span>(<span class="pl-s1">imageFile</span>).<span class="pl-en">centerCrop</span>().<span class="pl-en">into</span>(<span class="pl-s1">holder</span>.<span class="pl-s1">imageView</span>);
<span class="pl-smi">int</span> <span class="pl-s1">indexInSelectedImagesSet</span> = <span class="pl-s1">mSelectedLandscapeImages</span>.<span class="pl-en">indexOf</span>(<span class="pl-s1">dbImage</span>);
<span class="pl-k">if</span> (<span class="pl-s1">indexInSelectedImagesSet</span>>-<span class="pl-c1">1</span>){
<span class="pl-s1">holder</span>.<span class="pl-s1">itemView</span>.<span class="pl-en">setSelected</span>(<span class="pl-c1">true</span>);
} <span class="pl-k">else</span> {
<span class="pl-s1">holder</span>.<span class="pl-s1">itemView</span>.<span class="pl-en">setSelected</span>(<span class="pl-c1">false</span>);
}
}</pre></div>
<p dir="auto">The Cell layout I am using is:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/images_background"
android:layout_marginTop="9dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="0dp"
android:layout_marginBottom="0dp"
android:padding="2dp">
<com.gaurav.myProject.commons.AspectRatioImageView
android:id="@+id/image_thumb"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
app:viewAspectRatio="1.33"/>
</RelativeLayout>"><pre class="notranslate"><?<span class="pl-ent">xml</span><span class="pl-e"> version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span><span class="pl-e"> encoding</span>=<span class="pl-s"><span class="pl-pds">"</span>utf-8<span class="pl-pds">"</span></span>?>
<<span class="pl-ent">RelativeLayout</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res/android<span class="pl-pds">"</span></span>
<span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">app</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res-auto<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">background</span>=<span class="pl-s"><span class="pl-pds">"</span>@drawable/images_background<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_marginTop</span>=<span class="pl-s"><span class="pl-pds">"</span>9dp<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_marginLeft</span>=<span class="pl-s"><span class="pl-pds">"</span>10dp<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_marginRight</span>=<span class="pl-s"><span class="pl-pds">"</span>0dp<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_marginBottom</span>=<span class="pl-s"><span class="pl-pds">"</span>0dp<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">padding</span>=<span class="pl-s"><span class="pl-pds">"</span>2dp<span class="pl-pds">"</span></span>>
<<span class="pl-ent">com</span>.gaurav.myProject.commons.AspectRatioImageView
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/image_thumb<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">scaleType</span>=<span class="pl-s"><span class="pl-pds">"</span>fitXY<span class="pl-pds">"</span></span>
<span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">viewAspectRatio</span>=<span class="pl-s"><span class="pl-pds">"</span>1.33<span class="pl-pds">"</span></span>/>
</<span class="pl-ent">RelativeLayout</span>></pre></div>
<p dir="auto">Here AspectRatioImageView(subclass of ImageView) automatically resizes the height of image view according to the provided aspect ratio.</p>
<p dir="auto">The above code is working fine on my devices (Xiaomi MiPad, ViewSonic Tablet, Android emaulators and Samsung Galaxy S3) but is not working correctly on my client's device (Samsung 10.1 inch tablet).<br>
In his end, images are being duplicated in the recycler grid. Also the the duplicates mostly occurs in adjacent recycler grid positions. I can't share any code as I even unable to reproduce the issue on my devices.</p>
<p dir="auto">Do you guys have any idea what could the cause of this? Can you please suggest me any thing that I can try?</p>
<p dir="auto">Thanks</p> | <p dir="auto">I'm trying to cache downloaded image from web using SimpleTarget like so:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(getContext())
.load(iurl)
.asBitmap()
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.skipMemoryCache(true)
.into(target);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-en">getContext</span>())
.<span class="pl-en">load</span>(<span class="pl-s1">iurl</span>)
.<span class="pl-en">asBitmap</span>()
.<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">SOURCE</span>)
.<span class="pl-en">skipMemoryCache</span>(<span class="pl-c1">true</span>)
.<span class="pl-en">into</span>(<span class="pl-s1">target</span>);</pre></div>
<p dir="auto">where target is initialized by :</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SimpleTarget<Bitmap> target = new SimpleTarget<Bitmap>() {
@Override
public void onResourceReady(Bitmap resource,
GlideAnimation<? super Bitmap>
glideAnimation) {
Log.d(LOG_TAG, "image cached");
}
@Override
public void onLoadFailed(Exception e, Drawable errorDrawable) {
e.printStackTrace();
}
};"><pre class="notranslate"><span class="pl-smi">SimpleTarget</span><<span class="pl-smi">Bitmap</span>> <span class="pl-s1">target</span> = <span class="pl-k">new</span> <span class="pl-smi">SimpleTarget</span><<span class="pl-smi">Bitmap</span>>() {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">Bitmap</span> <span class="pl-s1">resource</span>,
<span class="pl-smi">GlideAnimation</span><? <span class="pl-en">super</span> <span class="pl-smi">Bitmap</span>>
<span class="pl-s1">glideAnimation</span>) {
<span class="pl-smi">Log</span>.<span class="pl-en">d</span>(<span class="pl-c1">LOG_TAG</span>, <span class="pl-s">"image cached"</span>);
}
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onLoadFailed</span>(<span class="pl-smi">Exception</span> <span class="pl-s1">e</span>, <span class="pl-smi">Drawable</span> <span class="pl-s1">errorDrawable</span>) {
<span class="pl-s1">e</span>.<span class="pl-en">printStackTrace</span>();
}
};</pre></div>
<p dir="auto">and in the fragment :</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(imageView.getContext())
.load(image_url)
.asBitmap()
.dontAnimate()
.centerCrop()
.override(MyApplication.getInstance().width,MyApplication.getInstance().height)
.priority(Priority.IMMEDIATE)
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.into(imageView);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">imageView</span>.<span class="pl-en">getContext</span>())
.<span class="pl-en">load</span>(<span class="pl-s1">image_url</span>)
.<span class="pl-en">asBitmap</span>()
.<span class="pl-en">dontAnimate</span>()
.<span class="pl-en">centerCrop</span>()
.<span class="pl-en">override</span>(<span class="pl-smi">MyApplication</span>.<span class="pl-en">getInstance</span>().<span class="pl-s1">width</span>,<span class="pl-smi">MyApplication</span>.<span class="pl-en">getInstance</span>().<span class="pl-s1">height</span>)
.<span class="pl-en">priority</span>(<span class="pl-smi">Priority</span>.<span class="pl-c1">IMMEDIATE</span>)
.<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">SOURCE</span>)
.<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>);</pre></div>
<p dir="auto">where width and height is calculated according to the current configuration of the device:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="DisplayMetrics displayMetrics = this.getResources().getDisplayMetrics();
float dpWidth = displayMetrics.widthPixels / displayMetrics.density;
if (this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
if (dpWidth < 600) {
application_instance.width = 200;
application_instance.height = 200;
} else if (dpWidth >= 600 && dpWidth < 720) {
application_instance.width = 400;
application_instance.height = 400;
} else {
application_instance.width = 800;
application_instance.height = 800;
}
} else {
if (dpWidth < 600) {
application_instance.width = 300;
application_instance.height = 300;
} else if (dpWidth >= 600 && dpWidth < 720) {
application_instance.width = 600;
application_instance.height = 600;
} else {
application_instance.width = 640;
application_instance.height = 640;
}
}"><pre class="notranslate"><span class="pl-smi">DisplayMetrics</span> <span class="pl-s1">displayMetrics</span> = <span class="pl-smi">this</span>.<span class="pl-en">getResources</span>().<span class="pl-en">getDisplayMetrics</span>();
<span class="pl-smi">float</span> <span class="pl-s1">dpWidth</span> = <span class="pl-s1">displayMetrics</span>.<span class="pl-s1">widthPixels</span> / <span class="pl-s1">displayMetrics</span>.<span class="pl-s1">density</span>;
<span class="pl-k">if</span> (<span class="pl-smi">this</span>.<span class="pl-en">getResources</span>().<span class="pl-en">getConfiguration</span>().<span class="pl-s1">orientation</span> == <span class="pl-smi">Configuration</span>.<span class="pl-c1">ORIENTATION_PORTRAIT</span>) {
<span class="pl-k">if</span> (<span class="pl-s1">dpWidth</span> < <span class="pl-c1">600</span>) {
<span class="pl-s1">application_instance</span>.<span class="pl-s1">width</span> = <span class="pl-c1">200</span>;
<span class="pl-s1">application_instance</span>.<span class="pl-s1">height</span> = <span class="pl-c1">200</span>;
} <span class="pl-k">else</span> <span class="pl-k">if</span> (<span class="pl-s1">dpWidth</span> >= <span class="pl-c1">600</span> && <span class="pl-s1">dpWidth</span> < <span class="pl-c1">720</span>) {
<span class="pl-s1">application_instance</span>.<span class="pl-s1">width</span> = <span class="pl-c1">400</span>;
<span class="pl-s1">application_instance</span>.<span class="pl-s1">height</span> = <span class="pl-c1">400</span>;
} <span class="pl-k">else</span> {
<span class="pl-s1">application_instance</span>.<span class="pl-s1">width</span> = <span class="pl-c1">800</span>;
<span class="pl-s1">application_instance</span>.<span class="pl-s1">height</span> = <span class="pl-c1">800</span>;
}
} <span class="pl-k">else</span> {
<span class="pl-k">if</span> (<span class="pl-s1">dpWidth</span> < <span class="pl-c1">600</span>) {
<span class="pl-s1">application_instance</span>.<span class="pl-s1">width</span> = <span class="pl-c1">300</span>;
<span class="pl-s1">application_instance</span>.<span class="pl-s1">height</span> = <span class="pl-c1">300</span>;
} <span class="pl-k">else</span> <span class="pl-k">if</span> (<span class="pl-s1">dpWidth</span> >= <span class="pl-c1">600</span> && <span class="pl-s1">dpWidth</span> < <span class="pl-c1">720</span>) {
<span class="pl-s1">application_instance</span>.<span class="pl-s1">width</span> = <span class="pl-c1">600</span>;
<span class="pl-s1">application_instance</span>.<span class="pl-s1">height</span> = <span class="pl-c1">600</span>;
} <span class="pl-k">else</span> {
<span class="pl-s1">application_instance</span>.<span class="pl-s1">width</span> = <span class="pl-c1">640</span>;
<span class="pl-s1">application_instance</span>.<span class="pl-s1">height</span> = <span class="pl-c1">640</span>;
}
}</pre></div>
<p dir="auto">and the image view in xml layout file :</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<ImageView
android:id="@+id/grid_item_image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
andr(oid:adjustViewBounds="true" />"><pre class="notranslate"><<span class="pl-ent">ImageView</span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/grid_item_image_view<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
andr(oid:adjustViewBounds=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span> /></pre></div>
<p dir="auto">each time the image is loaded, it's downloaded from web again and cached again and the result is a huge cache size ! ..What I need is How to prevent downloading the same image again if it exists in the Diskcache and remove it from cache when its url is removed from database ? I'm using Glide 3.7.0. Am I missing something or misunderstand it?. Please help. Thanks in advance.</p> | 0 |
<p dir="auto">Configuration<br>
Django 1.3.1 non-rel<br>
celery==3.0.19</p>
<p dir="auto">django-celery==3.0.17<br>
celery-haystack==0.7.2</p>
<p dir="auto">Log from celery server</p>
<p dir="auto">-------------- celery@laptop v3.0.19 (Chiastic Slide)<br>
---- **** -----<br>
--- * *** * -- Windows-7-6.1.7601-SP1<br>
-- * - **** ---</p>
<ul dir="auto">
<li>** ---------- [config]</li>
<li>** ---------- .> broker: redis://127.0.0.1:6379/0</li>
<li>** ---------- .> app: default:0x2b07d70 (djcelery.loaders.DjangoLoader)</li>
<li>** ---------- .> concurrency: 4 (processes)</li>
<li>*** --- * --- .> events: ON<br>
-- ******* ----<br>
--- ***** ----- [queues]<br>
-------------- .> celery: exchange:celery(direct) binding:celery</li>
</ul>
<p dir="auto">[Tasks]<br>
. celery.backend_cleanup<br>
. celery.chain<br>
. celery.chord<br>
. celery.chord_unlock<br>
. celery.chunks<br>
. celery.group<br>
. celery.map<br>
. celery.starmap<br>
. celery_haystack.tasks.CeleryHaystackSignalHandler<br>
. celery_haystack.tasks.CeleryHaystackUpdateIndex</p>
<p dir="auto">......<br>
......<br>
....</p>
<p dir="auto">[2013-06-12 00:11:10,713: INFO/MainProcess] Got task from broker: celery_haystack.tasks.CeleryHaysta<br>
[2013-06-12 00:11:10,733: DEBUG/MainProcess] Mediator: Running callback for task: celery_haystack.ta<br>
[2013-06-12 00:11:10,733: DEBUG/MainProcess] TaskPool: Apply <function _fast_trace_task at 0x0408C6B<br>
[2013-06-12 00:11:10,737: DEBUG/MainProcess] Task accepted: celery_haystack.tasks.CeleryHaystackSign<br>
[2013-06-12 00:11:10,846: ERROR/MainProcess] Task celery_haystack.tasks.CeleryHaystackSignalHandler[<br>
Traceback (most recent call last):<br>
File "C:\Python27\lib\site-packages\billiard\pool.py", line 313, in worker<br>
result = (True, func(_args, *_kwds))<br>
File "C:\Python27\lib\site-packages\celery\task\trace.py", line 320, in _fast_trace_task<br>
return _tasks[task].<strong>trace</strong>(uuid, args, kwargs, request)[0]<br>
File "C:\Python27\lib\site-packages\celery\app\registry.py", line 20, in <strong>missing</strong><br>
raise self.NotRegistered(key)<br>
NotRegistered: 'celery_haystack.tasks.CeleryHaystackSignalHandler'</p> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="188921722" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3586" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3586/hovercard" href="https://github.com/celery/celery/issues/3586">#3586</a></li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="188921722" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3586" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3586/hovercard" href="https://github.com/celery/celery/issues/3586">#3586</a></li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -> celery:4.4.0rc2 (cliffs) kombu:4.6.3 py:3.6.7
billiard:3.6.0.0 py-amqp:2.5.0
platform -> system:Linux arch:64bit
kernel version:4.9.125-linuxkit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:pyamqp results:redis://redis/
broker_url: 'amqp://guest:********@rabbit:5672//'
result_backend: 'redis://redis/'"><pre class="notranslate"><code class="notranslate">software -> celery:4.4.0rc2 (cliffs) kombu:4.6.3 py:3.6.7
billiard:3.6.0.0 py-amqp:2.5.0
platform -> system:Linux arch:64bit
kernel version:4.9.125-linuxkit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:pyamqp results:redis://redis/
broker_url: 'amqp://guest:********@rabbit:5672//'
result_backend: 'redis://redis/'
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alabaster==0.7.12
amqp==2.5.0
asn1crypto==0.24.0
aspy.yaml==1.3.0
atomicwrites==1.3.0
attrs==19.1.0
aws-xray-sdk==0.95
azure-common==1.1.5
azure-nspkg==3.0.2
azure-storage==0.36.0
azure-storage-common==1.1.0
azure-storage-nspkg==3.1.0
Babel==2.7.0
basho-erlastic==2.1.1
billiard==3.6.0.0
boto==2.49.0
boto3==1.9.180
botocore==1.12.180
bumpversion==0.5.3
case==1.5.3
cassandra-driver==3.18.0
celery==4.4.0rc2
certifi==2019.6.16
cffi==1.12.3
cfgv==2.0.0
chardet==3.0.4
codecov==2.0.15
couchbase==2.5.5
coverage==4.5.3
cryptography==2.7
DateTime==4.3
dnspython==1.16.0
docker==4.0.2
docutils==0.14
ecdsa==0.13.2
elasticsearch==7.0.2
entrypoints==0.3
ephem==3.7.6.0
eventlet==0.25.0
filelock==3.0.12
flake8==3.7.7
flakeplus==1.1.0
future==0.17.1
gevent==1.4.0
greenlet==0.4.15
identify==1.4.5
idna==2.8
imagesize==1.1.0
importlib-metadata==0.18
importlib-resources==1.0.2
Jinja2==2.10.1
jmespath==0.9.4
jsondiff==1.1.1
jsonpickle==1.2
kombu==4.6.3
linecache2==1.0.0
MarkupSafe==1.1.1
mccabe==0.6.1
mock==3.0.5
monotonic==1.5
more-itertools==7.1.0
moto==1.3.7
msgpack==0.6.1
nodeenv==1.3.3
nose==1.3.7
packaging==19.0
pluggy==0.12.0
pre-commit==1.17.0
py==1.8.0
pyaml==19.4.1
pyArango==1.3.2
pycodestyle==2.5.0
pycouchdb==1.14
pycparser==2.19
pycryptodome==3.8.2
pycurl==7.43.0.3
pydocstyle==1.1.1
pydocumentdb==2.3.2
pyflakes==2.1.1
Pygments==2.4.2
pylibmc==1.6.0
pymongo==3.8.0
pyparsing==2.4.0
pytest==4.6.4
pytest-cov==2.7.1
pytest-sugar==0.9.2
pytest-travis-fold==1.3.0
python-consul==1.1.0
python-dateutil==2.8.0
python-jose==2.0.2
python-memcached==1.59
python3-protobuf==2.5.0
pytz==2019.1
PyYAML==5.1.1
redis==3.2.1
requests==2.22.0
responses==0.10.6
riak==2.7.0
s3transfer==0.2.1
simplejson==3.16.0
six==1.12.0
snowballstemmer==1.9.0
softlayer-messaging==1.0.3
Sphinx==1.8.5
sphinx-celery==1.4.6
sphinx-testing==0.7.2
sphinx2rst==1.1.0
sphinxcontrib-websupport==1.1.2
SQLAlchemy==1.3.5
tblib==1.4.0
tenacity==5.0.4
termcolor==1.1.0
toml==0.10.0
tox==3.13.1
traceback2==1.4.0
typing==3.7.4
Unipath==1.1
unittest2==1.1.0
urllib3==1.25.3
vine==1.3.0
virtualenv==16.6.1
wcwidth==0.1.7
websocket-client==0.56.0
Werkzeug==0.15.4
wrapt==1.11.2
xmltodict==0.12.0
zipp==0.5.1
zope.interface==4.6.0"><pre class="notranslate"><code class="notranslate">alabaster==0.7.12
amqp==2.5.0
asn1crypto==0.24.0
aspy.yaml==1.3.0
atomicwrites==1.3.0
attrs==19.1.0
aws-xray-sdk==0.95
azure-common==1.1.5
azure-nspkg==3.0.2
azure-storage==0.36.0
azure-storage-common==1.1.0
azure-storage-nspkg==3.1.0
Babel==2.7.0
basho-erlastic==2.1.1
billiard==3.6.0.0
boto==2.49.0
boto3==1.9.180
botocore==1.12.180
bumpversion==0.5.3
case==1.5.3
cassandra-driver==3.18.0
celery==4.4.0rc2
certifi==2019.6.16
cffi==1.12.3
cfgv==2.0.0
chardet==3.0.4
codecov==2.0.15
couchbase==2.5.5
coverage==4.5.3
cryptography==2.7
DateTime==4.3
dnspython==1.16.0
docker==4.0.2
docutils==0.14
ecdsa==0.13.2
elasticsearch==7.0.2
entrypoints==0.3
ephem==3.7.6.0
eventlet==0.25.0
filelock==3.0.12
flake8==3.7.7
flakeplus==1.1.0
future==0.17.1
gevent==1.4.0
greenlet==0.4.15
identify==1.4.5
idna==2.8
imagesize==1.1.0
importlib-metadata==0.18
importlib-resources==1.0.2
Jinja2==2.10.1
jmespath==0.9.4
jsondiff==1.1.1
jsonpickle==1.2
kombu==4.6.3
linecache2==1.0.0
MarkupSafe==1.1.1
mccabe==0.6.1
mock==3.0.5
monotonic==1.5
more-itertools==7.1.0
moto==1.3.7
msgpack==0.6.1
nodeenv==1.3.3
nose==1.3.7
packaging==19.0
pluggy==0.12.0
pre-commit==1.17.0
py==1.8.0
pyaml==19.4.1
pyArango==1.3.2
pycodestyle==2.5.0
pycouchdb==1.14
pycparser==2.19
pycryptodome==3.8.2
pycurl==7.43.0.3
pydocstyle==1.1.1
pydocumentdb==2.3.2
pyflakes==2.1.1
Pygments==2.4.2
pylibmc==1.6.0
pymongo==3.8.0
pyparsing==2.4.0
pytest==4.6.4
pytest-cov==2.7.1
pytest-sugar==0.9.2
pytest-travis-fold==1.3.0
python-consul==1.1.0
python-dateutil==2.8.0
python-jose==2.0.2
python-memcached==1.59
python3-protobuf==2.5.0
pytz==2019.1
PyYAML==5.1.1
redis==3.2.1
requests==2.22.0
responses==0.10.6
riak==2.7.0
s3transfer==0.2.1
simplejson==3.16.0
six==1.12.0
snowballstemmer==1.9.0
softlayer-messaging==1.0.3
Sphinx==1.8.5
sphinx-celery==1.4.6
sphinx-testing==0.7.2
sphinx2rst==1.1.0
sphinxcontrib-websupport==1.1.2
SQLAlchemy==1.3.5
tblib==1.4.0
tenacity==5.0.4
termcolor==1.1.0
toml==0.10.0
tox==3.13.1
traceback2==1.4.0
typing==3.7.4
Unipath==1.1
unittest2==1.1.0
urllib3==1.25.3
vine==1.3.0
virtualenv==16.6.1
wcwidth==0.1.7
websocket-client==0.56.0
Werkzeug==0.15.4
wrapt==1.11.2
xmltodict==0.12.0
zipp==0.5.1
zope.interface==4.6.0
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery
from tenacity import retry, stop_after_attempt, wait_fixed
app = Celery('tasks', broker='pyamqp://rabbit:5672', backend='redis://redis/')
@retry(reraise=False, stop=stop_after_attempt(2), wait=wait_fixed(1))
def foo(x):
print('attempt foo')
raise ValueError('this is value error')
@app.task
def add(x, y):
foo(x)
return x + y"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">from</span> <span class="pl-s1">tenacity</span> <span class="pl-k">import</span> <span class="pl-s1">retry</span>, <span class="pl-s1">stop_after_attempt</span>, <span class="pl-s1">wait_fixed</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'tasks'</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">'pyamqp://rabbit:5672'</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'redis://redis/'</span>)
<span class="pl-en">@<span class="pl-en">retry</span>(<span class="pl-s1">reraise</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">stop</span><span class="pl-c1">=</span><span class="pl-en">stop_after_attempt</span>(<span class="pl-c1">2</span>), <span class="pl-s1">wait</span><span class="pl-c1">=</span><span class="pl-en">wait_fixed</span>(<span class="pl-c1">1</span>))</span>
<span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">x</span>):
<span class="pl-en">print</span>(<span class="pl-s">'attempt foo'</span>)
<span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'this is value error'</span>)
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span>
<span class="pl-k">def</span> <span class="pl-en">add</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>):
<span class="pl-en">foo</span>(<span class="pl-s1">x</span>)
<span class="pl-k">return</span> <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-s1">y</span></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Running the <code class="notranslate">add</code> task should result in the following output</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="attempt foo
attempt foo
Traceback (most recent call last):
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py", line 361, in call
result = fn(*args, **kwargs)
File "/home/developer/celery/tasks.py", line 15, in foo
foo(x)
ValueError: this is value error
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/developer/celery/celery/local.py", line 191, in __call__
return self._get_current_object()(*a, **kw)
File "/home/developer/celery/celery/app/task.py", line 400, in __call__
return self.run(*args, **kwargs)
File "/home/developer/celery/tasks.py", line 21, in add
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py", line 292, in wrapped_f
return self.call(f, *args, **kw)
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py", line 358, in call
do = self.iter(retry_state=retry_state)
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py", line 332, in iter
six.raise_from(retry_exc, fut.exception())
File "<string>", line 3, in raise_from
tenacity.RetryError: RetryError[<Future at 0x7fe83b4c4240 state=finished raised ValueError>]"><pre class="notranslate"><span class="pl-s1">attempt</span> <span class="pl-s1">foo</span>
<span class="pl-s1">attempt</span> <span class="pl-s1">foo</span>
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">361</span>, <span class="pl-s1">in</span> <span class="pl-s1">call</span>
<span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-en">fn</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/celery/tasks.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">15</span>, <span class="pl-s1">in</span> <span class="pl-s1">foo</span>
<span class="pl-en">foo</span>(<span class="pl-s1">x</span>)
<span class="pl-v">ValueError</span>: <span class="pl-s1">this</span> <span class="pl-c1">is</span> <span class="pl-s1">value</span> <span class="pl-s1">error</span>
<span class="pl-v">The</span> <span class="pl-s1">above</span> <span class="pl-s1">exception</span> <span class="pl-s1">was</span> <span class="pl-s1">the</span> <span class="pl-s1">direct</span> <span class="pl-s1">cause</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-s1">following</span> <span class="pl-s1">exception</span>:
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"<stdin>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-c1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/celery/celery/local.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">191</span>, <span class="pl-s1">in</span> <span class="pl-s1">__call__</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_get_current_object</span>()(<span class="pl-c1">*</span><span class="pl-s1">a</span>, <span class="pl-c1">**</span><span class="pl-s1">kw</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/celery/celery/app/task.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">400</span>, <span class="pl-s1">in</span> <span class="pl-s1">__call__</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">run</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/celery/tasks.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">21</span>, <span class="pl-s1">in</span> <span class="pl-s1">add</span>
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">292</span>, <span class="pl-s1">in</span> <span class="pl-s1">wrapped_f</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">call</span>(<span class="pl-s1">f</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kw</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">358</span>, <span class="pl-s1">in</span> <span class="pl-s1">call</span>
<span class="pl-s1">do</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">iter</span>(<span class="pl-s1">retry_state</span><span class="pl-c1">=</span><span class="pl-s1">retry_state</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">332</span>, <span class="pl-s1">in</span> <span class="pl-s1">iter</span>
<span class="pl-s1">six</span>.<span class="pl-en">raise_from</span>(<span class="pl-s1">retry_exc</span>, <span class="pl-s1">fut</span>.<span class="pl-en">exception</span>())
<span class="pl-v">File</span> <span class="pl-s">"<string>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3</span>, <span class="pl-s1">in</span> <span class="pl-s1">raise_from</span>
<span class="pl-s1">tenacity</span>.<span class="pl-v">RetryError</span>: <span class="pl-v">RetryError</span>[<span class="pl-c1"><</span><span class="pl-v">Future</span> <span class="pl-s1">at</span> <span class="pl-c1">0x7fe83b4c4240</span> <span class="pl-s1">state</span><span class="pl-c1">=</span><span class="pl-s1">finished</span> <span class="pl-s1">raised</span> <span class="pl-v">ValueError</span><span class="pl-c1">></span>]</pre></div>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">Instead, it fails to serialize the exception</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[2019-07-01 17:47:12,837: WARNING/ForkPoolWorker-1] attempt foo
[2019-07-01 17:47:13,846: WARNING/ForkPoolWorker-1] attempt foo
[2019-07-01 17:47:13,866: ERROR/ForkPoolWorker-1] Task tasks.add[f303fe29-11fe-4da6-aed4-97648b0c27d1] raised unexpected: RetryError('<Future at 0x7fdf2212b710 state=finished raised ValueError>',)
Traceback (most recent call last):
File "/home/developer/celery/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/developer/celery/celery/app/trace.py", line 650, in __protected_call__
return self.run(*args, **kwargs)
File "/home/developer/celery/tasks.py", line 21, in add
foo(x)
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py", line 292, in wrapped_f
return self.call(f, *args, **kw)
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py", line 358, in call
do = self.iter(retry_state=retry_state)
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py", line 332, in iter
six.raise_from(retry_exc, fut.exception())
File "<string>", line 3, in raise_from
tenacity.RetryError: <Future at 0x7fdf2212b710 state=finished raised ValueError>
[2019-07-01 17:47:13,880: ERROR/MainProcess] Task handler raised error: <MaybeEncodingError: Error sending result: '"(1, <ExceptionInfo: RetryError('<Future at 0x7fdf2212b710 state=finished raised ValueError>',)>, None)"'. Reason: ''PicklingError("Can\'t pickle <class \'tenacity.RetryError\'>: it\'s not the same object as tenacity.RetryError",)''.>
Traceback (most recent call last):
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/billiard/pool.py", line 362, in workloop
put((READY, (job, i, result, inqW_fd)))
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/billiard/queues.py", line 366, in put
self.send_payload(ForkingPickler.dumps(obj))
File "/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/billiard/reduction.py", line 56, in dumps
cls(buf, protocol).dump(obj)
billiard.pool.MaybeEncodingError: Error sending result: '"(1, <ExceptionInfo: RetryError('<Future at 0x7fdf2212b710 state=finished raised ValueError>',)>, None)"'. Reason: ''PicklingError("Can\'t pickle <class \'tenacity.RetryError\'>: it\'s not the same object as tenacity.RetryError",)''."><pre class="notranslate">[<span class="pl-c1">2019</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">17</span>:<span class="pl-c1">47</span>:<span class="pl-c1">12</span>,<span class="pl-c1">837</span>: <span class="pl-v">WARNING</span><span class="pl-c1">/</span><span class="pl-v">ForkPoolWorker</span><span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-s1">attempt</span> <span class="pl-s1">foo</span>
[<span class="pl-c1">2019</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">17</span>:<span class="pl-c1">47</span>:<span class="pl-c1">13</span>,<span class="pl-c1">846</span>: <span class="pl-v">WARNING</span><span class="pl-c1">/</span><span class="pl-v">ForkPoolWorker</span><span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-s1">attempt</span> <span class="pl-s1">foo</span>
[<span class="pl-c1">2019</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">17</span>:<span class="pl-c1">47</span>:<span class="pl-c1">13</span>,<span class="pl-c1">866</span>: <span class="pl-v">ERROR</span><span class="pl-c1">/</span><span class="pl-v">ForkPoolWorker</span><span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-v">Task</span> <span class="pl-s1">tasks</span>.<span class="pl-s1">add</span>[<span class="pl-s1">f303fe29</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-s1">fe</span><span class="pl-c1">-</span><span class="pl-c1">4</span><span class="pl-s1">da6</span><span class="pl-c1">-</span><span class="pl-s1">aed4</span><span class="pl-c1">-</span><span class="pl-c1">97648</span><span class="pl-s1">b0c27d1</span>] <span class="pl-s1">raised</span> <span class="pl-s1">unexpected</span>: <span class="pl-v">RetryError</span>(<span class="pl-s">'<Future at 0x7fdf2212b710 state=finished raised ValueError>'</span>,)
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/celery/celery/app/trace.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">385</span>, <span class="pl-s1">in</span> <span class="pl-s1">trace_task</span>
<span class="pl-v">R</span> <span class="pl-c1">=</span> <span class="pl-s1">retval</span> <span class="pl-c1">=</span> <span class="pl-en">fun</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/celery/celery/app/trace.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">650</span>, <span class="pl-s1">in</span> <span class="pl-s1">__protected_call__</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">run</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/celery/tasks.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">21</span>, <span class="pl-s1">in</span> <span class="pl-s1">add</span>
<span class="pl-en">foo</span>(<span class="pl-s1">x</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">292</span>, <span class="pl-s1">in</span> <span class="pl-s1">wrapped_f</span>
<span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">call</span>(<span class="pl-s1">f</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kw</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">358</span>, <span class="pl-s1">in</span> <span class="pl-s1">call</span>
<span class="pl-s1">do</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">iter</span>(<span class="pl-s1">retry_state</span><span class="pl-c1">=</span><span class="pl-s1">retry_state</span>)
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/tenacity/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">332</span>, <span class="pl-s1">in</span> <span class="pl-s1">iter</span>
<span class="pl-s1">six</span>.<span class="pl-en">raise_from</span>(<span class="pl-s1">retry_exc</span>, <span class="pl-s1">fut</span>.<span class="pl-en">exception</span>())
<span class="pl-v">File</span> <span class="pl-s">"<string>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3</span>, <span class="pl-s1">in</span> <span class="pl-s1">raise_from</span>
<span class="pl-s1">tenacity</span>.<span class="pl-v">RetryError</span>: <span class="pl-c1"><</span><span class="pl-v">Future</span> <span class="pl-s1">at</span> <span class="pl-c1">0x7fdf2212b710</span> <span class="pl-s1">state</span><span class="pl-c1">=</span><span class="pl-s1">finished</span> <span class="pl-s1">raised</span> <span class="pl-v">ValueError</span><span class="pl-c1">></span>
[<span class="pl-c1">2019</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">17</span>:<span class="pl-c1">47</span>:<span class="pl-c1">13</span>,<span class="pl-c1">880</span>: <span class="pl-v">ERROR</span><span class="pl-c1">/</span><span class="pl-v">MainProcess</span>] <span class="pl-v">Task</span> <span class="pl-s1">handler</span> <span class="pl-s1">raised</span> <span class="pl-s1">error</span>: <span class="pl-c1"><</span><span class="pl-v">MaybeEncodingError</span>: <span class="pl-v">Error</span> <span class="pl-s1">sending</span> <span class="pl-s1">result</span>: <span class="pl-s">'"(1, <ExceptionInfo: RetryError('</span><span class="pl-c1"><</span><span class="pl-v">Future</span> <span class="pl-s1">at</span> <span class="pl-c1">0x7fdf2212b710</span> <span class="pl-s1">state</span><span class="pl-c1">=</span><span class="pl-s1">finished</span> <span class="pl-s1">raised</span> <span class="pl-v">ValueError</span><span class="pl-c1">></span><span class="pl-s">',)>, None)"'</span>. <span class="pl-v">Reason</span>: <span class="pl-s">''</span><span class="pl-v">PicklingError</span>(<span class="pl-s">"Can<span class="pl-cce">\'</span>t pickle <class <span class="pl-cce">\'</span>tenacity.RetryError<span class="pl-cce">\'</span>>: it<span class="pl-cce">\'</span>s not the same object as tenacity.RetryError"</span>,)<span class="pl-s">''</span>.<span class="pl-c1">></span>
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/billiard/pool.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">362</span>, <span class="pl-s1">in</span> <span class="pl-s1">workloop</span>
<span class="pl-en">put</span>((<span class="pl-v">READY</span>, (<span class="pl-s1">job</span>, <span class="pl-s1">i</span>, <span class="pl-s1">result</span>, <span class="pl-s1">inqW_fd</span>)))
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/billiard/queues.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">366</span>, <span class="pl-s1">in</span> <span class="pl-s1">put</span>
<span class="pl-s1">self</span>.<span class="pl-en">send_payload</span>(<span class="pl-v">ForkingPickler</span>.<span class="pl-en">dumps</span>(<span class="pl-s1">obj</span>))
<span class="pl-v">File</span> <span class="pl-s">"/home/developer/.pyenv/versions/python3.6/lib/python3.6/site-packages/billiard/reduction.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">56</span>, <span class="pl-s1">in</span> <span class="pl-s1">dumps</span>
<span class="pl-en">cls</span>(<span class="pl-s1">buf</span>, <span class="pl-s1">protocol</span>).<span class="pl-en">dump</span>(<span class="pl-s1">obj</span>)
<span class="pl-s1">billiard</span>.<span class="pl-s1">pool</span>.<span class="pl-v">MaybeEncodingError</span>: <span class="pl-v">Error</span> <span class="pl-s1">sending</span> <span class="pl-s1">result</span>: <span class="pl-s">'"(1, <ExceptionInfo: RetryError('</span><span class="pl-c1"><</span><span class="pl-v">Future</span> <span class="pl-s1">at</span> <span class="pl-c1">0x7fdf2212b710</span> <span class="pl-s1">state</span><span class="pl-c1">=</span><span class="pl-s1">finished</span> <span class="pl-s1">raised</span> <span class="pl-v">ValueError</span><span class="pl-c1">></span><span class="pl-s">',)>, None)"'</span>. <span class="pl-v">Reason</span>: <span class="pl-s">''</span><span class="pl-v">PicklingError</span>(<span class="pl-s">"Can<span class="pl-cce">\'</span>t pickle <class <span class="pl-cce">\'</span>tenacity.RetryError<span class="pl-cce">\'</span>>: it<span class="pl-cce">\'</span>s not the same object as tenacity.RetryError"</span>,)<span class="pl-s">''</span>.</pre></div> | 0 |
<p dir="auto">When I use tf.gfile.GFile and set mode='rb' to open a file on windows, it will read as 'str' instead of 'byte'. For example,</p>
<p dir="auto">f = tf.gfile.GFile("d2f42068.ini", mode='rb')<br>
f.readline()<br>
The result shows<br>
'\n'.<br>
It should be<br>
b'\n'</p>
<p dir="auto">I find the gfile.py replace the 'r' to empty.<br>
def <strong>init</strong>(self, name, mode='r'):<br>
mode = mode.replace('b', '')<br>
super(FastGFile, self).<strong>init</strong>(name=name, mode=mode)</p>
<p dir="auto">This issue will cause some error of data reading on windows.</p>
<p dir="auto">My OS is win10 x64. The version of tensorflow is r0.12.</p> | <p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.</p>
<p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto">None</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: macOS Sierra 10.12.2</p>
<p dir="auto">Installed version of CUDA and cuDNN: None<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>): None</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>A link to the pip package you installed:</li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li>
</ol>
<p dir="auto">If installed from source, provide</p>
<ol dir="auto">
<li>
<p dir="auto">The commit hash (<code class="notranslate">git rev-parse HEAD</code>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/4d924e796368163eff11a8151e8505715345f58d/hovercard" href="https://github.com/tensorflow/tensorflow/commit/4d924e796368163eff11a8151e8505715345f58d"><tt>4d924e7</tt></a></p>
</li>
<li>
<p dir="auto">The output of <code class="notranslate">bazel version</code><br>
0.4.3-homebrew</p>
</li>
</ol>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import pickle
f = tf.gfile.GFile("data_batch_1")
pickle.load(f, encoding='latin1')"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
import pickle
f = tf.gfile.GFile("data_batch_1")
pickle.load(f, encoding='latin1')
</code></pre></div>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<p dir="auto">I tried to manually read all data into a variable: <code class="notranslate">s = f.read()</code> and unpickle it: <code class="notranslate">pickle.loads(s, encoding='latin')</code>. It works well.</p>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment or provide link).</p>
<p dir="auto"><code class="notranslate">TypeError: a bytes-like object is required, not 'str'</code></p>
<p dir="auto">I don't know why this happened. I checked the file_io code, and it returns byte object when calling <code class="notranslate">read</code>. So maybe this is something about pickle, any ideas?</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.3</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">When I browse this issue <a href="https://github.com/apache/incubator-dubbo/pull/2114" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/2114/hovercard">Dubbo-2013 </a>,I found 「dubbo:consume」 more attributes。But in the official documentation <a href="https://dubbo.incubator.apache.org/zh-cn/docs/user/references/xml/dubbo-consumer.html" rel="nofollow">dubbo-consume</a>, it is not updated</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.3</li>
<li>Operating System version: all</li>
<li>Java version: all</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<ol dir="auto">
<li>To setting <code class="notranslate">@Reference#parameters()</code></li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto"><code class="notranslate">ReferenceBean</code> contains parameters <code class="notranslate">Map</code></p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto"><code class="notranslate">ReferenceBean</code> does not contain parameters <code class="notranslate">Map</code></p> | 0 |
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export var seven = 7;
export var seven = 7;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">seven</span> <span class="pl-c1">=</span> <span class="pl-c1">7</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">seven</span> <span class="pl-c1">=</span> <span class="pl-c1">7</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This is <del>valid</del>_invalid_, and TS doesn't error on it.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export var seven = 7;
export var seven = 8;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">seven</span> <span class="pl-c1">=</span> <span class="pl-c1">7</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">seven</span> <span class="pl-c1">=</span> <span class="pl-c1">8</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This is <em>invalid</em>, and TS doesn't error on it.</p>
<p dir="auto"><a href="http://www.ecma-international.org/ecma-262/6.0/#sec-resolveexport" rel="nofollow">The spec:</a></p>
<blockquote>
<ol dir="auto">
<li>For each ExportEntry Record e in module.[[StarExportEntries]], do
<ol dir="auto">
<li>Let importedModule be HostResolveImportedModule(module, e.[[ModuleRequest]]).</li>
<li>ReturnIfAbrupt(importedModule).</li>
<li>Let resolution be importedModule.ResolveExport(exportName, resolveSet, exportStarSet).</li>
<li>ReturnIfAbrupt(resolution).</li>
<li>If resolution is "ambiguous", return "ambiguous".</li>
<li>If resolution is not null, then
<ol dir="auto">
<li>If starResolution is null, let starResolution be resolution.</li>
<li>Else
<ol dir="auto">
<li>Assert: there is more than one * import that includes the requested name.</li>
<li>If resolution.[[module]] and starResolution.[[module]] are not the same Module Record or SameValue(resolution.[[exportName]], starResolution.[[exportName]]) is false, return "ambiguous".</li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
</ol>
</blockquote>
<p dir="auto"><del>A module is free to export the same value (as in the same value spec function) multiple times, but exporting different values under the same identifier should be a syntax error.</del> This should also be an error:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export var state = {};
export var state = {};"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Because unique objects do not pass the <code class="notranslate">SameValue()</code> test. (It is not currently reported as an error.)</p>
<p dir="auto"><del>Given that we don't want to attempt to evaluate RHS expressions to resolve the same value functions, we're pretty much stuck using type information to infer the same thing. Or we could just forbid the re-declaration of exports, given that since you're forced the reexport the exact same value or error, there's no <em>real</em> value in doing so.</del></p>
<p dir="auto">And perhaps <a href="http://www.ecma-international.org/ecma-262/6.0/#sec-module-semantics-static-semantics-early-errors" rel="nofollow">the more relevant part of the spec</a> that I found:</p>
<blockquote>
<p dir="auto">15.2.1.1 Static Semantics: Early Errors<br>
It is a Syntax Error if the ExportedNames of ModuleItemList contains any duplicate entries.</p>
</blockquote>
<p dir="auto">We do forbid multiple default exports already, but don't check other names if the types match for some reason?</p> | <p dir="auto">Type inference seems to fail when the return-type is a union between a class and a generic type.</p>
<p dir="auto">I was hoping to use this pattern to be able to decorate an object (not a class) with traits/behaviors on a per-instance basis, in a type-safe manner, something along the lines of Scala's <code class="notranslate">with</code> operator.</p>
<p dir="auto">Best explained by example:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Fud {}
interface Decorated {
foo(): string;
}
function decorate<T>(object: T) : T|Decorated {
object['foo'] = function () {
return 'Hello';
};
return <T|Decorated> object;
}
var test = decorate(new Fud());
console.log(test.foo()); // ERROR"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Fud</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">Decorated</span> <span class="pl-kos">{</span>
<span class="pl-c1">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">decorate</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">object</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span> : <span class="pl-smi">T</span><span class="pl-c1">|</span><span class="pl-smi">Decorated</span> <span class="pl-kos">{</span>
<span class="pl-s1">object</span><span class="pl-kos">[</span><span class="pl-s">'foo'</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s">'Hello'</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-c1">|</span><span class="pl-smi">Decorated</span><span class="pl-kos">></span> <span class="pl-s1">object</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-en">decorate</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">Fud</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ERROR</span></pre></div>
<p dir="auto">So anything that goes through the <code class="notranslate">decorate()</code> function comes out decorated with a new interface, which is made possible using a union between a variable type and some interface.</p>
<p dir="auto">Hovering over the call to <code class="notranslate">decorate()</code>, the return-type is correctly reported as <code class="notranslate">Decorated | Fud</code> - however, when the result is assigned to the <code class="notranslate">test</code> variable, the inferred type is <code class="notranslate">Fud</code>, and the attempt to call <code class="notranslate">test.foo()</code> generates the error "property foo does not exist on type Fud".</p>
<p dir="auto">Am I missing something? Is there some reason this shouldn't work?</p> | 0 |
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/person142/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/person142">@person142</a> responsed to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="293736807" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/8354" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/8354/hovercard" href="https://github.com/scipy/scipy/issues/8354">#8354</a> that his preference was for a <a href="https://github.com/scipy/scipy/issues/8354#issuecomment-362469371" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/8354/hovercard">cython optimize api</a>.</p>
<blockquote>
<p dir="auto">This came up before: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="218287443" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/7242" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/7242/hovercard" href="https://github.com/scipy/scipy/issues/7242">#7242</a>.</p>
<p dir="auto">As you can see I was against the idea. Handling all reasonable halting conditions for a scalar solver is already a PITA, and I think the problem gets much worse for a vectorized scalar solver. IMO it is better to provide a Cython API to a scalar solver and let users handle looping over it.</p>
</blockquote>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="293809929" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/8357" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/8357/hovercard" href="https://github.com/scipy/scipy/pull/8357">#8357</a> only vectorized Newton methods. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="297653505" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/8431" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/8431/hovercard" href="https://github.com/scipy/scipy/pull/8431">#8431</a> allows users to use a "tight loop" in C with Brent, Ridder, and other root finders.</p>
<p dir="auto">We decided it was okay to <a href="https://github.com/scipy/scipy/pull/8431#issuecomment-366143028" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/8431/hovercard">split up Newton</a></p>
<blockquote>
<blockquote>
<p dir="auto">Is it okay to split up Newton, Halley's, and secant into different calls in cython_optimize?</p>
</blockquote>
<p dir="auto">I am personally pro this (wish it had been done that way in optimize), but maybe others will feel more strongly that the APIs should match.</p>
</blockquote>
<p dir="auto">We discussed which callbacks to support and the fact that <code class="notranslate">cython_optimize</code> should be pure C so it can free the GIL in <a href="https://github.com/scipy/scipy/pull/8431#issuecomment-366148174" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/8431/hovercard">this comment</a></p>
<p dir="auto">This <a href="https://github.com/scipy/scipy/pull/8431#issuecomment-417216245" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/8431/hovercard">commit</a> has links to annotated html that shows that <code class="notranslate">zeros_struct</code> and <code class="notranslate">zeros_array</code> are pure C, no Python so they can release the GIL to call Cython <code class="notranslate">prange</code></p>
<p dir="auto">The Cython optimize API in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="297653505" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/8431" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/8431/hovercard" href="https://github.com/scipy/scipy/pull/8431">#8431</a> was discussed in <a href="https://mail.python.org/pipermail/scipy-dev/2018-February/022453.html" rel="nofollow">this SciPy-Dev post</a> and <a href="https://mail.python.org/pipermail/scipy-dev/2018-April/022762.html" rel="nofollow">this one too</a> when I specifically asked about callback signatures.</p> | <p dir="auto">My issue is about converting a large coo matrix (stored as npz) to csr format. The number of entries (including duplicates) in the coo matrix is 16,940,976,557. I tried converting it, but everytime it goes out of memory, despite the fact that I have 500 GB of memory in my machine.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import scipy.sparse as sp
coomat = sp.load_npz(input_file)
sp.save_npz(output_file, coomat.to_csr())"><pre class="notranslate"><code class="notranslate">import scipy.sparse as sp
coomat = sp.load_npz(input_file)
sp.save_npz(output_file, coomat.to_csr())
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Done loading coomat in 1138.3824996530311 seconds
Traceback (most recent call last):
File "coo_to_csr.py", line 16, in <module>
sp.save_npz(output_file, coomat.tocsr())
File "/home/sidak/.conda/envs/myenv/lib/python3.6/site-packages/scipy/sparse/coo.py", line 392, in tocsr
indices = np.empty_like(col, dtype=idx_dtype)
MemoryError"><pre class="notranslate"><code class="notranslate">Done loading coomat in 1138.3824996530311 seconds
Traceback (most recent call last):
File "coo_to_csr.py", line 16, in <module>
sp.save_npz(output_file, coomat.tocsr())
File "/home/sidak/.conda/envs/myenv/lib/python3.6/site-packages/scipy/sparse/coo.py", line 392, in tocsr
indices = np.empty_like(col, dtype=idx_dtype)
MemoryError
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.1.0 1.15.1 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.1.0 1.15.1 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)
</code></pre></div>
<p dir="auto">The coo matrix gets loaded in memory, but converting to csr, it creates another copy and then goes out of memory. Is there some more efficient way of doing this? or if I can in some way split the matrix in parts and combine?</p>
<p dir="auto">It would be great if you can help me out on this. Thanks a lot! <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p> | 0 |
<p dir="auto"><a href="https://seaborn.pydata.org/generated/seaborn.kdeplot.html" rel="nofollow">kdeplot()</a> offers an argument fill. It would be nice to offer this argument to lineplot() as well.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sns.lineplot(
data=data, x="x", y="y", hue="category", fill=True, palette="crest", alpha=.5, linewidth=0
)"><pre class="notranslate"><span class="pl-s1">sns</span>.<span class="pl-en">lineplot</span>(
<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">data</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"x"</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">"y"</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"category"</span>, <span class="pl-s1">fill</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">palette</span><span class="pl-c1">=</span><span class="pl-s">"crest"</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">.5</span>, <span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">0</span>
)</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11406002/103433277-e7e86980-4bee-11eb-8bca-961b6e6a81ff.png"><img src="https://user-images.githubusercontent.com/11406002/103433277-e7e86980-4bee-11eb-8bca-961b6e6a81ff.png" alt="image" style="max-width: 100%;"></a><br>
(image from kdeplot docu)</p>
<p dir="auto">Keep in mind that the lineplot can be used in the context of a polar plot (axis projection: "polar").</p>
<p dir="auto">PS: happy New Year!</p> | <p dir="auto">I'm trying to plot a seaborn histogram using the following command to get the gaussian kernel density estimation.</p>
<p dir="auto"><code class="notranslate">sns.distplot(df['charges'], kde=True)</code></p>
<p dir="auto">I'm using</p>
<ul dir="auto">
<li>seaborn version 0.7.1</li>
<li>windows machine</li>
<li>jupyter notebooks</li>
</ul>
<p dir="auto">I'm getting the following error and I only see histogram but not kde.</p>
<hr>
<p dir="auto">TypeError Traceback (most recent call last)<br>
in ()<br>
----> 1 sns.distplot(df['charges'], bins=50, kde=True)</p>
<p dir="auto">C:\Users\Niranjan\Anaconda3\lib\site-packages\seaborn\distributions.py in distplot(a, bins, hist, kde, rug, fit, hist_kws, kde_kws, rug_kws, fit_kws, color, vertical, norm_hist, axlabel, label, ax)<br>
219 if kde:<br>
220 kde_color = kde_kws.pop("color", color)<br>
--> 221 kdeplot(a, vertical=vertical, ax=ax, color=kde_color, **kde_kws)<br>
222 if kde_color != color:<br>
223 kde_kws["color"] = kde_color</p>
<p dir="auto">C:\Users\Niranjan\Anaconda3\lib\site-packages\seaborn\distributions.py in kdeplot(data, data2, shade, vertical, kernel, bw, gridsize, cut, clip, legend, cumulative, shade_lowest, ax, **kwargs)<br>
602 ax = _univariate_kdeplot(data, shade, vertical, kernel, bw,<br>
603 gridsize, cut, clip, legend, ax,<br>
--> 604 cumulative=cumulative, **kwargs)<br>
605<br>
606 return ax</p>
<p dir="auto">C:\Users\Niranjan\Anaconda3\lib\site-packages\seaborn\distributions.py in _univariate_kdeplot(data, shade, vertical, kernel, bw, gridsize, cut, clip, legend, ax, cumulative, **kwargs)<br>
268 x, y = _statsmodels_univariate_kde(data, kernel, bw,<br>
269 gridsize, cut, clip,<br>
--> 270 cumulative=cumulative)<br>
271 else:<br>
272 # Fall back to scipy if missing statsmodels</p>
<p dir="auto">C:\Users\Niranjan\Anaconda3\lib\site-packages\seaborn\distributions.py in _statsmodels_univariate_kde(data, kernel, bw, gridsize, cut, clip, cumulative)<br>
326 fft = kernel == "gau"<br>
327 kde = smnp.KDEUnivariate(data)<br>
--> 328 kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)<br>
329 if cumulative:<br>
330 grid, y = kde.support, kde.cdf</p>
<p dir="auto">C:\Users\Niranjan\Anaconda3\lib\site-packages\statsmodels\nonparametric\kde.py in fit(self, kernel, bw, fft, weights, gridsize, adjust, cut, clip)<br>
144 density, grid, bw = kdensityfft(endog, kernel=kernel, bw=bw,<br>
145 adjust=adjust, weights=weights, gridsize=gridsize,<br>
--> 146 clip=clip, cut=cut)<br>
147 else:<br>
148 density, grid, bw = kdensity(endog, kernel=kernel, bw=bw,</p>
<p dir="auto">C:\Users\Niranjan\Anaconda3\lib\site-packages\statsmodels\nonparametric\kde.py in kdensityfft(X, kernel, bw, weights, gridsize, adjust, clip, cut, retgrid)<br>
504 zstar = silverman_transform(bw, gridsize, RANGE)*y # 3.49 in Silverman<br>
505 # 3.50 w Gaussian kernel<br>
--> 506 f = revrt(zstar)<br>
507 if retgrid:<br>
508 return f, grid, bw</p>
<p dir="auto">C:\Users\Niranjan\Anaconda3\lib\site-packages\statsmodels\nonparametric\kdetools.py in revrt(X, m)<br>
18 if m is None:<br>
19 m = len(X)<br>
---> 20 y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j<br>
21 return np.fft.irfft(y)*m<br>
22</p>
<p dir="auto">TypeError: slice indices must be integers or None or have an <strong>index</strong> method</p> | 0 |
<p dir="auto">I'm really sorry if this is a duplicate issue of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="11842447" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2997" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2997/hovercard" href="https://github.com/pandas-dev/pandas/issues/2997">#2997</a>, but it seems to me that this is a little bit different. Here the <code class="notranslate">.ix</code> when getting a value interprets the integer as label, and when setting a value it interprets it as a positional index.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import numpy as np
>>> import pandas as pd
>>> df = pd.DataFrame(np.arange(16).reshape((4, 4)),
columns=['a', 'b', 8, 'c'],
index=['e', 7, 'f', 'g'])
>>> df
a b 8 c
e 0 1 2 3
7 4 5 6 7
f 8 9 10 11
g 12 13 14 15
>>> df.ix['e', 8]
2
>>> df.ix['e', 8] = 42
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas/core/indexing.py", line 90, in __setitem__
self._setitem_with_indexer(indexer, value)
File "pandas/core/indexing.py", line 190, in _setitem_with_indexer
values[indexer] = value
IndexError: index 8 is out of bounds for axis 1 with size 4
>>> df.loc['e', 8] = 42
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas/core/indexing.py", line 90, in __setitem__
self._setitem_with_indexer(indexer, value)
File "pandas/core/indexing.py", line 190, in _setitem_with_indexer
values[indexer] = value
IndexError: index 8 is out of bounds for axis 1 with size 4"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">16</span>).<span class="pl-en">reshape</span>((<span class="pl-c1">4</span>, <span class="pl-c1">4</span>)),
<span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-c1">8</span>, <span class="pl-s">'c'</span>],
<span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-s">'e'</span>, <span class="pl-c1">7</span>, <span class="pl-s">'f'</span>, <span class="pl-s">'g'</span>])
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>
<span class="pl-s1">a</span> <span class="pl-s1">b</span> <span class="pl-c1">8</span> <span class="pl-s1">c</span>
<span class="pl-s1">e</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span>
<span class="pl-c1">7</span> <span class="pl-c1">4</span> <span class="pl-c1">5</span> <span class="pl-c1">6</span> <span class="pl-c1">7</span>
<span class="pl-s1">f</span> <span class="pl-c1">8</span> <span class="pl-c1">9</span> <span class="pl-c1">10</span> <span class="pl-c1">11</span>
<span class="pl-s1">g</span> <span class="pl-c1">12</span> <span class="pl-c1">13</span> <span class="pl-c1">14</span> <span class="pl-c1">15</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-s1">ix</span>[<span class="pl-s">'e'</span>, <span class="pl-c1">8</span>]
<span class="pl-c1">2</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-s1">ix</span>[<span class="pl-s">'e'</span>, <span class="pl-c1">8</span>] <span class="pl-c1">=</span> <span class="pl-c1">42</span>
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"<stdin>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"pandas/core/indexing.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">90</span>, <span class="pl-s1">in</span> <span class="pl-s1">__setitem__</span>
<span class="pl-s1">self</span>.<span class="pl-en">_setitem_with_indexer</span>(<span class="pl-s1">indexer</span>, <span class="pl-s1">value</span>)
<span class="pl-v">File</span> <span class="pl-s">"pandas/core/indexing.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">190</span>, <span class="pl-s1">in</span> <span class="pl-s1">_setitem_with_indexer</span>
<span class="pl-s1">values</span>[<span class="pl-s1">indexer</span>] <span class="pl-c1">=</span> <span class="pl-s1">value</span>
<span class="pl-v">IndexError</span>: <span class="pl-s1">index</span> <span class="pl-c1">8</span> <span class="pl-c1">is</span> <span class="pl-s1">out</span> <span class="pl-s1">of</span> <span class="pl-s1">bounds</span> <span class="pl-s1">for</span> <span class="pl-s1">axis</span> <span class="pl-c1">1</span> <span class="pl-k">with</span> <span class="pl-s1">size</span> <span class="pl-c1">4</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s">'e'</span>, <span class="pl-c1">8</span>] <span class="pl-c1">=</span> <span class="pl-c1">42</span>
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"<stdin>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"pandas/core/indexing.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">90</span>, <span class="pl-s1">in</span> <span class="pl-s1">__setitem__</span>
<span class="pl-s1">self</span>.<span class="pl-en">_setitem_with_indexer</span>(<span class="pl-s1">indexer</span>, <span class="pl-s1">value</span>)
<span class="pl-v">File</span> <span class="pl-s">"pandas/core/indexing.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">190</span>, <span class="pl-s1">in</span> <span class="pl-s1">_setitem_with_indexer</span>
<span class="pl-s1">values</span>[<span class="pl-s1">indexer</span>] <span class="pl-c1">=</span> <span class="pl-s1">value</span>
<span class="pl-v">IndexError</span>: <span class="pl-s1">index</span> <span class="pl-c1">8</span> <span class="pl-c1">is</span> <span class="pl-s1">out</span> <span class="pl-s1">of</span> <span class="pl-s1">bounds</span> <span class="pl-s1">for</span> <span class="pl-s1">axis</span> <span class="pl-c1">1</span> <span class="pl-k">with</span> <span class="pl-s1">size</span> <span class="pl-c1">4</span></pre></div>
<p dir="auto">I see this issue with the 0.12 version and also with the latest git checkout.</p>
<p dir="auto"><em>Update: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jreback/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jreback">@jreback</a> noticed that the <code class="notranslate">.loc</code> is not working either.</em></p> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python -c "import pandas as pd; df = pd.DataFrame(dict(a=[1, 1, 2, 3], b=[1, 2, 3, 4])); print(df.nsmallest(2, 'a'))""><pre class="notranslate"><code class="notranslate">python -c "import pandas as pd; df = pd.DataFrame(dict(a=[1, 1, 2, 3], b=[1, 2, 3, 4])); print(df.nsmallest(2, 'a'))"
</code></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">When using nlargest/nsmallest and the n largest / smallest values are identical, the method seems to return the dataframe concatenated with the filtered version of itself.<br>
Furthermore if all values are identical, you get the full dataframe concatenated with itself, regardless of the choice of <code class="notranslate">n</code></p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Not really sure, I guess in the example above you should simply get a dataframe that looks like this<br>
<code class="notranslate">pd.DataFrame(dict(a=[1, 1], b=[1, 2]))</code><br>
however if you were to have<br>
<code class="notranslate"> df = pd.DataFrame(dict(a=[1, 1, 1, 1], b=[1, 2, 3, 4]))</code><br>
and asked for<br>
<code class="notranslate">df.nlargest(2, 'a')</code> you should again get<br>
<code class="notranslate">pd.DataFrame(dict(a=[1, 1], b=[1, 2]))</code></p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.8.0-34-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_IE.UTF-8
LOCALE: None.None
<p dir="auto">pandas: 0.19.2<br>
nose: 1.3.7<br>
pip: 9.0.1<br>
setuptools: 28.3.0<br>
Cython: 0.23.4<br>
numpy: 1.12.0<br>
scipy: 0.16.1<br>
statsmodels: 0.6.1<br>
xarray: None<br>
IPython: None<br>
sphinx: 1.3.1<br>
patsy: 0.4.1<br>
dateutil: 2.6.0<br>
pytz: 2016.10<br>
blosc: None<br>
bottleneck: None<br>
tables: 3.2.0<br>
numexpr: 2.4.6<br>
matplotlib: 1.5.0<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
httplib2: 0.9.2<br>
apiclient: None<br>
sqlalchemy: 1.0.9<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
boto: 2.38.0<br>
pandas_datareader: None</p>
</details> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.10 / nightly (1.9.0-dev.20160515)</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// file ThingA.ts
export class ThingA { }
// file ThingB.ts
export class ThingB { }
// file Things.ts (re-export)
export {ThingA} from "./ThingA";
export {ThingB} from "./ThingB";
// file Test.ts (uses re-exported classes)
import * as things from "./Things";
export class Test {
public method = (input: things.ThingA) => { };
}
// compile
tsc Test.ts --declaration --outDir compiled
"><pre class="notranslate"><span class="pl-c">// file ThingA.ts</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">ThingA</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-c">// file ThingB.ts</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">ThingB</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-c">// file Things.ts (re-export)</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-smi">ThingA</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./ThingA"</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-smi">ThingB</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./ThingB"</span><span class="pl-kos">;</span>
<span class="pl-c">// file Test.ts (uses re-exported classes)</span>
<span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">things</span> <span class="pl-k">from</span> <span class="pl-s">"./Things"</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Test</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">method</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">input</span>: <span class="pl-s1">things</span><span class="pl-kos">.</span><span class="pl-smi">ThingA</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c">// compile</span>
<span class="pl-s1">tsc</span> <span class="pl-smi">Test</span><span class="pl-kos">.</span><span class="pl-c1">ts</span> <span class="pl-c1">--</span><span class="pl-kos"></span><span class="pl-s1">declaration</span> <span class="pl-c1">--</span><span class="pl-s1">outDir</span> <span class="pl-s1">compiled</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong><br>
No errors<br>
<strong>Actual behavior:</strong></p>
<blockquote>
<p dir="auto">Test.ts(5,5): error TS4029: Public property 'method' of exported class has or is using name 'ThingA' from external module ".../ThingA" but cannot be named.</p>
</blockquote>
<p dir="auto">It seems declaration file can't be generated due to the <code class="notranslate">things.ThingA</code> reference, but in a similar case without re-exporting it works fine (I will give an example of this in the next post).</p>
<p dir="auto">If I change the import statement in Test.ts to this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {ThingA,ThingB} from "./Things";"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">ThingA</span><span class="pl-kos">,</span><span class="pl-smi">ThingB</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./Things"</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">(instead of <code class="notranslate">import * as things</code>) and further use <code class="notranslate">ThingA</code> directly, there are no errors, but this defeats the purpose of re-exporting.</p> | <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface A {
p: number
}
interface B {
p: string
}
type C = A & B; // suggest an error here
var c: C;
c.p = 1; // because it's impossible assign a number or
c.p = "x"; // a string to that property."><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-c1">p</span>: <span class="pl-smi">number</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-c1">p</span>: <span class="pl-smi">string</span>
<span class="pl-kos">}</span>
<span class="pl-k">type</span> <span class="pl-smi">C</span> <span class="pl-c1">=</span> <span class="pl-smi">A</span> <span class="pl-c1">&</span> <span class="pl-smi">B</span><span class="pl-kos">;</span> <span class="pl-c">// suggest an error here</span>
<span class="pl-k">var</span> <span class="pl-s1">c</span>: <span class="pl-smi">C</span><span class="pl-kos">;</span>
<span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-c1">p</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// because it's impossible assign a number or</span>
<span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-c1">p</span> <span class="pl-c1">=</span> <span class="pl-s">"x"</span><span class="pl-kos">;</span> <span class="pl-c">// a string to that property.</span></pre></div> | 0 |
<p dir="auto">...or until a script tag is added. I've found that the following is sufficient to get it started.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<script>""</script>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">script</span><span class="pl-c1">></span>""<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">script</span><span class="pl-c1">></span></pre></div>
<p dir="auto">I suspect this has to do with a Chromium "no-JavaScript-efficiency" thing that is not being taken into account with the preload. Found on 0.34.0</p>
<p dir="auto">I found this while battling a strange yet currently unticketable issue where if you open devtools for a webview on the <code class="notranslate">did-start-loading</code> event, jQuery does not have access to the <code class="notranslate">document</code> object (or something) and dies during require, wwhich does <strong>not</strong> happen if devtools is opened _after) <code class="notranslate">did-finish-load</code>.</p> | <p dir="auto">I have a very little demo like this:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<webview src="https://www.google.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>"><pre class="notranslate"><span class="pl-c1"><!DOCTYPE html<span class="pl-kos">></span></span>
<span class="pl-kos"><</span><span class="pl-ent">html</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">title</span><span class="pl-kos">></span>Hello World!<span class="pl-kos"></</span><span class="pl-ent">title</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">https://www.google.com/</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">576</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">432</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">webview</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">html</span><span class="pl-kos">></span></pre></div>
<p dir="auto">When I run the application, I get a blank page, nothing displayed. But if I add some script to the page, the webview will render. e.g.:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<script>console.log("Hello World");</script>
<webview src="http://www.baidu.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>"><pre class="notranslate"><span class="pl-c1"><!DOCTYPE html<span class="pl-kos">></span></span>
<span class="pl-kos"><</span><span class="pl-ent">html</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">title</span><span class="pl-kos">></span>Hello World!<span class="pl-kos"></</span><span class="pl-ent">title</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Hello World"</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">http://www.baidu.com/</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">576</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">432</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">webview</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">html</span><span class="pl-kos">></span></pre></div> | 1 |
<h1 dir="auto">Add the PowerToys Run shortcut to the PowerToys 'Shortcut Guide' display</h1>
<p dir="auto">When the Shortcut Guide is displayed on the screen, the [Space] key shortcut which launches the PowerToys Run dialog is not shown.</p> | <p dir="auto">Would love to see the size of the zone by pixel count during editing. Possibly even percentage of total resolution. Another idea might be to put guides or a grid on the screen underneath the zone editor.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/70768652/92268268-edc77b80-ee96-11ea-88cf-1fcc6ad4c089.png"><img src="https://user-images.githubusercontent.com/70768652/92268268-edc77b80-ee96-11ea-88cf-1fcc6ad4c089.png" alt="FancyZones" style="max-width: 100%;"></a></p> | 0 |
<h1 dir="auto">Environment</h1>
<p dir="auto">Microsoft Windows [Version 10.0.19041.264]</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToysSetup-0.18.1-x64.msi
PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToysSetup-0.18.1-x64.msi
PowerToy module for which you are reporting the bug (if applicable):
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Does not search for files at all. Only searches through apps</p>
<p dir="auto">alt space, search for a fiile or music file</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">no results, search box only shows apps</p>
<p dir="auto">Im expecting to see search resultsa that include files, system files, music, pictures, and videos</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Actual behavour only shows apps that are installed from store</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a href="https://1drv.ms/u/s!AqlJY73bUA7rhrtccXa8LhUXwcOEAA?e=NwBA8T" rel="nofollow">https://1drv.ms/u/s!AqlJY73bUA7rhrtccXa8LhUXwcOEAA?e=NwBA8T</a></p>
<p dir="auto"><a href="https://1drv.ms/u/s!AqlJY73bUA7rhrtdzuQGHGMuZqPvYw?e=Gd2Ty5" rel="nofollow">https://1drv.ms/u/s!AqlJY73bUA7rhrtdzuQGHGMuZqPvYw?e=Gd2Ty5</a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Windows 10 Home Single Language 1909
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Run"><pre class="notranslate"><code class="notranslate">Windows build number: Windows 10 Home Single Language 1909
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">The v0.18.1 is only able to search for programs but not individual files, even when running in administrator mode.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The v0.18.0 could search for all files and programs. The same was expected of the update.<br>
For the sake of complete reporting, I went back and installed v0.18.0 and did not experience the issue, which would rule out any problem caused by settings on the device.</p>
<h1 dir="auto">Actual behavior</h1>
<h1 dir="auto">Screenshots</h1> | 1 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.