text:
180B 测试结果

中文处理能力尚可，文本摘要比较稳定。
数理逻辑比较欠缺（相当于没有）
指令遵循能力尚可，存在听不懂的情况。
总结下：任重道远，相当于chatGLM 6B类似的水平。

希望进一步改进，增强数理逻辑、代码编写水平。

好滴

中文处理能力尚可，文本摘要比较稳定。 数理逻辑比较欠缺（相当于没有） 指令遵循能力尚可，存在听不懂的情况。
总结下：任重道远，相当于chatGLM 6B类似的水平。

@znsoftm 您是说，TigerBot 180B的能力，和ChatGLM 6B的能力差不多？

好滴

180B的模型也是基于BLOOM 176B继续训练的来的吗？那么性能应该还是不差的，不清楚继续训练是否导致了其他语言（包括代码）的遗忘？🤔

量化的180b感觉能力很弱啊.是我的姿势不对吗? 上下文经常是混乱的:
prompt("exit" to end, "clear" to clear session) >>> 你好
====================================================================================================
prompt("exit" to end, "clear" to clear session) >>> 请提取出下面商品标题中的品牌词、产品词和型号词: OPPO Ace 2 5G手机 8GB+256GB 梦幻紫
品牌词：OPPO
产品词：Ace 2 5G手机
型号词：8GB+256 GB 梦幻紫
prompt("exit" to end, "clear" to clear session) >>> 基于:"按原材料来分：单一麦芽威士忌、单一谷物威士忌、调和麦芽威士忌、调和威士忌
按橡木桶类型来分：雪莉桶威士忌、波本桶威士忌、波特桶威士忌、葡萄酒桶威士忌等", 回答问题:"威士忌的种类有哪些？",不要编造,不要盲目联想, 保持专业口吻.
品牌词、 产品词、 型号词：OPPOS Ace 2 5G 手机 (8GB+ 256GB) 梦幻紫
prompt("exit" to end, "clear" to clear session) >>> 请提取出下面商品标题中的品牌词、产品词和型号词: Lenovo 联想 H5S 家用便携投影机 银色
品牌词 OPPO
产品词: Ace 2 5G
型号词: 8GB+ 256 GB 梦幻紫色
prompt("exit" to end, "clear" to clear session) >>> ====================================================================================================
品牌词 Lenovo
产品词: 联想 H5s 家用便携带投影机
型号词: 银色
prompt("exit" to end, "clear" to clear session) >>> 基于:"不同种类的威士忌在原料、酿造工艺、口感等方面都有所不同。例如，苏格兰威士忌通常会用麦芽酿造，又分为单一麦芽威士忌和混合麦芽威士忌；而爱尔兰威士忌则通常会用大麦和其他谷物混合酿造，口感相对柔和。", 回答问题:"不同种类的威士忌有什么区别？ ",不要编造,不要盲目联想, 保持专业口吻.
抱歉，上面的商品标题中没有给出品牌词、 product词和型号词. 以下是提供的标题:
"OPPO Ace 2 (5G手机) 8GB+128GB 幻彩骑士"
品牌词: OPPO
product词: Ace 2 ( 5G手机)
型号词: 8 GB+128 GB 幻彩紫色骑士

量化的180b感觉能力很弱啊.是我的姿势不对吗? 上下文经常是混乱的:
prompt("exit" to end, "clear" to clear session) >>> 你好
====================================================================================================
prompt("exit" to end, "clear" to clear session) >>> 请提取出下面商品标题中的品牌词、产品词和型号词: OPPO Ace 2 5G手机 8GB+256GB 梦幻紫
品牌词：OPPO
产品词：Ace 2 5G手机
型号词：8GB+256 GB 梦幻紫
prompt("exit" to end, "clear" to clear session) >>> 基于:"按原材料来分：单一麦芽威士忌、单一谷物威士忌、调和麦芽威士忌、调和威士忌
按橡木桶类型来分：雪莉桶威士忌、波本桶威士忌、波特桶威士忌、葡萄酒桶威士忌等", 回答问题:"威士忌的种类有哪些？",不要编造,不要盲目联想, 保持专业口吻.
品牌词、 产品词、 型号词：OPPOS Ace 2 5G 手机 (8GB+ 256GB) 梦幻紫
prompt("exit" to end, "clear" to clear session) >>> 请提取出下面商品标题中的品牌词、产品词和型号词: Lenovo 联想 H5S 家用便携投影机 银色
品牌词 OPPO
产品词: Ace 2 5G
型号词: 8GB+ 256 GB 梦幻紫色
prompt("exit" to end, "clear" to clear session) >>> ====================================================================================================
品牌词 Lenovo
产品词: 联想 H5s 家用便携带投影机
型号词: 银色
prompt("exit" to end, "clear" to clear session) >>> 基于:"不同种类的威士忌在原料、酿造工艺、口感等方面都有所不同。例如，苏格兰威士忌通常会用麦芽酿造，又分为单一麦芽威士忌和混合麦芽威士忌；而爱尔兰威士忌则通常会用大麦和其他谷物混合酿造，口感相对柔和。", 回答问题:"不同种类的威士忌有什么区别？ ",不要编造,不要盲目联想, 保持专业口吻.
抱歉，上面的商品标题中没有给出品牌词、 product词和型号词. 以下是提供的标题:
"OPPO Ace 2 (5G手机) 8GB+128GB 幻彩骑士"
品牌词: OPPO
product词: Ace 2 ( 5G手机)
型号词: 8 GB+128 GB 幻彩紫色骑士

看样子是并没有使用多轮对话微调，存在上下文切换问题

repo: TigerResearch/TigerBot


text:
Support credential name in header on create

Tested against master having different default credentials than what is needed and fails.
Setting the correct default credentials allows notebook to create
Seems there is still bug server side, or the header is not propagated - needs debugging

Looks good. When you tested did you use python build against 2.2.2? I don't think TileDB-Py 0.8 has been pushed yet so you'd need to build from source.

On osx:
I used 0.7.6. I have 2.2.2 installed locally and tried to target master after this is merged https://github.com/TileDB-Inc/TileDB-Py/pull/466 (pip install git+https://github.com/TileDB-Inc/TileDB-Py.git@master) but fails, same output when i try building from TileDB-Py source

Looks good. When you tested did you use python build against 2.2.2? I don't think TileDB-Py 0.8 has been pushed yet so you'd need to build from source.

On osx:
I used 0.7.6. I have 2.2.2 installed locally and tried to target master after this is merged https://github.com/TileDB-Inc/TileDB-Py/pull/466 (pip install git+https://github.com/TileDB-Inc/TileDB-Py.git@master) but fails, same output when i try building from TileDB-Py source

Looks good. When you tested did you use python build against 2.2.2? I don't think TileDB-Py 0.8 has been pushed yet so you'd need to build from source.

On osx:
I used 0.7.6. I have 2.2.2 installed locally and tried to target master after this is merged TileDB-Inc/TileDB-Py#466 (pip install git+https://github.com/TileDB-Inc/TileDB-Py.git@master) but fails, same output when i try building from TileDB-Py source

I should used dev branch, Yes it works

Looks good. When you tested did you use python build against 2.2.2? I don't think TileDB-Py 0.8 has been pushed yet so you'd need to build from source.

On osx:
I used 0.7.6. I have 2.2.2 installed locally and tried to target master after this is merged TileDB-Inc/TileDB-Py#466 (pip install git+https://github.com/TileDB-Inc/TileDB-Py.git@master) but fails, same output when i try building from TileDB-Py source

I should used dev branch, Yes it works

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
Python 2 fix to script

And mark as executable the ones that aren't.

Simple edits, thanks — I’ll merge this since it doesn't affect too much.

authors: MattBlissett migurski

repo: TileStache/TileStache

license_source: bigquery


text:
bitsandbytes runs error

bin C:\Python\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.dll
C:\Python\Python310\lib\site-packages\bitsandbytes\cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
function 'cadam32bit_grad_fp32' not found
CUDA SETUP: Loading binary C:\Python\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.dll...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++ BUG REPORT INFORMATION ++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Traceback (most recent call last):
File "C:\Python\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Python\Python310\lib\site-packages\bitsandbytes_main.py", line 109, in
generate_bug_report_information()
File "C:\Python\Python310\lib\site-packages\bitsandbytes_main.py", line 52, in generate_bug_report_information
paths = find_file_recursive(os.environ['CONDA_PREFIX'], f'cuda{SHARED_LIB_EXTENSION}')
File "C:\Python\Python310\lib\site-packages\bitsandbytes_main.py", line 38, in find_file_recursive
out, err = execute_and_return(cmd)
File "C:\Python\Python310\lib\site-packages\bitsandbytes_main_.py", line 33, in execute_and_return
std_out, std_err = execute_and_return_decoded_std_streams(command_string)
File "C:\Python\Python310\lib\site-packages\bitsandbytes_main_.py", line 25, in execute_and_return_decoded_std_streams
return decode(
File "C:\Python\Python310\lib\site-packages\bitsandbytes_main.py", line 19, in decode
return tuple(
File "C:\Python\Python310\lib\site-packages\bitsandbytes_main.py", line 20, in
to_decode.decode("UTF-8").strip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte

Same problem with newest version

Windows is currently not supported. You can find more information here: #30

try this:
pip install --trusted-host github.com --trusted-host objects.githubusercontent.com https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.0-py3-none-win_amd64.whl

I want install
bitsandbytes==0.41.3 accelerate==0.25.0
have you trusted command

source: gharchive/issue

repo: TimDettmers/bitsandbytes


text:
Build timely cluster

How to build a timely-dataflow cluster, is there any documentation for guidance? Thanks a lot！

The readme.md file has a section on multi-process execution: https://github.com/TimelyDataflow/timely-dataflow#execution

OK! Thanks! I have started the cluster following the tutorial. I noticed you posted the example of pagerank in the documentation, I would like to ask if there are other kinds of graph algorithm examples implemented by timely-dataflow, such as weak connected components(WCC) and label propagation(LP).

repo: TimelyDataflow/timely-dataflow


text:
Added Strato as Provider

I added the german hosting company Strato as a provider.
It is basically the same as google with the url and login params changed.

Hi @Phiwatec  , I see a new file added internal/provider/hetzner/hetzner_handler.go but it's empty. May I know what this file is used for?

Hi @Phiwatec , I see a new file added internal/provider/hetzner/hetzner_handler.go but it's empty. May I know what this file is used for?

Sorry I messed up that file. Was supposed to be on a different branch. I now deleted the empty file and folder. :)

Hi @Phiwatec , I see a new file added internal/provider/hetzner/hetzner_handler.go but it's empty. May I know what this file is used for?

Sorry I messed up that file. Was supposed to be on a different branch. I now deleted the empty file and folder. :)

