text:
spaceKLIP CI testing broken by some git clone hook thing

All CI tests for spaceKLIP are apparently failing, due to error when cloning pyKLIP. Like this:
Collecting pyklip@ git+https://bitbucket.org/pyKLIP/pyklip.git@jwst (from -r requirements.txt (line 12))
  Cloning https://bitbucket.org/pyKLIP/pyklip.git (to revision jwst) to /tmp/pip-install-
  Running command git clone --filter=blob:none --quiet https://bitbucket.org/pyKLIP/pyklip.git /tmp/pip-install-
  warning: filtering not recognized by server, ignoring
  warning: filtering not recognized by server, ignoring
  fatal: active `post-checkout` hook found during `git clone`:
        /tmp/pip-install-cp5at_9t/pyklip_b58c0333991a47c882d2193ee7dbb39d/.git/hooks/post-checkout
  For security reasons, this is disallowed by default.
  If this is intentional and the hook should actually be run, please
  run the command again with `GIT_CLONE_PROTECTION_ACTIVE=false`
  warning: Clone succeeded, but checkout failed.
  You can inspect what was checked out with 'git status'
  and retry with 'git restore --source=HEAD :/'

  error: subprocess-exited-with-error

Paging @semaphoreP in case you might understand this better than I do?

oh, it's related to an upstream bug and security fix in git itself, apparently.
https://github.com/git-lfs/git-lfs/issues/5749

I guess we workaround by setting GIT_CLONE_PROTECTION_ACTIVE=false in the CI setup

welp... hopefully that gets fixed shortly.  hopefully in the future we can use the pip version of pyklip once all these changes get merged.

CI tests are working now, I think this has been resolved?

Yes confirmed, this was fixed upstream last week or so.

authors: AarynnCarter mperrin semaphoreP

repo: kammerje/spaceKLIP


text:
下载视频时进度条和右侧框不显示数据 下载完毕合并时才显示数据

下载时候：

合并时候：

下载视频时进度条和右侧框不显示数据
下载完毕合并时进度条和右边才显示数据
请问是软件bug吗？

感谢您的回报
GUI在背景执行yt-dlp、ffmpeg、aria2时，当这些工具有印出进度时，我才能取得这些资讯。
如果使用命令列下载时没有出现进度资讯时，GUI也不会有进度资讯，这是正常的。
但如果命令列下载有出现进度资讯，而GUI没有显示就是我的程序有bug。
但无论如何我会再注意看看是否能更加流畅正常。

感谢您的回报
GUI在背景执行yt-dlp、ffmpeg、aria2时，当这些工具有印出进度时，我才能取得这些资讯。
如果使用命令列下载时没有出现进度资讯时，GUI也不会有进度资讯，这是正常的。
但如果命令列下载有出现进度资讯，而GUI没有显示就是我的程序有bug。
但无论如何我会再注意看看是否能更加流畅正常。

Thank you

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
feat: Add Steps Component

Hi @karishmashuklaa ,
Raising PR for Drawer Component.
https://github.com/karishmashuklaa/chic-ui/issues/120
Steps Component.
Stories for Component.
Test cases for Component.
Add Component export in index file.

@iamvishal345 This is so good. Thank you!

source: gharchive/pull-request

repo: karishmashuklaa/chic-ui


text:
Not able to console.log returned JSON object

Using version 1.4.0, using the following code to return JSON object of a Spotify URL:
await getPreview(this.post.URL).then((result) => {   console.log(result.image); });
Getting this error in console when trying to log result.image/any other property of the object. Also when trying to print the object itself: https://imgur.com/a/20cfpEz
this.post.URL is definitely a valid Spotify URL, it is parsed previously in the function.

The issue here is CORS. The spotify embed url is not sending an Access-Control-Allow-Origin header that allows you to make requests from a web app. The MDN article on CORS is decent, if not straightforward.
I'm kind of embarrased I never noticed this, as I only use the library in react-native and node contexts where CORS is not an issue, others seem to be using it in discord bots etc, which also run in node I assume. I wonder if its always been the case or spotify added this recently?
I guess this whole approach simply doesn't work in the browser, actually. I don't really see a good way to circumvent that on the library side without using another approach alltogether. I will try it some more and add a warning to the readme.
For you there is a way to circumvent this, though it may not be worth it (or you solved it with another method by now): Use some kind of proxy between the browser and spotify. There are generic ones, that simply forward any request and add the right allow headers to the response. You can find self hosted and hosted options if you google for cors-proxy. Or you can set up something like a serverless function (if you have that option in your app) that actually uses this library to make the request and then use that from your app.

That's sort of what I suspected to be the problem. If I get the change I will go back and try with CORS disabled in the browser.
Thanks for your detailed reply.

authors: harrishutchison karlsander

repo: karlsander/spotify-url-info


text:
Ensure proper path format

Please make sure that your commit messages follow our convention!
path.join will take care of unneccessary delimiters, that may occur if the given pathes or if for instance
options.basePath = some/path

and
key = another/path

produces "some/path/another/path" instead of "some/pathanother/path"

I signed it!

Thanks :octocat:

authors: antarasi dignifiedquire

repo: karma-runner/grunt-karma

license: mit

license_source: bigquery


text:
1.0.2 release request

Please create a new release that includes #127 fix

Done

repo: karma-runner/karma-phantomjs-launcher


text:
file-list.js exception

When I go to run tests, I get the following error:
/Users/jnoring/hirevue/licode/erizo_controller/erizoClient/node_modules/karma/lib/file-list.js:199
  .cancellable()
   ^
TypeError: Object [object Promise] has no method 'cancellable'
    at List._refresh (/Users/jnoring/hirevue/licode/erizo_controller/erizoClient/node_modules/karma/lib/file-list.js:199:4)
    at List.refresh (/Users/jnoring/hirevue/licode/erizo_controller/erizoClient/node_modules/karma/lib/file-list.js:252:27)
    at Server._start (/Users/jnoring/hirevue/licode/erizo_controller/erizoClient/node_modules/karma/lib/server.js:178:12)
    at invoke (/Users/jnoring/hirevue/licode/erizo_controller/erizoClient/node_modules/karma/node_modules/di/lib/injector.js:75:15)
    at Server.start (/Users/jnoring/hirevue/licode/erizo_controller/erizoClient/node_modules/karma/lib/server.js:102:18)
    at Object.exports.run (/Users/jnoring/hirevue/licode/erizo_controller/erizoClient/node_modules/karma/lib/cli.js:243:26)
    at Object.<anonymous> (/Users/jnoring/hirevue/licode/erizo_controller/erizoClient/node_modules/karma/bin/karma:3:23)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

I think the problem is package.json specifies a version of bluebird (3.3.5) that no longer supports this, but the lib file in the npm package still contains file-list.js that includes a call to .cancellable().  I see on master that has been removed, but the npm package for 0.13.22 still contains it.
Enviroment Details
Karma version: 0.13.22

Nevermind--I think it's some weird artifact of install on OSX.  Very strange though.

Never mix node_modules with once that rely on newer ones. Our build was broken, because we also added 3.x bluebird to package.json and had "karma": "0.13.19" in place too.
But npm list bluebird showed that karma relied on 2.10.x and seems it did not access that version, but the newer one.

authors: jnoring maxmarkus

repo: karma-runner/karma


text:
Add note for mcs document: kubernetes version and pod/service CIDRs

Signed-off-by: changzhen changzhen5@huawei.com
What type of PR is this?
/kind documentation
What this PR does / why we need it:
As talk in https://github.com/karmada-io/karmada/issues/2460#issuecomment-1238836360 and https://github.com/karmada-io/karmada/issues/2657, we need to add some notes to help users better experience the MCS feature.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
/cc @631068264

@631068264 would you like to take a look it?

@RainbowMango @XiShanYongYe-Chang
我觉得应该把这些提示提前一点说明，例如安装karmada之前就应该提示，因为这涉及到CIDR规划和集群版本，后期修改升级的操作会给运维带来非常大麻烦。
如果等到用户翻到MCS的文档或者突然想用MCI的时候才知道，就有点滞后。除非karmada有方便没有副作用的补救措施。
根据 https://github.com/karmada-io/karmada/issues/2460#issuecomment-1237811975 核心问题是MCI使用EndpointSlice，只不过MCS依赖MCI，也就是说MCI部分就已经有问题。

Hi @631068264, 这个修改可以继续推进么？

Member

可以

Member

可以

好的，多谢~

repo: karmada-io/website


text:
#1 Releasesへのリンクを修正

README にある Releases へのリンクが 別リポジトリのものになっていたので、正しいリンクに修正しました。

#1 の修正です。

repo: karoterra/AupRename


text:
Homework/Assignment/Assessment 6

Metric
Value

alert_status
:white_check_mark: OK

bugs
2

code_smells
2

reliability_rating
D (at least 1 Critical Bug)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


text:
Autosaving form content

Currently, if a user writes a post, the message will be lost if the page is reloaded.
It would be nice to find a way of saving the post on-the-go (similarly to Google Forms).
However, that would probably require at least temporary persistency so that nothing is lost even if the app is restarted.

It seems that if the app is temporarily shut down and the user stays on the page, the form content is preserved.

repo: kasnerz/letax


text:
Benchmark, and perhaps adopt, serde_bytes on all sturct fields of type Vec<u8>, or &'a [u8].

https://docs.rs/serde_bytes/latest/serde_bytes/
The above crate promises faster serde Serialization / Deserialization on byte vectors and byte slices, as it claims standard serde is not optimized for variable length sequences already in byte format.
Some examples in our current codebase where this could be included are the fields script inconsensus_core::tx::ScriptPublicKey, paylod in consensus_core::tx::Transaction, signature_script in consensus_core::tx::TransactionInput.

As per the original issue; it is preferable if the auth of a connection can be handled on a per call / notfification basis.

repo: kaspanet/rusty-kaspa

license: ISC


text:
Kata Containers 1.11.0-alpha1

scripts: set a default path to the yq binary
AArch64: Build rust image on aarch64
image-builder: Add NSDAX_BIN for passing in compiled nsdax tool
rootfs: Don't overwrite /sbin/init if it already exists
tests: Improve running test_images.sh locally

