WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.4.0-DEV

When trying to use an env() placeholder on a config option that is being validated, it takes the placeholder literally and it fails the validation.

Here's a fresh new project replicating the error:

https://github.com/symfony/symfony-standard/compare/master...felds:config-vs-env?expand=1

Relevant changes:

# app/config/config.yml
parameters:
env(SMTP_HOST): smtp.example.com
env(SMTP_ENCRYPTION): tls
swiftmailer:
host: "%env(SMTP_HOST)%" # <-- this works…
encryption: "%env(SMTP_ENCRYPTION)%" # <-- but this breaks

Issue 2:
swiftmailer:
transport: '%env(MAILER_TRANSPORT)%'
host: '%env(MAILER_HOST)%'
port: '%env(MAILER_PORT)%'
encryption: '%env(MAILER_ENCRYPTION)%'
username: '%env(MAILER_USER)%'
password: '%env(MAILER_PASS)%'

This config throws a The "%env(MAILER_ENCRYPTION)%" encryption is not supported exception.

This happens because of the ->ifNotInArray(array('tls', 'ssl', null)) check. ContainerBuilder::resolveEnvPlaceholders happens later.
Issue 1:
It's possible this behavior is to-spec, but I don't think so. As I understand it, in the example input code below, the object literal creates a block scope but the function itself creates an additional block scope. Thus, the inner let foo should shadow, not collide with, the outer function foo

Input Code

let obj = {
foo: function foo() {
let foo = true;
console.log('foo ran');
}
};

obj.foo();

Babel Configuration (.babelrc, package.json, cli command)

// .babelrc
{}

Expected Behavior

The code should compile with no errors.

Current Behavior

TypeError: index.js: Duplicate declaration "foo"
2 | let obj = {
3 | foo: function foo() {
> 4 | let foo = true;
| ^
5 | console.log('foo ran');
6 | }
7 | };
at File.buildCodeFrameError (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-core/lib/transformation/file/index.js:431:15)
at Scope.checkBlockScopedCollisions (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/scope/index.js:403:27)
at Scope.registerBinding (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/scope/index.js:597:16)
at Scope.registerDeclaration (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/scope/index.js:501:14)
at Object.BlockScoped (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/scope/index.js:189:28)
at Object.newFn (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/visitors.js:318:17)
at NodePath._call (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/path/context.js:44:14)
at NodePath.visit (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (/Users/daw/scratch/babel-duplicate-declaration-reproduction/node_modules/babel-traverse/lib/context.js:150:16)

Context

I originally encountered this trying to run already-compiled code through babel again (long story). The es2015 class transform outputs code that uses this kind of object literal syntax with methods defined via named function expressions. The result is that if you define a variable foo inside a method named foo, the resulting code will throw the above error if run through the babel compiler again.

Your Environment

software
version

Babel
6.18.0

node
6.6.0

yarn
0.17.9

Operating System
OS X 10.11.6

Issue 2:
Issue originally made by @FuzzOli87

Bug information

Babel version: 6.3.13

Node version: v5.3.0

npm version: 3.5.3

Options

{
"presets": ["es2015"],
"plugins": [
"transform-runtime"
]
}

Description

When using the runtime plugin, it adds an import statement after transpiling the code leading to errors.

Test repo:

https://github.com/FuzzOli87/test-ava-repo

Doing node foo.js creates the issue where gen.js gets transpiled with an import statement.
Issue 1:
davidtest@CaffeVM:~/tensorflow/tensorflow/tensorflow/examples/tutorials/mnist$ python fully_connected_feed.py

Traceback (most recent call last):

File "fully_connected_feed.py", line 277, in

tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)

File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run

_sys.exit(main(_sys.argv[:1] + flags_passthrough))

File "fully_connected_feed.py", line 222, in main

run_training()

File "fully_connected_feed.py", line 120, in run_training

data_sets = input_data.read_data_sets(FLAGS.input_data_dir, FLAGS.fake_data)