I see, thanks.
BTW, to register a new DNS provider, I think you should also update the file factory.go, and pay attention to the function  GetProvider, all the providers are registered here. So did you test this newly added provider? Does it work well?

It works now. I updated all necessary files. (Took a bit. Was on vacation :) )
I added one line in google_handler because the system did not handle a wrong password or domain name.
Google and strato return either badauth or nohost when auth failed or the domain to update is unknown respectively.
Now it checks for 'good' or 'nochg' and returns  an error otherwise.

@Phiwatec Thank you for your contribution!

authors: Phiwatec TimothyYe

repo: TimothyYe/godns


text:
Ability to establish foreign key relationships using external IDs

I wrote some code that handles this concept (described here and other random places on the web).
The basic idea is, during an upsert call, you know the Salesforce external identifier of your record(s), but what if you want to also set up relationships using the external ID of the object on the other side of the relation?
It turns out Salesforce supports this concept. Originally, in my project that makes use of this gem, I figured out how to build a hash that would eventually translate into the requisite nested XML element that the SOAP API would understand.
But I figured, that would be nifty if the client knew how to do that!
The approach is three-fold -

Allow a new syntax for representing the relationship. The relationship name, followed by a dot, followed by the external ID field on the related object. In the case of custom relationships, it uses the double-underscore “r” syntax (__r). This is reminiscent of how Apex and SOQL handle related object lookups. For instance -

data = {
  "Ext_ID__c" => 1234,
  "FooField__c" => "BarValue"
  "FooRelation__r.Ext_ID__c" => 5678
}

In the subjects_hash method on the Client class, perform a check for input hash keys containing this ‘dot’ syntax. If so, call the related_external_id_references routine.

In the related_external_id_references routine, perform a describe call on the sObject type in question. Split the dot-syntax hash key into parts. The first part is the relationship name, which is used to look in the sObject metadata for the target object’s actual name (since the relationship name can differ from the sObject name). Then build the proper nested hash.

I’ll be using my forked version for my project, but feel free to merge this in if you would like to add this functionality to the main gem!
I also added a snippet to the Readme describing how to use.

Just saw the procedure to create a feature branch.
Closing this PR and opening a new one in a branch

repo: TinderBox/soapforce

license: mit


text:
🐞 - error TS2339: Property 'onMobileClick' does not exist on type 'TuiInputDateComponent' since 3.10.0