1c063af scripts: set a default path to the yq binary
67343a1 rust-agent: Separate the build up of rust-agent and go-agent
a390a36 rootfs: remove RUST_SRC_PATH
41aaa36 ubuntu/debian: create aarch64-specific Dockerfile.in
9cba8c4 musl: install musl on aarch64
87a5d5c rootfs: Don't overwrite /sbin/init if it already exists
4004bd8 image-builder: Add NSDAX_BIN for passing in compiled nsdax tool
134175b tests: Document the changed KATA_DEV_MODE behavior
0f4eac4 tests: Skip initrd/image launch if KATA_DEV_MODE
762ec28 tests: Drop kata-runtime env validation if KATA_DEV_MODE is set
6f17b9c tests: Skip set_runtime if KATA_DEV_MODE is set
17a8fb1 tests: Skip all kata-manager usage if KATA_DEV_MODE is set
e787bb0 tests: Define KATA_DEV_MODE
cef2591 tests: Rework dracut docker bind mounts
f3ab6d2 tests: Don't run commands with chronic if DEBUG is set
7a8e816 tests: Specify DRACUT_OVERLAY_DIR
7dd99c0 tests: Add project_dir helper variable
1ae3922 tests: Have DEBUG=1 set bash xtrace
555ddf3 tests: Remove unused USE_DOCKER export
0e6a12c tests: Pass DOCKER_RUNTIME to osbuilder scripts
e8624d8 tests: Rename docker_build_runtime -> DOCKER_RUNTIME
cd46d09 tests: Remove hardcoded 'runc' reference
c574ec0 tests: Remove dead unset images_dir check
44f2931 tests: Remove unused test_func_prefix

/test

authors: bergwolf jodh-intel

repo: kata-containers/osbuilder


text:
clh: Remove dead-code on maxClhVcpus

Our CLH driver in kata defines its own constant variable 'maxClhVcpus'
which can conflict with the maximum number of vCPUs specified from the
kata configuration file 'clh.config.DefaultMaxVCPUs'. As the value from
kata configuration file is preferred anyway and the code on 'maxClhVcpus'
is not being used. We'd better remove it for better readability and
avoiding further confusions.
Fixes: #2528
Signed-off-by: Bo Chen chen.bo@intel.com

/test-clh

/test-ubuntu

/test-clh

/test-ubuntu

I guess you are tracking the CI fails @likebreath ? :-)
18:18:53 --- FAIL: TestClhCreateSandbox (0.00s)
18:18:53     assertions.go:239:

	Error Trace:	clh_test.go:231
18:18:53
	Error:      	Not equal:
18:18:53
	            	expected: virtcontainers.HypervisorConfig{NumVCPUs:0x1, DefaultMaxVCPUs:0x0, MemorySize:0x800, DefaultBridges:0x1, Msize9p:0x0, MemSlots:0x0, MemOffset:0x0, VirtioFSCacheSize:0x0, KernelParams:[]virtcontainers.Param(nil), HypervisorParams:[]virtcontainers.Param(nil), KernelPath:"/tmp/vc-tmp-108845526/bundle/kernel", ImagePath:"/tmp/vc-tmp-108845526/bundle/image", InitrdPath:"", FirmwarePath:"", MachineAccelerators:"", HypervisorPath:"/tmp/vc-tmp-108845526/bundle/hypervisor", HypervisorCtlPath:"", JailerPath:"", BlockDeviceDriver:"virtio-blk", HypervisorMachineType:"", MemoryPath:"", DevicesStatePath:"", EntropySource:"", SharedFS:"virtio-fs", VirtioFSDaemon:"/tmp/vc-tmp-108845526/bundle/virtiofsd", VirtioFSCache:"always", VirtioFSExtraArgs:[]string(nil), FileBackedMemRootDir:"", customAssets:map[types.AssetType]*types.Asset(nil), BlockDeviceCacheSet:false, BlockDeviceCacheDirect:false, BlockDeviceCacheNoflush:false, DisableBlockDeviceUse:false, EnableIOThreads:false, Debug:false, MemPrealloc:false, HugePages:false, VirtioMem:false, Realtime:false, Mlock:false, DisableNestingChecks:false, UseVSock:false, DisableImageNvdimm:false, HotplugVFIOOnRootBus:false, PCIeRootPort:0x0, BootToBeTemplate:false, BootFromTemplate:false, DisableVhostNet:false, GuestHookPath:"", VMid:""}
18:18:53
	            	actual: virtcontainers.HypervisorConfig{NumVCPUs:0x1, DefaultMaxVCPUs:0xf0, MemorySize:0x800, DefaultBridges:0x1, Msize9p:0x0, MemSlots:0x0, MemOffset:0x0, VirtioFSCacheSize:0x0, KernelParams:[]virtcontainers.Param(nil), HypervisorParams:[]virtcontainers.Param(nil), KernelPath:"/tmp/vc-tmp-108845526/bundle/kernel", ImagePath:"/tmp/vc-tmp-108845526/bundle/image", InitrdPath:"", FirmwarePath:"", MachineAccelerators:"", HypervisorPath:"/tmp/vc-tmp-108845526/bundle/hypervisor", HypervisorCtlPath:"", JailerPath:"", BlockDeviceDriver:"virtio-blk", HypervisorMachineType:"", MemoryPath:"", DevicesStatePath:"", EntropySource:"", SharedFS:"virtio-fs", VirtioFSDaemon:"/tmp/vc-tmp-108845526/bundle/virtiofsd", VirtioFSCache:"always", VirtioFSExtraArgs:[]string(nil), FileBackedMemRootDir:"", customAssets:map[types.AssetType]*types.Asset(nil), BlockDeviceCacheSet:false, BlockDeviceCacheDirect:false, BlockDeviceCacheNoflush:false, DisableBlockDeviceUse:false, EnableIOThreads:false, Debug:false, MemPrealloc:false, HugePages:false, VirtioMem:false, Realtime:false, Mlock:false, DisableNestingChecks:false, UseVSock:false, DisableImageNvdimm:false, HotplugVFIOOnRootBus:false, PCIeRootPort:0x0, BootToBeTemplate:false, BootFromTemplate:false, DisableVhostNet:false, GuestHookPath:"", VMid:""}

You should be able to run the CI tests locally with a small amount of effort, which might help with the cycle/test time (and CI resource consumption).

@grahamwhaley Thanks for pinpointing the errors and the suggestions. I thought it was merely a deadcode, and only do a test-on-compile locally. I will run the similar test locally to debug on it. :)

/test-clh

/test-ubuntu

The CI seems to be happy. Would you please take a look again? @grahamwhaley  @jcvenegas

authors: grahamwhaley likebreath

repo: kata-containers/runtime


text:
virtcontainers : fix shared dir resource remaining

Before this patch shared dir will reamin when sandox
has already removed.
Do clean up shared dirs after all mounts are umounted
Fix: #291
Signed-off-by: Haomin caihaomin@huawei.com

Need to find a better way to remove sandbox work dirs and solve the case that shared dirs are mounted to different destinations. So do-not-merge by now

@amshinde Good suggestions. Working on it and maybe it's good for #351

PSS Measurement:
Qemu: 159779 KB
Proxy: 8730 KB
Shim: 10810 KB
Memory inside container:
Total Memory: 2045972 KB
Free Memory:  1996996 KB

@sboeuf @amshinde    get cleanupSandbox done.
Maybe need more unit test as @jodh-intel suggested. Will pull those later.

thanks @jshachm!
lgtm

@sboeuf all changes done~

Thanks I'll take a look !

@jshachm LGTM
Could you please repush to retrigger the CI now that we should not have glitches anymore.

The test failures I think are https://github.com/kata-containers/tests/issues/427 (see https://github.com/kata-containers/runtime/pull/385#issuecomment-397922893).

@grahamwhaley thx for the remind of commit msg. I will update it and make it more clear once I get to my workstation next morning... And for CI thing, with the help of @chavafg I finally get my button back~
@jodh-intel As you mentioned , CI will not be happy until we change the scripts of ping CNI?

@jshachm if you rebase your PR on top of master (make sure you fetch), you should get the CI test passing since the CNI issue got fixed.

@jshachm Yes, CI has been fixed now. Please rebase on top of master.

authors: amshinde jodh-intel jshachm katabuilder sboeuf


text:
implements a pretty printer

This replace the current Kataw printer and implements a pretty printer like Prettier that prints Kataw AST and types.
TODO

[ ] Finish style formatting

[ ] Finish options

[ ] Implements same comment attach algorithm as in current printer

[ ] performance

@aladdin-add Can you play around with this and let me know where I need to do some improvements?

@aladdin-add Can you play around with this and let me know where I need to do some improvements? It's important because everything need to be "correct" before I start to optimize it. Fixing performance can only be done if I use bitwise masks.

can you update the docs for the available options?  so, I can make a comparison, and add a section like "migrate from prettier".

@aladdin-add Don't expect the format to be 1:1 to Prettier, because this isn't Prettier :)  The style format is similar, but I improved the readability a few places.  For example how conditional expression are printed are different and binaries.
Prettier also got some nasty bugs where long lines didn't break - for example in obj literal.  I solved this in Kataw and added an alternative and more readable style format for that.

I will add the options in the readme in the printer folder.

@aladdin-add I updated the options info in the readme and added a few new options known from ESLint

@aladdin-add I implemented the 'computedPropertySpacing' option from ESLint and updated the readme. I think it's enough options now?

@aladdin-add can you try to style union types?

@aladdin-add I'm closing this. I can't see any reason why I should spend more time finish this. If there are any interest for such a printer I can re-open. For now Kataw has a printer.

@aladdin-add this pr suddenly got conflicts and I just merge to master now. There are no point to have 2 printers.

authors: KFlash aladdin-add

repo: kataw/kataw


text:
Create head of website

Create a new branch named feature/head (based on develop branch).
Create styles.css file in the root directory
Connect styles by adding the next line inside the  section.
When done ― commit your changes, push the branch to the remote, create a new pull request and merge into develop

done

repo: katyaandrushko/homepage


text:
Can't read in train.csv