File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 211, in read_data_sets

SOURCE_URL + TRAIN_IMAGES)

File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 208, in maybe_download

temp_file_name, _ = urlretrieve_with_retry(source_url)

File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 165, in wrapped_fn

return fn(*args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 190, in urlretrieve_with_retry

return urllib.request.urlretrieve(url, filename)

File "/usr/lib/python2.7/urllib.py", line 94, in urlretrieve

return _urlopener.retrieve(url, filename, reporthook, data)

File "/usr/lib/python2.7/urllib.py", line 240, in retrieve

fp = self.open(url, data)

File "/usr/lib/python2.7/urllib.py", line 208, in open

return getattr(self, name)(url)

File "/usr/lib/python2.7/urllib.py", line 345, in open_http

h.endheaders(data)

File "/usr/lib/python2.7/httplib.py", line 1013, in endheaders

self._send_output(message_body)

File "/usr/lib/python2.7/httplib.py", line 864, in _send_output

self.send(msg)

File "/usr/lib/python2.7/httplib.py", line 826, in send

self.connect()

File "/usr/lib/python2.7/httplib.py", line 807, in connect

self.timeout, self.source_address)

File "/usr/lib/python2.7/socket.py", line 571, in create_connection

raise err

Issue 2:
The website of Yann LeCun is down at the moment.

Therefore the MNIST-Script for downloading the files doesn't work either. (-> learn/python/learn/datasets/mnist.py won't work)

Are there any mirrors?
Issue 1:
Either the sass or the less (which ever is used to print the css in the downloadable package) is making the .row:after, .row:before, .container:after, and .container:before elements twice.

Issue 2:
show on bootstrap.css

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453
Issue 1:
Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

Just update WT I think...

Expected behavior

Opens Windows Terminal

Actual behavior

Nothing, just a error saying this command does not exist.

wt : Le terme «wt» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme
exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès est correct
et réessayez.
Au caractère Ligne:1 : 1
+ wt
+ ~~
+ CategoryInfo : ObjectNotFound: (wt:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Issue 2:
Environment

Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Windows Terminal Version: 0.3.2171.0

Other Software

ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]

gems

pry (0.12.2)

irb (1.0.0)

both ruby REPLs

Steps to reproduce

In windows terminal start the ruby REPL pry or irb

type fooar then press the left arrow key to move the cursor back.

Expected behavior

You should be able to use the arrow keys to move around.

Actual behavior

The cursor is stuck at the end of the line.

I tested this behavior in other REPLs such as node, and python and this was not an issue. I then tested this behavior in other shells cmd and powershell (not in windows terminal) and this behavior was not reproducible.

Did some further testing and noticed this issue is a problem both in powershell and command when I start them in windows terminal, but it is not an issue when I run wsl in windows terminal.
Issue 1:
With server-side bundles in next@5 the require statements that are built via next build now have an absolute file path.

E.g. at the bottom of <projroot>/.next/dist/bundles/pages/_error.js it has module.exports = require("C:\\path\\to\\<projroot>\\node_modules\\next\\dist\\pages\\_error.js"); rather than require("next\\dist\\pages\\_error.js");.

This means that if I build my site on a continuous integration server and then shift the result onto a deployment server it fails because the file path is wrong.

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

Expected Behavior

After running next build none of the built files should not have absolute file paths.

Current Behavior

After running next build the built files have absolute file paths.

Steps to Reproduce (for bugs)

Run next build

Inspect the .next/dist folder

Context

I'd like to follow continuous delivery practices and build my site once on a continuous integration server then use that build across multiple environments (e.g. dev, test, prod) via a deployment pipeline.

Your Environment

Tech
Version

next
5.0.0

node
6.8.1

OS
Windows 10

Issue 2:
Bug report

The dynamic routing solution doesn't work at all

To Reproduce

I have this code using material-ui

I have this button

<Link
href='/r/[id]'
as={`/r/${selected.id}`}
passHref>
<Button component="a" variant="outlined" size="small">View Menu</Button>
</Link>

