Skip to content

Commit db9d6b8

Browse files
committed
Fix
1 parent 9204709 commit db9d6b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3225
-17276
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ npm-debug.log
88
Thumbs.db
99
server.log
1010
.DS_Store
11+
.venv
1112
.log
1213
/.idea
1314
/.vscode

assets/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/sw.js.gz

34 Bytes
Binary file not shown.

package-lock.json

Lines changed: 2990 additions & 17041 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"mini-css-extract-plugin": "^0.9.0",
3838
"moment": "^2.29.1",
3939
"moment-locales-webpack-plugin": "^1.2.0",
40-
"node-sass": "^4.14.1",
4140
"optimize-css-assets-webpack-plugin": "^5.0.8",
4241
"plotly.js": "^1.58.5",
4342
"sass": "^1.38.0",

src/Events/DatasetInferred.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ class DatasetInferred implements Event
1616
/**
1717
* The dataset that was used to make the predictions.
1818
*
19-
* @var \Rubix\ML\Datasets\Dataset
19+
* @var Dataset
2020
*/
21-
protected \Rubix\ML\Datasets\Dataset $dataset;
21+
protected Dataset $dataset;
2222

2323
/**
24-
* @param \Rubix\ML\Datasets\Dataset $dataset
24+
* @param Dataset $dataset
2525
*/
2626
public function __construct(Dataset $dataset)
2727
{
@@ -31,7 +31,7 @@ public function __construct(Dataset $dataset)
3131
/**
3232
* Return the dataset object.
3333
*
34-
* @return \Rubix\ML\Datasets\Dataset
34+
* @return Dataset
3535
*/
3636
public function dataset() : Dataset
3737
{

src/Events/Failure.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ abstract class Failure implements Event
1616
/**
1717
* The exception.
1818
*
19-
* @var \Exception
19+
* @var Exception
2020
*/
21-
protected \Exception $exception;
21+
protected Exception $exception;
2222

2323
/**
24-
* @param \Exception $exception
24+
* @param Exception $exception
2525
*/
2626
public function __construct(Exception $exception)
2727
{
@@ -31,7 +31,7 @@ public function __construct(Exception $exception)
3131
/**
3232
* Return the exception.
3333
*
34-
* @return \Exception
34+
* @return Exception
3535
*/
3636
public function exception() : Exception
3737
{

src/Events/MemoryUsageUpdated.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ class MemoryUsageUpdated implements Event
1616
/**
1717
* The memory model.
1818
*
19-
* @var \Rubix\Server\Models\Memory
19+
* @var Memory
2020
*/
21-
protected \Rubix\Server\Models\Memory $memory;
21+
protected Memory $memory;
2222

2323
/**
24-
* @param \Rubix\Server\Models\Memory $memory
24+
* @param Memory $memory
2525
*/
2626
public function __construct(Memory $memory)
2727
{
@@ -31,7 +31,7 @@ public function __construct(Memory $memory)
3131
/**
3232
* Return the memory model.
3333
*
34-
* @return \Rubix\Server\Models\Memory
34+
* @return Memory
3535
*/
3636
public function memory() : Memory
3737
{

src/Events/RequestReceived.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ class RequestReceived implements Event
1616
/**
1717
* The request.
1818
*
19-
* @var \Psr\Http\Message\ServerRequestInterface
19+
* @var ServerRequestInterface
2020
*/
21-
protected \Psr\Http\Message\ServerRequestInterface $request;
21+
protected ServerRequestInterface $request;
2222

2323
/**
24-
* @param \Psr\Http\Message\ServerRequestInterface $request
24+
* @param ServerRequestInterface $request
2525
*/
2626
public function __construct(ServerRequestInterface $request)
2727
{
@@ -31,7 +31,7 @@ public function __construct(ServerRequestInterface $request)
3131
/**
3232
* Return the request.
3333
*
34-
* @return \Psr\Http\Message\ServerRequestInterface
34+
* @return ServerRequestInterface
3535
*/
3636
public function request() : ServerRequestInterface
3737
{

src/Events/ResponseSent.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ class ResponseSent implements Event
1616
/**
1717
* The response.
1818
*
19-
* @var \Psr\Http\Message\ResponseInterface
19+
* @var ResponseInterface
2020
*/
21-
protected \Psr\Http\Message\ResponseInterface $response;
21+
protected ResponseInterface $response;
2222

2323
/**
24-
* @param \Psr\Http\Message\ResponseInterface $response
24+
* @param ResponseInterface $response
2525
*/
2626
public function __construct(ResponseInterface $response)
2727
{
@@ -31,7 +31,7 @@ public function __construct(ResponseInterface $response)
3131
/**
3232
* Return the response.
3333
*
34-
* @return \Psr\Http\Message\ResponseInterface
34+
* @return ResponseInterface
3535
*/
3636
public function response() : ResponseInterface
3737
{

src/GraphQL/Objects/QueryObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class QueryObject extends ObjectType
1616
protected static ?self $instance = null;
1717

1818
/**
19-
* @param \Rubix\Server\Models\Model $model
20-
* @param \Rubix\Server\Models\Server $server
19+
* @param Model $model
20+
* @param Server $server
2121
* @return self
2222
*/
2323
public static function singleton(Model $model, Server $server) : self

src/GraphQL/Scalars/FeatureScalar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function serialize($value)
4646
* Parses an externally provided value (query variable) to use as an input
4747
*
4848
* @param mixed $value
49-
* @throws \GraphQL\Error\Error
49+
* @throws Error
5050
* @return string|int|float
5151
*/
5252
public function parseValue($value)
@@ -61,7 +61,7 @@ public function parseValue($value)
6161
/**
6262
* Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.
6363
*
64-
* @param \GraphQL\Language\AST\Node $node
64+
* @param Node $node
6565
* @param mixed[]|null $variables
6666
* @return string|int|float
6767
*/

src/GraphQL/Scalars/LongIntegerScalar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function serialize($value)
4343
* Parses an externally provided value (query variable) to use as an input
4444
*
4545
* @param mixed $value
46-
* @throws \GraphQL\Error\Error
46+
* @throws Error
4747
* @return int
4848
*/
4949
public function parseValue($value)
@@ -58,7 +58,7 @@ public function parseValue($value)
5858
/**
5959
* Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.
6060
*
61-
* @param \GraphQL\Language\AST\Node $node
61+
* @param Node $node
6262
* @param mixed[]|null $variables
6363
* @return mixed
6464
*/

src/GraphQL/Scalars/PredictionScalar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function parseValue($value)
6060
/**
6161
* Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.
6262
*
63-
* @param \GraphQL\Language\AST\Node $node
63+
* @param Node $node
6464
* @param mixed[]|null $variables
6565
* @return string|int|float
6666
*/

src/GraphQL/Schema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
class Schema extends BaseSchema
1212
{
1313
/**
14-
* @param \Rubix\Server\Models\Model $model
15-
* @param \Rubix\Server\Models\Server $server
14+
* @param Model $model
15+
* @param Server $server
1616
*/
1717
public function __construct(Model $model, Server $server)
1818
{

src/HTTP/Controllers/DashboardController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class DashboardController extends JSONController
1212
/**
1313
* The server-sent events emitter.
1414
*
15-
* @var \Rubix\Server\Services\SSEChannel
15+
* @var SSEChannel
1616
*/
17-
protected \Rubix\Server\Services\SSEChannel $channel;
17+
protected SSEChannel $channel;
1818

1919
/**
20-
* @param \Rubix\Server\Services\SSEChannel $channel
20+
* @param SSEChannel $channel
2121
*/
2222
public function __construct(SSEChannel $channel)
2323
{
@@ -41,8 +41,8 @@ public function routes() : array
4141
/**
4242
* Attach the event steam to an event source request.
4343
*
44-
* @param \Psr\Http\Message\ServerRequestInterface $request
45-
* @return \Rubix\Server\HTTP\Responses\EventStream
44+
* @param ServerRequestInterface $request
45+
* @return EventStream
4646
*/
4747
public function connectEventStream(ServerRequestInterface $request) : EventStream
4848
{

src/HTTP/Controllers/GraphQLController.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ class GraphQLController extends JSONController
2121
/**
2222
* The GraphQL schema.
2323
*
24-
* @var \Rubix\Server\GraphQL\Schema
24+
* @var Schema
2525
*/
26-
protected \Rubix\Server\GraphQL\Schema $schema;
26+
protected Schema $schema;
2727

2828
/**
2929
* The promise adapter.
3030
*
31-
* @var \GraphQL\Executor\Promise\PromiseAdapter
31+
* @var PromiseAdapter
3232
*/
33-
protected \GraphQL\Executor\Promise\PromiseAdapter $adapter;
33+
protected PromiseAdapter $adapter;
3434

3535
/**
36-
* @param \Rubix\Server\GraphQL\Schema $schema
37-
* @param \GraphQL\Executor\Promise\PromiseAdapter $adapter
36+
* @param Schema $schema
37+
* @param PromiseAdapter $adapter
3838
*/
3939
public function __construct(Schema $schema, PromiseAdapter $adapter)
4040
{
@@ -62,8 +62,8 @@ public function routes() : array
6262
}
6363

6464
/**
65-
* @param \GraphQL\Executor\ExecutionResult $result
66-
* @return \Rubix\Server\HTTP\Responses\Success
65+
* @param ExecutionResult $result
66+
* @return Success
6767
*/
6868
public function respondWithResult(ExecutionResult $result) : Success
6969
{
@@ -73,7 +73,7 @@ public function respondWithResult(ExecutionResult $result) : Success
7373
/**
7474
* Handle a Graph QL query.
7575
*
76-
* @param \Psr\Http\Message\ServerRequestInterface $request
76+
* @param ServerRequestInterface $request
7777
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
7878
*/
7979
public function __invoke(ServerRequestInterface $request)

src/HTTP/Controllers/JSONController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ abstract class JSONController extends Controller
1616
/**
1717
* Respond with bad request.
1818
*
19-
* @param \Exception $exception
20-
* @return \Rubix\Server\HTTP\Responses\BadRequest
19+
* @param Exception $exception
20+
* @return BadRequest
2121
*/
2222
public function respondWithBadRequest(Exception $exception) : BadRequest
2323
{
@@ -31,8 +31,8 @@ public function respondWithBadRequest(Exception $exception) : BadRequest
3131
/**
3232
* Respond with unprocessable entity.
3333
*
34-
* @param \Exception $exception
35-
* @return \Rubix\Server\HTTP\Responses\UnprocessableEntity
34+
* @param Exception $exception
35+
* @return UnprocessableEntity
3636
*/
3737
public function respondWithUnprocessable(Exception $exception) : UnprocessableEntity
3838
{

src/HTTP/Controllers/ModelController.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ class ModelController extends JSONController
1919
/**
2020
* The model model.
2121
*
22-
* @var \Rubix\Server\Models\Model
22+
* @var Model
2323
*/
24-
protected \Rubix\Server\Models\Model $model;
24+
protected Model $model;
2525

2626
/**
27-
* @param \Rubix\Server\Models\Model $model
27+
* @param Model $model
2828
*/
2929
public function __construct(Model $model)
3030
{
@@ -80,7 +80,7 @@ public function routes() : array
8080
/**
8181
* Handle the request and return a response or a deferred response.
8282
*
83-
* @param \Psr\Http\Message\ServerRequestInterface $request
83+
* @param ServerRequestInterface $request
8484
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
8585
*/
8686
public function getModel(ServerRequestInterface $request)
@@ -95,7 +95,7 @@ public function getModel(ServerRequestInterface $request)
9595
/**
9696
* Handle the request and return a response or a deferred response.
9797
*
98-
* @param \Psr\Http\Message\ServerRequestInterface $request
98+
* @param ServerRequestInterface $request
9999
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
100100
*/
101101
public function predict(ServerRequestInterface $request)
@@ -129,7 +129,7 @@ public function predict(ServerRequestInterface $request)
129129
/**
130130
* Handle the request and return a response or a deferred response.
131131
*
132-
* @param \Psr\Http\Message\ServerRequestInterface $request
132+
* @param ServerRequestInterface $request
133133
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
134134
*/
135135
public function proba(ServerRequestInterface $request)
@@ -163,7 +163,7 @@ public function proba(ServerRequestInterface $request)
163163
/**
164164
* Handle the request and return a response or a deferred response.
165165
*
166-
* @param \Psr\Http\Message\ServerRequestInterface $request
166+
* @param ServerRequestInterface $request
167167
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
168168
*/
169169
public function score(ServerRequestInterface $request)

src/HTTP/Controllers/ServerController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class ServerController extends JSONController
1212
/**
1313
* The server model.
1414
*
15-
* @var \Rubix\Server\Models\Server
15+
* @var Server
1616
*/
17-
protected \Rubix\Server\Models\Server $server;
17+
protected Server $server;
1818

1919
/**
20-
* @param \Rubix\Server\Models\Server $server
20+
* @param Server $server
2121
*/
2222
public function __construct(Server $server)
2323
{
@@ -41,7 +41,7 @@ public function routes() : array
4141
/**
4242
* Handle the request and return a response or a deferred response.
4343
*
44-
* @param \Psr\Http\Message\ServerRequestInterface $request
44+
* @param ServerRequestInterface $request
4545
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
4646
*/
4747
public function getServer(ServerRequestInterface $request)

0 commit comments

Comments
 (0)