WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
🐛 Bug

I’d like to report a weird behaviour in 1.0 that I could resolve by only going back to 0.4. I am training a network on quite a big data set (35 GB) and use 4 gpus by applying the command

torch.nn.DataParallel(model).cuda()

Further I am having a big batch size (>1000) which makes the command

torch.multiprocessing.set_sharing_strategy(‘file_system’). I have num_workers=16 in the dataloader

necessary. Now the trouble begins: every epoch my /dev/shm increases by ca. 3GB. At some point it is full and my process crashes. I tried 1.0.0 and 1.0.1 but both showed this bahaviour. Pytorch 0.4 does not have this problem, /dev/shm is never above 1GB.

To Reproduce

Steps to reproduce the behavior:

Train network on big data set with data.Dataloader with big batch size, for which you require torch.multiprocessing.set_sharing_strategy('file_system') and Dataparallel

Observe /dev/shm until it is full

Expected behavior

In 0.4 version /dev/shm is not filling up and there is not crash

PyTorch Version (e.g., 1.0.1 and 1.0.0 vs. 0.4.0):

OS (e.g., Linux): Linux

How you installed PyTorch (conda, pip, source): conda

Build command you used (if compiling from source):

Python version: 2.7

CUDA/cuDNN version: 10

GPU models and configuration:

Any other relevant information:

Issue 2:
Importing sklearn after importing torch cases segmentation fault. I have tried reinstalling both scikit-learn and pytorch. I use pip (not anaconda)

A) Works

ipython

Python 2.7.12 (default, Nov 19 2016, 06:48:10)

Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.

? -> Introduction and overview of IPython's features.

%quickref -> Quick reference.

help -> Python's own help system.

object? -> Details about 'object', use 'object??' for extra details.

In [1]: import sklearn

In [2]: import torch

In [3]: print sklearn.version

0.18.1

B) Segmentation Fault

ipython

Python 2.7.12 (default, Nov 19 2016, 06:48:10)

Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.

? -> Introduction and overview of IPython's features.

%quickref -> Quick reference.

help -> Python's own help system.

object? -> Details about 'object', use 'object??' for extra details.

In [1]: import torch

In [2]: import sklearn

Segmentation fault (core dumped)
Issue 1:
In [4]: matplotlib.__version__
Out[4]: '1.5.0'

In [3]: from matplotlib.testing.decorators import cleanup
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-58e27e1ef7b3> in <module>()
----> 1 from matplotlib.testing.decorators import cleanup

/home/wiecki/miniconda3/lib/python3.4/site-packages/matplotlib/testing/decorators.py in <module>()
17 import matplotlib as mpl
18 import matplotlib.style
---> 19 import matplotlib.tests
20 import matplotlib.units
21 from matplotlib import cbook

ImportError: No module named 'matplotlib.tests'

Issue 2:
Seems like the 1.5 no longer allows users to import testing decorators (e.g., image_comparison)

Consider the following similar conda environments:

conda create --name=_mpl14 python=3.5 matplotlib=1.4 nose --yes --quiet
conda create --name=_mpl15 python=3.5 matplotlib=1.5 nose --yes --quiet
paul@umpqua ~ $ source activate _mpl14
(_mpl14)paul@umpqua ~ $ python -c "from matplotlib.testing.decorators import image_comparison" # fine

paul@umpqua ~ $ source activate _mpl15
(_mpl15)paul@umpqua ~ $ python -c "from matplotlib.testing.decorators import image_comparison" # fails
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/paul/miniconda3/envs/_mpl15/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 19, in <module>
import matplotlib.tests
ImportError: No module named 'matplotlib.tests'

Looks like both matplotlib.__init__ and matplotlib.tests.__init__ got modified a bit since version 1.4.

Is this expected? If not, I can take a stab at git bisect-ing the issue.
Issue 1:
I'm trying to highlight the current item in my menu by checking the Router.pathname but I'm getting the error

No router instance found. You should only use "next/router" inside the client side of your app.
Error: No router instance found.
You should only use "next/router" inside the client side of your app.

When I remove the code and add it after my page has loaded the code is working(with HMR). However, when I refresh the page it gives me that error.

To reproduce:

import Router from 'next/router'

export default () => (
<header>
{JSON.stringify(Router.pathname)}
</header>
)