on the other page

import { useRouter } from 'next/router';
const Index = () => {
const router = useRouter()
console.log(router.query.id)
return (
)
}

The next.config.js

const withOffline = require('next-offline');
const withCSS = require('@zeit/next-css')

const nextConfig = {
target: 'serverless',
transformManifest: manifest => ['/'].concat(manifest),
workboxOpts: {
swDest: 'static/service-worker.js',
runtimeCaching: [
{
urlPattern: /^https?.*/,
handler: 'NetworkFirst',
options: {
cacheName: 'https-calls',
networkTimeoutSeconds: 15,
expiration: {
maxEntries: 150,
maxAgeSeconds: 30 * 24 * 60 * 60, // 1 month
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
],
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024
},
};

module.exports = withOffline(withCSS(nextConfig));

and the now.json

{
"version": 2,
"routes": [
{
"src": "^/service-worker.js$",
"dest": "/_next/static/service-worker.js",
"headers": {
"cache-control": "public, max-age=43200, immutable",
"Service-Worker-Allowed": "/"
}
}
],
"builds": [
{
"src": "next.config.js",
"use": "@now/next"
}
]
}

Expected behavior

Expect to move to a new route but nothing happens

System information

OS: Windows

Browser : chrome

Version of Next.js: [e.g. 9.0.6]
Issue 1:
Dear Sir/mam

I confuse how to display using tensorboard. here is my program

graph = "d://"

import tensorflow as tf

Build our graph nodes, starting from the inputs

a = tf.constant(5, name="input_a")

b = tf.constant(3, name="input_b")

c = tf.multiply(a,b, name="mul_c")

d = tf.add(a,b, name="add_d")

e = tf.add(c,d, name="add_e")

Open up a TensorFlow Session

sess = tf.Session()

Execute our output node, using our Session

output = sess.run(e)

Open a TensorFlow SummaryWriter to write our graph to disk

writer = tf.summary.FileWriter(graph, sess.graph)

Close our SummaryWriter and Session objects

writer.close()

sess.close()

the events file has been created in drive D (i'm using windows 8.1, and tensorflow 1.0). and i found it when using explorer

When I type

tensorboard --inspect --logdir ="d:\"

tensorboard --inspect --logdir ="d:"

tensorboard --inspect --logdir ="d://"

tensorboard --inspect --logdir ="d:/"

tensorboard --inspect --logdir ='d:\'

tensorboard --inspect --logdir ='d:'

tensorboard --inspect --logdir ='d://'

tensorboard --inspect --logdir ='d:/'

the result are : No event files found within logdir,

pls tell me why this happened.

Thx

Issue 2:
OS: Windows 10 (64 bit)

TensorFlow Version: 1.0.0

CUDA: 8.0

GPU: yes

Problem:

C:>tensorboard --logdir=E:\tmp\tensorflow\mnist\logs

=> tensorboard starts without loading data (not working and difficult to detect reason)

E:>tensorboard --logdir=E:\tmp\tensorflow\mnist\logs

=> tensorboard starts with loading data (works perfectly)
Issue 1:
i am using ubuntu 12.04. i was following instructions from tensorflow.org for installing the tensor flow but getting the following error after downloading the the tensor flow-

ownloading tensorflow-0.10.0-cp27-none-linux_x86_64.whl (36.6Mb): 36.6Mb downloaded

Running setup.py egg_info for package from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl

Traceback (most recent call last):

File "", line 14, in

IOError: [Errno 2] No such file or directory: '/tmp/pip-uIJFE4-build/setup.py'

Complete output from command python setup.py egg_info:

Traceback (most recent call last):

File "", line 14, in

IOError: [Errno 2] No such file or directory: '/tmp/pip-uIJFE4-build/setup.py'

Command python setup.py egg_info failed with error code 1

Storing complete log in /home/dhanpal/.pip/pip.log

Issue 2:
In the tensorflow 1.13 document of tf.layers.dropout, there is a warning:

Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use keras.layers.dropout instead.

It is ridiculous to deprecate tf.layers.dropout, because it is widely used, and very easy to use.

Do you really care about the requirements of TF developers?

Do you really care about the requirements of TF developers?

Do you really care about the requirements of TF developers?
Issue 1:
julia> function f(x)
local x
x = 1
end
f (generic function with 1 method)

julia> f(1)
ERROR: UndefVarError: x not defined
in f(::Int64) at ./REPL[1]:2

In versions <=0.4, this gave ERROR: syntax: local "x" conflicts with argument when parsing the method definition.

Issue 2:
while I might appreciate the accuracy in noting that atypes wasn't actually assigned, codegen doesn't appreciate finding an assignment to a parameter that it was told would not be assigned to:

julia> function inlineable(atypes::Vector{Any})
local atypes = atype.parameters
atype = Tuple{atypes...}
end
inlineable (generic function with 1 method)

julia> @code_lowered inlineable(Any[1,2,3])
1-element Array{Any,1}:
:($(Expr(:lambda, Any[symbol("#self#"),:atypes],
Any[Any[Any[symbol("#self#"),:Any,0],
Any[:atypes,:Any,18],
Any[:atypes,:Any,0], # <==== this value is wrong, and overwrites the previous value ====
Any[:atype,:Any,18]],
Any[],1], :(begin # none, line 2:
atypes = (top(getfield))(atype,:parameters) # none, line 3:
GenSym(0) = (top(_apply))(top(apply_type),(top(tuple))(Main.Tuple),atypes)
atype = GenSym(0)
return GenSym(0)
end))))

julia> inlineable(Any[1,2,3])
Assertion failed: (vi.isSA), function emit_assignment, file /Users/jameson/julia/src/codegen.cpp, line 3227.
Abort trap: 6
Issue 1:
I just downloaded VS2015 RTM and opened a project that I've been working on in VS2013.

When I save a file, all I see is an error:

Failed to save file 'compiled.js'.

where compiled.js is the --out argument, as indicated in the project setting ("Combine JavaScript output into file").

There is no error or warning shown in the Error List window.

This seems to be similar to #3939, except that no redirect option is specified.

Issue 2:
Hello,

I upgraded to Visual Studio 2015 Community Edition RTM today and have found that if a TypeScript project has the "Redirect JavaScript output to directory" option set to true, then compile on save no longer functions. Deselecting this option on the project causes compile on save to function as expected.

The repro is quite simple: create a new project of type "HTML Application with TypeScript". Open app.ts, make a change and save the file. Now open app.js, make a change to the app.ts and save - app.js is reloaded with the changes.

Now add a folder to the project named "Scripts" and change the project properties such that "Redirect JavaScript output to directory" is checked and the path is "./scripts". Make a change to app.ts and save the file. Note that app.js does not show up under the "Scripts" folder. Build the project and note that app.js now appears under the "Scripts" folder. Open this file, make a change to app.ts and save the file - /scripts/app.js is not updated.
Issue 1:

Issue 2:
Environment

Windows build number: [run "ver" at a command prompt] 10.0.18941.1001
Windows Terminal version (if applicable): commit 5074335392c14d3359280609c8a03166cc20b857

Any other software?

Steps to reproduce

Open Windows Terminal, and resize the window, when the window width is smaller than a certain value, it crashes.

Expected behavior

It should not crash.

Actual behavior

It crashes.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: master

Operating System version: windows

Java version: 1.8

In ExtensionLoader, EXTENSION INSTANCES is a ConcurrentHashMap with a default size, and the extension class provided in Dubbo has exceeded 16.

Start the program, it will expand at least twice. I think it is more appropriate to add an initial size of 64 here.

Other places where ConcurrentHashMap is used should also pay attention to a suitable initial size

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Issue Detail

I have read dubbo website.

And when I have reached to RPC details section, I found that the picture has notes in Chinese. It is not international friendly since this page is not just for Chinese developers.

see the picture below

BTW, If I am willing to contribute to the website, is there any way ?
Issue 1:
What I expect to happen:

Given the following file:

// Polygon.js

class Polygon {
constructor(height, width) {
this.height = height;
this.width = width;
}

get area() {
return this.calcArea()
}

calcArea() {
return this.height * this.width;
}
}

I would expect the command babel Polygon.js to emit ES5-compatible code.

What actually happens:

The same ES6 file is returned, unmodified.

There are no errors to report.

Other

I installed babel and then babel-cli globally. I tried on Node 4.2.1 and Node 0.12.7. I am running on Ubuntu 15.04.

I got the above code example from this tutorial.

This problem is not specific to the Polygon.js example above. I used that as an example. I tried babel with numerous stand-alone scripts (including ones without classes) and the problem persists.

Issue 2:
I use generator-tiny-es-nm by @iamstarkov. It has "babel": "*" dep and transpile index.js through:

"transpile": "babel index.js --out-file index.es5.js"

Well, I know, after 6.0 there is babel-cli package, but if I install babel-cli and then run npm run transpile, it doesn't transpile anything. It just create new file and copy its content:

index.js

import pkg from './package'

console.log(pkg.version);

index.es5.js

import pkg from './package';

console.log(pkg.version);

So, I still use babel@^5 and don't understand what's going on. Is that my mistake or whatever?
Issue 1:
Describe the workflow you want to enable

Getting an estimate time for a model to train or an estimated time remaining before the training is completed.

Describe your proposed solution

Understand computational resources to get an estimate on time to train. OR

Use the already elapsed time to computed estimated time remaining. For example. if 10% training gets completed in 60 sec, ETA for 100% becomes 600 sec or similar.

Describe alternatives you've considered, if relevant

Tried scitime but thats a very invasive method. Would prefer a method that is more tightly coupled with sklearn functionality.

Additional context

No response

Issue 2:
Ideally, I think, operations that take a lot of time should both:

have a way of showing progress, and

be interruptable.

It was previously discussed at least in #78, #7574, #7596.

Regarding progress, in #7574 @amueller proposed not bake progress bar in, but rather add callbacks. In #7596 @denis-bz suggested to have callbacks that are passed locals(), which is an interesting idea. I also saw that fit() in GradientBoostingClassifier has the monitor parameter, which makes showing progress bars easy.

In #7596, @denis-bz suggested callbacks can also be used to interrupt computation. In our project, Orange (https://github.com/biolab/orange3), we do something similar: sometimes, where there is no other available mechanism, we raise a BaseException inside a callback to interrupt running threads.

Orange uses scikit-learn a lot and lack of callbacks in scikit-learn makes showing progress or interrupting hard (we'd like to allow stopping of running computations). For now, we have to resort to hacks. For example, inour Neural Network widget, we subclassed scikit-learn NNs and added a callback on n_iter_ change (biolab/orange3#2958)

We would like to help in implementing callbacks, but first, we are asking if you would even consider having something similar to GradientBoostingClassifier monitor in the other classes. What do you think?

Then, we could try thinking of an interface together and slowly start adding it to certain classed.
Issue 1:
Description of the problem

Similarly to #19102. The following SVG renders correctly in Chrome, Firefox, Android, but incorrectly on the latest three.js commit.

8.txt

Repro: https://jsfiddle.net/9Lth4x8w/

Three.js version

Dev

Browser

All of them

OS

Linux

Android

Issue 2:
Description of the problem

When creating a polygon with constructPathShape.toShapes the order of the constructpathshapes commands plays a role which shouldn't be the case. (I think so)

I am adding a hole than the outer vertice then again a hole.

The last hole is not recognized.

https://jsfiddle.net/0g9bdar5/2/

The only thing which was changed is the order of the constructpathshape commands.

If I add the two holes at the beginning the polygon is rendered correctly.

https://jsfiddle.net/0g9bdar5/3/

Three.js version

latest

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)