Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Put class directly in button without adding extra span\n" }, { "from": "human", "value": "module Documents.Receipt.View exposing (view)\n\nimport Html exposing (a, div, text, span)\nimport Html.Attributes exposing (href, target, class)\nimport Internationalization e...
elm
chosen
[ { "from": "system", "value": "Add json decoder for artist data\n" }, { "from": "human", "value": "module App where\n\nimport Html exposing (Html)\n\n\n-- MODEL\n\ntype alias Artist =\n { id: Int\n , name: String\n }\n\n\ntype alias Model =\n List Artist\n\n\ninit : Model\ninit =\n []\n\n\n-...
elm
chosen
[ { "from": "system", "value": "Add helper to get board by id\n" }, { "from": "human", "value": "module BoardHelpers exposing (..)\n\nimport Models exposing (..)\n\n\ngetBoardByStorageKey : List TrelloBoard -> String -> Maybe TrelloBoard\ngetBoardByStorageKey boards key =\n case getBoardIdBySto...
elm
chosen
[ { "from": "system", "value": "Change fission to be a generator\n" }, { "from": "human", "value": "module Random.Pcg.Interop exposing (fission)\n\n{-| Provides a function to create a PCG seed from a seed in the core library.\nThis is useful for library writers who need a splittable or most robust...
elm
chosen
[ { "from": "system", "value": "Change location hash to history API.\n" }, { "from": "human", "value": "module Router.Input where\n\nimport History\nimport Router.Action exposing (Action(..))\nimport Action as RootAction exposing (Action(..))\n\ninput : Signal RootAction.Action\ninput =\n Signal....
elm
chosen
[ { "from": "system", "value": "Remove all of the matrix specific/dependent code\n" }, { "from": "human", "value": "import Time exposing (Time,second)\nimport Html exposing (Html,table,tr,td)\nimport Html.Attributes exposing(style,height,width)\nimport Random\n\nimport Matrix exposing (Matrix)\n\n...
elm
chosen
[ { "from": "system", "value": "Make the font actually monospaced.\n" }, { "from": "human", "value": "module Styles exposing (styleString)\n\nstyleString = \"\"\"\nspan {\n background-color : #aaa;\n}\n\nmain {\n background-color : #DADADA;\n color : #333;\n}\n\n.selectedLine {\n background-co...
elm
chosen
[ { "from": "system", "value": ":+1: Add my first subscriptions app\n" }, { "from": "human", "value": "module App exposing (..)\n\nimport Html exposing (Html, button, div, program, text)\nimport Html.Events exposing (onClick)\n\n\n-- MODEL\n\n\ntype alias Model =\n Int\n\n\ninit : ( Model, Cmd ...
elm
chosen
[ { "from": "system", "value": "Fix accumulate test case description" }, { "from": "human", "value": "port module Main exposing (..)\n\nimport Test.Runner.Node exposing (run, TestProgram)\nimport Json.Encode exposing (Value)\nimport Test exposing (..)\nimport Expect\nimport Accumulate exposing (ac...
elm
chosen
[ { "from": "system", "value": "Remove logging of hash location\n" }, { "from": "human", "value": "module Parsing exposing (..)\n\n-- External Imports\n\nimport Navigation\nimport UrlParser exposing (Parser, (</>), map, int, oneOf, s, string)\nimport String\n\n\n-- Internal Imports\n\nimport Types...
elm
chosen
[ { "from": "system", "value": "Remove individual layers from the list\n" }, { "from": "human", "value": "import Html exposing (..)\nimport Html.Events exposing (onClick)\nimport StartApp\n\nmain =\n StartApp.start { model = model, view = view, update = update }\n\nmodel = [\"first\", \"second\"]...
elm
chosen
[ { "from": "system", "value": "Update to use assert instead of assertEqual on boolean tests\n" }, { "from": "human", "value": "module LeapTest where\n\n-- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up.\n\nimport LeapExample exposing (isLeap)\n\nimport ElmT...
elm
chosen
[ { "from": "system", "value": "Fix type of cell representation\n" }, { "from": "human", "value": "import Time exposing (Time,second)\nimport Html exposing (Html,text)\nimport Set exposing (Set)\n\n\n-- Model\ntype alias Location = (Int, Int)\n\n\ntype alias Model =\n { alive : List (Set Locati...
elm
chosen
[ { "from": "system", "value": "Add messaging for an empty jam\n" }, { "from": "human", "value": "module View exposing (root)\n\n\nimport Dict exposing (Dict)\nimport Html exposing (..)\nimport Html.App\nimport Html.Attributes exposing (..)\n\nimport Helpers\nimport Types exposing (..)\n\nimport P...
elm
chosen
[ { "from": "system", "value": "Hide Control if Entries list is empty\n" }, { "from": "human", "value": "module App.View exposing (..)\n\nimport Html exposing (..)\nimport Html.Attributes exposing (..)\n\nimport App.Types exposing (..)\nimport App.Input.View as Input\nimport App.Entries.View as En...
elm
chosen
[ { "from": "system", "value": "Update for new public API" }, { "from": "human", "value": "module Main where\n\nimport Test\nimport Text\nimport Graphics.Element exposing (..)\nimport ElmTest.Run as Run\nimport ElmTest.Runner.Element as ElementRunner\nimport ElmTest.Runner.String as StringRunner\...
elm
chosen
[ { "from": "system", "value": "Upgrade to new module syntax\n" }, { "from": "human", "value": "module Char.Extra where\n\n{-| Extra functions for working with characters.\n\n# Classification\n@docs isWhitespace\n\n-}\n\nimport String\nimport List\n\n{-| True for ASCII whitesapce characters `\\b\\...
elm
chosen
[ { "from": "system", "value": "Update test doc image to not use Svg.scene2d\n\nBeing replaced with more flexible Svg.relativeTo\n" }, { "from": "human", "value": "module HelloWorld exposing (..)\n\nimport Html exposing (Html)\nimport Svg exposing (Svg)\nimport OpenSolid.Core.Types exposing (..)\n...
elm
chosen
[ { "from": "system", "value": "Append the user input query to form the full search request\n" }, { "from": "human", "value": "module Update exposing\n ( init\n , update\n )\n\n-------------------------\n-- External dependencies\n-------------------------\nimport Http\nimport Json.Decode ...
elm
chosen
[ { "from": "system", "value": "Add links to About page" }, { "from": "human", "value": "module IV.View.AboutPage exposing (view)\n\nimport Html exposing (..)\nimport Html.Attributes exposing (..)\n\nimport IV.Msg exposing (Msg(..))\nimport IV.Pile.HtmlShorthand exposing (..)\nimport IV.View.Layou...
elm
chosen
[ { "from": "system", "value": "Fix weird behavior when parsing descriptions\n\n" }, { "from": "human", "value": "module Parser (toParseTree) where\n\nimport Tokenizer exposing (Token(..), toTokens)\n\n\ntype ParseTree\n = Node (Token, List ParseTree)\n | LeafNode Token\n\n\ntoParseTree : St...
elm
chosen
[ { "from": "system", "value": "Fix implementation so it only searches once/iteration\n" }, { "from": "human", "value": "module BinarySearch exposing (..)\n\nfindNumber : List Int -> Int -> Bool\nfindNumber numbers number =\n case numbers of\n [] -> False\n [n] ->\n let\n _ = De...
elm
chosen
[ { "from": "system", "value": "Add a spot for the style guide\n" }, { "from": "human", "value": "import Html exposing (..)\nimport Html.Attributes exposing (..)\nimport String\n\nimport Center\nimport TopBar\nimport Outline\n\n\nmain =\n div []\n [ TopBar.topBar \"docs\"\n , Center.markdow...
elm
chosen
[ { "from": "system", "value": "Add LOTS of function just to get groupWhile. So sorry.\n" }, { "from": "human", "value": "module Components.Decoder exposing (decoder)\n\nimport Json.Decode exposing (Decoder, list, andThen, succeed)\nimport Components.Model exposing (..)\nimport Component.Decoder\n...
elm
chosen
[ { "from": "system", "value": "Switch the order of two functions.\n" }, { "from": "human", "value": "\nmodule Json.Static where\n\nimport JavaScript as JS\nimport Native.Json as Native\n\nfromJSString = Native.recordFromJSString\nfromString s = Native.recordFromJSString (JS.fromString s)\n\ntoStr...
elm
chosen
[ { "from": "system", "value": "Define alias and print list\n\nWe need to define a type alias, and then define the data for printing.\n" }, { "from": "human", "value": "module Main exposing (..)\n\nimport Html exposing (text)\n\nfoo = [\"one\", \"two\", 2]\n\nmain =\n text <| foo\n" }, { ...
elm
chosen
[ { "from": "system", "value": "Improve \"Quick Start\" section a bit\n" }, { "from": "human", "value": "import Html exposing (..)\nimport Html.Attributes exposing (..)\nimport String\n\nimport Center\nimport TopBar\nimport Outline\n\n\nmain =\n div []\n [ TopBar.topBar \"docs\"\n , Center....
elm
chosen
[ { "from": "system", "value": "Remove unnecessary bootstrap row wrapper.\n" }, { "from": "human", "value": "module ViewHelpers exposing (..)\n\nimport Basics.Extra exposing ((=>))\nimport Html exposing (..)\nimport Html.Attributes as Attr exposing (href, id, placeholder, src, style, target, title...
elm
chosen
[ { "from": "system", "value": "Add blankline between case branches\n" }, { "from": "human", "value": "module Main (..) where\n\nratio =\n graphHeight\n / ( if range == 0 then\n 0.1\n else\n toFloat range\n )\n\n\nmyTuple =\n (,,,)\n ...
elm
chosen
[ { "from": "system", "value": "Use application operator in tests\n" }, { "from": "human", "value": "import Graphics.Element exposing (Element)\nimport ElmTest exposing (elementRunner, suite, test, assertEqual)\n\n(<-*->): Int -> Int -> Int\n(<-*->) x y =\n 2 * x + y\n\n(>*<): Int -> Int -> Int\n...
elm
chosen
[ { "from": "system", "value": "Adjust break intervals remain dimensions.\n" }, { "from": "human", "value": "module Views.BreakProgress exposing (view)\n\nimport Break\nimport Element exposing (Device)\nimport Element.Attributes as Attr\nimport Element.Events\nimport Setup.Msg as Msg\nimport Setup...
elm
chosen
[ { "from": "system", "value": "Use 'downs' instead of 'presses' for keyboard navigation\n" }, { "from": "human", "value": "module Presentation.Subscriptions exposing (presentationSubscriptions)\n\nimport Keyboard\nimport WebSocket\n\nimport Presentation.Types exposing (Model, Mode(..), Msg(..))\n...
elm
chosen
[ { "from": "system", "value": "Add render to exposed functions, hide toEntity" }, { "from": "human", "value": "module Graphics.ObjParser where\n\n{-| General types used in loading of OBJ files.\n\n@docs toModel, toEntity, emptyModel\n\n-}\n\nimport String\nimport Array\nimport Http\n\n\nimport M...
elm
chosen
[ { "from": "system", "value": "Add main to compete subapp for testing\n" }, { "from": "human", "value": "module IdeaFight.Compete exposing (Model, Msg, init, update, subscriptions, view)\n\nimport IdeaFight.Shuffle as Shuffle\n\nimport Html.App as App\nimport Html exposing (Html, text)\n\nimport ...
elm
chosen
[ { "from": "system", "value": "Use a more realistic try message\n" }, { "from": "human", "value": "import Markdown\nimport Message exposing (report)\n\nmain = report <| Markdown.toElement \"\"\"\n\n# Elm 0.15 alpha\n\nCheck out the change logs:\n\n * <a href=\"/blog/draft-announcement\" target=\...
elm
chosen
[ { "from": "system", "value": "Use correct register URL in client\n" }, { "from": "human", "value": "module Server.Update exposing (update)\n\nimport Http\nimport Task\nimport User\nimport Server.Json as Json\nimport Server.State exposing (..)\nimport Auth.State exposing (AuthCredentials)\n\n\nup...
elm
chosen
[ { "from": "system", "value": "Add more thorough tests for function/lambda arguments\n" }, { "from": "human", "value": "module AllSyntax where\n\nimport String\nimport Signal exposing (foldp, map)\nimport Json.Decode as Json\nimport List exposing (..)\n\n\nfn =\n \"XYZZY\"\n\n\nannotatedFn : S...
elm
chosen
[ { "from": "system", "value": "Use set instead of list for selected IDs.\n" }, { "from": "human", "value": "module Toolbox.Types (..) where\n\nimport Dict\n\n\ntype alias Ingredient =\n { name : String\n , value : Int\n , weight : Float\n , image : String\n , effects : List String\n }\n\n\n...
elm
chosen
[ { "from": "system", "value": "Make the search box shorter\n" }, { "from": "human", "value": "module Component.Package.Search (view) where\n\nimport Graphics.Element (Element)\nimport Html (..)\nimport Html.Attributes (..)\nimport Html.Events (..)\nimport LocalChannel as LC\nimport Markdown\n\n\n...
elm
chosen
[ { "from": "system", "value": "Use Bootstrap 4 cards for ingredient list layout.\n" }, { "from": "human", "value": "module Toolbox.Views (..) where\n\nimport Html exposing (..)\nimport Html.Attributes exposing (..)\nimport Toolbox.Action exposing (Action)\nimport Toolbox.Types exposing (Ingredien...
elm
chosen
[ { "from": "system", "value": "Sort list by date created\n" }, { "from": "human", "value": "module Views.Menu.List exposing (view)\n\nimport Data.Retro exposing (Id)\nimport EveryDict exposing (EveryDict)\nimport Html exposing (Html)\nimport Html.Attributes as Attr\nimport Html.Events as Event\ni...
elm
chosen
[ { "from": "system", "value": "Rearrange forest to think in nodes\n" }, { "from": "human", "value": "-- a partially ordered forest\nmodule IdeaFight.PartialForest exposing (Forest, empty, fromList, getNextPair, isEmpty)\n\ntype Forest a = Forest (List a)\n\nfromList : List a -> Forest a\nfromList...
elm
chosen
[ { "from": "system", "value": "Update Header style a bit...\n" }, { "from": "human", "value": "module Caldwell.Header.Styles exposing (css)\n\n-- Libraries\n\nimport Css exposing (..)\nimport Css.Elements\n exposing\n ( header\n , span\n )\n\n\n-- Source\n\nimport Caldwell...
elm
chosen
[ { "from": "system", "value": "Change link to frontpage to avoid reloading app\n" }, { "from": "human", "value": "module App.View exposing (view)\n\nimport Html exposing (Html, div, text, a)\nimport Html.Attributes exposing (class, href)\nimport Components.View\nimport Detail.View\nimport App.Mod...
elm
chosen
[ { "from": "system", "value": "Fix premature player change bug\n" }, { "from": "human", "value": "module Update exposing (update)\n\nimport Action exposing (Action(..))\nimport Model exposing (Model)\nimport List exposing (indexedMap)\nimport Types exposing (Piece(..), Player(..))\n\nupdate : Act...
elm
chosen
[ { "from": "system", "value": "Add styles to events page\n" }, { "from": "human", "value": "module Events.EventItem exposing (view)\n\nimport Msgs exposing (Msg)\nimport Html exposing (..)\nimport Html.Attributes exposing (..)\n\nimport Models exposing (EventItem)\nimport Routing exposing (eventP...
elm
chosen
[ { "from": "system", "value": "Refactor enumerating a list into a separate function.\n" }, { "from": "human", "value": "module Toolbox.Action (..) where\n\nimport Dict\nimport Effects exposing (Effects)\nimport Toolbox.Types exposing (Model, Response)\n\n\ntype Action\n = DownloadedIngredients (...
elm
chosen
[ { "from": "system", "value": "Add grid to display page\n" }, { "from": "human", "value": "module Display (..) where\n\nimport Html exposing (Html, div, h1)\nimport Mouse\n\n\nview : Html\nview =\n h1 [] [ Html.text \"Welcome to Tic Tac Toe\"]\n\nmain =\n view\n" }, { "from": "gpt", ...
elm
chosen
[ { "from": "system", "value": "Make sure helper text displays again\n" }, { "from": "human", "value": "module Internal.TextField.HelperText.Implementation exposing\n ( Property\n , helperText\n , persistent\n , validationMsg\n )\n\nimport Html exposing (Html)\nimport Internal.Optio...
elm
chosen
[ { "from": "system", "value": "Handle url redirect for login page\n\nNOTE: If you don't handle the case where you're already on the login\npage, super bad things seem to happen w/r/t CPU usage :)\n" }, { "from": "human", "value": "module Main exposing (..)\n\nimport Navigation\nimport View\nimpor...
elm
chosen
[ { "from": "system", "value": "Use type alias rather than type for PlantId\n" }, { "from": "human", "value": "module Models exposing (..)\n\n-- Material\n\nimport Material\n\n\ntype alias Model =\n { mdl : Material.Model\n , plants : List Plant\n }\n\n\ninitialModel : Model\ninitialModel...
elm
chosen
[ { "from": "system", "value": "Update trampoline docs to new interface.\n" }, { "from": "human", "value": "module Trampoline where\n\n{-| Trampolining loops for unbounded recursion.\nSince most javascript implementations lack tail-call elimination, deeply tail-recursive functions will result in a...
elm
chosen
[ { "from": "system", "value": "Update examples for new API" }, { "from": "human", "value": "module Test where\n\nimport ElmTest.Assertion exposing (..)\nimport ElmTest.Test exposing (..)\n\n\ntests : List Test\ntests = \n [ (2^3) `equals` 1\n , 3 `equals` 3\n , defaultTest (assert True)\...
elm
chosen
[ { "from": "system", "value": "Update tests for new public API" }, { "from": "human", "value": "module Main where\n\nimport List\n\nimport ElmTest.Assertion as A\nimport ElmTest.Run as R\nimport ElmTest.Runner.Console exposing (runDisplay)\nimport ElmTest.Test exposing (..)\n\nimport Console expo...
elm
chosen
[ { "from": "system", "value": "Add helper function to check if Game is on HE2 Mode\n" }, { "from": "human", "value": "module Core.Flags exposing (Flags, Mode(..), initFlags, getVersion, getMode, isDev)\n\n\ntype Mode\n = HE1\n | HE2\n\n\ntype alias Flags =\n { apiHttpUrl : String\n , ...
elm
chosen
[ { "from": "system", "value": "Make main module only expose main\n" }, { "from": "human", "value": "module Main exposing (..)\n\nimport Html exposing (programWithFlags)\nimport Model exposing (Model)\nimport Data.Wallet exposing (Wallet)\nimport Update exposing (Msg, fetchBalance, update)\nimport...
elm
chosen
[ { "from": "system", "value": ":tada: Implement my fisrt Cmd app\n" }, { "from": "human", "value": "module Main exposing (..)\n\nimport Html exposing (Html, div, program, text)\nimport Mouse\nimport Keyboard\n\n\n-- MODEL\n\n\ntype alias Model =\n Int\n\n\ninit : ( Model, Cmd Msg )\ninit =\n ...
elm
chosen
[ { "from": "system", "value": "Rearrange types in shuffle to avoid crash\n\nDebug.crash was removed from Elm 0.19, so I needed to work around this.\nIn reality, extractValueHelper and extractValue should never get passed\nempty lists, and the Debug.crash invocation was meant to make things\ntypecheck in this...
elm
chosen
[ { "from": "system", "value": "Make the try message a bit more helpful\n" }, { "from": "human", "value": "import Website.Message (report)\n\nmain = report [markdown|\n<style type=\"text/css\">p { text-align:justify; }</style>\n\n# Try Elm\n\nWrite and compile code online! You may want to check ou...
elm
chosen
[ { "from": "system", "value": "Add basic material-based example layout w/ navbar\n" }, { "from": "human", "value": "module Main where\n\nimport Html exposing (Html)\nimport Html.Attributes as Attr\n\n\nmain : Html\nmain =\n Html.div\n [ Attr.class \"card-panel teal lighten-2\" ]\n ...
elm
chosen
[ { "from": "system", "value": "Update example to use isVisited\n" }, { "from": "human", "value": "-- Copyright 2015 Ian D. Bollinger\n--\n-- Licensed under the MIT license <LICENSE or\n-- http://opensource.org/licenses/MIT>. This file may not be copied, modified,\n-- or distributed except accordi...
elm
chosen
[ { "from": "system", "value": "Remove unnecessary calls to cast" }, { "from": "human", "value": "module Elmer.Value.Native exposing\n ( global\n , cast\n , nativeType\n , assign\n , wrap\n , unwrap\n , decode\n , decoder\n , field\n , constructor\n )\n\nimport Json.Decode as Json\nimpo...
elm
chosen
[ { "from": "system", "value": "Use `as` pattern match on last frame\n" }, { "from": "human", "value": "module Game where\n\nimport List exposing (sum, take)\n\nscore rolls =\n case rolls of\n [first, second, third] ->\n first + second + third\n 10::rest ->\n 10 + strikeBonus rest...
elm
chosen
[ { "from": "system", "value": "Add text areas to test parsing input\n" }, { "from": "human", "value": "module Scaffolder (model, view, actions) where\n\nimport Html exposing (Html)\nimport Signal exposing (Signal, Mailbox, Address)\nimport Html.Attributes as Attr\n\n\ntype Action =\n NoOp\n\n\...
elm
chosen
[ { "from": "system", "value": "Modify elm api url's to conform to api changes\n" }, { "from": "human", "value": "module User.Commands exposing (..)\r\n\r\nimport Http exposing (..)\r\nimport Json.Decode as Decode exposing (Decoder, field)\r\nimport Json.Encode as Encode\r\nimport User.Models expo...
elm
chosen
[ { "from": "system", "value": "Add a note about the missing high value grains test cases" }, { "from": "human", "value": "module Tests exposing (..)\n\nimport Expect\nimport Grains exposing (square)\nimport Json.Encode exposing (Value)\nimport Test exposing (..)\n\n\ntests : Test\ntests =\n de...
elm
chosen
[ { "from": "system", "value": "Remove support for missing fields from very old versions of app.\n" }, { "from": "human", "value": "module Setup.Settings exposing (..)\n\nimport Basics.Extra exposing ((=>))\nimport Json.Decode as Decode\nimport Json.Decode.Pipeline exposing (..)\nimport Json.Encod...
elm
chosen
[ { "from": "system", "value": "Revert \"Lets focus on dict for a while\"\n\nThis reverts commit 1848fbc5872f2ffb2d817e6d9c5a9bc6454833b4.\n" }, { "from": "human", "value": "module Main exposing (main)\n\nimport Html\nimport Html.App\nimport Bench.Native as Benchmark\nimport Bench.Dict\nimport Ben...
elm
chosen
[ { "from": "system", "value": "Update for new public API" }, { "from": "human", "value": "module Main where\n\nimport IO.IO exposing (..)\nimport IO.Runner exposing (Request, Response)\nimport IO.Runner as Run\n\nimport Test\nimport ElmTest.Runner.Console as Console\n\nsigs : IO ()\nsigs = Consol...
elm
chosen
[ { "from": "system", "value": "Switch to (:) to (::)\n" }, { "from": "human", "value": "\nimport Website.ColorScheme\n\naccents = [accent0,accent1,accent2,accent3,accent4]\n\ntopBar k n =\n let n' = toFloat n\n k' = toFloat k\n segs = map (\\i -> round (n' * toFloat i / k')) [1.....
elm
chosen
[ { "from": "system", "value": "Add UnaryExpression. Add OperatorName alias\n" }, { "from": "human", "value": "module NoSyntaxBitch where\nimport Html exposing (text)\n\ntype alias VariableName = String\n\ntype Node\n = Function { args: List Node, body: List Node, return: Node }\n | BinaryExpres...
elm
chosen
[ { "from": "system", "value": "Upgrade: Use Browser instead of Html.program\n" }, { "from": "human", "value": "module Main exposing (..)\n\nimport Html\nimport Init\nimport Model exposing (Model, Controller)\nimport Update exposing (update)\nimport View exposing (view)\n\n\n-- INIT\n\n\nmain : Pr...
elm
chosen
[ { "from": "system", "value": "Make arc length evaluation more robust and clear\n\nEnsure that roundoff doesn't result in an arc length just *greater* than `overallArcLength`\n" }, { "from": "human", "value": "module ReleaseNotes.ArcLengthParameterization exposing (..)\n\nimport Html exposing (Ht...
elm
chosen
[ { "from": "system", "value": "Add error message to app model\n" }, { "from": "human", "value": "module Models (..) where\n\nimport Meals.Models exposing (Meal)\nimport Routing\n\n\ntype alias AppModel =\n { meals : List Meal\n , currentMeal : Maybe Meal\n , routing : Routing.Model\n }\n\n\ni...
elm
chosen
[ { "from": "system", "value": "Update examples for new API" }, { "from": "human", "value": "module Main where\n\nimport Task\n\nimport Console exposing (..)\nimport ElmTest.Runner.Console as Console\n\nimport Test\n\n\ntests : IO ()\ntests = \n consoleRunner Test.suite3\n\n\nport runner : Sign...
elm
chosen
[ { "from": "system", "value": "Update silence decoders for empty comment\n" }, { "from": "human", "value": "module Silences.Decoders exposing (..)\n\nimport Json.Decode as Json exposing (field)\nimport Utils.Api exposing (iso8601Time, duration)\nimport Silences.Types exposing (Silence)\nimport Ut...
elm
chosen
[ { "from": "system", "value": "Make currency module expose everything since no private stuff\n" }, { "from": "human", "value": "module Data.Currency exposing (Currency(Bitcoin, Litecoin, Decred, EthereumClassic), currency)\n\n\ntype Currency\n = Bitcoin\n | Litecoin\n | Decred\n | Eth...
elm
chosen
[ { "from": "system", "value": "Replace a word in one of the guiding comments for clarity" }, { "from": "human", "value": "{-\nThis is a \"stub\" file. It's a little start on your solution. It's not a\ncomplete solution though; you have to write some code.\n\nThe module name is expected by the te...
elm
chosen
[ { "from": "system", "value": "Update for the new API\n" }, { "from": "human", "value": "\nimport Html\nimport Html (..)\nimport Window\n\ncounter : Float -> Html\ncounter count =\n node \"div\" []\n [ \"textAlign\" := \"center\"\n , \"verticalAlign\" := \"center\"\n ,...
elm
chosen
[ { "from": "system", "value": "Update Entries currentId on AddEntry\n" }, { "from": "human", "value": "module App.Entries.State exposing (..)\n\nimport App.Entries.Types exposing (..)\nimport App.Control.Types exposing (Filter(..))\n\n\n-- INIT\n\ninitialModel : Model\ninitialModel =\n { list ...
elm
chosen
[ { "from": "system", "value": "Fix structure of empty chapters\n\nWhen creating a new chapter, if the Save or Publish buttons are\npushed without writing anything in the box, the saved chapter\nwill have an invalid structure (it will be an empty array,\ninstead of an object with the \"type\" and \"content\" ...
elm
chosen
[ { "from": "system", "value": "Use ! [] for empty Cmd in update.\n" }, { "from": "human", "value": "module Toolbox.Update exposing (..)\n\nimport Dict\nimport Http\nimport Set\nimport Toolbox.Types exposing (Model, IngredientID, Response)\n\n\ntype Msg\n = DownloadedIngredients Response\n |...
elm
chosen
[ { "from": "system", "value": "Fix background images with spaces in them\n\nBackground images with spaces in them were broken, at least since\nthe upgrade to Elm 0.19, because of the way the \"background-image\"\nstyle was being generated.\n" }, { "from": "human", "value": "module Common.Views.Re...
elm
chosen
[ { "from": "system", "value": "Fix example by adding missing argument to Html" }, { "from": "human", "value": "module HomepageView exposing (..)\n\nimport Html exposing (..)\nimport Html.CssHelpers exposing (..)\nimport Html.Attributes exposing (..)\nimport HomepageCss exposing (..)\nimport Json....
elm
chosen
[ { "from": "system", "value": "Create a lookup function for a transition\n" }, { "from": "human", "value": "module TM exposing (..)\n\nimport Html exposing (text)\n\nmain: Html.Html msg\nmain =\n text \"Hello, World!\"\n\n\n-- Model\n\n\ntype alias Model =\n {\n tm: TuringMachine Int S...
elm
chosen
[ { "from": "system", "value": "Use 0 msecs as initial date.\n" }, { "from": "human", "value": "module Main exposing (..)\n\nimport Model exposing (..)\nimport Update exposing (Msg, update)\nimport View exposing (view)\nimport Html.App as Html\nimport Date.Extra.Create exposing (dateFromFields)\ni...
elm
chosen
[ { "from": "system", "value": "Change initial model creation to randomly generate points\n" }, { "from": "human", "value": "import Time exposing (Time,second)\nimport Html exposing (Html,text)\nimport Set exposing (Set)\n\n\n-- Model\ntype alias Coordinate = (Int, Int)\n\n\ntype alias Model =\n ...
elm
chosen
[ { "from": "system", "value": "Add INFO icon to view as well\n" }, { "from": "human", "value": "module Component.View exposing (view)\n\nimport Component.Model exposing (..)\nimport Component.Messages exposing (..)\nimport Html exposing (Html, div, text, a)\nimport Html.Attributes exposing (class...
elm
chosen
[ { "from": "system", "value": "Fix links to examples and learn page\n" }, { "from": "human", "value": "\nmodule Website.Message (report) where\n\nimport Website.ColorScheme (..)\nimport Window\n\naccents = [accent0,accent1,accent2,accent3,accent4]\n\ntopBar k n =\n let n' = toFloat n\n ...
elm
chosen
[ { "from": "system", "value": "Disable event propagation and send NoOp action on click.\n" }, { "from": "human", "value": "module Toolbox.Views (..) where\n\nimport Html exposing (..)\nimport Html.Attributes exposing (..)\nimport Toolbox.Action exposing (Action)\nimport Toolbox.Types exposing (In...
elm
chosen
[ { "from": "system", "value": "Change view code to use elements\n" }, { "from": "human", "value": "module Rogue.View where\n\nimport Color exposing (..)\nimport Graphics.Collage exposing (..)\nimport Graphics.Element exposing (..)\nimport String exposing (join)\nimport Text\nimport Array exposing...
elm
chosen
[ { "from": "system", "value": "Refactor add new entries into createAddEntryMsg function\n" }, { "from": "human", "value": "module App.Input.View exposing (..)\n\nimport Html exposing (..)\nimport Html.Attributes exposing (..)\nimport Html.Events exposing (onInput)\nimport Utility.OnEnter exposing...
elm
chosen
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7