WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I don't know if there are relevant open bugs for this. I didn't see any on a quick
glance.
This issue is for tracking work toward being able to call Go from C programs (perhaps
linked into the program already, perhaps as a dynload .so file).

Elias Naur has done some good work getting the raw technical details of things like
large-model, position-independent code working.

The biggest step that remains is defining what it means to enter a Go program. Do we use
the usual 'run main.init+main.main' that we use for standalone binaries? Do we use
something else? Is os.Args defined? And so on.

I expect this to happen after Go 1.1.

Issue 2:
by daniel@heroku.com:

Although it's already possible to link C code into a Go program (that controls the entry
point), it would be highly useful to me to have the opposite (running a Go runtime in a
C program).

I'm mostly interested in exposing exported Go symbols and bindings to Python (and Ruby,
Java, and similar), and PostgreSQL. In the latter case, the sandboxed variant of Go
provides a more unique advantage as it can be run as a "trusted" language.
Issue 1:
Environment

Windows build number: Windows 10 Version 1909 Build 18363.836
PowerToys version: 18.1
PowerToy module for which you are reporting the bug (if applicable): Run

Steps to reproduce

Open PowerToys Run box (Alt + Space)

Input Calc for Calculator

Open Calculator

Open PowerToys Run box (Alt + Space) again

Expected behavior

Is expected a clean run box for every instance of search.

Actual behavior

Is keeping the last terms I used.

Screenshots

Issue 2:
as you can see it goes to the same window i searched before . I am not very good at explaining i hope you can get what im trying to say
Issue 1:
Platform: Windows10 1703

OS Version: 15063.1387

After search many documents & issues, I got no answer.

Is there anybody knows what happened to the installation of deno?

Issue 2:
Example:

import express from "npm:express@4";

const app = express();
const port = 3000;

app.get('/', (req, res) => {
res.send('Hello World!');
});

app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});

Depends on #12648
Issue 1:
For a piece of code at work, we had a set of tasks that are essentially wrappers around a function. Originally each function was implemented independently. To reduce code duplication, I tried to make a higher order function that would take in the wrapped function (ship_function) and return a task that called it and did the other boilerplate code. This code is below:

def make_ship_function(ship_function, shipment_type_name, task_name):
@task(ignore_result=True, name=__name__ + "." + task_name)
@transaction.commit_manually
def inner(oblpn_nbr, facility_code, company_code, user = None):
try:
if not CWLoginContext.user and user:
set_login_context_user(user)
set_facility_and_company(facility_code, company_code)
(retval, msg) = ship_function(oblpn_nbr, facility_code, company_code)
if not retval:
transaction.rollback()
cwlog.error('{0}.process_shipment_ws returned false: {1}'.format(shipment_type_name, msg))
CWLoginContext.user = None
raise Exception(msg)
transaction.commit()
CWLoginContext.user = None
return True, None
except Exception, e:
transaction.rollback()
if connection.queries: cwlog.error(connection.queries[-1])
cwlog.error('Exception in {0}.process_shipment_ws: {1}'.format(shipment_type_name, e))
CWLoginContext.user = None
raise e
return inner

This code does not work properly. Even though in the task decorator, I specify the name of the task, all tasks generated by make_ship_function will all have the same name, inner. This goes against my expectations gotten from reading the docs here: http://celery.readthedocs.org/en/latest/userguide/tasks.html#names .

Issue 2:
Checklist

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

introduced by: PR #4745

Possible Duplicates

None

Description

The user guide for tasks states: "Results can be enabled/disabled on a per-execution basis, by passing the ignore_result boolean parameter, when calling apply_async or delay" (emphasis mine)

To me, this seems to suggest that you could so something like mytask.delay(ignore_result=True). However, that will just cause the kwarg to be passed through to the task itself, or rather, it causes an exception:

TypeError: mytask() got an unexpected keyword argument 'ignore_result'

Looking at the user guide on calling tasks, it becomes clear that delay is just a "Shortcut to send a task message, but doesn’t support execution options" (emphasis mine) and hence apply_async must be used instead.

Suggestions

Unless I'm completely misunderstanding something here, I suggest that it is made more clear in the user guide for tasks that usage of apply_async rather than delay is required to use the ignore_result kwarg.
Issue 1:
Context