Using next 2.1.1

Issue 2:
Similar to react-router's Link, it would be nice to be able to customize CSS when a link is active, e.g with an activeClassName property.
Issue 1:
This would constitute an addition of two new formatting flags, {:e} and {:E} and corresponding traits (e.g LowerSci and UpperSci). Here's the output I envision based on how Rust handles floating point and signs today. Notably, this differs from how C does it (Rust already differs from C, see #1375):

format!("{:e}", 1.0) == "1e0";
format!("{:e}", 10.0) == "1e1";
format!("{:+e}", 10.0) == "+1e+1";
format!("{:e}", 1.1234567) == "1.123457e0";
format!("{:e}", 1.3e-1) == "1.3e-1";
format!("{:.2e}", 1.3e-1) == "1.30e-1";
format!("{:E}", 1.3e-1) == "1.3E-1";

Issue 2:
%e should work like in printf in C, it should format a floating-point number using scientific notation.
Issue 1:
Costin Leau opened SPR-1633 and commented

The current implementation of LocalSessionFactoryBean resets the config time data source before leaving afterPropertiesSet. However, other frameworks that use Hibernate namely jbpm will not find a datasource when trying to create the schema as they will unfortunately reinstantiates a ConnectionProvider which will reuse the datasource which will return null. The issue is similar with (http://opensource2.atlassian.com/projects/spring/browse/SPR-1547) but the Spring-provided DataSource will be request during the HB sessionFactory life-time (between afterPropertiesSet and destroy).

The javadoc mention that :

This instance will be set before initialization of the corresponding

SessionFactory, and reset immediately afterwards. It is thus only available

during configuration.

What's the reason for that?

You can find more details about the issue occuring in JBPM here: http://opensource2.atlassian.com/projects/spring/browse/MOD-75

Affects: 1.2.6

Issue 2:
nebhale opened SPR-1927 and commented

Affects: 2.0 M3
Issue 1:
Rather than just having the current [src] link at the top of the doc pages, it'd be nice to be able to have a [src] link for each function that expands with a code snippet of that particular function. Just like what the [-] and [+] buttons already do for the markdown comments.

It'd be a really helpful learning tool to be able to jump directly to the code you want to use and see what it's actually doing behind the scenes. It could also help people to get acquainted enough with the core code base to start making useful contributions. :)

Issue 2:
Test case:

#[crate_id="foo"];
pub struct Foo;

impl Foo {
#[unstable] pub fn foo(&self) {}
}
Issue 1:
Bug report

What is the current behavior?

development mode , only modify css file trigger webpack hot reload, will follow error:

<e> [webpack-dev-middleware] assets by status 40.6 KiB [cached] 1 asset
<e> assets by info 4.22 KiB [hmr]
<e> assets by chunk 3.3 KiB (name: common)
<e> asset css/common.css 1.8 KiB [emitted] [hmr] (name: common) (id hint: styles, vendors)
<e> asset common.3dda70a80101f291712e.hot-update.js 1.5 KiB [emitted] [immutable] [hmr] (name: common) (id hint: styles, vendors)
<e> asset runtime.3dda70a80101f291712e.hot-update.js 902 bytes [emitted] [immutable] [hmr] (name: runtime)
<e> asset 3dda70a80101f291712e.hot-update.json 40 bytes [emitted] [immutable] [hmr]
<e> assets by path js/ 3.64 MiB
<e> asset js/common.js 3.6 MiB [emitted] (name: common) (id hint: styles, vendors)
<e> asset js/runtime.js 42.3 KiB [emitted] (name: runtime)
<e>
<e> ERROR in Conflict: Multiple assets emit different content to the same filename css/common.css
<e>
<e> webpack 5.0.0-beta.32 compiled with 1 error in 303 ms

If the current behavior is a bug, please provide the steps to reproduce.

- git clone git@github.com:easy-team/awesome.git
- git checkout webpack5
- cd boilerplate/react
- yarn
- npm run dev

