Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Feb 18, 2024
1 parent 9204709 commit db9d6b8
Show file tree
Hide file tree
Showing 68 changed files with 3,225 additions and 17,276 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ npm-debug.log
Thumbs.db
server.log
.DS_Store
.venv
.log
/.idea
/.vscode
Expand Down
2 changes: 1 addition & 1 deletion assets/sw.js

Large diffs are not rendered by default.

Binary file modified assets/sw.js.gz
Binary file not shown.
20,031 changes: 2,990 additions & 17,041 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"mini-css-extract-plugin": "^0.9.0",
"moment": "^2.29.1",
"moment-locales-webpack-plugin": "^1.2.0",
"node-sass": "^4.14.1",
"optimize-css-assets-webpack-plugin": "^5.0.8",
"plotly.js": "^1.58.5",
"sass": "^1.38.0",
Expand Down
8 changes: 4 additions & 4 deletions src/Events/DatasetInferred.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class DatasetInferred implements Event
/**
* The dataset that was used to make the predictions.
*
* @var \Rubix\ML\Datasets\Dataset
* @var Dataset
*/
protected \Rubix\ML\Datasets\Dataset $dataset;
protected Dataset $dataset;

/**
* @param \Rubix\ML\Datasets\Dataset $dataset
* @param Dataset $dataset
*/
public function __construct(Dataset $dataset)
{
Expand All @@ -31,7 +31,7 @@ public function __construct(Dataset $dataset)
/**
* Return the dataset object.
*
* @return \Rubix\ML\Datasets\Dataset
* @return Dataset
*/
public function dataset() : Dataset
{
Expand Down
8 changes: 4 additions & 4 deletions src/Events/Failure.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ abstract class Failure implements Event
/**
* The exception.
*
* @var \Exception
* @var Exception
*/
protected \Exception $exception;
protected Exception $exception;

/**
* @param \Exception $exception
* @param Exception $exception
*/
public function __construct(Exception $exception)
{
Expand All @@ -31,7 +31,7 @@ public function __construct(Exception $exception)
/**
* Return the exception.
*
* @return \Exception
* @return Exception
*/
public function exception() : Exception
{
Expand Down
8 changes: 4 additions & 4 deletions src/Events/MemoryUsageUpdated.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class MemoryUsageUpdated implements Event
/**
* The memory model.
*
* @var \Rubix\Server\Models\Memory
* @var Memory
*/
protected \Rubix\Server\Models\Memory $memory;
protected Memory $memory;

/**
* @param \Rubix\Server\Models\Memory $memory
* @param Memory $memory
*/
public function __construct(Memory $memory)
{
Expand All @@ -31,7 +31,7 @@ public function __construct(Memory $memory)
/**
* Return the memory model.
*
* @return \Rubix\Server\Models\Memory
* @return Memory
*/
public function memory() : Memory
{
Expand Down
8 changes: 4 additions & 4 deletions src/Events/RequestReceived.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class RequestReceived implements Event
/**
* The request.
*
* @var \Psr\Http\Message\ServerRequestInterface
* @var ServerRequestInterface
*/
protected \Psr\Http\Message\ServerRequestInterface $request;
protected ServerRequestInterface $request;

/**
* @param \Psr\Http\Message\ServerRequestInterface $request
* @param ServerRequestInterface $request
*/
public function __construct(ServerRequestInterface $request)
{
Expand All @@ -31,7 +31,7 @@ public function __construct(ServerRequestInterface $request)
/**
* Return the request.
*
* @return \Psr\Http\Message\ServerRequestInterface
* @return ServerRequestInterface
*/
public function request() : ServerRequestInterface
{
Expand Down
8 changes: 4 additions & 4 deletions src/Events/ResponseSent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class ResponseSent implements Event
/**
* The response.
*
* @var \Psr\Http\Message\ResponseInterface
* @var ResponseInterface
*/
protected \Psr\Http\Message\ResponseInterface $response;
protected ResponseInterface $response;

/**
* @param \Psr\Http\Message\ResponseInterface $response
* @param ResponseInterface $response
*/
public function __construct(ResponseInterface $response)
{
Expand All @@ -31,7 +31,7 @@ public function __construct(ResponseInterface $response)
/**
* Return the response.
*
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*/
public function response() : ResponseInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQL/Objects/QueryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class QueryObject extends ObjectType
protected static ?self $instance = null;

/**
* @param \Rubix\Server\Models\Model $model
* @param \Rubix\Server\Models\Server $server
* @param Model $model
* @param Server $server
* @return self
*/
public static function singleton(Model $model, Server $server) : self
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQL/Scalars/FeatureScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function serialize($value)
* Parses an externally provided value (query variable) to use as an input
*
* @param mixed $value
* @throws \GraphQL\Error\Error
* @throws Error
* @return string|int|float
*/
public function parseValue($value)
Expand All @@ -61,7 +61,7 @@ public function parseValue($value)
/**
* Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.
*
* @param \GraphQL\Language\AST\Node $node
* @param Node $node
* @param mixed[]|null $variables
* @return string|int|float
*/
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQL/Scalars/LongIntegerScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function serialize($value)
* Parses an externally provided value (query variable) to use as an input
*
* @param mixed $value
* @throws \GraphQL\Error\Error
* @throws Error
* @return int
*/
public function parseValue($value)
Expand All @@ -58,7 +58,7 @@ public function parseValue($value)
/**
* Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.
*
* @param \GraphQL\Language\AST\Node $node
* @param Node $node
* @param mixed[]|null $variables
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion src/GraphQL/Scalars/PredictionScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function parseValue($value)
/**
* Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.
*
* @param \GraphQL\Language\AST\Node $node
* @param Node $node
* @param mixed[]|null $variables
* @return string|int|float
*/
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQL/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
class Schema extends BaseSchema
{
/**
* @param \Rubix\Server\Models\Model $model
* @param \Rubix\Server\Models\Server $server
* @param Model $model
* @param Server $server
*/
public function __construct(Model $model, Server $server)
{
Expand Down
10 changes: 5 additions & 5 deletions src/HTTP/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ class DashboardController extends JSONController
/**
* The server-sent events emitter.
*
* @var \Rubix\Server\Services\SSEChannel
* @var SSEChannel
*/
protected \Rubix\Server\Services\SSEChannel $channel;
protected SSEChannel $channel;

/**
* @param \Rubix\Server\Services\SSEChannel $channel
* @param SSEChannel $channel
*/
public function __construct(SSEChannel $channel)
{
Expand All @@ -41,8 +41,8 @@ public function routes() : array
/**
* Attach the event steam to an event source request.
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @return \Rubix\Server\HTTP\Responses\EventStream
* @param ServerRequestInterface $request
* @return EventStream
*/
public function connectEventStream(ServerRequestInterface $request) : EventStream
{
Expand Down
18 changes: 9 additions & 9 deletions src/HTTP/Controllers/GraphQLController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ class GraphQLController extends JSONController
/**
* The GraphQL schema.
*
* @var \Rubix\Server\GraphQL\Schema
* @var Schema
*/
protected \Rubix\Server\GraphQL\Schema $schema;
protected Schema $schema;

/**
* The promise adapter.
*
* @var \GraphQL\Executor\Promise\PromiseAdapter
* @var PromiseAdapter
*/
protected \GraphQL\Executor\Promise\PromiseAdapter $adapter;
protected PromiseAdapter $adapter;

/**
* @param \Rubix\Server\GraphQL\Schema $schema
* @param \GraphQL\Executor\Promise\PromiseAdapter $adapter
* @param Schema $schema
* @param PromiseAdapter $adapter
*/
public function __construct(Schema $schema, PromiseAdapter $adapter)
{
Expand Down Expand Up @@ -62,8 +62,8 @@ public function routes() : array
}

/**
* @param \GraphQL\Executor\ExecutionResult $result
* @return \Rubix\Server\HTTP\Responses\Success
* @param ExecutionResult $result
* @return Success
*/
public function respondWithResult(ExecutionResult $result) : Success
{
Expand All @@ -73,7 +73,7 @@ public function respondWithResult(ExecutionResult $result) : Success
/**
* Handle a Graph QL query.
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @param ServerRequestInterface $request
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
*/
public function __invoke(ServerRequestInterface $request)
Expand Down
8 changes: 4 additions & 4 deletions src/HTTP/Controllers/JSONController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ abstract class JSONController extends Controller
/**
* Respond with bad request.
*
* @param \Exception $exception
* @return \Rubix\Server\HTTP\Responses\BadRequest
* @param Exception $exception
* @return BadRequest
*/
public function respondWithBadRequest(Exception $exception) : BadRequest
{
Expand All @@ -31,8 +31,8 @@ public function respondWithBadRequest(Exception $exception) : BadRequest
/**
* Respond with unprocessable entity.
*
* @param \Exception $exception
* @return \Rubix\Server\HTTP\Responses\UnprocessableEntity
* @param Exception $exception
* @return UnprocessableEntity
*/
public function respondWithUnprocessable(Exception $exception) : UnprocessableEntity
{
Expand Down
14 changes: 7 additions & 7 deletions src/HTTP/Controllers/ModelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ class ModelController extends JSONController
/**
* The model model.
*
* @var \Rubix\Server\Models\Model
* @var Model
*/
protected \Rubix\Server\Models\Model $model;
protected Model $model;

/**
* @param \Rubix\Server\Models\Model $model
* @param Model $model
*/
public function __construct(Model $model)
{
Expand Down Expand Up @@ -80,7 +80,7 @@ public function routes() : array
/**
* Handle the request and return a response or a deferred response.
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @param ServerRequestInterface $request
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
*/
public function getModel(ServerRequestInterface $request)
Expand All @@ -95,7 +95,7 @@ public function getModel(ServerRequestInterface $request)
/**
* Handle the request and return a response or a deferred response.
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @param ServerRequestInterface $request
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
*/
public function predict(ServerRequestInterface $request)
Expand Down Expand Up @@ -129,7 +129,7 @@ public function predict(ServerRequestInterface $request)
/**
* Handle the request and return a response or a deferred response.
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @param ServerRequestInterface $request
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
*/
public function proba(ServerRequestInterface $request)
Expand Down Expand Up @@ -163,7 +163,7 @@ public function proba(ServerRequestInterface $request)
/**
* Handle the request and return a response or a deferred response.
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @param ServerRequestInterface $request
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
*/
public function score(ServerRequestInterface $request)
Expand Down
8 changes: 4 additions & 4 deletions src/HTTP/Controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ class ServerController extends JSONController
/**
* The server model.
*
* @var \Rubix\Server\Models\Server
* @var Server
*/
protected \Rubix\Server\Models\Server $server;
protected Server $server;

/**
* @param \Rubix\Server\Models\Server $server
* @param Server $server
*/
public function __construct(Server $server)
{
Expand All @@ -41,7 +41,7 @@ public function routes() : array
/**
* Handle the request and return a response or a deferred response.
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @param ServerRequestInterface $request
* @return \Psr\Http\Message\ResponseInterface|\React\Promise\PromiseInterface
*/
public function getServer(ServerRequestInterface $request)
Expand Down
Loading

0 comments on commit db9d6b8

Please sign in to comment.