Local variables (defined with the # character at a element attribute) don't apply for this use case: rqw local variables for a loop with ngFor.

In fact, when you define a local variable on an HTML element it corresponds to the component if any. When there is no component on the element, the variable refers to the element itself.

Specifying a value for a local variable allows you to select a specific directive associated with the current element. For example:

<input #name="ngForm" ngControl="name" [(ngModel)]="company.name"/>

will set the instance of the ngForm directive associated with the current in the name variable.

So local variables don't allow to set a value created for the current element of a loop.

If I try to do something like that:

<div *ngFor="#elt of eltList" >
<span #localVariable="elt.title"></span>
{{localVariable}}
</div>

I have this following error:

Error: Template parse errors:
There is no directive with "exportAs" set to "elt.title" ("
<div *ngFor="#elt of eltList" >
<span [ERROR ->]#localVariable="elt.title"></span>
{{localVariable}}
</div>
"): AppComponent@2:10

Angular2 actually looks for a directive matching the provided name elt.title here)... This plunkr shows this: https://plnkr.co/edit/qcMGr9FS7yQD8LbX18uY?p=preview. The section "Local variables" of this link http://victorsavkin.com/post/119943127151/angular-2-template-syntax also describes this.

In addition to the current element of the iteration, ngFor only provides a set of exported values that can be aliased to local variables: index, last, even and odd.

Question

It would be interested to have a way to define custom local variables within the loop. This way you could define a computed variable once and use it several times in the loop block.

<div *ngFor="#t of todos; #i=index; #formattedTodoName=format(t.name)">
{{formattedTodoName}}
(...)
{{formattedTodoName}}
</div>

I would be interested in having your feedbacks.

This question follows the one from the StackOverflow website: http://stackoverflow.com/questions/35257455/ng2-how-to-create-variable-in-ngfor-loop/.

Thanks very much!

Issue 2:
It looks like if I use the @Attribute on a class constructor:

constructor(@Attribute('tabindex') tabindex: string) {}

it causes the TS compiler to throw a semantic error:

src/app/components/checkbox/checkbox.ts(63,14): error TS1239: Unable to resolve signature of parameter decorator when called as an expression. Supplied parameters do not match any signature of call target.
Issue 1:
Hello Everyone,

I am a newbie to Electron (Atom-shell), Was figuring out the api provided in ATOM shell. While doing mock up codes. I was unable to find any api to retrieve cookies and delete specific cookies for domain.

Am i missing something, can someone put me in a right direction.

Mac : ~/Library/Application Support/<appName>/Cookies i deleted all were gone.
windows : appData/<appName>/cookies

deletion will delete everything But is there any api to collect all Cookies and manage selective domains to delete them? or can we enable https://developer.chrome.com/extensions/cookies api

BTW, I just love the architecture and way atom is working embedding CEF and Node

Cheers!!!!!

Issue 2:
Can atom-shell support cookie？
Issue 1:
Bug Report

I'm use jsx-control-statement@4.1.0 plugin.

Production build is work properly but when I start development mode I have error undefined is not a function

In the source code of my development build I see this

Expected behavior

Development build work properly

- Babel version(s): v7.13.10
- Node/npm version: Node 13
- Monorepo: no
- How you are using Babel: webpack

Additional context

I found similar issue with babel-plugin-inline-react-svg

Issue 2:
I've run into this a couple of times recently and haven't been able to figure out why it happens. I put together this small test case:

var className = `${prefix}__header`;

var obj = {};
obj[className] = true;
obj[className + '--open'] = true;
obj[className + '--active'] = true;

// This works
var classes = cx(obj);

// This doesn't
var classes = cx({
[className]: true,
[className + '--open']: true,
[className + '--active']: true
});

With the error

Parse Error: Duplicate data property in object literal not allowed in strict mode
Issue 1:
TypeScript Version:

nightly (1.9.0-dev.20160522-1.0)

Description

I'm trying to add a reference from the root:

import {Hero} from "/models/hero";

But it only works if I add both models and /models to the rootDirs array:

tsconfig.json

"rootDirs": [
"models",
"/models"
]

If I only use one (either one) I get error TS2307: Cannot find module '/models/hero'

Seems odd that I need both for it to work.

Issue 2:
TypeScript Version:

nightly (1.9.0-dev.20160217)

Code

let greeting:string;
let x = (message: string | number) => {
if (typeof message !== "string") {
return;
}
// It's obvious, that message must be a string now. It works with "else statement" but not with early return.
greeting = message;
}
}