The demo can run depends on another issue(webpack-contrib/mini-css-extract-plugin#590 ) to be resolved and merged for release.

Modify src/router/component/home.css file, trigger webpack hot reload, will above error. If only modify javascript file , can works.

What is the expected behavior?

Other relevant information:

webpack version: webpack 5.0.0-beta.32

Node.js version: v12.14.0

Operating System: Mac

Additional tools:

Issue 2:
Bug report

What is the current behavior?

When using require.context(__dirname, true, /\.mdl\.ts$/) the context keys() are duplicated.

I tested the same code with webpack@4.44.2 and it works as expected (see expected behavior).

If the current behavior is a bug, please provide the steps to reproduce.

Using webpack@5.5.1, I created 3 files in my ./src folder.

index.ts

bootstrap.mdl.ts

api.mdl.ts

Inside index.ts I'm using require.context() as follow:

const context = require.context(__dirname, true, /\.mdl\.ts$/);

When observing the context.keys() I get the following list of files:

["./bootstrap.mdl.ts", "./api.mdl.ts", "bootstrap.mdl.ts", "api.mdl.ts"]

What is the expected behavior?

The context.keys() should return the following list with no file duplications:

["./bootstrap.mdl.ts", "./api.mdl.ts"]

Other relevant information:

webpack version: 5.5.1

Node.js version: 14.13.0

Operating System: macOS 11.0.1 (20B29)

Additional tools:
Issue 1:
The following gives a syntax error on master as well as 1.5:

julia> f(@m for i in 1:3
println(i)
end)
ERROR: syntax: missing comma or ) in argument list
Stacktrace:
[1] top-level scope at none:1

Interestingly enough, it works just fine if I replace the for loop with a begin/let/function/... block. It even parses if I just wrap the for loop in begin ... end or braces.

Issue 2:
Duplicate of JuliaIO/JLD2.jl#101

Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
Environment:
JULIA_EDITOR = subl

On current JLD2#master 8e2d9b8 and DataFrames v0.13.0 the following operations segfault

using FileIO, DataFrames

save("dftest.jld2", "df", DataFrame(rand(10,5)))
load("dftest.jld2", "df")

Complete error message including lldb backtrace.

I thought I'd report it here too since it's segfaulting.
Issue 1:
When I touch a ListItem, hover styling doesn't go away.

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Current Behavior

List item should not retain hover styling after touchend

Steps to Reproduce (for bugs)

Go to https://material-ui-1dab0.firebaseapp.com/demos/lists/

Open Chrome dev tools (cmd alt J), toggle device toolbar (cmd shift M), click list item

Context

Using lists on mobile looks ugly

Your Environment

