commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
4613a05cb00ee632d77544245c19d80512d33f61 | samples/issues/lib/issues/github.ex | samples/issues/lib/issues/github.ex | defmodule Issues.GitHub do
def fetch_issues(user, project) do
url = issues_url(user, project)
# TODO: add user agent, but verify and understand the data structure
# passed as a parameter first
response = HTTPoison.get(url)
handle_response(response)
end
def issues_url(user, project) do
"ht... | defmodule Issues.GitHub do
def fetch_issues(user, project) do
issues_url(user, project)
# TODO: add user agent, but verify and understand the data structure
# passed as a parameter first
|> HTTPoison.get
|> handle_response
end
def issues_url(user, project) do
"https://api.github.com/repos... | Refactor code to use pipeline operator | Refactor code to use pipeline operator
| Elixir | mit | thbar/elixir-playground |
11c842ce6628966650359ad84b6c2f3841f77464 | web/views/book_view.ex | web/views/book_view.ex | defmodule MicoseBackend.BookView do
use MicoseBackend.Web, :view
def render("index.json", %{books: books}) do
%{data: render_many(books, MicoseBackend.BookView, "book.json")}
end
def render("show.json", %{book: book}) do
%{data: render_one(book, MicoseBackend.BookView, "book.json")}
end
def rende... | defmodule MicoseBackend.BookView do
use MicoseBackend.Web, :view
def render("index.json", %{books: books}) do
%{data: render_many(books, MicoseBackend.BookView, "book.json")}
end
def render("show.json", %{book: book}) do
%{data: render_one(book, MicoseBackend.BookView, "book.json")}
end
def rende... | Fix null exception in book view when no classification is present. | Fix null exception in book view when no classification is present.
| Elixir | apache-2.0 | manchaques/micose-backend,manchaques/micose-backend |
27beda2e1b21bb0dce49cc8537492cf1c513fc7b | test/plugin_test.exs | test/plugin_test.exs | defmodule PluginTest do
use ExUnit.Case, async: true
test "can fetch a list of plugins" do
active = [
ReleaseManager.Plugin.Consolidation,
ReleaseManager.Plugin.Conform
]
assert active == ReleaseManager.Plugin.load_all
end
end | defmodule PluginTest do
use ExUnit.Case, async: true
test "can fetch a list of plugins" do
active = [
ReleaseManager.Plugin.Consolidation,
ReleaseManager.Plugin.Conform
] |> Enum.sort
assert active == ReleaseManager.Plugin.load_all |> Enum.sort
end
end | Remove lack of determinism in plugin test | Remove lack of determinism in plugin test
| Elixir | mit | HashNuke/exrm,coonce/exrm,beni55/exrm,skirino/exrm,keichan34/exrm,xerions/exrm,liveforeverx/exrm,manukall/exrm,GalaxyGorilla/exrm,adam12/exrm,MSNexploder/exrm,bitwalker/exrm,thz/exrm,ymmtmsys/exrm,appunite/exrm,umatomba/exrm,ContentSafe/exrm |
3a1c4d9ec4e0cbc487a8a31e4cb9267ffc788726 | lib/sanity.ex | lib/sanity.ex | defmodule Rockside.Sanity do
import Plug.Conn
# defmodule Doc.ViaDSL do
# def doc do
# use WebAssembly
# builder do html do
# head do
# meta http_equiv: "Content-Type", content: "text/html"
# title "foo"
# end
# body "foo"
# end end
# end
# end
def ini... | defmodule Rockside.Sanity do
import Plug.Conn
defmodule Doc.ViaDSL do
def doc do
use WebAssembly
builder do html do
head do
meta http_equiv: "Content-Type", content: "text/html"
title "foo"
end
body "foo"
end end
end
end
def init(opts), do:... | Revert "send only text response - for benchmark" | Revert "send only text response - for benchmark"
This reverts commit c22968c8a8afdaea5db5a1f9b2fa3584b988c8af.
| Elixir | bsd-2-clause | herenowcoder/rockside |
11260b5dd9db7add605f373b49641bfa78710f4d | apps/producer/lib/producer/worker.ex | apps/producer/lib/producer/worker.ex | defmodule Producer.Worker do
use ExActor.GenServer
# Just start up the evaluation
defstart start_link(module) do
pid = spawn_link fn ->
module.get
|> UnshorteningPool.collect
end
initial_state(pid)
end
end
| defmodule Producer.Worker do
use ExActor.GenServer
# Just start up the evaluation
defstart start_link(module) do
pid = spawn_link fn ->
module.get
|> Enum.into(UnshorteningPool.pool)
end
initial_state(pid)
end
end
| Use the new collectable interface to pool | Use the new collectable interface to pool
| Elixir | mit | joekain/ds_p9 |
0737dc0eadf584c02276c37396e6291d5073a632 | web/router.ex | web/router.ex | defmodule Tokenizer.Router do
@moduledoc """
The router provides a set of macros for generating routes
that dispatch to specific controllers and actions.
Those macros are named after HTTP verbs.
More info at: https://hexdocs.pm/phoenix/Phoenix.Router.html
"""
use Tokenizer.Web, :router
pipeline :api ... | defmodule Tokenizer.Router do
@moduledoc """
The router provides a set of macros for generating routes
that dispatch to specific controllers and actions.
Those macros are named after HTTP verbs.
More info at: https://hexdocs.pm/phoenix/Phoenix.Router.html
"""
use Tokenizer.Web, :router
pipeline :publ... | Split API in two parts | Split API in two parts
| Elixir | mit | Nebo15/tokenizer.api |
b2d25e8a83fd502e3772c986daa009fd07d85534 | apps/hell/lib/credo/refuse_trailing_blank_line.ex | apps/hell/lib/credo/refuse_trailing_blank_line.ex | defmodule Credo.Check.Readability.RefuseTrailingBlankLine do
@moduledoc """
Files should NOT end in a trailing blank line.
"""
@explanation [check: @moduledoc]
use Credo.Check, base_priority: :low
def run(%SourceFile{lines: lines} = source_file, params \\ []) do
issue_meta = IssueMeta.for(source_file... | if Code.ensure_loaded?(Credo) do
defmodule Credo.Check.Readability.RefuseTrailingBlankLine do
@moduledoc """
Files should NOT end in a trailing blank line.
"""
@explanation [check: @moduledoc]
use Credo.Check, base_priority: :low
def run(%SourceFile{lines: lines} = source_file, params \\ []... | Stop trying to use Credo on prod env | Stop trying to use Credo on prod env
| Elixir | agpl-3.0 | renatomassaro/Helix,renatomassaro/Helix,HackerExperience/Helix,mememori/Helix,HackerExperience/Helix |
5fefd6c18b712b09cc3300a1d832475b34cef3a0 | lib/ex_twilio/resources/participant.ex | lib/ex_twilio/resources/participant.ex | defmodule ExTwilio.Participant do
@moduledoc """
Represents an Participant resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/api/rest/participants)
## Examples
Since Participants belong to Conferences in the Twilio API, you must pass a
conference to each function in this module. For... | defmodule ExTwilio.Participant do
@moduledoc """
Represents an Participant resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/voice/api/conference-participant-resource)
## Examples
Since Participants belong to Conferences in the Twilio API, you must pass a
conference to each function... | Update broken link to Participant API | Update broken link to Participant API
| Elixir | mit | danielberkompas/ex_twilio,danielberkompas/ex_twilio |
43cf312c43bf768b6edba4a032668c6005a6ca29 | test/phoenix/template_engine_test.exs | test/phoenix/template_engine_test.exs | defmodule Appsignal.Phoenix.TemplateEngineTest do
use ExUnit.Case, async: true
test "Whether the template instrumenter compiles files" do
file = "test/fixtures/test.txt.eex"
assert {_, _, _} = Appsignal.Phoenix.Template.EExEngine.compile(file, "test.txt")
end
end
| defmodule Appsignal.Phoenix.TemplateEngineTest do
use ExUnit.Case, async: true
test "Whether the template instrumenter compiles files" do
path = "test/fixtures/test.txt.eex"
assert {_, _, [_, "render.phoenix_template", ^path, _]} =
Appsignal.Phoenix.Template.EExEngine.compile(path, "test.txt")
end
... | Add regression test for using paths in TemplateInstrumenter | Add regression test for using paths in TemplateInstrumenter
| Elixir | mit | appsignal/appsignal-elixir,appsignal/appsignal-elixir,appsignal/appsignal-elixir,appsignal/appsignal-elixir |
82a0761e4314c1276a58b4f5a735db6ab38c67cc | web/controllers/calendar_controller.ex | web/controllers/calendar_controller.ex | defmodule CalgyApi.CalendarController do
use CalgyApi.Web, :controller
alias CalgyApi.Calendar
def create(conn, _) do
{:ok, calendar} = Repo.insert(%Calendar{})
conn
|> put_status(201)
|> render("calendar.json", %{calendar: calendar})
end
def show(conn, %{"id" => id}) do
with {:ok, uuid... | defmodule CalgyApi.CalendarController do
use CalgyApi.Web, :controller
alias CalgyApi.Calendar
def create(conn, _) do
{:ok, calendar} = Repo.insert(%Calendar{})
conn
|> put_status(201)
|> render("calendar.json", %{calendar: calendar})
end
def show(conn, %{"id" => id}) do
with {:ok, uuid... | Fix unused variable in calendar show endpoint, use casted value in query | Fix unused variable in calendar show endpoint, use casted value in query
| Elixir | mit | calgy/calgy-api,calgy/calgy,calgy/calgy-api |
bc768a6cc33a11ba99db69673d6bef3d4a2d1a27 | lib/erlef/crypto.ex | lib/erlef/crypto.ex | defmodule Erlef.Crypto do
@moduledoc false
def compare(str1, str2), do: Plug.Crypto.secure_compare(str1, str2)
def hmac_encode(key, data) do
:hmac
|> :crypto.mac(:sha3_256, key, data)
|> Base.encode16(case: :lower)
end
end
| defmodule Erlef.Crypto do
@moduledoc """
Erlef.Crypto
Provides wrappers around common cryptographic operations and dependencies
"""
@doc """
Compares two strings using `Plug.Crypto.secure_compare/2` to mitigate timing attacks.
"""
@spec compare(String.t(), String.t()) :: boolean()
def compare(str1, ... | Add simple tests and clean up Erlef.Crypto | Add simple tests and clean up Erlef.Crypto
| Elixir | apache-2.0 | simplabs/website,simplabs/website |
be716ebebc19c5e6261a90051e6ae9247646f1a0 | web/models/retro.ex | web/models/retro.ex | defmodule RemoteRetro.Retro do
@moduledoc false
use RemoteRetro.Web, :model
@primary_key {:id, :binary_id, autogenerate: true}
schema "retros" do
has_many :participations, RemoteRetro.Participation
timestamps()
end
end
| defmodule RemoteRetro.Retro do
@moduledoc false
use RemoteRetro.Web, :model
@primary_key {:id, :binary_id, autogenerate: true}
schema "retros" do
has_many :participations, RemoteRetro.Participation
field :stage, :string, read_after_writes: true
timestamps()
end
end
| Add stage field to Retro model | Add stage field to Retro model
| Elixir | mit | samdec11/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro |
1511a02bce32167e5d01425ae529c2f9d61c0e6e | lib/leather_web/channels/user_socket.ex | lib/leather_web/channels/user_socket.ex | defmodule LeatherWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "accounts:*", LeatherWeb.AccountChannel
channel "dashboard", LeatherWeb.DashboardChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are pa... | defmodule LeatherWeb.UserSocket do
use Phoenix.Socket
# Channels
channel "accounts:*", LeatherWeb.AccountChannel
channel "dashboard", LeatherWeb.DashboardChannel
# Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
@max_age 2 * 7 * 24 * 60... | Add user_id to socket on connect. | Add user_id to socket on connect.
| Elixir | mit | nicksergeant/leather,nicksergeant/leather |
a24b7305c574033a1b471ec9c753d7a58b47f918 | config/config.exs | config/config.exs | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :battletracker, Battletracker.Endpoint,
url: [host... | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :battletracker, Battletracker.Endpoint,
url: [host... | Set socket host for production env | Set socket host for production env
| Elixir | mit | Thrashmandicoot/Battletracker-Phoenix |
d43ccf39773a6695595d5499d8fb318d3fe0a380 | clients/books/mix.exs | clients/books/mix.exs | defmodule GoogleApi.Books.V1.Mixfile do
use Mix.Project
@version "0.0.1"
def project() do
[
app: :google_api_books,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package... | defmodule GoogleApi.Books.V1.Mixfile do
use Mix.Project
@version "0.0.1"
def project() do
[
app: :google_api_books,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package... | Update books with homepage url | Update books with homepage url
| Elixir | apache-2.0 | googleapis/elixir-google-api,googleapis/elixir-google-api,googleapis/elixir-google-api |
23d55d78fdac7df600fa2c093efaa67688e219b3 | test/support/appsignal/wrapped_nif.ex | test/support/appsignal/wrapped_nif.ex | defmodule Appsignal.WrappedNif do
alias Appsignal.Nif
def start_link do
{:ok, pid} = Agent.start_link(fn -> %{create_root_span: []} end, name: __MODULE__)
end
def create_root_span(name) do
add(:create_root_span, name)
Nif.create_root_span(name)
end
def get(key) do
Agent.get(__MODULE__, &M... | defmodule Appsignal.WrappedNif do
alias Appsignal.Nif
def start_link do
{:ok, pid} = Agent.start_link(fn -> %{create_root_span: []} end, name: __MODULE__)
end
def create_root_span(name) do
add(:create_root_span, name)
Nif.create_root_span(name)
end
def get(key) do
Agent.get(__MODULE__, &M... | Use Map.fetch!/2 instead of Map.get/2 in WrappedNif | Use Map.fetch!/2 instead of Map.get/2 in WrappedNif
| Elixir | mit | appsignal/appsignal-elixir,appsignal/appsignal-elixir,appsignal/appsignal-elixir,appsignal/appsignal-elixir |
ff2ed66399168023ee05820656f2d1ebeefde20d | test/parallel_test.exs | test/parallel_test.exs | Code.require_file "test_helper.exs", __DIR__
defmodule ParallelTest do
use ExUnit.Case
import Parallel
test :map do
assert_map 1..10
end
test :random_map do
:random.seed(:erlang.now())
Enum.each 1..50, fn(_) ->
list = Enum.map 1..50, function :random.uniform/1
assert_map list
e... | Code.require_file "test_helper.exs", __DIR__
defmodule ParallelTest do
use ExUnit.Case
import Parallel
test :map do
assert_map 1..10
end
test :random_map do
:random.seed(:erlang.now())
Enum.each 1..50, fn(_) ->
list = Enum.map 1..50, function :random.uniform/1
assert_map list
e... | Clean up each/2 test case | Clean up each/2 test case
| Elixir | mit | eproxus/parallel,kidaa/parallel-1 |
7767d4b150870e664aa54a98f7bb183ee3cea9e9 | test/controllers/user_controller_test.exs | test/controllers/user_controller_test.exs | defmodule What3things.UserControllerTest do
use What3things.ConnCase, async: true
alias What3things.{Repo, User}
@dummy_user %{name: "Ivan", age_range: "under_forty", postcode: "sw99ng", email: "ivan@email.com"}
@dummy_user_stringified %{"name" => "Ivan", "age_range" => "under_forty", "postcode" => "sw99ng", "... | defmodule What3things.UserControllerTest do
use What3things.ConnCase, async: true
alias What3things.{Repo, User}
@dummy_user %{name: "Ivan", age_range: "under_forty", postcode: "sw99ng", email: "ivan@email.com"}
@dummy_user_stringified %{"name" => "Ivan", "age_range" => "under_forty", "postcode" => "sw99ng", "... | Fix breaking test in user controller. | Fix breaking test in user controller.
| Elixir | mit | ParkisonsUK-fuse/what3things,ParkisonsUK-fuse/what3things |
cb1f737db295a602f0662271b7c58210db733c0c | lib/repo/fetcher.ex | lib/repo/fetcher.ex | defmodule OpenMirego.Repo.Fetcher do
alias Poison, as: JSON
alias OpenMirego.Repo.Serializer
@user_agent {:"User-Agent", "Open Mirego Website"}
@api_key Application.get_env(:github, OpenMirego.Router)[:api_key]
@auth "#{@api_key}:x-oauth-basic"
@org "mirego"
@url "https://#{@auth}@api.github.com/orgs/#{@... | defmodule OpenMirego.Repo.Fetcher do
alias Poison, as: JSON
alias OpenMirego.Repo.Serializer
@user_agent {:"User-Agent", "Open Mirego Website"}
@org "mirego"
def fetch do
cached_body
|> JSON.decode!
|> Serializer.serialize
end
defp cached_body do
ConCache.get_or_store(:github, "#{@org}:... | Move Application.get_env out of module variable evaluated before env | Move Application.get_env out of module variable evaluated before env
| Elixir | bsd-3-clause | mirego/mirego-open-web,mirego/mirego-open-web |
d392c6cdbdd207b9c22c2942825b5f6d403834e4 | lib/credo/execution/task/validate_config.ex | lib/credo/execution/task/validate_config.ex | defmodule Credo.Execution.Task.ValidateConfig do
use Credo.Execution.Task
def call(exec, _opts) do
exec
end
end
| defmodule Credo.Execution.Task.ValidateConfig do
use Credo.Execution.Task
alias Credo.CLI.Output.UI
def call(exec, _opts) do
exec
|> validate_checks()
|> remove_missing_checks()
end
defp validate_checks(%Execution{checks: checks} = exec) do
Enum.each(checks, &warn_if_check_missing/1)
e... | Remove non-existing checks from Execution | Remove non-existing checks from Execution
| Elixir | mit | rrrene/credo,rrrene/credo |
f5f83261d49acb152ed2bc499b248a7d13476969 | test/test_helper.exs | test/test_helper.exs | System.put_env("NERVES_PATH", File.cwd!())
File.cwd!()
|> Path.join("test_tmp")
|> File.rm_rf()
Application.start(:logger)
Logger.configure(handle_sasl_reports: true)
Logger.remove_backend(:console)
Code.compiler_options(ignore_module_conflict: true)
Mix.shell(Mix.Shell.Process)
System.put_env("NERVES_LOG_DISABLE_P... | System.put_env("NERVES_PATH", File.cwd!())
File.cwd!()
|> Path.join("test_tmp")
|> File.rm_rf()
Application.start(:logger)
Logger.configure(handle_sasl_reports: true)
Logger.remove_backend(:console)
Code.compiler_options(ignore_module_conflict: true)
Mix.shell(Mix.Shell.Process)
System.put_env("NERVES_LOG_DISABLE_P... | Fix issue with env_test failing randomly. | Fix issue with env_test failing randomly.
The mix project stack has :nerves as the top level project. Unload the stack so it can be ready to load a new mix file from a fixture. This prevents the first call to load_env from failing.
| Elixir | apache-2.0 | nerves-project/nerves,nerves-project/nerves |
616b87a8c165470e0bec75a752c5ebf165e6d7d9 | mix.exs | mix.exs | defmodule Rapport.Mixfile do
use Mix.Project
def project do
[
app: :rapport,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
description: desc(),
package: package(),
test_coverage: [tool: ExCoveralls]
]
end
# Run "mix... | defmodule Rapport.Mixfile do
use Mix.Project
def project do
[
app: :rapport,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
description: desc(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env:... | Add preferred cli env for Excoveralls | Add preferred cli env for Excoveralls
| Elixir | mit | ricn/rapport |
fc3bc94ce5d782268f6767ef4a64c4a00c091a6f | lib/elixir/test/doc_test.exs | lib/elixir/test/doc_test.exs | ExUnit.start []
defmodule KernelTest do
use ExUnit.Case, async: true
doctest Access
doctest Atom
doctest Base
doctest Bitwise
doctest Code
doctest Collectable
doctest Enum
doctest Exception
doctest Float
doctest Inspect
doctest Inspect.Algebra
doctest Integer
doctest IO
doctest IO.ANSI
... | ExUnit.start []
defmodule KernelTest do
use ExUnit.Case, async: true
doctest Access
doctest Atom
doctest Base
doctest Bitwise, import: true
doctest Code
doctest Collectable
doctest Enum
doctest Exception
doctest Float
doctest Inspect
doctest Inspect.Algebra
doctest Integer
doctest IO
doc... | Add import flag to Bitwise | Add import flag to Bitwise
Per José Valim's note | Elixir | apache-2.0 | antipax/elixir,lexmag/elixir,ggcampinho/elixir,joshprice/elixir,kimshrier/elixir,lexmag/elixir,elixir-lang/elixir,kelvinst/elixir,beedub/elixir,gfvcastro/elixir,kelvinst/elixir,gfvcastro/elixir,antipax/elixir,pedrosnk/elixir,ggcampinho/elixir,michalmuskala/elixir,kimshrier/elixir,pedrosnk/elixir,beedub/elixir |
d5d4c799ecf0d4cb08bdd224b651d740fbe90572 | mix.exs | mix.exs | defmodule Funnel.Mixfile do
use Mix.Project
def project do
[ app: :funnel,
version: "0.4.0",
compilers: [:elixir, :app],
compile_path: "tmp/#{Mix.env}/funnel/ebin",
elixir: "~> 0.15 or 1.0.0-rc1",
description: description,
package: package,
deps: deps ]
end
# Conf... | defmodule Funnel.Mixfile do
use Mix.Project
def project do
[ app: :funnel,
version: "0.4.0",
compilers: [:elixir, :app],
compile_path: "tmp/#{Mix.env}/funnel/ebin",
elixir: "~> 0.15 or 1.0.0-rc1 or 1.0.0",
description: description,
package: package,
deps: deps ]
end
... | Allow to run on Elixir 1.0.0 | Allow to run on Elixir 1.0.0
Signed-off-by: chatgris <5c682c2d1ec4073e277f9ba9f4bdf07e5794dabe@stormz.me>
| Elixir | mit | chatgris/funnel |
1ed64398bcba7b1fb90356dcd5c2c3579a1588b6 | template/lib/application_name.ex | template/lib/application_name.ex | defmodule <%= application_module %> do
use Application
# See http://elixir-lang.org/docs/stable/Application.Behaviour.html
# for more information on OTP Applications
def start(_type, _args) do
<%= application_module %>.Supervisor.start_link
end
end
| defmodule <%= application_module %> do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
<%= application_module %>.Supervisor.start_link
end
end
| Fix broken link in generated comments. | Fix broken link in generated comments. | Elixir | mit | dmarkow/phoenix,korobkov/phoenix,lono-devices/phoenix,hsavit1/phoenix,mobileoverlord/phoenix,seejee/phoenix,stevedomin/phoenix,CD1212/phoenix,Rumel/phoenix,greyhwndz/phoenix,andrewvy/phoenix,trarbr/phoenix,kevinold/phoenix,ericmj/phoenix,mschae/phoenix,Dahoon/phoenix,jwarwick/phoenix,0x00evil/phoenix,iStefo/phoenix,raf... |
cb413b786f3bc85201d31bf2aa47a7cbd0e18be5 | lib/rotor/file_watcher.ex | lib/rotor/file_watcher.ex | defmodule Rotor.FileWatcher do
import Rotor.Utils
use GenServer
# group_info will have %{name: name, interval: interval}
def init(group_info) do
{:ok, group_info}
end
def handle_call(:state, _from, state) do
{:reply, state, state}
end
def handle_call(:poll, _from, state) do
{changed_fi... | defmodule Rotor.FileWatcher do
import Rotor.Utils
use GenServer
# group_info will have %{name: name, interval: interval}
def init(group_info) do
{:ok, group_info}
end
def handle_call(:state, _from, state) do
{:reply, state, state}
end
def handle_call(:poll, _from, state) do
{changed_fi... | Set length of changed files as 0 | Set length of changed files as 0
| Elixir | mit | HashNuke/rotor |
abb8a1ac73f753c3f7bc6ee345cc1088475846d4 | lib/atom_style_tweaks_web/open_graph.ex | lib/atom_style_tweaks_web/open_graph.ex | defmodule AtomStyleTweaksWeb.OpenGraph do
@moduledoc """
Functions for handling Facebook Open Graph data and inserting the appropriate tags into pages.
"""
import Plug.Conn, only: [assign: 3]
require Logger
use Phoenix.HTML
def render_metadata(conn) do
case conn.assigns[:open_graph_metadata] do
... | defmodule AtomStyleTweaksWeb.OpenGraph do
@moduledoc """
Functions for handling Facebook Open Graph data and inserting the appropriate tags into pages.
"""
import Plug.Conn, only: [assign: 3]
require Logger
use Phoenix.HTML
def render_metadata(conn) do
case conn.assigns[:open_graph_metadata] do
... | Reorder the merge to allow the page to override the defaults | Reorder the merge to allow the page to override the defaults
| Elixir | mit | lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks |
86f186a4c3e25c1911170e5ad3acabb9286c5a3c | lib/battle_snake/mock_api.ex | lib/battle_snake/mock_api.ex | defmodule BattleSnake.MockApi do
@behaviour BattleSnake.Api
def start, do: {:ok, [:fake]}
def load(x, y) do
BattleSnake.Api.load(x, y, fn _, _, _, _ ->
{:ok,
%HTTPoison.Response{
body: Poison.encode!(%{name: "mock-snake"})}}
end)
end
def move(x, y) do
BattleSnake.Api.move(... | defmodule BattleSnake.MockApi do
@behaviour BattleSnake.Api
def start, do: {:ok, [:fake]}
@snake {:ok, %HTTPoison.Response{body: Poison.encode!(%{name: "mock-snake"})}}
@move {:ok, %HTTPoison.Response{body: Poison.encode!(%{move: "up"})}}
def load(x, y) do
BattleSnake.Api.load(x, y, mock_post(@snake))
... | Make Mock api guard for bad input | Make Mock api guard for bad input
This module has caused some issues in the past by hiding errors.
To try and alleviate some of that i've added guards to catch the majority of
type errors.
| Elixir | agpl-3.0 | Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake |
e5f78fd25321bf4898708aae425370970583d1af | lib/beanie/registry_api.ex | lib/beanie/registry_api.ex | defmodule Beanie.RegistryAPI do
alias Beanie.RegistryAPI.Registry
def catalog(registry = %Registry{}) do
Registry.get(registry, "_catalog")
end
def tag_list(registry, repository) do
Registry.get(registry, [repository, "tags", "list"])
end
end
| defmodule Beanie.RegistryAPI do
alias Beanie.RegistryAPI.Registry
def catalog(registry = %Registry{}) do
Registry.get(registry, "_catalog")
end
def tag_list(registry, repository) do
Registry.get(registry, [repository, "tags", "list"])
end
def manifest(registry, repository, tag) do
Registry.ge... | Add manifest fetch, creation check | Add manifest fetch, creation check
| Elixir | mit | dantswain/beanie,dantswain/beanie |
aeaf7d61ee19e6ee3273c1fefe2e5323a195f132 | test/presence_channel_test.exs | test/presence_channel_test.exs | defmodule Poxa.PresenceChannelTest do
use ExUnit.Case
import SpawnHelper
import Poxa.PresenceChannel
test "return unique user ids currently subscribed" do
register_to_channel("presence-channel", {:user_id, :user_info})
spawn_registered_process("presence-channel", {:user_id, :user_info})
spawn_regis... | defmodule Poxa.PresenceChannelTest do
use ExUnit.Case
import SpawnHelper
import Poxa.PresenceChannel
test "return unique user ids currently subscribed" do
register_to_channel("presence-channel-test", {:user_id, :user_info})
spawn_registered_process("presence-channel-test", {:user_id, :user_info})
s... | Use isolated channel name on PresenceChannel test | Use isolated channel name on PresenceChannel test
| Elixir | mit | edgurgel/poxa,waffleio/poxa,joshk/poxa,RobertoSchneiders/poxa,joshk/poxa,edgurgel/poxa,waffleio/poxa,edgurgel/poxa,RobertoSchneiders/poxa |
ec436ca092e7bd2500f04bb8412afcf061a009e3 | lib/jumubase_web/views/encoders/csv_encoder.ex | lib/jumubase_web/views/encoders/csv_encoder.ex | NimbleCSV.define(CSVParser, separator: "\t", escape: "\"")
defmodule JumubaseWeb.CSVEncoder do
@moduledoc """
A tool to export registration data as comma-separated values.
"""
alias Jumubase.Showtime.Participant
def encode(participants) do
data = column_headers() ++ Enum.map(participants, &extract_data... | NimbleCSV.define(CSVParser, separator: "\t", escape: "\"")
defmodule JumubaseWeb.CSVEncoder do
@moduledoc """
A tool to export registration data as comma-separated values.
"""
import JumubaseWeb.Internal.PerformanceView, only: [category_name: 1]
alias Jumubase.Showtime.{Participant, Performance}
def enco... | Tweak CSV contents and add performance info | Tweak CSV contents and add performance info
| Elixir | mit | richeterre/jumubase-phoenix,richeterre/jumubase-phoenix |
4ab7f30b17e273a36f218e120dab30cfcbf21932 | web/views/my_article_view.ex | web/views/my_article_view.ex | defmodule Cazoc.MyArticleView do
use Cazoc.Web, :view
end
| defmodule Cazoc.MyArticleView do
use Cazoc.Web, :view
def render("index.json", %{articles: articles}) do
%{data: render_many(articles, Cazoc.MyArticleView, "article.json")}
end
def render("show.json", %{article: article}) do
%{data: render_one(article, Cazoc.MyArticleView, "article.json")}
end
de... | Add json view to my article | Add json view to my article
| Elixir | apache-2.0 | knmsyk/cazoc,cazoc/cazoc,cazoc/cazoc,cazoc/cazoc,knmsyk/cazoc,knmsyk/cazoc |
c16b165c214e62d469266f365258a2214a5de8ec | farmbot_os/platform/target/configurator/vintage_network_layer.ex | farmbot_os/platform/target/configurator/vintage_network_layer.ex | defmodule FarmbotOS.Platform.Target.Configurator.VintageNetworkLayer do
@behaviour FarmbotOS.Configurator.NetworkLayer
@impl FarmbotOS.Configurator.NetworkLayer
def list_interfaces() do
VintageNet.all_interfaces()
|> Kernel.--(["usb0", "lo"])
|> Enum.map(fn ifname ->
{ifname, %{mac_address: "fi... | defmodule FarmbotOS.Platform.Target.Configurator.VintageNetworkLayer do
@behaviour FarmbotOS.Configurator.NetworkLayer
@impl FarmbotOS.Configurator.NetworkLayer
def list_interfaces() do
VintageNet.all_interfaces()
|> Kernel.--(["usb0", "lo"])
|> Enum.map(fn ifname ->
[{["interface", ^ifname, "m... | Fix missing mac_address in configurator | Fix missing mac_address in configurator
| Elixir | mit | FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os |
5dc919f3f27777b192b00ba6201cd2943093c1b9 | elixir/mix.exs | elixir/mix.exs | defmodule CucumberGherkin.MixProject do
use Mix.Project
@vsn "18.1.0"
@github "https://github.com/cucumber/cucumber/tree/master/gherkin/elixir"
@name "CucumberGherkin"
def project do
[
app: :cucumber_gherkin,
version: @vsn,
name: @name,
description: description(),
package: ... | defmodule CucumberGherkin.MixProject do
use Mix.Project
@vsn "18.1.0"
@github "https://github.com/cucumber/cucumber/tree/master/gherkin/elixir"
@name "CucumberGherkin"
def project do
[
app: :cucumber_gherkin,
version: @vsn,
name: @name,
description: description(),
package: ... | Update dependency ex_doc to ~> 0.24 | Update dependency ex_doc to ~> 0.24
| Elixir | mit | cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin |
5c44a52fbfb33966ab3e528ac56f0948b0dadb52 | lib/display.ex | lib/display.ex | defmodule Display do
alias IO.ANSI
@current_dir File.cwd!
def show_failure(%{expr: expr}, module, name) do
IO.puts("")
IO.puts("Now meditate upon #{display_module(module)}")
IO.puts("---------------------------------------")
IO.puts("Assertion failed in #{source_file(module)}:#{line_number(expr)}... | defmodule Display do
alias IO.ANSI
@current_dir File.cwd!
def show_failure(%{expr: expr}, module, name) do
IO.puts("")
IO.puts("Now meditate upon #{display_module(module)}")
IO.puts("---------------------------------------")
IO.puts(format_cyan(display_failed_assertion(module, expr)))
IO.puts... | Add different color for failed assertion in runner | Add different color for failed assertion in runner
| Elixir | mit | elixirkoans/elixir-koans,samstarling/elixir-koans |
54411c749b68598b649026a3b97e5265a756364c | rel/config.exs | rel/config.exs | use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: :prod
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/c... | use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: Mix.env
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery... | Use the Mix.env for distillery releases! | Use the Mix.env for distillery releases!
| Elixir | mit | raisebook/qbot,raisebook/qbot |
caea67d79e7f5cc839a57a0399cb3ee7097b66e8 | lib/discount.ex | lib/discount.ex | defmodule Discount do
def to_html(input_data, callback) when is_list(input_data) do
Discount.Markdown.parse_doc_list input_data, callback
end
def to_html(input_data, callback) do
Discount.Markdown.parse_doc input_data, callback
end
def to_html(input_data) when is_list(input_data) do
Discount.Ma... | defmodule Discount do
def to_html(input_data, callback) when is_list(input_data) do
Discount.Markdown.parse_doc_list input_data, callback
end
def to_html(input_data, callback) when is_bitstring(input_data) do
Discount.Markdown.parse_doc input_data, callback
end
def to_html(input_data) when is_list(... | Add more type checks for input data | Add more type checks for input data | Elixir | mit | asaaki/discount.ex,asaaki/discount.ex |
4cced01b9e9b17b1fd25c97d01a5f2638ae4998b | lib/sendgrid.ex | lib/sendgrid.ex | defmodule SendGrid do
@moduledoc """
Interface to SendGrid's API.
## Configuration
A configuration key is expected with a working SendGrid API key.
config :sendgrid,
api_key: "sendgrid_api_key"
## Usage
Most usage with this library will be with composing transactional emails. Refer to `... | defmodule SendGrid do
@moduledoc """
Interface to SendGrid's API.
## Configuration
A configuration key is expected with a working SendGrid API key.
config :sendgrid,
api_key: "sendgrid_api_key"
## Usage
Most usage with this library will be with composing transactional emails. Refer to `... | Add runtime error when calling the api with no key | Add runtime error when calling the api with no key
| Elixir | mit | alexgaribay/sendgrid_elixir |
207ef909cff4118aa48205fb6e2ba423f5def28f | apps/ello_v3/lib/ello_v3/resolvers/stream.ex | apps/ello_v3/lib/ello_v3/resolvers/stream.ex | defmodule Ello.V3.Resolvers.Stream do
import Ello.V3.StandardParams
@firehose_key "all_post_firehose"
def firehose(_, _args, resolution) do
stream = Ello.Stream.fetch(standard_params(resolution, %{
keys: [@firehose_key],
}))
{:ok, %{next: stream.before, posts: stream.posts}}
end
de... | defmodule Ello.V3.Resolvers.Stream do
import Ello.V3.StandardParams
@firehose_key "all_post_firehose"
def firehose(_, _args, resolution) do
stream = Ello.Stream.fetch(standard_params(resolution, %{
keys: [@firehose_key],
}))
{:ok, %{next: stream.before, posts: stream.posts}}
end
de... | Allow username query to be tilde agnostic. | Allow username query to be tilde agnostic.
| Elixir | mit | ello/apex,ello/apex,ello/apex |
812cabd62091919a4fb2a1be7ebb7bcc98101551 | lib/ex_twilio/resources/media.ex | lib/ex_twilio/resources/media.ex | defmodule ExTwilio.Media do
@moduledoc """
Represents an Media resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/api/rest/media)
## Examples
Since Media belong to a Message in Twilio's API, you must pass a Message SID
to each function in this module.
ExTwilio.Media.all(messag... | defmodule ExTwilio.Media do
@moduledoc """
Represents an Media resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/sms/api/media-resource)
## Examples
Since Media belong to a Message in Twilio's API, you must pass a Message SID
to each function in this module.
ExTwilio.Media.al... | Update redirect to Media API | Update redirect to Media API
| Elixir | mit | danielberkompas/ex_twilio,danielberkompas/ex_twilio |
6222f94ae2333faf12b70ccf20fcb95ce377f7fa | web/controllers/page_controller.ex | web/controllers/page_controller.ex | defmodule FdlMessengerBot.PageController do
use FdlMessengerBot.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
def webhook(conn, %{
"hub.verify_token" => verify_token,
"hub.challenge" => challenge
}) do
text conn, challenge
end
def webhook(conn, %{"entry" => ... | defmodule FdlMessengerBot.PageController do
use FdlMessengerBot.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
def webhook(conn, %{
"hub.verify_token" => verify_token,
"hub.challenge" => challenge
}) do
text conn, challenge
end
def webhook(conn, %{"entry" => ... | Fix up the param parsing | Fix up the param parsing
| Elixir | mit | ukisami/fdl-messenger-bot,ukisami/fdl-messenger-bot |
bb7dbef51eacda6922fa4b9cf7a319be69a6b1c8 | priv/template/mix.exs | priv/template/mix.exs | defmodule <%= application_module %>.Mixfile do
use Mix.Project
def project do
[ app: :<%= application_name %>,
version: "0.0.1",
elixir: "~> 1.0.0",
elixirc_paths: ["lib", "web"],
deps: deps ]
end
# Configuration for the OTP application
def application do
[
mod: { <%= a... | defmodule <%= application_module %>.Mixfile do
use Mix.Project
def project do
[ app: :<%= application_name %>,
version: "0.0.1",
elixir: "~> 1.0.0",
elixirc_paths: ["lib", "web"],
deps: deps ]
end
# Configuration for the OTP application
def application do
[
mod: { <%= a... | Use master on template until 0.5 is out | Use master on template until 0.5 is out
| Elixir | mit | jasond-s/phoenix,sadiqmmm/phoenix,stevedomin/phoenix,nshafer/phoenix,linearregression/phoenix,bsmr-erlang/phoenix,VictorZeng/phoenix,dmarkow/phoenix,nshafer/phoenix,iguberman/phoenix,vic/phoenix,iStefo/phoenix,Kosmas/phoenix,JHKennedy4/phoenix,0x00evil/phoenix,ericmj/phoenix,jwarwick/phoenix,wicliff/phoenix,xtity/simpl... |
e834f80bcae8ed3ca571cbc3aaf0825581bcd4ff | lib/tasks/end_to_end.ex | lib/tasks/end_to_end.ex | defmodule Mix.Tasks.EndToEnd do
@moduledoc false
use Mix.Task
@shortdoc "Runs feature tests"
def run(_) do
compile_js
System.cmd(
"mix",
["test", "--only", "feature_test", "--color"],
into: IO.stream(:stdio, :line)
)
end
defp compile_js do
System.cmd("npm", ["run", "deplo... | defmodule Mix.Tasks.EndToEnd do
@moduledoc false
use Mix.Task
@shortdoc "Runs feature tests"
def run(_) do
compile_js()
System.cmd(
"mix",
["test", "--only", "feature_test", "--color"],
into: IO.stream(:stdio, :line)
)
end
defp compile_js do
System.cmd("npm", ["run", "dep... | Fix compile_js call in EndToEnd | Fix compile_js call in EndToEnd
| Elixir | mit | tnewell5/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,samdec11/remote_retro,stride-nyc/remote_retro |
5f707a5193da274e4f700a4990e688cf9b809bc2 | nucleotide-count/dna.exs | nucleotide-count/dna.exs | defmodule DNA do
@nucleotides [?A, ?C, ?G, ?T]
@doc """
Counts individual nucleotides in a DNA strand.
## Examples
iex> DNA.count('AATAA', ?A)
4
iex> DNA.count('AATAA', ?T)
1
"""
@spec count([char], char) :: non_neg_integer
def count(strand, nucleotide) do
end
@doc """
Returns a summa... | defmodule DNA do
@nucleotides [?A, ?C, ?G, ?T]
@doc """
Counts individual nucleotides in a DNA strand.
## Examples
iex> DNA.count('AATAA', ?A)
4
iex> DNA.count('AATAA', ?T)
1
"""
@spec count([char], char) :: non_neg_integer
def count(strand, nucleotide) do
end
@doc """
Returns a summa... | Update function name in nucleotide count exercise | Update function name in nucleotide count exercise
| Elixir | mit | cezarykosko/xelixir,exercism/xelixir,parkerl/xelixir |
c5c6f3a0639d47f68d94dd6b94d5b73eb6254fab | lib/appsignal/fallbacks.ex | lib/appsignal/fallbacks.ex | unless Code.ensure_loaded?(Appsignal.Phoenix) do
defmodule Appsignal.Plug.NotAvailableError do
@moduledoc false
defexception []
def message(_) do
"""
Appsignal.Plug was used but not present in the project's dependencies.
Since :appsignal 2.0, Appsignal's Phoenix integration was moved t... | unless Code.ensure_loaded?(Appsignal.Phoenix) do
defmodule Appsignal.Plug.NotAvailableError do
@moduledoc false
defexception []
def message(_) do
"""
Appsignal.Plug was used but not present in the project's dependencies.
Since :appsignal 2.0, Appsignal's Phoenix integration was moved t... | Update Phoenix and Plug fallback messages to mention alpha versions | Update Phoenix and Plug fallback messages to mention alpha versions
| Elixir | mit | appsignal/appsignal-elixir,appsignal/appsignal-elixir,appsignal/appsignal-elixir,appsignal/appsignal-elixir |
b90a5cedc06093070cab551d4cf8f4abcc0dc982 | lib/swoosh/adapters/test.ex | lib/swoosh/adapters/test.ex | defmodule Swoosh.Adapters.Test do
@moduledoc """
"""
@behaviour Swoosh.Adapter
def deliver(email) do
send(self(), {:email, email})
end
end
| defmodule Swoosh.Adapters.Test do
@moduledoc """
"""
@behaviour Swoosh.Adapter
def deliver(email, config \\ []) do
send(self(), {:email, email})
end
end
| Fix warning of undefined behaviour in Test adapter | Fix warning of undefined behaviour in Test adapter
| Elixir | mit | dbulic/swoosh,swoosh/swoosh,dighjd12/swoosh |
6f6315bfa0cc0a7093e9a947a8b0e439b378c5a4 | test/jumubase/showtime/instruments_test.exs | test/jumubase/showtime/instruments_test.exs | defmodule Jumubase.InstrumentsTest do
use Jumubase.DataCase
alias Jumubase.Showtime.Instruments
test "all/0 returns a list of all instruments" do
%{} = result = Instruments.all()
assert result |> Enum.count() == 34
end
test "name/1 returns an instrument's display name, if found" do
assert Instru... | defmodule Jumubase.InstrumentsTest do
use Jumubase.DataCase
alias Jumubase.Showtime.Instruments
test "all/0 returns a list of all instruments" do
%{} = result = Instruments.all()
assert result |> Enum.count() == 41
end
test "name/1 returns an instrument's display name, if found" do
assert Instru... | Fix failing test after adding new instruments | Fix failing test after adding new instruments
| Elixir | mit | richeterre/jumubase-phoenix,richeterre/jumubase-phoenix |
72984a8d5bdded431fbd357cac46b1a543ee9ca0 | config/prod.secret.exs | config/prod.secret.exs | use Mix.Config
config :aelita2, Aelita2.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: "sheltered-savannah-39730.herokuapp.com", port: 80],
cache_static_manifest: "priv/static/manifest.json",
secret_key_base: System.get_env("SECRET_KEY_BASE")
config :aelita2, Aelita2.Repo,
adapter: Ecto.Ada... | use Mix.Config
config :aelita2, Aelita2.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: "sheltered-savannah-39730.herokuapp.com", port: 80],
cache_static_manifest: "priv/static/manifest.json",
secret_key_base: System.get_env("SECRET_KEY_BASE")
config :aelita2, Aelita2.Repo,
adapter: Ecto.Ada... | Switch to base64-encoded PEM, which works | Switch to base64-encoded PEM, which works
| Elixir | apache-2.0 | bors-ng/bors-ng,bors-ng/bors-ng,bors-ng/bors-ng |
c5c9419a10f27a4750a27d75132b1a1bfebb15bc | apps/npc/lib/npc/model/npc.ex | apps/npc/lib/npc/model/npc.ex | defmodule Helix.NPC.Model.NPC do
use Ecto.Schema
alias HELL.PK
import Ecto.Changeset
@type t :: %__MODULE__{
npc_id: PK.t,
inserted_at: NaiveDateTime.t,
updated_at: NaiveDateTime.t
}
@creation_fields ~w//a
@primary_key false
schema "npcs" do
field :npc_id, HELL.PK,
primary_ke... | defmodule Helix.NPC.Model.NPC do
use Ecto.Schema
alias HELL.PK
import Ecto.Changeset
@type t :: %__MODULE__{
npc_id: PK.t,
inserted_at: NaiveDateTime.t,
updated_at: NaiveDateTime.t
}
@creation_fields ~w//a
@primary_key false
@ecto_autogenerate {:npc_id, {PK, :pk_for, [__MODULE__]}}
s... | Update NPC primary key generation. | Update NPC primary key generation.
| Elixir | agpl-3.0 | renatomassaro/Helix,HackerExperience/Helix,mememori/Helix,HackerExperience/Helix,renatomassaro/Helix |
17db10bf36c8bf4b3140f3c69be019af42b70e7f | config/test.exs | config/test.exs | use Mix.Config
config :autostart,
register_queues: true
config :manager_api,
manager_url: System.get_env("MANAGER_URL") || "https://openaperture-mgr.host.co",
oauth_login_url: System.get_env("OAUTH_LOGIN_URL") || "https://auth.host.co",
oauth_client_id: System.get_env("OAUTH_CLIENT... | use Mix.Config
config :autostart,
register_queues: true
config :openaperture_manager_api,
manager_url: System.get_env("MANAGER_URL") || "https://openaperture-mgr.host.co",
oauth_login_url: System.get_env("OAUTH_LOGIN_URL") || "https://auth.host.co",
oauth_client_id: System.get_env(... | Use a more descriptive config session name. | Use a more descriptive config session name.
| Elixir | mpl-2.0 | OpenAperture/deployer |
76ae43005b22b6b5b884d6ea0b134544440fc224 | web/views/page_view.ex | web/views/page_view.ex | defmodule SlackCoder.PageView do
use SlackCoder.Web, :view
def status_class(:success), do: :success
def status_class(:failed), do: :danger
def status_class(:pending), do: :warning
def status_class(_), do: :default
end
| defmodule SlackCoder.PageView do
use SlackCoder.Web, :view
def status_class(:success), do: :success
def status_class(:failed), do: :danger
def status_class(:pending), do: :warning
def status_class(:error), do: :danger
def status_class(_), do: :default
end
| Add error status condition to web interface. | Add error status condition to web interface.
| Elixir | mit | mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder |
1eaee86d38b207eaad1e61a97af7e0b01073840d | lib/web/webhook_parser_plug.ex | lib/web/webhook_parser_plug.ex | defmodule BorsNG.WebhookParserPlug do
@moduledoc """
Parse the GitHub webhook payload (as JSON) and verify the HMAC-SHA1 signature.
"""
import Plug.Conn
def init(options) do
options
end
def call(conn, options) do
if conn.path_info == ["webhook", "github"] do
key = Keyword.get(options, :se... | defmodule BorsNG.WebhookParserPlug do
@moduledoc """
Parse the GitHub webhook payload (as JSON) and verify the HMAC-SHA1 signature.
"""
import Plug.Conn
def init(options) do
options
end
def call(conn, options) do
if conn.path_info == ["webhook", "github"] do
key = Keyword.get(options, :se... | Switch off of deprecated hmac function | Switch off of deprecated hmac function
Fixes #1246
| Elixir | apache-2.0 | bors-ng/bors-ng,bors-ng/bors-ng,bors-ng/bors-ng |
3593aae596fbd6bc21e5576fe4e0b39c14f8c8f0 | lib/farmbot/firmware/supervisor/block_until_up.ex | lib/farmbot/firmware/supervisor/block_until_up.ex | defmodule Farmbot.Firmware.Supervisor.BlockUntilUp do
@moduledoc """
Quick and dirty task that waits for the :firmware_initialized or :firmware_idle
global events.
"""
@timeout_ms 60_000
use Farmbot.Logger
def start_link do
block_until_up()
:ignore
end
def block_until_up do
Logger.debug... | defmodule Farmbot.Firmware.Supervisor.BlockUntilUp do
@moduledoc """
Quick and dirty task that waits for the :firmware_initialized or :firmware_idle
global events.
"""
@timeout_ms 60_000
@grace_ms 1000
use Farmbot.Logger
def start_link do
task = Task.async(__MODULE__, :block_until_up, [])
Task... | Use a task to squash an annoying log due to subscribing a supervisor to random events. | Use a task to squash an annoying log due to subscribing a supervisor to random events.
| Elixir | mit | FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os |
88665e98ab56cbfabd08d77acc75558a5eae15a9 | lib/slack_coder/build_system/circle_ci/build.ex | lib/slack_coder/build_system/circle_ci/build.ex | defmodule SlackCoder.BuildSystem.CircleCI.Build do
use HTTPoison.Base
require Logger
alias SlackCoder.BuildSystem.Build
def new(build, id) do
%Build{id: id, result: result(build["status"]), url: build["output_url"]}
end
defp result("success"), do: :success
defp result("failed"), do: :failure
defp ... | defmodule SlackCoder.BuildSystem.CircleCI.Build do
use HTTPoison.Base
require Logger
alias SlackCoder.BuildSystem.Build
def new(build, id) do
%Build{id: id, result: result(build["status"]), url: build["output_url"]}
end
defp result("success"), do: :success
defp result("failed"), do: :failure
defp ... | Change to interpolation since its safer. | Change to interpolation since its safer.
| Elixir | mit | mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder |
e86acd4a3d08431912b04729b8836cf91cca485d | web/router.ex | web/router.ex | defmodule ParticipateApi.Router do
use ParticipateApi.Web, :router
pipeline :api do
plug :accepts, ["json-api"]
plug JaSerializer.ContentTypeNegotiation
plug JaSerializer.Deserializer
end
scope "/api", ParticipateApi do
pipe_through :api
get "/:provider", AuthController, :request
get ... | defmodule ParticipateApi.Router do
use ParticipateApi.Web, :router
pipeline :api do
plug :accepts, ["json-api"]
plug JaSerializer.ContentTypeNegotiation
plug JaSerializer.Deserializer
end
scope "/", ParticipateApi do
pipe_through :api
end
scope "/auth", ParticipateApi do
pipe_through ... | Move auth into separate routing scope, not going to use json-api for it | Move auth into separate routing scope, not going to use json-api for it
| Elixir | mit | participateapp/api,oliverbarnes/participate-api,oliverbarnes/participate-new-api |
b943319f0deb548419ba7bc8888acc9d6de59a83 | web/models/students.ex | web/models/students.ex | defmodule CoursePlanner.Students do
alias CoursePlanner.Repo
alias CoursePlanner.User
import Ecto.Query
@students from u in User, where: u.role == "Student" and is_nil(u.deleted_at)
def all() do
Repo.all(@students)
end
def update(id, params) do
case Repo.get(User, id) do
student ->
... | defmodule CoursePlanner.Students do
alias CoursePlanner.Repo
alias CoursePlanner.User
import Ecto.Query
alias Ecto.{Changeset, DateTime}
@students from u in User, where: u.role == "Student" and is_nil(u.deleted_at)
def all() do
Repo.all(@students)
end
def update(id, params) do
case Repo.get(U... | Set timestamp when changing status. | Set timestamp when changing status.
| Elixir | mit | digitalnatives/course_planner,digitalnatives/course_planner,digitalnatives/course_planner |
e6ba0410ffb8b09b4453cdee2f170d2524027d43 | lib/web/controllers/batch_controller.ex | lib/web/controllers/batch_controller.ex | defmodule BorsNG.BatchController do
@moduledoc """
The controller for the batches
This will either show a batch detail page
"""
use BorsNG.Web, :controller
alias BorsNG.Database.Batch
alias BorsNG.Database.Context.Permission
alias BorsNG.Database.Repo
alias BorsNG.Database.Patch
alias BorsNG.Data... | defmodule BorsNG.BatchController do
@moduledoc """
The controller for the batches
This will either show a batch detail page
"""
use BorsNG.Web, :controller
alias BorsNG.Database.Batch
alias BorsNG.Database.Context.Permission
alias BorsNG.Database.Repo
alias BorsNG.Database.Patch
alias BorsNG.Data... | Allow read-only access to batch info pages | Allow read-only access to batch info pages
Fixes #1137
| Elixir | apache-2.0 | bors-ng/bors-ng,bors-ng/bors-ng,bors-ng/bors-ng |
31371ca7943bec05c80cdf83dd1ea46fc7f3e8e5 | web/views/job_view.ex | web/views/job_view.ex | defmodule GetAJobEx.JobView do
import GetAJobEx.Router.Helpers
use GetAJobEx.Web, :view
def render("api.json", %{conn: conn}) do
job(conn)
end
def render("index.json", %{jobs: jobs}) do
%{data: jobs}
end
def render("show.json", %{job: job}) do
%{job: job}
end
defp job(conn) do
%{n... | defmodule GetAJobEx.JobView do
import GetAJobEx.Router.Helpers
use GetAJobEx.Web, :view
def render("api.json", %{conn: conn}) do
job(conn)
end
def render("index.json", %{jobs: jobs, conn: conn}) do
jobs = for job <- jobs, do: job(conn, job)
%{data: jobs}
end
def render("show.json", %{job: ... | Use path helpers for index and show in JobView. | Use path helpers for index and show in JobView.
| Elixir | mit | smoynes/get_a_job_ex,smoynes/get_a_job_ex |
b2d8cf111d74532b072a016f9dde1b79b00916d7 | mix.exs | mix.exs | defmodule Credo.Mixfile do
use Mix.Project
def project do
[
app: :credo,
version: "0.9.0-rc1",
elixir: "~> 1.1",
escript: [main_module: Credo.CLI],
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: Covere... | defmodule Credo.Mixfile do
use Mix.Project
def project do
[
app: :credo,
version: "0.9.0-rc1",
elixir: ">= 1.3.2",
escript: [main_module: Credo.CLI],
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: Cove... | Set Elixir version to >= 1.3.2 | Set Elixir version to >= 1.3.2
| Elixir | mit | rrrene/credo,rrrene/credo |
e909d56601b7fb060deafe8de2fc0c8a44d76f39 | mix.exs | mix.exs | defmodule Bowser.MixProject do
use Mix.Project
def project do
[
app: :bowser,
version: "0.2.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
aliases: [test: "test --no-start"],
releases: releases(),
deps: deps()
]
end
# Run "mix help compile.app" to ... | defmodule Bowser.MixProject do
use Mix.Project
def project do
[
app: :bowser,
version: "0.2.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
aliases: [test: "test --no-start"],
releases: releases(),
deps: deps()
]
end
# Run "mix help compile.app" to ... | Update dependency redix to ~> 0.10 | Update dependency redix to ~> 0.10
| Elixir | mit | kevinkjt2000/discord-minecraft-server-status |
daf07297f7c526ab2f21e9691c9ef22b6bed2797 | mix.exs | mix.exs | compile_peg_task = "tasks/compile.peg.exs"
if File.exists?(compile_peg_task) do
Code.eval_file "tasks/compile.peg.exs"
end
defmodule Conform.Mixfile do
use Mix.Project
def project do
[app: :conform,
version: "0.10.1",
elixir: "~> 0.15.1",
escript: [main_module: Conform],
compilers: [:peg... | compile_peg_task = "tasks/compile.peg.exs"
if File.exists?(compile_peg_task) do
Code.eval_file "tasks/compile.peg.exs"
end
defmodule Conform.Mixfile do
use Mix.Project
def project do
[app: :conform,
version: "0.10.1",
elixir: "~> 0.15.1",
escript: [main_module: Conform],
compilers: [:peg... | Add neotoma as a dependency for all envs | Add neotoma as a dependency for all envs
| Elixir | mit | bitwalker/conform |
b036f8c9060c11375a604f24e4f73beb6c3d472b | mix.exs | mix.exs | defmodule ExDocEPUB.Mixfile do
use Mix.Project
@version "0.0.3"
def project do
[app: :ex_doc_epub,
version: @version,
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
# Hex.pm
description: description,
package: packag... | defmodule ExDocEPUB.Mixfile do
use Mix.Project
@version "0.0.3"
def project do
[app: :ex_doc_epub,
version: @version,
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
# Hex.pm
description: description,
package: packag... | Set README as main page | Set README as main page
| Elixir | mit | milmazz/ex_doc_epub |
e5f959856c3de4d4336b9c8d24cb38adbed3279d | web/router.ex | web/router.ex | defmodule Elixre.Router do
use Phoenix.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Elixre do
pipe_through :browser
get "/", PageController, :ind... | defmodule Elixre.Router do
use Phoenix.Router
pipeline :browser do
plug :accepts, ["html"]
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Elixre do
pipe_through :browser
get "/", PageController, :index
end
scope "/", Elixre do
pipe_through :api
post "/test", Test... | Remove unneeded plugs from browser pipeline | Remove unneeded plugs from browser pipeline
| Elixir | agpl-3.0 | linearregression/elixre,linearregression/elixre,lpil/elixre |
4e4d349de5c89f8d29f883fbf2c539712a45713a | mix.exs | mix.exs | defmodule Venture.Umbrella.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/pat... | defmodule Venture.Umbrella.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/pat... | Improve assets.deploy at base dir | Improve assets.deploy at base dir
| Elixir | mit | ernie/venture,ernie/venture,ernie/venture |
3411ed2c51d2f3d50c5c9e7426204c73a887c2e5 | mix.exs | mix.exs | defmodule ParallelStream.Mixfile do
use Mix.Project
def project do
[
app: :parallel_stream,
version: "1.1.0",
elixir: "~> 1.5",
deps: deps(),
package: package(),
docs: &docs/0,
name: "Parallel Stream",
consolidate_protocols: true,
source_url: "https://githu... | defmodule ParallelStream.Mixfile do
use Mix.Project
def project do
[
app: :parallel_stream,
version: "1.1.0",
elixir: "~> 1.5",
deps: deps(),
package: package(),
docs: &docs/0,
name: "Parallel Stream",
consolidate_protocols: true,
source_url: "https://githu... | Use ex doc, inch ex and earmark only in docs env | Use ex doc, inch ex and earmark only in docs env
| Elixir | mit | beatrichartz/parallel_stream |
8da04b99eef7ea4b3ae2b3e7a9d68f7990098873 | test/support/test_helpers.ex | test/support/test_helpers.ex | defmodule RemoteRetro.TestHelpers do
use Wallaby.DSL
alias RemoteRetro.Repo
def persist_idea_for_retro(context) do
%{idea: idea, retro: retro} = context
idea = Map.put(idea, :retro_id, retro.id)
idea = Repo.insert!(idea)
Map.put(context, :idea, idea)
end
def new_browser_session(metadata \\ ... | defmodule RemoteRetro.TestHelpers do
use Wallaby.DSL
alias RemoteRetro.Repo
def persist_idea_for_retro(context) do
%{idea: idea, retro: retro} = context
idea = Map.put(idea, :retro_id, retro.id)
idea = Repo.insert!(idea)
Map.put(context, :idea, idea)
end
def new_browser_session(metadata \\ ... | Refactor delete_idea e2e test helper | Refactor delete_idea e2e test helper
| Elixir | mit | stride-nyc/remote_retro,tnewell5/remote_retro,tnewell5/remote_retro,samdec11/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro |
aafa3c58632754e232f519bf49c1d6efbf674074 | lib/wobserver/application.ex | lib/wobserver/application.ex | defmodule Wobserver.Application do
@moduledoc ~S"""
Sets up the main routers with Cowboy.
"""
use Application
alias Plug.Adapters.Cowboy
alias Wobserver.Page
alias Wobserver.Util.Metrics
@spec port :: integer
def port do
Application.get_env(:wobserver, :port, 4001)
end
@spec start(term, t... | defmodule Wobserver.Application do
@moduledoc ~S"""
Sets up the main routers with Cowboy.
"""
use Application
alias Plug.Adapters.Cowboy
alias Wobserver.Page
alias Wobserver.Util.Metrics
@doc ~S"""
The port the application uses.
"""
@spec port :: integer
def port do
Application.get_env(:... | Add mode support to main Application. | Add mode support to main Application. | Elixir | mit | shinyscorpion/wobserver,shinyscorpion/wobserver |
fd708ac751f06d00c71b74a6dd0328770494ee89 | test/controllers/page_controller_test.exs | test/controllers/page_controller_test.exs | defmodule Iboard.PageControllerTest do
use Iboard.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to iBoard"
assert html_response(conn, 200) =~ "/license"
assert html_response(conn, 200) =~ "/readme"
assert html_response(conn, 200) =~ "/h... | defmodule Iboard.PageControllerTest do
use Iboard.ConnCase
test "GET / contains links and Welcome", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to iBoard"
assert html_response(conn, 200) =~ "/license"
assert html_response(conn, 200) =~ "/readme"
assert html... | Add missing test for /howto | Add missing test for /howto
| Elixir | mit | iboard/px.iboard.cc,iboard/px.iboard.cc,iboard/px.iboard.cc |
00d4331f0111a52e1587a5c668241e51cb905a77 | lib/pixie/extension_registry.ex | lib/pixie/extension_registry.ex | defmodule Pixie.ExtensionRegistry do
use GenServer
alias Pixie.Event
def start_link modules do
GenServer.start_link __MODULE__, modules, name: __MODULE__
end
def init modules do
table = :ets.new __MODULE__, [:bag, :protected, :named_table, read_concurrency: true]
:ets.insert table, Enum.map(modu... | defmodule Pixie.ExtensionRegistry do
use GenServer
alias Pixie.Event
def start_link modules do
GenServer.start_link __MODULE__, modules, name: __MODULE__
end
def init modules do
table = :ets.new __MODULE__, [:ordered_set, :protected, :named_table, read_concurrency: true]
:ets.insert table, Enum.... | Use an `:ordered_set` table to preserve insertion order of extensions. | Use an `:ordered_set` table to preserve insertion order of extensions.
| Elixir | mit | messagerocket/pixie,messagerocket/pixie |
93189b93743d26ea1ca0523c22dcace7dec6da86 | test/csv_test.exs | test/csv_test.exs | defmodule CSVTest do
use ExUnit.Case
import TestSupport.StreamHelpers
doctest CSV
test "encodes" do
result = CSV.encode([~w(a b), ~w(c d)]) |> Enum.take(2)
assert result == ["a,b\r\n", "c,d\r\n"]
end
test "decodes in strict mode emitting rows as lists" do
stream = ~w(a,be c,d) |> to_stream
... | defmodule CSVTest do
use ExUnit.Case
use CSV.Defaults
import TestSupport.StreamHelpers
doctest CSV
test "encodes" do
result = CSV.encode([~w(a b), ~w(c d)]) |> Enum.take(2)
assert result == ["a,b\r\n", "c,d\r\n"]
end
test "decodes in strict mode emitting rows as lists" do
stream = ~w(a,be c... | Add tests for the preprocessor option. | Add tests for the preprocessor option.
| Elixir | mit | beatrichartz/csv,beatrichartz/csv |
08a2981747a3f027b83891850052da69efd3c102 | src/elixir/data_processor/apps/file_cleaner/lib/file_cleaner/organisation_utils.ex | src/elixir/data_processor/apps/file_cleaner/lib/file_cleaner/organisation_utils.ex | defmodule FileCleaner.OrganisationUtils do
@separator_regex ~R{,|;|and|&|/|\\}
def parse_organisations(organisations_string) do
if Regex.match? @separator_regex, organisations_string do
:nil
else
[organisations_string]
end
end
end
| defmodule FileCleaner.OrganisationUtils do
@separator_regex ~R{,|;|and|&|/|\\}
def parse_organisations(organisations_string) do
if Regex.match? @separator_regex, organisations_string do
:nil
else
[ String.trim organisations_string ]
end
end
end
| Remove excess whitespace around organisation names | Remove excess whitespace around organisation names
| Elixir | mit | HackBrexit/MinistersUnderTheInfluence,HackBrexit/MinistersUnderTheInfluence,HackBrexit/MinistersUnderTheInfluence,HackBrexit/MinistersUnderTheInfluence,HackBrexit/MinistersUnderTheInfluence,HackBrexit/MinistersUnderTheInfluence |
a39a7e7cc9e5708b880ad8a3e543006a253b469e | config/prod.exs | config/prod.exs | use Mix.Config
config :chess, ChessWeb.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json",
check_origin: ["https://chess.danbarber.me", "https://64squares.club"],
http: [port: {:system, "PORT"}],
root: "./assets",
secret_key_base: "${SECRET_KEY_BASE}",
server: true,
url: [host: "localhost... | use Mix.Config
config :chess, ChessWeb.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json",
check_origin: ["https://chess.danbarber.me", "https://64squares.club"],
http: [port: {:system, "PORT"}],
root: "./assets",
secret_key_base: "${SECRET_KEY_BASE}",
server: true,
url: [host: "localhost... | Use ENV vars for Mailgun config | Use ENV vars for Mailgun config
| Elixir | mit | danbee/chess,danbee/chess,danbee/chess |
4ebc0162cfe5220cbf6e70ef0bf93159fbc2ad68 | test/marco_polo/rest_test.exs | test/marco_polo/rest_test.exs | defmodule MarcoPolo.RESTTest do
use ExUnit.Case, async: true
@moduletag :integration
@moduletag :rest_api
alias MarcoPolo.REST
@opts [
user: "root",
password: "root",
]
test "importing a valid JSON into an existing db" do
db_path = fixture_path("exported_db.json")
assert :ok = REST.imp... | defmodule MarcoPolo.RESTTest do
use ExUnit.Case, async: true
@moduletag :integration
@moduletag :rest_api
alias MarcoPolo.REST
@opts [
user: TestHelpers.user(),
password: TestHelpers.password(),
]
test "importing a valid JSON into an existing db" do
db_path = fixture_path("exported_db.json... | Use user/password from TestHelpers in the REST tests | Use user/password from TestHelpers in the REST tests
| Elixir | apache-2.0 | MyMedsAndMe/marco_polo |
630f45cd40ff93de282aeccc8fc3764d24bc1724 | apps/ello_v2/lib/ello_v2/standard_params.ex | apps/ello_v2/lib/ello_v2/standard_params.ex | defmodule Ello.V2.StandardParams do
alias Plug.Conn
@max_page_size 50
def standard_params(%Conn{params: params, assigns: assigns}, overrides \\ %{}) do
Map.merge(%{
current_user: assigns[:current_user],
allow_nsfw: assigns[:allow_nsfw],
allow_nudity: assigns[:allow_nudity],
before:... | defmodule Ello.V2.StandardParams do
alias Plug.Conn
@max_page_size 50
def standard_params(%Conn{params: params, assigns: assigns}, overrides \\ %{}) do
Map.merge(%{
current_user: assigns[:current_user],
allow_nsfw: assigns[:allow_nsfw],
allow_nudity: assigns[:allow_nudity],
before:... | Fix empty string page param handling. | Fix empty string page param handling.
| Elixir | mit | ello/apex,ello/apex,ello/apex |
9b589318aa3bb31e9b94b38398a5f071b72e544d | lib/tilex/rate_limiter.ex | lib/tilex/rate_limiter.ex | defmodule Tilex.RateLimiter do
use GenServer
@name __MODULE__
@date_time_module Application.get_env(:tilex, :date_time_module)
@limit Application.get_env(:tilex, :rate_limiter_requests_per_time_period)
@time_period_minutes Application.get_env(:tilex, :rate_limiter_time_period_minutes)
# Client -----------... | defmodule Tilex.RateLimiter do
use GenServer
@name __MODULE__
@date_time_module Application.get_env(:tilex, :date_time_module)
@limit Application.get_env(:tilex, :rate_limiter_requests_per_time_period)
@time_period_minutes Application.get_env(:tilex, :rate_limiter_time_period_minutes)
# Client -----------... | Use registered name for calling genserver | Use registered name for calling genserver
Co-authored-by: Chris Erin <616b74d5888ada3e51dc8f8c8c98902b4a8a2d03@hashrocket.com>
| Elixir | mit | hashrocket/tilex,hashrocket/tilex,hashrocket/tilex |
724aa9d1ee9e554c58e12708218e6d3f0cd8449a | apps/lexibomb_server/lib/word_list/word_list.ex | apps/lexibomb_server/lib/word_list/word_list.ex | defmodule LexibombServer.WordList do
@moduledoc """
Manages access to the list of valid words based on Mendel Leo Cooper's
_[Yet Another Word List](https://github.com/elasticdog/yawl)_ (YAWL).
"""
@doc """
Starts an agent linked to the current process to store the word list after
reading it from disk.
... | defmodule LexibombServer.WordList do
@moduledoc """
Manages access to the list of valid words based on Mendel Leo Cooper's
_[Yet Another Word List](https://github.com/elasticdog/yawl)_ (YAWL).
"""
@doc """
Starts an agent linked to the current process to store the word list after
reading it from disk.
... | Format multi-line match values in the "preferred" style | Format multi-line match values in the "preferred" style
See: https://github.com/rrrene/elixir-style-guide
| Elixir | isc | elasticdog/lexibomb |
c5bc2f128c1f5cd517a30ef6f4719cc5a4d4a12e | lib/remote_retro_web/models/group.ex | lib/remote_retro_web/models/group.ex | defmodule RemoteRetro.Group do
use RemoteRetroWeb, :model
@derive {Jason.Encoder, except: [:__meta__, :ideas]}
schema "groups" do
has_many :ideas, RemoteRetro.Idea
timestamps(type: :utc_datetime_usec)
end
end
| defmodule RemoteRetro.Group do
use RemoteRetroWeb, :model
@derive {Jason.Encoder, except: [:__meta__, :ideas]}
schema "groups" do
has_many :ideas, RemoteRetro.Idea
field(:name, :string)
timestamps(type: :utc_datetime_usec)
end
end
| Add name field to ecto schema for Group | Add name field to ecto schema for Group
| Elixir | mit | stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro |
5365583b833e401ed4ac5a47a7dc73ab4156ef90 | lib/funnel/transistor.ex | lib/funnel/transistor.ex | defmodule Funnel.Transistor do
use GenServer.Behaviour
def start_link(conn) do
:gen_server.start_link({:local, name(conn)}, __MODULE__, [], [])
end
def notify(token, match, body) do
:gen_server.cast binary_to_atom(token), {:notify, match, body}
end
def add(conn) do
conn = conn.send_chunked(20... | defmodule Funnel.Transistor do
use GenServer.Behaviour
def start_link(conn) do
:gen_server.start_link({:local, name(conn)}, __MODULE__, [], [])
end
def notify(token, match, body) do
:gen_server.cast binary_to_atom(token), {:notify, match, body}
end
def add(conn) do
conn = conn.send_chunked(20... | Remove dead connexions from Funnel.Transistor | Remove dead connexions from Funnel.Transistor
Signed-off-by: chatgris <f9469d12bf3d131e7aae80be27ccfe58aa9db1f1@af83.com>
| Elixir | mit | chatgris/funnel |
af073b6bd5a322d22d87ea0918bc22e3872ca05f | web/views/layout_view.ex | web/views/layout_view.ex | defmodule Pullhub.LayoutView do
use Pullhub.Web, :view
end
| defmodule Pullhub.LayoutView do
use Pullhub.Web, :view
def title(conn) do
[conn.assigns[:page_title], "Pullhub"]
|> Enum.join(" | ")
end
end
| Add helper function to generate title | Add helper function to generate title
| Elixir | mit | substancelab/pullhub,substancelab/pullhub,substancelab/pullhub |
cee5a6dfff5a4f95e4279cf0630994b2d1e2299e | nerves.exs | nerves.exs | use Mix.Config
version =
Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
config :nerves_system_linkit, :nerves_env,
type: :system,
version: version,
mirrors: [
"https://github.com/nerves-project/nerves_system_linkit/releases/download/v#{version}/nerves_system_linkit-v#{version}.tar.gz"],
... | use Mix.Config
version =
Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
config :nerves_system_linkit, :nerves_env,
type: :system,
version: version,
mirrors: [
"https://github.com/nerves-project/nerves_system_linkit/releases/download/v#{version}/nerves_system_linkit-v#{version}.tar.gz",
... | Add Staging URL to package config | Add Staging URL to package config
| Elixir | apache-2.0 | brucepom/nerves_system_linkit_wifi_ap,brucepom/nerves_system_linkit_wifi_ap |
863c92fec2c70d0923e2e081285af6ce66b32b50 | lib/ex_twilio/resources/incoming_phone_number.ex | lib/ex_twilio/resources/incoming_phone_number.ex | defmodule ExTwilio.IncomingPhoneNumber do
@moduledoc """
Represents an IncomingPhoneNumber resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/api/rest/incoming-phone-numbers)
"""
defstruct sid: nil,
account_sid: nil,
date_created: nil,
date_updated: n... | defmodule ExTwilio.IncomingPhoneNumber do
@moduledoc """
Represents an IncomingPhoneNumber resource in the Twilio API.
- [Twilio docs](https://www.twilio.com/docs/api/rest/incoming-phone-numbers)
"""
defstruct sid: nil,
account_sid: nil,
identity_sid: nil,
date_created: n... | Add status, identity_sid to IncomingPhoneNumber fields | Add status, identity_sid to IncomingPhoneNumber fields
| Elixir | mit | danielberkompas/ex_twilio,danielberkompas/ex_twilio |
b1fbb8a0bf01675fba3af89c2916b6e972b87d92 | web/oauth2/github.ex | web/oauth2/github.ex | defmodule GitHub do
@moduledoc """
An OAuth2 strategy for GitHub.
"""
use OAuth2.Strategy
defp config do
[
strategy: GitHub,
site: "https://api.github.com",
authorize_url: "https://github.com/login/oauth/authorize",
token_url: "https://github.com/login/oauth/access_token",
c... | defmodule GitHub do
@moduledoc """
An OAuth2 strategy for GitHub.
"""
use OAuth2.Strategy
defp config do
[
strategy: GitHub,
site: "https://api.github.com",
authorize_url: "https://github.com/login/oauth/authorize",
token_url: "https://github.com/login/oauth/access_token",
c... | Remove user scope from OAuth authorization | Remove user scope from OAuth authorization
| Elixir | mit | lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks |
7b25acbe84fc0efa0d68b4808df87e9383f401fd | alcarin_api/apps/alcarin_web/config/config.exs | alcarin_api/apps/alcarin_web/config/config.exs | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :alcarin_web,
namespace: AlcarinWeb,
e... | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :alcarin_web,
namespace: AlcarinWeb,
e... | Make phoenix generators works create UUID id in db by default | Make phoenix generators works create UUID id in db by default
[api]
| Elixir | mit | alcarin-org/alcarin-elixir,alcarin-org/alcarin-elixir |
bd1749e56266750aeb79d3f1836a8f1c917192cf | lib/httparrot/general_request_info.ex | lib/httparrot/general_request_info.ex | defmodule HTTParrot.GeneralRequestInfo do
def retrieve(req) do
{args, req} = :cowboy_req.qs_vals(req)
{headers, req} = :cowboy_req.headers(req)
{url, req} = :cowboy_req.url(req)
{{ip, _port}, req} = :cowboy_req.peer(req)
ip = :inet_parse.ntoa(ip) |> to_string
args = flatten_dict(args)
{[... | defmodule HTTParrot.GeneralRequestInfo do
def retrieve(req) do
{args, req} = :cowboy_req.qs_vals(req)
{headers, req} = :cowboy_req.headers(req)
{url, req} = :cowboy_req.url(req)
{{ip, _port}, req} = :cowboy_req.peer(req)
ip = :inet_parse.ntoa(ip) |> to_string
args = group_by_keys(args)
{... | Use for comprehension instead of Enum.traverse | Use for comprehension instead of Enum.traverse
| Elixir | mit | edgurgel/httparrot,jordan0day/httparrot,edgurgel/httparrot |
31d6e7fb61eccaabde867d7ec690e755e807af9e | lib/doex/cli/shell.ex | lib/doex/cli/shell.ex | defmodule Doex.Cli.Shell do
def cmd("doex") do
if has_mix?() do
"mix doex"
else
"doex"
end
end
def cmd(raw_cmd) do
if has_mix?() do
String.replace(raw_cmd, "doex ", "mix doex.")
else
raw_cmd
end
end
def info(msg) do
if has_mix?() do
Mix.shell.info(ms... | defmodule Doex.Cli.Shell do
def cmd("doex") do
if has_mix?() do
"mix doex"
else
"doex"
end
end
def cmd(raw_cmd) do
if has_mix?() do
String.replace(raw_cmd, "doex ", "mix doex.")
else
raw_cmd
end
end
def info(msg) do
if has_mix?() do
Mix.shell.info(ms... | Add an Shell.inspect that can omit the output if --quiet set | Add an Shell.inspect that can omit the output if --quiet set
| Elixir | mit | capbash/doex |
40ff8d9e15501d9c368848d8130b6147d4c88004 | lib/mix/tasks/compile.phoenix.ex | lib/mix/tasks/compile.phoenix.ex | defmodule Mix.Tasks.Compile.Phoenix do
use Mix.Task
@recursive true
@moduledoc """
Compiles Phoenix source files that support code reloading.
"""
@doc false
def run(_args) do
{:ok, _} = Application.ensure_all_started(:phoenix)
case touch() do
[] -> :noop
_ -> :ok
end
end
@... | defmodule Mix.Tasks.Compile.Phoenix do
use Mix.Task
@recursive true
@moduledoc """
Compiles Phoenix source files that support code reloading.
"""
@doc false
def run(_args) do
{:ok, _} = Application.ensure_all_started(:phoenix)
case touch() do
[] -> :noop
_ -> :ok
end
end
@... | Use map instead of each | Use map instead of each
| Elixir | mit | rodrigues/phoenix,paulcsmith/phoenix,Gazler/phoenix,javimolla/phoenix,KazuCocoa/phoenix,kevinold/phoenix,switchflip/phoenix,marcioj/phoenix,ephe-meral/phoenix,cas27/phoenix,mitchellhenke/phoenix,keathley/phoenix,cas27/phoenix,michalmuskala/phoenix,nickgartmann/phoenix,mschae/phoenix,Gazler/phoenix,nshafer/phoenix,lance... |
7cc4d9b622ac26f6b815160268233cd81ff57e75 | lib/elixir_friends.ex | lib/elixir_friends.ex | defmodule ElixirFriends do
use Application
import Supervisor.Spec
@term "nintendo"
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint whe... | defmodule ElixirFriends do
use Application
import Supervisor.Spec
@term "elixirfriends"
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoin... | Use the actual term, Joseph | Use the actual term, Joseph
| Elixir | mit | knewter/elixir_friends,knewter/elixir_friends,knewter/elixir_friends |
7e8b724f46fed64fb0680ff81f449945583b8046 | lib/tilex/slack.ex | lib/tilex/slack.ex | defmodule Tilex.Slack do
def notify(post, developer, channel, url) do
"#{developer.username} created a new post <#{url}|#{post.title}> ##{channel.name}"
|> send_slack_message
end
def notify_of_awards(%Tilex.Post{max_likes: max_likes, title: title}, developer, url) do
appropriate_emoji = [ "🎉", "🎂",... | defmodule Tilex.Slack do
@emoji ~w(:tada: :birthday: :sparkles: :boom: :hearts: :balloon: :crown: :mortar_board: :trophy: :100:)
def notify(post, developer, channel, url) do
"#{developer.username} created a new post <#{url}|#{post.title}> ##{channel.name}"
|> send_slack_message
end
def notify_of_awar... | Convert emoji to Slack shortcodes | Convert emoji to Slack shortcodes
| Elixir | mit | hashrocket/tilex,hashrocket/tilex,hashrocket/tilex |
35b476d04fba3c8934680dd3fe6a8b91329eb0d9 | template/mix.exs | template/mix.exs | defmodule <%= application_module %>.Mixfile do
use Mix.Project
def project do
[ app: :<%= application_name %>,
version: "0.0.1",
elixir: "~> 0.15.1",
elixirc_paths: ["lib", "web"],
deps: deps ]
end
# Configuration for the OTP application
def application do
[
mod: { <%= ... | defmodule <%= application_module %>.Mixfile do
use Mix.Project
def project do
[ app: :<%= application_name %>,
version: "0.0.1",
elixir: "~> 0.15.1",
elixirc_paths: ["lib", "web"],
deps: deps ]
end
# Configuration for the OTP application
def application do
[
mod: { <%= ... | Update template to pull phoenix from hex | Update template to pull phoenix from hex | Elixir | mit | jeffkreeftmeijer/phoenix,fbjork/phoenix,SmartCasual/phoenix,robhurring/phoenix,dmarkow/phoenix,jwarwick/phoenix,VictorZeng/phoenix,lancehalvorsen/phoenix,KazuCocoa/phoenix,Rumel/phoenix,lono-devices/phoenix,phoenixframework/phoenix,Gazler/phoenix,Fluxuous/phoenix,iStefo/phoenix,doomspork/phoenix,seejee/phoenix,Gazler/p... |
c1eb3720e6d9c05bb38f1a56484269cf4a9628d0 | lib/farmbot/system/profile.ex | lib/farmbot/system/profile.ex | defmodule Farmbot.System.Profile do
@moduledoc File.read!("docs/PROFILES.md")
use GenServer
use Farmbot.Logger
def start_link do
GenServer.start_link(__MODULE__, [], [name: __MODULE__])
end
def init([]) do
profile = Application.get_env(:farmbot, :profile) || System.get_env("FBOS_PROFILE")
if p... | defmodule Farmbot.System.Profile do
@moduledoc File.read!("docs/PROFILES.md")
use GenServer
use Farmbot.Logger
def start_link do
GenServer.start_link(__MODULE__, [], [name: __MODULE__])
end
def init([]) do
profile = Application.get_env(:farmbot, :profile) || System.get_env("FBOS_PROFILE")
if p... | Fix bad path call thing | Fix bad path call thing
| Elixir | mit | FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os |
cd04d72cf06b8ad58d24cc10806ed4ea43151592 | lib/ex_twilio/resources/lookup.ex | lib/ex_twilio/resources/lookup.ex | defmodule ExTwilio.Lookup do
@moduledoc """
Represents the Lookup Api provided by Twilio
- [Twilio docs](https://www.twilio.com/docs/api/lookups)
"""
alias ExTwilio.{Parser, Config}
alias ExTwilio.UrlGenerator, as: Url
@base_url "https://lookups.twilio.com/v1/PhoneNumbers/"
defmodule PhoneNumber ... | defmodule ExTwilio.Lookup do
@moduledoc """
Represents the Lookup Api provided by Twilio
- [Twilio docs](https://www.twilio.com/docs/lookup/api)
"""
alias ExTwilio.{Parser, Config}
alias ExTwilio.UrlGenerator, as: Url
@base_url "https://lookups.twilio.com/v1/PhoneNumbers/"
defmodule PhoneNumber d... | Update redirect to Lookup Api page | Update redirect to Lookup Api page
| Elixir | mit | danielberkompas/ex_twilio,danielberkompas/ex_twilio |
8bcf128aa539b262d278ac0910da4e2d77b40f00 | config/config.exs | config/config.exs | use Mix.Config
if Mix.env in ~w(dev docs ci)a do
config :ex_doc, :markdown_processor, ExDoc.Markdown.Cmark
end
| # @deprecated; replace with `import Config`
# once 1.9 is the last supported Elixir version
use Mix.Config
if Mix.env in ~w(dev docs ci)a do
config :ex_doc, :markdown_processor, ExDoc.Markdown.Cmark
end
| Add note for Config usage in the future | Add note for Config usage in the future
| Elixir | mit | asaaki/cmark.ex,asaaki/cmark.ex |
fbbcc3d49dda29da7897dccba356b8385f012386 | test/test_helper.exs | test/test_helper.exs | ExUnit.start()
case :gen_tcp.connect('localhost', 6379, []) do
{:ok, socket} ->
:gen_tcp.close(socket)
{:error, reason} ->
Mix.raise "Cannot connect to Redis (http://localhost:6379): #{:inet.format_error(reason)}"
end
defmodule Redix.TestHelpers do
def silence_log(fun) do
Logger.remove_backend :cons... | ExUnit.start()
case :gen_tcp.connect('localhost', 6379, []) do
{:ok, socket} ->
:gen_tcp.close(socket)
{:error, reason} ->
Mix.raise "Cannot connect to Redis (http://localhost:6379): #{:inet.format_error(reason)}"
end
defmodule Redix.TestHelpers do
# TODO: replace with ExUnit.CaptureIO once we can depen... | Add a TODO for when we'll update to Elixir >= 1.1 | Add a TODO for when we'll update to Elixir >= 1.1
| Elixir | mit | whatyouhide/redix |
16f9f7fb7bc35990def56da3280dbee0347f86b2 | lib/funnel.ex | lib/funnel.ex | defmodule Funnel do
use Application.Behaviour
@doc """
The application callback used to start this
application and its Dynamos.
"""
def start(_type, _args) do
Funnel.Supervisor.start_link
end
@doc """
Register a new transport.
* `transport` - Something implementing the `Funnel.Transport` p... | defmodule Funnel do
use Application
@doc """
The application callback used to start this
application and its Dynamos.
"""
def start(_type, _args) do
Funnel.Supervisor.start_link
end
@doc """
Register a new transport.
* `transport` - Something implementing the `Funnel.Transport` protocol
... | Migrate fro; `Application.Behavior` to `Application` | Migrate fro; `Application.Behavior` to `Application`
Signed-off-by: chatgris <f9469d12bf3d131e7aae80be27ccfe58aa9db1f1@af83.com>
| Elixir | mit | chatgris/funnel |
1b2f67ecd4658c3d0122659c9fe41fb36d9d345c | config/dev.exs | config/dev.exs | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :gatekeeper, Gatekeeper.Endpoint,
http: [port:... | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :gatekeeper, Gatekeeper.Endpoint,
http: [port:... | Fix Postgres error for database encoding | Fix Postgres error for database encoding | Elixir | mit | alkaloid/gatekeeper,alkaloid/gatekeeper,alkaloid/gatekeeper |
6838e391088b956b727019ef2e3489efdce1bb97 | example/lib/example/application.ex | example/lib/example/application.ex | defmodule Example.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
@target Mix.target()
use Application
def start(_type, _args) do
platform_init(@target)
opts = [strategy: :one_for_one, name: Example.Supervisor]
Super... | defmodule Example.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
@target Mix.target()
use Application
def start(_type, _args) do
platform_init(@target)
opts = [strategy: :one_for_one, name: Example.Supervisor]
Super... | Fix host mode boot in example | Fix host mode boot in example
| Elixir | apache-2.0 | LeToteTeam/kiosk_system_rpi3,LeToteTeam/kiosk_system_rpi3 |
aea07a00e740e4ee03f3f815ebe7185f73634ccb | lib/phoenix/project.ex | lib/phoenix/project.ex | defmodule Phoenix.Project do
@doc """
Returns the Applications name as an Atom, ie :phoenix
"""
def app do
Keyword.get Mix.Project.config, :app
end
@doc """
Returns the "root" module of the Application, ie `MyApp`
"""
def module_root do
app
|> to_string
|> Mix.Utils.camelize
|> S... | defmodule Phoenix.Project do
@doc """
Returns the Applications name as an Atom, ie :phoenix
"""
def app do
Keyword.get Mix.Project.config, :app
end
@doc """
Returns the "root" module of the Application, ie `MyApp`
"""
def module_root do
app
|> to_string
|> Mix.Utils.camelize
|> S... | Refactor Project.root_path to use Application.app_dir | Refactor Project.root_path to use Application.app_dir
| Elixir | mit | KazuCocoa/phoenix,vic/phoenix,wsmoak/phoenix,optikfluffel/phoenix,DavidAlphaFox/phoenix,ahmetabdi/phoenix,phoenixframework/phoenix,manukall/phoenix,Dahoon/phoenix,nshafer/phoenix,henrik/phoenix,daytonn/phoenix,gjaldon/phoenix,Gazler/phoenix,michalmuskala/phoenix,mitchellhenke/phoenix,jamilabreu/phoenix,nshafer/phoenix,... |
2039e86c9b58a49778594190b242cb9e74caa9bd | test/credo/check/readability/prefer_implicit_try_test.exs | test/credo/check/readability/prefer_implicit_try_test.exs | defmodule Credo.Check.Readability.PreferImplicitTryTest do
use Credo.TestHelper
@described_check Credo.Check.Readability.PreferImplicitTry
test "it should report cases where a `try` block is the entire body of the function" do
"""
defmodule ModuleWithExplicitTry do
def failing_function(first) do
try do
... | defmodule Credo.Check.Readability.PreferImplicitTryTest do
use Credo.TestHelper
@described_check Credo.Check.Readability.PreferImplicitTry
test "it should NOT report implicit use of `try`" do
"""
defmodule ModuleWithImplicitTry do
def failing_function(first) do
to_string(first)
rescue
_ -> :rescued
... | Fix order of tests for PreferImplicitTry | Fix order of tests for PreferImplicitTry
Refs #264
| Elixir | mit | rrrene/credo,rrrene/credo |
7f4905e87de0b658c626fed7ddc588baba0029be | clients/books/mix.exs | clients/books/mix.exs | defmodule GoogleApi.Books.V1.Mixfile do
use Mix.Project
@version "0.0.1"
def project() do
[
app: :google_api_books,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package... | defmodule GoogleApi.Books.V1.Mixfile do
use Mix.Project
@version "0.0.1"
def project() do
[
app: :google_api_books,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package... | Fix GitHub link for books | Fix GitHub link for books
| Elixir | apache-2.0 | googleapis/elixir-google-api,googleapis/elixir-google-api,googleapis/elixir-google-api |
4b6b10f84c32832f8c3efa4ad883d3274e3372c2 | lib/remote_retro_web/models/idea.ex | lib/remote_retro_web/models/idea.ex | defmodule RemoteRetro.Idea do
use RemoteRetroWeb, :model
@derive {Jason.Encoder, except: [:__meta__, :retro, :user, :votes, :assignee]}
schema "ideas" do
field(:category, :string)
field(:body, :string)
belongs_to(:retro, RemoteRetro.Retro, type: Ecto.UUID)
belongs_to(:user, RemoteRetro.User)
... | defmodule RemoteRetro.Idea do
use RemoteRetroWeb, :model
@derive {Jason.Encoder, except: [:__meta__, :retro, :user, :votes, :assignee]}
schema "ideas" do
field(:category, :string)
field(:body, :string)
field(:x, :float)
field(:y, :float)
belongs_to(:retro, RemoteRetro.Retro, type: Ecto.UUID)... | Update Idea schema to accommodate persistence of x & y coordinates | Update Idea schema to accommodate persistence of x & y coordinates
| Elixir | mit | stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.