messages list |
|---|
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Introduction): A common message handler will simply rebroadcast the message to the other subscribers with ____ method.\nOptions:\nA) create\nB) rebroadcast!\nC) max\nD) mapping\nReply with the letter of the correc... |
[
{
"role": "user",
"content": "In the Amber docs section '`amber db`', complete this statement: The ____ or `db` command is one of the most common command that you will be operating."
},
{
"role": "assistant",
"content": "The missing term is database."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Introduction', complete this statement: A common message handler will simply rebroadcast the message to the other subscribers with ____ method."
},
{
"role": "assistant",
"content": "The missing term is rebroadcast!."
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Dockerfile): It starts from the official ____ docker image."
},
{
"role": "assistant",
"content": "crystallang/crystal:{version}"
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Create a single connection to the server', complete this statement: Place the route that was created on the server side in the ____ as the endpoint to which the front end will connect to."
},
{
"role": "assistant",
"content": "The missing ... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Working with Views): (Kilt will work with ____ and `temel` as well, but they haven't been tested in amber, so your experience may vary.) Kilt automatically selects the templating engine based on the extension of t... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Methods and Actions): Controllers are defined as such: As an example, if a user goes to ____ in your application to add a new client, Amber will create an instance of **ApiController** and call it's **index** meth... |
[
{
"role": "user",
"content": "In the Amber docs section 'Full Example:', complete this statement: Set the article's ____ flag to be `false` 1."
},
{
"role": "assistant",
"content": "The missing term is archived."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Validation API', complete this statement: If valid, returns a hash of validated params otherwise raises ____ which contains the failed validaton error messages."
},
{
"role": "assistant",
"content": "The missing term is Validator::Validati... |
[
{
"role": "user",
"content": "In the Amber docs section 'Environments', complete this statement: For example if ____ the framework will expect a `config/environments/staging.yml` file to exist and attempt to load its configurations into the application."
},
{
"role": "assistant",
"content": "The... |
[
{
"role": "user",
"content": "In the Amber docs section 'Working with Views', complete this statement: Views are rendered with the amber ____ macro, which uses [Kilt](http://github.com/jeromegn/kilt)."
},
{
"role": "assistant",
"content": "The missing term is render."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Tips and Tricks for debugging Crystal applications', complete this statement: ____ does not show data for variables in crystal yet, see issue [\\#4457](https://github.com/crystal-lang/crystal/issues/4457) Fully debugging Crystal applications is not su... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Amber Testing): The ____ test directory holds system tests, which are used for full browser testing of your application."
},
{
"role": "assistant",
"content": "system"
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (docker-compose.yml): The ____ file will allow you to easily get up and running."
},
{
"role": "assistant",
"content": "docker-compose.yml"
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Note about Amber Encryption Key): This is added to ____ by default as it should never be added to your repo."
},
{
"role": "assistant",
"content": "gitignore"
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (1. Install dependencies): If you already have ____, `amber`, and a database installed, you can [skip this step](#2.-generate-a-new-amber-application).\nOptions:\nA) /spec\nB) settings.cr\nC) {project_name}/config/... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Validation API): ____ Setup validation rules to be performed.\nOptions:\nA) .to_s\nB) #validation\nC) slang\nD) scope\nReply with the letter of the correct option."
},
{
"role": "assistant",
"content":... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (The Heroku Procfile): To deploy your app to heroku you're going to need a ____.\nOptions:\nA) Procfile\nB) AMBER_ENCRYPTION_KEY\nC) Amber::WebSockets::ClientSocket\nD) .group\nReply with the letter of the correct ... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Mappings): If that is not true, you should pass ____ as the second argument and override the `::field_count` method to represent the correct field count."
},
{
"role": "assistant",
"content": "false"
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Create Procfile', complete this statement: Create a ____ at the root of your Amber application and add the following: The Amber buildpack takes care of compiling the project for you."
},
{
"role": "assistant",
"content": "The missing term ... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Working with Views): [Amber Generators](https://docs.amberframework.org/amber/cli/generate) support ____ and `ecr` templates using the `-t` option when creating a new project."
},
{
"role": "assistant",
"content": "sl... |
[
{
"role": "user",
"content": "In the Amber docs section 'Amber Testing', complete this statement: The first time you generate an Amber application using `amber new your_app_name` a ____ directory is generated."
},
{
"role": "assistant",
"content": "The missing term is spec."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Where', complete this statement: ____ retrieves everything \\(only at the beginning; creates empty request\\)."
},
{
"role": "assistant",
"content": "The missing term is all."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section '1.2 Install a database', complete this statement: Amber works with ____ \\(default\\), `mysql`, or `sqlite`."
},
{
"role": "assistant",
"content": "The missing term is postgresql."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Add A Jennifer Initializer to Configuration', complete this statement: To begin, you will need to create a ____ file in your project's `config` directory."
},
{
"role": "assistant",
"content": "The missing term is config/jennifer.cr."
}
... |
[
{
"role": "user",
"content": "In the Amber docs section 'Distinct', complete this statement: ____ can only be at the end of the query chain as it results in a direct database query."
},
{
"role": "assistant",
"content": "The missing term is distinct."
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Set Encryption Key): Amber adds it by default to your ____ file."
},
{
"role": "assistant",
"content": ".gitignore"
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Docker', complete this statement: When you generate a new Amber project, we include ____ and `docker-compose.yml` files to simplify development."
},
{
"role": "assistant",
"content": "The missing term is Dockerfile."
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Introduction): * ____ - Called when a user leaves the channel.\nOptions:\nA) spec_helper.cr\nB) shard.yml\nC) handle_message\nD) handle_leave\nReply with the letter of the correct option."
},
{
"role": "as... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Custom): Here you don't need to setup ____, however the requested path requires a `.json` extension, by example `/json_api.json` For a full CRUD example, see [JSON API full CRUD](../examples/json-api-full-crud.md)."
},
{
... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Where): The ____ method accepts a block which represents the where clause of the query statement.\nOptions:\nA) --release\nB) build\nC) where\nD) SMTP_URL\nReply with the letter of the correct option."
},
{
... |
[
{
"role": "user",
"content": "In the Amber docs section 'Send messages from controllers \\(or anywhere else\\)', complete this statement: ____ provides a public class method `broadcast` for publishing messages to all subscribers of a topic from within controllers or anywhere else in your application."
},
... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (FormBuilder in Plain Crystal Code): When using the ____ method in plain Crystal code, the `<<` syntax is required to add the generated field HTML to the form HTML string OR you can use the lower level `String.build` instead:"
}... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Resources): In order to use resourceful routing for a particular controller, your controller _must_ define and implement all seven standard actions: ____, `edit`, `new`, `show`, `create`, `destroy`, and `update`."
},
{
"r... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (The Flash): Make sure the Flash, Session and CSRF pipelines are enabled in your ____ file and in the order that the scaffolding renders them.\nOptions:\nA) routes.cr\nB) #{{relation_name}}_query\nC) config/initial... |
[
{
"role": "user",
"content": "In the Amber docs section 'Encrypt unencrypted environment settings', complete this statement: `amber encrypt development` will encrypt ____ using same keys as above."
},
{
"role": "assistant",
"content": "The missing term is config/environments/development.yml."
... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Validation API): ____ Input must be valid otherwise raises an error.\nOptions:\nA) index\nB) shards.yml\nC) #validate!\nD) src/controllers/admin\nReply with the letter of the correct option."
},
{
"role": ... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Where): You can chain several ____ methods together and they will be concatenated using `AND`.\nOptions:\nA) SELECT\nB) config/\nC) chromedriver\nD) where\nReply with the letter of the correct option."
},
{
... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (How are messages broadcasted?): Whenever a user sends a message that is broadcasted through the JavaScript ____ function, the `handle_message` method is invoked."
},
{
"role": "assistant",
"content": "channel.push"
... |
[
{
"role": "user",
"content": "In the Amber docs section 'docker-compose.yml', complete this statement: The ____ file will allow you to easily get up and running."
},
{
"role": "assistant",
"content": "The missing term is docker-compose.yml."
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Can't build my amber project): Then, ensure to install all development packages for ____ `git`, `yaml`, `libevent`, and `sqlite3`, `postgresql`, or `mysql`."
},
{
"role": "assistant",
"content": "openssl"
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Select): Raw SQL for ____ clause can be passed into `.select` method.\nOptions:\nA) destroy\nB) .amber.yml\nC) exec\nD) SELECT\nReply with the letter of the correct option."
},
{
"role": "assistant",
"... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Where): As mentioned, after declaring model attributes, you can use their names inside of a block: ____ if it is for the current table and `ModelName._field_name` if for another model."
},
{
"role": "assistant",
"cont... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Introduction): Channels define 3 public methods that can be used: * ____ - Called when a user joins a channel."
},
{
"role": "assistant",
"content": "handle_joined"
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Configuration', complete this statement: Every Amber project has a ____ directory."
},
{
"role": "assistant",
"content": "The missing term is {project_name}/config."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Define Buildpack', complete this statement: Create a file named ____ in the root of your project and with this: ```text https://github.com/amberframework/heroku-buildpack-amber.git"
},
{
"role": "assistant",
"content": "The missing term is... |
[
{
"role": "user",
"content": "In the Amber docs section 'Bootstrap an Application', complete this statement: Change your current directory to ____, if that was the path you chose:"
},
{
"role": "assistant",
"content": "The missing term is weblog."
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Installation): Add this to your application's ____ file: Then require it within the `config/application.cr` file:"
},
{
"role": "assistant",
"content": "shard.yml"
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Application.cr', complete this statement: The main entry point for an Amber application is ____."
},
{
"role": "assistant",
"content": "The missing term is config/application.cr."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Define a Mailer', complete this statement: You may use the ____ helper to create the body of the email."
},
{
"role": "assistant",
"content": "The missing term is render."
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Transaction): To rollback a transaction, raise ____ exception.\nOptions:\nA) :status\nB) --back\nC) /app/local\nD) DB::Rollback\nReply with the letter of the correct option."
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Bootstrap an Application): Change your current directory to ____, if that was the path you chose:\nOptions:\nA) index\nB) chat_room:\nC) weblog\nD) pets\nReply with the letter of the correct option."
},
{
... |
[
{
"role": "user",
"content": "In the Amber docs section 'Methods and Actions', complete this statement: A controller is a Crystal class which inherits from ____and has methods just like any other class."
},
{
"role": "assistant",
"content": "The missing term is ApplicationController."
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Amber Testing): * ____ * `/controllers` * `/system` * `/models` * `/integrations` * `/mailers` The `helpers`, `mailers`, and `models` directories are meant to hold tests for view helpers, mailers, and models, respectively."
},
... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Eager load): Also you can extract the first entity via ____.\nOptions:\nA) #validation\nB) first\nC) :status\nD) src/views/layouts/photos.ecr\nReply with the letter of the correct option."
},
{
"role": "as... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Finding Layouts): For example, rendering actions from the PhotosController class will use ____."
},
{
"role": "assistant",
"content": "src/views/layouts/photos.ecr"
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Introduction): An ____ instance has both `cookies` and `session` getters and are available from within the `on_connect` method.\nOptions:\nA) Amber::WebSockets::ClientSocket\nB) {project_name}/config/environments\... |
[
{
"role": "user",
"content": "In the Amber docs section 'Rendering an Action's Template from Another Controller', complete this statement: If you want to render a template from an entirely different controller from the one that contains the action code, You can accomplish that with ____, which accepts the f... |
[
{
"role": "user",
"content": "In the Amber docs section 'Callbacks', complete this statement: The available macros for defining callbacks include: * ____ * `after_save` * `before_create` * `after_create` * `after_initialize` * `before_destroy` They accept method names."
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Join a channel): In the above example, ____ is the channel that was created on line 2 of the `ChatSocket` struct."
},
{
"role": "assistant",
"content": "chat_room"
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Note about Amber Encryption Key): When a new project is created the file ____ is created with a random key."
},
{
"role": "assistant",
"content": ".encryption_key"
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Joins): Also there are two shortcuts for left and right joins: > For now Jennifer provides manual aliasing as a second argument for ____ and automatic when using `#includes` and `#with` methods.\nOptions:\nA) AMBE... |
[
{
"role": "user",
"content": "In the Amber docs section 'Encrypted Environment Settings', complete this statement: It contains a ____ that is used to decrypt your encrypted environment settings."
},
{
"role": "assistant",
"content": "The missing term is secret_key_base."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Amber Testing', complete this statement: The ____ test directory holds system tests, which are used for full browser testing of your application."
},
{
"role": "assistant",
"content": "The missing term is system."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section '1.2 Install a database', complete this statement: By default, a new Amber application generates a ____ that can be used for this purpose."
},
{
"role": "assistant",
"content": "The missing term is docker-compose.yml."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Note about Amber Encryption Key', complete this statement: When a new project is created the file ____ is created with a random key."
},
{
"role": "assistant",
"content": "The missing term is .encryption_key."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'How to use CSRF with Ajax', complete this statement: To use CSRF with Ajax, simply call the ____ helper inside your controller and return it as part of a JSON object: In your Javascript, after getting the JSON object back, refresh your CSRF tag with t... |
[
{
"role": "user",
"content": "In the Amber docs section 'Introduction', complete this statement: Channels define 3 public methods that can be used: * ____ - Called when a user joins a channel."
},
{
"role": "assistant",
"content": "The missing term is handle_joined."
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Define Crystal Version): Create a file named ____ in the root of your project with the wanted crystal version:"
},
{
"role": "assistant",
"content": ".crystal-version"
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Create Procfile): Create a ____ at the root of your Amber application and add the following: The Amber buildpack takes care of compiling the project for you."
},
{
"role": "assistant",
"content": "Procfile"
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Define Buildpack): Create a file named ____ in the root of your project and with this: ```text https://github.com/amberframework/heroku-buildpack-amber.git\nOptions:\nA) .delete\nB) http://www.mycoolsite.com/page\... |
[
{
"role": "user",
"content": "In the Amber docs section 'Set Encryption Key', complete this statement: Ensure you first run: To be able to decrypt and use production environment you'll need to set `ENV[\"AMBER_ENCRYPTION_KEY\"]` to the value of your local projects ____ file."
},
{
"role": "assistant... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Methods and Actions): A controller is a Crystal class which inherits from ____and has methods just like any other class.\nOptions:\nA) crystal\nB) ApplicationController\nC) <repository>\nD) #remove_{{relation_name... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (7. Print hidden objects): You can unhide them using the ____ method and a temporary debugging variable, like this: This trick allows showing the `bar_hello_to_s` variable inside the debugger tool.\nOptions:\nA) .t... |
[
{
"role": "user",
"content": "In the Amber docs section 'Set Encryption Key', complete this statement: Copy the key from ____ and set it to env, like so:"
},
{
"role": "assistant",
"content": "The missing term is .encryption_key."
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Create Procfile): Create a ____ at the root of your Amber application and add the following: The Amber buildpack takes care of compiling the project for you.\nOptions:\nA) secret_key_base\nB) application_controlle... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Usage): The following field types are supported: - ____ - `:file` - `:hidden` - `:password` - `:radio` - `:select` - `:text` - `:textarea`\nOptions:\nA) --back\nB) bin/{your-app-name}\nC) secret_key_base\nD) :chec... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Where): ____ retrieves everything \\(only at the beginning; creates empty request\\).\nOptions:\nA) {environment}.enc\nB) .first\nC) .buildpacks\nD) all\nReply with the letter of the correct option."
},
{
... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Requirements): Then uncomment in ____: In order for the buildpack to work properly you should have a `shard.yml` file,as it is how it will detect that your app is a Crystal app.\nOptions:\nA) config/settings.cr\nB... |
[
{
"role": "user",
"content": "In the Amber docs section 'The `mailcatcher` container', complete this statement: If you generate mailers, it will configure the ____ to point to the mail catcher container."
},
{
"role": "assistant",
"content": "The missing term is SMTP_URL."
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Build and run your project): To compile your project use `shards build myapp`and run the executable with ____.\nOptions:\nA) has_many\nB) Profile.all\nC) bin/myapp\nD) spec\nReply with the letter of the correct op... |
[
{
"role": "user",
"content": "In the Amber docs section '`amber new`', complete this statement: An ____ configuration file is generated a long with the default application directory structure."
},
{
"role": "assistant",
"content": "The missing term is .amber.yml."
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Environments): Each Amber project ships with three default environments: * Development * Test * Production The files for each environment are found under ____.\nOptions:\nA) <repository>\nB) {project_name}/config/... |
[
{
"role": "user",
"content": "In the Amber docs section 'Encrypted Environment Settings', complete this statement: This file is added to ____ to avoid inclusion in version control."
},
{
"role": "assistant",
"content": "The missing term is .gitignore."
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (How do I access my custom settings?): In your application, you can access settings from your environment YAML files using the ____ Hash\nOptions:\nA) with\nB) .distinct\nC) api/index\nD) Amber.settings.secrets\nRe... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Eager load): To extract only some fields rather than entire objects, use ____: It returns an array of values if only one field was given, and an array of arrays if more."
},
{
"role": "assistant",
"content": "pluck"
... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Hello World): This recipe will help you to setup a `Hello World!` response in your ____ path.\nOptions:\nA) /hello\nB) _some_model_or_table_name__field_name\nC) index.ecr\nD) .gitignore\nReply with the letter of t... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Can't connect to database): Then, ensure your database is running and the ____ is well specified on `config/environments/{your-enviroment-file}.yml`, or on `DATABASE_URL` environment variable."
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (7. Print hidden objects): You can unhide them using the ____ method and a temporary debugging variable, like this: This trick allows showing the `bar_hello_to_s` variable inside the debugger tool."
},
{
"role": "assistant... |
[
{
"role": "user",
"content": "In the Amber docs section 'The Test Environment', complete this statement: By default every Amber application generates with three environments: ____, `test` and `production`."
},
{
"role": "assistant",
"content": "The missing term is development."
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Buttons): A ____ helper is available: Produces the following HTML For more complex forms, see section below."
},
{
"role": "assistant",
"content": "button_to"
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Eager load): To extract only some fields rather than entire objects, use ____: It returns an array of values if only one field was given, and an array of arrays if more.\nOptions:\nA) csrf_tag\nB) belongs_to\nC) p... |
[
{
"role": "user",
"content": "In the Amber docs section 'Build and run your project', complete this statement: To compile your project use `shards build myapp`and run the executable with ____."
},
{
"role": "assistant",
"content": "The missing term is bin/myapp."
}
] |
[
{
"role": "user",
"content": "In the Amber docs section 'Note about Amber Encryption Key', complete this statement: Keep track of the values of ____ or `ENV[AMBER_ENCRYPTION_KEY]`."
},
{
"role": "assistant",
"content": "The missing term is .encryption_key."
}
] |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Finding Layouts): For example, rendering actions from the PhotosController class will use ____.\nOptions:\nA) src/views/layouts/photos.ecr\nB) ./microsecond-blog\nC) DB::Rollback\nD) .group\nReply with the letter ... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (What happens when a user leaves?): The ____ method handles this in the channels class.\nOptions:\nA) :errors\nB) handle_leave\nC) config/jennifer.cr\nD) first\nReply with the letter of the correct option."
},
... |
[
{
"role": "user",
"content": "In the Amber docs section 'Environments', complete this statement: Each Amber project ships with three default environments: * Development * Test * Production The files for each environment are found under ____."
},
{
"role": "assistant",
"content": "The missing ter... |
[
{
"role": "user",
"content": "Choose the correct option to complete this Amber docs statement (Working with Views): Views are rendered with the amber ____ macro, which uses [Kilt](http://github.com/jeromegn/kilt).\nOptions:\nA) Amber::WebSockets::ClientSocket\nB) render\nC) where\nD) src/views/layouts/photo... |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (Define a Mailer): The mailer has the ability to set the ____, `to`, `cc`, `bcc`, and `subject` as well as both `text` and `html` body formats."
},
{
"role": "assistant",
"content": "from"
}
] |
[
{
"role": "user",
"content": "Fill in the blank from the Amber framework docs (What happens when a user joins?): The ____ method is invoked when a user lands on a web page that has a `new Amber.Socket` established through the JavaScript on it."
},
{
"role": "assistant",
"content": "handle_joined... |
Amber Framework Knowledge Pack (demo)
The demo knowledge pack dataset behind AgentC-Consulting/knowledge-packs: teach a small local model the Amber web framework (Crystal), and measure whether it learned anything with a before/after eval harness.
A knowledge pack compiles a body of expertise into curated sources, schema-validated
generated training JSONL, a contamination-guarded held-out eval set, and a JSON manifest.
This repo ships the exact training data and the two 50-item eval sets used for the measured
run on record (live-run/RESULTS.md).
What's here
data/train.jsonl 471 training pairs (mlx chat format: {"messages": [...]})
data/valid.jsonl 24 validation pairs
eval/memorization.jsonl 50 items (30 MC + 20 recall) — trained-fact probe
eval/heldout_sources.jsonl 50 items (30 MC + 20 recall) — overclaiming control
eval/stats.json generation stats (unit counts, split salt, seeds)
Generated deterministically (no model, no API) from
amberframework/docs @ 3648105: 336
heading-chunked source units, split before generation by
sha256(unit_id + "kp-amber-v1") into 262 train / 74 eval units. Cloze facts are
sentences containing exactly one blankable inline-code term; each train fact yields 3
pairs (2 cloze phrasings + 1 multiple-choice phrasing).
The two eval sets — read this before quoting numbers
memorizationprobes facts that ARE in the training data through question templates that never appear in training. It is a trained-fact probe measuring fact injection, not a source-held-out eval.heldout_sourcesdraws facts only from the 74 eval-split units, which contributed zero training examples (unit-ID exclusion + dedup of blanked sentences into train). It is the leakage/overclaiming control: a memorization-only adapter should NOT improve here. Semantic restatements of a fact worded differently inside a train unit cannot be fully excluded by these guards.
Measured on mlx-community/SmolLM-135M-Instruct-4bit (M1 Max, LoRA, lr 1e-4, 2000
iterations): recall of trained facts 1/20 → 11/20 at temp 0; the held-out-source control
stayed flat (9/50 → 7/50). Per-item reports (question, gold, full completion, verdict) are
checked in at
live-run/reports/.
The eval questions are synthetic and not hand-reviewed; treat all numbers as lab notes, and
run the harness yourself — the generator and scorer are in the repo
(live-run/).
The trained adapter these numbers were measured on is published at crimson-knight/SmolLM-135M-Instruct-4bit-amber-lora.
Quality ceiling (stated plainly)
Deterministic template generation tests memorization and lookup-like recall only — no conceptual synthesis, no troubleshooting judgment. The 135M 4-bit base model is floor-level capability; the signal is in the recall probes, not multiple choice.
Related reading on fact injection via LoRA: arXiv:2502.14502 (How Much Knowledge Can You Pack into a LoRA Adapter without Harming LLM?).
Sources & license
Condensed from the Amber Framework documentation
(amberframework/docs) with attribution. The Amber
framework itself is MIT; its docs repository carries no explicit LICENSE file (as of commit
3648105). The generated pairs, eval sets and tooling in this repo are MIT.
Built by the team at AgentC Consulting — https://agentc.consulting?ref=kp-dataset
- Downloads last month
- -