Expected behavior:

No raising error.

Actual behavior:

Compiler raises an error that type string | number cannot be assigned to string variable.
Issue 1:
Example 1

This came up with a student who upgraded from 0.6 to 1.0 directly, so never even got a chance to see a deprecation warning, let alone find an explanation for new behavior:

julia> beforefor = true
true

julia> for i in 1:2
beforefor = false
end

julia> beforefor # this is surprising bit
true

julia> beforeif = true
true

julia> if 1 == 1
beforeif = false
end
false

julia> beforeif # Another surprise!
false

julia> function foo()
infunc = true
for i in 1:10
infunc = false
end
@show infunc
end
foo (generic function with 1 method)

julia> foo() # "I don't get this"
infunc = false

Example 2

julia> total_lines = 0
0

julia> list_of_files = ["a", "b", "c"]
3-element Array{String,1}:
"a"
"b"
"c"

julia> for file in list_of_files
# fake read file
lines_in_file = 5
total_lines += lines_in_file
end
ERROR: UndefVarError: total_lines not defined
Stacktrace:
[1] top-level scope at ./REPL[3]:4 [inlined]
[2] top-level scope at ./none:0

julia> total_lines # This crushs the students willingness to learn
0

I "get" why this happens in the sense that I think I can explain, with sufficient reference to the arcana in the manual about what introduces scopes and what doesn't, but I think that this is problematic for interactive use.

In example one, you get a silent failure. In example two, you get an error message that is very there-is-no-spoon. Thats roughly comparable to some Python code I wrote in a notebook at work today.

I'm not sure what the rules are in Python, but I do know that generally you can't assign to things at the global scope without invoking global. But at the REPL it does work, presumably because at the REPL the rules are different or the same logic as if they were all are in the scope of function is applied.

I can't language-lawyer the rules enough to propose the concrete change I would like, and based on Slack this isn't even necessarily perceived as an issue by some people, so I don't know where to go with this except to flag it.

Cross-refs:

#19324

https://discourse.julialang.org/t/repl-and-for-loops-scope-behavior-change/13514

https://stackoverflow.com/questions/51930537/scope-of-variables-in-julia

Issue 2:
Issue 1:
I am debugging PackageCompiler issue, which looks like is on Julia's C side: #32733 and TsurHerman/Fezzik#3

I compiled (in Arch Linux, gcc v9.1) julia with make debug. Started julia-debug REPL, command using Makie just trowed error (using regular version of julia error is not trowed):