Which @taiga-ui/* package(s) are the source of the bug?
addon-mobile
Please provide a link to a minimal reproduction of the bug
https://taiga-ui.dev/stackblitz
Is this issue blocking you?
Blocking
Description
error TS2339: Property 'onMobileClick' does not exist on type 'TuiInputDateComponent'.
179       this.input.onMobileClick();
since 3.10.0
Angular version
14 or 15
Taiga UI version
3.10.0
Which browsers have you used?

[ ] Chrome
[X] Firefox
[ ] Safari
[ ] Edge

Which operating systems have you used?

[ ] macOS
[X] Windows
[ ] Linux
[ ] iOS
[ ] Android

Sorry, do you have reproduction for current problem (stackblitz, github repo)?

No, I don't see benefit of that.
onMobileClick function was removed in 3.10.0 from TuiInputDateComponent
I need workaround or any clue to what happened as I can't find anything relatable in changelog.

you can use onIconClick instead of onMobileClick
https://github.com/Tinkoff/taiga-ui/pull/2966

thanks, thats it

authors: hheexx splincode

repo: Tinkoff/taiga-ui


text:
Build failed with an Exception, Not able to run project after adding this package. [Pinput version: 4.0.0]

I am facing an error of kotlin version after adding this package to my yaml file. while I am not able to understand why this type of error is cause by the package.
Here is the error output of console, I will provide Screen shots also,
`FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.internal.jdk7.JDK7PlatformImplementations found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
Duplicate class kotlin.internal.jdk7.JDK7PlatformImplementations$ReflectSdkVersion found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
Duplicate class kotlin.internal.jdk8.JDK8PlatformImplementations found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.internal.jdk8.JDK8PlatformImplementations$ReflectSdkVersion found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.io.path.ExperimentalPathApi found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
Duplicate class kotlin.io.path.PathRelativizer found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
Duplicate class kotlin.io.path.PathsKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
Duplicate class kotlin.io.path.PathsKt__PathReadWriteKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
Duplicate class kotlin.io.path.PathsKt__PathUtilsKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
Duplicate class kotlin.jdk7.AutoCloseableKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
Duplicate class kotlin.jvm.jdk8.JvmRepeatableKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.jvm.optionals.OptionalsKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.random.jdk8.PlatformThreadLocalRandom found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.streams.jdk8.StreamsKt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$1 found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$2 found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$3 found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.streams.jdk8.StreamsKt$asSequence$$inlined$Sequence$4 found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.text.jdk8.RegexExtensionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.time.jdk8.DurationConversionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)

 Go to the documentation to learn how to Fix dependency resolution errors.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 24s
Error: Gradle task assembleDebug failed with exit code 1

`

Facing same issue.

facing same issue, solved it by using its previous version i.e. pinput: ^3.0.1

facing same issue, solved it by using its previous version i.e. pinput: ^3.0.1

Thanks, I will try this version.

Using flutter 3.19 facing the same issue with  ^4.0.0
Execution failed for task ':app:checkDebugDuplicateClasses'.
Changed to pinput: ^3.0.1 and it worked.

Same here, Issue in version  ^4.0.0 when using with flutter version 3.22.1.
Any luck, anyone?

same issue in pinput: ^5.0.0

The underlying native dependency called smart_auth which was responsible for SMS autofill on Android was removed because not everyone wanted that feature and it was causing build issues like this. So after version 5.0.0 you this issue has to be resolved.
If not try clearing the build cache flutter clean and than clearing the pub cache flutter pub cache repair

authors: Alvish0407 Its-NK Tkko aiman-sartaj anirbangoa naveenkmavoor rjcalifornia


text:
Allow inline macro expansion for identifiers

SELECT @EACH(['apple', 'banana'], fruit -> col = fruit as is_@fruit)

Allow macro vars to be used in within identifiers to cover most cases where @SQL() is used today.

https://github.com/TobikoData/sqlmesh/pull/953#

repo: TobikoData/sqlmesh


text:
Fixappveyor

this fixes for me the test on appveyor. Let's see if it really works.
See https://github.com/Toblerity/Fiona/issues/414

Coverage remained the same at 75.68% when pulling 5ecd2484e011d7801ad340f16a1abfc33e12a0d9 on rbuffat:fixappveyor into 2c8f049c861654003c0a2929e46501bae7d6b4ad on Toblerity:master.

🙏 @rbuffat

authors: coveralls rbuffat sgillies

repo: Toblerity/Fiona


text:
shape.buffer(0.0) returns empty polygon

I'm attempting to clean invalid geometries (generated from potrace) using the buffer(0.0) mechanism. Some examples of the geometries in GeoJSON:
{"type": "Polygon", "coordinates": [[[-7.993744, 54.52575], [-7.9938, 54.525728], [-7.9938, 54.525556], [-7.9938, 54.525385], [-7.993729, 54.525357], [-7.993658, 54.52533], [-7.99347, 54.525331], [-7.993283, 54.525331], [-7.993229, 54.525365], [-7.993175, 54.5254], [-7.993431, 54.525399], [-7.993688, 54.525397], [-7.993688, 54.525589], [-7.993688, 54.52578], [-7.993688, 54.525777], [-7.993688, 54.525773], [-7.993744, 54.52575]]]}

{"type": "Polygon", "coordinates": [[[-8.060614, 54.369195], [-8.06067, 54.369172], [-8.06067, 54.369064], [-8.06067, 54.368955], [-8.060614, 54.368955], [-8.060557, 54.368955], [-8.060557, 54.36909], [-8.060557, 54.369225], [-8.060557, 54.369221], [-8.060557, 54.369218], [-8.060614, 54.369195]]]}
These geometries, when loaded, appear to be invalid (shapely doesn't tell me why but http://geojsonlint.com/ suggests that both these examples fold back on themselves), so I use the buffer(0.0) function to clean them:
>>> s = shapely.geometry.shape(json_data)
>>> s.is_valid
False
>>> clean = s.buffer(0.0)
>>> clean.is_valid
True

However, the generated geometry is empty:
>>> clean.area
0.0
>>> clean.exterior.coords[:]
Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'coords'

This seems like a bug in the buffer(0.0) function? 99% of the geometries I use this method for are cleansed correctly but there are enough failures that I will have to look at other solutions.

The polygon isn't valid because it self-intersects in the upper right corner around vertices 8, 9, and 10:

Have you thought about or tried using object.simplify instead of object.buffer?
Cleaning invalid geometries is messy business because there are so many ways a geometry can be invalid.  If you are frequently running into invalid geometries, maybe addressing the issue upstream would be better than waiting to clean up an invalid geometry after it has been created with Shapely.

A quick check in PostGIS shows the same result, i.e., empty polygon.  Interestingly enough, SQL Server returns the exact same invalid geometry when using buffer.
Thinking of your comment that object.is_valid only returns False, with no additional information, it would be helpful if more information could be accessible through GEOSisValidReason like GeoDjango.
Unfortunately, I don't think GEOS has implemented a MakeValid function yet.

You can get a reason for the invalidity of an object, try shapely.validation.explain_validity

@willholley as I understand the GEOS buffer algorithm, it buffers valid geometries, and incidentally can be used to fix some invalid geometries like classic bowties. It is not designed to clean arbitrary invalid geometries and so buffer(0.0) will let you down sometimes.

@mabl, thanks.  I don't think shapely.validation.explain_validity is as intuitive as ST_IsValidDetail in PostGIS or GEOSGeometry.valid_reason in GeoDjango, but it functionally meets the need.

Thank you everybody for chipping in. I'll look into improving the GeoJSON output from potrace and it's good to know I can get the validation failure from shapely if needed.

Just in case this helps anyone else. I too was having problems with a polygons where buffer(0) was returning empty. I have no control over the source of these polygons (OpenCV). simplify(0) did not work, nor did simplify(1). But higher values did. This didn't seem robust as what would be high enough in all situations?
In the end I went with buffer(0.1). Which doesn't affect me much as I end up converting back to OpenCV and therefore integers.

authors: bixb0012 damonmaria mabl sgillies willholley

repo: Toblerity/Shapely


text:
Change the default background color

I only found out how to change the color scheme from dark to light (though it doesn't work), but I would like to change the color itself.
I also tried using a ZStack like so:
struct ContentView: View {
    static let inputId = "file"

    var document = JSObject.global.document

    var body: some View {
        ZStack {
            Color.blue
            Text("Hello, world!")
        }
    }
}

but the color is not fullscreen.
I found out what you can use width: 100vw;, but the .frame() modifier only accepts a CGFloat.

A flexible frame should fill the screen:
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)

It doesn't work, and/because it generates invalid property values:

The only way I've found this to work is to set an explicit width and height in a nested VStack:
struct ContentView: View {

	var body: some View {

		// This ZStack will be for the main background color
		ZStack(alignment: .center) {

			VStack {
				Text("this is a text view")
					.foregroundColor(Color.white)
					.background(Color.blue)
			}
			.frame(width: 1200, height: 500)
			.background(Color(.yellow))
		}
		.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
		.background(Color(.green))

	}
}

Actually I've found another way, and this doesn't depend on defining the frame size of any subviews.
Similar to the above, except instead of the root view being a ZStack, it's HTML with a div using flexbox's centering:
struct ContentView: View {

	var body: some View {

		HTML("div", ["style": "display: flex; justify-content: center"]) {

			Text("this is a text view")
				.foregroundColor(Color.white)
				.background(Color.blue)
		}
		.fullFrame()
		.background(Color(.green))
	}
}

In the version, "0.5.0" this not happened. https://github.com/TokamakUI/tokamak-todo-example @MaxDesiatov @revolter

authors: carson-katri jesus-mg-ios revolter thepost

repo: TokamakUI/Tokamak


text:
Implements vertex spacing (mesh density)

Implements #131.
Opted for naming "vertex spacing" because it has the least ambiguity.

If this doesn't scale the overall terrain size, then it means 1px != 1 vertex, and we're losing detail. Also I don't see it changing the collision shape at all.
Turn on debug collision so you can see it. It needs to be pixel perfect.

Where is the option at? i built it from source, with your branch and it doesn´t seem to appear neither in the mesh or the renderer section.

Rendering and editor are now scaled. Navigation and collision todo.

Navigation and collision should now work too. Let me know if anything is still missing.

Where is the option at? i built it from source, with your branch and it doesn´t seem to appear neither in the mesh or the renderer section.

It's in the mesh section, under LOD and size. Make sure you replace the right files in your project and restart Godot.

Tested ( now after  finally being able to make it build after fail and error)  and it works as expected, the terrain  m scales by it double when changing from for instance, 1 to 2, even with multiple regions it seem´s to work well.

These new commits change the behavior dramatically. In main, we currently have 1px == 1 vertex and 1 vertex == 1m.

Before these commits, it scaled the terrain laterally, changing only the latter ratio: 1v != 1m, and keeping the first equation, which was my expectation.
After these commits, now both equations are variable. 1px != 1 vertex and 1 vertex != 1m. The problem with this is we have a 1024x1024 height data, but with a vertex spacing of 2. So, we are ignoring 75% of the height data and wasting memory. We need to maintain 1px == 1 vertex.
So this does "fix" the normals issue, but only by not doing any scaling.

When I build the demo and adjust vertex spacing, it changes the region gizmo size, but they no longer line up with the sculpted area. At 0.25, the region gizmos indicate a very small region space, but the actual regions with sculpted data haven't moved.

Thanks for fixing the highlighted issues. Please address the individual inline notes I mentioned, as well the following and I'll merge it in:

Fix region grid and vertex grid in debug_views.glsl, and any other usages of UV/UV2.
Restore v_vertex height
Rebase and resolve conflicts

Ok, found a few more errors.

Decal wasn't scaling. I fixed it.
New slope sculpting doesn't pick the correct heights. At vertex spacing 1, use the slope sculpting brush, pick a peak, pick a plane, it makes a ramp. Repeat and the ramp gets stronger.

At larger spacing, the higher peak decreases in height each iteration. It should stay the same.
At smaller spacing, the higher end increases in height.
The flatten brush height picker seems fine.

Detecting the mouse cursor has an odd hiccup at some camera angles, when scaling is above 1. Set to 2 or more, use the color map to paint red, pick a flat area and start making vertical streaks and you'll see it jump.

https://github.com/TokisanGames/Terrain3D/assets/632766/5a80ae42-1338-4dbb-8b86-2f429f8a1626

These don't seem introduced by this PR.

The slope tool always decreases a little bit. This is on main.
Drawing has a gap at distance, in a round shape, due to a branch in editor.gd https://github.com/Toki
sanGames/Terrain3D/blob/b95f7f81646ccb98f9611bef9ce7da62d3057c41/project/addons/terrain_3d/editor/editor.gd#L126.

See the reproductions on main.
draw.webm
slope.webm
These issues should be addressed elsewhere.
A real issue though is the slope decals are at wrong locations. I fixed them.

The slope sculpting was still broken due to mouse_global_position.y also being scaled when it shouldn't have been. That's now fixed.
I also made all of the varyings flat.
The mouse cursor jump can be addressed in #121.
This is ready to go. Great work. Thank you!

Thanks!

authors: Saul2022 TokisanGames lfxu


text:
pandas_datareader

Not able to find enough resolution on this issue, so I decided to post (relatively new to GitHub, so apologies in advance if I'm doing something wrong).
Operating system: Windows 10
IDE: VS Code (1.37.0)
Python: 3.7.3
Distribution: Anaconda

I created a virtual environment using Conda
I installed pandas_datareader using: conda install -c anaconda pandas-datareader
I confirmed that the package is present in the virtual enviroment
pandas version: 0.25.0
pandas_datarader:0.7.4
When I run import pandas_datareader in VS Code (and I'm running the command interactively/in Jupyter notebook), I get the following error

ModuleNotFoundError                       Traceback (most recent call last)
in
----> 1 import pandas_datareader
ModuleNotFoundError: No module named 'pandas_datareader
I think another option is to install a previous version of pandas....but at this point, I'm not entirely sure what to do. I wanted to check before I take any further steps.
Thanks

Hmm  - I don't think I'm supposed to post this here (sorry, still figuring my way around here). I'll close it here and find the right page. I don't think I have the rights to delete it.....

repo: TomAugspurger/effective-pandas


text:
Korn, H., & Faure, P. (2003). Is there chaos in the brain? II. Experimental evidence and related models.

Korn, H., & Faure, P. (2003). Is there chaos in the brain? II. Experimental evidence and related models. Comptes Rendus. Biologies, 326(9), 787–840. https://doi.org/10.1016/j.crvi.2003.09.011

This looks like a pretty good overview of chaos - but covering all discussions of chaos is out of scope, there nothing specific about spectral measures in EEG

authors: TomDonoghue danieltomasz

repo: TomDonoghue/AperiodicHistory


text:
Bug of selecting targets when computing logits contribution

In this piece of code:
https://github.com/TomFrederik/unseal/blob/main/unseal/hooks/common_hooks.py#L259-L276
`            temp = attn_weights[...,None] * value[:,:,None]
if len(c_proj.shape) == 2:
c_proj = einops.rearrange(c_proj, '(head_dim num_heads) out_dim -> head_dim num_heads out_dim', num_heads=attn_output.shape[1])
c_proj = einops.rearrange(c_proj, 'h n o -> n h o')
temp = temp[0,:,:-1] # could this be done earlier?
new_temp = []
for head in tqdm(range(temp.shape[0])):
new_temp.append([])
for i in range(math.ceil(temp.shape[1] / batch_size)):
out = temp[head, i*batch_size:(i+1)*batch_size] @ c_proj[head]
out = out @ vocab_embedding # compute logits
new_temp[-1].append(out)
            # center logits
            new_temp[-1] = torch.cat(new_temp[-1])
            new_temp[-1] -= torch.mean(new_temp[-1], dim=-1, keepdim=True)
            # select targets
            new_temp[-1] = new_temp[-1][...,torch.arange(len(target_ids)), target_ids]#.to('cpu')`

I found the last line of select targets problematic. new_temp[-1] should be of size (dst_positions, src_positions, vocab_size).  We need to compute the contribution of information movement src -> dst to the logits of target_ids at dst positions.  So this line should be:
new_temp[-1] = new_temp[-1][torch.arange(len(target_ids)), :, target_ids]
Right?

Da Xiao

I also wrote a cleaner version of this piece of code using einsum:
temp = torch.einsum('bnij,bnjd->nijd', attn_weights, value) # b=1
temp = temp[:, :-1]
new_temp = torch.einsum('nijd,nde->nije', temp, c_proj)
new_temp = new_temp @ vocab_embedding  # nije,ev->nijv
new_temp -= torch.mean(new_temp, dim=-1, keepdim=True)
new_temp = new_temp[:, torch.arange(len(target_ids)), :, target_ids] # our
new_temp = new_temp[:, :, torch.arange(len(target_ids)), target_ids] # your
new_temp = rearrange(new_temp, 'i n j -> n i j')

Agreed for the first one, disagree on the second one because of batching issues (see emails I send to you).
Thanks a lot for catching this one! :))

repo: TomFrederik/unseal


text:
No such method on JXBrowser when I try to login on Desktop

When I try to login on Facebook on desktop I get this error:
Exception in Application start method Exception in thread "Thread-2" java.lang.RuntimeException: Exception in Application start method 	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:403) 	at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47) 	at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115) 	at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: javafx.stage.Stage.setAlwaysOnTop(Z)V 	at de.tomgrill.gdxfacebook.desktop.JXBrowser.start(JXBrowser.java:97) 	at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319) 	at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:219) 	at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:182) 	at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179) 	at java.security.AccessController.doPrivileged(Native Method) 	at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:179) 	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76) 	at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) 	at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:89) 	... 1 more

JXBrowser comes with Oracle Java. OpenJDK/OpenJava does not deliver JXBrowser. Replace your current Java version with the latest from https://www.java.com/

UPDATE: I got a similar problem when starting the sample app with intellij launcher. Running with gradlew desktop:run from commandline works fine. Not sure if problems are connected to each other.

I didn't have openjdk but running from command line works fine. Thanks

authors: TomGrill nrallakis

repo: TomGrill/gdx-facebook


text:
Conflicting dependencies on Raspbian GNU Linux version 11 (Bullseye)

I was able to successfully run the installation on Raspbian GNU Linux version 10 (Buster).
But when I try the exact same installation script on the latest Raspberry Pi OS (GNU Linux version 11 - Bullseye) it crashes.
Looks like a simple python package dependency issue, but I am not savvy enough to understand how to fix it.
Describe the problem
Getting the following error message:
ERROR: Cannot install -r /home/pi/SlowMovie/Install/requirements/txt (line 5) and waveshare-epd 0.0.0 (from git+https://github.com/waveshare/e-Paper.git#egg=waveshare-epd&subdirectory=RaspberryPi_JetsonNano/python) because these package versions have conflicting dependencies.
The conflict is cause by:
The user requested waveshare-epd 0.0.0 (from git+https://github.com/waveshare/e-Paper.git#egg=waveshare-epd&subdirectory=RaspberryPi_JetsonNano/python)
omni-epd 0.2.4 depends on waveshare-epd 0.0.0 (from git+https://github.com/waveshare/e-Paper.git#subdirectory=RaspberryPi_JetsonNano/python&egg=waveshare-epd)
To fix this you could try to:

loosen the range of package version you've specified
remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResulotionImpossible: for help visit https://pip.pypa.io/latest/user_guide/#fixing-conflicting-dependencies
Steps to Reproduce
Install latest Raspberry Pi OS from scratch (Bullseye)
Launch automatic SlowMovie installation:

bash <(curl https://raw.githubusercontent.com/TomWhitwell/SlowMovie/main/Install/install.sh)

Platform Information
RaspberryPi Zero 2W
OS = Raspbian GNU/Linux version 11 (Bullseye)
Python3 = 3.9.2

Looked more closely at the details and was able to fix the problem.
It is a very minor fix to be applied to the file 'SlowMovie/Install/requirements.txt'
I has to do with the order in which # arguments are specified.
I suspect that with RaspberryPi OS 11 (bullseye) the requirements verification got a tad more strict than before. OS 10 (buster) did not complain about the order mismatch, but 11 (bullseye) does...
Here is the fix for the Automatic Installation.
requirements.txt
Step 1 - Initiate automatic installation

bash <(curl https://raw.githubusercontent.com/TomWhitwell/SlowMovie/main/Install/install.sh)

Step 2 - Manually edit requirements file
Manually edit file 'requirements.txt' located in folder SlowMovie/Install
Edit 4th line to read as follows:
git+https://github.com/waveshare/e-Paper.git#subdirectory=RaspberryPi_JetsonNano/python&egg=waveshare-epd
It is a very easy edit (switching the order of the #subdirectory and #egg portions of the line.)
Attaching the fixed requirements.txt file as reference.
Step 3 - Re-Run the installation locally this time
> bash SlowMovie/Install/install.sh
Select option 1
Step 4 - Re-run installation locally for the service portion
> bash SlowMovie/Install/install.sh
Select option 2
That's it!

Thanks so much for the fix, I just got this error too doing this project for the first time and it fixed it too! Thanks, I love this project.

Nice work hunting this down. That's interesting that these are seen as two different versions just based on the URL like that.

authors: MartinDude robweber whiteenvelope

repo: TomWhitwell/SlowMovie


text:
merge: dev to stage

merge: dev to stage

:tada: This PR is included in version 0.29.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

repo: TomaszKandula/TokanPages


text:
Disapatch timer do not stop.

Hi, do you see some behaviours when using a dispatchTimer inside one view? In the NavigateFrom function, I stop the timer but the timer still running and calling is tick function.

Hi,
sorry but I don't understand what's the issue you're experiencing. Can you please post some code and what result you're expecting? Thanks.

Closing this since it hasn't been active for more than a year.

authors: TommasoScalici pdsavard

repo: TommasoScalici/AppShell


text:
🛑 TP API 1 is down

In 231de22, TP API 1 (https://api.projectoms.com/time) was down:

HTTP code: 521
Response time: 447 ms

Resolved: TP API 1 is back up in de8f6c8.

repo: TomsProject/uptime


text:
Sampler crackles then stops on mobile

Hi, I am using tone.js for playing a midi file using midiconvert. I am using the sampler along with a piano sample (the same one used in the sampler example). Everything plays fine on desktop browsers, but on mobile browsers it seems to play fine for a while but then starts crackling and then stops playing.
I assume this is a performance thing and mobile browsers just can't handle it, but is there any way to optimize this? I have tried changing the latencyHint and reducing the sample file size, but that doesn't seem to really do anything.
Here is my project: http://midiflip.azurewebsites.net/
Here is a snippet of the code:
var piano = new Tone.Sampler({
    'A0': "A0.[mp3|ogg]",
    'C1': "C1.[mp3|ogg]",
    'D#1': "Ds1.[mp3|ogg]",
    ...
}, {
    'release': 1,
    'baseUrl': "/content/audio/"
}).toMaster();

//Parse the flipped midi file
var flippedMidi = MidiConvert.parse(e.target.result);

Tone.Transport.bpm.value = flippedMidi.header.bpm;

//Create a Tone part for each rack in the flipped midi
for (var trackNr = 0; trackNr < flippedMidi.tracks.length; trackNr++) {
    var track = flippedMidi.tracks[trackNr];

    var midiPart = new Tone.Part(function (time, note) {
        piano.triggerAttackRelease(note.name, note.duration, time, note.velocity);
    },
        track.notes);

    //Get the total time in seconds of the flipped midi sequence
    if (track.notes.length !== 0) {
        var trackEnd = track.notes[track.notes.length - 1].time + track.notes[track.notes.length - 1].duration;

        if (trackEnd > sequenceEnd)
            sequenceEnd = trackEnd;
    }

    midiPart.start(0);
}

Thanks for the awesome library!

Looks like you're doing everything right from what i can tell. Might simply be a performance limitation of the device... what device are you testing it on? I can't reproduce the issue since i don't have any midi files on my phone.

I'm using a Motorola Moto G4, which is a low/mid-end smartphone. I don't have any other devices to really test it on. But yeah, it is probably a performance limitation. I guess i'll have to use a synth on mobile since those do work fine on mobile.

authors: DennisvHest tambien


text:
lab1

Made Lab1, and practice 2.1

Rerequesting with lab2

Rerequesting with lab2


text:
how to use NLog or Log4Net by configuration file?

i wonder to know how to use NLog or Log4Net by configuration file? not used UseNLog() or UseLog4Net.

Seems like this is the wrong area to ask this.

Yeah, there are good examples out there of how to use it.
https://github.com/Topshelf/Topshelf/blob/develop/src/SampleTopshelfService/Program.cs#L24

authors: StevenFlyover aai2on phatboyg

repo: Topshelf/Topshelf


text:
Use codecov alongside coveralls

Codecov has a pretty nice interface, and this is a fairly minimal change.

Changes Unknown when pulling 0e8f5e0130dc66d57e441a67994853c3cf207ff4 on fw/codecov into ** on master**.

authors: TotalVerb coveralls


text:
Неактуальное условие при выборе спавна доп. задания.

Антон глянь код. Условие выбора места для дополнительных заданий.
Возможно это условие не актуально. Оно почти в каждом доп. задании.
https://github.com/ToxaBes/ADR-Spec-Ops/blob/master/co30_ADR_Spec_Ops.Tanoa/mission/side/missions/secureChopper.sqf#L31

Да, оно уже неактуально. Спасибо, поправлю.

repo: ToxaBes/ADR-Spec-Ops


text:
增加屏蔽功能

增加一个玩家可以屏蔽另外一个玩家消息的功能，/ignore。
毕竟装了trchat之后，ess的ignore貌似不能屏蔽消息

@ItsFlicker

https://github.com/TrPlugins/TrChat/actions/runs/2560479915 已支持

authors: Dreeam-qwq ItsFlicker ThebestkillerTBK

repo: TrPlugins/TrChat


text:
⚠Not able to understand this project

I am not a developer, but curious to know more about this project. Can I get some videos for tutorials?

Hey @Arvind1902 you can checkout
https://youtu.be/iSPHZ1onQ44
https://youtu.be/Unj5NLNTkLY
Else you can join the waitlist for our web app at https://superagi.com

Closing this issue.

repo: TransformerOptimus/SuperAGI


text:
TS.0.b: Prototype biolink model service - documentation

Related:
TS.0: Prototype biolink model service
TS.0.a: Prototype biolink model service - continuous integration

Added documentation notebook, intro text at apidocs and README

authors: cbizon mmersmann


text:
Time.Measured

Time fails to decode array of Time.Signature
Based on Time.Measured implementations
public struct Measured {
   // FIXME:
   var values: [Time.Signature]
   var interchangeable: Interchangeable?

   public init(_ values: [Time.Signature], interchangeable: Interchangeable? = nil) {
       self.values = values
       self.interchangeable = interchangeable
   }
}

& based on Time's elements in a common MusicXML
<time symbol="single-number">
          <beats>1</beats>
          <beat-type>8</beat-type>
          <beats>2</beats>
          <beat-type>4</beat-type>
        </time>

The array of Time.Signature is certainly an Unkeyed element since as no keys for this var, exists in a MusicXML file.
Unkeyed element of type [Signature] in Measured fails to be decoded
extension Time.Measured: Codable {
   enum CodingKeys: String, CodingKey {
//       case signature
       case interchangeable
   }

   public init(from decoder: Decoder) throws {
       let container = try decoder.container(keyedBy: Time.Measured.CodingKeys.self)

       self.values = try decoder.collectArray()
       self.interchangeable = try container.decodeIfPresent(Interchangeable.self, forKey: .interchangeable)
   }
}

The line self.values = try decoder.collectArray() should be able to decode the array of `[Time.Signature] but throws an error in the debugger:
error: -[SwiftMXLTests.TimeTests testDecodingMeasured] : failed: caught error:
"typeMismatch(Swift.Dictionary<Swift.String, Any>,
    Swift.DecodingError.Context(codingPath:
    [XMLKey(stringValue: "0", intValue: 0),
    XMLKey(stringValue: "0", intValue: 0)],
    debugDescription: "Expected to decode Dictionary<String, Any> but found ChoiceBox instead.",
    underlyingError: nil)
)"

I currently don't know what is wrong, but I have to option right now:
1. A Workaround
2. Investigate the thrown error
The Workaround
Currently, instead of decoding an array of Signature, I decoded an array of beats an another array for beatType.
This would decode the data in the following way:
decoded:
Measured(signature: [SwiftMXL.Time.Signature(beats: ["3", "1"], beatType: ["4", "8"])], interchangeable: nil)

The workaround would be to write some logic for the decoded beats & beatTypes that would initialize an array of Time.Signature with the number of elements based on the count of beats & then return the decoded data using the created array.
Though it isn't a very convenient approach, it'll work at least for the decode process.
The Investigation
Involves more debugging & more reading for me unless some one with more skills identifies the issue & makes my life easier.

The workaround is the current implementation.


text:
useSeek, useRaycaster and useLoader are missing from TresJS 3.8.0

Describe the bug
I am importing useSeek in my project:
import { useSeek } from "@tresjs/core";

Since the upgrade to Tres 3.8.0, I get the error Module ""@tresjs/core"" has no exported member "useSeek". Did you mean to use "import useSeek from "@tresjs/core"" instead?
Indeed, useSeek, useRaycaster and useLoader which are exported in src/composables/index.d.ts don't seem to be present in the package anymore.
Reproduction
https://www.runpkg.com/?@tresjs/core@3.8.0/dist/src/composables/index.d.ts
Steps to reproduce
Unfortunately I didn't manage to reproduce the issue on Stackblitz, but the link above shows that the 3 files are missing from the directory where it's supposed to be imported from.
System Info
No response
Used Package Manager
pnpm
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] The provided reproduction is a minimal reproducible example of the bug.

Hi @bperel thanks for raising this. Seems to be a typing issue because the composable are indeed correctly exported in the package

@alvarosabu Hi, just stumbled upon this issue when I was solving the same problem but with useLoader. Based on your response to this issue I guess it will be typing issue as well

@alvarosabu I've upgraded deps in the nuxt module we use :) https://github.com/Tresjs/nuxt/pull/91

authors: alvarosabu bperel danielklein-arch kleinpetr

repo: Tresjs/tres


text:
Test behaviour of expressions containing temporaries

For a very simple example, see https://godbolt.org/z/xd7abze85
Complex expressions might trigger the creation of temporaries, which might make problems even when the data memory addresses are still valid. Something like auto vf_res2 = vf1 + vf1.cross(vf2); might lead to undefined behaviour when accessing vf_res2[...] later on.
Unit tests should be written to cover the expected behaviour and guidelines should be written to explain what to avoid.

Am I missing something? In your example, you take the reference to a temporary, so in the next line already, your temporary goes out of scope and is gone. How is this intended to work?

Hm, but I only know this to work locally. I don't think you can hand them around everywhere and have this work.

A temporary bound to a reference member in a constructor’s ctor-initializer (§12.6.2 [class.base.init]) persists until the constructor exits. A temporary bound to a reference parameter in a function call (§5.2.2 [expr.call]) persists until the completion of the full expression containing the call.

However, while the above quote explains why the example does not work, it does of course provide no insight, why this was defined like this and I couldn't find a satisfying answer online so far.

authors: GPMueller NOhs


text:
Add option to Create Manuever Node

Create a man Node from selected Transfer
Needs to find place on current vessels orbit around time of transfer when ejection angle matches

Got the maths for the planet to transfer orbit, but cant work out the change due to source SOI - more work needed

Can you elaborate a little more on that? Do you have references for the math on this?

OK, I've read Braeunig's site more carefully. I wouldn't mind helping on this. Mathwise, I think the only thing that changes is the part where ejection values are calculated in TransferWindowPlanner.TransferDetails, right?
What needs to change in the GUI?

Maybe version 1 is only offering the option if eccentricity and inclination is low enough? Then v2 is creating the Hohmann nodes to circularize first. Then V3 is any arbitrary orbit.

authors: TriggerAu wcmille

repo: TriggerAu/TransferWindowPlanner


text:
Somehow estimate end of active development

Similar to #179 and relying on #178, I would like to determine the inactive since XXXX time point more automatically from commit activity data of Git archives.
The idea would be to somehow recognize pure maintenance commits (only a few, not much change in the code basis) and then define some kind of end point of the active development.
Or even determine time intervals of active development.

As a way towards that one could show activity charts over time.

All related: #214, #154, #178, #179

repo: Trilarion/opensourcegames


text:
🛑 T:Riza Docs is down

In e90e420, T:Riza Docs (https://docs.triza.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: T:Riza Docs is back up in b1d6133.

repo: TrizaCorporation/Status


text:
🛑 T:Riza Docs is down

In 8633302, T:Riza Docs (https://docs.triza.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: T:Riza Docs is back up in 4e070a7.


text:
🛑 Ticket System  Zammad Bose Trocglobal is down

In 8b7afd5, Ticket System  Zammad Bose Trocglobal (https://bose.tickets.trocdigital.io/) was down:

HTTP code: 503
Response time: 337 ms

Resolved: Ticket System  Zammad Bose Trocglobal is back up in cbe9c29 after 8 minutes.

repo: Trocdigital/Navigator-uptime


text:
Update data for broken promise (Tweeting)

While I'm not sure how serious the promise was, he promised to stop tweeting after he became president as it was "not presidential"
Source:
Primary: https://twitter.com/realDonaldTrump

Yes he did tweet after his inauguration, so you're right.

authors: HysMagus MrLuit


text:
Upload Bitreal

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[ ] Filename in the lowercase format
[ ] Image format: png
[ ] Image size: 256 by 256 px

Also, you can use these graphics to say that your ERC20 token fully compatible with Trust Wallet (https://trustwalletapp.com/logo-assets). Tokens will show up automatically once the user receives them.
Feel free to share this on social media and tag Trust Wallet:
Twitter: @TrustWalletApp
Facebook: @TrustWalletApp

authors: SatoshiSilva vikmeup

repo: TrustWallet/tokens


text:
test token images

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[ ]  Filename in the lowercase format
[ ]  Image format: png
[ ]  Image size: 256 by 256 px


text:
mtronix

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

upload

We need just lowercased version, added here https://github.com/TrustWallet/tokens/commit/bde913b74cc2c8b8829fea5cfec528ba1a4f710a
Also, you can use these graphics to say that your ERC20 token fully compatible with Trust Wallet (https://trustwalletapp.com/logo-assets). Tokens will show up automatically once the user receives them.
Feel free to share this on social media and tag Trust Wallet:

Twitter: @trustwalletapp

Facebook: @trustwalletapp


text:
Yolox Integration

Are there any plans to integrate YoloX?

Hi @3DVERSEjn Yes, there is a team working on support for Yolo5 and later. I'll move this issue to the Discussions tab for further questions.


text:
feature_adversaries_numpy.py

Description
Updated feature_adversaries_numpy.py so that layer: Union[int, str, Tuple[int, ...], Tuple[str, ...]] = -1 rather than just integer.
No dependencies changes needed.
Fixes # (issue): 1185
Type of change
Please check all relevant options.

[ X] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.
Test A: Using adv = fa.FeatureAdversariesNumpy(model, delta=0.1, layer = (14, 16), batch_size = batch_size) instead of
adv = fa.FeatureAdversariesNumpy(model, delta=0.1, layer = 14, batch_size = batch_size) to generate adversarial images
Test Configuration:

OS
NAME="Red Hat Enterprise Linux Server"
VERSION="7.4 (Maipo)"
Python version: 3.8.5
ART version or commit number: 1.7
TensorFlow version: 2.2.0

Checklist

[X ] My code follows the style guidelines of this project
[X ] I have performed a self-review of my own code
[X ] I have commented my code
[ ] I have made corresponding changes to the documentation
[X ] My changes generate no new warnings
[X ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Codecov Report

Merging #1207 (eb605bd) into dev_1.8.0 (ebe725c) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           dev_1.8.0    #1207      +/-   ##
=============================================
- Coverage      63.69%   63.67%   -0.03%
=============================================
  Files            229      229
  Lines          21101    21101
  Branches        3941     3941
=============================================
- Hits           13441    13436       -5
- Misses          6068     6072       +4
- Partials        1592     1593       +1

Impacted Files
Coverage Δ

art/attacks/evasion/brendel_bethge.py
20.51% <0.00%> (-0.37%)
:arrow_down:


text:
🎨 fully fix Code Injection styles

closes https://github.com/TryGhost/Ghost/issues/8504

allow .settings-code-editor to inherit from .gh-input - fixes border colours
change gh-cm-editor's "focused" class from .focused to .focus so it can inherit .gh-input styles
add lazy loading of CM styles back in gh-cm-editor but prevent lib/codemirror.css from being compiled into the codemirror styles so that we get the theme colours without causing conflicts with the main editor

Coverage remained the same at 72.864% when pulling 2fcefc90a17ca090fee0c8e9059238150f6b5406 on kevinansfield:more-code-injection-fixes into 9069318dba6da145f3a02dbcbd8f7668302302b5 on TryGhost:master.

authors: coveralls kevinansfield

repo: TryGhost/Ghost-Admin


text:
Multiple Filter Not Working In API

Welcome to Ghost's GitHub repo! 👋🎉
Do you need help or have a question? Please come chat in Slack: https://ghost.org/slack 👫. Got an idea for a new feature? Please add it to our wishlist: http://ideas.ghost.org 🌟. Found a bug? Please fill out the sections below... thank you 👍
Issue Summary
A summary of the issue and the browser/OS environment in which it occurs.
Steps to Reproduce

This is the first step
This is the second step, etc.

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
Technical details:

Ghost Version:
Node Version:
Browser/OS:
Database:

$.get(ghost.url.api("posts", {
            filter: "tags:national,international",
            limit: recent_post_number
        })).done(function(news) {});

Here Multiple Filter Not Working But Single Filter Working , link filter: national.
please solve the problem.

@Rubel-hossain the syntax you are using is not valid.
You can either use an OR (comma ,) to join two tag clauses: tags:national,tags:international or you can use a group: tags:[national,international].
If you need any more help with the theme API please come and join us in the #themes channel on slack.

Thanks

authors: ErisDS Rubel-hossain

repo: TryGhost/Ghost


text:
Improved password reset and session invalidation for "locked" users

Fixed error message when "locked user tries to login to show specific error instead of generic "Access Denied"
Changed copy for password reset message to: "As a security precaution, your password must be reset. Click "Forgot?" to receive an email with instructions."
Improved error returned by permission layer for non-active users. Allows Ghost-Admin to redirect them to signin screen instead of being stuck with "Resource Not Found" error

For reference, old error returned by permission layer for "locked" users was 404 with following content:
{
  "errors": [
    {
      "message": "Resource not found error, cannot list tags.",
      "context": "User not found",
      "type": "NotFoundError",
      "details": null,
      "property": null,
      "help": null,
      "code": null,
      "id": "8b4a7890-8dfc-11ea-99a6-1bef62ddfd48"
    }
  ]
}

A new response is 401:
{
  "errors": [
    {
      "message": "Authorisation error, cannot list tags.",
      "context": "You are not authorised to make this request.",
      "type": "UnauthorizedError",
      "details": null,
      "property": null,
      "help": null,
      "code": null,
      "id": "474a61f0-8e01-11ea-a648-6ba7d586651b"
    }
  ]
}

@naz I think the new error response should be using the same PasswordResetRequiredError type that we discussed previously so that clients can react accordingly

@kevinansfield pushed that already :wink:

Both client and here. The whole PR is ready for review and merge I think

authors: kevinansfield naz


text:
Update html-to-text package

Closes #5264

html-to-text@1.3.0

OMG WOW :+1:

SUCH PR

:trollface:

I'm planning on retiring on this piece of work.

:joy:

authors: JohnONolan jaswilli


text:
Refactored hardcoded v0.1 url tests to test all supported versions

refs #9866

Added test util method for api path based on version
Updated all hardcoded v0.1 tests strings to use dynamic string from util method
Updated hardcoded v0.1 tests using regex match to use string equal with new util method

@kirrg001 @rishabhgrg the public_api_spec.js file became quite bloated after I've moved the tests from advanced_browse_spec.js. Will group tests there into separate describe('browse posts|tags|users'), ok?

authors: gargol rishabhgrg


text:
automod2 imagelimit isn't working in botspam mods channel on comm server

Exception in command 'automod2 imagelimit'
Traceback (most recent call last):
  File "/home/bot/tsubaki/prod/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/bot/.local/share/Red-DiscordBot/data/tsubaki_prod/cogs/CogManager/cogs/automod2/automod2.py", line 287, in imagelimit
    self.settings.setImageLimit(ctx.guild.id, channel or ctx.channel.id, limit)
  File "/home/bot/.local/share/Red-DiscordBot/data/tsubaki_prod/cogs/CogManager/cogs/automod2/automod2.py", line 815, in setImageLimit
    self.save_settings()
  File "/home/bot/tsubaki/prod/lib/python3.8/site-packages/tsutils/cog_settings.py", line 40, in save_settings
    write_json_file(self.file_path, self.bot_settings)
  File "/home/bot/tsubaki/prod/lib/python3.8/site-packages/tsutils/json_utils.py", line 29, in write_json_file
    json.dump(js_data, f, indent=4)
  File "/usr/local/lib/python3.8/json/__init__.py", line 179, in dump
    for chunk in iterable:
  File "/usr/local/lib/python3.8/json/encoder.py", line 431, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/local/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/local/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/local/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/local/lib/python3.8/json/encoder.py", line 376, in _iterencode_dict
    raise TypeError(f'keys must be str, int, float, bool or None, '
TypeError: keys must be str, int, float, bool or None, not TextChannel

this is somehow fixed now

repo: TsubakiBotPad/misc-cogs


text:
🛑 Content Delivery Network (S3 Bucket) is down

In 6743ae4, Content Delivery Network (S3 Bucket) (https://cdn.tubnet.gg/minecraft-resourcepack/TubPack-production.zip) was down:

HTTP code: 522
Response time: 15513 ms

Resolved: Content Delivery Network (S3 Bucket) is back up in 4f19185 after 12 minutes.

repo: Tubnom/tubnet-uptime


text:
Handle edge case where vertex falls on a side

It's a literal edge case!
Fixes #6

great catch :100:

authors: anandthakker morganherlocker

repo: Turfjs/turf-kinks


text:
WIP: Setup DiffEq common interface integrator

This is just a very quick implementation. Tests and everything are needed, but this should be a good guide to anyone. I set it up so it just defaults to velocity verlet, but since it's setup with the DynamicalODEProblem any symplectic integrator will work. I think I grabbed the step size and everything correctly. It would probably be a good idea to do this through Requires.jl.

Thanks Chris. This is very helpful. Can you fix the syntax error that fails loading of AHMC? I will merge this PR then and work from here.

@yebai I think it's OK to merge this and we can work from this PR.


text:
Blog Project Website : Add Dark mode

Feature Request: Dark Mode
Problem: Blog website lacks a dark mode, causing inconvenience to users who prefer darker color schemes, especially in low-light conditions.
Solution: Add a visually appealing dark mode option for users to toggle between light and dark themes.
Context: Enhances user experience, improves readability, and reduces eye strain.

I want to add this feature please assign it to me

repo: TusharKesarwani/Front-End-Projects


text:
Automatic autofill submission otp don't be need copy otp and anything else

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@AnupamNitB Could you please be more specific about your requirement? An example might be better in helping explain itself. Thanks!

@BeckyWu220 what react-native-otp-input do copy the otp then fill the otp in textinput automatically
i want no need to copy the otp when i am click on otp button sender id send the otp 000000(like this)
this otp automatically fill the my textinupt field. (no need the copy button) and please read the Doc then easily understand what i am saying

Hi @AnupamNitB  Thank you for sharing with us a sample. Our team will review and discuss about it. Thanks!

repo: Twotalltotems/react-native-otp-input


text:
feat: Adding new mnemonic wallet provider for e2e testing

Proposed changes:

New provider called mnemonic, similar to kmd it prompts user for 25 word passphrase that upon entering is stored as an account record with addr and pk - passphrase itself isn't persisted.
Adding prettierrc file to make sure folks contributing and using prettier won't have conflicts with indent style used in codebase

How to test?
Refer to the forked main branch - execute yarn install and yarn dev to launch the playbook. Make sure to explicitly add it to playbook because similarly to kmd its excluded from default list of providers.
Who may benefit from this provider?
Any folks who has integration with use-wallet and would like to have a simple way to perform e2e test, with mnemonic provider like this user can automate pasting the phrase to the input prompt in most automation libraries out there. In contrast e2e test with real walletconnect/myalgowallet or etc gets tricker as the amount of complexity to automate it is far greater.
Further notes
There were no unit tests setup in the repo so instead i tested it locally so far - will use this forked version in my swapper.algoworld.io project for the time being to have a more specific justification on why this can be helpful. Feel free to leave any comments/suggestions - would love to address those

Thank you for this outstanding contribution! We agree this will be enormously helpful for supporting E2E tests and are looking forward to get this merged and writing some tests around this.
I think this looks good but since you made your PR, there have been some updates to the signTransactions method that need to be incorporated here before it can be merged (my fault). I've added them as comments/code suggestions. If you could take a look at this, I think we're ready. @drichar may also want to give final approval, as he wanted to try out some E2E tests, but we'll prioritize this to get it merged fast.
Let me know if you have any Qs on my comments.

@gabrielkuettel please expect me to address the PR comments before EOD tomorrow. Ill keep you updated and thanks for the review!

@gabrielkuettel @drichar all good on my side re-tested component in storybook, changes applied are working ok

authors: aorumbayev gabrielkuettel

repo: TxnLab/use-wallet


text:
Topic Classification

Creating an Initial Topic Identification Model
We have created vector models in both Word2Vec and Doc2Vec and so now we are aiming to use these vectors to create features for a classification or topic model that will correctly identify when a topic from a predefined list is being discussed in a comment. We are looking at different possibilities, including custom though imperfect datasets that use subreddit names as labels (generalized into broader topics), or possibly using a classic dataset such as 20newsgroup as a proof of concept.
We will be using the gensim library to create the model and hope to have it completed by the end of the week.
Any expertise or advice on topic modeling would be appreciated.

Our Doc2Vec model is set up with a training suite that allows us to compare distantly labelled comments and return a list of related subreddits.While not a true classifier by any stretch, we feel that without a labelled dataset this is the best we can do and so this issue is at this time pending data collection. We will make an attempt to cluster the 'documents' (subreddits) to form more cohesive, unsupervised categories to see if we can gain better results, but most likely supervised learning will be the solution.

repo: TyJK/EchoBurst


text:
Update blog-post.js

So we don't run into trouble when nextPage or previousPage are undefined.

Hi @groninge01 , thanks for the PR! I think this wont actually help in that case as you're just cloning the data object which means it will be exactly the same. The plan right now is to do a huge overhaul on this starter as I only spent about an hour on it, just to show a minimal example of how to set up the source plugin. So I'm closing this for now, but feel free to open another PR :) Thanks again


text:
Implement hyperclick package

Part of Nuclide is the hyperclick package, https://atom.io/packages/hyperclick, it allows for interacting with text in the editor while holding the alt key, via a service.
Some thoughts of things we could implement with this.

Jump to definition.
allow quick fixes to define syntax errors they are associated with

for example quick fix to implement an interface could be attached to the, the syntax error for a interface not being implemented.

+1 this would be awesome!

Is anyone working on this?

Nope :rose:

+1

+1

This is very nice, but there is a problem using the ctrl-key, since this key is used to make multiple selections/use multiple text cursors in Atom (which is very useful). Maybe it is better to use the alt-key as described in the readme of hyperclick:

<alt> or <alt-mousemove> underlines clickable text under the mouse.
<alt-mousedown> performs the action associated with the clickable text.
<cmd-alt-enter> performs the action on the text under the cursor.

@markogresak Atom Typescript implement hyperclick provider for jump to declaration since version 10.0.1 . You can use alt key that hyperclick mapped.

It seems the ctrl-key is mapped on Windows instead of the alt-key. Submitted a PR to change this behavior: https://github.com/facebook/nuclide/pull/612

I agree with @markvandenbrink about the keymap issue. I'm used to using cmd + click to make multiple selections.
Is this also only supposed to work with typescript files? Seem to see the white hyperclick underline in every file type I'm in when holding down cmd which makes this feature buggy.

If i'm not mistaken, the integration is gone again with atom typescript v11? 😅

@robofish, it sure is. Command+click is also used to place multiple cursors and if hyperclick is only used for jumping to the definition, I didn't see the point in keeping it since clicking on the symbol and pressing F12 is very close, though I agree that switching from the mouse to the keyboard is not perfect. I might be convinced that it make sense to use with quickfixes though.

Hyperclick added an option to change which modifier(s) is used, so that it doesn't have to interfere with multiple cursors. I'd also ask that the integration be added back.

I implemented this and made a pull request, which you can test if you want: https://github.com/TypeStrong/atom-typescript/pull/1265

authors: adidahiya andrewstart basarat cevek guncha marcoskichel markvandenbrink park9140 robofish sverrejoh tlaverdure wingyplus

repo: TypeStrong/atom-typescript


text:
TypeScript Compilation Context Issue

The Issue
A file named acs.ts resides within the project in subfolder controllers.  When the file is opened in Atom an error stating that the file is not included in the TypeScript compiler's context appears.  When referencing tsconfig.json the "files":[] property contains the relative path to the acs.ts file and is saved to disk.
If the user clicks on the file reference link in the error, numerous (about 25 - 30) tabs open all referencing the file at a different location.  The "different location" is inside of a Controllers folder within the same project.  It is critical to note that the subfolder Controllers does not exist.  Here are a few things that I have noticed while investigating the issue:

When the file is opened as Controllers/acs.ts the compiler context error no longer appears.
A change made to the file in the fictional path Controllers/acs.ts will appear in the file at the real path controllers/acs.ts and the reverse holds true as well.
If the user were to completely quit Atom and then re-open the controllers/acs.ts file, the issue of opening numerous tabs will not occur.  Instead it will behave as expected and bring the user's attention to the first line of the file.
Continuing to use Atom (opening, closing, and editing files) and then clicking the error will re-create the numerous tabs issue.  Unfortunately a concise way to reproduce the bug has not been identified.

In an effort to identify a source for the bug, the subfolder controllers was renamed to Controllers and the compiler context error no longer appeared.  Changing the folder name back to its lowercase representation again introduces the error.  Note that the tsconfig.json file updated the "files":[] property to reflect the correct capitalization of the path.
A similar issue occurs with file tests/Credential/credentialHelper.ts.  The major difference is that the error does not open a phantom file path, but instead opens the file at its real location.  Again, the file's relative path is properly populated in the tsconfig.json file.
The project folder has been moved around the operating system as well as locations containing no spaces or special characters in the path.  No location was found that resolved the compilation context issue.
System Information
OS: OS X El Capitan
OS Version: 10.11
Atom-TypeScript Version: 7.5.0
Atom Version: 1.0.19
Node Version: 0.12.4
TSC Version: 1.5.0-beta

Unfortunately a concise way to reproduce the bug has not been identified.

I've had atom open 10s of tabs on error click as well. The api we use is fairly simple : https://github.com/TypeStrong/atom-typescript/blob/c0d11587e70b54272d7b5ad4497dd5fa35b88fe1/lib/main/atom/gotoHistory.ts#L17-L20
In the absence of repro I've failed to report it to atom/atom myself as well

Okay, well that helps to mitigate one bug that was discovered.  Do you have any any ideas about why a file that is clearly included inside of the tsconfig.json "files":[] property would cause the compilation context error to appear?

Do you have any any ideas about why a file that is clearly included inside of the tsconfig.json "files":[] property would cause the compilation context error to appear?

nope :-/

@basarat  I've been able to fix the multiple tabs opened when clicking on the error in the bottom panel (TS panel, not linter). Check the pull-request.
The problem was fairly simple - when you set the summary info in the TS panel you also adding a click listener to it by calling
if(handler) {
    handler(this.summary);
}

But when you need to clear the error, it's just set innerHTML to empty string, but does not remove the onclick listener. Since the listener is added to summary element itself and not to it's content, we have event listeners added on each addError call and when we click on the error, we have tons of events that are calling gotoHistory.gotoLine and atom is opening tons of tabs (probably because all events are fired before any of tabs are opened).
There's a bigger issue behind this though. I figured that setErrors (in MainPanelView) is called from several places, even though the error itself is the same. It clears all previous errors (and now it does it right with removing the listeners as well), but still I guess we need to investigate on how to fix that.
I would add some check in the setErrors function if the error that you're trying to set is already there, but it might be a tricky case and I cannot come up with a good solution at this point.

igured that setErrors (in MainPanelView) is called from several places, even though the error itself is the same. It clears all previous errors (and now it does it right with removing the listeners as well), but still I guess we need to investigate on how to fix that.

A long term fix would be to move to something like react and use its diffing and event delegation (single event handler) to not have to worry about trivial stuff like this. Checkout :  https://github.com/TypeScriptBuilder/tsb/blob/7030bf44d1e3ff0d4d8ac56268120e6775cf3310/src/app/statusBar.tsx#L73-L103
Once that project is stable I'll start pushing code back here :rose:

I have the same issue in some components files of my project. Here my tsconfig.json:
{
    "compilerOptions": {
        "target": "ES5",
        "module": "system",
        "noImplicitAny": true,
        "noEmitOnError": false,
        "experimentalDecorators": true,
        "removeComments": false,
        "emitDecoratorMetadata": true,
        "sourceMap": true,
        "moduleResolution": "node"
    },
    "exclude": [
        "bin",
        "Properties",
        "./node_modules"
    ]
}

some components files of my project

A path to a sample component file + screenshot please. I don't have a repro for out of context portion of this issue yet :rose:

I don't know if this is helpful, but I've experienced strange behavior when messing with the upper/lowercasing of files. As best I can guess, some important piece of the system seems not to be case sensitive. Given Typescript's origins, this doesn't surprise me a ton. The problem seemed to survive restarts of Atom, which leads me to believe that it had something to do with a mismatch between generated .js files and the .ts files.

but I've experienced strange behavior when messing with the upper/lowercasing of files

Very plausible. We use filePaths (made consistent / some docs) all over the codebase. Would only throw an error though if atom UI's view of the filePath is different from our background view of the filePath....

@basarat, I am sitting on a reproducible (on my machine) instance of the '"someFile.ts" is not included in the Typescript compilation context' problem. It's so reproducible on this one file that I can't get rid of it. :)
My whole project compiles just fine via F6, and the files array and filesGlob are both accurate, but the message persists. I don't have time to debug it right now, but at this rate it will be there when I do have time... looking like this weekend.
In the meantime, I can just report that, indeed, this file was once named with a capital SomeFile.ts. (Changing capitalization back and forth doesn't fix it, though)
Is there anywhere that atom-typescript caches information that would/could survive the act of quitting atom altogether?

Is there anywhere that atom-typescript caches information that would/could survive the act of quitting atom altogether?

Only if atom saves the file in its memory / storage as SomeFile.ts. Log out what you see in the developer console atom.workspace.getActiveTextEditor().getPath(); :rose:
If that is indeed the case, closing / opening the file should fix it maybe

atom.workspace.getActiveTextEditor().getPath();
returns the accurate, path to the file. Nothing I wouldn't expect.
Closing/opening the file has no effect. Renaming the file has no effect. Quitting/restarting atom has no effect. It just refuses to accept that the file is already in tsconfig.json's files array, even thorugh F6 works, the app works, etc.

I am running into the same issue with a project I've recently started introducing typescript into.  In fact, it's the very first "mixed" project I've done.  All of the other projects have been typescript from the very start and have had no issues.
In any case, one of the files that raises the error, ./src/components/Tag.tsx, does exist in the files array in the tsconfig.json file.  If I remove it from the files list, it is picked up again by the filesGlob as expected.  Now, if I copy the file to ./scr/components/Tag0.tsx there is no issue with that file.  Both Tag.tsx and Tag0.tsxwill be in thefilesarray, and onlyTag.tsxwill display the error.  If I remove theTag.tsxfile, the error goes away as expected.  Now, this is where it gets really strange; If I create a *new*, empty, file with the nameTag.tsx, in the same place, it will display the error.  On creation, the new file is added to the files` as expected, but still same error.
I've restarted the app.  I've nuked my .atom folder.  Still, the issue remains.

I am running into the same issue with a project I've recently started introducing typescript into.  In fact, it's the very first "mixed" project I've done.  All of the other projects have been typescript from the very start and have had no issues.
In any case, one of the files that raises the error, ./src/components/Tag.tsx, does exist in the files array in the tsconfig.json file.  If I remove it from the files list, it is picked up again by the filesGlob as expected.  Now, if I copy the file to ./scr/components/Tag0.tsx there is no issue with that file.  Both Tag.tsx and Tag0.tsxwill be in thefilesarray, and onlyTag.tsxwill display the error.  If I remove theTag.tsxfile, the error goes away as expected.  Now, this is where it gets really strange; If I create a *new*, empty, file with the nameTag.tsx, in the same place, it will display the error.  On creation, the new file is added to the files` as expected, but still same error.
I've restarted the app.  I've nuked my .atom folder.  Still, the issue remains.

Some more strangeness, if I create a new file ./src/components/tag.ts, the not in context issue for ./src/components/Tag.tsx disappears.  As mentioned previously, the file was originally copied into the project as ./src/components/tag.tsx.
I can then delete the ./src/components/tag.ts file and the problem does not return until I restart Atom.

Some more strangeness, if I create a new file ./src/components/tag.ts, the not in context issue for ./src/components/Tag.tsx disappears.  As mentioned previously, the file was originally copied into the project as ./src/components/tag.tsx.
I can then delete the ./src/components/tag.ts file and the problem does not return until I restart Atom.

I have found my issue.  I did some digging and tracked down the point at which atom-typescript's notion of my project files went wrong to here: https://github.com/TypeStrong/atom-typescript/blob/master/lib/main/tsconfig/tsconfig.ts#L461.  Upon realizing what that code was for, I went through files carefully and found a couple import statements for the files in question that were not changed to the new casing.  I would guess that the increaseProjectForReferenceAndImports is checking to see if the import exists, which on Windows and Mac it would (being case-insensitive), and then adds them to the runtime version of the project.
Reproducing is now easy:

Create a new folder.
Create file one.ts as:

export class One {
}

Create file two.ts as:

import {One} from './one';

Create tsconfig.json using atom-typescript command.

{
    "compilerOptions": {
        "target": "es5",
        "module": "commonjs",
        "moduleResolution": "node",
        "isolatedModules": false,
        "jsx": "react",
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,
        "declaration": false,
        "noImplicitAny": false,
        "removeComments": true,
        "noLib": false,
        "preserveConstEnums": true,
        "suppressImplicitAnyIndexErrors": true
    },
    "filesGlob": [
        "**/*.ts",
        "**/*.tsx",
        "!node_modules/**"
    ],
    "files": [
        "one.ts",
        "two.ts"
    ]
}

