WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Docs says "The array can either be a regular Array or a Typed Array.", but unless I use a typed array I get the following error:

glDrawArrays: attempt to access out of range vertices in attribute 0

Is this a bug? It's convenient to be able to use regular arrays because then the buffer is expanded as needed when you use BufferGeometry.merge. Otherwise I'll have to precalculate the final vertex count or convert the regular array in BufferAttribute to a typedarray somehow.

Issue 2:
Deferred rendering

Forward rendering doesn't fit well with most advanced use cases, and when it does - it lacks performance. I want to see a Deferred, Tiled renderer as the main renderer in three.js, not something relegated to /examples folder.

Motivation

Any kind of post processing you want to have today requires you to build part of the pipeline, depth buffer, normals and colour also. This results in duplicated effort for the hardware in most cases resulting in sub-optimal performance.

If you wish to have any kind of sub-system which relies on a G-buffer, such as G-buffer based decal system which writes into colour+normal buffers - you require what three.js doesn't have.

Some useful links:

XG by Alteredqualia: http://alteredqualia.com/xg/examples/earth_bathymetry.html (more http://alteredqualia.com/)

Deferred Irradiance Volumes by pyalot: http://codeflow.org/webgl/deferred-irradiance-volumes/www/ (github https://github.com/pyalot/webgl-deferred-irradiance-volumes)

Tiled Deferred Renderer by tiansijie: http://tiansijie.github.io/Tile_Based_WebGL_DeferredShader/ (source https://github.com/tiansijie/Tile_Based_WebGL_DeferredShader)

born as a result of this issue: #13807
Issue 1:
as we all know,the render function return a html.The problem is, when i type space after 'return' and then connect HTML fragment,there is no problem.But there will be an error Uncaught TypeError: Cannot read property 'getNativeNode' of null when i type enter to generate a new line and connect HTML fragment.I also checkout this

Currently, in a component's render, you can only return one node; if you have, say, a list of divs to return, you must wrap your components within a div, span or any other component.

Don'tforget that JSX compiles into regular JS; returning two functions doesn't really make syntactic sense. Likewise, don't put more than one child in a ternary.

So,how to understand this problem?

Issue 2:
Note from maintainers:

We know this is an issue and we know exactly what set of problem can be solved. We want this too but it is a hard problem with our current architecture. Additional comments expressing desire for this feature are not helpful. Feel free to subscribe to the issue (there's button in the right hand column) but do not comment unless you are adding value to the discussion. "Me too" and "+1" are not valuable, nor are use cases that have already been written in the comments (e.g., we know that you can't put <tr> or <dd> elements with a <div>).

Consider the following:

var ManagePost = React.createClass({

render: function() {
var posts = this.props.posts

var something;
var somethingelse;

var row = posts.map(function(post){
return(
<div>
<div className="col-md-8">
</div>
<div className="cold-md-4">
</div>
</div>
)
});

return (
{row}
);
}

});

If you remove the <div></div> in the map, you get the following error: Adjacent XJS elements must be wrapped in an enclosing tag

it isn't till I re-add the surrounding, and rather pointless, divs that it compiles with out issue. I am running 0.11.1

Is this being addressed? It adds extra, and again - IMO - useless and pointless html to the page, that while harming nothing - looks messy and unprofessional. Maybe I am just doing something wrong, please enlighten me if I am.
Issue 1:
Hi friends-

I am trying to train a Roberta on a large corpus with a server with time limitation.

Is there any way to save the model like every 3000 steps to keep record of the training, and resume it later?

Really need it with the project…Thanks for helping.

Issue 2:
Feature request

I would like to propose that somewhere in the typical model pipeline, such as the data collators or the Trainer loop, instances of BatchEncoding should be converted to dicts to avoid breaking DataParallel models. Alternatively, I could add to the documentation to state that BatchEncodings should not be passed to PyTorch models. Maintainers, please let me know which solution you would prefer.

Motivation

I am currently trying to integrate the sentence-transformers library with the nice Trainer API. One of the peculiarities of sentence-transformers is that rather than unpacking the model parameters like so outputs = model(**inputs), the model expects a dict as input, which is internally unpacked. No big deal, I just override the prediction_step and remove the unpacking. However, this strangely failed when using a DataParallel setup. I realized this is because the following code in DataParallel could not handle BatchEncodings:

def scatter(inputs, target_gpus, dim=0):
r"""
Slices tensors into approximately equal chunks and
distributes them across given GPUs. Duplicates
references to objects that are not tensors.
"""
def scatter_map(obj):
if isinstance(obj, torch.Tensor):
return Scatter.apply(target_gpus, None, dim, obj)
if _is_namedtuple(obj):
return [type(obj)(*args) for args in zip(*map(scatter_map, obj))]
if isinstance(obj, tuple) and len(obj) > 0:
return list(zip(*map(scatter_map, obj)))
if isinstance(obj, list) and len(obj) > 0:
return [list(i) for i in zip(*map(scatter_map, obj))]
if isinstance(obj, dict) and len(obj) > 0:
return [type(obj)(i) for i in zip(*map(scatter_map, obj.items()))]
return [obj for targets in target_gpus]

DataParallel walks like a dict, talks like a dict, prints out exactly like a dict, but is not a subclass of dict, and therefore breaks this code. The tensors are not distributed across GPUs, and errors result. In my opinion, this violates the idea of duck typing, but I realize that technically it's PyTorch who's breaking duck typing here.

Normally, this isn't a problem since Trainer unpacks the model args (BatchEncoding) in its predict_step, but I can't imagine sentence-transformers is the only library that does not adopt this convention.

Your contribution

I would like to do one of three things:

Change DataCollators to output dicts or have Trainer check for BatchEncodings and convert them to dicts

Document that BatchEncodings should not be passed to models

Submit a PR to PyTorch that modifies this function to check for UserDicts like BatchEncodings
Issue 1:
Text:

这上面的夜的天空，奇怪而高，我生平没有见过这样奇怪而高的天空。他仿佛要离开人间而去，使人们仰面不再看见。然而现在却非常之蓝，闪闪地睒着几十个星星的眼，冷眼。他的口角上现出微笑，似乎自以为大有深意，而将繁霜洒在我的园里的野花草上。

It happen after update to 0.189.0, and it's normal in 0.188.0 .

I try disabled all community packages or star with --safe mode, still happen.

Update: Ubuntu 14.04

Issue 2:
sometimes a chinese-char become '���',(as we all know that in charset utf-8, a chinese-char need 3 byte )
Issue 1:
Sometimes the VS Code window just flashes in the task bar but is not stored to the foreground (e.g. when running code again from the command line). See electron/electron#2867

Issue 2:
VSCode Version: Version 1.3.0-insider (1.3.0-insider) (6bc81df)

OS Version: OS X 10.11.5

Steps to Reproduce:

Trying to launch a Node JS app give an error: Cannot launch debug target (spawn node ENOENT).

Using Homebrew installed Nodejs (path to node command is /usr/local/bin/node)

The bash login path, which contains /usr/local/bin, does not seem to be included when trying to run the app.

Launch.json contains:

{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/nodeapp/server.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"externalConsole": false,
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"sourceMaps": false,
"outDir": null,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
}
]
}
Issue 1:
Hey guys !

Since 0.13.3 version, my floating label for my DatePicker prevents me from opening it.

I looked quickly and I think its the value z-index: 1.

When I override with labelStyle z-index: 0, it's working.

Maybe it's for an other option or feature, I dont know :)

Thank you.

Issue 2:
In both the date-picker-dialog.js and the time-picker-dialog the component doesn't update its position when the size of the screen changes, This happens because the repositionOnUpdate property is set to false. See screenshot for example where the date-picker-dialog falls of the screen.
Issue 1:
… because nodejs/node#6456, I'd wager.

See also: #4990

TypeScript Version: 1.8.10

Code

tsc --help

Expected behavior:

See full help text, ending:

-w, --watch Watch input files.
@<file> Insert command line options and files from a file.

Actual behavior:

See partial help text, ending:

--init Initializes a TypeScript project and creates a tsconfig.json file.
--jsx KIND Specify JSX code generation: 'preserve' or 'reg

