Equality operator with quantum timestamp RTS-1286

Rewrite queries with WHERE mytimestamp = 1234' to 'WHERE mytimestamp >= 1234 AND mytimestamp <= 1234 when mytimestamp is the quantum is a partition key. This allows the the quantum time to be defined exactly, instead of having an inclusive range of the same time value.
With table bios defined as CREATE TABLE bios ( ts timestamp PRIMARY KEY((id, QUANTUM(ts, 15, 'm')), ts));.
riak-shell(3)>DESCRIBE bios;
+------+---------+-------+-----------+---------+--------+----+
|Column|  Type   |Is Null|Primary Key|Local Key|Interval|Unit|
+------+---------+-------+-----------+---------+--------+----+
|  ts  |timestamp| false |     1     |    1    |   15   | m  |
+------+---------+-------+-----------+---------+--------+----+

riak-shell(4)>SELECT * FROM bios WHERE ts > 1 AND ts < 200;
+------------------------+
|           ts           |
+------------------------+
|1970-01-01T00:00:00.01Z |
|1970-01-01T00:00:00.011Z|
+------------------------+

riak-shell(5)>SELECT * FROM bios WHERE ts = '1970-01-01T00:00:00.01Z';
+-----------------------+
|          ts           |
+-----------------------+
|1970-01-01T00:00:00.01Z|
+-----------------------

If the error condition for E_CANNOT_HAVE_TWO_EQUALITY_FILTERS_ON_QUANTUM_WITHOUT_RANGE is rethought as a request for multiple ranges that are guaranteed not to overlap, hence result in surely no records being yielded, throwing an error does not match how SQL RDBMSs (common) handle such requests nor does throwing an error match how Riak TS (consistent) handles such requests. From my experience, it is common and consistent to yield no records instead of throwing an error.

I agree that this should return no records, ideally without even sending sub queries. It is consistent with Riak TS behaviour, for example:
riak-shell(4)>SELECT * FROM bios WHERE ts > 100 AND ts < 10;
Error (1001): The lower time bound is greater than the upper time bound.

+1

@borshop merge


Removed IntEnum Dependency for micropython by using custom classes

Fixed several missing self references
Minor cleanup

@BroadwellConsultingInc I fixed a couple of things that were causing errors for me and enabled the use of your pin_modes and commands. I did my best to match your style of imports, but I'm sure it could be better.
Hope this is helpful.

Thanks for all this effort!  I'll run this against the unit test setup and if it works well I'll merge it in.   May be some hiccups.  This will be the first time I've done a merge of a pull request from someone else.


Unexpected token (SEMI, ';') at...

I had same issus

the file is a angularjs file upload's lib. and it's work fine when using Nodejs's minify (grunt plugin).
I believe it is slimit's bug.

sorry it's must be happened when minify angular-material.js another lib I shouldn't modify too.

I'm getting the same error with another js library and I have no idea how to fix it.

The cause is due to the exact same issue already reported as #52, #59, #81, and #90.

Ah. I see.

Ah. I see.

@22459 if you are still working on this problem and still want to keep using Python tools, I have forked slimit and rebuilt it as calmjs.parse, with a CLI utility called crimp which is built on top of that.


discussion about motif v element v site

So that this is recorded below is a summary of a discussion about this issue:
Julio:

More precisely a "site" is better called a transcription factor binding site TFBS
I think "element" is too general and may refer to almost anything. In the bacteria literature people dont use "element" to refer to TFBSs

Jacques:

Beware, a motif is a summary representation of the specificity of a transcription factor, usually built by summarizing the information from a collection of aligned site sequences.
What can exert a regulatory effect (activator or repressor) on a gene is not a motif, but a site (a sequence found at a given position of the genome), not a motif.

Hi @RLovering,
This issue was also fixed up last summer, but I did not close the issue. You can see the term TF_binding_site on the SO browser if you would like to see how it is arranged now. I believe it should match the conclusions of the group discussion.
Thanks,
Dave


Fix alignment for queue information in release dialog

Before:

After:

I think the integration test will work if you rebase.


Webpack 5 and webpack-subresource-integrity compatibility

Hi, our plugin works by creating a map from chunk ID to integrity value, adding that map as a constant into the JSONP template and adding code to set the integrity attribute on each injected script and link tag by looking up the chunk ID in that map.
I suppose this has always been a hack but it used to work fine up until Webpack 5 beta 9. In more recent beta versions there is the following problem from our plugin's perspective:
The code for generating script and link preload tags now lives in separate closures, which means that if we add the variable containing the map from chunk ID to integrity in one of the templates, it isn't visible from the other.
I've tried finding a workaround and there are various hacks we could do, but I think the best solution is to add a new hook that would let us inject code into the template around where var installedChunks is defined. Unless I'm missing another way of doing this cleanly, would you consider adding a hook like this?

I'll fix that in the compat layer, so the plugin should work (with deprecation warnings) without change.

Thanks, but we already have a webpack-5 branch that was passing without warnings up to Webpack 5 beta 9. Ideally we could fix it properly, you don't think adding that new hook is a good solution?

To fix it properly attach all information shared between runtime modules to the __webpack_require__ object. RuntimeModule might live in different chunks, so you can't rely on they sharing a common scope.

Interesting, but if RuntimeModule is in a different chunk, how is that chunk loaded? I'm asking because it will also need to be loaded with SRI. Are you talking about a hypothetical future Webpack release or is this something that is possible with version 5?

This e. g. happens for HMR updates. When you add a chunk the runtime module with the chunk mapping need to be updated. So the HMR chunk would contain the updated RuntimeModule (e. g. here the JsonpChunkLoadingRuntimeModule). Technically this could happen for all RuntimeModules. When they are in the HMR chunk they won't share the scope with the original runtime chunk.
We also would like to have the option to lazy load runtime modules. This is not used yet, but would also cause non-shared scopes.
That's why you should use __webpack_require__ to communicate between runtime modules. Attach your properties there.

webpack 4 didn't have the ability to put runtime code into HMR chunks. This causes bugs if the add chunks and chunks use something else than [id], e. g. [name] or [contenthash].

I see, thanks for the explanation. I'm guessing attaching to __webpack_require__ is rarely done and there isn't a preferred naming/namespacing scheme? Could use a Symbol but that seems unnecessarily careful and might break compatibility.

I'm guessing attaching to __webpack_require__ is rarely done and there isn't a preferred naming/namespacing scheme?

Best use a prefix like sri for your plugin.
webpack itself often uses single letter properties, so avoid these.

Could use a Symbol but that seems unnecessarily careful and might break compatibility.

I don't think that's necessary. You would have to use a named symbol anyway, which would be global too^^

Oh, good point.. ha! Ok, I'm going to give that a try and let you know., can't see why it wouldn't work.

This works nicely! There's one minor snag: it seems we also need to hook into the LoadScriptRuntimeModule compilation hooks (the createScript hook specifically.) I can't see a way to get to it though without require('webpack/lib/runtime/LoadScriptRuntimeModule'). That file doesn't exist in earlier Webpack versions, which means we would have to make the require optional (catch the load error) or conditional (check for Webpack version first), both of which are a bit awkward. Is there another way to get to that hook, and if not, could you add one?
Alternatively, if there was a new type of hook called for every inserted script tag (and other tags that can receive SRI, i.e.link) then our code could be both more elegant and more robust as we wouldn't have to worry about implementation details like this one; plus, such a hook could be reused by other plugins that inject tags and other plugins that wish to modify injected tags. See https://github.com/webpack-contrib/mini-css-extract-plugin/issues/40 and https://github.com/webpack-contrib/mini-css-extract-plugin/pull/526 where we've explored this idea some more.

@sokra we're now using a hash in __webpack_require__.sriHashes that maps from chunk ID to SRI hash. As a workaround, we're extracting the chunk ID from the key:
https://github.com/waysact/webpack-subresource-integrity/blob/ed3c8cdc095cc3a5073db52f66514a89252303b6/jmtp.js#L66
I'm assuming you're not making any guarantees that the key will keep using this format, so I would like to turn this into something less brittle as soon as possible.
I suppose we could also use url, but that's coming in already resolved against the current origin; I'm not sure how to reliably turn it back into a canonical, relative URL. Also, it would be less compact, although most of the overhead would likely be gzipped away.
Could you advise, please? I believe the cleanest solution would be if chunkId could be added back.


Looks like one more address is missing in the article: az320820.vo.msecnd.net