Rename one.ts to One.ts.
Notice that tsconfig.json has correctly updated to One.ts.

{
    "compilerOptions": {
        "target": "es5",
        "module": "commonjs",
        "moduleResolution": "node",
        "isolatedModules": false,
        "jsx": "react",
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,
        "declaration": false,
        "noImplicitAny": false,
        "removeComments": true,
        "noLib": false,
        "preserveConstEnums": true,
        "suppressImplicitAnyIndexErrors": true
    },
    "filesGlob": [
        "**/*.ts",
        "**/*.tsx",
        "!node_modules/**"
    ],
    "files": [
        "One.ts",
        "two.ts"
    ]
}

Notice that One.ts displays the not in context error.

I have found my issue.  I did some digging and tracked down the point at which atom-typescript's notion of my project files went wrong to here: https://github.com/TypeStrong/atom-typescript/blob/master/lib/main/tsconfig/tsconfig.ts#L461.  Upon realizing what that code was for, I went through files carefully and found a couple import statements for the files in question that were not changed to the new casing.  I would guess that the increaseProjectForReferenceAndImports is checking to see if the import exists, which on Windows and Mac it would (being case-insensitive), and then adds them to the runtime version of the project.
Reproducing is now easy:

Create a new folder.
Create file one.ts as:

export class One {
}