Issue 2:
I am on Mac OS X 10.11.5 with node-js v6.2.2 and typescript 1.8.10. Typescript compiler tsc truncates its help message:

$ tsc
Version 1.8.10
Syntax: tsc [options] [file ...]

Examples: tsc hello.ts
tsc --out file.js file.ts
tsc @args.txt

Options:
--allowJs Allow javascript files to be compiled.
--allowSyntheticDefaultImports Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
--allowUnreachableCode Do not report errors on unreachable code.
--allowUnusedLabels Do not report errors on unused labels.
-d, --declaration Generates corresponding '.d.ts' file.
--experimentalDecorators Enables experimental support for ES7 decorators.
--forceConsistentCasingInFileNames Disallow inconsistently-cased references to the same file.
-h, --help Print this message.
--init Initializes a TypeScript project and creates a tsconfig.json file.
--jsx KIND Specify JSX code generation: 'preserve' or 're$

Note that 'react' word got clipped and shell prompt is returned on the same line.
Issue 1:
For cases where a small amount of static data is desired. This could include

configuration for containers whose process is configured by files

small-medium amounts of static data, such as an archive of www data for a static site server

inputs to a process that has a small input to work ratio

Example use cases:

allow developers to specify data along side the pod it's used with, instead of needing to put it "somewhere else" (EBS / PD / RBD)

allow Kubernetes-native process coordinators to pass input data to worker pods

For developers, this would be facilitated by a kubectl plugin (#13606) in a similar way to what is proposed for easing secret creation (#4822). The plugin would handle archive creation and encoding for inclusion in the manifest.

The size of this data would be limited, as it would be living in etcd. I don't know what a reasonable limit is as I'm not familiar enough with etcd. I would assume a couple hundred KB at the most?

Issue 2:
This would map closely to Docker's native volumes support, and allow people to build and version pre-baked data as containers. Maybe read-only? Haven't thought that far...
Issue 1:
When Deno REPL get invoked via bash in Elementary OS (which is a ubuntu based distro), and then closed via Key binds Ctrl + c or Ctrl + d both work the same way closing it successfully.

But when one tries to close the REPL using close() function call, Deno blocks visually the shell.

The user cannot see anymore anything that is being typed at the terminal, until it's terminated.

I've added a GIF to illustrate:

I'm not sure if it's the intended behaviour of deno or a problem due to OS being used:

elementary OS 5.1.4 Hera Built on Ubuntu 18.04.4 LTS.

Issue 2:
When we do close(), it exits the REPL but somehow after then I am unable to type

in the terminal, though if I type and press enter it executes the commands but I

can't see the characters.

[sanket143@lisa test_plugin]$ deno
Deno 1.0.0
exit using ctrl+d or close()
> close()
undefined
> [sanket143@lisa test_plugin]$ Cargo.toml src tests
[sanket143@lisa test_plugin]$ ^C
[sanket143@lisa test_plugin]$
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: 2.7.0

Operating System version: win10

Java version: 1.8

Steps to reproduce this issue

meta-report address "zookeeper://192.168.1.10:2081,192.168.1.11:2081"

run dubbo project

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

在org.apache.dubbo.metadata.support.AbstractMetadataReport类中

// Start file save timer
String filename = reportServerURL.getParameter(Constants.FILE_KEY, System.getProperty("user.home") + "/.dubbo/dubbo-metadata-" + reportServerURL.getParameter(Constants.APPLICATION_KEY) + "-" + reportServerURL.getAddress() + ".cache");

其中reportServerURL.getAddress() 的内容是：“192.168.1.10:2081,192.168.1.11:2081”在win10下“:"是非法文件名字符，从而造成文件名错误。

WARN org.apache.dubbo.metadata.store.zookeeper.ZookeeperMetadataReport- [DUBBO] Failed to save service store file, cause: 文件名、目录名或卷标语法不正确。, dubbo version: 2.7.0, current host: 10.0.75.1
java.io.IOException: 文件名、目录名或卷标语法不正确。
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1012)
at org.apache.dubbo.metadata.support.AbstractMetadataReport.doSaveProperties(AbstractMetadataReport.java:134)
at org.apache.dubbo.metadata.support.AbstractMetadataReport.access$100(AbstractMetadataReport.java:56)
at org.apache.dubbo.metadata.support.AbstractMetadataReport$SaveProperties.run(AbstractMetadataReport.java:228)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

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.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
Electron version: 1.4.15