Hi,
I'm trying to test out fast-bert, and when I setup a train.csv file as follows:
index	text	label
0	test	neg
2	test2	pos
tab seperated test file, I get the following error:
Traceback (most recent call last):
File "/home/w3pt/.local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 4729, in get_value
return libindex.get_value_box(s, key)
File "pandas/_libs/index.pyx", line 51, in pandas._libs.index.get_value_box
File "pandas/_libs/index.pyx", line 47, in pandas._libs.index.get_value_at
File "pandas/_libs/util.pxd", line 98, in pandas._libs.util.get_value_at
File "pandas/_libs/util.pxd", line 83, in pandas._libs.util.validate_indexer
TypeError: 'str' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bert.py", line 17, in
model_type='bert')
File "/home/w3pt/.local/lib/python3.7/site-packages/fast_bert/data_cls.py", line 332, in init
train_file, text_col=text_col, label_col=label_col)
File "/home/w3pt/.local/lib/python3.7/site-packages/fast_bert/data_cls.py", line 222, in get_train_examples
return self._create_examples(data_df, "train", text_col=text_col, label_col=label_col)
File "/home/w3pt/.local/lib/python3.7/site-packages/fast_bert/data_cls.py", line 257, in _create_examples
return list(df.apply(lambda row: InputExample(guid=row.index, text_a=row[text_col], label=str(row[label_col])), axis=1))
File "/home/w3pt/.local/lib/python3.7/site-packages/pandas/core/frame.py", line 6906, in apply
return op.get_result()
File "/home/w3pt/.local/lib/python3.7/site-packages/pandas/core/apply.py", line 186, in get_result
return self.apply_standard()
File "/home/w3pt/.local/lib/python3.7/site-packages/pandas/core/apply.py", line 292, in apply_standard
self.apply_series_generator()
File "/home/w3pt/.local/lib/python3.7/site-packages/pandas/core/apply.py", line 321, in apply_series_generator
results[i] = self.f(v)
File "/home/w3pt/.local/lib/python3.7/site-packages/fast_bert/data_cls.py", line 257, in
return list(df.apply(lambda row: InputExample(guid=row.index, text_a=row[text_col], label=str(row[label_col])), axis=1))
File "/home/w3pt/.local/lib/python3.7/site-packages/pandas/core/series.py", line 1064, in getitem
result = self.index.get_value(self, key)
File "/home/w3pt/.local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 4737, in get_value
raise e1
File "/home/w3pt/.local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 4723, in get_value
return self._engine.get_value(s, k, tz=getattr(series.dtype, "tz", None))
File "pandas/_libs/index.pyx", line 80, in pandas._libs.index.IndexEngine.get_value
File "pandas/_libs/index.pyx", line 88, in pandas._libs.index.IndexEngine.get_value
File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: ('text', 'occurred at index 0')
Code:
from fast_bert.data_cls import BertDataBunch
from pathlib import Path
DATA_PATH = Path('./')
LABEL_PATH = Path('./')
databunch = BertDataBunch(DATA_PATH, LABEL_PATH,
tokenizer='bert-base-uncased',
train_file='train.csv',
val_file='val.csv',
label_file='labels.csv',
text_col='text',
label_col='label',
batch_size_per_gpu=16,
max_seq_length=512,
multi_gpu=True,
multi_label=False,
Am I doing something wrong?

At present the file has to be comma separated. Tab separated is not supported. Maybe in the near future.

repo: kaushaltrivedi/fast-bert


text:
Update to accept genetic code 25

Update the list of genetic codes to match NCBI. Also, recognize genetic code 25 as bacterial. It is recognized by both Prokka and Prodigal. It needs to be updated here so results can be saved.
@scanon, @sychan

Part of an update to Prodigal so RAST can better support MAGs. Prodigal can be more flexible than the current version allows.


text:
Search in ease-dev

The temp search subpage should now behave... well enough for now. Still needs to be readjusted, but links should all work.

Any objections if I merge this to get it up on narrative-dev?

repo: kbase/ui-common


text:
🛑 Jellyfin is down

In df0992a, Jellyfin (https://jellyfin.byungchan.kim) was down:

HTTP code: 502
Response time: 2521 ms

Resolved: Jellyfin is back up in dc8baa6 after 58 minutes.


text:
Migrate from AppVeyor to Azure Pipelines

This will give us more parallel workers

👍 +1

authors: DominicBoettger kblok

repo: kblok/puppeteer-sharp


text:
#1372 fix ssl when navigate to site with cert expiring after 2038

There aren't any 'working' SSL tests in the test suite, but I have tested a built version with my app and can confirm this fixes the issue with certs expiring > 2038

Thanks!

No problem, I don't have permission to merge this, please can you merge when convenient? Thanks!

@pete-reay-waters this is is on v2.0.1 now.

@kblok thanks very much for getting it merged and into a new version!

authors: kblok pete-reay-waters


text:
Mistaken Files Creation

files must have been accidentally initiated causing the error during test execution

Reopened until it is merged into primary

repo: kbuffardi/CodeWitUs


text:
chore: bump kcl lib to 0.10.2

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

chore: bump kcl lib to 0.10.2

Pull Request Test Coverage Report for Build 11320366965
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 37.075%

Totals

Change from base Build 11212332778:
0.2%

Covered Lines:
4901

Relevant Lines:
13219

💛  - Coveralls

Pull Request Test Coverage Report for Build 11320366965
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 37.075%

Totals

Change from base Build 11212332778:
0.2%

Covered Lines:
4901

Relevant Lines:
13219

💛  - Coveralls

authors: Peefy coveralls

repo: kcl-lang/kcl-go


text:
🛑 营销平台API is down

In 6698a2d, 营销平台API (https://api.dgshare.com) was down:

HTTP code: 502
Response time: 1559 ms

Resolved: 上海购物API is back up in f7247e1.

repo: kdcer/upptime


text:
Falsehoods About Plain Text

I believe this would fit well in the Internationalization section. I'm the author, but this is my first and only attempt at promoting it. It doesn't seem to have gotten much attention so far.
https://jeremyhussell.blogspot.com/2017/11/falsehoods-programmers-believe-about.html#main
Falsehoods about Plain Text - Writing systems around the world and why it's surprising Unicode works as well as it does.

"Plain text can't cut it and reasons why Unicode works as well as it does."
I think removing "it's surprising" has substantially changed the meaning.

I think removing "it's surprising" has substantially changed the meaning.

Fixed in https://github.com/kdeldycke/awesome-falsehood/commit/b206722f1a75c09c8922f775d5cc61ede098c258.

authors: Hussell kdeldycke

repo: kdeldycke/awesome-falsehood


text:
Added a link about GCs

Added a link to Paul Bone's article about misconceptions developers have about garbage collection.
Preliminary checks

[x] I have read the Code of Conduct
[x] I applied all rules from the Contributing guide
[x] I have checked there is not other Issues or Pull Requests covering the same topic to open

Summary

Explain the motivation for making this change. What does does this bring to the table?

That's a great list of falsehoods, with each item clearly explained. Let's merge! 😃

authors: kdeldycke mhoye


text:
feat: add  support

The inverse of <!-- panvimdoc-ignore-start/end -->, where the content is only visible in the vimdoc output. Because we have no control on the mardown renderer, all content must be embedded in the comment, compared to using a start and end marker.
The test is written expecting #47 to be merged.

That is a neat feature! Can we change the name to panvimdoc-include-comment-content?

I was thinking of making another PR to augment the existing "include" function, since as written, the {.include} block ends up in the markdown, eg as:
other-doc.md

Where as if we used a comment it would be invisible, you could have something like  <!-- panvimdoc-include other-doc.md arg arg -->.
Obviously I have not written that yet, or looked at how complex it would be to do -- though I guess it should be the same as the current include, just matching on another block type?
Would that influence what name you'd want to give this and the other theoretical PR?
Happy to make whatever change you prefer of course, panvimdoc-include-comment-content and panvimdoc-include-file-content?

Interesting PR idea! That PR would be welcome. I believe you can reuse some of the machinery for the existing include functionality.

panvimdoc-include-comment-content and panvimdoc-include-file-content

These seem good to me. I'm open to suggestions as well!

I think I like panvimdoc-include-comment because it is shorter. I made the change corresponding to that and merged it! Thanks for the PR!

authors: kdheepak rktjmp

repo: kdheepak/panvimdoc


text:
Alternative Encoding for Bytes to QR Digits: 7 bytes into 17 digits

Thanks for your excellent work!
I just wanted to raise that there is an alternative encoding for QR codes that has an even better efficiency for encoding data bytes into digits for use in QR while also having a simpler implementation.
In the Fido 2.2 draft, there are [QR assisted transactions](https://fidoalliance.org/specs/fido-v2.2-rd-20230321/fido-client-to-authenticator-protocol-v2.2-rd-20230321.html#hybrid-qr-initiated:~:text=15 digits%2C respectively.-,func digitEncode,-(d%20%5B%5D ) that also use QR codes to transfer binary data (in their case cbor) and have about the same requirements as here:

transfer a valid URL (in their case with the FIDO: scheme, so that a phone opens this in the right app.)
as tight packing as possible

They use pack 7 bytes (=56bits) and pack them into 17 digits.
So this compares as

encoding
payload bits
encoded digits
encoded bits
overhead

binary
8
8
8
0%

kernel13b4d
39 (3*13)
12
12*3.333=40
2.5%

fido56b17d
168 (3*56)
51
51*3.333=170
1.2%

For Version 40 codes, this is about 35 bytes more compressed payload.
Since this takes whole multiples of 7 bytes, it also makes the implementation easier, as there is no sub-byte shifting necessary.
Adam Langley describes his reasoning on this blog post: https://www.imperialviolet.org/2021/08/26/qrencoding.html
The sample code from the specification in Go is available here: https://fidoalliance.org/specs/fido-v2.2-rd-20230321/fido-client-to-authenticator-protocol-v2.2-rd-20230321.html#hybrid-qr-initiated:~:text=15 digits%2C respectively.-,func digitEncode,-(d%20%5B%5D
I condensed that encoding code in Python for readability (the referenced Go code is probably more efficient but imho less readable):
def fido56b17d_encode(input: IOBase|bytes|bytearray) -> str:
    if isinstance(input, (bytes, bytearray)):
        input = BytesIO(input)
    output = StringIO()

    while chunk := input.read(7):
        q, r = divmod(len(chunk) * 17, 7 )
        num_digits = q + 1*(r>0)
        digits, = struct.unpack("<Q",chunk.ljust(8,b'\0'))
        output.write(str(digits).zfill(num_digits))

    return output.getvalue()

and the decoding code, again in Python:
def fido56b17d_decode(input: TextIOBase|str) -> bytes:
    if isinstance(input, (str)):
        input = StringIO(input)
    output = BytesIO()

    while chunk:=input.read(17):
        byte_length = len(chunk) * 7 // 17
        output.write(struct.pack("<Q", int(chunk,10))[:byte_length])

    return output.getvalue()

I'm not sure if this is still any help at this point in time, or if this ship has sailed already, though.
QR Encoding efficiency for the URL in front of the payload
If the submitted URL before the digit encoded payload is uppercase (more precisely, only using characters from this set 01234566789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:), it could use alphanumeric encoding which can be represented in 11 bits per 2 characters (so ~70% of binary encoding).
So that would be
HTTPS://KDJ0C.GITHUB.IO/PANIC-REPORT/A/x86-64/V/6.11.0-RC5-NEXT-20240830/ZL/

instead of
https://kdj0c.github.io/panic_report/?a=x86_64&v=6.11.0-rc5-next-20240830&zl=

This case would give you another 52 bytes for the payload. The downside is that this would not have query params, but the payload encoded in the path, which makes the browser app side less flexible (e.g. use a single page app or render the stuff on the server)
As Adam Langley's writes on his blog:

DNS names are case insensitive and “an implementation should accept uppercase letters” for the scheme says RFC 3986. Maybe it just looks odd and that's not worth the bits, though?

Thanks a lot for this very detailed information.
Before doing this, I spent some time looking for some existing solution to this problem, but to my surprise I didn't find any, that's why I came up with my own solution.
Also the QR panic code is currently more a demo, I don't think it's used in production, so it's probably still time to change the encoding. I will see if I can do that, it's better to converge on the same solution. The encoder is in rust, and the decoder in javascript, but I should be able to do it from the python and go sample.
Regarding the main url, I considered changing the encoding for the parts without '&' and '=' but you lose a few bytes each time you change the encoding which makes the gain not worth it. Using path instead of url parameter is a smart trick, but gives less flexibility for the web server. Also the all caps url makes it looks suspicious when your qr code apps asks if the url is legitimate. (Even if it's already quite cryptic with the big payload as digits). So I'm unsure about this one.


text:
Table input mapping performance

Tables should be exported gziped and than ungziped by docker bundle.
https://github.com/keboola/docker-bundle/blob/2d9c7b42801f39c5cb75e029524fe06cd12ff00b/Docker/StorageApi/Reader.php#L204

@Halama jestli spíš nedat defaultně gzip na true v https://github.com/keboola/storage-api-php-client/blob/master/src/Keboola/StorageApi/TableExporter.php#L45
tady se to stejně gunzipne - https://github.com/keboola/storage-api-php-client/blob/master/src/Keboola/StorageApi/TableExporter.php#L143, takže by to mělo bejt transparentní?

No jenže tady se to zase zpátky zagzipuje - https://github.com/keboola/storage-api-php-client/blob/master/src/Keboola/StorageApi/TableExporter.php#L156
A docker-bundle to zas bude znova rozgzipovávat. To je taky slušnej overhead. Co kdyby TableExporter dodal vždycky rozgzipovanej soubor a forcoval by gzipování přenosu (pokaždý nastavil gzip na true v exportOptions)?

ted jsme na to zas narazili. Ok udělal bych to tak jak píšeš.

jenom přemýšlám co když to někdo bude chtít stáhnout gzipnutý.

Jo, udělal bych to teda tak, že exportOptions metody TableExporter::exportTable budou ovlivňovat výstupní formát, nikoliv transfer/export. Export bude vždy gzip, nenapadá mě žádnej důvod, proč by neměl bejt gzip. A pak se podle požadavku v exportOptions se na konci spojenej soubor zagzipuje nebo se nechá rozgzipovanej.
Souhlas?

jo

nejsem si jistej, jestli se to děje, přesouvám do správnýho repa

authors: Halama odinuv ondrejhlavacek

repo: keboola/docker-bundle


text:
Adding retryConfig param to the ex

To be able to deploy and use more demanding templates, we need to implement retry policy, so the extractor is not failing with 403 error (which is happening when doing lots of API calls).
Config test: https://connection.keboola.com/admin/projects/6845/extractors/ex-generic-v2/586770230

@OJ: This change shouldn't affect anything regarding current component, so it might me merged right away (if you'll find it ok).

repo: keboola/kbc-ui-templates


text:
Pkg linting issues

Fixing several small linting issues in /pkg:

Public comments
Inconsistent slice declaration
Useless parenthesis
Useless type conversion

Checklist

[ ] When introducing a new scaler, I agree with the scaling governance policy
[x] I have verified that my change is according to the deprecations & breaking changes policy
[ ] Tests have been added
[ ] Changelog has been updated and is aligned with our changelog requirements
[ ] A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
[ ] A PR is opened to update the documentation on (repo) (if applicable)
[x] Commits are signed with Developer Certificate of Origin (DCO - learn more)

Fixes #

Relates to #

/run-e2e internal

authors: teivah zroubalik

repo: kedacore/keda


text:
feat: add erasing op lint

addresses #17
I will be adding more code since i am having trouble evaluating of an literal is zero or not

check that there might be a usable function there to help you https://github.com/starkware-libs/cairo/blob/main/crates/cairo-lang-lowering/src/optimizations/const_folding.rs

@all-contributors please add @guha-rahul for code and test

repo: keep-starknet-strange/cairo-lint


text:
fix: changed type defs in relocatable and added test

Closes #117 and closes #115

lgtm

authors: Godspower-Eze tcoratger

repo: keep-starknet-strange/cairo-zig


text:
Add obscurace color property

Maybe useful for non-photorealistic rendering.

Hi Keijiro,
Tested the shader on mobile devices and it shows full black on all android and IOS devices we tested it on. would be amazing if this works cause it looks so good on stylized environments.

repo: keijiro/KinoObscurance


text:
compute matrix determinant

index.html 에서는 testArray 수정하고 console.log에서 출력을 다르게 했고,
matrix.js 에서는 computeMatrixDeterminant 부분만 재귀적으로 해봤습니다.

I trust you

repo: keikeiem/statistics


text:
Immortal updates address change

Source information
Immortal updates 1.4.42
Source language
English
Steps to reproduce

Open mihon and go to browse
Select immortal updates
Press lates

Expected behavior
It should load the list of manhwa available
Actual behavior
It doesn't load just says check website in browser
Mihon/Tachiyomi version
0.16.5-6685
Android version
Android 14
Other details

Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.15.3.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Thank you

Thank you

Close the issue

repo: keiyoushi/extensions-source


text:
SpyFakku: Add display manga title as full title, show favorites only, offset result by # pages

Source name
SpyFakku
Source language
English
Describe your suggested feature

-Display manga title as full title, the site show full title below the short title, please allow full title to display from setting

-Show favorite only, there is favorites function from the site
-Offset result by # pages is very useful when browsing the catalog from the app, it help prevent lags
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I have updated the app to version 0.15.3.
[X] I will fill out all of the requested information in this form.

Could you please give an example of a manga with a full title? Thank you.


text:
timestamp in odometry.csv

Hello. Thank you for sharing.
I wonder what the timestamp of odometry.csv means.
I thought this was a unix timestamp, so I converted it to human date time, and although it was a timestamp obtained by the Stray scanner app on July 27, 2022, the time zone came out on January 1, 1970.
How do I get the current unix timestamp or date time in real-time through the Stray scanner app?

The timestamp is starting from when the phone was last booted. For some reason this is the timestamp given by ARKit for the frames.
What is your use case where you would need these to match human date and time? It could make sense to either write down the start date and time in some metadata or write the unix timestamp in the csv files, but haven't really had a use case for it yet.

Thank you for your reply.
I am going to collect odometry, RGB, and depth images with a Stray scanner and measure the distance with a LiDAR sensor at the same time. To synchronize the time between the Stray scanner and the LiDAR sensor, I need to know the unix timestamp of the data collected by the Stray scanner.

I will use LiDAR Lite v3, a commercially ready-made LiDAR. I will use four LiDAR Lite v3s with a Stray scanner.
https://www.garmin.com/en-US/p/557294

repo: kekeblom/StrayVisualizer


text:
Add notEmpty macro

Adds a notEmpty macro as per https://github.com/kellyselden/ember-awesome-macros/issues/241
Happy to hear code style or implementation suggestions. 👍
Based heavily on @ctjhoa's work on https://github.com/kellyselden/ember-awesome-macros/pull/443
While working onthis I found out about some unexpected (for me, at least) behaviour of isEmpty w.r.t objects. I've attempted to highlight these unexpected behaviours in the README, and added tests demonstrating them. I'm happy if you'd rather highlight these in a different way in the README, or if you don't think it's relevant to highlight here.

Thanks for the feedback.
What did you think of the new comments in the README examples? Unless you think we should keep them it sounds like I can just remove my second commit.

I would like to remove the mentions of isEmpty gotchas since we are just a wrapper.

Understood.
I have removed my second commit which was the notes, and tests for the behaviour I thought was unexpected.

Sorry I forgot to send this review

Not a problem. It happens.
Tests now use new test syntax 👍

authors: dnahodil kellyselden

repo: kellyselden/ember-awesome-macros


text:
Rendering form elements from a stored JSON

Hi,
Before I ask my question, I'd like to thank you for this wonderful form builder...
I was able to get the JSON output of the form builder and passes it to a PHP function that stores it in the DB.
[{"component":"textInput","editable":true,"index":0,"label":"Text Input","description":"","placeholder":"","options":[],"required":false,"validation":"/./"},{"component":"textArea","editable":true,"index":1,"label":"Text Area","description":"","placeholder":"","options":[],"required":false,"validation":"/./"},{"component":"checkbox","editable":true,"index":2,"label":"Checkbox","description":"","placeholder":"","options":["Option one","Option two"],"required":false,"validation":"/./"},{"component":"radio","editable":true,"index":3,"label":"Radio","description":"","placeholder":"","options":["Option one","Option two"],"required":false,"validation":"/./"},{"component":"select","editable":true,"index":4,"label":"Select","description":"","placeholder":"","options":["Option one","Option two"],"required":false,"validation":"/.*/"}]
Can you show me an example on how to use this output to render the form elements once the form is loaded?
It is my first time to use AngularJS, so please forgive my ignorance.
Thanks in advance.

@Th3Dr4g0n thanks very much. This helped me get through something I was stuck on. Cheers and happy new year.

Hi @Th3Dr4g0n can you please share how you accessed the form input/output and stored it?

Glad I could help @otang
@jonathanzinger, sorry for my delayed response...
You can get the JSON string from the pre HTML element with the class ng-binding.  Once you have the JSON string, you can store it in the DB via AJAX request.
Here is my test code, you can adjust it to suite your project.

var form_fields = $('pre.ng-binding').html();
var form_id = 1 //The id of the form in my DB
$.ajax({
mimeType: 'text/html; charset=utf-8', // ! Need set mimeType only when run from local file
url: '/add-form-fields/'+form_id+'/',
type: 'POST',
contentType: "application/json; charset=utf-8",
data: form_fields,
success: function(data) {
console.log(data);
},
dataType: "html",
async: false
});

Hi @Th3Dr4g0n,
Sorry for not getting back to you sooner, I was on vacation so I had no email access. Thank you for the code I will try it out and let you know how it works
Cheers,
Jon

Hi @Th3Dr4g0n,
Did you load the JSON before the application is rendered or did you load it dynamically via file upload/ text input etc?
The reason I am asking is that I am trying to load the JSON via file upload which works fine, however the presentation only updates when I change some sort of input (for example checking the Show scope check box). Did you run into this issue? Do you now why this might happen?
Thank!

@jonathanzinger I loaded the JSON from the DB into a hidden input, so it was already there when the page is loaded.

If you want to load the components dynamically, instead of app.config, and store them in cache, this is what I did. I also created an "imageTemplate" to replace the forms actually being dragged (less space). My only criticism is the popover. I would much prefer it be embeded in the form (ng-hide/ng-show) under each component).
 .run(function (FormBuilderSvc, FormBuilderSvcCache) {
         var componentsCache = [],
           templatePath = '/app/dashboards/_shared/components/formBuilder/views/',
           componentImgPath = '/app/dashboards/_shared/components/formBuilder/images/widget-icons/';

        FormBuilderSvc.all().success(function (components) {
            ng.forEach(components, function (component) {
                componentsCache.push(component);

                var componentObj = {
                    name: component.name,
                    answer : component.answer,
                    group:component.group,
                    parentGroup : component.parentGroup,
                    description: component.description,
                    label: component.label,
                    options: component.options,
                    placeholder: component.placeholder,
                    required: component.required,
                    validationOptions: component.validationOptions,
                    warning : component.warning,
                    imageTemplate: "" + component.label  + "",
                    templateUrl: templatePath + component.templateUrl,
                    popoverTemplateUrl: templatePath + component.popoverTemplateUrl
                }

                $builderProviderRef.registerComponent(component.name, componentObj);
            })
            FormBuilderSvcCache.put('FormBuilderSvc', componentsCache);
        });
    })

Still not clear how to render saved form data.

@Th3Dr4g0n it working as per i need ... Thanks :+1:

@vko-online it clear above that you need to add below code in the DemoController to rendered save json form -
var json = '[{"component":"textInput","editable":true,"index":0,"label":"National ID","description":"","placeholder":"","options":[],"required":true,"validation":"[number]"},{"component":"checkbox","editable":true,"index":1,"label":"Interest","description":"","placeholder":"","options":["Games","Reading","Movies"],"required":false,"validation":"\/.*\/"},{"component":"radio","editable":true,"index":2,"label":"Gender","description":"","placeholder":"","options":["Male","Female"],"required":false,"validation":"\/.*\/"},{"component":"select","editable":true,"index":3,"label":"Country","description":"","placeholder":"","options":["Egypt","Russia"],"required":false,"validation":"\/.*\/"},{"component":"textArea","editable":true,"index":4,"label":"Feedback","description":"","placeholder":"","options":[],"required":false,"validation":"\/.*\/"}]';

  var component = $.parseJSON(json);
  $.each(component, function(i, item){
      var formObj = $builder.addFormObject('default', item);
  });
  $scope.form = $builder.forms['default'];

authors: JoeGrasso Th3Dr4g0n jonathanzinger otang santosh-k1 vko-online


text:
Add Stack data structure in C++

Add Stack data structure w/ methods: insert, remove, top, isEmpty and getSize. Also README.md was referenced.

Melhorou bastante. Principalmente a nomenclatura, condição de inserção e tratamento de exceptions. Vou ficar mais atento ao padrão na hora de escrever os outros algoritmos.

Boa, valeu pela contribuição @ribmarciojr 🚀

authors: kelvins ribmarciojr

repo: kelvins/algorithms-and-data-structures


text:
Python入門(APG4bPython)の提出結果が反映されない

C++入門(APG4b)の提出結果は反映されるのですが、Python入門(APG4bPython)の提出結果が反映されません。
ただし、以下のようなことを「反映されない」と言っています。

UserページのSubmissionsタブに表示されない

AC数にカウントされない

AC数はわからないですが、Submissionタブには表示されているように見えます。
https://kenkoooo.com/atcoder/#/user/YourDiary?userPageTab=Submissions

repo: kenkoooo/AtCoderProblems


text:
Revert "use enforce_content_length in Requests"

This is more of a TODO reminder. Given the upcoming work for urllib3 2.0, which I'm assuming will be used in a Requests 3.0.0, this won't work. We don't need to remove this immediately, but I'll leave this here for when we're sure 2.0 is happening.

Heh, we won't forget: we'll run immediately into errors because I removed the kwarg entirely. Let's not queue up a whole bunch of PRs: let's focus on doing 2.0 first. :wink:

authors: Lukasa nateprewitt

repo: kennethreitz/requests


text:
Make test builds fail if warnings are encountered during tests

The test build should be completely clean. Warnings don't block merges, so we don't notice them when they pop up. If they did block merging, we'd notice them and fix them (ideal case) or at least intentionally make the decision to suppress them (last resort).

logging errors should maybe also raise.

Yes, but we may need to be a bit more discriminate there. I definitely agree logger.error() from graphql_compiler or a submodule should raise unless explicitly suppressed. It's less clear-cut with dependency libraries — e.g. if sqlalchemy decided to retry a request because a connection broke, I don't think our tests should fail.

I closed the pull request above because it doesn't seem the trouble at the moment to fix this.
I am sharing what I learned in case someone else wants to address this.

There are two ways that I know of to error on warning. pytest -Werror or python -Werror -m pytest. I am not sure what the difference is, but I think that the later command also errors on any pytest warnings while the former does not.
Python by default hides certain warnings so you might get an error with the commands above even if you don't see any warning output. To see all the warnings run pytest -W "default".
When treating warning as exceptions, warning-exceptions can be caught in try, except blocks. (This can lead to some very unexpected output when running pytest -Werror. It might not be obvious at all that the error was raised because of a failed warning).

There are currently two warnings raised when one runs pytest -W default. One of them is an ImportWarning coming from somewhere in the neo4j_client, (I think) and the other is a ResourceWarning raised because a socket that is somehow related to the OrientDB is not closed.

Can you post what the warnings that appear are? It's impossible to make informed decisions on this without knowing what the warning is.
Assuming the warnings are harmless, why not just suppress them in particular and make everything else into an error? Both pytest and python support per-warning-type rules, as far as I can tell.
Closing and abandoning the PR overall feels a bit like throwing out the baby with the bathwater right now.

I think that the first error is related to neo4j because of the following output:

The error does not seem like it is due to treating warnings as errors, but it is.
Just running pytest raises no errors.

Ok, the ResourceWarning is legit and we should track it down and fix it, and the other two seem reasonable to suppress. If I remember correctly, you can specify multiple -W options with different handling for different subtrees of the Warning inheritance hierarchy.
Also, if you have cycles, I'd suggest reporting the neo4j issue because it seems like a legitimate bug. I'm not sure what's going on with the first one, and it's probably not super worth looking into right now.

repo: kensho-technologies/graphql-compiler


text:
chore(lock): Sync yarn.lock changes on clean install

The package dependency version for babel-cli are out of sync in package.json(6.24.1) and
yarn.lock(6.23.0). This adds changes made to the lockfile by yarn after clean install

Hi! Actually, I'd like to remove yarn.lock and add it to the gitignore. Let's add package-lock.json to the gitignore too. It's just not worth the effort for a library.
Could you do that? Thanks!

@kentcdodds No problem. Would you prefer I make a different PR?

Either way. You can update this PR too.

Ah, we should change the Travis config to use npm instead of yarn. Could you do that too? Thanks!

Happy to help 😄

authors: kentcdodds sudo-suhas

repo: kentcdodds/cross-env


text:
update code preview to look nicer

What: Change code preview to look nicer

Why: Because we care about looking nice

How: Pretty much copy all of styled-components 💅
Here's some gifs:

The box shadow looks funny in those gifs, looks much better IRL:

repo: kentcdodds/glamorous-website


text:
Idea for clarity for folks unfamiliar with p-s

Kent love this idea!
One issue that I have seen by all of the 'better npm scripts' setups is new folks not grokking what exactly the abstraction is doing or what it is running.
A.k.a the "p-s... what in the..." reaction from people unaware of this package
Has a proposal to potentially help folks looking at the package.json
before:
{
  "scripts": {
    "start": "p-s"
  }
}

after:
{
  "scripts": {
    "start": "p-s && echo 'Look in package-scripts.js for script information'"
  }
}

Just my 2 cents!

Good point! Yet another  example of the fundamental problem with JSON's lack of comments! We cannot escape it!
What if we exposed the binary as package-scripts in addition to the existing p-s?
Feel free to file a pull request! Just an update to the bin in the package.json ought to do it!

sounds good. I will take a stab at it.

authors: DavidWells kentcdodds

repo: kentcdodds/p-s


text:
The principles the library works

I have googled a lot and found some people asking why and how this library works.
It would be very useful to add the comment here with some advices of usage.
For example for correct usage all setTimeout/setIntervals and lodash's debounce-like functions should be mocked with direct execution.

I think it has something to do with how the async loop works in JS, some basics are explained here: https://www.youtube.com/watch?v=vn3tm0quoqE

See https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/

authors: Maxim-Mazurok Yvour kentor

repo: kentor/flush-promises


text:
Customcheckver

rlogin 2.25.0 to 2.25.1

Sorry, mistake

repo: kentork/scoop-leaky-bucket


text:
Slick Slider Fade Transition with Ken Burns Effect

Hi, I'm implementing the slick slider and have added a Ken Burn's effect to images using css animation.
You can see example here: http://tesla.uk-cpi.com/
I noticed that the fade transition doesn't fade in the next images over the existing image (as portrayed on the slick slider website's fade example ). It currently feels more "flash bang" than "national geographic". Is there anything I need to be aware of to get this working?
JS, CSS and HTML below...
CSS:
    .home-slider {
      .slider-img {
        width: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        top: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
      }
      .slick-dots {
        bottom: 20px;
        li button:before {
          font-size: 50px;
        }
      }
    }

    .myKenburns .slick-slider { overflow: hidden; }
    .myKenburns .slick-slider div.slick-active .slider-img {
        -webkit-animation: myMove 8s 1 ease-in-out;
        -moz-animation: myMove 8s 1 ease-in-out;
        -o-animation: myMove 8s 1 ease-in-out;
        -ms-animation: myMove 8s 1 ease-in-out;
        animation: myMove 8s 1 ease-in-out; }

    .myKenburns .slick-slide[aria-hidden="true"] .slider-img {
        visibility: hidden; }

    @keyframes myMove {
        from { transform: scale(1.0,1.0); transform-origin: 50% 50%; }
        to { transform: scale(1.1,1.1); transform-origin: 50% 0%; }
    }
    @-webkit-keyframes myMove {
        from { -webkit-transform: scale(1.0,1.0); -webkit-transform-origin: 50% 50%; }
        to { -webkit-transform: scale(1.1,1.1); -webkit-transform-origin: 50% 0%;  }
    }
    @-o-keyframes myMove {
        from { -o-transform: scale(1.0,1.0); -o-transform-origin: 50% 50%; }
        to { -o-transform: scale(1.1,1.1); -o-transform-origin: 50% 0%;  }
    }
    @-moz-keyframes myMove {
        from { -moz-transform: scale(1.0,1.0); -moz-transform-origin: 50% 50%; }
        to { -moz-transform: scale(1.1,1.1); -moz-transform-origin: 50% 0%; }
    }
    @-ms-keyframes myMove {
        from { -ms-transform: scale(1.0,1.0); -ms-transform-origin: 50% 50%; }
        to { -ms-transform: scale(1.1,1.1); -ms-transform-origin: 50% 0%; }
    }

JS:
    //Slider on Home Page
    $('.home-slider').slick({
        autoplay: true,
        autoplaySpeed: 7000,
        dots: true,
        infinite: true,
        speed: 500,
        fade: true,
        cssEase: 'linear',
        lazyLoad: 'ondemand',
        lazyLoadBuffer: 0,
    });

HTML:

            Text goes here

Not sure I'm following exactly, but yeah the "next" image is layered behind the one that's transitioning out. You can always apply custom CSS and do something with zindex and opacity. Best of luck.

I'm having this same problem..

Hey @nearkingdom,
I had this same problem and just removing this line below resolved the problem:
.myKenburns .slick-slide[aria-hidden="true"] .slider-img {         visibility: hidden; }

repo: kenwheeler/slick


text:
Update slick.js

This simple fix prevent this problem:

drag with mouse the carousel.
refresh the carousel using console: $('.carousel').getSlick().refresh()
enter the carousel and leave it with the mouse.
the carousel will slide!!!!!

solution:
reset the touchObject in the refresh method

thxs


text:
Evaluate against specific previous evaluation

Discussed in https://github.com/keptn/keptn/discussions/5610

Originally posted by Dynatrace-Adam-Gardner October 11, 2021
Is there a way (or should I raise a KEP) to evaluate against a specific previous Keptn evaluation?
Usecase: I have a known evaluation which is "good" for me to evaluate against. Someone then runs several other evaluations that all pass but for whatever reason, I'm not interested in (perhaps they ran a slightly different load). I know that for a fair comparison I now need to compare my next evaluation against n-4. Where n-3, n-2 and n-1 are all still passing builds.
Something like this where comparison specifies a specific evaluation as shown in the bridge?
keptn trigger evaluation \
--project=project1 \
--service=carts \
--stage=dev \
--timeframe=2h \
--comparison=2021-10-11 10:38
```</div>

Please leave open as this came from a Keptn user

Re-open

Keep open....

authors: Dynatrace-Adam-Gardner agardnerIT

repo: keptn/keptn


text:
Keptn Lifecycle Toolkit Component Diagram

As per the discussion, we should go with mermaid for making any type of flowchart the next time.
It will be modular, and we can update this anytime with some line of text or code instead of recreating the diagram again.
Related to #771

graph TD;
    KLTComponents-->Operators;
    KLTComponents-->Scheduler
   Operators-->Lifecycle-Operator
   Operators-->Metrics-Operator

Something like this.

repo: keptn/lifecycle-toolkit


text:
Image_captioning: How to save the model?

Hello
I get this error when I try to save the model:
cannot be saved because the input shapes have not been set. Usually, input shapes are automatically determined from calling .fit() or .predict(). To manually set the shapes, call model.build(input_shape).
please help me if you know how to resolve this Error

Did you get any solution to this issue?

I think this is also referenced in this issue https://github.com/keras-team/keras-io/issues/1364

Hi, In order to save the model with custom object using Keras saving format .keras you need to override the get_config() method, for detailed steps follow the guide here https://keras.io/guides/serialization_and_saving/#custom-objects

authors: Ebimsv krishnaraj-sr sachinprasadhs shaunaa126

repo: keras-team/keras-io


text:
Can't use multiple GPUs with GANs

Test: wrap the combined generator and discriminator in the multiple_gpu_model API
Syntax: combined = multi_gpu_model(combined)
Reproduce issue: https://gist.github.com/emilwallner/f2c411b83c499c1834fd1be6646f7389
Error: ValueError: The name "model_1" is used 2 times in the model. All layer names should be unique.

@emilwallner You code works well on my node with 2 GPUs. Can you share the whole error stack?

@yanboliang My bad, it works when I use the latest master.

authors: emilwallner yanboliang

repo: keras-team/keras


text:
Is there a way to use optimize every n step?

For example in pytorch one can store and aggregate losses in a variable which would allow to optimize after n seen batches.
A feature to Model's fit methods  fit() and fit_generator() through a param "steps_to_optimize" like:
model.fit(x, y, batch_size=256, steps_to_optimize=4) => batchsize = 1024
so the Optimizer would store the losses for n seen batches, to optimize after n seen batches.
It would give the oppurtunity to optimize problems which need a big batch_size without being restricted to the memory of the device.
Of course for the fit() method there are problems like the overall number of steps has to be a multible of  "steps_to_optimize" but at least in fit_generator() it should be doable.

Hi,
this conversation may be useful to you: https://github.com/keras-team/keras/issues/3556.

Hey,
thanks so much, this is actually exactly what i was looking for.

authors: SimonLitak lvapeab


text:
ValueError: setting an array element with a sequence.

hello ,
i am using keras and tensorflow to implement CNN nets for edge detection , when i tried to run the code ,  this error have occurred . so I would like that you help me to solve it. thanks in advance.
here is the code :
[from keras.models import Sequential
from keras.layers import (Activation, Dropout, Flatten, Dense, Conv2D, MaxPooling2D)
from keras.utils import np_utils
from keras import backend as K
K.set_image_dim_ordering('th')
import json, pylab
import cv2
import numpy as np
np.set_printoptions(threshold=np.nan)
some model and data processing constants
batch_size = 128
nb_classes = 2
nb_epoch = 7
input image dimensions
img_rows, img_cols = 48, 72
number of convolutional filters to use
nb_filters = 32
size of pooling area for max pooling
nb_pool = 5
convolution kernel size
nb_conv = 3
architecture
model = Sequential()
model.add(Conv2D(nb_filters, (nb_conv, nb_conv),
padding='valid',
input_shape=(1, img_rows, img_cols)))
model.add(Activation('relu'))
model.add(Conv2D(nb_filters, (nb_conv, nb_conv)))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(nb_pool, nb_pool)))
model.add(Dropout(0.25))
model.add(Flatten())
model.add(Dense(128))
model.add(Activation('relu'))
model.add(Dropout(0.5))
model.add(Dense(nb_classes))
model.add(Activation('softmax'))
model.compile(loss='sparse_categorical_crossentropy',
optimizer='adadelta',
metrics=['accuracy'])
train_imgs=(cv2.imread('1.jpg',0))
ground_truth_train=(cv2.imread('1edges.jpg',0))
test_imgs=(cv2.imread('2.jpg'),0)
ground_truth_test=(cv2.imread('2edges.jpg',0))
print('Preparing images...')
X_train = np.array(train_imgs)
X_test = np.array(ground_truth_train)
y_train = np.array(test_imgs)
y_test = np.array(ground_truth_test)
prepare the data
X_train = X_train.reshape(X_train.shape[0], 1, img_rows, img_cols)
X_test = X_test.reshape(X_test.shape[0], 1, img_rows, img_cols)
X_train = X_train.astype('float32')
X_test = X_test.astype('float32')
X_train /= 255
X_test /= 255
print('X_train shape:', X_train.shape)
print(X_train.shape, 'train samples')
print(X_test.shape, 'test samples')
convert class vectors to binary class matrices
convert class vectors to binary class matrices
from keras.utils import to_categorical
y_train = np.divide(y_train,255)
y_test = np.divide(y_test,255)
Y_train = to_categorical(y_train,nb_classes)
y_test = to_categorical(y_test,nb_classes)
train it plz
print('Training model...')
model.fit(X_train, Y_train ,
batch_size=batch_size,
nb_epoch=nb_epoch, verbose=1,
validation_data=(X_test,y_test) )
let's dump the model
print('Saving model...')
saved_model = model.to_json()
with open('CNN_architecture.json', 'w') as outfile:
json.dump(saved_model, outfile)
model.save_weights('CNN_weights.h5')
](url)

Can you provide the stacktrace and format your code snippet? Thanks!

i think , the error occurs in these steps,  also it was showing me this  Y_train = to_categorical(y_train,nb_classes) ,  y = np.array(y, dtype ='int')

authors: adouwitti gabrieldemarmiesse


text:
Assertion error when trying to use tf.contrib loss function with keras model

I am using python 3 with anaconda, and trying to use a tf.contrib loss function with a Keras model.
The code is the following
from keras.layers import Dense, Flatten
    from keras.optimizers import Adam
    from keras.models import Sequential
    from tensorflow.contrib.losses import metric_learning
    model = Sequential()
    model.add(Flatten(input_shape=input_shape))
    model.add(Dense(50,  activation="relu"))
    model.compile(loss=metric_learning.triplet_semihard_loss, optimizer=Adam())
    return model

I get the following error:

File
"/home/user/.local/lib/python3.6/site-packages/keras/engine/training_utils.py",
line 404, in weighted
score_array = fn(y_true, y_pred)   File "/home/user/anaconda3/envs/siamese/lib/python3.6/site-packages/tensorflow/contrib/losses/python/metric_learning/metric_loss_ops.py",
line 179, in triplet_semihard_loss
assert lshape.shape == 1 AssertionError

When I am using the same network  with a keras loss function it works fine, I tried to wrap the tf loss function in a function like so
def func(y_true, y_pred):
    return tf.contrib.losses.metric_learning.triplet_semihard_loss(y_true, y_pred)

And still getting the same error
What am I doing wrong here?
Also see my SO question
this is my env
Name                    Version                   Build  Channel
_tflow_select             2.3.0                       mkl
absl-py                   0.6.1                    py36_0
alabaster                 0.7.12                   py36_0
anaconda                  custom           py36hbbc8b67_0
anaconda-client           1.7.2                    py36_0
anaconda-project          0.8.2                    py36_0
asn1crypto                0.24.0                   py36_0
astor                     0.7.1                    py36_0
astroid                   2.1.0                    py36_0
astropy                   3.1              py36h7b6447c_0
atomicwrites              1.2.1                    py36_0
attrs                     18.2.0           py36h28b3542_0
babel                     2.6.0                    py36_0
backcall                  0.1.0                    py36_0
backports                 1.0                      py36_1
backports.os              0.1.1                    py36_0
backports.shutil_get_terminal_size 1.0.0                    py36_2
beautifulsoup4            4.6.3                    py36_0
binutils_impl_linux-64    2.31.1               h6176602_1
binutils_linux-64         2.31.1               h6176602_3
bitarray                  0.8.3            py36h14c3975_0
bkcharts                  0.2                      py36_0
blas                      1.0                         mkl
blaze                     0.11.3                   py36_0
bleach                    3.0.2                    py36_0
blosc                     1.14.4               hdbcaa40_0
bokeh                     1.0.2                    py36_0
boto                      2.49.0                   py36_0
bottleneck                1.2.1            py36h035aef0_1
bzip2                     1.0.6                h14c3975_5
c-ares                    1.15.0               h7b6447c_1
ca-certificates           2018.03.07                    0
cairo                     1.14.12              h8948797_3
certifi                   2018.11.29               py36_0
cffi                      1.11.5           py36he75722e_1
chardet                   3.0.4                    py36_1
click                     7.0                      py36_0
cloudpickle               0.6.1                    py36_0
clyent                    1.2.2                    py36_1
colorama                  0.4.1                    py36_0
conda                     4.5.12                   py36_0
conda-build               3.17.6                   py36_0
conda-env                 2.6.0                         1
contextlib2               0.5.5                    py36_0
cryptography              2.4.2            py36h1ba5d50_0
cryptography-vectors      2.4.2                    py36_0
cudatoolkit               9.0                  h13b8566_0
cudnn                     7.1.2                 cuda9.0_0
curl                      7.63.0            hbc83047_1000
cycler                    0.10.0                   py36_0
cython                    0.29.2           py36he6710b0_0
cytoolz                   0.9.0.1          py36h14c3975_1
dask                      1.0.0                    py36_0
dask-core                 1.0.0                    py36_0
datashape                 0.5.4                    py36_1
dbus                      1.13.2               h714fa37_1
decorator                 4.3.0                    py36_0
defusedxml                0.5.0                    py36_1
distributed               1.25.1                   py36_0
docutils                  0.14                     py36_0
entrypoints               0.2.3                    py36_2
et_xmlfile                1.0.1                    py36_0
expat                     2.2.6                he6710b0_0
fastcache                 1.0.2            py36h14c3975_2
filelock                  3.0.10                   py36_0
flask                     1.0.2                    py36_1
flask-cors                3.0.7                    py36_0
fontconfig                2.13.0               h9420a91_0
freetype                  2.9.1                h8a8886c_1
fribidi                   1.0.5                h7b6447c_0
gast                      0.2.0                    py36_0
gcc_impl_linux-64         7.3.0                habb00fd_1
gcc_linux-64              7.3.0                h553295d_3
get_terminal_size         1.0.0                haa9412d_0
gevent                    1.3.7            py36h7b6447c_1
glib                      2.56.2               hd408876_0
glob2                     0.6                      py36_1
gmp                       6.1.2                h6c8ec71_1
gmpy2                     2.0.8            py36h10f8cd9_2
graphite2                 1.3.12               h23475e2_2
greenlet                  0.4.15           py36h7b6447c_0
grpcio                    1.16.1           py36hf8bcb03_1
gst-plugins-base          1.14.0               hbbd80ab_1
gstreamer                 1.14.0               hb453b48_1
gxx_impl_linux-64         7.3.0                hdf63c60_1
gxx_linux-64              7.3.0                h553295d_3
h5py                      2.9.0            py36h7918eee_0
harfbuzz                  1.8.8                hffaf4a1_0
hdf5                      1.10.4               hb1b8bf9_0
heapdict                  1.0.0                    py36_2
html5lib                  1.0.1                    py36_0
icu                       58.2                 h9c2bf20_1
idna                      2.8                      py36_0
imageio                   2.4.1                    py36_0
imagesize                 1.1.0                    py36_0
importlib_metadata        0.6                      py36_0
intel-openmp              2019.1                      144
ipykernel                 5.1.0            py36h39e3cac_0
ipython                   7.2.0            py36h39e3cac_0
ipython_genutils          0.2.0                    py36_0
ipywidgets                7.4.2                    py36_0
isort                     4.3.4                    py36_0
itsdangerous              1.1.0                    py36_0
jbig                      2.1                  hdba287a_0
jdcal                     1.4                      py36_0
jedi                      0.13.2                   py36_0
jeepney                   0.4                      py36_0
jinja2                    2.10                     py36_0
jpeg                      9b                   h024ee3a_2
jsonschema                2.6.0                    py36_0
jupyter                   1.0.0                    py36_7
jupyter_client            5.2.4                    py36_0
jupyter_console           6.0.0                    py36_0
jupyter_core              4.4.0                    py36_0
jupyterlab                0.35.3                   py36_0
jupyterlab_server         0.2.0                    py36_0
keras                     2.2.4                         0
keras-applications        1.0.6                    py36_0
keras-base                2.2.4                    py36_0
keras-preprocessing       1.0.5                    py36_0
keyring                   17.0.0                   py36_0
kiwisolver                1.0.1            py36hf484d3e_0
krb5                      1.16.1               h173b8e3_7
lazy-object-proxy         1.3.1            py36h14c3975_2
libarchive                3.3.3                h5d8350f_5
libcurl                   7.63.0            h20c2e04_1000
libedit                   3.1.20170329         h6b74fdf_2
libffi                    3.2.1                hd88cf55_4
libgcc-ng                 8.2.0                hdf63c60_1
libgfortran-ng            7.3.0                hdf63c60_0
libgpuarray               0.7.6                h14c3975_0
libiconv                  1.15                 h63c8f33_5
liblief                   0.9.0                h7725739_1
libpng                    1.6.35               hbc83047_0
libprotobuf               3.6.1                hd408876_0
libsodium                 1.0.16               h1bed415_0
libssh2                   1.8.0                h1ba5d50_4
libstdcxx-ng              8.2.0                hdf63c60_1
libtiff                   4.0.9                he85c1e1_2
libtool                   2.4.6                h7b6447c_5
libuuid                   1.0.3                h1bed415_2
libxcb                    1.13                 h1bed415_1
libxml2                   2.9.8                h26e45fe_1
libxslt                   1.1.32               h1312cb7_0
llvmlite                  0.26.0           py36hd408876_0
locket                    0.2.0                    py36_1
lxml                      4.2.5            py36hefd8a0e_0
lz4-c                     1.8.1.2              h14c3975_0
lzo                       2.10                 h49e0be7_2
mako                      1.0.7                    py36_0
markdown                  3.0.1                    py36_0
markupsafe                1.1.0            py36h7b6447c_0
matplotlib                3.0.2            py36h5429711_0
mccabe                    0.6.1                    py36_1
mistune                   0.8.4            py36h7b6447c_0
mkl                       2018.0.3                      1
mkl-service               1.1.2            py36h90e4bf4_5
mkl_fft                   1.0.6            py36h7dd41cf_0
mkl_random                1.0.1            py36h4414c95_1
more-itertools            4.3.0                    py36_0
mpc                       1.1.0                h10f8cd9_1
mpfr                      4.0.1                hdf1c602_3
mpmath                    1.1.0                    py36_0
msgpack-python            0.5.6            py36h6bb024c_1
multipledispatch          0.6.0                    py36_0
nbconvert                 5.3.1                    py36_0
nbformat                  4.4.0                    py36_0
nccl                      1.3.5                 cuda9.0_0
ncurses                   6.1                  he6710b0_1
networkx                  2.2                      py36_1
ninja                     1.8.2            py36h6bb024c_1
nltk                      3.4                      py36_1
nose                      1.3.7                    py36_2
notebook                  5.7.4                    py36_0
numba                     0.41.0           py36h962f231_0
numexpr                   2.6.8            py36hd89afb7_0
numpy                     1.15.4           py36h1d66e8a_0
numpy-base                1.15.4           py36h81de0dd_0
numpydoc                  0.8.0                    py36_0
odo                       0.5.1                    py36_0
olefile                   0.46                     py36_0
openpyxl                  2.5.12                   py36_0
openssl                   1.1.1a               h7b6447c_0
packaging                 18.0                     py36_0
pandas                    0.23.4           py36h04863e7_0
pandoc                    2.2.3.2                       0
pandocfilters             1.4.2                    py36_1
pango                     1.42.4               h049681c_0
parso                     0.3.1                    py36_0
partd                     0.3.9                    py36_0
patchelf                  0.9                  he6710b0_3
path.py                   11.5.0                   py36_0
pathlib2                  2.3.3                    py36_0
patsy                     0.5.1                    py36_0
pcre                      8.42                 h439df22_0
pep8                      1.7.1                    py36_0
pexpect                   4.6.0                    py36_0
pickleshare               0.7.5                    py36_0
pillow                    5.3.0            py36h34e0f95_0
pip                       18.1                     py36_0
pixman                    0.34.0               hceecf20_3
pkginfo                   1.4.2                    py36_1
pluggy                    0.8.0                    py36_0
ply                       3.11                     py36_0
prometheus_client         0.5.0                    py36_0
prompt_toolkit            2.0.7                    py36_0
protobuf                  3.6.1            py36he6710b0_0
psutil                    5.4.8            py36h7b6447c_0
ptyprocess                0.6.0                    py36_0
py                        1.7.0                    py36_0
py-lief                   0.9.0            py36h7725739_1
pycodestyle               2.4.0                    py36_0
pycosat                   0.6.3            py36h14c3975_0
pycparser                 2.19                     py36_0
pycrypto                  2.6.1            py36h14c3975_9
pycurl                    7.43.0.2         py36h1ba5d50_0
pyflakes                  2.0.0                    py36_0
pygments                  2.3.1                    py36_0
pygpu                     0.7.6            py36h035aef0_0
pylint                    2.2.2                    py36_0
pyodbc                    4.0.25           py36he6710b0_0
pyopenssl                 18.0.0                   py36_0
pyparsing                 2.3.0                    py36_0
pyqt                      5.9.2            py36h05f1152_2
pysocks                   1.6.8                    py36_0
pytables                  3.4.4            py36h71ec239_0
pytest                    4.0.2                    py36_0
pytest-arraydiff          0.3              py36h39e3cac_0
pytest-astropy            0.5.0                    py36_0
pytest-doctestplus        0.2.0                    py36_0
pytest-openfiles          0.3.1                    py36_0
pytest-remotedata         0.3.1                    py36_0
python                    3.6.7                h0371630_0
python-dateutil           2.7.5                    py36_0
python-libarchive-c       2.8                      py36_6
pytorch                   0.4.1            py36ha74772b_0
pytz                      2018.7                   py36_0
pywavelets                1.0.1            py36hdd07704_0
pyyaml                    3.13             py36h14c3975_0
pyzmq                     17.1.2           py36h14c3975_0
qt                        5.9.7                h5867ecd_1
qtawesome                 0.5.3                    py36_0
qtconsole                 4.4.3                    py36_0
qtpy                      1.5.2                    py36_0
readline                  7.0                  h7b6447c_5
requests                  2.21.0                   py36_0
rope                      0.11.0                   py36_0
ruamel_yaml               0.15.46          py36h14c3975_0
scikit-image              0.14.1           py36he6710b0_0
scikit-learn              0.20.1           py36h4989274_0
scipy                     1.1.0            py36hfa4b5c9_1
seaborn                   0.9.0                    py36_0
secretstorage             3.1.0                    py36_0
send2trash                1.5.0                    py36_0
setuptools                40.6.3                   py36_0
simplegeneric             0.8.1                    py36_2
singledispatch            3.4.0.3                  py36_0
sip                       4.19.8           py36hf484d3e_0
six                       1.12.0                   py36_0
snappy                    1.1.7                hbae5bb6_3
snowballstemmer           1.2.1                    py36_0
sortedcollections         1.0.1                    py36_0
sortedcontainers          2.1.0                    py36_0
sphinx                    1.8.2                    py36_0
sphinxcontrib             1.0                      py36_1
sphinxcontrib-websupport  1.1.0                    py36_1
spyder                    3.3.2                    py36_0
spyder-kernels            0.3.0                    py36_0
sqlalchemy                1.2.15           py36h7b6447c_0
sqlite                    3.26.0               h7b6447c_0
statsmodels               0.9.0            py36h035aef0_0
sympy                     1.3                      py36_0
tblib                     1.3.2                    py36_0
tensorboard               1.12.1           py36he6710b0_0
tensorflow                1.12.0          mkl_py36h69b6ba0_0
tensorflow-base           1.12.0          mkl_py36h3c3e929_0
termcolor                 1.1.0                    py36_1
terminado                 0.8.1                    py36_1
testpath                  0.4.2                    py36_0
theano                    1.0.3            py36hfd86e86_0
tk                        8.6.8                hbc83047_0
toolchain                 2.4.0                         0    conda-forge
toolchain_c_linux-64      2.4.0                         0    conda-forge
toolchain_cxx_linux-64    2.4.0                         0    conda-forge
toolz                     0.9.0                    py36_0
torchvision               0.2.1                    py36_0
tornado                   5.1.1            py36h7b6447c_0
tqdm                      4.28.1           py36h28b3542_0
traitlets                 4.3.2                    py36_0
typed-ast                 1.1.0            py36h14c3975_0
unicodecsv                0.14.1                   py36_0
unixodbc                  2.3.7                h14c3975_0
urllib3                   1.24.1                   py36_0
wcwidth                   0.1.7                    py36_0
webencodings              0.5.1                    py36_1
werkzeug                  0.14.1                   py36_0
wheel                     0.32.3                   py36_0
widgetsnbextension        3.4.2                    py36_0
wrapt                     1.10.11          py36h14c3975_2
wurlitzer                 1.0.2                    py36_0
xlrd                      1.2.0                    py36_0
xlsxwriter                1.1.2                    py36_0
xlwt                      1.3.0                    py36_0
xz                        5.2.4                h14c3975_4
yaml                      0.1.7                had09818_2
zeromq                    4.2.5                hf484d3e_1
zict                      0.1.3                    py36_0
zlib                      1.2.11               h7b6447c_3
zstd                      1.3.7                h0b5b093_0
Thanks

Tf.contrib is deprecated and will be removed at the next tf release (just so you know) . Maybe you can ask your question to the author of the loss function?

So the loss function that i try to use is deprecated? is there a replacement for triplet semi hard loss?

https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
Also, issues should be used if you are certain that the mistake is in the keras codebase. Since you didn't write the loss function yourself, it is possible that the mistake is in the loss function, and not in keras itself.

authors: gabrieldemarmiesse thebeancounter


text:
Header model evaluation data encoding issue, failing with JEP

Hi @kermitt2
The header model evaluation data has some odd characters in grobid-trainer/resources/dataset/header/evaluation/headers/322._499236.header which causes issues later on (see below). It is the line after the first 2n 2n...:
tilings tilings t ti til tili s gs ngs ings BLOCKEND LINEEND SAMEFONT SAMEFONTSIZE 0 0 0 NOCAPS NODIGIT 0 0 0 0 0 0 0 0 0 0 NOPUNCT 0 0
of of o of of of f of of of BLOCKSTART LINESTART SAMEFONT SAMEFONTSIZE 0 0 0 NOCAPS NODIGIT 0 0 1 0 0 0 0 0 0 0 NOPUNCT 0 0
a a a a a a a a a a BLOCKIN LINEIN SAMEFONT SAMEFONTSIZE 0 0 0 NOCAPS NODIGIT 1 0 1 0 0 0 0 0 0 0 NOPUNCT 0 0
2n 2n 2 2n 2n 2n n 2n 2n 2n BLOCKIN LINEIN SAMEFONT SAMEFONTSIZE 0 0 0 NOCAPS CONTAINSDIGITS 0 0 0 0 0 0 0 0 0 0 NOPUNCT 0 0
񮽙 񮽙 ? 񮽙 񮽙 񮽙 ? 񮽙 񮽙 񮽙 BLOCKIN LINEIN SAMEFONT HIGHERFONT 0 0 0 ALLCAP NODIGIT 0 0 0 0 0 0 0 0 0 0 NOPUNCT 0 0
2n 2n 2 2n 2n 2n n 2n 2n 2n BLOCKIN LINEIN SAMEFONT LOWERFONT 0 0 0 NOCAPS CONTAINSDIGITS 0 0 0 0 0 0 0 0 0 0 NOPUNCT 0 0

The related section from grobid-trainer/resources/dataset/header/evaluation/tei/header317.tei doesn't seem to show the same encoding issue.
are all domino tilings of a 2n fi 2n chessboard

This is then failing with the JEP integration, trying to set the input variable.
Jul 26, 2019 11:53:33 AM org.grobid.core.jni.DeLFTModel$LabelTask call
SEVERE: DeLFT model labelling via JEP failed
Labeling took: 9 msjep.JepException: <class 'UnicodeDecodeError'>: utf-8

        at jep.Jep.set(Native Method)
        at jep.Jep.set(Jep.java:786)
        at org.grobid.core.jni.DeLFTModel$LabelTask.call(DeLFTModel.java:87)
        at org.grobid.core.jni.DeLFTModel$LabelTask.call(DeLFTModel.java:66)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

(ignore line numbers, as I have made changes to add debug info)
Loading the file from Python works fine. It does show the characters being in an odd range:
>>> Path('grobid-trainer/resources/dataset/header/evaluation/headers/322._499236.header').read_text(encoding='utf-8').splitlines()[33]
'\U0006ef59 \U0006ef59 ? \U0006ef59 \U0006ef59 \U0006ef59 ? \U0006ef59 \U0006ef59 \U0006ef59 BLOCKIN LINEIN SAMEFONT HIGHERFONT 0 0 0 ALLCAP NODIGIT 0 0 0 0 0 0 0 0 0 0 NOPUNCT 0 0'

I suppose there are two solutions:

fix the data as that seems to be an incorrect character
let Python load the data from the file that is generated anyway

I merged the fix of PR  #468 ! Thanks a lot @de-code


text:
Implement module packing using ncc

Reason has been brought up in https://github.com/kevin-david/zipalign-sign-android-release/pull/13#issuecomment-2268309804

I know it seems like a lot of changes, this is basically what I did:

added ncc package to the testing workflow
added ncc to the build process in packages.json (replacing tsc)
since ncc uses /lib/index.js i renamed /lib/main.js to that in action.yml
deleted all files in /lib other than the single index.js file which gets generated
removed the check in the testing workflow which checks if there's any lingering commits not comitted because ncc output changes due to randomization and that causes false positive of missed-build ec4e34200817ce2ca5c7108e2fb32c728a88191e

things to mention:

i don't really know what jest is or if it's still needed, it seems to be 5yr old testing remnants but it seems the workflow does the job instead (?)
i don't know if eslint is even needed since ncc does it's own thing with source formatting as it's job is to pack all modules into a single file so i don't know if we really need it
what's .husky/pre-commit?

in general i do think we could debloat this repository a lot from all the mostly useless quirks / packages, let me know what your thoughts.
also if it wasn't clear from my last comment, right now this repository upstream is non-functional, meaning any workflow targetting this action from main or 2.0.0 won't work which is why this merge is kind of urgent.
and last but not least, let's be consistent on our versioning scheme, is it v2.0.0 or v2? latest tag and readme aren't the same.

side question - could i become a maintainer?

Are we doing a new release candidate? @kevin-david

@Yakov5776 just pushed it and created two tags, v2.0.1 and v2

removed the check in the testing workflow which checks if there's any lingering commits not comitted because ncc output changes due to randomization and that causes false positive of missed-build ec4e342

I would like to figure this out somehow. I don't love the idea of having to review generated javascript (error prone / supply chain attacks). Maybe we just leave /lib out except in release branches/commits? Not sure, still thinking about it.

i don't know if eslint is even needed since ncc does it's own thing with source formatting as it's job is to pack all modules into a single file so i don't know if we really need it

eslint was set up to establish consistent/automatic following conventions in the .ts files

what's .husky/pre-commit?

this is what's called a pre commit hook (along with some tooling) so all commits follow the same style - just makes for easier reviews & less arguments about style 😄

I would like to figure this out somehow. I don't love the idea of having to review generated javascript (error prone / supply chain attacks). Maybe we just leave /lib out except in release branches/commits? Not sure, still thinking about it.

I don't like that idea either, but in terms of the extent of ncc customization, i don't see a way in making it produce consistent results across the board.

I'm just brainstorming. Maybe potentially have a different branch for distribution which automatically merges any changes from development/main branch powered by a workflow and does the building by itself and only that branch will even have the lib folder. @kevin-david what do you think? also is it possible to create releases/tags from a non-default branch?

Turns out other people have run into this problem: https://github.com/vercel/ncc/issues/831
https://github.com/kevin-david/zipalign-sign-android-release/pull/19 fixes it, between my machine and Actions at least. If you run npm run build locally do you have any pending changes now?

oh sick, let me try

#19 fixes it, between my machine and Actions at least. If you run npm run build locally do you have any pending changes now?

Yup it works, you might want to add a .gitattributes to the repository like * text=auto eol=lf because my Windows machine wants to encode it to CRLF.

#19 fixes it, between my machine and Actions at least. If you run npm run build locally do you have any pending changes now?

Yup it works, you might want to add a .gitattributes to the repository like * text=auto eol=lf because my Windows machine wants to re-encode it to CRLF.

Good idea - https://github.com/kevin-david/zipalign-sign-android-release/pull/21


text:
allow_playback_repeats

Ruby VCR has a Cassette option allow_playback_repeats. Any chance this can be added to vcrpy?

PRs welcome

authors: IvanMalison tysonholub


text:
Eureka flowchart

I think it would be useful to have some kind of flow chart or visual guide to all of the moving pieces in eureka, because there are a lot! It doesn't have to be super fancy, just something that outlines what's done in S1, S2, S3, and what tools are available in S4 and S5.

Totally, thanks!! I was also thinking of something like these stage processing flowcharts but ours would be by instrument, rather than observation type... I think

Did PR #442 adequately resolve this issue? The new flowcharts are at https://eurekadocs.readthedocs.io/en/latest/stages.html

Marking this as closed now given the above PR, but feel free to reopen if you feel there is still more work to be done here