Create file two.ts as:

import {One} from './one';

Create tsconfig.json using atom-typescript command.

{
    "compilerOptions": {
        "target": "es5",
        "module": "commonjs",
        "moduleResolution": "node",
        "isolatedModules": false,
        "jsx": "react",
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,
        "declaration": false,
        "noImplicitAny": false,
        "removeComments": true,
        "noLib": false,
        "preserveConstEnums": true,
        "suppressImplicitAnyIndexErrors": true
    },
    "filesGlob": [
        "**/*.ts",
        "**/*.tsx",
        "!node_modules/**"
    ],
    "files": [
        "one.ts",
        "two.ts"
    ]
}

Rename one.ts to One.ts.
Notice that tsconfig.json has correctly updated to One.ts.

{
    "compilerOptions": {
        "target": "es5",
        "module": "commonjs",
        "moduleResolution": "node",
        "isolatedModules": false,
        "jsx": "react",
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,
        "declaration": false,
        "noImplicitAny": false,
        "removeComments": true,
        "noLib": false,
        "preserveConstEnums": true,
        "suppressImplicitAnyIndexErrors": true
    },
    "filesGlob": [
        "**/*.ts",
        "**/*.tsx",
        "!node_modules/**"
    ],
    "files": [
        "One.ts",
        "two.ts"
    ]
}

