conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add Louis and bump version\n"
},
{
"from": "human",
"value": "defmodule Slime.Mixfile do\n use Mix.Project\n\n @version \"0.10.0\"\n\n def project do\n [app: :slime,\n build_embedded: Mix.env == :prod,\n deps: deps,\n description: \"\"\"\n An E... | elixir | chosen |
[
{
"from": "system",
"value": "Set force_quotes default to false.\n"
},
{
"from": "human",
"value": "defmodule CSV.Defaults do\n @moduledoc ~S\"\"\"\n The module defaults of CSV.\n \"\"\"\n\n defmacro __using__(_) do\n quote do\n @separator ?,\n @newline ?... | elixir | chosen |
[
{
"from": "system",
"value": "Use crypto:hash instead of crypto:md5\n\nWarning on R16B02\n"
},
{
"from": "human",
"value": "defmodule Poxa.CryptoHelper do\n @spec hmac256_to_string(binary, binary) :: binary\n def hmac256_to_string(app_secret, to_sign) do\n :hmac.hmac256(app_secret, to_sign)... | elixir | chosen |
[
{
"from": "system",
"value": "Update redirect to Recording API\n"
},
{
"from": "human",
"value": "defmodule ExTwilio.Recording do\n @moduledoc \"\"\"\n Represents an Recording resource in the Twilio API.\n\n - [Twilio docs](https://www.twilio.com/docs/api/rest/recordings)\n \"\"\"\n\n defst... | elixir | chosen |
[
{
"from": "system",
"value": "Update messages dependency for gherkin elixir\n"
},
{
"from": "human",
"value": "defmodule CucumberGherkin.MixProject do\n use Mix.Project\n\n @vsn \"17.0.2\"\n @github \"https://github.com/cucumber/cucumber/tree/master/gherkin/elixir\"\n @name \"CucumberGherkin... | elixir | chosen |
[
{
"from": "system",
"value": "Fix test for user model.\n"
},
{
"from": "human",
"value": "defmodule Xee.UserTest do\n use Xee.ModelCase\n\n alias Xee.User\n\n @valid_attrs %{crypted_password: \"some content\", name: \"some content\"}\n @invalid_attrs %{}\n\n test \"changeset with valid attr... | elixir | chosen |
[
{
"from": "system",
"value": "Remove editor from require validation\n"
},
{
"from": "human",
"value": "defmodule Tilex.Developer do\n use Tilex.Web, :model\n\n schema \"developers\" do\n field :email, :string\n field :username, :string\n field :google_id, :string\n field :twitter_h... | elixir | chosen |
[
{
"from": "system",
"value": "Add start_listener/6 to Hello elixir module\n"
},
{
"from": "human",
"value": "defmodule Hello do\n defdelegate [\n start_listener(uri),\n start_listener(uri, trans_opts),\n start_listener(uri, trans_opts, protocol, proto_opts, router_mod),\n\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Test server should start in port 4001\n"
},
{
"from": "human",
"value": "defmodule Cobalt.Dynamo do\n use Dynamo\n\n config :dynamo,\n # The environment this Dynamo runs on\n env: Mix.env,\n\n # The OTP application associated with this Dynamo\n otp_app... | elixir | chosen |
[
{
"from": "system",
"value": "Clean up Showtime test helpers\n"
},
{
"from": "human",
"value": "defmodule Jumubase.ShowtimeTestHelpers do\n import Jumubase.Factory\n\n @doc \"\"\"\n Returns valid attributes for creating an Appearance,\n including nested data that isn't handled by the Factory... | elixir | chosen |
[
{
"from": "system",
"value": "Read sql sandbox env at runtime\n"
},
{
"from": "human",
"value": "defmodule Tokenizer.HTTP.Endpoint do\n @moduledoc \"\"\"\n Phoenix Endpoint for tokenizer_api application.\n \"\"\"\n\n use Phoenix.Endpoint, otp_app: :tokenizer_api\n require Logger\n\n # Allo... | elixir | chosen |
[
{
"from": "system",
"value": "Add users resource to browser scope\n"
},
{
"from": "human",
"value": "defmodule MyApp_7191136.Router do\n use MyApp_7191136.Web, :router\n\n pipeline :browser do\n plug :accepts, [\"html\"]\n plug :fetch_session\n plug :fetch_flash\n plug :protect_fro... | elixir | chosen |
[
{
"from": "system",
"value": "Include config cname for dealing with inheritance\n"
},
{
"from": "human",
"value": "defmodule Exsoda.Configuration do\n @derive [Poison.Encoder]\n defstruct id: nil, name: nil, type: nil, properties: nil\n\n @derive [Poison.Decoder]\n defmodule Property do\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Add another failing test for Sources.exclude\n"
},
{
"from": "human",
"value": "defmodule Credo.SourcesTest do\n use ExUnit.Case\n\n test \"Credo.Sources.find\" do\n files = [\"credo.ex\", \"credo_test.exs\", \"config.exs\"]\n expected = [\"credo.ex\"]\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Use Plug Builder with Plug Parser\n"
},
{
"from": "human",
"value": "defmodule Gandalf do\n import Plug.Conn\n\n def init(options) do\n options\n end\n\n def call(conn, options) do\n conn\n |> check_access(options)\n end\n\n defp check_access(conn, op... | elixir | chosen |
[
{
"from": "system",
"value": "Make sure time server is started\n"
},
{
"from": "human",
"value": "defmodule Benchee.Config do\n @moduledoc \"\"\"\n Functions to handle the configuration of Benchee, exposes `init` function.\n \"\"\"\n\n alias Benchee.Time\n\n @doc \"\"\"\n Returns the initi... | elixir | chosen |
[
{
"from": "system",
"value": "Improve docs and typespecs in Swoosh.Adapter\n"
},
{
"from": "human",
"value": "defmodule Swoosh.Adapter do\n @moduledoc ~S\"\"\"\n Specification of the email delivery adapter.\n \"\"\"\n @typep config :: Keyword.t\n\n @callback deliver(%Swoosh.Email{}, config)... | elixir | chosen |
[
{
"from": "system",
"value": "Remove sleep from entity test, it's not needed since `account:create` already awaits for entity creation.\n"
},
{
"from": "human",
"value": "defmodule HELM.Entity.Controller.EntityServiceTest do\n\n use ExUnit.Case, async: true\n\n alias HELF.Broker\n\n @moduleta... | elixir | chosen |
[
{
"from": "system",
"value": "Remove the rel folder from the Hex package\n"
},
{
"from": "human",
"value": "defmodule Mix.Tasks.Compile.Ws281x do\n def run(_) do\n 0 = Mix.Shell.IO.cmd(\"make priv/rpi_ws281x\")\n Mix.Project.build_structure\n :ok\n end\nend\n\ndefmodule Nerves.IO.Neop... | elixir | chosen |
[
{
"from": "system",
"value": "Change version for ETS/auto. Skipping 0.2 through 0.4\nto make way for breaking changes while keeping old structure.\n"
},
{
"from": "human",
"value": "defmodule Tzdata.Mixfile do\n use Mix.Project\n\n def project do\n [app: :tzdata,\n name: \"tzdata\",\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Use new callbacks in URI.Parser\n"
},
{
"from": "human",
"value": "defmodule URI.Parser do\n @moduledoc \"\"\"\n Defines the behavior for each URI.Parser.\n Check URI.HTTP for a possible implementation.\n \"\"\"\n\n use Behaviour\n\n @doc \"\"\"\n Responsible... | elixir | chosen |
[
{
"from": "system",
"value": "Update redirect to SipIpAccessControllList API\n"
},
{
"from": "human",
"value": "defmodule ExTwilio.SipIpAccessControlList do\n @moduledoc \"\"\"\n Represents an SIP IPAccessControlList in the Twilio API.\n\n - [Twilio docs](https://www.twilio.com/docs/api/rest/... | elixir | chosen |
[
{
"from": "system",
"value": "Make repo fetcher download and store user repositories\n"
},
{
"from": "human",
"value": "defmodule Pullhub.RepoFetcher do\n require Logger\n\n use GenServer\n\n alias Pullhub.Repo\n alias Pullhub.Repository\n\n def start_link do\n GenServer.start_link(__MOD... | elixir | chosen |
[
{
"from": "system",
"value": "Add hex metadata to the Mixfile\n\nAdded description, contributors and so on.\n"
},
{
"from": "human",
"value": "defmodule MarcoPolo.Mixfile do\n use Mix.Project\n\n @version \"0.1.0\"\n @supported_protocol 28\n\n def project do\n [app: :marco_polo,\n ver... | elixir | chosen |
[
{
"from": "system",
"value": "Add some aliases in UserResolver\n"
},
{
"from": "human",
"value": "defmodule TimeTrackerBackend.UserResolver do\n def all(_args, _info) do\n {:ok, TimeTrackerBackend.Repo.all(TimeTrackerBackend.User)}\n end\nend\n"
},
{
"from": "gpt",
"value": "def... | elixir | chosen |
[
{
"from": "system",
"value": "Check if heroku and use DATABASE_URL env var in read_db_config macro\n"
},
{
"from": "human",
"value": "defmodule AppConfig do\n\n defmacro read_db_config do\n cond do\n database_url = System.get_env(\"DB_URL\") ->\n database_url\n File.exists?(... | elixir | chosen |
[
{
"from": "system",
"value": "Fix the spec for Hamming problem.\n"
},
{
"from": "human",
"value": "defmodule Hamming do\n @doc \"\"\"\n Returns number of differences between two strands of DNA, known as the Hamming Distance.\n\n ## Examples\n\n iex> Hamming.hamming_distance('AAGTCATA', 'TAGC... | elixir | chosen |
[
{
"from": "system",
"value": "Clean up bare function warnings for Elixir 1.4.\n"
},
{
"from": "human",
"value": "defmodule NervesSystemLinkit.Mixfile do\n use Mix.Project\n\n @version Path.join(__DIR__, \"VERSION\")\n |> File.read!\n |> String.strip\n\n def project do\n [app: :nerves... | elixir | chosen |
[
{
"from": "system",
"value": "Add stop/shutdown task to Router\n"
},
{
"from": "human",
"value": "defmodule Phoenix.Router do\n use GenServer.Behaviour\n alias Phoenix.Plugs\n alias Phoenix.Router.Options\n alias Phoenix.Adapters.Cowboy\n\n defmacro __using__(plug_adapter_options \\\\ []) d... | elixir | chosen |
[
{
"from": "system",
"value": "Update redirect to Queue API\n"
},
{
"from": "human",
"value": "defmodule ExTwilio.Queue do\n @moduledoc \"\"\"\n Represents an Queue resource in the Twilio API.\n\n - [Twilio docs](https://www.twilio.com/docs/api/rest/queues)\n \"\"\"\n\n defstruct sid: nil,\n... | elixir | chosen |
[
{
"from": "system",
"value": "Disable origin checks for all environments\n"
},
{
"from": "human",
"value": "# This file is responsible for configuring your application\n# and its dependencies with the aid of the Mix.Config module.\n#\n# This configuration file is loaded before any dependency and... | elixir | chosen |
[
{
"from": "system",
"value": "Handle errors when creating team/user\n"
},
{
"from": "human",
"value": "defmodule EspiDni.AuthHandler do\n\n @moduledoc \"\"\"\n Create or retreive the team and user from an auth request\n \"\"\"\n alias Ueberauth.Auth\n alias EspiDni.TeamFromAuth\n alias Esp... | elixir | chosen |
[
{
"from": "system",
"value": "Allow Redis URIs with empty host/port\n\nCloses #110.\n"
},
{
"from": "human",
"value": "defmodule Redix.URI do\n @moduledoc false\n\n @spec opts_from_uri(binary) :: Keyword.t()\n def opts_from_uri(uri) when is_binary(uri) do\n %URI{host: host, port: port, sch... | elixir | chosen |
[
{
"from": "system",
"value": "Add test to direct notification.\n"
},
{
"from": "human",
"value": "defmodule CoursePlanner.NotifierTest do\n use CoursePlanner.ModelCase\n doctest CoursePlanner.Notifier\n\n import CoursePlanner.Factory\n import Swoosh.TestAssertions\n\n alias CoursePlanner.{N... | elixir | chosen |
[
{
"from": "system",
"value": "Update bot supervisor to allow dynamic bot children\n"
},
{
"from": "human",
"value": "defmodule EspiDni.BotSupervisor do\n use Supervisor\n alias EspiDni.Repo\n alias EspiDni.Team\n alias EspiDni.SlackRtm\n\n def start_link do\n Supervisor.start_link(__MODU... | elixir | chosen |
[
{
"from": "system",
"value": "Clean up code in Dogma.Util.ASTNode\n\nThis cleans up some code to adhere to the style guide we are sometimes\nreferring to.\n"
},
{
"from": "human",
"value": "defmodule Dogma.Util.ASTNode do\n @moduledoc\"\"\"\n Utility functions for analyzing and categorizing AS... | elixir | chosen |
[
{
"from": "system",
"value": "Use sandbox pool in test.\n"
},
{
"from": "human",
"value": "use Mix.Config\n\n# We don't run a server during test. If one is required,\n# you can enable the server option below.\nconfig :ifires_sunshine_battleacademy, IfiresSunshineBattleacademy.Web.Endpoint,\n ht... | elixir | chosen |
[
{
"from": "system",
"value": "Raise timeout on assert_receive for integration test\n"
},
{
"from": "human",
"value": "defmodule Poxa.Integration.PublicChannelTest do\n use ExUnit.Case\n\n setup_all do\n :ok = Pusher.start\n :application.set_env(:pusher, :host, \"http://localhost\")\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Add bcrypt to the list of applications to start\n"
},
{
"from": "human",
"value": "defmodule Cobalt.Mixfile do\n use Mix.Project\n\n def project do\n [ app: :cobalt,\n version: \"0.0.1\",\n build_per_environment: true,\n dynamos: [Cobalt.Dynamo],... | elixir | chosen |
[
{
"from": "system",
"value": "Add erlport to dependent application\n"
},
{
"from": "human",
"value": "defmodule Export.Mixfile do\n use Mix.Project\n\n def project do\n [\n app: :export,\n description: \"Erlport wrapper for Elixir\",\n package: package(),\n version: \"0.... | elixir | chosen |
[
{
"from": "system",
"value": "Fix failing test on authenticated tests\n"
},
{
"from": "human",
"value": "defmodule AuthenticatedTest do\n use ExUnit.Case, async: true\n use Plug.Test\n\n alias Addict.Plugs.Authenticated, as: Auth\n\n @session_opts Plug.Session.init [\n store: :cookie,\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Add routing for logined user\n"
},
{
"from": "human",
"value": "defmodule Streakable.Router do\n use Streakable.Web, :router\n\n pipeline :browser do\n plug :accepts, [\"html\"]\n plug :fetch_session\n plug :fetch_flash\n plug :protect_from_forgery\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Update Plug.Static with `:only` option\n"
},
{
"from": "human",
"value": "defmodule OAuth2Example.Endpoint do\n use Phoenix.Endpoint, otp_app: :o_auth2_example\n\n plug Plug.Static,\n at: \"/\", from: :o_auth2_example\n\n plug Plug.Logger\n\n plug Phoenix.Cod... | elixir | chosen |
[
{
"from": "system",
"value": "Fix the test of ThemeServer\n"
},
{
"from": "human",
"value": "defmodule Xee.ThemeServerTest do\n use ExUnit.Case\n alias Xee.ThemeServer, as: ThemeServer\n\n setup do\n ThemeServer.start_link()\n on_exit fn ->\n case Process.whereis(ThemeServer) do\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Add template to server priv/static\n"
},
{
"from": "human",
"value": "defmodule API.Endpoint do\n @moduledoc \"\"\"\n Phoenix Endpoint for gateway_api application.\n \"\"\"\n use Phoenix.Endpoint, otp_app: :gateway_api\n require Logger\n\n # Allow acceptance t... | elixir | chosen |
[
{
"from": "system",
"value": "Add tests for match arg.\n"
},
{
"from": "human",
"value": "Code.require File.expand_path(\"../test_helper\", __FILE__)\n\nobject FunctionTest\n proto ExUnit::Case\n\n def arity_test\n 0 = (-> 'a).arity\n 1 = (-> (a) a).arity\n 2 = (-> (a,b) a + b).arity\... | elixir | chosen |
[
{
"from": "system",
"value": "Modify migration file to add unique constraint to all fields.\n"
},
{
"from": "human",
"value": "defmodule Xee.Repo.Migrations.CreateUser do\n use Ecto.Migration\n\n def change do\n create table(:user) do\n add :name, :string\n add :crypted_password, ... | elixir | chosen |
[
{
"from": "system",
"value": "Include `match_requests_on: [:query]` for list club members unit tests\n"
},
{
"from": "human",
"value": "defmodule Strava.ClubTest do\n use ExUnit.Case, async: false\n use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney\n\n doctest Strava.Club\n\n setup_all do\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Move description of YAWL to the start_link function documentation\n"
},
{
"from": "human",
"value": "defmodule LexibombServer.WordList do\n @moduledoc \"\"\"\n Manages access to the list of valid gameplay words.\n\n The default word list is based on Mendel Leo Co... | elixir | chosen |
[
{
"from": "system",
"value": "Use the proper namespace for modules from the Builds-Context\n"
},
{
"from": "human",
"value": "defmodule BaumeisterWeb.Web.Test.Builds.Project do\n @moduledoc \"\"\"\n Tests of Projects and Builds within the Builds-Context.\n \"\"\"\n use BaumeisterWeb.Web.Mode... | elixir | chosen |
[
{
"from": "system",
"value": "Remove user_has_repo_checked in repository view\n\nIt was so simple so It's now been moved into the template\n"
},
{
"from": "human",
"value": "defmodule Pullhub.RepositoryView do\n use Pullhub.Web, :view\n\n def user_has_repo_checked(repository) do\n repositor... | elixir | chosen |
[
{
"from": "system",
"value": "Use blank string as buffer\n"
},
{
"from": "human",
"value": "Code.require_file \"../../test_helper\", __FILE__\n\ndefmodule EEx::EngineTest do\n use ExUnit::Case\n require EEx::Engine, as: E\n\n test \"handle text\" do\n assert_equal {:\"<>\", 0, [[], \"foo\"... | elixir | chosen |
[
{
"from": "system",
"value": "Handle 204 responses for daily impressions\n"
},
{
"from": "human",
"value": "defmodule Ello.Grandstand.Client.HTTP do\n alias Ello.Grandstand.{Impression, Client}\n @behaviour Client\n use HTTPoison.Base\n\n @doc \"\"\"\n Get %Impressions{} from grandstand api... | elixir | chosen |
[
{
"from": "system",
"value": "Add test for count of values\n"
},
{
"from": "human",
"value": "defmodule Poker.DeckTest do\n use ExUnit.Case, async: true\n\n alias Poker.Deck\n\n describe \"Deck.new/0\" do\n setup do: [deck: Deck.new()]\n\n test \"deck has 52 cards\", %{deck: deck} do\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Remove unused commented code from webapp\n"
},
{
"from": "human",
"value": "use Mix.Config\nrequire System\n\n# For development, we disable any cache and enable\n# debugging and code reloading.\n#\n# The watchers configuration can be used to run external\n# watchers... | elixir | chosen |
[
{
"from": "system",
"value": "Fix missing dependency on exactor\n"
},
{
"from": "human",
"value": "defmodule Reddit.Mixfile do\n use Mix.Project\n\n def project do\n [app: :reddit,\n version: \"0.0.1\",\n deps_path: \"../../deps\",\n lockfile: \"../../mix.lock\",\n elixir: \... | elixir | chosen |
[
{
"from": "system",
"value": "Remove earmark dependency since ExDoc already defines it\n\nStarting in v 0.12.0, ExDoc has Earmark as a dependency. Since it's used only indirectly here by calling ExDoc.Markdown.to_html/1, we can leave it to ExDoc."
},
{
"from": "human",
"value": "defmodule ExDocD... | elixir | chosen |
[
{
"from": "system",
"value": "Set async false for session Test\n\nThis test can't be async because it involves changing the global\napplication state.\n"
},
{
"from": "human",
"value": "defmodule Wallaby.SessionTest do\n use Wallaby.ServerCase, async: true\n use Wallaby.DSL\n\n setup do\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Use until/1 to wait for created spans in BackendTest\n"
},
{
"from": "human",
"value": "defmodule Appsignal.Error.BackendTest do\n use ExUnit.Case, async: true\n import ExUnit.CaptureIO\n alias Appsignal.{Error.Backend, Span, WrappedNif, Test}\n\n setup do\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Add Credo to dev env\n"
},
{
"from": "human",
"value": "defmodule Quark.Mixfile do\n use Mix.Project\n\n def project do\n [\n app: :quark,\n name: \"Quark\",\n\n description: \"Common combinators for Elixir\",\n version: \"2.0.0\",\n e... | elixir | chosen |
[
{
"from": "system",
"value": "Update package to new format\n\ncontributors -> maintainers\n"
},
{
"from": "human",
"value": "defmodule Bmark.Mixfile do\n use Mix.Project\n\n def project do\n [app: :bmark,\n version: \"1.0.2\",\n elixir: \"~> 1.0\",\n deps: deps,\n descriptio... | elixir | chosen |
[
{
"from": "system",
"value": "Add example openstack auth variables to host.ex\n"
},
{
"from": "human",
"value": "[all:vars]\n# OpenStack release. Valid value is one of 'kilo,liberty,mitaka,newton' and so on\nopenstack_release=newton\n\n[controller]\n192.168.220.78\n192.168.220.79\n192.168.220.80... | elixir | chosen |
[
{
"from": "system",
"value": "Fix a case clause bug in PingHook"
},
{
"from": "human",
"value": "defmodule PingHook do\n @replies [\n \"pong\", \"shpunk\", \"spank\", \"pork\", \"dong\",\n ]\n @num_replies Enum.count(@replies)\n\n def run(sender, text) do\n case String.downcase(text) d... | elixir | chosen |
[
{
"from": "system",
"value": "Test for extracting text content\n"
},
{
"from": "human",
"value": "defmodule Scrapex.SelectorTest do\n use ExUnit.Case\n alias Scrapex.Selector\n\n test \"parse CSS selector\" do\n href = HTTPoison.get!(\"http://localhost:9090/example.com.html\").body\n |>... | elixir | chosen |
[
{
"from": "system",
"value": "Change IEx prompt based on Node.alive?\n"
},
{
"from": "human",
"value": "IEx.configure(\n default_prompt: \"%prefix>\",\n history_size: -1,\n colors: [\n eval_result: [:cyan, :bright]\n ]\n)\n"
},
{
"from": "gpt",
"value": "IEx.configure(\n defa... | elixir | chosen |
[
{
"from": "system",
"value": "Add password virtual field on User schema\n"
},
{
"from": "human",
"value": "defmodule MenuPlanner.Accounts.User do\n use Ecto.Schema\n\n schema \"accounts_users\" do\n field :email, :string\n field :name, :string\n field :password_hash, :string\n\n ti... | elixir | chosen |
[
{
"from": "system",
"value": "Fix failing test in farmbot_ext\n"
},
{
"from": "human",
"value": "defmodule FarmbotExt.BootstrapTest do\n require Helpers\n use ExUnit.Case, async: false\n use Mimic\n alias FarmbotExt.Bootstrap\n setup :verify_on_exit!\n setup :set_mimic_global\n\n test \"p... | elixir | chosen |
[
{
"from": "system",
"value": "Print each log file on its own line\n"
},
{
"from": "human",
"value": "defmodule MealTracker.Commands.List do\n @moduledoc \"\"\"\n Handles the `track list` command.\n \"\"\"\n\n alias MealTracker.Config\n\n @doc \"\"\"\n Executes the command.\n \"\"\"\n def... | elixir | chosen |
[
{
"from": "system",
"value": "Clean up Mix.project after setting it\n"
},
{
"from": "human",
"value": "Code.require_file \"../../test_helper.exs\", __FILE__\n\ndefmodule Mix.DepsTest do\n use MixTest.Case\n\n defmodule DepsApp do\n def project do\n [\n deps: [\n { :ok, ... | elixir | chosen |
[
{
"from": "system",
"value": "Copy banks.json to elixir release\n"
},
{
"from": "human",
"value": "defmodule Mix.Tasks.Ifsc.CopyJson do\n use Mix.Task\n\n\n def run(_) do\n File.mkdir_p!(\"priv/ifsc-data\")\n Enum.map(\n ~w(banknames.json IFSC.json sublet.json),\n &(File.copy(\... | elixir | chosen |
[
{
"from": "system",
"value": "Add extwitter as an application\n"
},
{
"from": "human",
"value": "defmodule UpsideDownLeds.Mixfile do\n use Mix.Project\n\n def project do\n [app: :upside_down_leds,\n version: \"0.1.0\",\n elixir: \"~> 1.3\",\n build_embedded: Mix.env == :prod,\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Exclude pending `@tag :pending` tests\n\nCo-authored-by: Chris Erin <616b74d5888ada3e51dc8f8c8c98902b4a8a2d03@gmail.com>\nCo-authored-by: Dorian Karter <5bbd56c484f1ca3e1862b50ee145320cef5c9084@users.noreply.github.com>\n"
},
{
"from": "human",
"value": "ExUnit.star... | elixir | chosen |
[
{
"from": "system",
"value": "Change order of answers to make unit tests pass\n"
},
{
"from": "human",
"value": "defmodule MapSetsTest do\n use ExUnit.Case\n import TestHarness\n\n test \"MapSets\" do\n answers = [\n true,\n {:multiple, [true, false]},\n true,\n false, ... | elixir | chosen |
[
{
"from": "system",
"value": "Split koan into two functions with different arity\n"
},
{
"from": "human",
"value": "defmodule Koans do\n defmacro koan(name, body) do\n compiled_name = String.to_atom(name)\n mangled_body = ASTMangler.expand(body, quote do: answer)\n quote do\n @koa... | elixir | chosen |
[
{
"from": "system",
"value": "Replace Task.shutdown in favor to Process.exit to be compatible with Elixir 1.3\n"
},
{
"from": "human",
"value": "defmodule Tesla.Middleware.Timeout do\n @behaviour Tesla.Middleware\n\n @moduledoc \"\"\"\n Timeout http request after X seconds.\n\n ### Example\n... | elixir | chosen |
[
{
"from": "system",
"value": "Add api/v2 to pagination link.\n"
},
{
"from": "human",
"value": "defmodule Ello.V2.FollowingPostController do\n use Ello.V2.Web, :controller\n alias Ello.Stream\n alias Ello.Core.{Network}\n alias Ello.V2.PostView\n plug Ello.Auth.RequireUser\n\n def index(co... | elixir | chosen |
[
{
"from": "system",
"value": "Remove unnecessary fixture path expansion\n"
},
{
"from": "human",
"value": "defmodule Geolix.Adapter.MMDB2.Database.LoaderErrorTest do\n use ExUnit.Case, async: false\n\n import ExUnit.CaptureLog\n\n alias Geolix.Adapter.MMDB2\n\n @fixture_path Path.expand(\"..... | elixir | chosen |
[
{
"from": "system",
"value": "Add default headers for conn\n"
},
{
"from": "human",
"value": "defmodule RespHelper do\n import Plug.Conn\n\n def http_404(conn) do\n conn\n |> put_resp_content_type(\"text/html\")\n |> send_resp(404, \"<h1>Not Found</h1>\")\n end\n\nend\n"
},
{
... | elixir | chosen |
[
{
"from": "system",
"value": "Remove unused macros from Serum.Util\n"
},
{
"from": "human",
"value": "defmodule Serum.Util do\n @moduledoc \"\"\"\n This module provides some frequently used shortcut functions. These functions\n are inlined by the compiler.\n \"\"\"\n\n @doc \"Prints a warni... | elixir | chosen |
[
{
"from": "system",
"value": "Remove reference to deleted shapes api endpoint\n"
},
{
"from": "human",
"value": "defmodule Api.Router do\n# todo move this artifact to the top leve (let it be just 'Router')\n\n\n use Plug.Router\n\n plug :match\n\n plug(Plug.Parsers,\n parsers: [:json],\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Put doc tests in alphabetical order\n"
},
{
"from": "human",
"value": "ExUnit.start []\n\ndefmodule KernelTest do\n use ExUnit.Case, async: true\n doctest Kernel\n doctest Kernel.SpecialForms\n doctest Access.List\n doctest Binary.Chars.List\n doctest Binary.I... | elixir | chosen |
[
{
"from": "system",
"value": "Implement client calls for register and list\n"
},
{
"from": "human",
"value": "defmodule Client.API do\n def handle({:message_from, message, username}) do\n # TODO: Store message in chat history\n :ok\n end\n\n def handle({:send_file, username, filename}) ... | elixir | chosen |
[
{
"from": "system",
"value": "Use supervisors instead of workers in Microcrawler.Supervisor.Event\n"
},
{
"from": "human",
"value": "defmodule Microcrawler.Supervisor.Event do\n require Logger\n use Supervisor\n\n @server __MODULE__\n\n def start_link do\n Logger.info(\"Starti... | elixir | chosen |
[
{
"from": "system",
"value": "Add initial failing test for Elixir\n"
},
{
"from": "human",
"value": "defmodule GildedRoseTest do\n use ExUnit.Case\n\n test \"begin the journey of refactoring\" do\n end\nend\n"
},
{
"from": "gpt",
"value": "defmodule GildedRoseTest do\n use ExUnit... | elixir | chosen |
[
{
"from": "system",
"value": "Enable Ecto sandbox mode for ChannelCase tests\n\nBecause we’re using Ecto within our Channel, we need to allow the\nchannel to create a process for Ecto, per Jose’s comment:\nhttps://github.com/elixir-ecto/ecto/issues/1319#issuecomment-196925658\n"
},
{
"from": "human"... | elixir | chosen |
[
{
"from": "system",
"value": "Fix the incorrect slashes denoting a default value in sum-of-multiples\n"
},
{
"from": "human",
"value": "defmodule SumOfMultiples do\n\n @doc \"\"\"\n Adds up all numbers from 1 to a given end number that are multiples of the factors provided.\n \n The default ... | elixir | chosen |
[
{
"from": "system",
"value": "Fix artist invite show logged out.\n\nWe must always have our standard params present for our preloads to\nproperly execute.\n"
},
{
"from": "human",
"value": "defmodule Ello.Serve.Webapp.ArtistInviteShowController do\n use Ello.Serve.Web, :controller\n alias Ello... | elixir | chosen |
[
{
"from": "system",
"value": "Remove the scanner demo from the core library\n"
},
{
"from": "human",
"value": "defmodule Nerves.IO.Neopixel do\n @moduledoc false\n\n use Application\n require Logger\n\n alias Nerves.IO.Neopixel\n\n def start(_type, _args) do\n Logger.debug \"#{__MODULE__... | elixir | chosen |
[
{
"from": "system",
"value": "Make pool size an env var\n"
},
{
"from": "human",
"value": "use Mix.Config\n\n# In this file, we keep production configuration that\n# you likely want to automate and keep it away from\n# your version control system.\n#\n# You should document the content of this\n#... | elixir | chosen |
[
{
"from": "system",
"value": "Add users resources to browser scope\n"
},
{
"from": "human",
"value": "defmodule MyApp_726605.Router do\n use MyApp_726605.Web, :router\n\n pipeline :browser do\n plug :accepts, [\"html\"]\n plug :fetch_session\n plug :fetch_flash\n plug :protect_from... | elixir | chosen |
[
{
"from": "system",
"value": "Use raw SQL to prevent syntax errors in legacy migration\n"
},
{
"from": "human",
"value": "defmodule FarmbotCore.Asset.Repo.Migrations.ForceResyncPoints do\n use Ecto.Migration\n\n alias FarmbotCore.Asset.{Repo, Point}\n\n def change do\n for %{id: id} = poin... | elixir | chosen |
[
{
"from": "system",
"value": "Add timestamp fields to Ecto User schema\n"
},
{
"from": "human",
"value": "defmodule Asciinema.User do\n use Asciinema.Web, :model\n\n schema \"users\" do\n field :username, :string\n field :temporary_username, :string\n field :email, :string\n field ... | elixir | chosen |
[
{
"from": "system",
"value": "Remove done action and status timestamps.\n"
},
{
"from": "human",
"value": "defmodule CoursePlanner.TasksTest do\n use CoursePlanner.ModelCase\n\n alias CoursePlanner.{Tasks, Volunteers}\n\n @valid_task %{name: \"some content\", start_time: Timex.now(), finish_t... | elixir | chosen |
[
{
"from": "system",
"value": "Put proper IO.ANSI tests in\n"
},
{
"from": "human",
"value": "Code.require_file \"../../test_helper.exs\", __FILE__\n\ndefmodule IO.ANSITest do\n use ExUnit.Case, async: true\n\n test :boolean do\n assert String.length(IO.ANSI.red(true)) > 0\n assert IO.ANS... | elixir | chosen |
[
{
"from": "system",
"value": "Fix a failing test in Accounts.MessageTest\n"
},
{
"from": "human",
"value": "defmodule Jumubase.Accounts.MessageTest do\n use ExUnit.Case\n use Bamboo.Test\n import JumubaseWeb.AuthTestHelpers\n import JumubaseWeb.Router.Helpers, only: [password_reset_url: 3]\n... | elixir | chosen |
[
{
"from": "system",
"value": "Use ExUnit.Case instead of Xee.ConnCase\n\nFix #8\n"
},
{
"from": "human",
"value": "defmodule Xee.ThemeServerTest do\n use Xee.ConnCase\n alias Xee.ThemeServer, as: ThemeServer\n\n setup do\n ThemeServer.start_link()\n :ok\n end\n\n test \"register and g... | elixir | chosen |
[
{
"from": "system",
"value": "Add test for new koan\n"
},
{
"from": "human",
"value": "defmodule FunctionsTests do\n use ExUnit.Case\n import TestHarness\n\n test \"Functions\" do\n answers = [\n \"Hello, World!\",\n 3,\n {:multiple, [\"One and Two\", \"Only One\"]},\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Kill unmet endpoint that was mysteriously matching in UserSocket\n"
},
{
"from": "human",
"value": "defmodule RemoteRetro.UserSocket do\n use Phoenix.Socket\n\n ## Channels\n channel \"room:*\", RemoteRetro.RoomChannel\n\n ## Transports\n transport :websocket, ... | elixir | chosen |
[
{
"from": "system",
"value": "[gherkin] WIP: Use the local messages in gherkin-elixir\n\nThis make the CI build to use the local cucumber-messages version\ninstead of the released version, but this change cannot remaing when\nreleasing gherkin-elixir.\n"
},
{
"from": "human",
"value": "defmodule... | elixir | chosen |
[
{
"from": "system",
"value": "Make sure that the session is ended after the test exists\n"
},
{
"from": "human",
"value": "defmodule Hound.Helpers do\n @moduledoc false\n\n defmacro __using__([]) do\n quote do\n import Hound\n import Hound.Helpers.Cookie\n import Hound.Helper... | elixir | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.