julia> using Makie
[ Info: Precompiling Makie [ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a]
[Detaching after vfork from child process 25323]
julia-debug: /home/kest/Projects/julia/src/gf.c:1188: check_ambiguous_visitor: Assertion `!jl_subtype((jl_value_t*)sig, (jl_value_t*)type)' failed.

signal (6): Aborted
in expression starting at /home/kest/.julia/packages/StructArrays/RkrVr/src/structarray.jl:80
gsignal at /usr/lib/libc.so.6 (unknown line)
abort at /usr/lib/libc.so.6 (unknown line)
...

julia> versioninfo()
Julia Version 1.1.1
Commit 55e36cc308 (2019-05-16 04:10 UTC)
DEBUG build
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, haswell)

Maybe somebody can comment?

Issue 2:
While trying to track down a memory leak in Metalhead, I discovered the following assertion failure:

julia> using Images
[ Info: Precompiling Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]
Assertion failed: (!jl_subtype((jl_value_t*)sig, (jl_value_t*)type)), function check_ambiguous_visitor, file /Users/sabae/src/julia/src/gf.c, line 1189.

signal (6): Abort trap: 6
in expression starting at /Users/sabae/.julia/packages/Images/3bPWU/src/Images.jl:46
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 3702182 (Pool: 3701803; Big: 379); GC: 5
ERROR: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to /Users/sabae/.julia/compiled/v1.1/Images/H8Vxc.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1190
[4] macro expansion at ./logging.jl:311 [inlined]
[5] _require(::Base.PkgId) at ./loading.jl:947
[6] require(::Base.PkgId) at ./loading.jl:858
[7] macro expansion at ./logging.jl:311 [inlined]
[8] require(::Module, ::Symbol) at ./loading.jl:840

julia> versioninfo()
Julia Version 1.1.0-DEV.376
Commit 23bf90292e (2018-10-04 16:18 UTC)
DEBUG build
Platform Info:
OS: macOS (x86_64-apple-darwin17.7.0)
CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Issue 1:
I couldn't figure out to add support for arbitrary class labels to the SVMs and add a classes_ attribute.

I'm moving to other stuff for the moment, it would be great if someone found some time for this.

The trouble comes with class_weight and regression. I think it would be good to add a LabelEncoder somewhere to take care of the encoding of the class_weights. But apparently the implementation also requires a class-weights on the python side in the regression case. And the LabelEncoder should obviously not be used in the SVR.

This is doable but I couldn't make it pretty so I just left it :-/

Issue 2:
from sklearn.datasets import fetch_mldata

mnist = fetch_mldata('MNIST original', data_home='./data')

when I use this, it not working and in cmd show

Traceback (most recent call last): File "mnistTest.py", line 7, in <module> mnist = fetch_mldata('MNIST original', data_home='./data') File "C:\Python27\lib\site-packages\sklearn\datasets\mldata.py", line 142, in fetch_mldata mldata_url = urlopen(urlname) File "C:\Python27\lib\urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "C:\Python27\lib\urllib2.py", line 429, in open response = self._open(req, data) File "C:\Python27\lib\urllib2.py", line 447, in _open '_open', req) File "C:\Python27\lib\urllib2.py", line 407, in _call_chain result = func(*args) File "C:\Python27\lib\urllib2.py", line 1228, in http_open return self.do_open(httplib.HTTPConnection, req) File "C:\Python27\lib\urllib2.py", line 1198, in do_open raise URLError(err) urllib2.URLError: <urlopen error [Errno 10060] A connection attempt failed becau se the connected party did not properly respond after a period of time, or estab lished connection failed because connected host has failed to respond>
Issue 1:
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A

TensorFlow installed from (source or binary): Source

TensorFlow version: 1.12

Python version: 3.6

Installed using virtualenv? pip? conda?: pip

Bazel version (if compiling from source): 0.18.1

GCC/Compiler version (if compiling from source): Visual Stuido 2015

CUDA/cuDNN version: CUDA 10/ cudnn 7

GPU model and memory: Titan V

Describe the problem

Unable to build with Tensor RT in windows. Newest version (Tensor RT5) claims windows support but build script (configure.py) assumes linux only.

Has anybody successfully built with TensorRT5 on windows? Will TF 1.13 include support?

Issue 2:
Ref #8023

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04

TensorFlow installed from (source or binary): Docker image

TensorFlow version (use command below): 1.1.0

Bazel version (if compiling from source): N/A

CUDA/cuDNN version: Per Docker image

GPU model and memory: K80

Exact command to reproduce: N/A

Describe the problem

The logging configuration in tf_logging is odd and inconsistent with how things are generally done in Python.

In general, it's typical to attach handlers to the root logger in Python: https://docs.python.org/2/library/logging.html#logging.Logger.propagate

However, because tf_logging sets up its own stream handler, and does not disable the propagate flag, anybody who does follow the standard Python convention of attaching handlers to the root logger gets duplicated log output from TensorFlow.

Per #8023, while this isn't a bug per se, it's still wrong and undesirable.

The cleanest way forward is probably to just set propagate=False on the TF logger.
Issue 1:
by sorosj:

What steps will reproduce the problem?
1. Compile a 64bit kernel (with 32bit executables support)
2. boot into a 32bit environment with that kernel (32bit compiler, gnu utiles & all)
3. try to run ./all.bash

What is the expected output?
golang compiles fine

What do you see instead?
==snip==
%%%% making lib9 %%%%

quietgcc -I"/home/johnny/dev/golang/include" -ggdb -O2 -c
"/home/johnny/dev/golang/src/lib9/_p9dir.c"
quietgcc -I"/home/johnny/dev/golang/include" -ggdb -O2 -c
"/home/johnny/dev/golang/src/lib9/_exits.c"
quietgcc -I"/home/johnny/dev/golang/include" -ggdb -O2 -c
"/home/johnny/dev/golang/src/lib9/argv0.c"
quietgcc -I"/home/johnny/dev/golang/include" -ggdb -O2 -c
"/home/johnny/dev/golang/src/lib9/atoi.c"
/home/johnny/dev/golang/src/lib9/_exits.c:1:0: sorry, unimplemented: 64-bit mode not
compiled in
/home/johnny/dev/golang/src/lib9/atoi.c:1:0: sorry, unimplemented: 64-bit mode not
compiled in
/home/johnny/dev/golang/src/lib9/argv0.c:1:0: sorry, unimplemented: 64-bit mode not
compiled in
make: *** [atoi.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [_exits.o] Error 1
make: *** [argv0.o] Error 1
/home/johnny/dev/golang/src/lib9/_p9dir.c:1:0: sorry, unimplemented: 64-bit mode not
compiled in
make: *** [_p9dir.o] Error 1
==snip==

Which operating system are you using?
Linux 2.6.36 (gentoo ~x86)

Which revision are you using? (hg identify)
f1939161b11a tip

Please provide any additional information below.
I changed to a 64 bit kernel because i needed to support 64bit chroots, i have a
cross-compilation toolchain installed which is how I compiled the kernel.

Issue 2:
go version go1.3 darwin/amd64

Create two files:

"foo.go":

package foo

func foo() {
NOPE I AM A SYNTAX ERROR
}
j

"foo_test.go":

package foo

Then run `go test` and the test passes. If you add a single test case to `foo_test.go`,
then it errors as expected. I believe that this was not the behavior with Go 1.2 but
haven't verified. I have a lot of test cases for really basic packages that I just want
to test compilation, and it no longer is testing that, when it was before.
Issue 1:
See example below. There is no "sex" in the styled table.

from IPython.display import display as d
import pandas as pd
df=pd.DataFrame.from_dict(dict(survived=[1,0,0,0,1,1,1,1], sex=["Male", "Female", "Male", "Female",
"Male", "Female","Female", "Female" ]))
table=pd.crosstab(df.survived, df.sex)
table.loc["rate"] = table.iloc[-1] / table.sum()
d(table)
ftable = table.style.format("{:.0%}", subset=pd.IndexSlice["rate",:])
d(ftable)

Issue 2:
I don't know if anyone's profiled the test suite, but we'd get major performance boosts if we wrote a Cython version of assert_almost_equal. Is there another open issue for this already?
Issue 1:
Kenny MacLeod opened SPR-6315 and commented

This is a deliberately refiled duplicate of #10827, which was originally filed as a "refactor", and I think it perhaps should be "bug".

Between 3.0.0 M4 and RC1, the protected parseStringValue method disappeared from PropertyPlaceholderConfigurer. For custom subclasses, this method was the main entry point into the superclass functionality. Since it had not been deprecated, it seemed like the correct thing to do, but has now been removed, breaking compile-time compatibility between 2.5 and 3.0.

Can the method be reinstated somehow, that perhaps invokes the new methods that do the work? It can then be marked as deprecated.

Affects: 3.0 RC1

Issue Links:

#10827 parseStringValue gone from PropertyPlaceholderConfigurer ("duplicates")

#11180 Backward compatibility issue in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer

Issue 2:
Tommy Becker opened SPR-7901 and commented

We're experiencing OOM errors during unit test runs. We make fairly heavy use of Java based context configuration in our application as well as the tests. Upon investigation, I see that there are a number of ApplicationContext instances still referenced on the heap that should be collectable. It appears that the way the ConfigurationClassEnhancer is registering its BeanMethodInterceptor with the CGLIB generated subclass is the problem. In #10601, this was changed from Enhancer.registerCallbacks() to Enhancer.registerStaticCallbacks() to work around the fact that the former only applies the advice when method calls originate from the same thread that registered the callback. However using the static callback mechanism results in a static reference from the generated subclass to the interceptor, which in turn keeps a reference to the BeanFactory. So the BeanFactory is never eligible for GC, even after its been closed. Although problems running unit tests reveled the problem, we're most likely experiencing it at runtime as well since our application does close contexts and start new ones dynamically in response to some events.

As a potential fix, it would be nice if the BeanMethodInterceptor could receive a callback itself when the BeanFactory it references is closed, so it can then unregister itself from the CGLIB proxy. Alternatively, perhaps a WeakReference to the BeanFactory could be used from the interceptor.

Affects: 3.0.3

Attachments:

mylyn-context.zip (105.42 kB)

Issue Links:

#12878 CGLIB enhanced @Configuration classes cannot be garbage collected ("is duplicated by")

#12663 MemoryLeak in Cglib2AopProxy.ProxyCallbackFilter

#12878 CGLIB enhanced @Configuration classes cannot be garbage collected

Referenced from: commits d2faef4, 43676bd

5 votes, 3 watchers