Material UI demo site (https://material-ui-1dab0.firebaseapp.com/demos/lists/)

Chrome 61.0.3163.100

Also repro'd on Google Pixel Android 8.0

Issue 2:
Create React App with Flow example as shown here: https://github.com/callemall/material-ui/tree/v1-beta/examples/create-react-app-with-flow does not work.

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The example should work. I should be able to run the app after following the steps.

Current Behavior

It's not possible to finish with the setup.

Steps to Reproduce (for bugs)

Follow instruction here: https://github.com/callemall/material-ui/tree/v1-beta/examples/create-react-app-with-flow

It breaks on this step

flow-typed install

I think this is because the versions specified in package.json don't follow semver. See this bug:

flow-typed/flow-typed#399

Context

I was trying to run an example project with flow to demonstrate a bug in current version (beta.19) of material-ui.

Your Environment

Tech
Version

Material-UI
beta19

React
16

browser
NA

etc
Issue 1:
System information (version)

OpenCV => 3.1

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2015

Detailed description

Why C programming language sucks is that char is only required to contain ASCII, not UTF-8.

In Windows, FILE *fopen(const char *filename, const char *mode); only accepts Windows-1252, which has only 256 characters, while Unicode has 1112064. To use Unicode, The wide-char version _FILE *wfopen(const wchar_t *filename, const wchar_t *mode); is required.

I suggest to add two alternative functions imread_w and imwrite_w, which accept wchar_t, in only Windows builds.

Issue 2:
Transferred from http://code.opencv.org/issues/148

|| Илья Москвин on 2010-02-25 21:54
|| Priority: Low
|| Affected: None
|| Category: highgui-gui
|| Tracker: Feature
|| Difficulty: None
|| PR: None
|| Platform: None / None

Unicode support requested

We use the new Python bindings and have to use non-english chars in window names and file pathes. Please, couldn@t you add Unicode support to OpenCV, if possible?

History

David Ullmann on 2011-04-25 09:50

It's still not possible to build OpenCV (highgui module) with unicode support (platform windows 7, visual studio 2010, OpenCV SVN, 32 bit).
This makes it almost impossible to use OpenCV with wxWidgets > 2.9, which defaults to unicode.

None on 2012-02-12 18:57

- Description changed from We use the new Python bindings and have to
use non-english chars in window n... to We use the new Python
bindings and have to use non-english chars in window n... More

Vadim Pisarevsky on 2012-04-24 14:47

1. OpenCV can create files with non-English names when they are encoded using UTF-8 and passed as normal text strings (tested on Linux and MacOSX).
2. Since OpenCV does not yet support Python 3.x and in Python 2.x text strings are encoded with UTF-8 (i.e. in the format as OpenCV expects it), it's possible to pass a unicode filename to OpenCV function directly using UTF-8 encoding.
3. On Windows it can work too, but instead of UTF-8 the current 1-byte encoding should be used.

So, it's possible (and there is always rename() function in the case of file names); Therefore, I lower the priority of the task.
- Priority changed from High to Low
- Assignee set to Vadim Pisarevsky

Andrey Kamaev on 2012-08-16 15:23

- Category changed from highgui-images to highgui-gui
Issue 1:
enum test { a }; let t: i64 = unsafe { std::cast::transmute(a) };

rustc output: https://gist.github.com/slaren/6078846

Issue 2:
fn main() {
unsafe { std::cast::transmute::<[int,..1],int>([1]) }
}

rust: task failed at 'option::get none', /rust/src/libstd/option.rs:362
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /rust/src/librustc/rustc.rs:366
rust: domain main @0x7f822300c610 root task failed
Issue 1:
Regression from the change to make newtype structs immediates.

Issue 2:
Minimal test case:

struct Wrapper(~str);

impl Wrapper {
pub fn new() -> Wrapper {
Wrapper(~"Bob")
}

pub fn say_hi(&self) {
println(fmt!("hello %s", **self));
}
}

impl Drop for Wrapper {
fn drop(&mut self) {}
}

fn main() {
{
// This runs without complaint.
let x = Wrapper::new();
x.say_hi();
}
{
// This fails to compile.
// error: internal compiler error: drop_ty_immediate: non-box ty
Wrapper::new().say_hi();
}
}

I originally ran accross this when wrapping a *T, but it also fails when I try to wrap int and other numeric types, bool, Option<T>, ~T, and other structs that also wrap a single value of those types.
Issue 1:
Checklist

I have included the output of celery -A proj report in the issue.

(if you are not able to do this, then at least specify the Celery

version affected).

I have verified that the issue exists against the master branch of Celery.

Django==1.10.3
boto==2.43.0
boto3==1.4.1
botocore==1.4.78

software -> celery:4.0.0 (latentcall) kombu:4.0.0 py:2.7.6
billiard:3.5.0.2 sqs:N/A
platform -> system:Linux arch:64bit, ELF imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:sqs results:disabled

Steps to reproduce

Just a project upgrade dependency.

Actual behavior

Celery work stops when start, only with sqs broker. My test environment run with redis broker and works fine.

With ... worker -l debug, I can see my sqs queues and the worker stop with this message:

[2016-11-28 20:31:58,487: DEBUG/MainProcess] Canceling task consumer...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] Canceling task consumer...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] Closing consumer channel...
[2016-11-28 20:31:59,493: DEBUG/MainProcess] closing all HTTP connections
[2016-11-28 20:31:59,493: DEBUG/MainProcess] closing all HTTP connections
[2016-11-28 20:31:59,494: DEBUG/MainProcess] removing tasks from inqueue until task handler finished

PS: The messages are delayed to queue normally.

Issue 2:
Because of this kombu issue #581, I'm trying to run the latest celery from master along with the github versions of amqp, vine, billiard and kombu. When I run a worker to retrieve messages from an AWS SQS queue, I get the following error:

<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>SignatureDoesNotMatch</Code><Message>Credential should be scoped to a valid region, not 'queue'. </Message><Detail/></Error><RequestId>ef2af856-f4f4-5244-a6f8-b7e87de7ea7e</RequestId></ErrorResponse>

Here are the celery config options:

BROKER_URL = 'sqs://{0}:{1}@'.format(
urllib.quote("the aws key id", safe=''),
urllib.quote("the aws secret key", safe='')
)
BROKER_TRANSPORT_OPTIONS = {
'polling_interval': 3,
'region': 'us-east-1',
'visibility_timeout': 3600
}
CELERY_IGNORE_RESULT = True
CELERY_IMPORTS = ('tasks',)
CELERY_RESULT_BACKEND = False
CELERY_SEND_TASK_ERROR_EMAILS = False

Here are the dependencies:

amqp==2.0.0rc2
billiard==3.5.0.0rc1
celery==4.0.0rc2
kombu==4.0.0a1
pycurl==7.43.0
vine==1.1.0

Any ideas?

Thanks
Issue 1:
Challenge Use a CSS Class to Style an Element has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<style>
.red-text {
color: red;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Issue 2:
Challenge Name

All

Issue Description

After passing a few exercises, the display on the phone on the right hand side of the code doesn't work (phone remains blank). Also, the text under run text where it normally shows which criteria have to be met for the code to be accepted is also missing. These issues are fixed after multiple refreshes of the page.

Browser Information

Same error appears on both Google Chrome (Version 52.0.2743.116 m), and Microsoft Edge (25.10586.0.0). Haven't tried any other browsers.

Browser Name, Version: Google Chrome (Version 52.0.2743.116 m) and Microsoft Edge (25.10586.0.0)

Operating System: Windows 10 Version 1511

Mobile, Desktop, or Tablet: Desktop

Screenshot

http://imgur.com/yV3BNJ1
Issue 1:
What problem does this feature solve?

Because large applications may have MANY custom directives in addition to custom components, it makes sense to treat loading of external definitions similarly.

Because the Vue.directive(name, bindOrUpdate) signature exists, we would have to have another call signature, perhaps a 3rd argument?

What does the proposed API look like?

Vue.directive("my-attribute", null, function(resolve, reject){
$.getScript("/vue/directives/my-attribute.directive.js").then(resolve, reject);
});

Issue 2:
Version

2.5.2

Reproduction link

https://codepen.io/spenspazmer/pen/boZeyz?editors=1011

Steps to reproduce

Focus one of the letters, press key down/up. Observe the difference in behaviour.

What is expected?

Focus should be retained when adding/removing components in the list both when pressing up and down.

What is actually happening?

Pressing key down forces a re-rendering and focus is lost. Pressing key up still works as expected.

This is related to #6857 and preventing me from making https://github.com/Akryum/vue-virtual-scroller/ work with keyboard navigation.
Issue 1:
I have the following code:

function logNumber(v: number) { console.log("number:", v); }
function logString(v: string) { console.log("string:", v); }

function foo1(v: number|string) {
switch (typeof v) {
case 'number':
logNumber(v);
break;
case 'string':
logString(v);
break;
default:
throw new Error("unsupported type");
}
}

Error:

Argument of type 'string | number' is not assignable to parameter of type 'number'.
Type 'string' is not assignable to type 'number'.

I was forced to rewrite this using if statements.

function foo2(v: number|string) {
if (typeof v === 'number') {
logNumber(v);
} else if (typeof v === 'string') {
logString(v);
} else {
throw new Error("unsupported type");
}
}

Please allow using switch statements as type guards.

Issue 2:
I'm using a tsconfig file in our project: https://github.com/exceptionless/Exceptionless.Javascript and I'm seeing the following behavior (Everything is in the same module, but multiple files..).

I feel that all code should be placed into the same module region when it's generated.
Issue 1:
VSCode Version: 1.1.1

OS Version: OSX 10.11.5

Steps to Reproduce:

task.json
{
"version": "0.1.0",
"command": "go",
"isShellCommand": true,
"args": ["run", "main.go", "index.go", "-name=test"],
"showOutput": "always",
"program": "${workspaceRoot}"
}

Press shift + command + B to start a build task

Press shift + command + B to start a new build task

When you are debugging a web service it would be very handy if there was a json flag that kills the build process without warning.

Now I need to use the mouse to click on terminate every time I am changing a line of code and need to restart my build process that is a web server that never terminates on its own.

Issue 2:
In launch.json you are able to define multiple launch configuration but you can only select one to run with F5. Is there a way to launch two configuration with single Debug command? I want to start and debug server side node app and also use chrome debug extension for client side, all from same VSC instance.

thx