WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Description of the new feature/enhancement

"SaferCPlusPlus" is essentially a collection of safe data types intended to facilitate memory and data race safe C++ programming. This library is intended to work with and be complimentary to the Core Guidelines lifetime checker over its various stages of development and availability. (Including situations where the lifetime checker is not available at all.)

A clear and concise description of what the problem is that the new feature would solve.

See the rest of the README for the benefits as well usage examples: https://github.com/duneroadrunner/SaferCPlusPlus/blob/master/README.md

Proposed technical implementation details (optional)

Include the necessary headers as described in the README.

A clear and concise description of what you want to happen.

A more memory safe conhost, conpty, and Terminal.

Issue 2:
Summary

Add "Duplicate Tab" option to open same profile in different tab
Issue 1:
Alex Antonov opened SPR-2674 and commented

If a redirectToView is used after the request has been binded and validated, both BeanPropertyBindingResult and DirectFieldBindingResult do not carry over the underlying BeanWrapper and DirectFieldAccessor (due to them being transient and thus not being serialized in the implementations of the HTTP session which uses byte-array serialization mechanism), and as a result, loosing all the custom PropertyEditors which were assigned to the BindingResult during.

Not sure what the exact reason for declaring the BeanWrapper/DirectFieldAccessor transient is, but the most obvious fix is to make them non-transient, or explicitly hold a reference to the PropertyEditorRegistry in the *BindingResult implementations and then inject it into the newly recreated instances of BeanWrapper/DirectFieldAccessor.

Affects: 2.0 final

Issue Links:

#7258 Serializable Bind exception bean wrapper is transient, therefore installed property editors are lost upon deserialization. ("duplicates")

Issue 2:
Oleg Kalnichevski opened SPR-6180 and commented

Folks,

Please consider upgrading HttpClient to version 4.0 which is the latest stable (GA) version of the library. Commons HttpClient 3.1 is very likely to be deprecated / officially declared end of life very soon (3 - 6 months). There have been no bug fixes in the 3.x branch for over a year.

Patch attached. Unfortunately I was unable to fix the Ivy build which I am not very familiar with.

Oleg

Affects: 3.0 RC1

Attachments:

spring-httpclient-4.0.patch (27.24 kB)

Issue Links:

#12301 Provide support for Http Client 4 now that it is available ("is duplicated by")

#11385 CommonsClientHttpRequestFactory getHttpClient() returns HttpClient from Commons HttpClient 3.x which has been EOL'd ("is duplicated by")

#15356 Request streaming for HttpComponentsClientHttpRequestFactory

Referenced from: commits 3690002, 54bbcf3

17 votes, 20 watchers
Issue 1:
Hello, when creating a browser window like this:

new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, webSecurity: false, partition: '', session: session.fromPartition(${counter}) }

and using a session:

protocol.interceptBufferProtocol('http', (req, callback) => { console.log('Hello World'); });

Is never called

Issue 2:
Brief: When a session is set when creating a BrowserWindow, the protocol intercept functions are not activated.

Electron version: 6.0.8

