WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
https://gist.github.com/iugo/1dde0cb200e57f64df71c31ca0400b16

// main.ts
import { blue } from 'colors';

console.log(blue('hehe'));

// deno compile --output=bin -c deno.json main.ts
// ./bin (error, lost import map)

// deno compile --output=bin --import-map import_map.json main.ts
// ./bin (works!)

// deno.json
{
"compilerOptions": {
"strict": true
},
"importMap": "./import_map.json"
}

// import_map.json
{
"imports": {
"colors": "https://deno.land/std@0.167.0/fmt/colors.ts"
}
}

deno version: 1.28.3

Issue 2:
Hey! I have a smallish project that I'm working on, and when I compile the command to make a binary, it seems to ignore the import_map.json. I have an "importMap" key in my deno.json, but it doesn't pick it up. When I use --import-map ./import_map.json it works, but it then gives me a warning that the "importMap" key is being ignored. It also works completely fine when I run with deno run, and I don't have to use the --import-map option.

Here are the commands I used:

Compile: deno compile --allow-env --allow-net --allow-read ./src/main.ts

The compilation succeeds, but when I try to run the binary with ./main I get this result: error: Relative import path "dotenv/mod.ts" not prefixed with / or ./ or ../ from "file:///home/redxtech/Code/project/src/main.ts"

Compile with args: deno compile --allow-env --allow-net --allow-read --import-map ./import_map.json ./src/main.ts

Warning: Warning the configuration file "file:///home/redxtech/Code/project/deno.json" contains an entry for "importMap" that is being ignored.

Run: deno run --allow-env --allow-net --allow-read ./src/main.ts

Result: works as expected.

Output of deno --version:

deno 1.20.5 (release, x86_64-unknown-linux-gnu)
v8 10.0.139.6
typescript 4.6.2

Here's my ./deno.json (lint & fmt fields removed):

{
"compilerOptions": {
"allowJs": false,
"lib": ["deno.window", "es2021"],
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true
},
"importMap": "./import_map.json"
}

and my ./import_map.json:

{
"imports": {
"dotenv/": "https://deno.land/x/dotenv@v1.0.1/",
"kall/": "https://denopkg.com/olaven/kall@v1.0.8/",
"std/": "https://deno.land/std@0.133.0/"
}
}

Here's the relevant part of ./src/main.ts file where the imports are used:

import { config as dotEnvConfig } from 'dotenv/mod.ts';

If you need any more info I would be happy to provide it.
Issue 1:
Slow tokenizers:

>>> import transformers
>>> t_slow = transformers.AutoTokenizer.from_pretrained("roberta-base", use_fast=False)
>>> t_slow.encode_plus("A <mask> sentence.")
{'input_ids': [0, 83, 50264, 3645, 4, 2],
'token_type_ids': [0, 0, 0, 0, 0, 0],
'attention_mask': [1, 1, 1, 1, 1, 1]}

>>> t_slow.convert_ids_to_tokens([0, 83, 50264, 3645, 4, 2])
['
', 'ĠA', '<mask>', 'Ġsentence', '.', '
']

Fast tokenizers:

>>> import transformers
>>> t_fast = transformers.AutoTokenizer.from_pretrained("roberta-base", use_fast=True)
>>> t_fast.encode_plus("A <mask> sentence.")
{'input_ids': [0, 250, 1437, 50264, 3645, 4, 2],
'token_type_ids': [0, 0, 0, 0, 0, 0, 0],
'attention_mask': [1, 1, 1, 1, 1, 1, 1]}

>>> t_fast.convert_ids_to_tokens([0, 250, 1437, 50264, 3645, 4, 2])
['
', 'A', 'Ġ', '<mask>', 'Ġsentence', '.', '
']

Issue 2:
🐛 Bug

Information

Model I am using (Bert, XLNet ...): Bert

Language I am using the model on (English, Chinese ...): English

The problem arises when using:

the official example scripts: (give details below)

my own modified scripts: (give details below)

The tasks I am working on is:

an official GLUE/SQUaD task: (give the name)

my own task or dataset: (give details below)

To reproduce

Steps to reproduce the behavior:

from transformers import AutoTokenizer

pretrained_model_name = "bert-base-cased"

fast_tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name)
slow_tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name, use_fast=False)