Operating system: Elementary OS (Ubuntu)

Expected behavior

NativeImage object copied on clipboard.

Actual behavior

remote.js:217 Uncaught Error: Could not call remote function ''. Check that the function signature is correct. Underlying error: Error processing argument at index 0, conversion failure from #<Object>
Error: Could not call remote function ''. Check that the function signature is correct. Underlying error: Error processing argument at index 0, conversion failure from #<Object>
at callFunction (/home/mike/dev/onion-packer/node_modules/electron/dist/resources/electron.asar/browser/rpc-server.js:235:11)
at EventEmitter.<anonymous> (/home/mike/dev/onion-packer/node_modules/electron/dist/resources/electron.asar/browser/rpc-server.js:342:5)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:201:7)
at WebContents.<anonymous> (/home/mike/dev/onion-packer/node_modules/electron/dist/resources/electron.asar/browser/api/web-contents.js:231:13)
at emitTwo (events.js:106:13)
at WebContents.emit (events.js:191:7)

How to reproduce

clipboard.writeImage(nativeImage.createFromPath(path));

Further Info

I noticed that it works fine on Windows. I tried the solutions suggested in #8151 without success.

Issue 2:
Electron version: 1.4.10

Operating system: MacOS

Expected behavior

Captured image from webview is copied into clipboard

Actual behavior

Crashes with error message

Uncaught TypeError: Error processing argument at index 0, conversion failure from [object Object]

How to reproduce

I am capturing a region of a webview object and then saving as an image (works pretty ok, although sometimes the image is empty), then I am trying to copy the NativeImage into clipboard, but it crashes

webview.capturePage(rect, image => {
const quality = 90
const filename = 'image.jpg'
const fullPath = path.join(__dirname, filename)
fs.writeFile(fullPath, image.toJPEG(quality), (err) => {
// TODO: retry save if the image is 0 size
clipboard.writeImage(image)
})
})

I can see the image on the disk, but the clipboard has never received it, always crashing
Issue 1:
May be in v4 created polymer component

http://www.polymer-project.org/

Issue 2:
Hi,

right now Bootstrap css is not applied to the Polymer custom elements because they are inside a Shadow DOM (see here).

Previously there was the applyAuthorStyles property to set but since they have removed it (see here) there are only some workarounds to solve the problem (here).

It is possible to adapt the bootstrap code to support the Shadow DOM as described here?
Issue 1:
Hi,

PropertyPath doesn't read or write object's properties that are handle with a __call method.

Propel has a delegation behavior, that delegate setter/getter with __call,

@bschussek , @fabpot what do you think about that ?

I can provide a PR.

cc @willdurand

Issue 2:
Symfony version(s) affected: 4.x.x

Description

The developer is not able to use the Symfony PHPUnit bridge and PHPUnit functions using Behat.

How to reproduce

If I'm using PHPUnit to test my services and other methods belongs to my project and moreover, I'm using Behat for testing my endpoints the PHPUnit functions are not available to be used into Behat context clasess.

Moreover, if I try to install PHPUnit to have those function available Symfony throw me an error:

Adding phpunit/phpunit as a dependency is discouraged in favor of Symfony's PHPUnit Bridge.

* Instead:
1. Remove it now: composer remove --dev phpunit/phpunit
2. Use Symfony's bridge: composer require --dev phpunit
Issue 1:
Pierre Bittner opened SPR-978* and commented

We need a configurer that resolves placeholder as application's environment entries.

Our application is deployed on different environments (development, integration, production) and even in production we have the same application deployed many times.

We must build different web archives just to change few properties (mail server, reporting server, etc.).

In a J2EE application, such properties should be configured in application's environment entries (JNDI).

I'll attached a proposal for an EnvironmentEntryPropertyPlaceholderConfigurer.

See this thread for more infos:

http://forum.springframework.org/viewtopic.php?t=5196

Attachments:

EnvironmentEntryPropertyPlaceholderConfigurer.java (5.72 kB)

EnvironmentEntryPropertyPlaceholderConfigurerTests.java (4.22 kB)

Issue Links:

#7716 JNDI Property Placeholder Configurer ("duplicates")

Issue 2:
Arthur opened SPR-3030 and commented

When creating beans such as a JNDITemplate it is often desireable to have a container supply the provider URL and other configuration options via Environment entries. I find it is generally not a great idea swap applicationContext files using a build script because it adds another layer of complexitity to the build process. Therefore I prefer having different deployment descriptors on different test/production servers with different Environment settings. The real benefit comes with the ability for certain containers to update these Environment entries during runtime such as if a provider URL becomes inaccessible. I propose a JNDI Property Placehold Configurer which will do java:comp/env/ lookups to fill in the appropriate property values.

Example usage would be as follows:

<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">

<constructor-arg index="0">

<props>

<prop key="java.naming.factory.initial">${java.naming.factory.initial}</prop>

<prop key="java.naming.provider.url">${java.naming.provider.url}</prop>

<prop key="java.naming.factory.url.pkgs">${java.naming.factory.url.pkgs}</prop>

</props>

</constructor-arg>

</bean>

I will attach a working version I have been using for several months now.

Attachments:

JndiAwarePropertyPlaceholderConfigurer.zip (2.82 kB)

JndiPropertiesFactoryBean.java (4.47 kB)

JndiPropertyPlaceholderConfigurer.java (7.98 kB)

Issue Links:

#5690 Configurer that resolves placeholders as environment entries ("is duplicated by")

#12693 Register JndiPropertySource by default in StandardPortletEnvironment

10 votes, 6 watchers
Issue 1:
Bug report

Bug summary

I tried to reproduce this figure, but when I plotted using lines and dots, the dots are in the correct place, but the lines are slightly out of place, making things asymmetrical.

Code for reproduction

from scipy.special import iv
import numpy as np

def discrete_gaussian_kernel(n, t):
T = np.exp(-t) * iv(n, t)
return T

def sampled_gaussian_kernel(n, t):
G = 1/np.sqrt(2*np.pi*t) * np.exp(-n**2/(2*t))
return G

if __name__ == '__main__':
import matplotlib.pyplot as plt

plt.figure(figsize=(4, 5))
for t in (0.5, 1, 2, 4):
N = 6
n = np.arange(-N, N+1)
p = plt.plot(n, discrete_gaussian_kernel(n, t), '.-', label=t)[0]
plt.plot(n, sampled_gaussian_kernel(n, t), ':', color=p.get_color())
plt.grid(True)
plt.ylim(0, 0.7)
plt.xlim(-6, 6)
plt.legend()

Actual outcome

The dots look offset on the legend:

But I guess it's actually the lines that are offset and asymmetrical:

Expected outcome

If I save as SVG and open in Firefox, it looks fine:

Matplotlib version

Operating System: Windows 7 Pro 64-bit

Matplotlib Version: 2.0.2

Python Version: 3.6.0

Jupyter Version (if applicable): IPython 5.1.0

This is inside Spyder 3.1.4 installed from default Anaconda channel, with graphics backend set to "automatic":

Issue 2:
mpl 1.5.3/2.0b4/master, no matplotlibrc

_xs = np.linspace(0, 30, 201); plt.plot(_xs, scipy.stats.lognorm.pdf(_xs / 14, .472) / 14, ".")

Note the slight inaccuracy in positioning of the markers at the positioning of the markers at the positions marked with the red circles, resulting in a "step-like" behavior (you may need to open the image in a larger viewer to notice it).

The data itself does not present this behavior, as can be checked just by zooming in these regions.
Issue 1:
For example without even having to analyze user Javascript classes, basic intellisense is missing:

I type test., nothing happens so I type Ctrl-Space and after 1-2 seconds(!) an empty menu comes up.

Function arguments aren't suggested:

My jsconfig.json:

{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
},
"exclude": [
"node_modules"
]
}

Issue 2:
See GIF again:

Literally none of the editor features work.

My jsconfig.json:

{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
},
"exclude": [
"node_modules"
]
}