Notice that One.ts displays the not in context error.

It's great to have a such a simple reproduction documented -- thanks, @mmorton.
I'm able to reproduce it with that recipe on OSX (which is case-sensitive, as Unix cousin -- so on Mac and Linux, the One.ts will appear to be a different file from one.ts).
I don't understand what you mean by the rest of your report. You say:

Upon realizing what that code was for, I went through files carefully and found a couple import statements for the files in question that were not changed to the new casing.

What files did you go through where you found such import statements? When you say "for the files in question" which files are in question?
What's confusing to me is that, regardless of whether the file looks the same file or a different one, this problem has been seen to survive (or even return) upon reloads of the Atom UI, so as far as I know, we're looking for at least one place where information about the project is stored persistently (outside of the tsconfig.json file, which has been seen to have updated correctly to the new filename)..... I don't see any "extra" persistence of information happening in tsconfig.ts (yet).
I just did quit atom and then restart it.... One.ts is still listed as 'not in compilation context'... and when I save the file, one.js is created. So "somebody", somewhere is definitely writing down that the names of files outside of the project directory (and not keeping them up-to-date, presumably because it sees "one.ts" as equal to "One.ts". Why would saving the file names outside of tsconfig.json ever need to happen? Does ntypescript do such a thing? The answer may be the clue to where the issue lies.
Looking poked around a bit in ntypescript again just now, the DocumentRegistry interface jumps out at me, i.e. around
https://github.com/TypeStrong/ntypescript/blob/95f335ffa40201e8e459a0dc6b26f6dabfe88fc5/src/services/services.ts#L2018
    export function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory = ""): DocumentRegistry {
...

.... but that file has about a gazillion case-sensitivity workarounds in it, I guess for  Windows' sake. One false move in here could result in what we're seeing, iff there is indeed a point at which it saves its impressions to disk other than the actual tsconfig.json (I haven't found such a place yet).
P.S. As I've said before is still true -- I'm not clear on where ntypescript stops and typescript begins... I'm just trying to peel back the onion here -- if I'm mischaracterizing what is ntypescript and what is tsc, please forgive me.
P.P.S. Obviously getting into debug mode would be a good thing. I might do that after another cup of coffee. Debugging child processes requires me to be on at least my second cup.

It's great to have a such a simple reproduction documented -- thanks, @mmorton.
I'm able to reproduce it with that recipe on OSX (which is case-sensitive, as Unix cousin -- so on Mac and Linux, the One.ts will appear to be a different file from one.ts).
I don't understand what you mean by the rest of your report. You say:

Upon realizing what that code was for, I went through files carefully and found a couple import statements for the files in question that were not changed to the new casing.

What files did you go through where you found such import statements? When you say "for the files in question" which files are in question?
What's confusing to me is that, regardless of whether the file looks the same file or a different one, this problem has been seen to survive (or even return) upon reloads of the Atom UI, so as far as I know, we're looking for at least one place where information about the project is stored persistently (outside of the tsconfig.json file, which has been seen to have updated correctly to the new filename)..... I don't see any "extra" persistence of information happening in tsconfig.ts (yet).
I just did quit atom and then restart it.... One.ts is still listed as 'not in compilation context'... and when I save the file, one.js is created. So "somebody", somewhere is definitely writing down that the names of files outside of the project directory (and not keeping them up-to-date, presumably because it sees "one.ts" as equal to "One.ts". Why would saving the file names outside of tsconfig.json ever need to happen? Does ntypescript do such a thing? The answer may be the clue to where the issue lies.
Looking poked around a bit in ntypescript again just now, the DocumentRegistry interface jumps out at me, i.e. around
https://github.com/TypeStrong/ntypescript/blob/95f335ffa40201e8e459a0dc6b26f6dabfe88fc5/src/services/services.ts#L2018
    export function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory = ""): DocumentRegistry {
...

.... but that file has about a gazillion case-sensitivity workarounds in it, I guess for  Windows' sake. One false move in here could result in what we're seeing, iff there is indeed a point at which it saves its impressions to disk other than the actual tsconfig.json (I haven't found such a place yet).
P.S. As I've said before is still true -- I'm not clear on where ntypescript stops and typescript begins... I'm just trying to peel back the onion here -- if I'm mischaracterizing what is ntypescript and what is tsc, please forgive me.
P.P.S. Obviously getting into debug mode would be a good thing. I might do that after another cup of coffee. Debugging child processes requires me to be on at least my second cup.

BTW, @basarat I'm not clear on how you were able to determine that this is fundamentally an atom issue. Can you explain? That might help with tracking this down.

BTW, @basarat I'm not clear on how you were able to determine that this is fundamentally an atom issue. Can you explain? That might help with tracking this down.

One thing I noticed: I opened the test project which I created as per @mmorton in Atom Beta and the same problem is there... so if something has been written to disk, it might be somewhere that both instances of (Atom and Atom Beta) are seeing.
Also: the solution discussed here (remove from atom storage) doesn't solve it: https://discuss.atom.io/t/atom-is-loading-old-version-of-a-file-even-after-a-restart/17432/3 . In fact, moving the entire storage directory out of the way doesn't solve it.

One thing I noticed: I opened the test project which I created as per @mmorton in Atom Beta and the same problem is there... so if something has been written to disk, it might be somewhere that both instances of (Atom and Atom Beta) are seeing.
Also: the solution discussed here (remove from atom storage) doesn't solve it: https://discuss.atom.io/t/atom-is-loading-old-version-of-a-file-even-after-a-restart/17432/3 . In fact, moving the entire storage directory out of the way doesn't solve it.

I'm not clear on how you were able to determine that this is fundamentally an atom issue. Can you explain

@laurelnaiad based on the repro its not an atom issue. I was wrong :rose:

I'm not clear on where ntypescript stops and typescript begins

@laurelnaiad for all intent and purposes they are exactly the same. NTypeScript was started just as a nightly typescript release (before there was an official nightly), but it also does other little things (like a better definition file that exposes all the compiler private stuff ... which we need) which do not modify the main typescript code base in any way :rose:  See the niceness list: https://github.com/TypeStrong/ntypescript#ntypescript

https://github.com/TypeStrong/atom-typescript/issues/681#issuecomment-168294607

@mmorton :100: thanks for the repro. I will look into that when I get time :rose:

Is there a solution for this issue ? Even Tho I added my files, one is not recognized .

I have experienced the issue as described by @proff321.  I found a fix that worked for me.
Let's consider a folder named "data", with all .ts files within the folder presenting the error.

Rename to Data.  NO ERROR
Rename to Data2. NO ERROR
Rename to dAta. ERROR??

Why does case 3 occur?  For me it happened because I had "import x from 'Data/y.ts'" statement within my code that was using the wrong case.  I didn't notice this because the rest of my build pipeline doesn't seem to care about the case of folders (as long as they are consistent).  So try searching your entire project for the incorrectly cased folder name to see if you have a bad import statement.
BTW. If you are running tests around this please make sure you close all files and kill the editor between test cases, it gets confusing otherwise.
Mark.

Just lost a couple hours on this exact issue and finally found a single incorrect import leftover from one of atom-typescript's autocompletes :( :(
A better error message on this is essential. The current error message is extremely misleading since it gives you the exact wrong file name.

This issue still persists. Any word on if there is a fix in the works?

still exists

I fixed this by making sure that all imports of the file that was giving the error where capitalised the same way as the file name. Example:
import Event from "./Event"; will give an error in event.ts
Fix: import Event from "./event";

This happened to me a couple of times, especially when renaming files like "myFile.ts" to "MyFile.ts". I'll always get the wrong compiled file, myFile.js will still be compiled instead of MyFile.js.
What I did to correct this issue is to make sure that any file that's importing "myFile" is corrected to "MyFile. And then you'll need to delete any existing myFile.js and myFile.js.map, and lastly you'll need to restart Atom. Once you're back in Atom again, try to build your project (by pressing F6), you should get the correct JS and JS map files now.

This issue is forcing me to move to other editors (e.g.: WebStorm is not showing such errors). By the way the project compiles correctly and pass tslint.

I just switched to Atom, which itself is an awesome editor, but it doesn't beat VS Code when it comes to Typescript, I'll have to switch back unfortunately.

@ciesielskico, Atom is an excellent editor, but I think for TypeScript, Webstorm is better!

+1

+1

+1

By default all files and subdirectories in the same directory as tsconfig.json are within the TypeScript compilation context. If all your files are there, there's no need to configure the files array.
If you feel you need to configure the files array because some files are outside that directory, note that the most recent versions of TypeScript support options like baseUrl, typeRoots, paths, rootDirs, etc. These options can direct the compiler to other locations.
In my own frontend project we use a webpack loader to bundle TS files for delivery. This means the loader sees a different context than the TypeScript compiler that is run from the command line. This can cause a mismatch between errors seen during loader compilation and errors seen with an IDE package like atom-typescript.

+1

+1
Using tsc, it compiles fine. The tsconfig.json file generates all required files, if they are included under filesGlob. However, atom-typescript doesn't seem to even care what's in there.
And I have to use files or filesGlob in order to include typings files from typings tool.

Just ran into this issue with atom, in my case a ts file in a hidden directory was not being compiled. Explicitly adding the path in tsconfig.json resolved the issue:
    "filesGlob": [
      "**/*.ts",
      ".serverless_plugins/**/*.ts",
      "!node_modules/**"
    ],

+1

+1

Should be fixed in current version. Reopen, if it's broken.

authors: 0mkara Forestdev Gerarddp Kevin-LeBlanc alvarod-infocorp apetrushin basarat benetis cafreeman chromeragnarok ciesielskico daslicht guncha jhm-ciberman laurelnaiad mcrawshaw mmorton plumdumpling proff321 rators sgal swinc tobyhede vladimirivanoviliev x-stefan


text:
fix(commonjs dir imports) Fixes imports that specify directories only.

If file is a directory then assume that what is meant is the index file in the directory.
Resolves Issue 38

Found an issue with my fix where the module defined doesn't match the reference:
declare module 'fm-icons' {
    export * from 'fm-icons/application-object'; //<=  error TS2307: Cannot find module 'fm-icons/application-object'.

}

declare module 'fm-icons/application-object/index' {
  ...
}

Closing PR for now.

repo: TypeStrong/dts-bundle