text = "hello"

assert fast_tokenizer.encode(text, add_special_tokens=False) == slow_tokenizer.encode(text, add_special_tokens=False)

Expected behavior

The fast tokenizers shouldn't add the special tokens if add_special_tokens is equal to False.

Environment info

transformers version: 2.5.0

Platform: Linux-4.15.0-76-generic-x86_64-with-debian-buster-sid

Python version: 3.7.4

PyTorch version (GPU?): 1.4.0 (True)

Tensorflow version (GPU?): 2.0.0 (False)

Using GPU in script?: No

Using distributed or parallel set-up in script?: No
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

[(ngModel)] without name is not allowed in a form. This used to work in the previous(now deprecated) forms. I think a mix for template and model driven form in the same template should be allowed. I see the following error when ngModel is used in a form without a associated control.

Name attribute must be set if ngModel is used within a form.

Example: <input [(ngModel)]="person.firstName" name="first">

Expected/desired behavior

[(ngModel)] should be allowed in a form without an associated control

Reproduction of the problem

You can see the error in the dev console of this plunker

https://plnkr.co/edit/CcXGHjI6jkkW8YpR28ZI?p=preview

What is the expected behavior?

[(ngModel)] should be allowed in a form without an associated control.

What is the motivation / use case for changing the behavior?

Allow mix of template and model driven form. This is specially useful in case part of the form in not really part of the actual business model.

Please tell us about your environment:

RC2 with new forms

Angular version: 2.0.0-rc.2

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]

Issue 2:
feature request

Current behavior

If opted into the new forms and I have code like this:

<form (submit)="process()">
<input [(ngModel)]="propertyName">
</form>

And this throws an error: ORIGINAL EXCEPTION: Name attribute must be set if ngModel is used within a form.

Expected/desired behavior

I'd like to be able to use html forms and submit capabilities (such as submitting with the enter key) without having to specify a name (and use FormGroups and FormControls) for my ngModel bound inputs.

Angular version: 2.0.0-beta.RC2
Issue 1:
I searched already several times but I cannot find out how to deactivate multiple cursors or how to change/deactivate the key binding. Finally, I open the issue here.

If there is an option for this, how could I possibly find it; or rather, how can I find and search available configuration options in my version of the editor?

The compiled coffeescript may make it hard to find options by using grep.

Issue 2:
On windows I expect that pressing Ctrl+Shift+Home or Ctrl+Shift+End selects all text from the current marker position to the start or beginning of the file.

This same behaviour exists in all windows native text editors from MS Word to notepad and Sublime Text.
Issue 1:
by rafal.jeczalik:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
http://play.golang.org/p/qgs2Q1ydez

What is the expected output?
OK
OK

What do you see instead?
invalid operation: b && (i == 0 || i == 1) (mismatched types BoxedBool and bool)

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
OS X 10.9

Which version are you using? (run 'go version')
go version devel +459f7bc40d85 Mon Feb 03 11:05:51 2014 -0800 darwin/amd64

Please provide any additional information below.

Issue 2:
Multi-line function declarations of the form:

func
(this Something)
name(args)
retval {

are not permitted. (Any one of the newlines shown above causes a syntax error.)

For complex definitions, to prevent a line going over 80 characters, one must do
something like:

func (this Something) functionName(firstarg int,
secondarg int) retval {
// do stuff
}

which is ugly, but legal.

There's no ambiguity in the first form - func must /always/ be followed by a body,
eventually - it would be nice to support it.

My setup:
b69ec24ad6dc+ tip
linux, amd64
Issue 1:
This is about how to properly integrate twig sandbox with the twig-bundles configuration.

The major problem with this is, that there is very limited documentation available about the sandbox itself and none regarding the integration with symfony. I think the sandbox is a very nice feature and should get some more love (at least an article in the symfony docs).

When i was evaluating the sandbox extension and how to integrate it, there are a few questions that came up, that would be best answered by the "designers intent":

Should there be a new twig env for each sandbox "profile"?

-> If yes, how to duplicate the default twig environment with all its integrated features (profiler, loaders, forms etc) without too much pain?

-> If no, how to enable different sandbox "profiles"? Could this be a feature request against twig itself?

A way to setup the policy (or multiple policies) by configuration (similar to https://github.com/intaro/twig-sandbox-bundle which is a good start, but isnt up to date and has its design flaws)

If using the sandbox, the feature to be implemented is dealing with user supplied templates most of the time. There is a twig lint command and an article in the twig docs on how to validate the twig syntax. there are also some blog entries on how to create a validator for this. imho this should be included in the twig bundle just as the lint command is.

Issue 2:
It's only possible to have one route with a given name, but it is possible for duplicate route names to go undetected because Symfony will silently ignore the issue. I believe the second one found will overwrite the first, although I guess the loading order is non-deterministic (or determined by factors that can easily change).

Given two bundles both trying to define a login route:

# src/AppBundle/Resources/config/routing.yml
login:
path: /login
defaults: { _controller: AppBundle:Login:index }

# src/AdminBundle/Resources/config/routing.yml
login:
path: /admin/login
defaults: { _controller: AdminBundle:Login:index }

Only one of these routes will exist. This might be an extreme example, because usually the changed behaviour is noticeable. But for applications with many bundles or locale-specific routes, or where it's a simple content page instead of login, then it can be missed.

Usually Symfony is quite strict about configuration problems, helping to ensure they're spotted straight away. Is there a reason for the current behaviour, or can the router throw an exception when trying to overwrite a route?
Issue 1:
Seems that the width of a unicode character is not calculated correctly. See below.

α(1,
1)

Issue 2:
it works fine if the package is in .julia/v0.x, but if it is somewhere else then it claims there is no test/runtests.jl even if my LOAD_PATH is set such that i can using it. i know that the recommended dev cycle is to keep packages in .julia, but would it make sense to make Pkg.test() work otherwise?
Issue 1:
@nikomatsakis and I agreed that it would be better to change the ty::substs type to have the tps field be a map from node IDs to types, rather than a vector of types as it is now. This allows ty params to be referred to based on their node IDs rather than positionally as they are now. Among other things, this addresses a bug in the code that I'm trying to isolate in which class ty params get concatenated with method ty params and sometimes a param gets duplicated. Niko said he would do this as a byproduct of rewriting the code for self types.

Issue 2:
As per comment in the former function in resolve.
Issue 1:
In my org, each team is creating ES index daily so the number of index grows very quickly. Usually users are interested only in their 'team' data. Currently, some users execute query using Kibana w/o specifying index and field name(it takes _all'). Such queries at times, bring our cluster to halt/ crash etc. I would like queries to be restricted such that only well defined queries can be executed on ES. A well defined query is a query which specifies index and field name. I could not find a server level config param to enforce such constraint on user queries. I posted question on ES forum but did not get a clear answer.

This bug/ ER filed to have ES server level parameter such as to enforce user defined queries to have index name and/ or field name specified.

Issue 2:
Hitting /_search causes elasticsearch to search all types, all indices.

With very large indices this is a problem.

We currently have ~30Tb of data across multiple logstash indices.

If someone talks to ES (eg, using sense or a other method) and doesn't specify the index name, the cluster effectively grinds to a half until we restart it.

Can we have an option to require specifying at least one index name to the search endpoint?

Thanks!
Issue 1:
I am creating this so I can pin it & to help keep track of several related issues/work-items.

Things we know:

The grab handles are bright white/accent color/dark black

The grab handles are too narrow / the borders are too thick / why can't I use the area outside the window frame to resize?

#994 Split panes need an indicator to show which is focused

#1000 Literally anything having to do with panes

Click/Right click icon should display Minimize/Maximize/Close menu

When you click Cascade Windows , Show windows stacked etc is completely ignored by Terminal

#376, #545 Commandline applications can't receive mouse input

#4980 system theme light = light borders, even if terminal theme dark

The title bar isn't acrylic, but now since architectural changes could be!

Things related to tabs:

#1625 Has another giant bucket of work that's more specific to the non-client area (where the tabs are)

The area above the tabs isn't draggable

Can't pop/drag out tabs

Can't reorder tabs

#597 Without using tabs don't shrink/expand like browser tabs / I want to set a min width for my tabs / I want a fixed width for my tabs / I want tabs to expand to split the available space / any other possible tab sizing]

#3300 Tab bar doesn't grow when you resize the window, it only shrinks (Regressed in v0.6)

Things that people want, but we won't be able to fix:

#1753 Can only set "Opacity" of acrylic, not "Blur" / Can't have a non-acrylic transparency

Things fixed in v0.6:

#2513 Double click to non-client area should maximize the Window.

#771 The default 'active' tab contrast is very low (especially light mode)

The tabs don't look as good as you'd like #702

#857 When the window is smaller than the sum of the width of the tabs, the tabs are cut off, without indication to scroll

Things fixed in v0.5:

#1589 Alt+F4 doesn't close the Window (PR#2526)

Things fixed in v0.3:

The non-client area looks wrong; PR #929, Issue #872

The plus button is too big, too small, too wide, too narrow (fixed in #1934)

#564 draggable area in title bar (PR #1948)

When maximized on displays with a different DPI, the edges of the window are cut off. (Fixed by #1921)

#608 the text of my tabs is too long

I'm using the dark theme but am still seeing a white border and header are still white. (Might be fixed by #929)

(caused by #929, tracked in #1625 #1963) The titlebar does not have my accent color in it

Resizing the window causes the UI to disapper/reappear.

Issue 2:
Environment

Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0
Far Manager: version 3.0.0.5454 x64

Steps to reproduce

Install Far Manager

Open it from Windows Terminal by executing far command

Position cursor on any directory

Press Shift + Enter

Expected behavior

Far Manager opens File Explorer in the selected directory

Actual behavior

Far Manager just opens folder in the Windows Terminal as if you would press without Shift key.

In Powershell, CMD, Cmder Far Manager works as expected.
Issue 1:
The legacy 0.10 docs mentions having only 1 root element as a restriction to replace.

Current version (0.11) seems to have replace: true work for components with multiple root elements, but v-with breaks with no warning.

doesn't work - http://jsfiddle.net/r4h8p5jz/

works - http://jsfiddle.net/r4h8p5jz/1/

var ComponentA = Vue.extend({
//template: '<div>{{bar}}</div>', // this works
template: '<div>{{bar}}</div><div></div>', // this doesn't
replace: true
});

new Vue({
el: 'body',
template: '<component-a v-with="bar: foo"></component-a>',
data: {
foo: 'Test Test Test Test'
},
components: {
'component-a': ComponentA
}
});

Issue 2:
See this: http://jsfiddle.net/qm2wqg8u/5/

If replace set to true, and a multi root template could cause the param can't pass into component. In this case, the comment block cause the problem.
Issue 1:
Bug summary

When figure.autolayout is set to True the output in the EPS file becomes blank. The file is produced and no errors are mentioned.

Code for reproduction

import matplotlib.pyplot as plt

plt.rc('text', usetex=True)
plt.rcParams["figure.figsize"] = [3.4, 2.47]
plt.rcParams['figure.autolayout'] = True

[Ignoring creation of data for plots]

plt.plot(t,d,label='electron bunch energy density')
plt.savefig('test.eps')

Actual outcome

EPS file converted to PDF

test.pdf

Expected outcome

EPS file converted to PDF with plt.rcParams['figure.autolayout'] = False and all else the same

test_false.pdf

Additional information

The bug appears when I change to autolayout = True. I noticed there was an earlier bug fix for a very similar scenario (#16898) which seems to fix for the case where figure.autolayout = False.

Operating system

HPE Cray Linux Environment

Matplotlib Version

3.5.1

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

3.8.5

Jupyter version

3.2.9

Installation

pip

Issue 2:
Bug summary

Setting 'figure.autolayout' to 'True' removes most of the EPS savefig.

Code for reproduction

import matplotlib.pyplot as plt

plt.rcParams['figure.autolayout'] = 'True'

plt.plot([1, 2, 3], [1, 2, 3], 'o-')
plt.title(r'$\sum_{i=0}^{\infty} x_i$ just a test')
plt.savefig('test2.eps', format='eps')

Actual outcome

Actual image after being exported from gimp (300dpi)

This is the EPS file:

https://we.tl/t-ka6aoUGxKm

Expected outcome

Expect the image in ".eps" file like this.

This is the EPS file:

https://we.tl/t-Q7WBPMwDcy

Additional information

I found this bug by an accident while using a custom ".mplstyle" on Matplotlib 3.5.0

Seems like this rcParam ['figure.autolayout'] = 'True' destroys about 2/3 of the eps file.

plt.tightlayout() seem to not affect the result, the bug happens only with this rcParam on the latest matplotlib version.

import matplotlib.pyplot as plt

plt.plot([1, 2, 3], [1, 2, 3], 'o-')
plt.title(r'$\sum_{i=0}^{\infty} x_i$ just a test')
plt.savefig('test2.eps', format='eps')

This is the code for the expected outcome.

Operating system

Windows

Matplotlib Version

Bug present only on 3.5.0

Matplotlib Backend

Qt5Agg

Python version

Tested with 3.10 and 3.9

Jupyter version

No response

Installation

conda
Issue 1:
The current README.md file just has a few links and I think a better documentation with better wording would make the code more welcoming to beginners who wish to contribute.

Issue 2:
System information (version)

OpenCV => 4.0.1

Operating System / Platform => Mac OS X 10.14

Compiler => XCode 9.2

Detailed description

cv::dnn::blobFromImage should support aspect-ratio resizing.

It currently warps the image by stretching it if you don't crop.

Making use of cv::copyMakeBorder is a workaround, but IMHO it could be part of the integrated preprocessing. This is especially important if your data has to keep aspect ratio inside the NN.

Steps to reproduce

N.A.
Issue 1:
React Dev Tools - Profiler

Describe what you were doing when the bug occurred:

Was debugging in Storybook

Changed the value in dropdown from WrapStory to Root

Please do not remove the text below this line

DevTools version: 4.0.6-a39d9c3

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16722)

at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293893)

at Al (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:294128)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55891)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62940)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99536)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84256)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81286)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25364

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in Al