Operating system: (Bug happens on Mac, Win 7, Win 10 and Ubuntu, so it's not an OS issue)

Expected behavior

When the user navigates to a http page, the protocol.interceptBufferProtocol callback function should be called,

in this case, "Hello World" should be printed to the console

Actual behavior

The protocol.interceptBufferProtocol callback function is not called/ran at all. In this case, nothing is printed in the console

How to reproduce

Create a BrowserWindow and define session in the webPreferences

protocol.interceptBufferProtocol('http', (req, callback) => { console.log('Hello World'); });

new BrowserWindow({
show: false,
webPreferences: {
nodeIntegration: true,
webSecurity: false,
partition: '',
session: session.fromPartition(`1`)
}
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

7.1.1

Operating System:

All

Last Known Working Electron version:

6.1.4

Expected Behavior

When doing a request with net and the server responds with a status-code that signifies an error, the user can still read the response's body.

Actual Behavior

It is impossible to read the reponse's body, as the response object emits a net::ERR_HTTP_RESPONSE_CODE_FAILURE error and stops.

To Reproduce

$ git clone https://github.com/arantes555/electron-bug-net-body-when-error.git
$ npm install
$ npm start

Additional Information

This is a critical problem with net. In addition to making it impossible to implement fetch interface correctly, it simply makes net unsuitable for anything serious, as reading the body of the response (no matter the status-code) is at the core of what an HTTP request is.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

7.1.1

Operating System:

Windows 10

Last Known Working Electron version:

Unknown

Expected Behavior

do not raise subsequent unhandled exception after response event received

Actual Behavior

Unhandled exception raised:

[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
Error: net::ERR_HTTP_RESPONSE_CODE_FAILURE

[OK]

To Reproduce

git clone https://github.com/kwonoj/clientrequest-response-code-failure
npm install && npm start

Screenshots

Additional Information

Setting up response eventhandler correctly forwards 404 response, but right after unhandled exception is thrown. This is not caught by error eventhandler - regardless of setting up eventhandler or not, unhandled exception is always thrown.
Issue 1:
See #34675. It came up that symdiff([1, 2, 3, 2]) == [1, 3] which struck me as... unexpected. I'm opening an issue to discuss whether this is a behavior we actually want.

Issue 2:
I'm not sure if there's anything we can do about this, but this throws an error:

julia> (1:2) - (1:2)
ERROR: ArgumentError: step cannot be zero
in steprange_last at ./range.jl:47
in - at operators.jl:331

This can break code that expects that any two AbstractVector{T<:Number}s of the same length can be subtracted from each other.
Issue 1:
Roland Hauser opened SPR-8693 and commented

We use Datanucleus (Version 3.0.1) for our persistence layer. Datanucleus, in turn, needs the JDO-API Version 3.0.0.

Now, to be able to use the newest version of JDO/Datanucleus in Spring, I need to patch the "Import-Package" derective in the manifest

of the orm library on every update to correct the version range from [2.0.0, 3.0.0) to [2.0.0, 3.1.0):

== Original ==

Import-Package:

...

javax.jdo;version="[2.0.0, 3.0.0)";resolution:="optional",javax.jdo.datastore;version="[2.0.0, 3.0.0)"

...

== Patched ==

Import-Package:

...

javax.jdo;version="[2.0.0, 3.1.0)";resolution:="optional",javax.jdo.datastore;version="[2.0.0, 3.1.0)"

...

If I won't do so, resolution could not be done by the OSGi runtime. A fix would be cool, it would prevent me

to provide a patched version of the orm library.

Regards,

Roland

Affects: 3.0.5, 3.0.6

Issue Links:

#13309 Update spring-orm template.mf to be inclusive of javax.jdo 3.0 ("duplicates")

Issue 2:
Yanming Zhou opened SPR-6408 and commented

javax.persistence.spi.PersistenceUnitInfo add three methods in JPA2

@Override
public String getPersistenceXMLSchemaVersion() {
return "1.0";
}

@Override
public SharedCacheMode getSharedCacheMode() {
return SharedCacheMode.NONE;
}

@Override
public ValidationMode getValidationMode() {
return ValidationMode.NONE;
}

please add it to org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo

Issue Links:

#11371 Spring 3.0 not compatible with Hibernate 3.5 beta3

Referenced from: commits 0ba8375

2 votes, 6 watchers
Issue 1:
When using np.frombuffer or np.ndarray(..., buffer=...), the object supporting the buffer interface is passed through unchanged. However, this makes it tricky for the base object to know if it's still being in use. mmap.mmap keeps a count of exports, and will refuse to close if the internal buffer is in use somewhere. Since numpy doesn't store this as a memoryview, the export count isn't incremented and can result in a segfault:

In [1]: import mmap, numpy as np

In [2]: buffer = mmap.mmap(-1, 100)

In [3]: x = np.frombuffer(buffer, dtype='i1')

In [4]: x[:5]
Out[4]: array([0, 0, 0, 0, 0], dtype=int8)

In [5]: buffer.close() # close the buffer

In [6]: x[:5]
Out[6]: Segmentation fault: 11

If stored as a memoryview:

In [1]: import mmap, numpy as np

In [2]: buffer = mmap.mmap(-1, 100)

In [3]: x = np.frombuffer(memoryview(buffer), dtype='i1')

In [4]: x[:5]
Out[4]: array([0, 0, 0, 0, 0], dtype=int8)

In [5]: x.base
Out[5]: <memory at 0x105139d08>

In [6]: buffer.close()
---------------------------------------------------------------------------
BufferError Traceback (most recent call last)
<ipython-input-6-9666a5d75f9e> in <module>()
----> 1 buffer.close()

BufferError: cannot close exported pointers exist

This affects np.memmap as well, but since np.memmap manages its own mmap object, closing that could be considered bad behavior.

Issue 2:
This crashes in python2 and python3 with a segfault:

import mmap

# create test file
a = arange(10., dtype='f4')
a.tofile('test')

# opens it as a memmap
with open('test', 'r+b') as f:
mm = mmap.mmap(f.fileno(),0)

#view the mmap, then close it
x = np.frombuffer(mm, dtype='f4')
mm.close()
print(x) # segfault

In frombuffer mumpy uses the PEP3118 interface to the mmap to get a pointer to the data, so it seems we are using the interface incorrectly somewhere.

It seems to me that the "correct" behavior may be for it to be impossible to close the memmap while pointers to it exist; this is the behavior for memoryviews of mmaps. That is, the line mm.close() shoud raise an error BufferError: cannot close exported pointers, as in currently happens in python3:

>>> import mmap
>>> with open('test', 'r+b') as f:
>>> mm = mmap.mmap(f.fileno(),0)
>>> mv = memoryview(mm)
>>> mm.close()
BufferError: cannot close exported pointers exist

however note also that in python2 we cannot create the memoryview (mv) because of an error TypeError: cannot make memory view because object does not have the buffer interface.

Note how mmap_buffer_getbuf (link) in the mmap module takes care to keep track of any buffer access to the mmap (the exports counter). Evidently we are somehow bypassing that in numpy.
Issue 1:
How am I supposed to use the Badge component in combination with :

Buttons

Tabs

Typography

?

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

Expected Behavior

This does not work, but is what I expected to write :

<Badge badgeContent={4} color="default">
<Tab disabled label="Disabled tab" />
</Badge>

Current Behavior

The Badge demo page only shows the use of the component wrapping an icon like this :

<Badge className={classes.badge} badgeContent={10} color="secondary">
<MailIcon />
</Badge>

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.31

Issue 2:
I am trying to add a column in material-ui table with selectfield. https://github.com/narendravenkata/React_Form. this is the code link. I am unable to set the values and update in edit mode.

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

Material-UI
"^0.18.6"

React
"^15.6.1"

browser
chrome

etc
Issue 1:
I ran into an odd behaviour when taking the intersection of two Indexes. Specifically,

left = pd.Index(['A','B','A','C'])
right = pd.Index(['B','D'])
left.intersection(right)

returns

Index(['B', 'C'], dtype='object')

However, I would expect this to return

Index(['B'], dtype='object')

If Index(['B', 'C'], dtype='object') is the intended behaviour, can someone explain the rationale behind it?

Issue 2:
Code Sample, a copy-pastable example if possible

df = pd.DataFrame({'t1': pd.NaT, 't2': pd.NaT}, index=[1])
df.min(axis=1)
df.max(axis=1)
df.sum(axis=1)

Expected Output

All results above return a float64 series instead of a datetime64[ns] series.

output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8

pandas: 0.18.0
nose: None
pip: 8.1.1
setuptools: 20.9.0
Cython: None
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: None
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.3
blosc: None
bottleneck: None
tables: None
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: 0.7.2.None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None
Issue 1:
🌟New model addition

Exploring the Limits of Transfer Learning with a

Unified Text-to-Text Transformer

Open Source status

Code and model are open sourced

Issue 2:
🌟New model addition

Model description

Google released paper + code + dataset + pre-trained model about their new T5, beating state-of-the-art in 17/24 tasks.

Paper link

Open Source status

the model implementation and weights are available: Official codebase
Issue 1:
Hello, discovered little annoying bug

When you invoke replaceState() with an empty object textarea innerHTML does not update, however the value do

Please see example here

http://jsfiddle.net/kb3gN/7887/

Issue 2:
React version: 17.0.0

Steps To Reproduce

Write the following code below:

import React from "react";
import ReactDOM from "react-dom";

let i = 0;

const origLog = console.log.bind(console);

const App = () => {
const [a, setA] = React.useState(0);
origLog(i);
console.log(i + ': hijacked log');
origLog("test");
i++;
return (
<button
onClick={() => {
setA(a + 1);
}}
>
click me
</button>
);
};

const rootElement = document.getElementById("root");
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
rootElement
);

While the origLog() function is called in every call to App(), the “hijacked” calls to console.log() would only call the original method every other time, and therefore only even numbers are logged by this function.

Link to code example:

https://codesandbox.io/s/jolly-bush-4ql7z?file=/src/index.js

The current behavior

React automatically “hijacks” the console’s methods to prevent duplicated logs, which might cause unpredictable behaviors.

The expected behavior

The original console methods are called by default even if in the component code.
Issue 1:
Hi,

How do I intercept API calls of a service worker? I assumed context.route covered everything contained in context, service workers included.

Was I wrong? If so, how do I intercept their apis as well?

Thanks!

Issue 2:
System info

Playwright Version: [v1.32]

Operating System: [macOS 13.2.1]

Browser: [Chromium]

Other info: [N/A]

Source code

I provided exact source code that allows reproducing the issue locally.

configTypes.ts : This file is inside folder in which pages, test and configTypes.ts are in same level.

import fs from "fs";
import toml from "toml";

const config = toml.parse(fs.readFileSync("./config.toml", "utf-8"));

export default {
ADMIN_URL: process.env.ADMIN_STAG_URL ?? config.admin_url,
ADMIN_MOBILE_NUMBER: process.env.ADMIN_PHONE ?? config.admin_mobile_number,
ADMIN_PASSCODE: process.env.ADMIN_PASSCODE ?? config.admin_passcode,
};

config.toml : This file is in the main root level.

admin_url="https://hello.com/"
admin_mobile_number="9999999999"
admin_passcode = "1234"

**Git Hub Repository > > Settings >> Secrets and Variables >> Actions >> Variables >> Repository Variables ** : At this location, I have added URL and Credentials which should be used.

SANITY=1 CICD=1 ADMIN_STAG_URL="https://test-hello.com/" ADMIN_PHONE=9090909090 ADMIN_PASSCODE=1234

GitHub Action Workflow :

name: Automated Tests
on:
pull_request:
branches: [master]
types: ['opened']
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: admin
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Check out automationtest repo
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
working-directory: ./automationtest
- name: Run tests
run: SANITY=1 CICD=1 npx playwright test --project=admin-sanity
working-directory: ./automationtest
- name: Upload artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: ./automationtest/playwright-report/
retention-days: 8

Steps

[Run the test]

Expected

I am expecting when the script is running through cicd pipeline, it will use the URL and login credentials mentioned in the 'GitHub Actions >> Variables >> Repository Variables'.

Actual

It is using the URL and Credentials mentioned in 'Config.toml' file when running tests through cicd pipelines.

Please help here.

Thanks.
Issue 1:
VSCode Version: Version 0.10.10 (0.10.10)

OS Version: Yosemite / El Capitan

Steps to Reproduce:

click on any file in the explorer

view jumps to line 10 or 12

Expected functionality would be that the file opens with line 1 visible.

Issue 2:
In most editors that I have used, if I want to indent a highlighted block of code, I just do so by highlighting it as below, and hitting the tab key.

However, as shown in the below screenshot, the code disappears.

The worst part is that when I undo this, rather than going to the state before hitting tab, the text does not fully restore, and this undo action even distorts code below the selection area, as shown in the following screenshot.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce-serial-release-1.4/97/

Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 100 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278
Oct 4 10:27:31.575: CPU usage exceeding limits:
node jenkins-e2e-minion-group-zpec:
container "kubelet": expected 50th% usage < 0.170; got 0.184, container "kubelet": expected 95th% usage < 0.220; got 0.244
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:187

Previous issues for this test: #26982 #33994

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gce/6512/

Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 100 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278
Sep 7 04:56:39.012: Memory usage exceeding limits:
node jenkins-e2e-minion-group-4yze:
container "kubelet": expected RSS memory (MB) < 83886080; got 85123072
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153

Previous issues for this test: #26982
Issue 1:
Challenge Waypoint: Local Scope and Functions has an issue.

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0.

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

challenge only passed when I removed BOTH console.log statements. Removing only the second one as requested did not work.

My code:

function myFunction() {
var myVar = "spam";
}
myFunction();

// run and check the console
// myVar is not defined outside of myFunction
// now remove the console.log line to pass the test

Issue 2:
Challenge Waypoint: Local Scope and Functions has an issue.

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

The test asks you to remove the second console.log() to pass. When you remove the second console.log() it still fails. You have to remove both console.log() calls to pass(including the one inside myFunction().)

Reproducible every time by removing the console.log() outside of myFunction(), as asked by test. I'm assuming this is a bug in the test and not the text as there's no reason to remove the console.log() call within myFunction().
Issue 1:
go1.6 gotype seems to be unaware of vendoring

What version of Go are you using (go version)?

1.6

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"

GOBIN=""

GOEXE=""

GOHOSTARCH="amd64"

GOHOSTOS="linux"

GOOS="linux"

GOPATH="/home/john/src/gocode"

GORACE=""

GOROOT="/home/john/opt/go"

GOTOOLDIR="/home/john/opt/go/pkg/tool/linux_amd64"

GO15VENDOREXPERIMENT="1"

CC="gcc"

GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"

CXX="g++"

CGO_ENABLED="1"

What did you do?

john@ebola:~/src/gocode/src/github.com/the42/bevaddress$ gotype bevaddress.go

The tree is

john@ebola:~/src/gocode/src/github.com/the42/bevaddress$ tree -d

.

├── Godeps

└── vendor

└── github.com

├── gorilla

│ └── websocket

└── lib

└── pq

└── oid

8 directories

What did you expect to see?

no error (go build works)

What did you see instead?

bevaddress.go:9:2: could not import github.com/gorilla/websocket (can't find import: github.com/the42/bevaddress/vendor/github.com/gorilla/websocket)

bevaddress.go:10:4: could not import github.com/lib/pq (can't find import: github.com/the42/bevaddress/vendor/github.com/lib/pq)

bevaddress.go:18:16: undeclared name: websocket

Issue 2:
It is common to use go/types is as part of a go generate command

or other command line tool to introspect a Go package.

The go tool goes to some lengths to ensure that whenever

you operate on a package, it builds the source for that

package into object form before using it, so you don't

end up using symbol information that's out of date with respect

to the source.

When using go/types from a command line tool, you

don't have that luxury, and it's not necessarily appropriate

to call "go install" automatically.

I believe that a better way would be for the default

importer to use the object file data only if it's newer

than the source files, otherwise fall back to using the

source directly. Or at least it would be nice to have

that option, so that it's easy to make go generate

utilities operate on the up to date code.

I hope this could be considered before Go 1.5 as

we won't be able to change this behaviour after then.