HAMC failed @ _get_serializer().dumps @ encode_handler @ generate_token

Traceback (most recent call last):
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask_restful/init.py", line 265, in error_router
return original_handler(e)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/_compat.py", line 32, in reraise
raise value.with_traceback(tb)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask_restful/init.py", line 265, in error_router
return original_handler(e)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/_compat.py", line 32, in reraise
raise value.with_traceback(tb)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask_restful/init.py", line 446, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask/views.py", line 84, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/flask_restful/init.py", line 550, in dispatch_request
resp = meth(*args, **kwargs)
File "/Volumes/Unsigned/server/application/models/user.py", line 45, in post
return {'status': 200, 'message': generate_token(user)}  # TODO : SESSION!
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/src/flask-jwt/flask_jwt/init.py", line 147, in generate_token
token = _jwt.encode_callback(payload)
File "/Volumes/Unsigned/server/application/models/user.py", line 88, in encode_handler
return t.dumps(payload).decode('utf-8')
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/itsdangerous.py", line 742, in dumps
return signer.sign(self.dump_payload(header, obj))
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/itsdangerous.py", line 353, in sign
return value + want_bytes(self.sep) + self.get_signature(value)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/itsdangerous.py", line 348, in get_signature
sig = self.algorithm.get_signature(key, value)
File "/usr/local/var/lib/pyenv/versions/3.4.2-server/lib/python3.4/site-packages/itsdangerous.py", line 268, in get_signature
mac = hmac.new(key, msg=value, digestmod=self.digest_method)
File "/usr/local/var/lib/pyenv/versions/3.4.2/lib/python3.4/hmac.py", line 144, in new
return HMAC(key, msg, digestmod)
File "/usr/local/var/lib/pyenv/versions/3.4.2/lib/python3.4/hmac.py", line 42, in init
raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).name)
TypeError: key: expected bytes or bytearray, but got 'NoneType'

And... I found the issue..
Don't use app.config['secret_key'] not app.config['SECRET_KEY'].
Problem happened, there are no key at HMAC, and HMAC is generated from _get_serializer().
and the key which is used at _get_serializer() is current_app.config['JWT_SECRET_KEY'].
and current_app.config['JWT_SECRET_KEY'] is same as app.config['SECRET_KEY'].
It's not same with app.config['secret_key'].


Error generating SDK

I'm trying to generate an API, specifically for this: https://www.eia.gov/opendata/eia-api-swagger.zip
First I tried using an MSBuild project, but the error shown isn't very helpful:
1>C:\Users\atorres\.nuget\packages\yardarm.sdk\0.4.1\Sdk\Sdk.targets(148,5): error : Error generating SDK
1>Done building project "EiaApi.csproj" -- FAILED.