in div

in div

in Ir

in Unknown

in n

in Unknown

in div

in div

in Wa

in ce

in be

in So

in Vl

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)

at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293207)

at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293442)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in pl

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul
Issue 1:
df = pd.DataFrame(pd.date_range('20130101', periods=3))
dt64 = np.datetime64('2013-01-01')
res = df - dt64
expected = pd.DataFrame([pd.Timedelta(days=0), pd.Timedelta(days=1),
pd.Timedelta(days=2)])

>>> res
0
0 1970-01-01
1 1970-01-02
2 1970-01-03

>>> expected
0
0 0 days
1 1 days
2 2 days

>>> res == expected
0
0 True
1 True
2 True

So both __sub__ and __eq__ are problematic.

Issue 2:
In [2]: base, step = 10**15, 10**14

In [3]: data = range(base, base+3*step, step)

In [4]: df = pd.DataFrame({i : data for i in range(3)}).astype('datetime64[ns]')

In [5]: s = pd.Series(data).astype('datetime64[ns]')

In [6]: df
Out[6]:
0 1 2
0 1970-01-12 13:46:40 1970-01-12 13:46:40 1970-01-12 13:46:40
1 1970-01-13 17:33:20 1970-01-13 17:33:20 1970-01-13 17:33:20
2 1970-01-14 21:20:00 1970-01-14 21:20:00 1970-01-14 21:20:00

In [7]: (df - s)[0]
Out[7]:
0 1970-01-01 00:00:00
1 1970-01-02 03:46:40
2 1970-01-03 07:33:20
Name: 0, dtype: datetime64[ns]

In [8]: (df[0] - s[0])
Out[8]:
0 0 days 00:00:00
1 1 days 03:46:40
2 2 days 07:33:20
Name: 0, dtype: timedelta64[ns]

I would expect the two to give the same result (timedelta64[ns]).

In [9]: pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Linux
OS-release: 4.3.0-1-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8

pandas: 0.18.0rc1+35.g4048193
nose: 1.3.6
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.2
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+755fa81
xarray: None
IPython: 2.4.1
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.4.3
matplotlib: 1.5.0rc2
openpyxl: None
xlrd: 0.9.4
xlwt: 0.7.5
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: 2.6.1 (dt dec mx pq3 ext lo64)
jinja2: 2.8