conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix mark notifications as read.\n"
},
{
"from": "human",
"value": "defmodule Ello.Events.MarkNotificationsAsRead do\n use Ello.Events.Sidekiq\n\n defstruct [\n user_id: nil,\n last_notification_time: 0,\n ]\n\n def args(map) do\n [\n Map.from_struc... | elixir | chosen |
[
{
"from": "system",
"value": "Fix warnings on Elixir 1.4\n"
},
{
"from": "human",
"value": "defmodule ExNcurses.Mixfile do\n use Mix.Project\n\n def project do\n [app: :ex_ncurses,\n version: \"0.0.2\",\n elixir: \"~> 1.1\",\n build_embedded: Mix.env == :prod,\n start_perman... | elixir | chosen |
[
{
"from": "system",
"value": "Update HEx description for Credo package\n"
},
{
"from": "human",
"value": "defmodule Credo.Mixfile do\n use Mix.Project\n\n def project do\n [\n app: :credo,\n version: \"0.6.1\",\n elixir: \"~> 1.1\",\n escript: [main_module: Credo.CLI],\n... | elixir | chosen |
[
{
"from": "system",
"value": ":memo: Add note about required format for DATE\n"
},
{
"from": "human",
"value": "defmodule MealTracker.Commands.Add do\n @moduledoc \"\"\"\n Add an entry to a daily food log.\n\n ```\n track add [options] ENTRY\n ```\n\n By default, it adds the entry to the f... | elixir | chosen |
[
{
"from": "system",
"value": "Use instance's hostname in default reply-to address\n"
},
{
"from": "human",
"value": "defmodule Asciinema.Emails.Email do\n use Bamboo.Phoenix, view: AsciinemaWeb.EmailView\n import Bamboo.Email\n\n def signup_email(email_address, signup_url) do\n hostname = ... | elixir | chosen |
[
{
"from": "system",
"value": "Return max number of repositories\n"
},
{
"from": "human",
"value": "defmodule MrRebase.PageController do\n use MrRebase.Web, :controller\n\n def index(conn, _params) do\n access_token = get_session(conn, :access_token)\n user = get_session(conn, :user)\n\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Use `Mix.raise` insted of `IO.puts` + `System.exit(1)`\n"
},
{
"from": "human",
"value": "ExUnit.start()\n\ncase :gen_tcp.connect('localhost', 6379, []) do\n {:ok, socket} ->\n :gen_tcp.close(socket)\n {:error, reason} ->\n msg = \"Cannot connect to Redis (... | elixir | chosen |
[
{
"from": "system",
"value": "Remove Flash module from base View\n"
},
{
"from": "human",
"value": "defmodule OAuth2Example.View do\n use Phoenix.View, root: \"web/templates\"\n\n # The quoted expression returned by this block is applied\n # to this module and all other views that use this mo... | elixir | chosen |
[
{
"from": "system",
"value": "Revert \"Trim whitespace on EEx engines when Elixir >= 1.1\"\n\nLet's save this for Phoenix v1.1 as it may break test suites\n\nThis reverts commit b820aa122c50358e707738b2d6900fda83593247.\n"
},
{
"from": "human",
"value": "defmodule Phoenix.Template.EExEngine do\n... | elixir | chosen |
[
{
"from": "system",
"value": "Add upload route, basic uploading functionality\n"
},
{
"from": "human",
"value": "# Contains the data submission routes\n\ndefmodule GnServer.Router.Submit do\n\n use Maru.Router\n # plug CORSPlug, origin: [\"*\"]\n\n IO.puts \"Setup submit routing\"\n\n alias ... | elixir | chosen |
[
{
"from": "system",
"value": "Fix down alter notification text migration\n"
},
{
"from": "human",
"value": "defmodule :\"Elixir.Serverboards.Repo.Migrations.Notification-text-body\" do\n use Ecto.Migration\n\n def change do\n alter table :notifications_notification do\n modify :body, :... | elixir | chosen |
[
{
"from": "system",
"value": "Stop showing user id and email after login\n"
},
{
"from": "human",
"value": "defmodule Pullhub.AuthController do\n require Logger\n use Pullhub.Web, :controller\n plug Ueberauth\n\n alias Ueberauth.Strategy.Helpers\n\n def index(conn, _params) do\n render(c... | elixir | chosen |
[
{
"from": "system",
"value": "Remove leftover default for :`strip_fields`"
},
{
"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_character ?\\n\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Add channel hashtag to Slack post\n\nClose #73\n"
},
{
"from": "human",
"value": "defmodule Tilex.Slack do\n def notify(post, developer, _, url) do\n endpoint = System.get_env(\"slack_post_endpoint\")\n text = \"#{developer.username} created a new post <#{url... | elixir | chosen |
[
{
"from": "system",
"value": "Clean up result struct conversion test\n"
},
{
"from": "human",
"value": "defmodule Geolix.Adapter.MMDB2.ResultTest do\n use ExUnit.Case, async: true\n\n alias Geolix.Adapter.MMDB2.Result\n\n defp result_for(type), do: Result.to_struct(type, %{}, nil).__struct__\... | elixir | chosen |
[
{
"from": "system",
"value": "Add start function to main module\n"
},
{
"from": "human",
"value": "defmodule ElixirBase do\nend\n"
},
{
"from": "gpt",
"value": "defmodule ElixirBase do\n @moduledoc \"\"\"\n Entry point of library/application.\n \"\"\"\n\n def start(_type, _args... | elixir | chosen |
[
{
"from": "system",
"value": "Use with instead of case\n"
},
{
"from": "human",
"value": "defmodule Api.Images.Router do\n\n use Plug.Router\n alias Api.Documents.Index\n import Api.RouterUtils\n\n\n plug :match\n plug Api.Documents.ReadableProjectsPlug\n plug :dispatch\n\n get \"/:projec... | elixir | chosen |
[
{
"from": "system",
"value": "Include HTML entities to the applications list\n\nThis should enable the app to run correctly in production.\n\nIt fixes https://github.com/philss/floki/issues/163\n"
},
{
"from": "human",
"value": "defmodule Floki.Mixfile do\n use Mix.Project\n\n @description \"F... | elixir | chosen |
[
{
"from": "system",
"value": "Change regular expresion to avoid trying to replace port in url\n"
},
{
"from": "human",
"value": "defmodule Tesla.Middleware.PathParams do\n @moduledoc \"\"\"\n Use templated URLs with separate params.\n\n Useful when logging or reporting metric per URL.\n\n ##... | elixir | chosen |
[
{
"from": "system",
"value": "Use application vars for the poll creation endpoint\n"
},
{
"from": "human",
"value": "defmodule WildPoll.PollsController do\n use WildPoll.Web, :controller\n\n plug :action\n\n def index(conn, _params) do\n render conn, \"index.html\"\n end\n\n def create(c... | elixir | chosen |
[
{
"from": "system",
"value": "Fix up test answer values that diverged from example\n"
},
{
"from": "human",
"value": "defmodule ProtocolsTests do\n use ExUnit.Case\n import TestHarness\n\n test \"Protocols\" do\n answers = [\n {:multiple, [\"Andre signed up for violin\", \"Darcy enrol... | elixir | chosen |
[
{
"from": "system",
"value": "Revert \"set worker num to 1\"\n\nThis reverts commit 41509609daddbf38200bef650d147466319b3c43.\n"
},
{
"from": "human",
"value": "defmodule WhistlerNewsReader.FeedWorkerSupervisor do\n use Supervisor\n\n @pool_size 1\n\n def start_link do\n Supervisor.start_l... | elixir | chosen |
[
{
"from": "system",
"value": "Rename varialbe s -> status in Mix.Tasks.Cmd\n\nHard to say for sure, without knowing cmd/1 return, what this `s` represents there.\n"
},
{
"from": "human",
"value": "defmodule Mix.Tasks.Cmd do\n use Mix.Task\n\n @shortdoc \"Executes the given command\"\n @recurs... | elixir | chosen |
[
{
"from": "system",
"value": "Update guard clause for consistency\n"
},
{
"from": "human",
"value": "defmodule MarcCx.Markdown do\n def parse(markdown) when markdown |> is_list do\n {metadata, markdown} = parse_metadata(markdown)\n\n html = Earmark.to_html(markdown, %Earmark.Options{\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Update redirect link to AvailablePhoneNumber API\n"
},
{
"from": "human",
"value": "defmodule ExTwilio.AvailablePhoneNumber do\n @moduledoc \"\"\"\n Represents an AvailablePhoneNumber resource in the Twilio API.\n\n - [Twilio docs](https://www.twilio.com/docs/api... | elixir | chosen |
[
{
"from": "system",
"value": "Remove bad tests from supervisor\n\nThese tests suck. They don't add value to the project.\nThey test the behavior of OTP.\nThe only thing that needs to be tested here is that a pid is returned.\n"
},
{
"from": "human",
"value": "defmodule BattleSnake.GameServer.Sup... | elixir | chosen |
[
{
"from": "system",
"value": "Add system port config that was accidentally removed.\n"
},
{
"from": "human",
"value": "use Mix.Config\n\nconfig :slack_coder, SlackCoder.Endpoint,\n secret_key_base: System.get_env(\"SECRET_KEY_BASE\")\n\nconfig :slack_coder, SlackCoder.Repo,\n adapter: Ecto.Ada... | elixir | chosen |
[
{
"from": "system",
"value": "Fix files' exclude pattern in .credo.exs\n\nFixes #11\n"
},
{
"from": "human",
"value": "defmodule Credo.Sources do\n @default_sources_glob ~w(** *.{ex,exs})\n\n def find(%Credo.Config{files: files}) do\n files.included\n |> Enum.flat_map(&find/1)\n |> ex... | elixir | chosen |
[
{
"from": "system",
"value": "Update describe block in Error.BackendTest\n"
},
{
"from": "human",
"value": "defmodule Appsignal.Error.BackendTest do\n use ExUnit.Case, async: true\n import AppsignalTest.Utils\n import ExUnit.CaptureIO\n alias Appsignal.{Error.Backend, Span, Test, WrappedNif}... | elixir | chosen |
[
{
"from": "system",
"value": "Validate against `nil` instead of `\"null\"\n\nDoh...\n\nCloses #90\n"
},
{
"from": "human",
"value": "defmodule Addict.Helper do\n@moduledoc \"\"\"\nAddict Helper functions\n\"\"\"\n\n @doc \"\"\"\n Returns the current user in session in a Hash\n \"\"\"\n def c... | elixir | chosen |
[
{
"from": "system",
"value": "Add metadata for hex.pm and ExDoc\n"
},
{
"from": "human",
"value": "defmodule ExDocEPUB.Mixfile do\n use Mix.Project\n\n def project do\n [app: :ex_doc_epub,\n version: \"0.0.2\",\n elixir: \"~> 1.0\",\n build_embedded: Mix.env == :prod,\n star... | elixir | chosen |
[
{
"from": "system",
"value": "Refactor channel test on all/0\n"
},
{
"from": "human",
"value": "defmodule Poxa.ChannelTest do\n use ExUnit.Case\n import SpawnHelper\n import Poxa.Channel\n doctest Poxa.Channel\n\n test \"occupied? returns false for empty channel\" do\n refute occupied?(\... | elixir | chosen |
[
{
"from": "system",
"value": "Add httpoison and poison as deps for Hard Hat\n"
},
{
"from": "human",
"value": "defmodule HardHat.Mixfile do\n use Mix.Project\n\n def project() do\n [\n app: :hard_hat,\n version: \"0.1.0\",\n build_path: \"../../_build\",\n config_path: \... | elixir | chosen |
[
{
"from": "system",
"value": "Add default values to queen-attack `Queens.new/2`\n\nThey are however, invalid in the context of this exercise. We are adding\nthem so that we can bring back the spec for `Queens.new/0` which was\nremoved wrongly, the spec is supposed to be there to show students this\nstyle of... | elixir | chosen |
[
{
"from": "system",
"value": "Use German locale by default\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\n# is restric... | elixir | chosen |
[
{
"from": "system",
"value": "Use Application.ensure_all_started for starting telemetry in unit test\n"
},
{
"from": "human",
"value": "defmodule Tesla.Middleware.TelemetryTest do\n use ExUnit.Case, async: true\n\n defmodule Client do\n use Tesla\n\n plug Tesla.Middleware.Telemetry\n\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Use path helper to render responses.\n"
},
{
"from": "human",
"value": "defmodule GetAJobEx.JobView do\n use GetAJobEx.Web, :view\n\n def render(\"api.json\", _) do\n %{job: %{number_one: nil,\n number_two: nil,\n status: nil,\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Improve IO.ANSI test case so it can be run on non-terminals correctly\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 :escape_single do\n assert IO.ANSI... | elixir | chosen |
[
{
"from": "system",
"value": "Add some in range assertions\n"
},
{
"from": "human",
"value": "Code.require_file \"../test_helper\", __FILE__\n\ndefmodule RangeTest do\n use ExUnit.Case\n\n test :first do\n assert Range.new(1, 3).first == 1\n end\n\n test :last do\n assert Range.new(1, ... | elixir | chosen |
[
{
"from": "system",
"value": "Reorganize routes to authenticated and public\n"
},
{
"from": "human",
"value": "defmodule ChoicestWeb.Router do\n use ChoicestWeb, :router\n\n pipeline :browser do\n plug :accepts, [\"html\"]\n plug :fetch_session\n plug :fetch_flash\n plug :protect_f... | elixir | chosen |
[
{
"from": "system",
"value": "Set timestamp when changing status.\n"
},
{
"from": "human",
"value": "defmodule CoursePlanner.Students do\n alias CoursePlanner.Repo\n alias CoursePlanner.User\n import Ecto.Query\n\n @students from u in User, where: u.role == \"Student\" and is_nil(u.deleted_a... | elixir | chosen |
[
{
"from": "system",
"value": "Fix test by using correct test method\n"
},
{
"from": "human",
"value": "defmodule Stranger.PageControllerTest do\n use Stranger.ConnCase\n\n test \"GET /\", %{conn: conn} do\n conn = get conn, \"/\"\n assert html_response(conn, 200) =~ \"Hello Stranger\"\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Refactor Nucleotide Count in Elixir\n"
},
{
"from": "human",
"value": "defmodule NucleotideCount do\n @nucleotides [?A, ?C, ?G, ?T]\n\n def count(strand, nucleotide) do\n strand |> Enum.count(fn char -> char == nucleotide end)\n end\n\n def histogram(strand) ... | elixir | chosen |
[
{
"from": "system",
"value": "Fix race condition in getting time.\n"
},
{
"from": "human",
"value": "defmodule Farmbot.Target.Network.WaitForTime do\n use Farmbot.Logger\n nerves_time = case Nerves.Time.FileTime.time() do\n {:error, _} -> NaiveDateTime.utc_now()\n ndt -> ndt\n end\n @n... | elixir | chosen |
[
{
"from": "system",
"value": "Fix keyword ordering on try\n"
},
{
"from": "human",
"value": "Logger.configure_backend(:console, colors: [enabled: false])\nExUnit.start()\n\ndefmodule Logger.Case do\n use ExUnit.CaseTemplate\n import ExUnit.CaptureIO\n\n using _ do\n quote do\n import ... | elixir | chosen |
[
{
"from": "system",
"value": "Update verification elixir requirement to library value\n"
},
{
"from": "human",
"value": "defmodule Geolix.Verification.Mixfile do\n use Mix.Project\n\n def project do\n [\n app: :geolix_verification,\n version: \"0.0.1\",\n elixir: \"~> 1.5\",\... | elixir | chosen |
[
{
"from": "system",
"value": "Add `:include_resolved?` key to Template struct\n"
},
{
"from": "human",
"value": "defmodule Serum.Template do\n @moduledoc \"Defines a struct which stores a template and its information.\"\n\n @type t() :: %__MODULE__{\n type: type(),\n file: bi... | elixir | chosen |
[
{
"from": "system",
"value": "Call function at module level\n"
},
{
"from": "human",
"value": "defmodule Brando.Portfolio.Admin.ImageSeriesForm do\n @moduledoc \"\"\"\n A form for the ImageCategory model. See the `Brando.Form` module for more\n documentation\n \"\"\"\n\n use Brando.Form\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Declare we only need Elixir 1.0 or greater\n"
},
{
"from": "human",
"value": "defmodule ExMagic.Mixfile do\n use Mix.Project\n\n def project do\n [app: :exmagic,\n version: \"0.0.1\",\n elixir: \"~> 1.3\",\n build_embedded: Mix.env == :prod,\n s... | elixir | chosen |
[
{
"from": "system",
"value": "Increase large hash dict tests range\n"
},
{
"from": "human",
"value": "Code.require_file \"../test_helper.exs\", __FILE__\n\ndefmodule HashDictTest do\n use ExUnit.Case, async: true\n\n defp smoke_test(range) do\n dict = Enum.reduce 1..range, HashDict.new, fn(... | elixir | chosen |
[
{
"from": "system",
"value": "Make RepoFetcher broadcast downloaded repositories\n\nEach user can now request to download repositories individually. The\nfetcher broadcasts a list of rendered repository-rows for the client to\ninsert when finish fetching.\n"
},
{
"from": "human",
"value": "defmo... | elixir | chosen |
[
{
"from": "system",
"value": "Fix Regulatory Domain setting not being casted\n"
},
{
"from": "human",
"value": "defmodule FarmbotCore.Config.NetworkInterface do\n @moduledoc false\n\n use Ecto.Schema\n import Ecto.Changeset\n\n schema \"network_interfaces\" do\n field(:name, :string, null... | elixir | chosen |
[
{
"from": "system",
"value": "Rework %Free with more explicit structure\n"
},
{
"from": "human",
"value": "defmodule Algae.Free do\n use Quark.Partial\n\n @type t :: Algae.Free.Pure.t | Algae.Free.Wrap.t\n\n defmodule Pure do\n @type t :: %Algae.Free.Pure{pure: any}\n defstruct [:pure]\... | elixir | chosen |
[
{
"from": "system",
"value": "Increase SNP density bin size\n"
},
{
"from": "human",
"value": "defmodule GnServer.Router.Biodalliance.SNP do\n\n alias GnServer.Biodalliance.SNPDensity, as: SNPDensity\n\n use Maru.Router\n plug CORSPlug, headers: [\"Range\", \"If-None-Match\", \"Accept-Ranges\... | elixir | chosen |
[
{
"from": "system",
"value": "Fix filter by weight for TpRatingPlan"
},
{
"from": "human",
"value": "defmodule CgratesWebJsonapi.TpRatingPlanController do\n use CgratesWebJsonapi.Web, :controller\n\n use CgratesWebJsonapi.Web, :controller\n use JaResource\n use CgratesWebJsonapi.TpSubresourc... | elixir | chosen |
[
{
"from": "system",
"value": "Update slug generation to use model helper\n"
},
{
"from": "human",
"value": "defmodule CodeCorps.Skill do\n use CodeCorps.Web, :model\n import CodeCorps.Validators.SlugValidator\n alias Inflex\n\n schema \"skills\" do\n field :title, :string\n field :desc... | elixir | chosen |
[
{
"from": "system",
"value": "Make code loading compatible and deprecation free on old and new elixirs\n"
},
{
"from": "human",
"value": "defmodule Watcher do\n use GenServer\n\n def start_link() do\n GenServer.start_link(__MODULE__, dirs: [\"lib/koans\"])\n end\n\n def init(args) do\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Remove unused variable for UI.wrap_at\n"
},
{
"from": "human",
"value": "defmodule Credo.CLI.Output.UI do\n\n @edge \"┃\"\n\n def edge(color, indent \\\\ 2) when is_integer(indent) do\n [:reset, color, @edge |> String.ljust(indent)]\n end\n\n defdelegate puts... | elixir | chosen |
[
{
"from": "system",
"value": "Change format of data sent via channel\n"
},
{
"from": "human",
"value": "defmodule EmojiMap.TweetConsumer do\n @moduledoc \"\"\"\n The consumer side. Subscribes to the producer once it is started so when\n it crashes and the supervisor restarts it, it automatica... | elixir | chosen |
[
{
"from": "system",
"value": "Change data to product in JSON attribute\n"
},
{
"from": "human",
"value": "defmodule Api.ProductView do\n use Api.Web, :view\n\n def render(\"index.json\", %{products: products}) do\n %{data: render_many(products, Api.ProductView, \"product.json\")}\n end\n\n... | elixir | chosen |
[
{
"from": "system",
"value": "Remove the trailing newline out of the Mix package description\n\nThis newline carries over the application description, which tends to look off\nthen.\n"
},
{
"from": "human",
"value": "defmodule Redix.Mixfile do\n use Mix.Project\n\n @description \"\"\"\n Super... | elixir | chosen |
[
{
"from": "system",
"value": "Use a more reasonable setup for Patch changesets\n"
},
{
"from": "human",
"value": "defmodule Aelita2.Patch do\n use Aelita2.Web, :model\n\n alias Aelita2.Patch\n\n schema \"patches\" do\n belongs_to :project, Aelita2.Project\n belongs_to :batch, Aelita2.Ba... | elixir | chosen |
[
{
"from": "system",
"value": "Use max for ctime/mtime change detection\n"
},
{
"from": "human",
"value": "defmodule Phoenix.CodeReloader.ChangeDetector do\n use GenServer\n\n @moduledoc \"\"\"\n Watches paths for ctime changes and calls MFA\n \"\"\"\n\n def start_link(paths, mfa, poll_every... | elixir | chosen |
[
{
"from": "system",
"value": "Add new test in OntagCore.Accounts\n"
},
{
"from": "human",
"value": "defmodule OntagCore.AccountsTest do\n use OntagCore.DataCase\n alias OntagCore.Accounts\n @moduledoc \"\"\"\n Test for `OntagCore.Accounts`\n \"\"\"\n\n test \"Create a user without credenti... | elixir | chosen |
[
{
"from": "system",
"value": "Add test for partially applying an internal macro.\n"
},
{
"from": "human",
"value": "defmodule Elixir::PartialApplicationTest do\n use ExUnit::Case\n\n def test_partial_with_simple_call_and_one_item do\n fun = minus(10, _)\n 5 = fun.(5)\n 7 = fun.(3)\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Remove unused alias on DenyHandler\n"
},
{
"from": "human",
"value": "defmodule HTTParrot.DenyHandler do\n @moduledoc \"\"\"\n Returns a simple HTML page.\n \"\"\"\n alias HTTParrot.GeneralRequestInfo\n\n def init(_transport, _req, _opts) do\n {:upgrade, :pr... | elixir | chosen |
[
{
"from": "system",
"value": "Normalize the word lookup to lowercase letters\n"
},
{
"from": "human",
"value": "defmodule LexibombServer.WordList do\n @moduledoc \"\"\"\n Manages access to the list of valid words based on Mendel Leo Cooper's\n _[Yet Another Word List](https://github.com/elast... | elixir | chosen |
[
{
"from": "system",
"value": "Fix broken link in generated comments."
},
{
"from": "human",
"value": "defmodule Phoenix do\n use Application\n\n # See http://elixir-lang.org/docs/stable/Application.Behaviour.html\n # for more information on OTP Applications\n def start(_type, _args) do\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Fix custom tasks by resolving config before validating it\n"
},
{
"from": "human",
"value": "defmodule Credo.MainProcess do\n @moduledoc \"\"\"\n This module defines all Tasks which make up the execution of Credo.\n\n Each task receives an Execution struct and re... | elixir | chosen |
[
{
"from": "system",
"value": "Update 10000ft module to ignore request if 10000ft is not setup\n"
},
{
"from": "human",
"value": "defmodule TenThousandFeet do\n @api_url Application.get_env(:slax, :ten_thousand_feet)[:api_endpoint]\n @auth_token Application.get_env(:slax, :ten_thousand_feet)[:a... | elixir | chosen |
[
{
"from": "system",
"value": "Check for rootfs-additions before calling rel2fw\n"
},
{
"from": "human",
"value": "defmodule Mix.Tasks.Firmware do\n use Mix.Task\n import Mix.Nerves.Utils\n\n @switches [verbosity: :string]\n\n def run(args) do\n {opts, _, _} = OptionParser.parse(args)\n\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Print exec struct after validating config in debug mode\n"
},
{
"from": "human",
"value": "defmodule Credo.Execution.Task.ValidateConfig do\n use Credo.Execution.Task\n\n alias Credo.CLI.Output.UI\n\n def call(exec, _opts) do\n exec\n |> validate_checks()\n... | elixir | chosen |
[
{
"from": "system",
"value": "Add Endpoint as a worker\n"
},
{
"from": "human",
"value": "defmodule OAuth2Example do\n use Application\n\n # See http://elixir-lang.org/docs/stable/elixir/Application.html\n # for more information on OTP Applications\n def start(_type, _args) do\n import Su... | elixir | chosen |
[
{
"from": "system",
"value": "Include a query into the request path\n"
},
{
"from": "human",
"value": "defmodule PactElixir.InteractionTest do\n use ExUnit.Case\n import PactElixir.Dsl\n\n test \"Interactions to json\" do\n expected_interactions_json =\n Poison.decode!(\"\"\"\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Stop using deprecated macro-mode Phoenix.ConnTest, instead import\n"
},
{
"from": "human",
"value": "defmodule BorsNG.ConnCase do\n @moduledoc \"\"\"\n This module defines the test case to be used by\n tests that require setting up a connection.\n\n Such tests r... | elixir | chosen |
[
{
"from": "system",
"value": "Make the public URL configurable as a env\n"
},
{
"from": "human",
"value": "use Mix.Config\n\nconfig :aelita2, Aelita2,\n activation_phrase: \"bors r+\"\n\nconfig :aelita2, Aelita2.Batcher,\n run: true\n\nconfig :aelita2, Aelita2.Endpoint,\n http: [port: {:syste... | elixir | chosen |
[
{
"from": "system",
"value": "Split out word normalization and YAWL loading functions\n"
},
{
"from": "human",
"value": "defmodule LexibombServer.WordList do\n @moduledoc \"\"\"\n Manages access to the list of valid words based on Mendel Leo Cooper's\n _[Yet Another Word List](https://github.... | elixir | chosen |
[
{
"from": "system",
"value": "Add test for parsing deep nested map\n"
},
{
"from": "human",
"value": "defmodule Jsox.ParserTest.MapTest do\n\n use ExUnit.Case, async: true\n\n import Jsox.Parser\n\n test \"parsing empty map\" do\n assert parse(~s({})) === {:ok, %{}}\n end\n\n test \"pars... | elixir | chosen |
[
{
"from": "system",
"value": "Remove `ex_doc` for prod env\n\nSigned-off-by: chatgris <f9469d12bf3d131e7aae80be27ccfe58aa9db1f1@af83.com>\n"
},
{
"from": "human",
"value": "defmodule Funnel.Mixfile do\n use Mix.Project\n\n def project do\n [ app: :funnel,\n version: \"0.0.1\",\n d... | elixir | chosen |
[
{
"from": "system",
"value": "Remove wrong todo from `Account.Service`.\n"
},
{
"from": "human",
"value": "defmodule HELM.Account.Service do\n use GenServer\n\n alias HELM.Account\n\n alias HELF.Broker\n alias HELF.Router\n\n def start_link(state \\\\ []) do\n Router.register(\"account.c... | elixir | chosen |
[
{
"from": "system",
"value": "Improve description of the gettext usage"
},
{
"from": "human",
"value": "defmodule <%= web_namespace %>.ErrorHelpers do\n @moduledoc \"\"\"\n Conveniences for translating and building error messages.\n \"\"\"\n<%= if html do %>\n use Phoenix.HTML\n\n @doc \"\"... | elixir | chosen |
[
{
"from": "system",
"value": "Fix files attribute to not include object files\n"
},
{
"from": "human",
"value": "defmodule Mix.Tasks.Compile.WpaSupplicant do\n @shortdoc \"Compiles the wpa_ex port binary\"\n def run(_) do\n 0=Mix.Shell.IO.cmd(\"make priv/wpa_ex\")\n end\nend\n\ndefmodule W... | elixir | chosen |
[
{
"from": "system",
"value": "Fix issues creating users with no E-mail provider configured\n"
},
{
"from": "human",
"value": "defmodule Addict.Mailers.Mailgun do\n @moduledoc \"\"\"\n Wrapper for Mailgun client that handles eventual errors.\n \"\"\"\n require Logger\n use Mailgun.Client, do... | elixir | chosen |
[
{
"from": "system",
"value": "Raise so we get proper error report"
},
{
"from": "human",
"value": "defmodule Phoenix.Endpoint.Server do\n # The supervisor for the underlying handlers.\n @moduledoc false\n\n use Supervisor\n require Logger\n\n def start_link(otp_app, endpoint, opts \\\\ []) ... | elixir | chosen |
[
{
"from": "system",
"value": "Use bigger range for less chance of collision\n"
},
{
"from": "human",
"value": "defmodule AtomStyleTweaks.Factory do\n use ExMachina.Ecto, repo: AtomStyleTweaks.Repo\n\n alias FakerElixir, as: Faker\n\n alias AtomStyleTweaks.Tweak\n alias AtomStyleTweaks.User\n... | elixir | chosen |
[
{
"from": "system",
"value": "Add location model required restrictions\n"
},
{
"from": "human",
"value": "defmodule Classlab.Repo.Migrations.CreateLocation do\n use Ecto.Migration\n\n def change do\n create table(:locations) do\n add :name, :string\n add :address_line_1, :string\n... | elixir | chosen |
[
{
"from": "system",
"value": "Add additional large numbers test\n"
},
{
"from": "human",
"value": "defmodule Credo.Check.Readability.LargeNumbersTest do\n use Credo.TestHelper\n\n @described_check Credo.Check.Readability.LargeNumbers\n\n @moduletag :to_be_implemented\n\n test \"it should NOT... | elixir | chosen |
[
{
"from": "system",
"value": "Simplify hound session server to handle only driver info mgmt\n"
},
{
"from": "human",
"value": "defmodule Hound.SessionServer do\n use GenServer.Behaviour\n\n def start_link(options // []) do\n state = [\n sessions: [],\n options: [\n connecti... | elixir | chosen |
[
{
"from": "system",
"value": "Remove unused PhoenixOptionsTest alias that was causing error on test suite run\n"
},
{
"from": "human",
"value": "defmodule Phoenix.Router.OptionsTest do\n use ExUnit.Case, async: false\n alias Phoenix.Adapters.Cowboy\n alias Phoenix.Router.Options\n alias Phoe... | elixir | chosen |
[
{
"from": "system",
"value": "Remove trailing whitespace in generated file"
},
{
"from": "human",
"value": "defmodule <%= application_module %>.ErrorHelpers do\n @moduledoc \"\"\"\n Conveniences for translating and building error messages.\n \"\"\"\n <%= if html do %>\n use Phoenix.HTML\n\n... | elixir | chosen |
[
{
"from": "system",
"value": "Use System.stacktrace for older Elixir versions\n"
},
{
"from": "human",
"value": "defmodule Tesla.Middleware.Timeout do\n @moduledoc \"\"\"\n Timeout http request after X seconds.\n\n ## Example\n\n ```\n defmodule MyClient do\n use Tesla\n\n plug Tesla.... | elixir | chosen |
[
{
"from": "system",
"value": "Fix word usage in `ConnCase` docs.\n\nFunctionality is already plural."
},
{
"from": "human",
"value": "defmodule <%= application_module %>.ConnCase do\n @moduledoc \"\"\"\n This module defines the test case to be used by\n tests that require setting up a connect... | elixir | chosen |
[
{
"from": "system",
"value": "Tweak handling of 204 responses"
},
{
"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.\n \"\"\"\n... | elixir | chosen |
[
{
"from": "system",
"value": "Remove catch all from show/2\n\n - The catch all in the show/2 makes dialyzer unhappy as the type is\n covered by the two previous clauses.\n"
},
{
"from": "human",
"value": "defmodule ErlefWeb.WorkingGroupController do\n use ErlefWeb, :controller\n\n alias Erlef.... | elixir | chosen |
[
{
"from": "system",
"value": "Use symbolic status code for clarity.\n"
},
{
"from": "human",
"value": "defmodule GetAJobEx.JobController do\n use GetAJobEx.Web, :controller\n alias GetAJobEx.Repo\n alias GetAJobEx.Job\n\n plug :action\n\n def index(conn, _params) do\n jobs = Repo.all(Job... | elixir | chosen |
[
{
"from": "system",
"value": "Add tests for escaped fields and force_quote\n"
},
{
"from": "human",
"value": "defmodule EncodingTests.EscapedFieldsTest do\n use ExUnit.Case\n alias CSV.Encoding.Encoder\n\n test \"encodes streams to csv strings and escapes them\" do\n result = Encoder.encod... | elixir | chosen |
[
{
"from": "system",
"value": "Fix QuestionView. Add \"answer\" field\n"
},
{
"from": "human",
"value": "defmodule Core.QuestionView do\n use Core.Web, :view\n\n def render(\"index.json\", %{questions: questions}) do\n render_many(questions, Core.QuestionView, \"summary.json\")\n end\n\n d... | elixir | chosen |
[
{
"from": "system",
"value": "Correct bad moduledoc in CodeCorps.Plug.DataToAttributes\n"
},
{
"from": "human",
"value": "defmodule CodeCorpsWeb.Plug.DataToAttributes do\n @moduledoc \"\"\"\n Puts authenticated Guardian user into conn.assigns[:current_user]\n \"\"\"\n\n alias Plug.Conn\n\n ... | elixir | chosen |
[
{
"from": "system",
"value": "Allow any Poison version greater than 2.0 for backwards compatibility\n"
},
{
"from": "human",
"value": "defmodule Bottler.Mixfile do\n use Mix.Project\n\n def project do\n [app: :bottler,\n version: \"0.5.0\",\n elixir: \">= 1.0.0\",\n package: pac... | elixir | chosen |
[
{
"from": "system",
"value": "Fix 'get_from_db_or_scrape' after Periodic refactoring\n"
},
{
"from": "human",
"value": "defmodule Krihelinator.Controllers.Helpers do\n @moduledoc \"\"\"\n Common helpers for the controllers.\n \"\"\"\n\n alias Krihelinator.{GithubRepo, Repo, Scraper}\n requi... | elixir | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.