[2018-04-09T15:18:11.291+03:00][pid: 12812]: System.Net.WebException: The remote name could not be resolved: 'az320820.vo.msecnd.net'
at System.Net.HttpWebRequest.GetResponse()
at NuGet.RequestHelper.GetResponse()
at NuGet.HttpClient.DownloadData(Stream targetStream)
at NuGet.PackageDownloader.DownloadPackage(IHttpClient downloadClient, IPackageName package, Stream targetStream)
at NuGet.MachineCache.<>c__DisplayClass34.b__33()
at NuGet.MachineCache.TryAct(Func1 action, String path)    at NuGet.DataServicePackage.EnsurePackage(IPackageCacheRepository cacheRepository)    at NuGet.DataServicePackage.get_FrameworkAssemblies()    at NuGet.PackageExtensions.HasProjectContent(IPackage package)    at NuGet.PackageWalker.GetPackageInfo(IPackage package)    at NuGet.PackageWalker.Walk(IPackage package)    at NuGet.InstallWalker.ResolveOperations(IPackage package)    at NuGet.PackageManager.Execute(IPackage package, IPackageOperationResolver resolver)    at Microsoft.ApplicationInsights.NugetExtension.FrameworkSpecificPackageManager.InstallPackage(IPackage package, IList1 frameworkNames, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at Microsoft.ApplicationInsights.NugetExtension.PackageManagerExtension.DownloadPackage(String packageName, String source, Boolean allowPrerelease, String outputDirectory, IList1 frameworkNames, String version, Action1 progressAction)
at Microsoft.Diagnostics.Agent.StatusMonitor.Upgrade.PackageManager.PackageManagerImpl.DownloadPackage(String packageName, String packageVersion, String targetDirectory, Boolean includeDirectory, Action`1 progressAction)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3942b937-b212-3ceb-d356-450b7f598f68
Version Independent ID: 8b015b42-cf02-3942-3cc3-6e0f977d191a
Content: IP addresses used by Application Insights and Log Analytics
Content Source: articles/application-insights/app-insights-ip-addresses.md
Service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@dronkoff Thank you for the feedback!  I will assign this to the author to verify that the address is expected and update the doc accordingly.

#in-process

@dronkoff thank you for bringing this to our attention. The change you requested has been merged. The change will go live during the morning docs publishing window at 10 AM PDT today.

#please-close


Support event payloads

Oftentimes events can carry additional payload data (e.g. new UART message received). It would be cool for it to be supported by StateSmith.

I agree. In the mean time, you can store the additional event information inside a state machine variable.

Thanks for the workaround

You are welcome :) I've used this work around a number of times successfully.
Even though it might take a while before we implement this feature, I'd be happy to hear ideas/thoughts on it.


api: update PodMigrationJob and Reservation CRD

Signed-off-by: Joseph<EMAIL_ADDRESS>Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in make test

/lgtm

/approve


fix: speciation threshold not varying

@aidanhor-n @GabrielDeml  this needs to get merged and on Turing so the new CSVs will have the proper data


workflow reviews

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


python environment

Hi @mrusci, thanks for your great work. I'd like to reproduce your work. But when running scripts, there will be some package version problems.  Could you provide requirements.txt file that including the version of torch, torchaudio and something else required in this project?

thanks for your comment and apology for my late reply.
I will push soon a requirements file (I need to clean my pip list). In the meantime, I can write here the version of the main Python packages. just let me know if you need any clarification on specific module.
librosa              0.9.2
numpy                1.21.6
scikit-learn         1.0.2
scipy                1.7.3
soundfile            0.11.0
torch                1.12.1
torchaudio           0.12.1


ERROR: Failed to parse the ONNX file.

ERROR: Failed to parse the ONNX file.
In node -1 (parseGraph): UNSUPPORTED_NODE: Assertion failed: convertOnnxWeights(initializer, &weights, ctx)
Traceback (most recent call last):
File "main.py", line 372, in
trt_result = profile_trt(build_engine(onnx_path, using_half), batch_size, 10, 100)
File "main.py", line 275, in profile_trt
assert(engine is not None)
AssertionError
Hello! Thank you very much for your open source project, great! However, I met the above problems when I was replicating your project. I saw that others also met these problems. I hope to get your help.
1.My environment configuration is as follows：
CUDA:10.1
CUDNN：v7.6.5
tensorrt：<IP_ADDRESS>
python：3.6
2.The source of my Yolov5s model file is as follows:
https://github.com/ultralytics/yolov5/tree/37e13f88467d29bfb5461ae041fa88e211fbc7ca
3.The implementation process：
1）pt2onnx  succeed
2）onnx simplify failure
3）onnx2engine todo
4）profiler todo
just for 2）：
step1：
python -m onnxsim yolov5_1.onnx outputmodel.onnx
step2：
change code
`
if name == 'main':
batch_size = 1
using_half = False
onnx_path = 'yolov5_{}.onnx'.format(batch_size)   #change the simplified model name to yolov5_1.onnx
with torch.no_grad():
#model = load_model()
#export_onnx(model, batch_size)
simplify_onnx(onnx_path)
    trt_result = profile_trt(build_engine(onnx_path, using_half), batch_size, 10, 100)
    if using_half:
        model.half()
    torch_result = profile_torch(model, using_half, batch_size, 10, 100)

    print(trt_result)
    print(torch_result)

`
The code will then execute and report an error.
I hope to get your help. Thank you.

Hi, the upstream yolov5 is changing over time. I suggest you testing with tag v3.0 of this repo and tag v3.0 of yolov5 to repro. Note that, the mentioned prerequisites in README.md should me met.

I just met the same question

me too

Do you solve the question?

Do you solve the question?


Plugin Settings: Create Hidden Item

Maybe this is an edge case, but I have some settings that I want there to be a line in the JSON config for (and I want to be able to change in my plugin.json), but I don't want users to be able to change the setting in the Plugin Settings interface. Would be good if you could add a property to the config spec called "hide".

For now, you could always use the existing method to save/load a Preference. It's not as clean to be using 2 different mechanisms, but I'm using it for something hidden.

@jgclark While this is true, we can manage this in code using the API, but as soon as the settings.json is edited using NotePlan Configuration VIew, it blows out everything that is NOT in the plugin.json:plugin-settings

If you use a filename, you can save settings using DataStore.saveJSON(object, “some filename.json”), which should not be overwritten by the plugin configuration. Only the default one gets overwritten.

Yes, but is a lot of extra steps and room for error (reading, merging,
etc).
type=‘hidden’ seems like it would take less time to implement than it took
to respond to this thread. @eduardme in your loop, just ignore it in the
settings sheet but keep it in the data structure for writing.
On Sun, Jan 23 2022 at 6:49 AM, Eduard Metzger @.***>
wrote:

If you use a filename, you can save settings using DataStore.saveJSON(object,
“some filename.json”), which should not be overwritten by the plugin
configuration. Only the default one gets overwritten.
—
Reply to this email directly, view it on GitHub
https://github.com/NotePlan/plugins/issues/201#issuecomment-1019500644,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEI6VH5DMT5JSGTIPDO4W3UXQIQFANCNFSM5LX2LFEQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Here's what I have tested:
  console.log("the hidden value: " + DataStore.settings.hiddenKey)
  let settings = DataStore.settings

  // Will save it, but if the user saves the settings again, this will result in "undefined"
  settings.hiddenKey = 100
  DataStore.settings = settings


Adding support for read-only database/Synapse SQL

I have tried to setup SqlPad to access read-only SqlServer database; however, it failed because at some point because it tried to execute CREATE TABLE. I have used SqlPad deployed in container in Azure as described in this post: https://devblogs.microsoft.com/azure-sql/querying-and-visualizing-data-using-sqlpad
I cannot provide writable connection to database, and I don't need some metadata to be saved. I'm fine with providing public access to my sample database via sqlpad but I don't want to provide connection string.
Is there a way to configure SqlPad to work with read-only database or this should be feature request? I tried SqlServer option readOnlyIntent:true but it didn't helped.

Note: I'm trying to setup SqlPad as UI for Synapse SQL serverless that is by design read-only query-able service where we cannot insert data.

You shout configure your read only database under "connections" (in json or I I or env vars) and not under backendDatabaseUri. I've used sqlpad with read only databases (not SQL server though)

To expand on this a bit...
SQLPad needs a database of some kind where it can write data to (saved queries, queries that have been executed, etc). The backend database URI is used for targeting something like MySQL, MariaDB, Postgres, or SQL Server.
Alternatively you can use SQLite and the local file system by only setting dbPath/SQLPAD_DB_PATH.
If you are limiting yourself to 1 SQLPad process and don't need any data kept around, you can give dbInMemory/SQLPAD_DB_IN_MEMORY a try. Just keep in mind you will lose any history/saved queries on process restart.  http://rickbergfalk.github.io/sqlpad/#/configuration?id=dbinmemory

@JocaPC going to close for now - let me know if you have any other questions.


fix: remove profile.Version() and export Version constant instead

Remove Version() and  export the Version constant directly, so we can retrieve the version at compile time.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (7fe073c) to head (ec52799).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #173   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           42        42
  Lines         3471      3471
=========================================
  Hits          3471      3471

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Push v2.5 to Terraform registry

Hi, I wanted to know if there is any roadmap to see the upload of version v2.5 to the terraform registry, is the current version of the registry in terraform v2.3?

@antonbabenko ?

Fixed. Thank you for opening this issue!

@antonbabenko  Thank you very much for the management and the quick solution
I need to ask you another question regarding Multi-VPC, is it possible to enable it with the module? Is there any config to do that? Or just enabling create_cluster_policy and adding cluster_policy_statements is it already activated automatically?

I am not sure. @bryantbiggs do you know?

Activating this through the console and then adding the policy through terra works, the problem is that I cannot find a way to enable multi-VPC from the module and I think it is not in the msk_cluster resource to enable this, I understand that you have to enable it first at https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/msk_cluster and then you take the value and add it to your module

Its not supported in the provider at this time https://github.com/hashicorp/terraform-provider-aws/issues/34419


Bundle size

Hi all,
Currently the bundle size of kontent-delivery-sdk-js is quite high, due to the parse5 & rxjs dependencies. Are there any plans for a light-version of the sdk or saving some kb's from the bundle?

Hi,
There already is a umd bundle without parse5 dependency - https://github.com/Kentico/kontent-delivery-sdk-js#kontent-deliverybrowserumdmin
Is this what you need? :-)

Thanks for the quick reply! Is there a way I can import that bundle in typescript?
Using import { DeliveryClient, TypeResolver } from '@kentico/kontent-delivery' still puts the parse5 lib in the bundle

To give some context, we're running a next.js app which exports both a server and a client bundle.
We would like to be able to let webpack switch between a node and a browser version of. the sdk, like this:
 if (!options.isServer) {
   config.resolve.alias['@sentry/node'] = '@sentry/browser'
   config.resolve.alias['@kentico/kontent-delivery'] ='@kentico/kontent-delivery/_es2015'
 }

It seems though that the es2015 bundle also includes parse5, is that correct? Is there a way to get the browser bundle using import?

You can treat it like any other javascript UMD module and using it like
const sdk = require('@kentico/kontent-delivery/_bundles/kontent-delivery.umd.min');
But you lose all typings. There are no special types for specific bundles. It's possible we could distribute some, but I'm not exactly sure how that would work.
What I would recommend instead is to keep using imports as you are used to and configure your webpack to remove certain libraries from the final bundle. This is by far the easiest approach you can do. I'm actually using exactly this to generate the browser bundle in the first place. Take a look here: https://github.com/Kentico/kontent-delivery-sdk-js/blob/master/webpack.browser.config.js#L22

Cool! That saved over 75k gzipped size. Thanks for the support :)
For anyone stumbling on this issue, i've fixed it by adding this to our webpack config in next.config.js:
if (!options.isServer) {
  config.resolve.alias["@kentico/kontent-delivery"] =
    "@kentico/kontent-delivery/_es2015";
  config.externals = [
    "parse5",
    /^parse5\//,
    {
      rxjs: {
        commonjs: "rxjs",
        commonjs2: "rxjs",
        amd: "rxjs",
        root: "rxjs"
      },
      "rxjs/operators": {
        commonjs: "rxjs/operators",
        commonjs2: "rxjs/operators",
        amd: "rxjs/operators",
        root: ["rxjs", "operators"]
      }
    }
  ];
}


Store network magic in the DB's Version

Problem
Currently the following sequence of steps is considered as valid:

Start network(e.g. our privnet) with a magic X
Wait until several blocks are accepted
Stop all the nodes
Change the network magic from X to Y in the config
Start the network again with the old DB
Wait until some more blocks will be accepted
Profit, you have a broken chain. One part of it is signed using X magic, and another one with Y.

It's very unlikely to happen on some public network, but on private installations this leads to misunderstanding and can break the chain with some important data.
Suggestion
It's clear that the chain wasn't configured properly, so it's not a software bug. But I suggest to include the magic into Version structure and forbid to run the node with changed Version's magic. We already have this check, so extending it will save us (and our users) from such bugs:
https://github.com/nspcc-dev/neo-go/blob/3e714a348e704c994588d667a69b4356fab253d9/pkg/core/blockchain.go#L399-L417
Thanks to @carpawell for the case.
@roman-khimov, what do you think?

Wait until some more blocks will be accepted

This can only happen if you do that on or with CNs at the same time. Otherwise they can't pass previous header check.
At the same time, this totally makes sense because it makes the node fail fast (and completely) in this case, it's just a better behaviour for ops.
The only problem is that this will require a change to the DB scheme and a resync, so we can schedule it for 0.101.0, but probably not earlier than that.


Download of the query result is taking forever

I see that in v2.2.2 the behavior changed, the content of the result is being downloaded to an external file, its path has been provived, and there is an indicator of download progress using a sequence of dots.
The main problem is that it is taking forever to download the file, could it be improved?
Besides that, below are some suggestion. If any of them make sense, we could track them by creating individuals issues.
Suggestions:

Show part of what was already downloaded in a formated way;
Keep updating the part of what was already downloaded until the file opened in editor get to a maximum size of 2,56 MB, as that is the default size of a file on Intellij;
Abort the download process as soon as the user change the file or start a new query; and
To turn the path in a browser link, so if the user clicks on it, the browser will show the file, what is good if the user as a plugin that formats the json file content, which is my case.

Suggestions 1 and 2 has been improved, but I have no idea to solve suggestions 4 for now.

I am going to turn the suggestions in issues, so we can track them there.
Let's use this issue to resolve the bug where the download is never ending.

Hi @Vove7 , I was notified by IntelliJ that version 2.2.3 of this plugin was available. I download it and test it, now the download is happening OK, and pretty fast. Well done! I am going to close this issue as resolved.


Drone doesn't see the GitHub private repo

I'm an admin of the private fork but I don't see it in the repositories list and it produces "Not found" with the direct link.

there are three possible root causes here

you are not logged in. Similar to GitHub drone shows a 404 if the repository is private and you are not authenticated in order to avoid leaking data
your organization needs to grant access to Drone. see the below screenshot
there is a known issue (I don't have the reference issue number, but I know one exists) where in current version of Drone we cache the repository list for 24 hours. If you directly visited the page, however, and got a not found this is probably not the issue

These are not a cases. All the other repositories are working. But not this one. And I really can't say why. How could I debug such errors inside the Docker container? And do you have any plans to create some dev tag (docker) for the latest changes?

@Ilya-Kuchaev my advice is to restart Drone to flush the cache. Then make sure you are logged into Drone and go to http://my-drone-instance.com/api/user/repos/remote in your browser to list every repository in GitHub. This uses the GitHub API to list all repositories, and does not implement any logic to filter the list.

That's strange.
It shows all our private forks but not this one. What settings could I change to resolve such issues?

did you try both of my above suggestions? what were the specific results for each?

closing because we could not re-produce with the latest version


[CLU March Preview] Client Generation

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API changes have been detected in azure-ai-language-conversations. You can review API changes here


Row tag with only text as child isn't parsed

I am using Spark 2.4.3 (w/ Scala 2.11) and Spark XML version 0.6.0 (also tried 0.7.0)
I am attempting read this xml file:
<?xml version="1.0" encoding="utf-8"?>
<x date="201912022200" type="daily">
<ylist>
<y Description1Id="1" RecordType="Person">SomeValue</y>
</ylist>
</x>

I am using this code to do so:
val test = spark.read.format("com.databricks.spark.xml")
      .option("rootTag", "ylist")
      .option("rowTag", "y")
      .load("somefile.xml")

test.printSchema

The schema that is being inferred is incorrect:
root
 |-- _Description1Id: long (nullable = true)
 |-- _RecordType: string (nullable = true)

The value tag is missing.

Yeah, this behavior is kind of inconsistent. The issue is that your row is <y> and it doesn't have named children, just a string. That's not usually supported. However if <ylist> is your row, you'll get the attributes as fields of y, but also a _VALUE column in y with that string. If you can select <ylist> instead as the row, you'll get it all.
I should have another look at why the behavior is different though. I'd also kind of expect you get a _VALUE column by default for a string child of the row tag.

Ok. It is not ideal but I think I can select  and then explode the array to get what I want.
I do think though that the current behavior is not what you would expect.
Thanks!

I did look into this, and I don't think there's an 'easy' fix, though with some hacking it wouldn't be too hard.
So, I'm still on the fence about whether the behavior is consistent or not. Generally speaking, things without a 'name' are not parsed because in a table structure, columns need names. So <row>foo</row> doesn't work. <row><foo>bar</foo></bar> does because it we can see a name for the string value, "foo". <row foo="bar"/> works too because the string value has an identifiable name. But then, what about <row><foo bar="baz">bing</foo></row>? it's clear there's a foo._barcolumn, but it would be inconsistent to refuse to recognize "bing" as a named column because it works without attributes. It becomesfoo._VALUEinstead of the value of a columnfoo, because foo` has to be a struct now.
It wouldn't be crazy to read <row foo="bar">bing</row> as having columns foo and _VALUE. But the value "bing" would not be a column otherwise, which is different from the case above. Then you might ask, why doesn't <row>bing</row> result in a single string column _VALUE? it doesn't and, maybe that would be reasonable too, but less clearly so.
One decent argument is, why doesn't spark-xml read the row element as a single struct always, anyway? It could always return a single column, struct-valued. Right now it basically always flattens that struct, but, this causes these differences in semantics. That would arguably be more consistent, but less convenient perhaps. But, that ship has sailed.
In any event it would be a schema change, which might (?) cause problems for compatibility. At version 0.x here, we make no formal guarantees about compatibility, but, still worth thinking about.

Hi guys,
We face exactly the same problem. In general, this occurs because there is a predefined fixed scheme or divergent schemes for a set of files that contain chained structures with empty tags or skipping lines and without using self-closed tags, example:

Where it could for example also come:

If the scheme is defined and the tags are not being closed on the same line, such as:

The problem occurs. To solve this, we read the data as WHOLE TEXT and apply a REGEXP to replace the spaces, later applying XML serialization using the FROM_XML function of the Databricks.
Follow:
`//READ XML LIKE A WHOLE_TEXT_FILE, REPLACE THE SPACES AND SERIALIZE THAT:
import scala.util.parsing.jasdson._
import scala.io.Source
import org.apache.spark.sql.Row asdasd
import org.apache.spark.sql.types.{ArrayType, DataType, DataTypes, DoubleType, IntegerType, MapType, StringType, StructField, StructType}
import com.databricks.spark.xml._
import spark.implicits._
import com.databricks.spark.xml.functions.from_xml
import com.databricks.spark.xml.schema_of_xml
val schemaSource = Source.fromFile("mySchema.json").getLines.mkString
val schemaFromJson = DataType.fromJson(schemaSource).asInstanceOf[StructType]
val df = spark.read.textFile("./myXmls/*.xml")
val df1 = df.toDF()
val df2 = df1.withColumn("xml", regexp_replace(col("value") , ">[\s]*<", "><" ))
val df3 = df2.withColumn("parsed", from_xml($"xml", schemaFromJson, Map("rowTag" -> "XXX", "nullValue" -> "") ))
`
This is a scala example, in our case we had to implement it in Java to meet our use case.
I hope it helps other people
Mathias Brem Garcia,
Rox Partner

Hm, whitespace and line breaks shouldn't matter. It will parse each <row> with a regular XML parser. What you might be observing is that if you never have an example of <bar> when it infers the schema then it can't know about this one. You shouldn't have to do any of that to handle it.
But the issue above is a bit different, concerning text elements just inside the root tag alongside other elements.

The serializer reads line by line and interprets those lines; if you read the entire file on one line, you can solve these problems. If this error affected you, test it out (hotfix or suggestions) and it will probably work for you.
Remembering that this applies to the case of a schema already defined through .schema ().
For dynamic schemas it may not make sense.

The XmlInputFormat is based on LineRecordReader, which does read a line at a time, but, it forms a single XML string per row to feed to an XML parser. If you have an issue here it's something slightly different going on.


Merge with HEAD and update serde to pass all tests

This gets the serde test suite written back in April to pass all tests. There were a couple major things done:

Port to serde 0.5.
Switched over to using 0.5's new newtype struct support, so that a type like struct Foo(u32) doesn't have a wrapper struct/tuple.
Added a Deserialize::visit_enum that matches the rustc-serialize's pattern of trying to deserialize a tuple into each variant.
In order to prevent floats from being casted into integers (and vice versa), I added overrides for Deserialize::visit_{usize,u8,u16,..,i8,i16,...} to call a new Deserialize::visit_i64, and the same for f32 and f64.
Rewrote the serde MapVisitor to report the field when having an error.

Awesome, thanks so much @erickt! I've pushed this all to master and have deleted the serde branch of toml-rs!


3.1.3 can't allocate GPG lock

Hi, we're seeing the following issue after updating to use Bitrise CodeCov step v3.1.3 (no issue with v2):
+------------------------------------------------------------------------------+
| (12) codecov@3                                                               |
+------------------------------------------------------------------------------+
| id: codecov                                                                  |
| version: 3.1.3                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2022-04-22T07:58:01Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0gpg: directory '/Users/vagrant/.gnupg' created
gpg: keybox '/Users/vagrant/.gnupg/trustedkeys.gpg' created

100  3187  100  3187    0     0   9373      0 --:--:-- --:--:-- --:--:--  9373
gpg: /Users/vagrant/.gnupg/trustdb.gpg: trustdb created
gpg: key xxxx: public key "Codecov Uploader (Codecov Uploader Verification Key<EMAIL_ADDRESS>imported
gpg: Total number processed: 1
gpg:               imported: 1
gpgv: can't allocate lock for '/Users/vagrant/.gnupg/trustedkeys.gpg'
gpgv: no valid OpenPGP data found.
gpgv: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.
WARN[07:58:05] Step (codecov@3) failed, but was marked as skippable
|                                                                              |
+---+---------------------------------------------------------------+----------+
| ! | codecov@3 (exit code: 2)                                      | 7.18 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://community.codecov.io/                                  |
| Source: https://github.com/codecov/codecov-bitrise                           |
+---+---------------------------------------------------------------+----------+

This might be a file permissions issue maybe?

@phillipc-myfiziq possibly. What happens if you run
mkdir ~/.gnupg
touch ~/.gnupg/trustedkeys.gpg

before the step?

Hi @thomasrockhu , thank you for your suggestion.
I have updated the bitrise.yaml with the following:
- script@1: &shFixCodeCov
        title: Fix CodeCov Step
        inputs:
        - content: |-
            mkdir ~/.gnupg
            touch ~/.gnupg/trustedkeys.gpg
    - codecov@3:
        inputs:
        - CODECOV_TOKEN: "$CODECOV_TOKEN"

However, GPG seems to fall into another issue:
100  3187  100  3187    0     0  23962      0 --:--:-- --:--:-- --:--:-- 23962
gpg: WARNING: unsafe permissions on homedir '/Users/vagrant/.gnupg'
gpg: /Users/vagrant/.gnupg/trustdb.gpg: trustdb created
gpg: key xxxxx: public key "Codecov Uploader (Codecov Uploader Verification Key<EMAIL_ADDRESS>imported
gpg: Total number processed: 1
gpg:               imported: 1
gpgv: no valid OpenPGP data found.
gpgv: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.

@phillipc-myfiziq huh, this is just really bizarre. Are you doing any cds or anything like that? Would the scripts be running not in a normal home directory?

This could be the case - I'll continue to investigate to see if I can find anything else to resolve the issue. If I find something, I'll make a comment. Thanks for your help @thomasrockhu-codecov

@phillipc-myfiziq just wanted to re-ping here in case you were able to find something

@thomasrockhu I'm getting the same issue with 3.1.3
I'm getting the following error from the Codecov step, and so far I was unable to find a solution for this.

I can't get Codecov step to work, and I suspect it might be broken.

My yml:
- [codecov@3.1](mailto:codecov@3.1):
inputs:
- OS: ios
- CODECOV_TOKEN: "$CODECOV_TOKEN"

And this is the error:

+------------------------------------------------------------------------------+
| (3) [codecov<EMAIL_ADDRESS>|
+------------------------------------------------------------------------------+
| id: codecov |
| version: 3.1.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2022-06-04T10:19:28Z |
+------------------------------------------------------------------------------+
| |
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3187 100 3187 0 0 35411 0 --:--:-- --:--:-- --:--:-- 35411
gpg: directory '/Users/vagrant/.gnupg' created
gpg: keybox '/Users/vagrant/.gnupg/trustedkeys.gpg' created
gpg: /Users/vagrant/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <[security@codecov.io](mailto:security@codecov.io)>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpgv: can't allocate lock for '/Users/vagrant/.gnupg/trustedkeys.gpg'
gpgv: no valid OpenPGP data found.
gpgv: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.
WARN[10:19:30] Step ([codecov@3.1](mailto:codecov@3.1)) failed, but was marked as skippable
| |
+---+---------------------------------------------------------------+----------+
| ! | [codecov<EMAIL_ADDRESS>(exit code: 2) | 2.48 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://community.codecov.io/ |
| Source: https://github.com/codecov/codecov-bitrise |
+---+---------------------------------------------------------------+----------+

I fixed this by adding the OS input to the codecov step. Looks like this was added in v3, but marked as optional when it is actually required.
    - codecov@3:
        inputs:
        - CODECOV_TOKEN: "$CODECOV_TOKEN"
        - OS: macos


New pedersen hash function

This replaces the existing pedersen hash function with the one described in the zcash sapling spec, section <IP_ADDRESS>.
The current one has the form (t0, …, tn) -> t0 * g0 + … + tn * gn where the gi are random group elements.
The new one has the form
(t0, …, t_{N-1}, t_N, …, t_{2N-1}, …)
->
t0 * (2^0 * g0)
+ t1 * (2^4 * g0)
+ t2 * (2^8 * g0)
+ …
+ t_{N-1} (2^{4*(N-1)} * g0)
+ tN * (2^{4 * N} * g1)
+ …
+ t_{2N-1} (2^{4*(2N - 1)} * g1)
+ …

There are several advantages of this hash function:

It is much faster to compute outside the SNARK.
The parameters are much smaller.

Build error in unit tests:
File "lib/vrf_lib/integrated_test.ml", line 58, characters 19-22:
Error: Unbound record field acc

Doc-comments need to be added to explain the purpose of each function.

Closing this as it's actually slower than the old hash function and I realized I made an error in calculating the speed / memory-use ratio of this new version (it's worse than the old version).


Bookmark confirmation

Unless you know what the symbol means it's not really clear what the bookmark button does
Suggesting a green toast message?
Success haptic too?

Bug Report Dump (Auto-generated)

Version 1.12.0 (1163)
Device: iPhone 6s Plus (iOS 11.1)
TestFlight: true

Think it has a haptic when adding, but not removing

Don't really know if it really needs a haptic as you already have the button change honestly

I feel like the bookmark icon is pretty universal? Also the icon is the same as the tab, so it shouldn’t be hard to connect the dots.
Not married to haptics tho.
Sent with GitHawk

Probably just me then, never used that icon before 😅 All good

🤔

Recording App Previews 😄
Sent with GitHawk


chore: remove dead code in Lake.Util.Compare

While exploring refactors of List.lt I ran into errors here, in code that is entirely unused. Propose cleaning up to get things out of my way!

@tydeu, I'm going to merge this now, but ping me if I've removed anything you still want for later and we can discuss.


Please expose raw QPC ticks from TraceEvent

For advanced systems reliant on high resolution time measurement, QPC is a critical component for analyzing system performance, and such is more or less treated as "data".  It would be great to be able to grab that from all TraceEvents instead of having to manually include a custom event in the trace itself to log raw QPC, since all events have QPC implicitly under the hood.

+1
I had to reach it with Reflection, but it';s rather time consuming.
PropertyInfo prop = objType?.GetProperty("TimeStampQPC", BindingFlags.NonPublic | BindingFlags.Instance);

Seems like a reasonable request.  Please feel free to propose a design as a first step, such as what @pharring suggests.


fix issue #8

The tests passed on my local machine with pytest, but I don't know why the tests on Github are failing.

It fails for me too. I think part of the problem is the Git clone it does in the integration test. It's too complicated to set all that up just yet, so I'm going to just turn GitHub Actions off for this repo (again).


Trigger helm release

This is the companion PR for https://github.com/unpoller/helm-chart/pull/1/files
When the new version of unpoller is released, we trigger the workflow in the chart, so the versions are kept in lock-step.
@SuperQ @platinummonkey
I triggered the release process manually and everything seems to be working. I think I need to do a final PR to glue everything together, I don't think helm will like tags starting with v in the verions v2.xxx

From my perspective the release on the helm chart worked, so happy to get his merged whenever you want.

Puff, I was cleaning my repos, and I didn't realize this was a dep, let me re-open it.

reopen?


Wrong elevation and azimuth angles for when receiver has a longitude < 0.

The software computes wrong elevation and azimuth angles if the receiver has a negative longitude value. The ECEF2enu function, which converts the coordinates from ECEF to a local topocentric coordinates system (east,north up), gives wrong values when lon < 0.

Bug is now fixed #ea31185


API is giving timeout Error (Errno 110]

The batch translation api is throwing a time-out error from today morning. Could you please fix this issue?

Yes.I am also facing timeout error.

Hi @Sri20021 @subnkve479,
We have moved away from the public API which we demoed during the workshop. Our models are currently available on ULCA and HuggingFace Spaces

Hi Sumant
I tried to use through huggingface space.I can do translations using below link on web browser
https://huggingface.co/spaces/ai4bharat/IndicTrans-Indic2English
But to use the model at my work I want to load the same.I tried below but facing errors
translator=pipeline('translation',model='ai4bharat/IndicTrans-Indic2English')
I am getting RepositoryNotFoundError .
OSError: ai4bharat/IndicTrans-Indic2English is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with use_auth_token or log in with huggingface-cli login and pass use_auth_token=True.
ie. I am not able to access ai4bharath IndicTrans model  through hugging face pipelines. Can you please help me if I am missing something
Regards
Subbu

@sumanthd17 @GokulNC
Can you please resolve my above query

Thanks Sumanth. @subnkve479 I am able to run using this link: https://hf.space/embed/ai4bharat/IndicTrans-English2Indic/api. However this is limited to single string translation.
@sumanthd17 Is there a way to do batch Translation like the earlier hosted public api using hugging face spaces models?

We do not have a freely hosted API for machine translation, since it is very costly to deploy it for large-scale public consumption. Since the codebase & models are open-source, we recommend you go ahead and host them yourself for your private purposes.

I am not able to access ai4bharath IndicTrans model through hugging face pipelines

Yes, since the indicTrans model is using fairseq, it is not yet converted to HuggingFace format, so not available as a model on HF. (The HF spaces is just hosted using the fairseq model as it is, for demo purposes.)

@GokulNC  Thanks fore reply. I will try to host it with open source code.
Any information on when indicTrans model will be available in HF ?

We do not have a freely hosted API for machine translation, since it is very costly to deploy it for large-scale public consumption. Since the codebase & models are open-source, we recommend you go ahead and host them yourself for your private purposes.

I am not able to access ai4bharath IndicTrans model through hugging face pipelines

Yes, since the indicTrans model is using fairseq, it is not yet converted to HuggingFace format, so not available as a model on HF. (The HF spaces is just hosted using the fairseq model as it is, for demo purposes.)

Hi, What is the minimum and recommended hardware specification to deploy  ai4bharath IndicTrans model.?

We have not tested the absolute minimum but it should work without any issue on 16gb cards ranging from K80 to A100

Can it be deployed on non-GPU systems?


router: Support UDP routes

If so how would I configure a UDP route?  If not, is UDP support something that can be added in the future?

@Altneu the router does not currently support UDP routes, but there is no reason why it couldn't in the future.
We will leave this issue open to track adding support.

That would be nice for game servers. :)

Would be nice for IOT infrastructure as well.

Could someone point me in the direction of where this enhancement would be made in the code?   Would love this too.

@deini haven't had a chance yet.  Its high on my list of things to do though.

Just as a pointer if anyone is interested in doing this, it'd basically be very similar to UDP NAT. The 5-tuple is used to identify client flows, the destination port is used to identify the backend service, and the source port used from the router to the backend (and the destination when responding) is used to identify flows on the backend side. Each flow would get an activity timeout for garbage collection and zero-downtime deploy integration with the scheduler.

Thanks for the pointers @titanous, would be great if someone who is familiar with the codebase already could take this on, however I am open to giving it a shot as soon as I have time.

Any updates on this? Im trying to run a rails task that listens to UDPSocket port for packets. Is it possible to run this behind flynn?  Or should i run this task as a standalone app side by side?
I know this is not possible in dokku, but maybe flynn does the trick. Thanks in advance!

Flynn is unmaintained and our infrastructure will shut down on June 1, 2021. See the README for details.


Does MediaPipe currently support batch processing for TFLite?

I think we just need to modify TFLiteConverter and TFLiteInference calculators by a bit, i.e. add the batch size to both of them and we would be able to support both single image (batch size = 1) and batch (batch size = n) processing. Any reason to not do that?

That's definitely doable. But batch processing currently is hardly/poorly supported on mobile GPUs. So I don't recommend doing that if you are targeting for mobile. But on CPU it should be fine.
Another thing to keep in mind that you'll also need to support other preprocessing calculators to batch inputs. Or you can easily create a new calculator that does batch preprocessing for your case.

@fanzhanggoogle Just curious. How bad is the support on mobile GPUs? Currently my image size is only 48x48. And the batch is about 100. Is it also bad for this situation when the image size is so small, i.e. looping 100 times is faster than doing batch?

@impjdi Could you shed light on batch processing support on mobile GPUs? Thank you!
@impjdi is the lead on TFLite GPU backend.

By the way, even it is really the case that batch processing is slow on mobile, I don't see any reason why changing this  {height, width, channels_preserved} to {n, height, width, channels_preserved}` in this line and some other related lines can be of any harm:
https://github.com/google/mediapipe/blob/master/mediapipe/calculators/tflite/tflite_converter_calculator.cc#L314
I will make the calculator much more flexible without any overhead.

Before calling Interpreter::ModifyGraphWithDelegate, try calling Interpreter::ResizeInputTensor.  IIRC batch support is half-way done.

@impjdi Yup. I know how to modify it to support batch processing. I am just curious why don't just make the calculator flexible by making the calculator support batch processing by default when batch processing also makes single image processing possible, so there is no conflict with existing codebase. Any good rationale for not doing that?

No, not really.  We didn't consider batch dimension to be a crucial part of real-time use cases.  It was just never asked by anyone (internally, I may add) and thus never prioritized.


Creating Ephemerides settings using JPL Horizons

This PR adds an interface to JPL's Horizons System. For now, the vectors API has been implemented, building upon the features of Astroqueries' implementation. Other Horizons features will be added in future. An issue will be opened soon where planned features will be listed.  For now, the new HorizonsQuery (single-body) and HorizonsBatch (multi-body) classes feature:

Retrieval of Horizons System generated state vectors for any time and any body (including spacecraft) available in the Horizons System.
Creation of tabulated ephemeris settings for any of these bodies for use in Tudat.
An extended query option which bypasses Horizon's output limit by automatically creating subqueries.
Extensive input handling and processing to enable simple addition of future features.

This PR is related to the new MPC interface (https://github.com/tudat-team/tudatpy/pull/110), both included in Tudat's new data submodule. A future PR in the examples repository covering the advanced use of the MPC interface will showcase the features of this PR.

Small comment on this, there's an open pull request:
https://github.com/tudat-team/tudatpy/pull/116
which allows for the merging of native Python and C++ code into a single submodule. Once this is merged and tested, I'd like to extend this pull request with one additional function in this submodule: https://py.api.tudat.space/en/stable/ephemeris.html#functions (named, for instance jpl_horizons), which then calls the HorizonsQuery.create_ephemeris_tabulated function.

This all looks very good! I found one spelling error in a function name, but other than that, I think this can be merged (once #110 is merged)!
When this and #116 are succesfully merged, we can add the function to  https://py.api.tudat.space/en/stable/ephemeris.html that I mentioned in my previous post (but we can merge this PR before doing so).

Hi! Nice feature! When performing optimizations with many propagations it would be convenient to avoid re-downloading the JPL Horizons ephemerides as many times.
Would it be possible to serialize/save in some other way the data obtained from JPL Horizons to load it back when running  further simulations using the same ephemerides?

Hi Antonio,
This would indeed be a useful feature. The first thing that comes to mind is saving it to a csv/parquet/etc and then having a query.load method. But this feels a bit cheap. Maybe it would be best to do this at the ephemeris level?
It could work to directly cache start, end, timestep queries, for other types of queries this might be difficult. I'm open to suggestions on the format of saving the cached files, maybe you have some ideas? Also, this would be in a subsequent PR.

Hi Tristan, I agree it would be best to do it at the pehemeris level. As to file formats, in ml it's pretty common to pickle data and I really like that way of doing things. I haven't worked with more specific file formats for this case. Maybe @DominicDirkx would have a suggestion?


travis deploy published multiple times (per jdk tested)

looking at https://oss.jfrog.org/artifactory/oss-snapshot-local/com/blackducksoftware/ohcount4j/ohcount4j/2.0.0-SNAPSHOT/
It appears that the first build under travis (https://travis-ci.org/blackducksoftware/ohcount4j/builds/140972358) published 3 snapshots.
The fix is one of:

pick and test under one jdk (easier, but we loose jdk version coverage)
only publish the result of one jdk test (harder, but we keep coverage)

We could keep the matrix and look at TRAVIS_JOB_NUMBER ending with ".1"

fixed by #35


Some issues with the standard EVT codes

So the original EVTs for zone 21 (Moradon) have some incorrect codes. What the NPC says (things like "you have to be level 10 or above" or "would you like to retry this quest") doesn't match up with what actually happens in the EVTs. This isn't an issue with the converter because the LUA code matches what the EVTs say to do but the EVTs are just wrong.
This issue is just for NPC Isaac in Moradon but unfortunately I'm sure this is an issue all over the place...

We can use edited EVTs of other servers ? They probably have already fix it.

Absolutely, if you are able to find any just drop them in the repo

There were all in my deleted VM :).I will send a forum that you can look for those kind of files through whatsapp, but in case you can't find it, I can handle with it when I come back.

This issue was moved to ApexKO/OpenKO#16


Support Windows PowerShell

Description

Enable tests for Windows PowerShell.

Type of change

[ ] 📖 [Docs]
[ ] 🪲 [Fix]
[x] 🩹 [Patch]
[ ] ⚠ [Security fix]
[ ] 🚀 [Feature]
[ ] 🌟 [Breaking change]

Checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas

Its too expensive.

Need rework of ConvertFrom-Json, -AsHashtable is not supported.
Need rework of Invoke-GitHubAPI, as -FollowRelLink, HttpVersion, Authentication, Token ++ is not supported in Windows PowerShell 5.1. HttpVersion is not even supported in 7.2.

This then serves as a reminder that we will only support the latest version of PowerShell, assuming that developers that use GitHub actually can install PowerShell (core) on their machines.


Try to detect CSV/TSV without headers

#54

Parse file with the following data e.g. (This is the same logic as in Model Builder)
- File types - any text based file e.g. txt, csv, tsv, excel formats
- Separators
Supported Options: tab (default), space, comma, new line, colon, semi-colon
- Quote
Whether the input may include quoted values, which can contain separator characters, colons, and distinguish empty values from missing values. When true, consecutive separators denote a missing value and an empty value is denoted by "". When false, consecutive separators denote an empty value.
- Parse files with no headers
In this case, the col names become "Column0" .. "Column2" .. "ColumnN-1"
These are the column names a user can select as one of the columns in the "Columns to Predict" dropdown
In the train step, instead of passing in column names to the CLI, you will pass the column index (0,1,…or N-1)

The old model builder text parsing code cannot be used for our new Model Builder. The text parsing comes from an old preview version of the Microsoft.ML package (version 0.3.0-preview-26606-1) and is incompatible with the current Microsoft.ML nuget (v1.1). The text parsing/column detection functionality has been removed from Microsoft.ML.Data and moved to the AutoML library.
There is an InferColumns method in AutoML. This does what we want - it parses the file, determines if there's a header, what the separator is and what the column names are. However, it has a hard requirement that the label column be provided. This is how it recognizes if there's a header or not and what the separator is (by searching the first line for the label and using that info to determine the separator and if there's a header)
However,

Please reach out to sefilipi who wrote the code for Old Model Builder to get more data as well.

Currently, we just consider the situation that all files have header

Reopening. We need to support this scenario.

@LittleLittleCloud , @rustd is correct. We should try to support this scenario. Just not at the same time as the #73.

if (first line doesn't have repetitive column name) => set first line as header
else => using default header
Does that make sense?
@rustd

Add options for headers and separators. We will default to something and the user can change it.

We may still need some UI to allow users to set the option for parser

I think this is a must for image classification scenarios where features are hundreds or thousands of pixels. Although I generated and added the headers with a line of WinPS code, I see no reason why this wouldn't be supported in future versions. I agree with @LittleLittleCloud .


Modify code server subpath

I would like to access code server with a base url, which may be satisfied with sub-path mentioned in FAQ. However this path can not be changed with any argument, like NotebookApp.base_url in jupyter launching command or path_prefix in tensorBoard launching command.
Can this feature be updated?

code-server should work no matter what base you put it behind so there should be no need for such a setting. Is there a problem you're running into?

Oh, are you running code-server without a reverse proxy? To run code-server behind a base path you'll need to run a reverse proxy like Caddy.

I think he's referring to something like the --base-path that exists in version 2.  Is that possible in version 3?

Nope, code-server should be base path agnostic which is why the flag was removed. We rely on reverse proxies to serve code-server at a base path (actually that was always the case, --base-path was only ever used to redirect from the login page to the root but now we just do it relatively by redirecting to ../).

@code-asher  I think code-server needs to be aware of the base-url path, because behind my reverse proxy vscode is making requests for js/css files with incorrect urls. For example code-server is running at https://servername/vscode
and is making requests for https://servername/static/xxx/code-server/lib/vscode/out/vs/workbench/workbenc.web.api.css
instead of https://servername/vscode/static/....
Or is my reverse proxy just not configured properly...

+1
I also need this feature that allowed multi users to access the multi code-server instances in the same domain and different base-path:
https://example.com/user-a/   proxy to <IP_ADDRESS>:8080/user-a/
https://example.com/user-b/   proxy to <IP_ADDRESS>:8080/user-b/

@eryx The recommended way to do that is to use a reverse proxy like Caddy or NGINX.
I'll close this issue for now since I don't think we plan on adding a base path flag to code-server. If there are cases that can't be handled with a reverse proxy let me know though!


Publish to npm?

Hello,
this is a very nice collection of react components, thanks very much! For me, it would be even more helpful (read: actually usable) if it were published to npm...
May I kindly ask you to do this? Or is there a reason for you not to?
Thanks,
Nicole

The package is published to npm here: https://www.npmjs.com/package/react-components


Simple Expression in Visible Property does compile but crashes when opening Page

When using a simple expression in the Visible Property of a e.g. group in a page, there is a bug:
group(MyGroup1)  {  Visible=VisibleInteger=1;
As you can see, the visibility is based on a simple expression: If my Variable "VisibleInteger" is 1 the Group is visible.
You can compile and publish the app, but when starting the page you get the following error:

When you change the code to the following the page can be opened:
group(MyGroup1)  {  Visible=VisibleInteger = 1;
Tested on November Preview

Hi @dNsl9r . The expression parser is not a part of the compiler but the runtime so due to legacy reasons (compatibility with CSIDE) we cannot make breaking changes to it yet

I have managed to fix the spacing issue. You can expect the fix in the next update


WWW-606: Create PW Replay view and facets

Jira
https://pegadigitalit.atlassian.net/browse/WWW-606
Summary
Removed the word break from the Teaser description text
Details
This fix prevents words from being broken (without hyphens) in the hover description text. This came up on testing of WWW-606.
How to test
Review the /pattern-lab/?p=components-teaser-text-options page and check how the hover description text breaks to a new line and hyphenates

Closing, shouldn't be a hotfix


Added data integration for mode analytics

Summary
Added Tap for mode analytics in order to create an integration that pulls BI assets metadata ( dashboards, charts, etc. ) and load it to a destination
Tests
Followed This documentation and made sure that the data syncs to a snowflake destination.
cc:
@wangxiaoyou1993

I made the noted changes @wangxiaoyou1993


affine creates artefacts on the edges of the image

🐛 Describe the bug
When employing the affine functional operation (in both v1 and v2), it's evident that black borders are introduced around the image, even when the fill value matches the image content. These black margins are observable when using both uint8 and float32 data types, and this phenomenon occurs consistently on both Ubuntu and Mac M1.
Upon comparing the implementation of the 'affine' operation in torchvision with that in Kornia, I am uncertain whether the interpolation issue is limited to the image edges. Notably, when utilizing Kornia, the output appears to be more visually appealing when applied to an image.
import torch
import torchvision
from torchvision.transforms.v2.functional import affine
from torchvision.tv_tensors import Image
from torchvision.transforms.v2.functional._geometry import _get_inverse_affine_matrix
from kornia.geometry.transform import get_affine_matrix2d, warp_affine
from torchvision.transforms import InterpolationMode

image = Image(128 * torch.ones((3, 240, 200), dtype=torch.float))

angle =30
trans = (0,0)
scale = 1.0
shear = (0,0)
center = (image.shape[-1] / 2, image.shape[-2] / 2)
inter = InterpolationMode.BILINEAR
fill = [128, 128, 128]

M = get_affine_matrix2d(
    torch.Tensor(trans),
    torch.Tensor([center]),
    torch.Tensor([[scale, scale]]),
    torch.Tensor([angle]),
    torch.Tensor([shear[0]]),
    torch.Tensor([shear[1]]),
)

kn_img = warp_affine(
    image.unsqueeze(0),
    M[:, :2],
    image.shape[-2:],
    mode="bilinear",
    padding_mode="fill",
    fill_value=torch.tensor(fill),
    align_corners=False,
)

tv_img = affine(
    image,
    angle=angle,
    translate=trans,
    scale=scale,
    shear=shear,
    fill=fill,
    interpolation=inter,
)

torchvision.io.write_png(kn_img[0].to(dtype=torch.uint8), "affine_kornia.png")
torchvision.io.write_png(tv_img.to(dtype=torch.uint8), "affine_torchvision.png")

Kornia
Torchvision

Versions
PyTorch version: 2.1.0
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: macOS 13.6 (arm64)
GCC version: Could not collect
Clang version: 15.0.0 (clang-15<IP_ADDRESS>)
CMake version: Could not collect
Libc version: N/A
Python version: 3.10.9 (main, Jun 29 2023, 12:23:23) [Clang 14.0.3 (clang-14<IP_ADDRESS>.1)] (64-bit runtime)
Python platform: macOS-13.6-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Apple M1 Pro
Versions of relevant libraries:
[pip3] flake8==6.1.0
[pip3] mypy==1.6.0
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.25.2
[pip3] onnx==1.14.1
[pip3] pytorch-lightning==2.0.9
[pip3] pytorch-ranger==0.1.1
[pip3] torch==2.1.0
[pip3] torch-optimizer==0.3.0
[pip3] torchdata==0.6.1
[pip3] torchmetrics==1.0.3
[pip3] torchtext==0.15.2
[pip3] torchvision==0.16.0
cc @vfdev-5

This is #6517

Thanks @pmeier! If i understand well, the issue is restricted to the edge of the image and the rest of the grid sampling/interpolation works correctly. Is that right?

If i understand well, the issue is restricted to the edge of the image and the rest of the grid sampling/interpolation works correctly. Is that right?

Correct. And to be even more specific, it only happens for bilinear interpolation:
https://github.com/pytorch/vision/blob/f69eee6108cd047ac8b62a2992244e9ab3c105e1/torchvision/transforms/_functional_tensor.py#L567-L571
It is the blending between the fill mask and the image that goes wrong.

Here is adapted script to show the difference between nearest and bilinear:
import torch
import torchvision
from torchvision.transforms.v2.functional import affine
from torchvision.tv_tensors import Image
from torchvision.transforms import InterpolationMode

image = Image(128 * torch.ones((3, 240, 200), dtype=torch.float))

angle = 30
trans = (0,0)
scale = 1.0
shear = (0,0)
center = (image.shape[-1] / 2, image.shape[-2] / 2)
fill = [128, 128, 128]

for inter in [InterpolationMode.NEAREST, InterpolationMode.BILINEAR]:
    tv_img = affine(
        image,
        angle=angle,
        translate=trans,
        scale=scale,
        shear=shear,
        fill=fill,
        interpolation=inter,
    )
    torchvision.io.write_png(tv_img.to(dtype=torch.uint8), f"{inter.value}.png")

this hasn't been fixed yet

this hasn't been fixed yet


Adding green and tiny styles to the BoxButton

Both styles are needed for the copy button in the Signup modal.
Learned a bit about Tailwind here that results in some tweaks. To get opacity with color variables, there needs to be a color transform function in the Tailwind config, so I added that. This way we also don't need to use color variables in Tailwind classes anymore, as the transform adds those.
Also replaced two existing color definitions with our new variable-based ones.

Nice, looks good and is more practical. It conflicts with master though.

Fixed, thanks.


store: Add node Ephemeral support

Adds an Ephemeral flag to Consul, Zookeeper and Etcd for usage with Discovery.
This PR is mostly made to discuss about what is the best approach: rely on TTLs or use an Ephemeral flag. In both cases there are trade-offs to be made on the semantics of both operations:

If we use an Ephemeral flag, we hide etcd's lack of support for Ephemeral by the use of a periodic Set that renews the TTL (What this PR does)
If we use a TTL, we must hide zookeeper's lack of support for TTL behind the use of an Ephemeral flag.

partially fixes #794

Rebased and updated Godeps (there was an issue with go-etcd and the ttl parameter of Set, setting it to a value different than 0 would cause an index out of bound exception).
It now works consistently across the 3 stores (at least locally, Jenkins fails on etcd for some reasons). I kept it simple, for now the TTL is set as a const: 60s, and it is hidden behind the ephemeral behavior. I'm waiting for #805 to update this and place the EphemeralTTL to be higher than the heartbeat (something like 2 or 3 times the heartbeat set on join).

Should we update the etcd image on integration tests to use at least v2.0.0 (and require everyone to use etcd >= v2.0.0)? I think that updating Godeps with the latest version of go-etcd is probably the reason integration tests are failing now.. (we still use v0.4.6)
I did all my tests on the latest version of etcd: v2.0.11
/cc @aluzzardi

@abronan I actually tried that - for some reason, updating etcd or go-etcd breaks our tests :(
I didn't try to updating both though.
We could try once we get #805 in since that PR is changing the tests a lot (they test way more), as it would be unsafe to upgrade without getting those tests in first.

@aluzzardi Yes that was what I was thinking. I'll try updating both once we have your PR merged and see how we can fix this.

We should test that the TTL is working correctly with a test similar to #811

I kept it simple, for now the TTL is set as a const: 60s, and it is hidden behind the ephemeral behavior. I'm waiting for #805 to update this and place the EphemeralTTL to be higher than the heartbeat (something like 2 or 3 times the heartbeat set on join).

In order to be able to do integration tests, we'll need to be able to configure the TTL.
How about adding EphemeralTTL and EphemeralHeartbeat to the store Config?
We'd use the cli heartbeat flag for the heartbeat, and we could probably add a swarm.discovery.ttl flag for the TTL - it makes sense for other stores as well (token /cc @vieux)

Looks like we would not be able to merge this PR because of merge conflicts. Please rebase, fix conflicts, and force push to your branch.

@aluzzardi Rebased once again. Tests are now passing. I changed the etcd image for the latest version v2.0.11. Still a few changes to make but we are slowly getting there :ghost:
Also I think I'd probably like to add the integration tests at this point.

ping @aluzzardi
Rebased on master (with Node removal). It works fine, I added a single integration test for each backend.
It is not ideal at the moment but we need to figure out what to do with etcd first if we want a refresh happening in the background (because of the lack of a TTL Update function on key without specifying a value).
Also Consul does not accepts TTLs inferior to 10s, thus the total integration tests time is increasing a little bit :-(

Few minor comments otherwise looks good

@aluzzardi PTAL
/cc @vieux

LGTM


Number of candidates returned for clustering should be capped

I have a file where 31,787 clusters were found and the top clusters have 39 variants in them.
We need to cap the number returned to the browser because otherwise it becomes unresponsive (or crashes).

My latest experiment is a 400K row file of menu dishes which are very messy and highly duplicated with the top cluster being 49 ways to spell "fried sweet potatoes." The 41K clusters take 3-7 seconds to compute on the server, but then many minutes to render in my browser.
The default maximum should probably be something like 5-10K, perhaps with a setting to allow it to be increased, like the text facet choices.


Client is not running

That's what I get instead of autocompletion, whenever I type:

Quite cryptic TBH.
Runtime status:
Uncaught Errors (9)
write EPIPE
Client is not running and can't be stopped. It's current state is: starting
write EPIPE
write EPIPE
Client is not running and can't be stopped. It's current state is: starting
Pending response rejected since connection got disposed
Client is not running and can't be stopped. It's current state is: starting
Client is not running and can't be stopped. It's current state is: startFailed
Client is not running and can't be stopped. It's current state is: startFailed

Using Windows 11 with my local LM Studio server.

I have the same criptic error. Using llm-vscode version 0.1.5 vscode version 1.83.1 on mac os Ventura 13.5.2

The client isn't compatible with llama.cpp at the moment. As for the errors you're facing, I cannot debug without the full error message.
Could you share your settings as well?

that is all I am able to get as error message:

These are my extension settings:
{
  "llm.attributionEndpoint": "https://stack.dataportraits.org/overlap",
  "llm.attributionWindowSize": 250,
  "llm.configTemplate": "bigcode/starcoder",
  "llm.contextWindow": 8192,
  "llm.documentFilter": {
    "pattern": "**"
  },
  "llm.enableAutoSuggest": true,
  "llm.fillInTheMiddle.enabled": true,
  "llm.fillInTheMiddle.middle": "<fim_middle>",
  "llm.fillInTheMiddle.prefix": "<fim_prefix>",
  "llm.fillInTheMiddle.suffix": "<fim_suffix>",
  "llm.lsp.binaryPath": null,
  "llm.lsp.logLevel": "warn",
  "llm.maxNewTokens": 60,
  "llm.modelIdOrEndpoint": "bigcode/starcoder",
  "llm.temperature": 0.2,
  "llm.tlsSkipVerifyInsecure": false,
  "llm.tokenizer": null,
  "llm.tokensToClear": [
    "<|endoftext|>"
  ]
}

@NicolasAG it looks like you're running VSCode on a remote env, what platform is it?

That is correct! :)
Not sure to understand what you mean by "platform"..? is there a command you want me to run?

I'm not sure llm-ls supports remote file setups for now, given it probably runs on your machine and not the remote host.
When I mean what platform I was asking what type of OS and architecture is your remote code stored on?

I'm facing the same issue. I'm running on an x86 mac ventura 13.4, vscode 1.83.1, and llm-vscode 0.1.5. If I roll back the llm-vscode extension back to 0.0.38, everything works fine. After going back and forth multiple times (mostly to confirm before commenting) llm-vscode 0.1.5 is working again. I didn't change anything else and the remote instance running the model has not changed. When the llm-ls server was failing, there was an error message in the output tab thread 'main' panicked at crates/llm-ls/src/main.rs:723:18

Same problem here.  Error on using the extention on a remote server, where it used to work ok but doesn't now.
If it is of any use here are the info of the remote and local machines.
Remote machine:

Linux redacted 5.15.0-1045-oracle #51~20.04.1-Ubuntu SMP Fri Sep 22 14:26:20 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
Architecture:                       aarch64
CPU op-mode(s):                     32-bit, 64-bit
Byte Order:                         Little Endian
CPU(s):                             4
On-line CPU(s) list:                0-3
Thread(s) per core:                 1
Core(s) per socket:                 4
Socket(s):                          1
NUMA node(s):                       1
Vendor ID:                          ARM
Model:                              1
Model name:                         Neoverse-N1
Stepping:                           r3p1
BogoMIPS:                           50.00
NUMA node0 CPU(s):                  0-3
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit:        Not affected
Vulnerability L1tf:                 Not affected
Vulnerability Mds:                  Not affected
Vulnerability Meltdown:             Not affected
Vulnerability Mmio stale data:      Not affected
Vulnerability Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:           Mitigation; __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; CSV2, BHB
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected
Flags:                              fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
                                    p cpuid asimdrdm lrcpc dcpop asimddp ssbs

Local machine:
Linux redacted 5.15.0-86-generic #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         39 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  4
  On-line CPU(s) list:   0-3
Vendor ID:               GenuineIntel
  Model name:            Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
    CPU family:          6
    Model:               69
    Thread(s) per core:  2
    Core(s) per socket:  2
    Socket(s):           1
    Stepping:            1
    CPU max MHz:         2600.0000
    CPU min MHz:         800.0000
    BogoMIPS:            4589.23
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc
                         a cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss
                         ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arc
                         h_perfmon pebs bts rep_good nopl xtopology nonstop_tsc
                         cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vm
                         x est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse
                         4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c
                         rdrand lahf_lm abm cpuid_fault epb invpcid_single pti s
                         sbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vp
                         id ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms
                         invpcid xsaveopt dtherm ida arat pln pts md_clear flush
                         _l1d
Virtualization features:
  Virtualization:        VT-x
Caches (sum of all):
  L1d:                   64 KiB (2 instances)
  L1i:                   64 KiB (2 instances)
  L2:                    512 KiB (2 instances)
  L3:                    3 MiB (1 instance)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-3
Vulnerabilities:
  Gather data sampling:  Not affected
  Itlb multihit:         KVM: Mitigation: VMX disabled
  L1tf:                  Mitigation; PTE Inversion; VMX conditional cache flushe
                         s, SMT vulnerable
  Mds:                   Mitigation; Clear CPU buffers; SMT vulnerable
  Meltdown:              Mitigation; PTI
  Mmio stale data:       Unknown: No mitigations
  Retbleed:              Not affected
  Spec rstack overflow:  Not affected
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl
                          and seccomp
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer
                          sanitization
  Spectre v2:            Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIB
                         P conditional, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Mitigation; Microcode
  Tsx async abort:       Not affected

I have very similar logs as @NicolasAG
Interestingly this only happens when running a dev container, and not when running locally.
Unfortunately I took quite a lot of pain to move all my workflow to dev containers for portability and this breaks that so its not usable for me right now. Would love to help debug.

Additional details: v0.1.3 works but v0.1.4 and up do not work.

Is there any fix planned for this?
I tried to downgrade the extension to the reported working version and now I am getting the following error
data did not match any variant of untagged enum TokenizerConfig

Is there any solution for client not working issue for local environment?

The client is not running issues on the Ubuntu local environment

Hi, I have the same issue locally on Windows:
`2024-05-31 17:36:57.256 [info] thread 'main' panicked at crates\llm-ls\src\main.rs:772:18:
instant to be in bounds
stack backtrace:
2024-05-31 17:36:57.272 [info] note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
2024-05-31 17:36:57.300 [info] [Error - 17:36:57] Server initialization failed.
2024-05-31 17:36:57.300 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.300 [info] [Info  - 17:36:57] Connection to server got closed. Server will restart.
2024-05-31 17:36:57.300 [info] true
2024-05-31 17:36:57.300 [info] [Error - 17:36:57] LLM VS Code client: couldn't create connection to server.
2024-05-31 17:36:57.300 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.301 [info] [Error - 17:36:57] Server process exited with code 101.
2024-05-31 17:36:57.364 [info] thread 'main' panicked at crates\llm-ls\src\main.rs:772:18:
instant to be in bounds
stack backtrace:
2024-05-31 17:36:57.372 [info] note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
2024-05-31 17:36:57.375 [info] [Error - 17:36:57] Server initialization failed.
2024-05-31 17:36:57.375 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.375 [info] [Info  - 17:36:57] Connection to server got closed. Server will restart.
2024-05-31 17:36:57.375 [info] true
2024-05-31 17:36:57.375 [info] [Error - 17:36:57] LLM VS Code client: couldn't create connection to server.
2024-05-31 17:36:57.375 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.389 [info] [Error - 17:36:57] Server process exited with code 101.
2024-05-31 17:36:57.411 [info] thread 'main' panicked at crates\llm-ls\src\main.rs:772:18:
instant to be in bounds
stack backtrace:
2024-05-31 17:36:57.417 [info] note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
2024-05-31 17:36:57.420 [info] [Error - 17:36:57] Server initialization failed.
2024-05-31 17:36:57.420 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.420 [info] [Info  - 17:36:57] Connection to server got closed. Server will restart.
2024-05-31 17:36:57.420 [info] true
2024-05-31 17:36:57.420 [info] [Error - 17:36:57] LLM VS Code client: couldn't create connection to server.
2024-05-31 17:36:57.420 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.420 [info] [Error - 17:36:57] Restarting server failed
2024-05-31 17:36:57.420 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.434 [info] [Error - 17:36:57] Server process exited with code 101.
2024-05-31 17:36:57.455 [info] thread 'main' panicked at crates\llm-ls\src\main.rs:772:18:
instant to be in bounds
stack backtrace:
2024-05-31 17:36:57.461 [info] note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
2024-05-31 17:36:57.464 [info] [Error - 17:36:57] Server initialization failed.
2024-05-31 17:36:57.464 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.464 [info] [Info  - 17:36:57] Connection to server got closed. Server will restart.
2024-05-31 17:36:57.464 [info] true
2024-05-31 17:36:57.464 [info] [Error - 17:36:57] LLM VS Code client: couldn't create connection to server.
2024-05-31 17:36:57.464 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.464 [info] [Error - 17:36:57] Restarting server failed
2024-05-31 17:36:57.464 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:57.478 [info] [Error - 17:36:57] Server process exited with code 101.
2024-05-31 17:36:57.499 [info] thread 'main' panicked at crates\llm-ls\src\main.rs:772:18:
instant to be in bounds
stack backtrace:
2024-05-31 17:36:58.570 [info] [Error - 17:36:58] Server process exited with code 101.
2024-05-31 17:36:58.571 [info] note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
2024-05-31 17:36:58.571 [info] [Error - 17:36:58] Server initialization failed.
2024-05-31 17:36:58.571 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:58.571 [info] [Error - 17:36:58] The LLM VS Code server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
2024-05-31 17:36:58.571 [info] [Error - 17:36:58] LLM VS Code client: couldn't create connection to server.
2024-05-31 17:36:58.571 [info]   Message: Pending response rejected since connection got disposed
Code: -32097
2024-05-31 17:36:58.572 [info] [Error - 17:36:58] Restarting server failed
2024-05-31 17:36:58.572 [info]   Message: Pending response rejected since connection got disposed
Code: -32097 `
La version de VScode:
Version : 1.89.1 (user setup)
Validation : dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date : 2024-05-07T05:13:33.891Z
Electron : 28.2.8
ElectronBuildId : 27744544
Chromium : 120.0.6099.291
Node.js : 18.18.2
V8 : 12.0.267.19-electron.0
Système d’exploitation : Windows_NT x64 10.0.22631

Hi, I have the same issue locally on Windows: `2024-05-31 17:36:57.256 [info] thread 'main' panicked at crates\llm-ls\src\main.rs:772:18: instant to be in bounds stack backtrace:

Hi, I have activated the extension also in WSL: "WSL : Ubuntu-22.04'"
I don't get error messages, but I don't see any code completion either.

I'm also getting this error on v0.2.2 on Windows.
Is there any update to this issue?


How to showFragment on button click

Hello. I have 2 fragments. There is a button  in the one. I  need to  show another fragment by  clicking on this button. How to do this? Thanks in advance.

Solved
          viewPager.setCurrentItem(POSITION);

Same question, Can you show more clear?


Replace is_commiting_action with is_committing_action

need to change also here
https://github.com/godotengine/godot/blob/fea37cfb526418f489975ccdbdb46035d61d4a88/doc/classes/UndoRedo.xml#L158

Thanks!


[Feature][Server] Support online management of system configuration information

Search before asking

[X] I had searched in the feature and found no similar feature requirement.

Description
Support online management of system configuration information, including not only adding, modifying, and deleting
Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

The feaute has been completed.


Code coverage result with multiple test project

I have the one source project and this source project contains the 2 test project. In both test projects contains some list of the test cases. Please find the structure of my projects below,
Core
--------Src
--------Test
------------Test1
------------Test2
In Test1 and Test2 are the test projects which contains the Nunit test cases for the Src project. Now how I can get the code coverage result based on the above two test projects. For example, if the code coverage for Test1 is 30 and Test is 40 percent, when independently run the above cases. If i added the above two values it gives 70 percent of code coverage. But this is wrong, because for some API's both two test cases may contains the NUnit test cases.
So I need to calculate the code coverage percentage based on the two test projects. So can you please suggest how can I calculate the code coverage percentage of the source project based on the above two test projects?

No, you don't need any custom calculations for multiple test projects. NUnit and DotCover should support this out of the box.
Will post simple example later when I'm near a computer.

@jagadeesan123 something like this should work:
DotCoverAnalyse((ctx) => {
        ctx.NUnit3("./test/**/bin/**/test*.dll");
    },
    "coverage.html",
    new DotCoverAnalyseSettings {
        ReportType = DotCoverReportType.HTML
    }
    .WithFilter("-:test1")
    .WithFilter("-:test2"));


allow to specify ddox tool

can be used to customize the ddox tool (and it's output)
assumes similar commands/behavior

I'm open to other ways for configuring this as well.

Ping

I was wondering if it wouldn't make sense to use this occasion and switch from special handling of the two documentation build types to a separate "dub doc(s)" command. That could avoid additional special cases, such as those internal BuildOption members (or the hard-coded dflags of the previous implementation for that matter).
Anyway, the functionality makes sense, as well as a potential "-ddoxGenerateArgs" field.

I was wondering if it wouldn't make sense to use this occasion and switch from special handling of the two documentation build types to a separate "dub doc(s)" command.

It does make sense, but can we separate that and use this PR as intermediate step?
Writing a doc command that handles ddoc, ddox, and other builds is quite some work.

It does make sense, but can we separate that and use this PR as intermediate step?

What do you think? Go with the immediate improvement now, and do more later?

Should be alright. When I get some time I'll look into adding a really simple dedicated command (that just mirrors the current functionality) for the next release. We can extend it later then.


Comma before line break, remove remaining text

I was trying to output an address an noticed that if a comma was before a line break tag then Typogrify would not display any text after the comma, but it does still includes any html.
{# FAIL: comma before line breaks #}
{% set text = '
Line One,
Line Two,
Line Three.
' %}

{# WORKS #}
{% set text2 = '
Line One
Line Two
Line Three.
' %}

{{ text|typogrify }}
{#

Line One,

#}

{{ text2|typogrify }}
{#

Line One
Line Two
Line Three.

#}

This is a bug in mundschenk-at/php-typography or the used HTML parser. I'll investigate.

This has been fixed in release 6.2.0 of mundschenk-at/php-typography.


Add ability to match/assert fields on regex values

What would you like to be added:
I would like the ability to partially match fields of the resources in the asserter using something akin to a regex.
This is predominantly for integration/production test scenarios where you are not in complete control of the set values. But understand the range they should operate within.
Why is this needed:
The ability to do this will allow us to validate api-resource fields such as; resource limits,  image tags, custom annotations and other fields that do not require discrete values to be valid for a test pass.

I would also like to see this implemented - even if my use case is a bit simpler. As described on Slack, my wish is to be able to assert that a field is present, but with no asserts on the field value.
We built an operator on top of cert-manager, and as part of our e2e testing, we would like to assert that the certificate Secret contains the expected fields. But we can ofc not include any asserts on the fields - as the fields in question are transient: private keys, certificate chains, keystores etc.
I am not sure how this feature could be implemented - since a field may have any value. One idea I have, is to follow the ytt approach, and express these kinds of asserts with "magic comments" as field values - in the test step asserts. This might look like this:
---
kind: Secret
apiVersion: v1
metadata:
  name: my-certificate
data:
  tls.crt: #@ regex('^(?!\s*$).+')
type: kubernetes.io/tls

@alenkacz WDYT?

Second this,
configmaps and stuff that are autogenerated may be great to assessing using regex,
right now you cant asses a configmap value if some of it is autogenerated

any updates here ?


Raising appropriate exceptions & timeout requests

Hi,
This PR includes:

(1) a suggested way of handling exceptions in the SDK
(2) introduces a timeout for requests.

(1)
All methods that make a request to the TSI api check the success of this request with the following code (example is from _getToken()):
if response.text:
    jsonResp = json.loads(response.text)
tokenType = jsonResp['token_type']

If response.text is none, the 3rd line will fail, which makes the if statement obsolete. Instead of checking the text attribute, I suggest to raise exceptions when the request returns an unsuccessful status code. This is what response.raise_for_status() does. All HTTP errors are then captured, a meaningful error message from TSIClient is added and the exception is re-raised. This conserves the full stacktrace.
This could be expanded more, by giving specific error messages based on the status code (e.g. the message for 401 - Unauthorized could be: "Please check your TSI client secret and make sure the service principal has access rights to the TSI environment").
(2)
The requests library suggests to have timeouts for all requests. Leaving away the timeout argument might cause the SDK to hang indefinitely. I added a very generous timeout of 10 seconds.
Let me know what you think about this, I just implemented this for _getToken() for now, since I don't know how you want to handle errors.
Regards,
Rafael

If you strive for a certain code coverage, this requires some additional tests, but with pytest and requests_mock this is fairly simple. With requests_mock you can specify an exception that should be raised in a mocked request. I've written tests for both exception.


[REG2.066] Issue 14235 - full-qualified template instantiation misses its error location

https://issues.dlang.org/show_bug.cgi?id=14235

Auto-merge toggled on