So I installed the command line instead, and it apparently breaks in two different parts. Here's the output:
[INF] Restoring packages for EiaApi...
[INF] Restoring packages for .NETCoreApp,Version=v6.0...
[INF] Resolving conflicts for net6.0...
[INF] Checking compatibility of packages on net6.0.
[INF] All packages and projects are compatible with net6.0.
[WRN] Unsupported security scheme 'api_key', implementing no-op placeholder.
[ERR] Error generating SDK
System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) (The method or operation is not implemented.)
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxToken.SyntaxIdentifier..ctor(String text)
   at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxToken.SyntaxIdentifierExtended..ctor(SyntaxKind contextualKind, String text, String valueText)
   at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxToken.SyntaxIdentifierWithTrivia..ctor(SyntaxKind contextualKind, String text, String valueText, GreenNode leading, GreenNode trailing)
   at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxToken.Identifier(GreenNode leading, String text, GreenNode trailing)
   at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxToken.Identifier(SyntaxKind contextualKind, GreenNode leading, String text, String valueText, GreenNode trailing)
   at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxFactory.Identifier(SyntaxKind contextualKind, GreenNode leading, String text, String valueText, GreenNode trailing)
   at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.SyntaxFactory.Identifier(GreenNode leading, String text, GreenNode trailing)
   at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.Identifier(String text)
   at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.MethodDeclaration(TypeSyntax returnType, String identifier)
   at Yardarm.Generation.Tag.TagTypeGeneratorBase.GenerateOperationMethodHeader(ILocatedOpenApiElement`1 operation)+MoveNext() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/Tag/TagTypeGeneratorBase.cs:line 26
   at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable`1 source, Func`2 collectionSelector, Func`3 resultSelector)+MoveNext()
   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
   at Microsoft.CodeAnalysis.SyntaxList`1.CreateNode(IEnumerable`1 nodes)
   at Microsoft.CodeAnalysis.SyntaxList`1..ctor(IEnumerable`1 nodes)
   at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.List[TNode](IEnumerable`1 nodes)
   at Yardarm.Generation.Tag.TagTypeGenerator.GenerateInterface() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/Tag/TagTypeGenerator.cs:line 40
   at Yardarm.Generation.Tag.TagTypeGenerator.Generate()+MoveNext() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/Tag/TagTypeGenerator.cs:line 35
   at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
   at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Yardarm.Generation.TypeGeneratorBase.GenerateSyntaxTree() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/TypeGeneratorBase.cs:line 37
   at Yardarm.Generation.Tag.TagGenerator.Generate()+MoveNext() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/Tag/TagGenerator.cs:line 32
   at System.Linq.Parallel.SelectManyQueryOperator`3.SelectManyQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, Pair`2& currentKey)
   at System.Linq.Parallel.StopAndGoSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
   at System.Linq.Parallel.SpoolingTask.SpoolStopAndGo[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream`2 partitions, SynchronousChannel`1[] channels, TaskScheduler taskScheduler)
   at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
   at System.Linq.Parallel.SelectManyQueryOperator`3.WrapPartitionedStreamNotIndexed[TLeftKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, QuerySettings settings)
   at System.Linq.Parallel.SelectManyQueryOperator`3.WrapPartitionedStream[TLeftKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.ListQueryResults`1.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.ExecuteAndGetResultsAsArray()
   at System.Linq.ParallelEnumerable.ToArray[TSource](ParallelQuery`1 source)
   at Yardarm.Enrichment.Compilation.SyntaxTreeCompilationEnricher.EnrichAsync(CSharpCompilation target, CancellationToken cancellationToken) in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Enrichment/Compilation/SyntaxTreeCompilationEnricher.cs:line 27
   at Yardarm.Enrichment.EnrichmentExtensions.<>c__3`1.<EnrichAsync>b__3_0(TTarget p, IAsyncEnricher`1 enricher, CancellationToken ct) in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Enrichment/EnrichmentExtensions.cs:line 31
   at System.Linq.AsyncEnumerable.<AggregateAwaitWithCancellationAsyncCore>g__Core|7_0[TSource,TAccumulate](IAsyncEnumerable`1 source, TAccumulate seed, Func`4 accumulator, CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Aggregate.cs:line 214
   at System.Linq.AsyncEnumerable.<AggregateAwaitWithCancellationAsyncCore>g__Core|7_0[TSource,TAccumulate](IAsyncEnumerable`1 source, TAccumulate seed, Func`4 accumulator, CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Aggregate.cs:line 212
   at Yardarm.YardarmGenerator.BuildForTargetFrameworkAsync(GenerationContext context, NuGetFramework targetFramework, Stream dllOutput, Stream pdbOutput, Stream xmlDocumentationOutput, Stream referenceAssemblyOutput, CancellationToken cancellationToken) in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/YardarmGenerator.cs:line 128
   at Yardarm.YardarmGenerator.EmitAsync(CancellationToken cancellationToken) in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/YardarmGenerator.cs:line 56
   at Yardarm.CommandLine.GenerateCommand.ExecuteAsync(CancellationToken cancellationToken) in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm.CommandLine/GenerateCommand.cs:line 73
 ---> (Inner Exception #1) System.NotImplementedException: The method or operation is not implemented.
   at Yardarm.Generation.Request.ParameterTypeGenerator.GetTypeInfo() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/Request/ParameterTypeGenerator.cs:line 18
   at Yardarm.Generation.TypeGeneratorBase`1.GetSourceFilePath() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/TypeGeneratorBase`1.cs:line 40
   at Yardarm.Generation.TypeGeneratorBase.GenerateSyntaxTree() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/TypeGeneratorBase.cs:line 43
   at Yardarm.Generation.Request.ParameterGenerator.Generate(ILocatedOpenApiElement`1 parameter) in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/Request/ParameterGenerator.cs:line 33
   at System.Linq.Utilities.<>c__DisplayClass2_0`3.<CombineSelectors>b__0(TSource x)
   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at Yardarm.Generation.Request.ParameterGenerator.Generate()+MoveNext() in /home/runner/work/Yardarm/Yardarm/src/main/Yardarm/Generation/Request/ParameterGenerator.cs:line 23
   at System.Linq.Parallel.SelectManyQueryOperator`3.SelectManyQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, Pair`2& currentKey)
   at System.Linq.Parallel.StopAndGoSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---

What I found interesting is that apparently it breaks on a not implemented method right here:
https://github.com/CenterEdge/Yardarm/blob/23681d1e29e68e78a81a952245a7c5d10401e1ba/src/main/Yardarm/Generation/Request/ParameterTypeGenerator.cs#L18
So I don't know if what I'm doing is not supported or if I'm doing something wrong myself.

Interesting. For a new project, I'd recommend trying the 0.5.0 beta (it'll probably be GA soon). This will avoid some various breaking changes moving from 0.4 to 0.5 and includes several improvements.
Do you still get the same error using 0.5.0-beta0002?

I updated to version 0.5.0-beta0002 and I still get the error.
I also forgot. The command I'm running is this:
yardarm generate -n "EiaApi" -i eia-api-swagger.yaml --embed -f "net6.0"

It appears that this particular specification uses a feature that hasn't been implemented in Yardarm yet, a shared request body definition in components.requestBodies. I'm going to look into what it will take to implement this feature.

Actually, there are several other issues with compatibility. I'm trying to work through them all, though it may take me a couple days.
One of the issues is that some of the operations are missing operationId values to give the operation a name, which is used to generate class and method names in C#. The simplest solution is to skip those operations and only provide operations with ids. Would you like to use any of these operations that are missing ids? Or do you have the option to fill in that attribute before generation? If not, I'll need to work on a deterministic id generation process.

@R2D221
At this point, I believe I have all of the issues I can see resolved other than operations missing ids. For those, we have three options:

Fixup the specification file to have operation IDs before you generate
Implement an extension that registers a custom IOperationNameProvider which provides names for those operations
Come up with some deterministic approach that is broadly acceptable which we can apply to the built-in DefaultOperationNameProvider

Let me know your thoughts. I plan to wait to make another 0.5.0 beta since we may need to choose option 3.

I released 0.5.0-beta0003 with all the fixes and improvements to support the referenced spec. I will close this issue for now, but feel free to reopen it if you need further assistance.

Sorry, I wasn't getting notificacions until now. Yes, let me test it and I'll get back to you


Increase Coverage Core Kakao

I'm not sure this is gonna happen anywhere in the future and we still couldn't figure out how to do unit tests on this. So let's close.


The process never end after I call CpSolver.solve

Version: 9.4.1874.
Language: Java
Solver: CP-SAT
OS: Mac M1Pro & Linux-x86
My CPU occupation rate is always at 100% after I call CpSolverStatus status = CpSolver.solve(); and it seems that the solving process never end.
Hope the log file useful.
cplog.txt

this is not a 'bug' of the solver. Optimization problems are NP-Hard and can take a lot of time to solve
you did not send the log of the solve, but the text file of the model (which is useful)
you should always have a time limit. Parameter max_time_in_second.
to enable the log, you need to set the parameter log_search_progress to true.
it works better with multiple workers. Here is my log with 16 workers

Parameters: max_time_in_seconds: 10 log_search_progress: true num_search_workers: 16

Initial optimization model '':
#Variables: 93 (#ints:1 in objective)
  - 92 in [0,57]
  - 1 constants in {1}
#kAllDiff: 46
#kInterval: 31
#kLinMax: 30
#kLinear2: 49
#kNoOverlap: 1 (#intervals: 31)

Starting presolve at 0.00s
[ExtractEncodingFromLinear] #potential_supersets=0 #potential_subsets=0 #at_most_one_encodings=0 #exactly_one_encodings=0 #unique_terms=0 #multiple_terms=0 #literals=0 time=4e-06s
[Probing] deterministic_time: 0 (limit: 1) wall_time: 6e-06 (0/0)
[DetectDuplicateConstraints] #duplicates=0 #without_enforcements=0 time=0.000161s
[DetectDominatedLinearConstraints] #relevant_constraints=18 #work_done=108 #num_inclusions=0 #num_redundant=0 time=4.4e-05s
[DetectOverlappingColumns] #processed_columns=0 #work_done=0 #nz_reduction=0 time=7e-06s
[ProcessSetPPC] #relevant_constraints=0 #num_inclusions=0 work=0 time=7e-06s
[Probing] deterministic_time: 0 (limit: 1) wall_time: 1e-06 (0/0)
[DetectDuplicateConstraints] #duplicates=0 #without_enforcements=0 time=0.000157s
[DetectDominatedLinearConstraints] #relevant_constraints=18 #work_done=108 #num_inclusions=0 #num_redundant=0 time=4.2e-05s
[DetectOverlappingColumns] #processed_columns=0 #work_done=0 #nz_reduction=0 time=6e-06s
[ProcessSetPPC] #relevant_constraints=0 #num_inclusions=0 work=0 time=2e-06s
[Probing] deterministic_time: 0 (limit: 1) wall_time: 1e-06 (0/0)
[DetectDuplicateConstraints] #duplicates=0 #without_enforcements=0 time=0.000163s
[DetectDominatedLinearConstraints] #relevant_constraints=18 #work_done=108 #num_inclusions=0 #num_redundant=0 time=3.6e-05s
[DetectOverlappingColumns] #processed_columns=0 #work_done=0 #nz_reduction=0 time=6e-06s
[ProcessSetPPC] #relevant_constraints=0 #num_inclusions=0 work=0 time=1e-06s

Presolve summary:
  - 31 affine relations were detected.
  - rule 'TODO dual: only one blocking constraint?' was applied 27 times.
  - rule 'TODO dual: only one unspecified blocking constraint?' was applied 558 times.
  - rule 'affine: new relation' was applied 31 times.
  - rule 'all_diff: only one variable' was applied 46 times.
  - rule 'all_diff: propagated fixed expressions' was applied 736 times.
  - rule 'all_diff: removed fixed variables' was applied 46 times.
  - rule 'lin_max: target domain reduced' was applied 45 times.
  - rule 'linear: reduced variable domains' was applied 51 times.
  - rule 'linear: remapped using affine relations' was applied 111 times.
  - rule 'linear: simplified rhs' was applied 32 times.
  - rule 'presolve: 1 unused variables removed.' was applied 1 time.
  - rule 'presolve: iteration' was applied 3 times.

Presolved optimization model '':
#Variables: 61 (#ints:1 in objective)
  - 3 in [0,1][4,8][11,15][18,22][25,29][32,36][39,40]
  - 2 in [0,1][4,8][11,15][18,22][25,29][32,36][39,43][46]
  - 2 in [0,1][4,8][11,15][18,22][25,29][32,36][39,43][46,47]
  - 3 in [0,1][4,8][11,15][18,22][25,29][32,36][39,43][46,48]
  - 12 in [0,1][4,8][11,15][18,22][25,29][32,36][39,43][46,50]
  - 5 in [0,1][4,8][11,15][18,22][25,29][32,36][39,43][46,50][53,55]
  - 5 in [0,1][4,8][11,15][18,22][25,29][32,36][39,43][46,50][53,56]
  - 8 in [0,1][4,8][11,15][18,22][25,29][32,36][39,43][46,50][53,57]
  - 2 in [2][4,9][11,16][18,23][25,30][32,37][39,44][46,51][54,57]
  - 2 in [4,8][11,15][18,22][25,29][32,36][39,43][46,48]
  - 1 in [5,9][12,16][19,23][26,30][33,37][40,44][47,51][54,57]
  - 1 in [5,57]
  - 3 in [7,8][11,15][18,22][25,29][32,36][39,43][46,50][53,57]
  - 1 in [11,15][18,22][25,29][32,36][39,43][46,50][53,55]
  - 1 in [12,15][18,22][25,29][32,36][39,43][46,50][53,56]
  - 1 in [12,16][18,23][25,30][32,37][39,44][46,51][53,56]
  - 1 in [13,16][19,23][26,30][33,37][40,44][47,51][54,57]
  - 2 in [15][18,22][25,29][32,36][39,43][46,50][53,55]
  - 1 in [16,20][23,27][30,34][37,41][44,48][51,55]
  - 1 in [16,57]
  - 1 in [18,22][25,29][32,36][39,43][46,50][53,56]
  - 1 in [19,23][25,30][32,37][39,44][46,51][53,57]
  - 1 in [19,23][26,30][33,37][40,44][47,51][54,57]
  - 1 in [19,57]
#kInterval: 31
#kLinMax: 30
#kLinear2: 18
#kNoOverlap: 1 (#intervals: 31)

Preloading model.
#Bound   0.01s best:inf   next:[19,57]    initial_domain
#Model   0.01s var:61/61 constraints:80/80

Starting Search at 0.01s with 16 workers.
10 full subsolvers: [default_lp, fixed, no_lp, max_lp, reduced_costs, pseudo_costs, quick_restart, quick_restart_no_lp, lb_tree_search, probing]
Interleaved subsolvers: [feasibility_pump, rnd_var_lns_default, rnd_cst_lns_default, graph_var_lns_default, graph_cst_lns_default, scheduling_random_intervals_lns_default, scheduling_random_precedences_lns_default, scheduling_time_window_lns_default, rins_lns_default, rens_lns_default]
#Bound   0.01s best:inf   next:[20,57]    probing
#Bound   0.02s best:inf   next:[33,57]    max_lp
#Bound   0.04s best:inf   next:[34,57]    reduced_costs
#Bound   0.04s best:inf   next:[35,57]    reduced_costs
#Bound   0.04s best:inf   next:[36,57]    reduced_costs
#Bound   0.05s best:inf   next:[37,57]    reduced_costs
#Bound   0.05s best:inf   next:[38,57]    reduced_costs
#Bound   0.06s best:inf   next:[39,57]    reduced_costs
#Bound   0.06s best:inf   next:[40,57]    reduced_costs
#Bound   0.07s best:inf   next:[41,57]    reduced_costs
#Bound   0.08s best:inf   next:[42,57]    reduced_costs
#Bound   0.08s best:inf   next:[43,57]    reduced_costs
#Bound   0.09s best:inf   next:[44,57]    reduced_costs
#Bound   0.09s best:inf   next:[45,57]    reduced_costs
#Bound   0.10s best:inf   next:[46,57]    reduced_costs
#Bound   0.11s best:inf   next:[47,57]    reduced_costs
#Bound   0.11s best:inf   next:[48,57]    reduced_costs
#Bound   0.12s best:inf   next:[49,57]    reduced_costs
#Bound   0.13s best:inf   next:[50,57]    reduced_costs
#Bound   0.13s best:inf   next:[51,57]    reduced_costs
#Bound   0.14s best:inf   next:[52,57]    reduced_costs
#Bound   0.14s best:inf   next:[53,57]    reduced_costs
#Bound   0.15s best:inf   next:[54,57]    reduced_costs
#Bound   0.16s best:inf   next:[55,57]    reduced_costs
#Bound   0.16s best:inf   next:[56,57]    reduced_costs
#Bound   0.17s best:inf   next:[57,57]    reduced_costs

Sub-solver search statistics:
  'max_lp':
     LP statistics:
       final dimension: 56 rows, 147 columns, 305 entries with magnitude in [6.375767e-03, 1.000000e+00]
       total number of simplex iterations: 31843
       num solves:
         - #OPTIMAL: 48732
         - #DUAL_FEASIBLE: 107
       managed constraints: 1255
       merged constraints: 1284
       shortened constraints: 80
       coefficient strenghtenings: 103
       num simplifications: 265
       total cuts added: 1088 (out of 170929 calls)
         - 'CG': 78
         - 'IB': 1
         - 'LinMax': 140
         - 'MIR_1': 49
         - 'MIR_2': 36
         - 'MIR_3': 9
         - 'MIR_3_F': 1
         - 'MIR_4': 2
         - 'MIR_4_F': 1
         - 'MIR_5': 3
         - 'MIR_6': 1
         - 'NoOverlapCompletionTimeExhaustiveMirror_weighted': 95
         - 'NoOverlapCompletionTimeExhaustiveMirror_weighted_lifted': 118
         - 'NoOverlapCompletionTimeExhaustive_weighted': 236
         - 'NoOverlapCompletionTimeExhaustive_weighted_lifted': 7
         - 'NoOverlapCompletionTimeQueyrane': 59
         - 'NoOverlapCompletionTimeQueyraneMirror': 60
         - 'NoOverlapCompletionTimeQueyraneMirror_lifted': 41
         - 'NoOverlapCompletionTimeQueyrane_lifted': 1
         - 'NoOverlapDisjunctionOnEnd': 40
         - 'NoOverlapDisjunctionOnStart': 65
         - 'ZERO_HALF': 45

  'reduced_costs':
     LP statistics:
       final dimension: 108 rows, 147 columns, 515 entries with magnitude in [1.666667e-03, 1.000000e+00]
       total number of simplex iterations: 46188
       num solves:
         - #OPTIMAL: 44553
         - #DUAL_UNBOUNDED: 4
         - #DUAL_FEASIBLE: 72
       managed constraints: 1490
       merged constraints: 982
       shortened constraints: 99
       coefficient strenghtenings: 132
       num simplifications: 430
       total cuts added: 1333 (out of 132410 calls)
         - 'CG': 73
         - 'IB': 1
         - 'LinMax': 81
         - 'MIR_1': 26
         - 'MIR_2': 36
         - 'MIR_3': 13
         - 'MIR_3_F': 2
         - 'MIR_4': 9
         - 'MIR_4_F': 3
         - 'MIR_5': 4
         - 'MIR_6': 2
         - 'NoOverlapCompletionTimeExhaustiveMirror_weighted': 224
         - 'NoOverlapCompletionTimeExhaustiveMirror_weighted_lifted': 112
         - 'NoOverlapCompletionTimeExhaustive_weighted': 334
         - 'NoOverlapCompletionTimeExhaustive_weighted_lifted': 15
         - 'NoOverlapCompletionTimeQueyrane': 78
         - 'NoOverlapCompletionTimeQueyraneMirror': 105
         - 'NoOverlapCompletionTimeQueyraneMirror_lifted': 40
         - 'NoOverlapCompletionTimeQueyrane_lifted': 2
         - 'NoOverlapDisjunctionOnEnd': 52
         - 'NoOverlapDisjunctionOnStart': 61
         - 'ZERO_HALF': 59
         - 'ZERO_HALF_F': 1

  'pseudo_costs':
     LP statistics:
       final dimension: 109 rows, 147 columns, 570 entries with magnitude in [4.082483e-02, 1.000000e+00]
       total number of simplex iterations: 38997
       num solves:
         - #OPTIMAL: 48539
         - #DUAL_FEASIBLE: 42
       managed constraints: 1446
       merged constraints: 1163
       shortened constraints: 74
       coefficient strenghtenings: 137
       num simplifications: 387
       total cuts added: 1280 (out of 158572 calls)
         - 'CG': 64
         - 'IB': 1
         - 'LinMax': 111
         - 'MIR_1': 25
         - 'MIR_2': 42
         - 'MIR_3': 22
         - 'MIR_3_F': 3
         - 'MIR_4': 6
         - 'MIR_4_F': 2
         - 'MIR_5': 5
         - 'MIR_6': 3
         - 'NoOverlapCompletionTimeExhaustiveMirror_weighted': 136
         - 'NoOverlapCompletionTimeExhaustiveMirror_weighted_lifted': 162
         - 'NoOverlapCompletionTimeExhaustive_weighted': 299
         - 'NoOverlapCompletionTimeExhaustive_weighted_lifted': 12
         - 'NoOverlapCompletionTimeQueyrane': 77
         - 'NoOverlapCompletionTimeQueyraneMirror': 87
         - 'NoOverlapCompletionTimeQueyraneMirror_lifted': 49
         - 'NoOverlapCompletionTimeQueyrane_lifted': 2
         - 'NoOverlapDisjunctionOnEnd': 60
         - 'NoOverlapDisjunctionOnStart': 70
         - 'ZERO_HALF': 41
         - 'ZERO_HALF_F': 1

  'lb_tree_search':
     LP statistics:
       final dimension: 45 rows, 147 columns, 242 entries with magnitude in [1.324532e-01, 1.000000e+00]
       total number of simplex iterations: 41401
       num solves:
         - #OPTIMAL: 58518
         - #DUAL_UNBOUNDED: 4
         - #DUAL_FEASIBLE: 1
       managed constraints: 304
       merged constraints: 211
       shortened constraints: 30
       coefficient strenghtenings: 8
       num simplifications: 174
       total cuts added: 138 (out of 180333 calls)
         - 'CG': 13
         - 'LinMax': 16
         - 'MIR_1': 4
         - 'MIR_2': 6
         - 'MIR_3': 7
         - 'MIR_3_F': 4
         - 'MIR_4': 4
         - 'MIR_4_F': 4
         - 'MIR_5': 1
         - 'NoOverlapCompletionTimeExhaustiveMirror_weighted': 15
         - 'NoOverlapCompletionTimeExhaustive_weighted': 6
         - 'NoOverlapCompletionTimeExhaustive_weighted_lifted': 12
         - 'NoOverlapCompletionTimeQueyrane': 4
         - 'NoOverlapCompletionTimeQueyraneMirror': 9
         - 'NoOverlapCompletionTimeQueyrane_lifted': 2
         - 'NoOverlapDisjunctionOnEnd': 7
         - 'NoOverlapDisjunctionOnStart': 8
         - 'ZERO_HALF': 15
         - 'ZERO_HALF_F': 1

Objective bounds found per subsolver:
  'initial_domain': 1
  'max_lp': 1
  'probing': 1
  'reduced_costs': 24

Improving variable bounds shared per subsolver:
  'max_lp': 1
  'no_lp': 8
  'probing': 75
  'quick_restart': 3
  'reduced_costs': 24

CpSolverResponse summary:
status: UNKNOWN
objective: 57
best_bound: 57
booleans: 762
conflicts: 15174
branches: 18182
propagations: 673150
integer_propagations: 559008
restarts: 45
lp_iterations: 31843
walltime: 10.0265
usertime: 10.0265
deterministic_time: 12.2729
gap_integral: 0.00593943


⚠ Bofrost.at has degraded performance

In b26ffd7, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 4383 ms

Resolved: Bofrost.at performance has improved in f83b693.


risk of getting empty messages

sqs can return empty messages if the message number is low (<1000), maybe this explains that why the last few hundred tasks takes longer time.
this package set the wait time to be 0, and could potentially get empty messages.
https://github.com/seung-lab/python-task-queue/blob/master/taskqueue/aws_queue_api.py#L60
here is the documentation of the long polling:
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/working-with-messages.html#setting-up-long-polling
as suggested, simply setting the waittime to 20 seconds should fix this.

Wait time has been set to 20 sec since https://github.com/seung-lab/python-task-queue/commit/a355d042b8f126947d458a4e82f69a0d3ebd79a8


Enhancement: 'find' function not case sensitive

Pls comment i need my class part thx

This PR/issue should be against a repo in the org of your module e.g.,  nus-cs2103-AY1819S1 or nusCS2113-AY1819S1, not against the repo in se-edu org :-)
Closing...


mc.rs: Unsafe cleanup

There are ~800 unsafe operations happening in mc.rs.

[ ] Cleanup unsafe operations happening within functions.
[ ] Mark any functions that can be made fully safe as such.
[ ] Add unsafe blocks around any remaining unsafe operations along with standard safety documentation.
[ ] Add safety documentation for functions that need to remain unsafe.
[ ] Add #![deny(unsafe_op_in_unsafe_fn)] to file.

mc.rs is mostly Rust fallback functions, which require raw pointer operations and so can't generally be made fully safe. I've done a cleanup pass on them and made things as safe and idiomatic as possible, but I've left the functions unsafe. I've also opted not to put deny(unsafe_op_in_unsafe_fn) because I think it would add more noise than is worth it. But otherwise the file has been cleaned up and made as safe and idiomatic as possible.


Test: Fix issues with Updates and Kube-dns

On k8sT/Update.go the system install a new cilium v1.0 image, but it
does not wait for Kubedns to be ready, so time to time the kubedns was
not ready at all.
With this commit we make sure that the DNS is ready before applied any
policy.
Signed-off-by: Eloy Coto<EMAIL_ADDRESS>Fix https://github.com/cilium/cilium/issues/3773

test-me-please

backport in https://github.com/cilium/cilium/pull/3830


Roadmap, release plan?

Is this library production ready? If not, what is missing? How can I help? Is there any roadmap towards the first release?
I'm currently using autowire for this purpose, but I'd really like to abstract over F and it seems sloth is exacly what I need. However I'm a bit confused about the state of this project.

I am using this library on a production site myself, so I consider it production ready. Furthermore, I have plans to update it further to be even more flexible, but did not come around to finish it yet (see #12) -- but I will eventually. I have not yet release to maven, because the API still might change, but it should work in very similar way as it does now.
If a maven release is important to you, I can publish the current state soonish. Otherwise, you can use jitpack to depend on a specific commit. If you find something unintuitive or have a problem, you can always open an issue and I will try to help and fix bugs. If you have an ideas for an improvement, contributions are very welcome. Just open a PR, then we can discuss and iterate on it :)

I think you could follow semver 2.0 and start publishing to maven pre-1.0 releases, eg. 0.1.0 and hit 1.0.0 once the API is stabilized.
I'd prefer to lock on specific release, to keep things simple, so if it's not a big problem I'd kindly ask you to create a release.
About problems/ideas - I'll definately do. I'll try to switch to sloth sometime this week, so if anything pops up I'll get back to you :)

Great!
I think, you are right with semver -- I will adapt that. I am on holiday right now, but can do a release when I am back next week. I will keep this issue open until then.

Hi, Thanks for this I was trying to write that actually: https://github.com/joan38/wireless
I'm trying to get the latest version. Has it been released to maven central?

You can consume it via jitpack. For example:
resolvers += "jitpack" at "https://jitpack.io",
libraryDependencies += "com.github.cornerman.sloth" %%% "sloth" %
"34b09cdccb",
On Tue, May 21, 2019 at 1:27 PM Joan Goyeau<EMAIL_ADDRESS>wrote:

Hi, Thanks for this I was trying to write that actually:
https://github.com/joan38/wireless
I'm trying to get the latest version. Has it been released to maven
central?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cornerman/sloth/issues/15?email_source=notifications&email_token=AAAYAUEKI7NHZLYNY5GIY3DPWQWJXA5CNFSM4F6JTT3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV4TVJI#issuecomment-494484133,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAYAUA7UT6NPZXLMIZEYZTPWQWJXANCNFSM4F6JTT3A
.

I finally made the first release :checkered_flag:
You can now get sloth via:
libraryDependencies += "com.github.cornerman" %%% "sloth" % "0.1.0"

Thanks @cornerman, that's great!


When loading VS Code extension, show a warning if rust-lang.rust is also installed

See https://github.com/rust-analyzer/rust-analyzer/issues/6461

Detecting installed extensions might be possible using https://code.visualstudio.com/api/references/vscode-api#extensions (it might be worth checking that the current extension is matklad.rust-analyzer, though). We could display a message suggesting the user to uninstall one of them.

Hey I was looking at this issue to figure out how difficult it would be to implement it. (For me as new comer).
I'm pretty sure that the suggested solution by @lnicola would work but it would be vscode specific from what I can see. Is there maybe a way to implement it with the pure LSP specification? (I couldn't find one). If it's not possible would it be worth to suggest such a feature for the LSP specification in addition to implementing it with the vs code specific way?

Both extensions mentioned here are Code-specific (unless you count coc.nvim, but that kind express the Code API and a fork of this extension), and there's no idea of an extension in LSP -- why would there be?
There are LSP clients that don't support extensions, and for those that do, there's no extension to be in conflict with.

Okay, it seems like I've misunderstood a part of the LSP. Thank you very much for clarifying!

I've create a pull requests that adds this warning. I kindly requets comments.
This is my first pull request for RA, so forgive me if I missed something.


I followed the code exactly from usage_examples for vision transformer(pretrained). I get the error ; TypeError: 'LayerNorm' object is not iterable

### My code:
model = torch.hub.load('facebookresearch/deit:main', 'deit_tiny_patch16_224', pretrained=True)
model.eval()
def reshape_transform(tensor, height=14, width=14):
result = tensor[:, 1:, :].reshape(tensor.size(0),
height, width, tensor.size(2))
result = result.transpose(2, 3).transpose(1, 2)
return result
paths = "/kaggle/input/arsl-no-background-v2/ARSL-No-BackGround-V2/Meem/Meem_180.jpg"
rgb_img = cv2.imread(paths, 1)[:, :, ::-1]
rgb_img = cv2.resize(rgb_img, (224, 224))
rgb_img = np.float32(rgb_img) / 255
input_tensor = preprocess_image(rgb_img, mean=[0.5, 0.5, 0.5],
std=[0.5, 0.5, 0.5])
cam = AblationCAM(model=model, target_layers=target_layers,reshape_transform=reshape_transform,
ablation_layer=AblationLayerVit())
targets = None
grayscale_cam = cam(input_tensor=input_tensor,targets=targets)
grayscale_cam = grayscale_cam[0, :]
visualization = show_cam_on_image(rgb_img, grayscale_cam, use_rgb=True)
### The error:
s
---> 41 self.activations_and_grads = ActivationsAndGradients(self.model, target_layers, reshape_transform)
File /opt/conda/lib/python3.10/site-packages/pytorch_grad_cam/activations_and_gradients.py:11, in ActivationsAndGradients.init(self, model, target_layers, reshape_transform)
9 self.reshape_transform = reshape_transform
10 self.handles = []
---> 11 for target_layer in target_layers:
12     self.handles.append(
13         target_layer.register_forward_hook(self.save_activation))
14     # Because of https://github.com/pytorch/pytorch/issues/61519,
15     # we don't use backward hook to record gradients.
TypeError: 'LayerNorm' object is not iterable

@jacobgil thank you so much for this awesome repository. I kindly request you to help me solve this issue.


DBZ-4170 Update analyze table statement as per MySql 8.0

https://issues.redhat.com/browse/DBZ-4170

Upstream PR - https://github.com/antlr/grammars-v4/pull/2359


Result empty in cosmos changeFeed

Package Name: @azure/cosmos
Package Version: 3.15.1
Operating system: Mac OS
[ ] nodejs

version: v16.14.2

[ ] browser

name/version: -

[ ] typescript

version: 4.2.3

Is the bug related to documentation in

[ ] README.md
[x] source code documentation
[ ] SDK API docs on https://docs.microsoft.com

Describe the bug
Reading the changeFeed is always returning an empty result, even with the example: https://github.com/Azure/azure-sdk-for-js/blob/%40azure/cosmos_3.15.1/sdk/cosmosdb/cosmos/samples/v3/typescript/src/ChangeFeed.ts
To Reproduce
Steps to reproduce the behavior:

Run the example here: https://github.com/Azure/azure-sdk-for-js/blob/%40azure/cosmos_3.15.1/sdk/cosmosdb/cosmos/samples/v3/typescript/src/ChangeFeed.ts

Expected behavior
Expect to fetch the changeFeed results, but they are empty. The screen shoot you can see the result.
Note that in the example code, the actual/expected are switched
Screenshots

/cc @jay-most

Hi @pedropacheco92, I tried the example you mentioned above and got the expected result. Could you please confirm if you are still facing this issue.


Only display those tasks that have the flag set to true.  Also, only …

…use those task's file sizes in the total file size for the provider.  Updated tests to include the display flag in the data.
Screen shot of tasks before using the display filter flag; from different branch:

Screen shot of tasks after using the display filter flag:

Coverage increased (+0.006%) to 83.544% when pulling 74abd0e0a23e5036bb9aa297afcdb9df305fb104 on 23388DisplayTaskFlag into b13ef69feab5ca4e5a15c7651b5086d132f247f7 on master.

Coverage increased (+0.006%) to 83.544% when pulling 74abd0e0a23e5036bb9aa297afcdb9df305fb104 on 23388DisplayTaskFlag into b13ef69feab5ca4e5a15c7651b5086d132f247f7 on master.

Coverage increased (+0.006%) to 83.544% when pulling 74abd0e0a23e5036bb9aa297afcdb9df305fb104 on 23388DisplayTaskFlag into b13ef69feab5ca4e5a15c7651b5086d132f247f7 on master.

Hey Jen could you remove this bit of code https://github.com/terranodo/eventkit-cloud/blob/23388DisplayTaskFlag/eventkit_cloud/ui/static/ui/app/actions/statusDownloadActions.js#L17. It was added to hide the osm generic provider before we had the flags

Coverage increased (+0.2%) to 83.699% when pulling f02bb3da75554f3f072a5dc42b199cea6cfa556b on 23388DisplayTaskFlag into b13ef69feab5ca4e5a15c7651b5086d132f247f7 on master.

Coverage increased (+0.02%) to 83.699% when pulling b03ec1760ffada96b413de33f0ea8f7190e6bde8 on 23388DisplayTaskFlag into e5bbc0d6a095eb9b3a370d2ee45655a06ca5fe05 on master.

Coverage decreased (-0.06%) to 83.729% when pulling 92f0cb53cdf55d6313a51c3d01575206712056e1 on 23388DisplayTaskFlag into 42a327f21cff714fc053db23fd2b349b98b06e37 on master.

Changes Unknown when pulling 8bdc5dc39080e8c64209e6d33d291a34a967ec6a on 23388DisplayTaskFlag into ** on master**.

Coverage decreased (-0.06%) to 83.869% when pulling 8bdc5dc39080e8c64209e6d33d291a34a967ec6a on 23388DisplayTaskFlag into 119bec5efee645ab70611d39fe90346b83d14dfa on master.


Fix profilers plot not being aligned to context manager enter time

As mentioned in #9478, the Profiler and CacheProfiler plots X (time) range is set based on the first and last element in their results. Since these elements are based on when dask tasks are computed you can run into alignment issues when combining plots with the ResourceProfiler which starts collecting data when its context manager is entered.
This PR fixes this by adding a start_time and end_time property to all of the profiles that are set in __enter__ and __exit__. They are then used for plotting which makes sure the plots are generally aligned with in a couple milliseconds depending on how fast all the context manager's __enter__ methods are called and that they include all the data for the entire time spent inside the context.
Some questions, todos, and other context:

In general my opinion is that if you don't want something to show up in the plots/profilers then it shouldn't happen inside the with block. Without this PR I was having the opposite issue where stuff was happening in the context that wasn't being shown in the default x-range of the plots (ex. resource profiler going on longer as something is being saved to disk).
I made the start_time and end_time public (no _) because I don't really like writing tests that check private properties and I thought they could be useful to users.
This PR assumes the plotting functions used by each profiler are not used outside of the visualize function and that backwards compatibility isn't an issue.
~I'll see if I can add some checks to the plot tests too.~ The plots are all relative time on their X axis so without diving into private properties on the bokeh objects I'm not sure how to check that the plot looks as expected.

Here is what the plots look like for the "no starter task" case from the issue with the default view/zoom with this PR:

Note the extra space on the right of the plots. I think this is due to the time it takes to kill the ResourceProfiler's subprocess. If the end_time was set before the process was terminated this would probably get rid of this. I'm not sure if it matters in a real world case where these graphs will be larger than 5 seconds in a lot of cases.

[x] Closes #9478
[x] Tests added / passed
[x] Passes pre-commit run --all-files

Is there any way I can get someone to look at this? It includes relatively simple changes, but is a pretty big quality of life fix for me.

I merged in main for another round of testing.  Once tests pass I think we should be good to merge

Thanks @djhoese .  Merging in


[BUG]: The "Follow us" section is not properly placed in the Student's main page

Is your feature request related to a problem? Please describe.
Follow us section not properly placed.
Describe the solution you'd like
Adding responsive "Follow us" section in student's main page like in home page would increase the interaction and global presence.
Screenshots

Additional context
None
@Harshdev098 Please assign this issue to me and add 'hacktoberfest', 'gssoc-ext' and 'level3' labels to it.

@Harshdev098 Please assign this issue to me , I'll solve this issue as early as possible.


login crashes when I start typing passphrase

System: OSX Yosemite 10.10.1
Keybase version: 1.0.14-1
With a fresh install achieved like this:
$ npm uninstall --global keybase
$ brew unlink keybase
$ brew update
$ brew install keybase
$ keybase -v
keybase version 1.0.14-1

If I try to keybase login using the passphrase option like this...
$ keybase login
How would you like to sign this install of Keybase?

(1) Use an existing device
(2) Use a paper key
(3) Use my Keybase passphrase
(4) Use GPG
Choose a signing option: 3
Your keybase username or email address: blahah

Keybase crashes as soon as I start typing, with the error:
▶ ERROR Failed to read line after GETPIN: EOF

Screenshot:

Also afterwards, the alignment of everything in the terminal is thrown out - I have to close the window. Like this:
$ keybase
NAME:
        keybase - Keybase command line client.

                                              USAGE:
                                                       keybase [global options] command [command options] [arguments...]

                                                                                VERSION:
                                                                                1.0.14-1

          COMMANDS:
                      base62		base62 operations
                                                            btc			Claim a bitcoin address
                                                                                cert			Print the CA cert for api.keybase.io
                                ctl			Control the background keybase service
                                                                                decrypt		Decrypt messages or files for keybase users
                               deprovision		Revoke the current device, log out, and delete local state.
                                                                                device		Manage your devices
                      encrypt		Encrypt messages or files for keybase users
                                                                                fuse			Manage fuse
                                                                                id			Identify a user and check their signature chain
                                                                  install		Installs Keybase components
                                                                                launchd		Manage launchd
                 list-trackers	List trackers
                                                list-tracking	List who you're tracking
                                                                                log			Manage keybase logs
                                                                                login		Establish a session with the keybase server
                                                              logout		Logout and remove session information
                                                                                paperkey		Generate paper keys for recovering your account

my log id: 8dd0f827684955dec250311c

PINENTRY-CURSES, YOU RUIN MY LIFE!

Easiest thing to do is to disable pinentry;  try --pinentry=none.  There might be a complication with the service needed to be started up with that flag, not the client, but i'm not sure.  There should be some support for this issue somewhere in this GH issues list.

https://github.com/keybase/client/issues/2081

Thanks!


python3Packages.netdata: init at 0.2.0

Motivation for this change
Python API for interacting with Netdata
https://github.com/home-assistant-ecosystem/python-netdata
This is a Home Assistant dependency.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

This is a semi-automatic executed nixpkgs-review. If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 108156 run on x86_64-linux 1

3 packages built:

python37Packages.netdata
python38Packages.netdata
python39Packages.netdata

This is a semi-automatic executed nixpkgs-review. If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 108156 run on x86_64-linux 1

3 packages built:

python37Packages.netdata
python38Packages.netdata
python39Packages.netdata

@GrahamcOfBorg build python3Packages.netdata

@GrahamcOfBorg build python3Packages.netdata


[Blog] How does does the AI medical Chatbot works?

Description
a chatbot is software that stimulates or makes a human-like conversational environment. So now since chatbots are going to make our future easy there are certain fields in which chatbots are very necessary to be in. Like in the business sector and medical sector. In the medical sector, healthcare chatbots have started to slowly flourish.
Published Link
How does Medical Chatbot work?
🔄 Websites
Hashnode
Checklist ✅

[X] I checked and didn't find similar issue
[X] I am from GSSoC23
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (blank for no)

I am working on this issue. Please assign it to me.


Frontend: add favicon to new frontend

Same as the old frontend.
Closes #271

QA :+1:
Url Works!

CR :flags:

CR 🌵

You may want to look into react helmet someday, but not today


Disable info box when elements are selected.

Have the info box display the last message when elements are selected,
and resume updating once the selection is over (either by clickaway,
escape, or action).
Resolve #309.

It seems pretty redundant to me. If the user selects multiple neumes they'll know that multiple neumes are selected.


build: update bci-base image from 15.4 to 15.5

As part of https://github.com/longhorn/longhorn/issues/6206

@nitendra-suse need to sign your commit, or else DCO check will fail.

@mergify backport v1.5.x v1.4.x


Documentation fixes for Unices.

Original pull request by Bastiaan Veelo (Bitbucket: veelo, GitHub: veelo).

Fix missing logo and install manual pages.

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).

Hooray. Merge worked again. And with closing source branch.
Good catch and thanks Bastiaan.
Roy

Original comment by Bastiaan Veelo (Bitbucket: veelo, GitHub: veelo).

I still don't quite get how we are supposed to work with Mercurial. I could not use my CMake branch for creating a pull request, as it wanted to merge changes that you had already copied by hand from an earlier rejected pull request. So I made a new branch CMake2, did hg transplant to port my changes over. Then I created the pull request from veelo/CMake2 to Coin3D/CMake. This has now given Coin3D a CMake2 branch as well, not quite what I had intended. No idea what would be the correct way to do this...

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).

Hm... I see what you mean. I notice that BitBucket thinks that both the CMake and the CMake2 branch are identical. I could simply try closing the CMake2 branch and leave it at that.....
If it goes horribly wrong we have all got copies on our systems so we aren't going to permanently lose anything.
I've tried it on one of the two copies on my system in SourceTree. I've still got the CMake branch. My system is saying I can push back to BitBucket. So, here goes ...
It has done it successfully. For now I will keep my other copy intact, just in case.
Roy

Original comment by Thomas Moeller (Bitbucket: TheHubbit, GitHub: TheHubbit).

I noticed that there are still a few more merged branches that haven't been closed (issueXX, reverse perspective, clang...). Should we close them as well?

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).

OK - I have closed all branches on one of my system copies. I have also merged in Bastiaan's pull request #220 and pull request #221. I am ready to sync the CMake branch with the default branch so that pull request #221 gets propagated to the CMake branch too. I am also ready to push all the branch closures. Once I do this I advise that:
Bastiaan: Your CMake2 clone always generates a CMake2 branch in BitBucket, which I close. I suggest you completely remove both your CMake and CMake2 clones, obviously saving any changes you have made. Then reclone and copy back in your saved changed files. That way you should be consistent.
Thomas: You may get away with simply updating. But be prepared for any issues.
Both -  please comment on my proposal. I'll wait for you both to acknowledge, or object, before I proceed, or not.
Roy

Original comment by Bastiaan Veelo (Bitbucket: veelo, GitHub: veelo).

Let's try that. I think when you say clone you mean branch. If funny things happen I can completely delete my repository and clone anew. I did so in the past...

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).

Well, I'm not sure whether I mean clone or branch from your perspective. However, I did mean "delete your repository and clone anew". I just want to try and ensure we don't get any more issues with faulty branch closures.
Roy

Original comment by Bastiaan Veelo (Bitbucket: veelo, GitHub: veelo).

OK

Original comment by Thomas Moeller (Bitbucket: TheHubbit, GitHub: TheHubbit).

Yes, let's do this.

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).

OK. It's all done.
Roy

Original comment by Bastiaan Veelo (Bitbucket: veelo, GitHub: veelo).

O my, words are difficult. When I said "clone anew" I meant "fork anew". Anyway, I am off to a fresh start.


Provide APIs for Updating collections separately and secure these routes

Problem

Database Populator leads to a time consuming and resource hungry solution for populating database. To acquire data from timetable.edu.pk, it requires 598 requests to be sent. The whole process takes about 3-4 minutes.

Solution

To tackle this problem, we can provide a set of APIs for updating specific data.

TODO

[x] #60
[x] #61
[x] #63

Issue resolved by pull requests #58 #62 and #65 :tada:


Cannot Load Dataset

Hi,
I have my instruction dataset with such samples in a file named "databricks-dolly-15k".
{"instruction": "Paraphrase the following text.", "context": "Hi loremipsum,\nDo you work there? I need you to set up an outgoing Internet wire for me right away.", "response": "Hey loremipsum,\nAre you employed at that location? I require your assistance in arranging an immediate outgoing access to the internet for me.", "category": "paraphrase"}

I cannot load it from trainer.py, cannot figure out why.
Trackback is a follows:
Traceback (most recent call last):
  File "trainer.py", line 334, in <module>
    main()
  File "/mnt/dsc-nfs-1/jawad-sajid/DOLLY/dolly-env/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/mnt/dsc-nfs-1/jawad-sajid/DOLLY/dolly-env/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/mnt/dsc-nfs-1/jawad-sajid/DOLLY/dolly-env/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/mnt/dsc-nfs-1/jawad-sajid/DOLLY/dolly-env/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "trainer.py", line 326, in main
    train(**kwargs)
  File "trainer.py", line 227, in train
    processed_dataset = preprocess_dataset(tokenizer=tokenizer, max_length=max_length, seed=seed, training_dataset=training_dataset)
  File "trainer.py", line 159, in preprocess_dataset
    dataset = load_training_dataset(training_dataset)
  File "trainer.py", line 90, in load_training_dataset
    dataset = load_dataset(path_or_dataset)
  File "/mnt/dsc-nfs-1/jawad-sajid/DOLLY/dolly-env/lib/python3.8/site-packages/datasets/load.py", line 1773, in load_dataset
    builder_instance = load_dataset_builder(
  File "/mnt/dsc-nfs-1/jawad-sajid/DOLLY/dolly-env/lib/python3.8/site-packages/datasets/load.py", line 1502, in load_dataset_builder
    dataset_module = dataset_module_factory(
  File "/mnt/dsc-nfs-1/jawad-sajid/DOLLY/dolly-env/lib/python3.8/site-packages/datasets/load.py", line 1221, in dataset_module_factory
    raise FileNotFoundError(
FileNotFoundError: Couldn't find a dataset script at /mnt/dsc-nfs-1/jawad-sajid/DOLLY/dataset/databricks-dolly-15k/databricks-dolly-15k.py or any data file in the same directory.

Python 3.8.10 pip freeze as follows:
accelerate==0.19.0
aiohttp==3.8.4
aiosignal==1.3.1
async-timeout==4.0.2
attrs==23.1.0
certifi==2023.5.7
charset-normalizer==3.1.0
click==8.1.3
cmake==3.26.3
datasets==2.12.0
dill==0.3.6
filelock==3.12.0
frozenlist==1.3.3
fsspec==2023.5.0
huggingface-hub==0.14.1
idna==3.4
Jinja2==3.1.2
lit==16.0.3
MarkupSafe==2.1.2
mpmath==1.3.0
multidict==6.0.4
multiprocess==0.70.14
networkx==3.1
numpy==1.24.3
nvidia-cublas-cu11==<IP_ADDRESS>
nvidia-cuda-cupti-cu11==11.7.101
nvidia-cuda-nvrtc-cu11==11.7.99
nvidia-cuda-runtime-cu11==11.7.99
nvidia-cudnn-cu11==<IP_ADDRESS>
nvidia-cufft-cu11==<IP_ADDRESS>
nvidia-curand-cu11==<IP_ADDRESS>
nvidia-cusolver-cu11==<IP_ADDRESS>
nvidia-cusparse-cu11==<IP_ADDRESS>
nvidia-nccl-cu11==2.14.3
nvidia-nvtx-cu11==11.7.91
packaging==23.1
pandas==2.0.1
psutil==5.9.5
pyarrow==12.0.0
python-dateutil==2.8.2
pytz==2023.3
PyYAML==6.0
regex==2023.5.5
requests==2.30.0
responses==0.18.0
six==1.16.0
sympy==1.12
tokenizers==0.13.3
torch==2.0.1
tqdm==4.65.0
transformers==4.29.1
triton==2.0.0
typing-extensions==4.5.0
tzdata==2023.3
urllib3==2.0.2
xxhash==3.2.0
yarl==1.9.2

You need to pass a named dataset, or path, that datasets can load with load_dataset. It should work if you point at a ".jsonl" file path. I am not sure what you have here though, and it's saying it can't load, so try debugging that directly first. This isn't related to this code or model. See what works here: https://huggingface.co/datasets/databricks/databricks-dolly-15k/tree/main

Thanks, works.
There was an error in my dataset structure.


doing everything automatically

Figured I would go with a really bold issue header :) Once we have identified where the cells are in each image and done manual input on some values (probably over multiple images), we could use neural networks to automatically identify the numbers in other cells. Then we would just need to highlight cells we are not sure of. Thoughts @rogerhutchings @camallen @chrislintott ?

Can you elaborate, i'm not really following here.

After we've annotated a page, we know what the layout of a page is like. So we know exactly where everything of interest is and it is broken down into small discrete cells. For Old Weather, most (but not all) of the cells contain numbers. Neural networks are really good at automatically identifying handwritten digits. So we just need to give the contents of each cell to a neural network and get back what digits are in that cell. If the neural network is uncertain about the digits, we flag that cell as needing human transcription.

right - what if i don't do the bounding boxes correctly?

we (Zooniverse) would do the bounding boxes to make sure that they are correct. As I said in issue #53, we only really need to annotate one page per ship and that can carry those cells over to the other pages per ship. I've already done one annotation this morning so that's definitely not a bottleneck.


Re-enable Domino ingestion pipeline after fixing bug

Paused ingestion pipeline.
Fix bug in indexing with span lists. Change Codex to automatically take a dump of the process when the exception with span list is hit.

One simpler mechanism might be to disable span compression and capture a file which hits the issue and write a unit test to repro when compressing spans.


Mythras v3.7 - Bugfix

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

Changes / Description
3.7
Fixed

Deleting a weapon will now actually remove the row instead of just clearing the data

Character Sheet Info Roll20 Internal Use only.


Update to 1.25 failed on Windows Server 2016

VSCode Version: 1.24
OS Version: Windows Server 2016

Steps to Reproduce:

Start update to version 1.25
See attached log for output

vscode-inno-updater.log

Does this issue occur when all extensions are disabled?: Yes/No

/duplicate #52712


Blank page when trying to add new IdPs

Description
$subject

The following error can be seen in the carbon log
An error occurred at line: [123] in the jsp file: [/idpmgt/idp-mgt-edit-oidc.jsp]
scopes cannot be resolved to a variable
120:                     Property scopesProp = IdPManagementUIUtil.getProperty(fedAuthnConfig.getProperties(),
121:                              OIDC.SCOPES);
122:                     if (scopesProp != null) {
123:                         scopes = scopesProp.getValue();
124:                     }
125:                     Property queryParamProp = IdPManagementUIUtil.getProperty(fedAuthnConfig.getProperties(),
126:                             OIDC.QUERY_PARAMS);

An error occurred at line: [194] in the jsp file: [/idpmgt/idp-mgt-edit-oidc.jsp]
scopes cannot be resolved to a variable
191:         if (isOIDCPKCEEnabled) {
192:             oidcPKCEEnabledChecked = "checked=\'checked\'";
193:         }
194:     if (scopes == null) {
195:         scopes = StringUtils.EMPTY;
196:     }
197:     if (oidcQueryParam == null) {

An error occurred at line: [195] in the jsp file: [/idpmgt/idp-mgt-edit-oidc.jsp]
scopes cannot be resolved to a variable
192:             oidcPKCEEnabledChecked = "checked=\'checked\'";
193:         }
194:     if (scopes == null) {
195:         scopes = StringUtils.EMPTY;
196:     }
197:     if (oidcQueryParam == null) {
198:         oidcQueryParam = StringUtils.EMPTY;

An error occurred at line: [200] in the jsp file: [/idpmgt/idp-mgt-edit-oidc.jsp]
scopes cannot be resolved to a variable
197:     if (oidcQueryParam == null) {
198:         oidcQueryParam = StringUtils.EMPTY;
199:     }
200:     if (StringUtils.isBlank(scopes) && !oidcQueryParam.toLowerCase().contains("scope=")) {
201:        scopes = "openid";
202:     }
203:

An error occurred at line: [201] in the jsp file: [/idpmgt/idp-mgt-edit-oidc.jsp]
scopes cannot be resolved to a variable
198:         oidcQueryParam = StringUtils.EMPTY;
199:     }
200:     if (StringUtils.isBlank(scopes) && !oidcQueryParam.toLowerCase().contains("scope=")) {
201:        scopes = "openid";
202:     }
203:
204: %>

An error occurred at line: [361] in the jsp file: [/idpmgt/idp-mgt-edit-oidc.jsp]
scopes cannot be resolved to a variable
358:                 <fmt:message key='scopes'/>:
359:
360:                     <input id="scopes" name="scopes" type="text"
361:                            value="<%=Encode.forHtmlAttribute(scopes)%>">
362:
363:

364:                         <fmt:message key='scopes.help'/>

Steps to Reproduce
Log into carbon console and click Add under Identity Providers.
Affected Component
Analytics
Version
4.3.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

This is not reproduced in the latest pack. Hence closing.


Add requireAllDemandsAndIgnoreOthers flag

This PR adds an extra option requireAllDemandsAndIgnoreOthers (name tbd) to the azure pipeline scaler which ensures that all demands in the scaler definition is present in the incoming job, while ignoring any other demands the job may have.
This is different from requireAllDemands which requires all demands to be an exact match.
Checklist

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

Fixes #5579

/run-e2e pipeline


Designer, Query Wizard, Enter SQL statement, must declare the scalar variable error

Describe the bug
In Query Wizard, Enter SQL statement,
with Exec StoredProcedureName @ParameterName
if the parameter is int type, click next button will report
must declare scalar variable error
To Reproduce
Steps to reproduce the behavior:
In Query Wizard, Enter SQL statement,
with Exec StoredProcedureName @ParameterName
if the parameter is int type, click next button will report
must declare scalar variable error
also see (with temporary workaround)
https://stackoverflow.com/questions/75147155/cannot-define-fastreport-query-parameters-must-declare-scalar-variable-error
Expected behavior
A clear and concise description of what you expected to happen.
Stacktrace

...
...

Screenshots

Device (please complete the following information):

OS: Windows 11 64b
Browser [e.g. chrome, safari]
Version FastReport.Community.2023.1.0

Additional context
Add any other context about the problem here.

Could you attach a test database file?

yes here it is, the same db with the other bug report ticket.
SPFastReport.zip
However you shall use this stored procedure to reproduce the issue,  instead of the one in the screenshots posted above:
[dbo].[GetProductListByCategoryID]
And the SQL statement to put into the dialog to trigger the issue should be
exec SPFastReport.dbo.GetProductListByCategoryID @ID

Hello!
To solve your problem create a simple query in the query wizard and you will go to the form of declaration of parameters, create the parameter you need in your case ID after creating click back and write it into your query, everything will work correctly
Best regards,
Bogdan


Fix uses of get_file_types

Previously, string concatenation was complaining about the use of
dict_keys.  Using str() fixes this, but leaves behind a dict_keys
signature in the string.  Also, it seems a collection is expected when
get_file_types() is used, so might as well convert it to a tuple.

This should address: https://github.com/NCATS-Tangerine/kgx/issues/58

@gregr Thanks for the fix 👍


Types in line annotations broken

similar for Options

Hello @forki. Can you provide more information about this bug, like an example code that presents this problem?

@64J0 we used to render the type in the red box as Task<OpenAccounting array> instead of what's currently being rendered.
This is a side effect of us moving to use the postfix type formatting from FCS directly (look for uses of .DisplayContext in FSAC for pointers, e.g. here).
We used to have a bunch of regex that would replace [] with array, but in the move to use these FCS APIs directly we must have lost it.
The fix will be entirely in FSAC and will likely be in this routine.  We format types here and we don't do all of the same escaping/type rendering logic that we do in the SignatureFormatter in the first link.
I'd expect that we'd be able to unify these two logics to prevent this kind of drift in the future.
The real fix will involve adding flags to the DisplayEnv type in FCS to allow us to control the way the array type is rendered. Since F# arrays are defined using the [] symbol directly we get this weird half-state. Such a fix would look a lot like the PR I sent to introduce forced generic argument formatting.


Set AWS SDK for Rust Language to Rust

Description of changes:
The AWS SDK for Rust language was marked as Kotlin, but looking at the Github repository page the implementation is entirely in Rust. I've updated the language entry to Rust from Kotlin.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Thanks for the PR! This is definitely a confusing bit of documentation. The actual code generator for the AWS rust sdk is entirely contained within the smithy-rs repo, which is different than some of the other language implementations. aws-sdk-rust is where they put all the built aws clients, so there isn't any generator code there. I put up a separate PR to clarify this issue, let me know if it needs any more changes.

Sounds good to me!


[5.8] Fix product lookup

For module aliasing, we changed the product lookup to include package identity, but product references can use a local identity as specified by the name attribute of the package dependency declaration. So for packages where the local name attribute didn't match the identity, we would not longer find the corresponding products at all. This switches us back to use the local identity that is also called explicitNameForTargetDependencyResolutionOnly in package reference.
rdar://106578471
(cherry picked from commit afcd86a76b62b382f8ed98ec87b7ce5a67884b19)

@swift-ci please smoke test

The new test needs to be fixed to work with 5.8

@swift-ci please smoke test

I didn't commit my test changes...

@swift-ci please smoke test windows

@swift-ci please smoke test windows

Closing since we’re not taking this in 5.8


Port coverage reports to Codecov

Partially done by #5. Still need to decide which CI to use for Windows.

Should be closed by #17 .


Delete application skiapp from this environment

The command jx delete application was run by omedina and it generated this Pull Request

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


upd: request header names are evaluated

Dear @seymen,
Are you having any trouble to merge my changes? I'm needing to incorporate this to a project and I still wanted to use apickli NPM module.
Thanks in advance.-

Sorry @theTestTube - time...
Is it possible to revert the changes you made to package.json so I can merge this in directly? I can then up the version and push to npm, hopefully together with PR74.

Changes merged.

@seymen Thanks for your merge response.
Still having two issues (should I open two issues for these trivial things?), one related to the httpbin.feature conflict, I've opened a new pull request at https://github.com/apickli/apickli/pull/76


[Suggestion] Command-history between restarts

Much like vanilla now saves the last 50-ish commands, would be nice if Fuzzy (.minecraft/command_history.txt)

Included those commands by default instead of empty
Configurable command-history cache

Thank you for the idea! I had also considered using this file during the implementation. However, I wasn't sure what exactly the file was about (or whether it only exists in debug mode) because I hadn't found anything about it online (seems to be relatively new?).  I will add it in the next version, thanks for the suggestion!


ModuleNotFoundError: No module named 'cvperception' [RTDETR-V2]

Hey, I wanted to try the version2, but I got there is no file named cvperception in rtdetr-pytorchv2/ folder
    from cvperception.core import YAMLConfig
ModuleNotFoundError: No module named 'cvperception'

which file ?

I am trying to run  this file: python references/deploy/rtdetrv2_torch.py
You have an import of:
from cvperception.core import YAMLConfigin line 11

relace that line as below
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent / '..' / '..'))

from src.core import YAMLConfig

Thanks, works!


re-adding components which were part of nav bar including routing module

... and each of the 3 components referenced in each navigation tab of the nav bar

Thank you!


CLI: large file write results in tcp too many open files

To reproduce this issue:
use a large file
https://drive.google.com/open?id=1ZO022BAJFAkLeqGT54-g_WdK2cdb8Nm_
run
influx write -b building @./all_building_permit_data.lp
took a while, got err
Error: Failed to write data: Post http://localhost:9999/api/v2/write?bucket=6f0bb579d933657f&org=49b3257a403b5b1d&precision=ns: dial tcp: lookup localhost: no such host.
expected
no error

first try failed, then I lifted up ulimit from 256 -> 6000. Write took a little longer, but still failed for unknown reason.

Which version you are using ?


Descriptions on Model Parameters

Is your feature request related to a problem? Please describe
Users do not know what temperature, Max Tokens, and Top-P mean when adjusting their Model Parameters.
Describe the solution you'd like
I think the features desgin should include quick descriptions. Example: Top-P:Range of Vocabulary. Then have it on a spectrum from Relevance to Diversity.
Describe alternatives you've considered
No response
Additional context

I attached a design I think could be cool.

Duplicates #847


feat: executor ffi

Rust CFFI for Executor Class

TableRowVector was not defined in the core package, so I imported it from the results crate in the ffi package. We might want to move that definition to the core library.


Login page title/subtitle hide

Is your feature request related to a problem? Please describe.
No. Request is not to related to any problem.
Describe the solution you'd like
It would be great if you could implement configuration option to hide login page title/subtitle. Personally I would like to have that option.
Describe alternatives you've considered
I removed default values from index.js but default tile and subtitle text are still there.

I am stuck here. Have no idea where to look further. That's why request implementation would be great to implement or at least you could point me where to look to achieve what I need.
Thanks!
Additional context

[Triage] Hi @buzz13, thanks for filing this issue. Someone will take a look at implementing this configuration option. In the meantime, please feel free to open a PR for this feature and we can try to get it in as fast as possible.

@scrawfor99
I am sorry somehow I missed your message. What do you mean by PR? Pull request?


Add participant kind in getinfo

I think @edouardparis will need to know if the revaultd is configured for a stakeholder or a manager without actually parsing the config ?

revault-gui need to parse the config to get the datadir and find the socket path, It can parse the user role in the config

Hmm right, but i still think we should do it for applications that don't want to be parsing the config

ACK :+1:

Similarly to #174 this is about adding a new field in getinfo.
The key could be participant_type and the value should be the "kind" of participants, stakeholder, stakeholdermanager, or manager.
Useful skills for solving this issues:

Knowing what these kinds correspond to
Knowledge about the config parsing, to see where (and on what basis) we set whether a participant is a stk, stkman or man
Being familiar with the RevaultD "main state data structure" to be able to forward this information to the JSONRPC interface

Done in #387


Example for GoDaddy API removes any TXT records you might already have

Had this hit us a couple of times now.  Finally tracked it down to the GoDaddy API call in the example.
The example included will automatically remove any TXT records you have in your DNS manager.
https://github.com/lukas2511/dehydrated/wiki/Example-of-DNS-01-via-GoDaddy-API
curl -X PUT https://api.godaddy.com/v1/domains/$domain/records/TXT -H "Authorization: sso-key $apikey:$secret" -H "Content-Type: application/json" -d "[{\"name\": \"_acme-challenge.${2}\", \"ttl\": 600, \"data\": \"${4}\"}]"
The documentation lists another option.
https://developer.godaddy.com/doc#!/_v1_domains
/v1/domains/{domain}/records/{type}/{name}
I fixed this for my needs by changing the line to:
curl -X PUT https://api.godaddy.com/v1/domains/$domain/records/TXT/_acme-challenge.${2} -H "Authorization: sso-key $apikey:$secret" -H "Content-Type: application/json" -d "[{\"name\": \"_acme-challenge.${2}\", \"ttl\": 600, \"data\": \"${4}\"}]"
A disclaimer in the Wiki for this example would be a nice to have.  It removed my SPF records twice now.

You can add a disclaimer yourself, it looks like the wiki is user-editable.

The wiki and the mentioned hook scripts and tutorials are user maintained.
Like @RyanSquared said you can add a disclaimer yourself.
This is not a dehydrated bug, closing this issue.


update to my account?

this may be a dumb question... but
following instructions I get a build representing the account of user @github. I don't see anywhere in the _config.yaml where the github account should be updated to my own. I tried adding site: okwme but it didn't update the build with my content.
Where am I supposed to add which user to build off of?

i see, must have cloned from this branch instead of my fork

why does this make a difference?


OnScan method is triggered many times

`  const onScan = (barcodeValue: string) => {
if (barcodeValue[0] === 'L') {
// code
}
};
const keyScanHandle: keyscanner = new keyscanner(onScan);

}`
The 'onScan' method is executed many times with the same content

Ticket can be closed.


setName equivalent in Chisel3

I want to understand how to rename signals for module ports in Chisel3 generated verilog code. An example of what I am trying to do can be found on slide 6 on link.
As I understand in older versions of Chisel this could be done using the setName function. Is there similar functionality in Chisel3.
This is sort of related to #598. However the main difference between my problem and the solution presented there in terms of the MultiIOModule is that my external IP does not follow a similar hierarchical naming scheme using the _ character. Could I directly set the strings to be used in the generated verilog?

Using MultiIOModule could you do something like this?
class VecMultiIOModule extends MultiIOModule {
  val ap_clk = IO(Input(Bool())
  val ap_rst = IO(Input(Bool()))
  val ap_start = IO(Input(Bool()))
  val ap_done = IO(Output(Bool()))
  // ... or whatever names you want

I have a bunch of bundles which are logically grouped together inside my Chisel code. Something like
class MMIOInterface extends Bundle {
  // MMIO Valid
  val ha_mmval = Input(Bool())
  // MMIO AFU desc. space
  val ha_mmcfg = Input(Bool())
  // MMIO read/write
  val ha_mmrnw = Input(Bool())
  // MMIO wordsize
  val ha_mmdw = Input(Bool())
  // MMIO address
  val ha_mmad = Input(Bits(24.W))
  // MMIO address parity
  val ha_mmadpar = Input(Bool())
  // MMIO write data
  val ha_mmdata = Input(Bits(64.W))
  // MMIO write data parity
  val ha_mmdatapar = Input(Bool())
  // MMIO write ack/read valid
  val ah_mmack = Output(Bool())
  // MMIO read data
  val ah_mmdata = Output(Bits(64.W))
  // MMIO read data parity
  val ah_mmdatapar = Output(Bool())
}

class ControlInterface extends Bundle {
  // Control valid
  val ha_jval = Input(Bool())
  // Control command
  val ha_jcom = Input(Bits(8.W))
  // Control command parity
  val ha_jcompar = Input(Bool())
  // Control wed address
  val ha_jea = Input(Bits(64.W))
  // Control wed parity
  val ha_jeapar = Input(Bool())
  // Control AFU running
  val ah_jrunning = Output(Bool())
  // Control AFU done
  val ah_jdone = Output(Bool())
  // Control LLCMD ACK
  val ah_jcack = Output(Bool())
  // Control AFU error
  val ah_jerror = Output(Bits(64.W))
  // Control yield
  val ah_jyield = Output(Bool())
  // Control timebase request
  val ah_tbreq = Output(Bool())
  // Control AFU parity support
  val ah_paren = Output(Bool())
  // Control AFU clock
  val ha_pclock = Input(Clock())
}

And these are used inside modules that take each bundle as a port definition. However my top-level module that interfaces with an external verilog module must use the same wires in a flat namespace. i.e.,
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE ieee.numeric_std.ALL;

ENTITY afu IS
PORT
(
...
-- MMIO Interface
  ha_mmval      :  IN STD_LOGIC;                      -- MMIO valid
  ha_mmcfg      :  IN STD_LOGIC;                      -- MMIO AFU desc. space
  ha_mmrnw      :  IN STD_LOGIC;                      -- MMIO read/write
  ha_mmdw       :  IN STD_LOGIC;                      -- MMIO wordsize
  ha_mmad       :  IN STD_LOGIC_VECTOR(23 DOWNTO 0);  -- MMIO address
  ha_mmadpar    :  IN STD_LOGIC;                      -- MMIO address parity
  ha_mmdata     :  IN STD_LOGIC_VECTOR(63 DOWNTO 0);  -- MMIO write data
  ha_mmdatapar  :  IN STD_LOGIC;                      -- MMIO write data parity
  ah_mmack      : OUT STD_LOGIC;                      -- MMIO write ack/read valid
  ah_mmdata     : OUT STD_LOGIC_VECTOR(63 DOWNTO 0);  -- MMIO read data
  ah_mmdatapar  : OUT STD_LOGIC;                      -- MMIO read data parity
-- Control Interface
  ha_jval       :  IN STD_LOGIC;                      -- Control valid
  ha_jcom       :  IN STD_LOGIC_VECTOR(7 DOWNTO 0);   -- Control command
  ha_jcompar    :  IN STD_LOGIC;                      -- Control command parity
  ha_jea        :  IN STD_LOGIC_VECTOR(63 DOWNTO 0);  -- Control wed address
  ha_jeapar     :  IN STD_LOGIC;                      -- Control wed parity
  ah_jrunning   : OUT STD_LOGIC;                      -- Control AFU running
  ah_jdone      : OUT STD_LOGIC;                      -- Control AFU done
  ah_jcack      : OUT STD_LOGIC;                      -- Control LLCMD ACK
  ah_jerror     : OUT STD_LOGIC_VECTOR(63 DOWNTO 0);  -- Control AFU error
  ah_jyield     : OUT STD_LOGIC;                      -- Control yield
  ah_tbreq      : OUT STD_LOGIC;                      -- Control timebase request
  ah_paren      : OUT STD_LOGIC;                      -- Control AFU parity support
  ha_pclock     :  IN STD_LOGIC                       -- Control AFU clock
);
END ENTITY;

Using MutiIOModule will involve redefining every wire as a separate IO port and then inidvidually assigning them to the bundles defined earlier to be passed into the Chisel modules. I think it would be simpler and easier to manintain by just rewriting the names instead of repeating hundreds of wire several times (once in port definition, then assignment to bundles, then in the bundle definitions).

This would be nice to have for BlackBoxes as well, e.g. when you have a 3rd party thing you want to integrate with tweaked names/Chisel types

Won't fix. Use a wrapper. Or propose and RFS


where i put appid ,masterKey in project and npm start not working....so plz help me

Can you please provide the error message you receive when you run npm start

DATABASE_URI not specified, falling back to localhost.

e:/parse-server-master
$ npm start
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v5.5.0
npm ERR! npm  v3.3.12
npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     G:\parse\parse-server-master\npm-debug.log

You are missing the start script from the package.json file:
"scripts": {
    "start": "node index.js"
 }

Or simply do node index.js without npm.

#iulianvarzaru
its not working...
i am using parse-server-master.

Actually it's working but you have to put your application Id as a header in the request. Try:
curl -X POST \
  -H "X-Parse-Application-Id: myAppId" \
  -H "Content-Type: application/json" \
  -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \
  http://localhost:1337/parse/classes/GameScore

#Iulianvarzaru
DATABASE_URI not specified, falling back to localhost.
parse-server-example running on port 1337.
In browser, if I go to "localhost:1337/parse", it gives me the following error. (localhost:1337 is fine)
{"error":"unauthorized"}
And this is my API setup. I did provide databaseURI but don't know why it is complaining that it is not specified.
var api = new ParseServer({
databaseURI: 'mongodb://localhost:27017/dev',
appId: 'xxx',
masterKey: 'yyy'
});

curl -X GET
-H "X-Parse-Application-Id: XXX"
-H "X-Parse-Master-Key: YYYY"
http://localhost:1337/parse/classes/_User
we got error :---
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0cu                                                                                rl: (7) Failed to connect to localhost port 1337: Connection refused

Failed to connect to localhost port 1337: Connection refused, is mongodb running on your server ?

yes

Yes , I got data in cmd but in browser  {"error":"unauthorized"} ...

{"error":"unauthorized"} is thrown only when you don't provide the header keys inside your request. If you didn't setup any other keys like restApiKey or javascriptkey you just need to include your application id in the header. Maybe post here your server file so I can look into it.

I am getting this error too "DATABASE_URI not specified, falling back to localhost". Where do I put the damn URI. Can anyone help please?

This is not an error, it just says that there is no environment variable DATABASE_URI and that it's using the url from the server file.

I Understand. But where do I put that variable. I tried in app.json. index.js and scalingo.json. none worked.
index.js have this
var api = new ParseServer({
//databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
databaseURI: databaseUri || 'mongodb://buddyreminder:Buddyreminder01231!@ds059165.mongolab.com:59165/parse_buddyreminder',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'NjTVO3LsUaJ9QW8MEUDUSs3aYhqmAWq1ErCy9fBp',
masterKey: process.env.MASTER_KEY || 'VT2yUOUo0BcWql8fR6Hv8OmRF9vnWWMC2sOUGWgR' //Add your master key here. Keep it secret!
});

#vineetbindal
You put aapId and masterKey in index.js file and open terminal and run npm start then u got
DATABASE_URI not specified, falling back to localhost.
parse-server-example running on port 1337.
then open new  terminal and  write
curl -X GET
-H "X-Parse-Application-Id: XXXXXXXXXXXXRyem"
-H "X-Parse-Master-Key: XXXXXXXXXXXXXBWA"
http://localhost:1337/parse/classes/Game
then u got data for Game class

@singh7889 . I understand that. The question is how do I fix "DATABASE_URI not specified, falling back to localhost." where do I specify "DATABASE_URI" so that it wont fall back to localhost.
I know where to put application-id and master-key. Its documented pretty well. But nowhere it has been mentioned that where to put DATABASE_URI.

Aanyone knows where can i define these values  :
process.env.DATABASE_URI || process.env.MONGOLAB_URI;

You put them in databaseURI in the place where you initialize the parse-server
// Specify the connection string for your mongodb database
// and the location to your Parse cloud code
var api = new ParseServer({
  databaseURI: 'mongodb://localhost:27017/dev',
  cloud: '/home/myApp/cloud/main.js', // Provide an absolute path
  appId: 'myAppId',
  masterKey: '', //Add your master key here. Keep it secret!
  fileKey: 'optionalFileKey',
  serverURL: 'http://localhost:' + port + '/parse' // Don't forget to change to https if needed
});

I am a little confused between using parse-server and pare-server-example. Can anyone help Are there any step by step instructions ?

That error is because you already have the parse server running on that port. You can't run two servers on the same port. Shut down your existing server, or pick another port.

@iulianvarzaru
I agree with your point.
I did not provide the header keys inside request. I don't know where to put these keys and where is header to include the app_id. Could you please help me on this?

Have same issue with the error but found out that it is connected to the remote DB server...

This may be a late reply but you can resolve it by setting environment variable. In windows set the DATABASE_URI
C:\>set DATABASE_URI=mongodb://localhost:port/yourdb
C:\>npm start
In linux also you can set the environment variable as following
$DATABASE_URI=mongodb://localhost:port/yourdb
$export DATABASE_URI
$npm start
The same environment variables are available in app.yaml file in the root directory.


Off-by-one error in holdback random rolls

In Helper.HoldbackSalvage, there are two instances of random rolls against the holdbackChance:
                    int roll = LootMagnet.Random.Next(100);
                    if (roll <= holdbackChance) { ... }

Random.Next(100) returns a value from 0 to 99, so the comparisons should actually be using < instead:
                    int roll = LootMagnet.Random.Next(100);
                    if (roll < holdbackChance) { ... }

Especially when holdbackChance is 0, the roll should never succeed, and when holdbackChance is 100, it should always succeed. Using '<' gives the correct behaviour.

Temporary workaround to prevent employer from taking stuff util fix is implemented - use negative multiplier:
        "HoldbackFactionValue" : [ 30, 20, 10, 5, 2.5, -0.001, -0.001, -0.001 ],

Semantics changed such that holdback is now a trigger, which takes n items. Trigger logic incorporates suggested fix:
               float triggerChance = Helper.GetHoldbackTriggerChance();                 float holdbackRoll = LootMagnet.Random.Next(101);                 if (holdbackRoll <= triggerChance) {                     LootMagnet.Logger.Log($"Holdback triggered from roll:{holdbackRoll} <= triggerChance:{triggerChance}. Removing salvage.");                     modifiedSalvage.AddRange(Helper.HoldbackSalvage(rolledUpSalvage));                 } else {                     modifiedSalvage.AddRange(rolledUpSalvage);                 }
Thanks for the report!

Thanks for the response, but the code you show doesn't look quite right either. Firstly because Random.Next(101) is not a percentile roll: it can return 101 different values, 0 to 100 inclusive. Secondly because if it is corrected to Random.Next(100) (0 to 99 inclusive), then you would again need '<' for the comparison with triggerChance so that a 0 chance never succeeds (and so that a 99 chance can fail).


SAMP crashes because of Overlay

Hello
Some of my users have the problem that my program which uses the API for GTA San Andreas Multiplayer makes GTA San Andreas crash. It crashes when I create the first Overlay. My program itself doesn't return any errors.
What could I do to fix that?

Hi,
what for modification the users have? Sometimes, when users had an ENB installed, the game are crashing.

This can happen if the user use a modified version of the d3d9.dll like ENB or so. Maybe i will provide a fix for that issue at the Open-SAMP-API repository

Would be very nice

Did you progressed?


SHACL shapes to enforce and document model

I've long argued against including SHACL shapes with gist, since an upper ontology itself is not populated with data and SHACL by nature is implementation-specific. However, it now occurs to me that there is some small group of cases where SHACL could be used to explain and enforce correct implementation of the model. Ordered collections and ordered members provide one example:

All members of OrderedCollections are OrderedMembers.
OrderedMembers. are only members of OrderedCollections.
An OrderedMember is a member of exactly one OrderedCollection.
An OrderedMember has exactly one providesOrderFor triple.
An OrderedMember is either the subject of gist:sequence or gist:precedesDirectly, or is the object of gist:precedesDirectly.

Granted that these are all in the ontology axioms; however, SHACL can be useful for implementers to make sure they have correctly understood and implemented the model. Note that I don't think every axiom is a candidate for SHACL. E.g., an ordered collection is either empty or has a first member. I don't expect all implementations to materialize hasFirstMember triples, and therefore wouldn't include it in gist SHACL.
This has occurred to me because I am now writing exactly this SHACL for a client project; it would have been useful were it provided with gist.

SHACL can be useful for implementers to make sure they have correctly understood and implemented the model

I could see it being useful for enforcing closed-world constraints that can't be enforced with OWL. If all OrderedMembers should have exactly one providesOrderFor triple, the "max 1" part could in principle be enforced by OWL (given that providesOrderFor is functional and the providesOrderFor objects are distinct), whereas the "min 1" component would need to be enforced by SHACL.
Some of the axioms above should (in theory, at least) catch bad data w/ an OWL reasoner on. But in cases where we want to enforce the existence of something to ensure proper implementation, SHACL could be helpful.

This is a good point, but many or most implementations do not run reasoners for performance reasons. There are also the cases I mention above, where we deliberately rely on the OWA to express semantics that may not be implemented, as in the hasFirstMember example.
Providing this SHACL would also be a service to implementers so they don't have to do it themselves, as I mention above.
Anyway, it's worth thinking about the pros and cons of offering some SHACL.

If we start down this road, we should have clear criteria for when we do or do not include SHACL.

Some of the axioms above should (in theory, at least) catch bad data w/ an OWL reasoner on.

In practice, all OWL can do is discover the error, pointing to the fact that there is bad data. It is not so great at telling you where the bad data it. Also, in practice OWL reasoning support is minimal in triple stores.


Remove Android MediaPlayer support

With limited resources we need to focus on ExoPlayer. It is the player used by most users of this module.

I agree, lets remove it


feature/web-create

Changes in this PR:

Updated KeyManager class to include import and export methods by default, I could be wrong but I don't necessarily see a use case where this would be an issue.
Added the missing DID resolution results and changed them to factory constructors.
Added web did create method and updated the resolver to return notFound result where document location couldn't be resolved and some additional cleanup.
Updated the PortableDid to use map instead of json to remove possible confusion (just a nice reminder that the data still has to be encoded if wanted to be used as a .json).
Added testing for the web did create function.

Note: The code in this PR relies on additional classes created in the feature/dht-create PR.

very cool to see!

reviewing first thing tomorrow morning!

alright awesome! left 3 last comments to address. then we're good to merge 🚀 .

Made the suggested changes and fixes