hexsha stringlengths 40 40 | size int64 2 991k | ext stringclasses 2
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 208 | max_stars_repo_name stringlengths 6 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses list | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 208 | max_issues_repo_name stringlengths 6 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses list | max_issues_count int64 1 16.3k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 208 | max_forks_repo_name stringlengths 6 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses list | max_forks_count int64 1 6.91k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 991k | avg_line_length float64 1 36k | max_line_length int64 1 977k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acf3e68c25a934c0b7222a6fbb76c45f7b5a58c9 | 2,068 | exs | Elixir | config/releases.exs | magpie-ea/magpie-backend | f8fe118583f2460f4f3dc1daa8758b7b758ab606 | [
"MIT"
] | 1 | 2020-05-31T21:54:40.000Z | 2020-05-31T21:54:40.000Z | config/releases.exs | magpie-ea/magpie-backend | f8fe118583f2460f4f3dc1daa8758b7b758ab606 | [
"MIT"
] | 64 | 2019-07-29T22:06:16.000Z | 2022-03-28T23:46:58.000Z | config/releases.exs | magpie-ea/magpie-backend | f8fe118583f2460f4f3dc1daa8758b7b758ab606 | [
"MIT"
] | 1 | 2021-02-06T10:23:25.000Z | 2021-02-06T10:23:25.000Z | import Config
config :magpie, Magpie.Endpoint,
http: [port: System.get_env("PORT", "80") |> String.to_integer()],
url: [
scheme: System.get_env("URL_SCHEME", "https"),
host: System.fetch_env!("HOST"),
path: System.get_env("MAGPIE_PATH", "/"),
port: System.get_env("PORT", "80") |> String.to_integer(... | 32.825397 | 206 | 0.672631 |
acf3e88a1c4e827e84a6b8543bfe70171d95c68b | 786 | ex | Elixir | socket_gallows/test/support/channel_case.ex | wronfim/hangman_game | c4dc4b9f122e773fe87ac4dc88206b792c1b239e | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/gnome/game/socket_gallows/test/support/channel_case.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/gnome/game/socket_gallows/test/support/channel_case.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule SocketGallowsWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case intera... | 23.117647 | 58 | 0.73028 |
acf40b8c93c628e816e45e8514a80590e5e6aeaf | 141 | ex | Elixir | lib/conduit/accounts/events/user_password_changed.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | lib/conduit/accounts/events/user_password_changed.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | 2 | 2022-01-15T02:09:30.000Z | 2022-01-22T10:18:43.000Z | lib/conduit/accounts/events/user_password_changed.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | defmodule Conduit.Accounts.Events.UserPasswordChanged do
@derive Jason.Encoder
defstruct [
:user_uuid,
:hashed_password,
]
end
| 17.625 | 56 | 0.744681 |
acf4274dd058a6df4ea1edabece8c51e29722b7f | 631 | exs | Elixir | config/prod.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | 2 | 2019-12-05T21:37:48.000Z | 2020-01-02T02:43:33.000Z | config/prod.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | null | null | null | config/prod.exs | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | null | null | null | use Mix.Config
config :twitter, TwitterWeb.Endpoint,
load_from_system_env: true,
url: [scheme: "https", host: "immense-harbor-97557.herokuapp.com/", port: 443],
force_ssl: [rewrite_on: [:x_forwarded_proto]],
cache_static_manifest: "priv/static/cache_manifest.json",
secret_key_base: Map.fetch!(System.get_env(... | 30.047619 | 81 | 0.744849 |
acf431d8cf4a99292e04600f80c36163adc3d2c8 | 788 | ex | Elixir | lib/membrane/core/bin/callback_context.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/bin/callback_context.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/bin/callback_context.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Core.Bin.CallbackContext do
@moduledoc false
use Membrane.Core.CallbackContext,
playback_state: Membrane.PlaybackState.t(),
clock: Membrane.Clock.t(),
parent_clock: Membrane.Clock.t(),
pads: %{Membrane.Pad.ref_t() => Membrane.Pad.Data.t()},
name: Membrane.Bin.name_t(),
ch... | 30.307692 | 67 | 0.675127 |
acf43c5b80b66c9d4f39c7a910a2c28122690cab | 5,891 | ex | Elixir | lib/agones/dev/sdk/sdk.pb.ex | Shikanime/Agonex | 2a0cb3dca54f7267ff43835a08cc78fcdd6bb0e0 | [
"MIT"
] | null | null | null | lib/agones/dev/sdk/sdk.pb.ex | Shikanime/Agonex | 2a0cb3dca54f7267ff43835a08cc78fcdd6bb0e0 | [
"MIT"
] | null | null | null | lib/agones/dev/sdk/sdk.pb.ex | Shikanime/Agonex | 2a0cb3dca54f7267ff43835a08cc78fcdd6bb0e0 | [
"MIT"
] | null | null | null | defmodule Agones.Dev.Sdk.Empty do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{}
defstruct []
end
defmodule Agones.Dev.Sdk.KeyValue do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
key: String.t(),
value: String.t()
}
defst... | 26.536036 | 84 | 0.661857 |
acf45f4d03f3a0ee19051a42766674864a8210cc | 190 | exs | Elixir | priv/repo/migrations/20170703055625_add_sponsorship_price.exs | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | priv/repo/migrations/20170703055625_add_sponsorship_price.exs | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | priv/repo/migrations/20170703055625_add_sponsorship_price.exs | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityTools.Repo.Migrations.AddSponsorshipPrice do
use Ecto.Migration
def change do
alter table(:sponsorship_options) do
add :price, :decimal
end
end
end
| 15.833333 | 63 | 0.736842 |
acf46043a83d0e09b27407bb4415a49cc5723929 | 2,154 | exs | Elixir | crawler_challenge/test/crawler_challenge/courts_test.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | crawler_challenge/test/crawler_challenge/courts_test.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | 3 | 2021-05-08T08:50:39.000Z | 2022-02-10T19:40:38.000Z | crawler_challenge/test/crawler_challenge/courts_test.exs | tuliostarling/elixir-crawler | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | defmodule CrawlerChallenge.CourtsTest do
use CrawlerChallenge.DataCase
alias CrawlerChallenge.Courts
describe "courts" do
alias CrawlerChallenge.Courts.Court
@valid_attrs %{name: "some name", initials: "some initials"}
@update_attrs %{name: "some updated name", initials: "some initials"}
@inval... | 30.771429 | 85 | 0.667131 |
acf4612a450e3cec2d9c33945f15ecc0b8f283bb | 509 | ex | Elixir | lib/banned_book_report_web/views/error_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/views/error_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | lib/banned_book_report_web/views/error_view.ex | LannyBose/banned-book-report | 38de7d6399609c104f4821dc06672e8f583ecaed | [
"MIT"
] | null | null | null | defmodule BannedBookReportWeb.ErrorView do
use BannedBookReportWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
#... | 29.941176 | 61 | 0.744597 |
acf47a3a3984a4d0248085ce4c7010909626e5f7 | 1,038 | ex | Elixir | test/support/conn_case.ex | E1337Kat/chatter | e21728af5bfcadf3723b531081e0536a95da043e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | E1337Kat/chatter | e21728af5bfcadf3723b531081e0536a95da043e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | E1337Kat/chatter | e21728af5bfcadf3723b531081e0536a95da043e | [
"MIT"
] | null | null | null | defmodule ChatterWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the... | 26.615385 | 69 | 0.719653 |
acf4cccb201157d4a2c80067eca9c3fb4cf4fba8 | 6,406 | ex | Elixir | data/web/deps/gettext/lib/gettext/merger.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/gettext/lib/gettext/merger.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/gettext/lib/gettext/merger.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule Gettext.Merger do
@moduledoc false
alias Gettext.PO
alias Gettext.PO.Translation
alias Gettext.PO.PluralTranslation
alias Gettext.Fuzzy
@min_jaro_distance 0.8
@new_po_informative_comment """
## `msgid`s in this file come from POT (.pot) files.
##
## Do not add, change, or remove `msgid`... | 34.44086 | 88 | 0.675148 |
acf4fd5a33bd9ca1a3438a291133aef1ca3af547 | 709 | exs | Elixir | test/day1_test.exs | mbialon/adventofcode-elixir | d1a8b87a3148603f34ee63b85b2f3f7fb783ad3e | [
"Apache-2.0"
] | null | null | null | test/day1_test.exs | mbialon/adventofcode-elixir | d1a8b87a3148603f34ee63b85b2f3f7fb783ad3e | [
"Apache-2.0"
] | null | null | null | test/day1_test.exs | mbialon/adventofcode-elixir | d1a8b87a3148603f34ee63b85b2f3f7fb783ad3e | [
"Apache-2.0"
] | null | null | null | defmodule Day1Test do
use ExUnit.Case, async: true
test "((())) is floor 0" do
assert Day1.floor("((()))") == 0
end
test "()() is floor 0" do
assert Day1.floor("()()") == 0
end
test "((( is floor 3" do
assert Day1.floor("(((") == 3
end
test "(()(()( is floor 3" do
assert Day1.floor("... | 17.725 | 38 | 0.480959 |
acf5032834f4b5b23cea7603972ea9d146c10b54 | 196 | ex | Elixir | lib/jeopardy/fsm/jeopardy/reading_daily_double.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy/fsm/jeopardy/reading_daily_double.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy/fsm/jeopardy/reading_daily_double.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule Jeopardy.FSM.Jeopardy.ReadingDailyDouble do
use Jeopardy.FSM
@impl true
def handle(:next, _, %State{} = state) do
{:ok, State.update_round(state, "answering_clue")}
end
end
| 21.777778 | 54 | 0.714286 |
acf5180613048adc9359e3f7b0ab4b617e016178 | 1,248 | ex | Elixir | test/support/conn_case.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 2 | 2020-05-25T05:28:31.000Z | 2020-05-25T08:10:43.000Z | test/support/conn_case.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 9 | 2020-05-25T16:39:15.000Z | 2020-11-11T16:51:37.000Z | test/support/conn_case.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | null | null | null | defmodule AmbrosiaWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if t... | 28.363636 | 70 | 0.725962 |
acf570f2fb8bf37cee2c9971ba5aa37fd64c4510 | 4,809 | ex | Elixir | lib/mmo_game/hero.ex | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | null | null | null | lib/mmo_game/hero.ex | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | 2 | 2021-03-10T11:57:02.000Z | 2021-05-11T07:36:34.000Z | lib/mmo_game/hero.ex | joaobalsini/mmo_game | 60d046c92ce0cf3038ba3cbd9bfd33aa79e22969 | [
"MIT"
] | null | null | null | defmodule MmoGame.Hero do
@moduledoc """
Defines a Hero.
Hero is a genserver and keeps his own state using %Hero{} struct.
"""
@enforce_keys [:id, :name, :position, :dead]
defstruct @enforce_keys
use GenServer
@type id :: {atom(), binary()}
@type hero_name :: binary()
@type t :: %__MODULE__{
... | 28.122807 | 92 | 0.614473 |
acf57f49f043675150c5fc280b6777db0bf20a11 | 654 | exs | Elixir | psquare/mix.exs | bhaveshpoddar94/PerfectSquares | 1a026f66404776e806f0401435358cd602d85f69 | [
"MIT"
] | null | null | null | psquare/mix.exs | bhaveshpoddar94/PerfectSquares | 1a026f66404776e806f0401435358cd602d85f69 | [
"MIT"
] | null | null | null | psquare/mix.exs | bhaveshpoddar94/PerfectSquares | 1a026f66404776e806f0401435358cd602d85f69 | [
"MIT"
] | null | null | null | defmodule PSQUARE.MixProject do
use Mix.Project
def project do
[
app: :psquare,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: escript()
]
end
# Run "mix help compile.app" to learn about applications.
def applicatio... | 19.235294 | 88 | 0.58104 |
acf5883c1ffa6080204be35d5d2c2c5a4f2b4720 | 924 | exs | Elixir | test/xdr/types/int64_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/types/int64_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/types/int64_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Int64Test do
use ExUnit.Case
alias StellarBase.XDR.Int64
describe "Int64" do
setup do
%{
int64: Int64.new(123_456_789),
binary: <<0, 0, 0, 0, 7, 91, 205, 21>>
}
end
test "new/1" do
%Int64{datum: 123_456_789} = Int64.new(123_456_789)
en... | 23.692308 | 61 | 0.602814 |
acf5bd87bc5d3f99453a9872ddef15c2715cfe5b | 4,814 | ex | Elixir | lib/coherence/controllers/password_controller.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | lib/coherence/controllers/password_controller.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | lib/coherence/controllers/password_controller.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | defmodule Coherence.PasswordController do
@moduledoc """
Handle password recovery actions.
Controller that handles the recover password feature.
Actions:
* new - render the recover password form
* create - verify user's email address, generate a token, and send the email
* edit - render the reset passw... | 32.972603 | 90 | 0.651849 |
acf5e68d9108118a50b1661da9ae66e1c7d11ea1 | 915 | exs | Elixir | test/currency_unit_test.exs | kianmeng/cldr_units | fae3ed1f658e6b4c5164c2ebbe786cc562014a8b | [
"Apache-2.0"
] | 1 | 2018-10-29T14:03:58.000Z | 2018-10-29T14:03:58.000Z | test/currency_unit_test.exs | kianmeng/cldr_units | fae3ed1f658e6b4c5164c2ebbe786cc562014a8b | [
"Apache-2.0"
] | 9 | 2017-11-08T10:42:42.000Z | 2019-03-22T23:59:23.000Z | test/currency_unit_test.exs | kianmeng/cldr_units | fae3ed1f658e6b4c5164c2ebbe786cc562014a8b | [
"Apache-2.0"
] | 3 | 2017-10-05T11:35:32.000Z | 2018-08-06T21:47:43.000Z | defmodule Cldr.CurrencyUnits.Test do
use ExUnit.Case, async: true
test "creation of standalone currency-based units" do
assert {:ok, _} = Cldr.Unit.new(2, "curr-eur")
assert {:error, _} = Cldr.Unit.new(2, "curr-xyz")
assert {:error, _} = Cldr.Unit.new(2, "curr-invalid")
end
test "creation of curre... | 35.192308 | 79 | 0.629508 |
acf5e93f98211bef5039db60dc1bae92d9c88791 | 2,438 | exs | Elixir | server/config/prod.exs | dannicolici/news.ex | 301395a324a2c5fd3eb6255d598bc3a9cf20670e | [
"Apache-2.0"
] | null | null | null | server/config/prod.exs | dannicolici/news.ex | 301395a324a2c5fd3eb6255d598bc3a9cf20670e | [
"Apache-2.0"
] | 5 | 2018-11-28T06:32:38.000Z | 2019-02-07T08:05:32.000Z | server/config/prod.exs | dannicolici/news.ex | 301395a324a2c5fd3eb6255d598bc3a9cf20670e | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 33.861111 | 69 | 0.712059 |
acf60a3e5db4e193c92631f3426a1b349528d307 | 866 | ex | Elixir | lib/nautilus/adapters/utils_adapter/get_hostname.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | lib/nautilus/adapters/utils_adapter/get_hostname.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | lib/nautilus/adapters/utils_adapter/get_hostname.ex | CarloHFR/NautilusGateway | 26211948c5f9127e6662a90e41df5b43b2408372 | [
"MIT"
] | null | null | null | defmodule Nautilus.Adapters.Utils.GetHostname do
@moduledoc """
This module is responsible for return the current hostname
"""
@behaviour Application.get_env(:nautilus, :GetHostnamePort)
@port Application.get_env(:nautilus, :listen_port)
@hostname_api_url Application.get_env(:nautilus,... | 27.935484 | 72 | 0.569284 |
acf60b2a6f22dbb670057e37fc91126cef57ba4e | 1,942 | ex | Elixir | implementations/elixir/ockam/_ockam/lib/ockam/wire/binary/v1/route.ex | piotr-cla/ockam | 914cd3ec1620181ac64ad2fb13d843f3eb184464 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/_ockam/lib/ockam/wire/binary/v1/route.ex | piotr-cla/ockam | 914cd3ec1620181ac64ad2fb13d843f3eb184464 | [
"Apache-2.0"
] | 57 | 2021-07-05T01:21:31.000Z | 2022-03-24T01:12:50.000Z | implementations/elixir/ockam/_ockam/lib/ockam/wire/binary/v1/route.ex | piotr-cla/ockam | 914cd3ec1620181ac64ad2fb13d843f3eb184464 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Wire.Binary.V1.Route do
@moduledoc false
alias Ockam.Wire.Binary.V1.Address
alias Ockam.Wire.DecodeError
alias Ockam.Wire.EncodeError
require DecodeError
require EncodeError
def encode(route) when is_list(route) do
case encode_addresses(route, []) do
{:error, error} ->
... | 28.144928 | 96 | 0.660659 |
acf614f0f42bfe5a52b05d4318daadd140eeee5a | 1,665 | exs | Elixir | test/marco_polo/protocol/csv_types_test.exs | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | 76 | 2015-08-03T21:47:05.000Z | 2020-07-15T08:00:01.000Z | test/marco_polo/protocol/csv_types_test.exs | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | 33 | 2015-07-31T15:45:52.000Z | 2021-07-21T05:54:22.000Z | test/marco_polo/protocol/csv_types_test.exs | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | 18 | 2015-08-06T05:04:18.000Z | 2021-07-19T03:26:44.000Z | defmodule MarcoPolo.Protocol.CSVTypesTest do
use ExUnit.Case
doctest MarcoPolo.Protocol.CSVTypes
import MarcoPolo.Protocol.CSVTypes
test "decode/1: booleans" do
assert decode("true") == true
assert decode("false") == false
end
test "decode/1: strings" do
data = ~s("hey there")
assert dec... | 26.854839 | 94 | 0.593994 |
acf619845f0ebfb362ac9fd9cf9502ee7de96819 | 14,145 | exs | Elixir | lib/elixir/test/elixir/code_formatter/general_test.exs | joerichsen/elixir | 5ba5e7b1687587f5a58019c9e0b5a0b2d0ab96ff | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/general_test.exs | joerichsen/elixir | 5ba5e7b1687587f5a58019c9e0b5a0b2d0ab96ff | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/general_test.exs | joerichsen/elixir | 5ba5e7b1687587f5a58019c9e0b5a0b2d0ab96ff | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.GeneralTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
test "does not emit warnings" do
assert_format "fn -> end", "fn -> nil end"
end
describe "aliases" do
test "with atom... | 16.09215 | 86 | 0.425168 |
acf636f54a665ed499e8918d0b5cda949ebd73be | 869 | exs | Elixir | snippets/random_noise_png.exs | sgeos/simplex_noise | b2fe2da0436d8e824bb398c39170c7ca44d9b215 | [
"CC0-1.0"
] | 7 | 2016-09-06T23:15:19.000Z | 2020-11-12T13:59:00.000Z | snippets/random_noise_png.exs | sgeos/simplex_noise | b2fe2da0436d8e824bb398c39170c7ca44d9b215 | [
"CC0-1.0"
] | null | null | null | snippets/random_noise_png.exs | sgeos/simplex_noise | b2fe2da0436d8e824bb398c39170c7ca44d9b215 | [
"CC0-1.0"
] | 1 | 2019-10-28T18:53:34.000Z | 2019-10-28T18:53:34.000Z | :random.seed(:os.system_time)
path = "snippets/"
width = 512
height = 512
bit_depth = 8
# define an 8 bit RGB palette with 8 colors
palette = {
:rgb,
bit_depth,
[
{0xFF,0xFF,0xFF}, # snow
{0x55,0x11,0x11}, # mountain
{0x77,0x22,0xCC}, # swamp
{0x11,0x99,0x11}, # forest
{0x88,0xFF,0x88}, # g... | 17.734694 | 55 | 0.590334 |
acf644d0dc65f02ed7de3e95a4d5e8cf7032b60a | 934 | exs | Elixir | config/test.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | config/test.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | config/test.exs | PillarTechnology/discovery_api | ee4b91ff492af72cb1d7867775d6cc41c12a43f3 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :prestige, :session_opts, url: "http://localhost:8080"
config :discovery_api, DiscoveryApiWeb.Endpoint,
http: [port: 4001],
server: false,
url: [host: "data.tests.example.com", port: 80]
config :discovery_api,
user_info_endpoint: "pretend-this-is-a-url/userinfo",
jwks_endpoint: "prete... | 25.243243 | 106 | 0.70985 |
acf673c4644447c263d2e92d330b2819c3f802ae | 1,736 | exs | Elixir | priv/templates/brando.upgrade/migrations/brando_78_move_multi_refs_and_vars_under_data.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | priv/templates/brando.upgrade/migrations/brando_78_move_multi_refs_and_vars_under_data.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | priv/templates/brando.upgrade/migrations/brando_78_move_multi_refs_and_vars_under_data.exs | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Repo.Migrations.MoveMultiRefsAndVarsUnderData do
use Ecto.Migration
import Ecto.Query
def up do
# Add your own schemas to the reject list, if they were created AFTER this migration
villain_schemas = Enum.reject(Brando.Villain.list_villains(), &(elem(&1, 0) in [
Brando.Content.Templ... | 27.555556 | 96 | 0.559332 |
acf69cc65d1454f390f9b12ef15e4a24facdf7fe | 1,391 | exs | Elixir | pattern_matching_and_state_machines/benchmark/run.exs | StoiximanServices/blog | b164ae5e8fb4701ee40925aca9aef2297b80be95 | [
"MIT"
] | 10 | 2016-11-28T03:38:36.000Z | 2021-08-24T10:38:38.000Z | pattern_matching_and_state_machines/benchmark/run.exs | StoiximanServices/blog | b164ae5e8fb4701ee40925aca9aef2297b80be95 | [
"MIT"
] | null | null | null | pattern_matching_and_state_machines/benchmark/run.exs | StoiximanServices/blog | b164ae5e8fb4701ee40925aca9aef2297b80be95 | [
"MIT"
] | 3 | 2018-07-11T08:31:41.000Z | 2019-01-24T18:16:44.000Z | text = File.read!("benchmark/text.txt")
params = %{
"p1" => "felis, volutpat ac est eu, congue commodo",
"p2" => "Ut diam lectus, maximus sit amet lacus",
"p3" => "Donec vestibulum efficitur odio"
}
Benchee.run(%{
"bin_concat naive" => fn -> StringFormatterConcat.format(text, params) end, #binary concatena... | 49.678571 | 129 | 0.723221 |
acf6b0c918afec78a80b66586b04c027a55f7695 | 563 | ex | Elixir | test/modules/burrito_test_module.ex | simble-app/CodeComplete | 40da6850f4fe20c503d96f5c27f8ee0f6ec0bd7f | [
"MIT"
] | null | null | null | test/modules/burrito_test_module.ex | simble-app/CodeComplete | 40da6850f4fe20c503d96f5c27f8ee0f6ec0bd7f | [
"MIT"
] | 1 | 2015-06-29T03:14:45.000Z | 2015-06-29T03:14:45.000Z | test/modules/burrito_test_module.ex | simble-app/CodeComplete | 40da6850f4fe20c503d96f5c27f8ee0f6ec0bd7f | [
"MIT"
] | null | null | null | defmodule CodeComplete.TestModules.Burrito do
defstruct protein: nil, toppings: nil, magic: "" # burrito's always have magic
# Used for testing AST parsing of a single method
def protein(protein_nugget) do
"#{protein_nugget} burrito"
end
# Used for testing AST parsing of a method with multiple arguments... | 24.478261 | 80 | 0.744227 |
acf6bb6dd11a6aa4b58f00ecd065f9df5810bb64 | 2,063 | ex | Elixir | lib/jumubase_web/live/internal/contest_live/index.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase_web/live/internal/contest_live/index.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase_web/live/internal/contest_live/index.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.Internal.ContestLive.Index do
use JumubaseWeb, :live_view
import JumubaseWeb.Internal.ContestView, only: [round_options: 0]
alias Jumubase.JumuParams
alias Jumubase.Accounts
alias Jumubase.Foundation
alias Jumubase.Foundation.Contest
alias Jumubase.Foundation.ContestFilter
alias Ju... | 27.878378 | 86 | 0.702375 |
acf6be31d8e2827b292bcd50abba2d30ae2ffd89 | 156 | ex | Elixir | elixir-class/basic/5-control-structure/if_mod.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/basic/5-control-structure/if_mod.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/basic/5-control-structure/if_mod.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | defmodule M do
def hi(name) do
if name == "ikhlas" do
IO.puts "Hello, ikhlas firlana"
else
IO.puts "Hello, #{name}"
end
end
end | 15.6 | 37 | 0.570513 |
acf6d679f33c0df0f3296db554e2a71fb89d9120 | 2,220 | ex | Elixir | lib/cfxxl/client.ex | bettio/cfxxl | c9aed7a1006bc2d41599a06fd96ab52f21333bdb | [
"MIT"
] | null | null | null | lib/cfxxl/client.ex | bettio/cfxxl | c9aed7a1006bc2d41599a06fd96ab52f21333bdb | [
"MIT"
] | null | null | null | lib/cfxxl/client.ex | bettio/cfxxl | c9aed7a1006bc2d41599a06fd96ab52f21333bdb | [
"MIT"
] | null | null | null | # Copyright (c) 2017 Ispirata Srl
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distr... | 27.75 | 102 | 0.676577 |
acf6fc3bdcf76812547d012bedda23032b9956f1 | 200 | ex | Elixir | lib/beam/node/node.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/node/node.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | lib/beam/node/node.ex | itsemilano/beam | afa79d7f31d2e2d4ded381656735d08cabd4f9ea | [
"Apache-2.0"
] | null | null | null | defmodule Example_No do
def start do
Node.alive?()
end
def start2 do
Node.ping(:unknown_node)
end
def start3 do
{:ok, pid} = Node.start(:example, :shortnames, 15000)
end
end
| 14.285714 | 57 | 0.65 |
acf7021075ed663e9426cdad667f4528878a3710 | 4,933 | ex | Elixir | lib/yabby_gps.ex | eagle-te/element-parsers | c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e | [
"MIT"
] | null | null | null | lib/yabby_gps.ex | eagle-te/element-parsers | c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e | [
"MIT"
] | null | null | null | lib/yabby_gps.ex | eagle-te/element-parsers | c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
require Logger
#
# Parser for yabby LoRaWAN GPS device that will provide GPS data.
#
# Changelog:
# 2019-05-13 [as]: Initial implementation according to "Yabby_LoRaWAN_Integration_1.3.pdf", provided by ZENNER Connect
#
def parse(<<latitude::signed... | 25.040609 | 267 | 0.537401 |
acf77726e65ce76010c0dc5caeafb03843c783ea | 328 | ex | Elixir | lib/client/client_behaviour.ex | StoiximanServices/ex_insights | 9c54c13fe9ed008c440f5c5ae5fc4bd9db3a4fbb | [
"MIT"
] | 23 | 2017-08-28T15:11:26.000Z | 2021-08-24T10:38:50.000Z | lib/client/client_behaviour.ex | StoiximanServices/ex_insights | 9c54c13fe9ed008c440f5c5ae5fc4bd9db3a4fbb | [
"MIT"
] | 12 | 2017-08-31T11:21:16.000Z | 2021-11-04T19:47:15.000Z | lib/client/client_behaviour.ex | StoiximanServices/ex_insights | 9c54c13fe9ed008c440f5c5ae5fc4bd9db3a4fbb | [
"MIT"
] | 11 | 2017-08-30T12:16:22.000Z | 2020-09-25T17:58:18.000Z | defmodule ExInsights.Client.ClientBehaviour do
@moduledoc """
Defines mathods to be implemented by app insights clients.
Used as a common interface for actual and test clients
"""
@doc """
Invoked to send telemetry data to azure
"""
@callback track([ExInsights.Envelope.t()]) :: {:error, any} | {:ok, a... | 25.230769 | 74 | 0.698171 |
acf77d79fe50147828c0df6e594a3dc960e829eb | 1,579 | ex | Elixir | deps/ecto/lib/ecto/migration/schema_migration.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | deps/ecto/lib/ecto/migration/schema_migration.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/migration/schema_migration.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | defmodule Ecto.Migration.SchemaMigration do
# Define a schema that works with the a table, which is schema_migrations by default
@moduledoc false
use Ecto.Schema
import Ecto.Query, only: [from: 2]
@primary_key false
schema "schema_migrations" do
field :version, :integer
timestamps updated_at: fals... | 29.240741 | 86 | 0.689677 |
acf780dfa40a6fcee8a42da69ca18640e7bd509f | 7,760 | ex | Elixir | lib/permastate_operator/controllers/v1/action.ex | eigr/permastate-operator | 76f32129d91ac9cad1a82ce6f26cb234ce9d1795 | [
"Apache-2.0"
] | 1 | 2021-05-28T20:59:27.000Z | 2021-05-28T20:59:27.000Z | lib/permastate_operator/controllers/v1/action.ex | eigr/permastate-operator | 76f32129d91ac9cad1a82ce6f26cb234ce9d1795 | [
"Apache-2.0"
] | 6 | 2021-06-02T03:25:37.000Z | 2021-07-20T14:00:09.000Z | lib/permastate_operator/controllers/v1/action.ex | eigr/permastate-operator | 76f32129d91ac9cad1a82ce6f26cb234ce9d1795 | [
"Apache-2.0"
] | 2 | 2021-06-02T03:36:05.000Z | 2021-07-19T21:05:43.000Z | defmodule PermastateOperator.Controller.V1.Action do
@moduledoc """
PermastateOperator: Action CRD.
## Kubernetes CRD Spec
Eigr Action CRD
### Examples
```
apiVersion: functions.eigr.io/v1
kind: Action
metadata:
name: shopping-cart
spec:
containers:
- image: my-docker-hub-username/shop... | 27.714286 | 96 | 0.480155 |
acf78462c533f32e8fd09a0a793e13661688938a | 89 | exs | Elixir | test/facebook_test.exs | reset/facebook.ex | e8d4048e7b795e5be71be73964e275937b4f8e35 | [
"MIT"
] | 1 | 2015-07-22T21:40:19.000Z | 2015-07-22T21:40:19.000Z | test/facebook_test.exs | mgamini/facebook.ex | 66ab4b4864d67b55f3bef6f5b87b08eb35806f5e | [
"MIT"
] | null | null | null | test/facebook_test.exs | mgamini/facebook.ex | 66ab4b4864d67b55f3bef6f5b87b08eb35806f5e | [
"MIT"
] | null | null | null | defmodule FacebookTest do
use ExUnit.Case
test "the truth" do
assert(true)
end
end
| 11.125 | 25 | 0.741573 |
acf79060564e77e1eebf9c8a731f346fa99886a3 | 17 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/CaptureNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/CaptureNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_in_match_operation_parsing_test_case/CaptureNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | &1 <- &2
&1 \\ &2 | 8.5 | 8 | 0.235294 |
acf79fe99b5ec768502bd7aa54eb01766e508fe8 | 935 | ex | Elixir | lib/colly/collab/item.ex | nidhindamodaran/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"MIT"
] | null | null | null | lib/colly/collab/item.ex | nidhindamodaran/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"MIT"
] | 4 | 2020-05-30T13:25:44.000Z | 2021-05-11T13:32:44.000Z | lib/colly/collab/item.ex | nidhinnambiar/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"MIT"
] | null | null | null | defmodule Colly.Collab.Item do
use Ecto.Schema
import Ecto.Changeset
alias Colly.Markdown
schema "items" do
field :content, Markdown.Ecto
field :dislikes_count, :integer, default: 0
field :likes_count, :integer, default: 0
field :name, :string, default: "Item"
belongs_to(:activity, Colly.Co... | 25.27027 | 114 | 0.681283 |
acf7bd19a555db9b52a62b5e3d36b1dc8b87c617 | 1,941 | exs | Elixir | mix.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | mix.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | mix.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | defmodule Awesome.Mixfile do
use Mix.Project
def project do
[
app: :awesome,
version: "0.0.3",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod... | 25.539474 | 79 | 0.558475 |
acf7c08d86ff58902b28b7e027124f8d62342c50 | 813 | exs | Elixir | mix.exs | no-vacancies/ex-zkb | eb9b13318b0c68f5b0562786027e218507fe3abc | [
"MIT"
] | null | null | null | mix.exs | no-vacancies/ex-zkb | eb9b13318b0c68f5b0562786027e218507fe3abc | [
"MIT"
] | null | null | null | mix.exs | no-vacancies/ex-zkb | eb9b13318b0c68f5b0562786027e218507fe3abc | [
"MIT"
] | null | null | null | defmodule ExZkb.MixProject do
use Mix.Project
def project do
[
app: :ex_zkb,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 21.972973 | 87 | 0.510455 |
acf80456d5fa0f99c5569e448545af29704bd79c | 3,158 | ex | Elixir | lib/wow/auction_entry.ex | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | lib/wow/auction_entry.ex | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | lib/wow/auction_entry.ex | DrPandemic/expressive-broker | 66a8da94ede2c101db9e1841e17898b5bae5df49 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | defmodule Wow.AuctionEntry do
alias Wow.Repo
use Ecto.Schema
import Ecto.Changeset
defmodule Subset do
@moduledoc """
Used to carry the smallest usable subset of an entry.
"""
@type t :: %__MODULE__{
dump_timestamp: DateTime.t,
quantity: non_neg_integer,
buyout: non_neg_intege... | 33.242105 | 152 | 0.648195 |
acf80f5d8640a036eb65eaa343431d041e8e6716 | 202 | ex | Elixir | lib/legato/query/segment.ex | data-twister/legato-ex | 3cd919d44e0d0ac02e1eb25ea7ad2b865e05ea2d | [
"MIT"
] | null | null | null | lib/legato/query/segment.ex | data-twister/legato-ex | 3cd919d44e0d0ac02e1eb25ea7ad2b865e05ea2d | [
"MIT"
] | null | null | null | lib/legato/query/segment.ex | data-twister/legato-ex | 3cd919d44e0d0ac02e1eb25ea7ad2b865e05ea2d | [
"MIT"
] | null | null | null | defmodule Legato.Query.Segment do
@derive [Jason.Encoder]
defstruct segment_id: nil
@id_prefix "gaid"
def build(id) do
%__MODULE__{segment_id: Legato.add_prefix(id, @id_prefix)}
end
end
| 18.363636 | 62 | 0.727723 |
acf83401754c3ec8f3929806867d237b16691ccb | 1,175 | exs | Elixir | test/breadboard/gpio/stub_hal_gpio_test.exs | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | test/breadboard/gpio/stub_hal_gpio_test.exs | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | test/breadboard/gpio/stub_hal_gpio_test.exs | henrythebuilder/breadboard | f8e1378de6ad3984c7101e40bd41c81285b345c0 | [
"Apache-2.0"
] | null | null | null | defmodule StubHalGPIOTest do
use ExUnit.Case
alias Breadboard.GPIO.StubHalGPIO
test "Obtain the correct pin number from label for abstract chip" do
assert StubHalGPIO.label_to_pin("GPIO0") == 0
assert StubHalGPIO.label_to_pin("GPIO1") == 1
assert StubHalGPIO.label_to_pin("GPIO18") == 18
assert S... | 36.71875 | 70 | 0.728511 |
acf84698e37b80abbb0c123a3f8f96c06699d311 | 221 | ex | Elixir | test/support/workers/stateful.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 717 | 2015-06-15T19:30:54.000Z | 2022-03-22T06:10:09.000Z | test/support/workers/stateful.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 106 | 2015-06-25T05:38:05.000Z | 2021-12-08T23:17:19.000Z | test/support/workers/stateful.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 60 | 2015-06-07T00:48:37.000Z | 2022-03-06T08:20:23.000Z | defmodule Stateful do
@behaviour Honeydew.Worker
def init(state) do
{:ok, state}
end
def send_msg(to, msg, state) do
send(to, {msg, state})
end
def return(term, state) do
{term, state}
end
end
| 14.733333 | 33 | 0.638009 |
acf84df79f7cd0d6436976bcd8f96e44f685d110 | 547 | ex | Elixir | lib/helpers/find.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | 3 | 2017-12-25T02:40:05.000Z | 2019-05-09T04:01:24.000Z | lib/helpers/find.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | null | null | null | lib/helpers/find.ex | fimars/netease_music_api | 821f19782f482a092b10e3cc39c93f6c131e9075 | [
"MIT"
] | null | null | null | defmodule Helpers.Find do
@moduledoc false
@doc """
Finds the first element in a list to match a given pattern.
Returns `tuple`.
"""
def first_match(collection, key) do
Enum.find(collection, &match(&1, key))
end
@doc """
Finds all the elements in a list that match a given pattern.
Returns `L... | 20.259259 | 72 | 0.652651 |
acf86a3802ad50e1273c6bec3c9c464c32761aba | 1,256 | exs | Elixir | apps/api_web/test/api_web_test.exs | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/api_web/test/api_web_test.exs | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | null | null | null | apps/api_web/test/api_web_test.exs | lboyarsky/api | 7ecad79704d13ae6fa7f21d21bc47836c703ebf9 | [
"MIT"
] | 1 | 2019-09-09T20:40:13.000Z | 2019-09-09T20:40:13.000Z | defmodule ApiWebTest do
@moduledoc false
use ExUnit.Case
doctest ApiWeb
describe "runtime_config!/0" do
setup do
old_env = Application.get_env(:api_web, :api_pipeline)
on_exit(fn ->
Application.put_env(:api_web, :api_pipeline, old_env)
end)
:ok
end
test "can confi... | 27.911111 | 91 | 0.700637 |
acf897ddf961c68f0e62b746ef77c6851b401ade | 150 | exs | Elixir | elixir/#6-pattern_match.exs | rwietter/codebase | 7466a958c27720aff84c14b39a2f9e6031ddd49c | [
"MIT"
] | null | null | null | elixir/#6-pattern_match.exs | rwietter/codebase | 7466a958c27720aff84c14b39a2f9e6031ddd49c | [
"MIT"
] | null | null | null | elixir/#6-pattern_match.exs | rwietter/codebase | 7466a958c27720aff84c14b39a2f9e6031ddd49c | [
"MIT"
] | null | null | null | defmodule Factorial do
def factorial(0), do: 1
def factorial(n)
when n > 0,
do: n * factorial(n - 1)
end
IO.inspect Factorial.factorial(900)
| 16.666667 | 35 | 0.68 |
acf8c0c392de653a5e8a94583834d266c3c76a76 | 729 | ex | Elixir | lib/dwolla/on_demand_authorization.ex | axlepayments/exdwolla | e54fec29458616757338d9bda8f2ad81dd6db225 | [
"MIT"
] | 5 | 2022-01-20T11:33:40.000Z | 2022-01-21T14:41:20.000Z | lib/dwolla/on_demand_authorization.ex | axlepayments/exdwolla | e54fec29458616757338d9bda8f2ad81dd6db225 | [
"MIT"
] | null | null | null | lib/dwolla/on_demand_authorization.ex | axlepayments/exdwolla | e54fec29458616757338d9bda8f2ad81dd6db225 | [
"MIT"
] | null | null | null | defmodule Dwolla.OnDemandAuthorization do
@moduledoc """
Functions for `on-demand-authorizations` endpoint
"""
alias Dwolla.Utils
defstruct id: nil, body_text: nil, button_text: nil
@type t :: %__MODULE__{
id: String.t,
body_text: String.t,
button_text: String.t
}
@type token :: String.t... | 23.516129 | 80 | 0.689986 |
acf8de87cfd6cdc19ba4e6786813d588036b62d1 | 232 | ex | Elixir | lib/ambry_web/controllers/api/series_controller.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry_web/controllers/api/series_controller.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry_web/controllers/api/series_controller.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule AmbryWeb.API.SeriesController do
use AmbryWeb, :controller
alias Ambry.Series
def show(conn, %{"id" => id}) do
series = Series.get_series_with_books!(id)
render(conn, "show.json", series: series)
end
end
| 21.090909 | 46 | 0.702586 |
acf8fe6aec440c1cfa43d6a2a0d0de8838b626a9 | 5,385 | exs | Elixir | test/web/controllers/lobbies_test.exs | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | test/web/controllers/lobbies_test.exs | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | test/web/controllers/lobbies_test.exs | idabmat/game_api | c12eefb84ff5c9647ee2e06d7893e3aae1b48b2d | [
"MIT"
] | null | null | null | defmodule Web.Controllers.LobbiesTest do
use Web.ConnCase, async: false
@valid_create_attrs %{lobby_name: "My game", player_name: "Alice"}
@invalid_create_attrs %{lobby_name: "", player_name: ""}
@valid_join_attrs %{player_name: "Bob"}
@invalid_join_atts %{player_name: "Alice"}
setup do
Configuration.... | 30.771429 | 89 | 0.579016 |
acf90e574cdb440c2348f4d5b17fd950972c775e | 411 | ex | Elixir | apps/api/web/views/pids_view.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | 39 | 2016-11-01T07:21:51.000Z | 2021-02-05T20:19:02.000Z | apps/api/web/views/pids_view.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | apps/api/web/views/pids_view.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | defmodule Api.PIDsView do
use Api.Web, :view
def render("index.json", %{pids: pids}) do
%{
data: render_many(pids, __MODULE__, "pid.json", as: :pid)
}
end
def render("show.json", %{pid: pid}) do
%{
data: render_one(pid, __MODULE__, "pid.json", as: :pid)
}
end
def render("creat... | 17.125 | 63 | 0.562044 |
acf925a14e3b181964c03f4fa3c053451cf59147 | 546 | ex | Elixir | lib/wallaby/phantom/logger.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | lib/wallaby/phantom/logger.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | lib/wallaby/phantom/logger.ex | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.Phantom.Logger do
@line_number_regex ~r/\s\((undefined)?:(undefined)?\)$/
def log(logs) when is_list(logs) do
logs
|> Enum.each(&parse_log/1)
end
def parse_log(%{"level" => "WARNING", "message" => msg}) do
if Wallaby.js_errors? do
raise Wallaby.JSError, msg
end
end
... | 22.75 | 61 | 0.630037 |
acf9579fc1e0b0122752253508c225343877642d | 2,024 | exs | Elixir | fogex/config/dev.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/config/dev.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | fogex/config/dev.exs | FogEx/poc | 0d3a26b482152b4b73a279dfdb2bf69008234c06 | [
"MIT"
] | null | null | null | import Config
# Configure your database
config :fogex, FogEx.Repo,
username: "postgres",
password: "postgres",
database: "fogex_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
config :fogex, FogEx.EventStore,
username: "postgres",
password: "postgres",
datab... | 30.208955 | 86 | 0.726285 |
acf98294460e35f399325a64b13499c049aed84f | 5,383 | exs | Elixir | test/epicenter_web/live/user_live_test.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/epicenter_web/live/user_live_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/epicenter_web/live/user_live_test.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.UserLiveTest do
use EpicenterWeb.ConnCase, async: true
import Phoenix.LiveViewTest
alias Epicenter.Test
alias Epicenter.Accounts
alias EpicenterWeb.Test.Pages
@admin Test.Fixtures.admin()
setup :log_in_admin
describe "user creation form" do
test "allows admins to add admi... | 36.869863 | 142 | 0.592792 |
acf984065028ee6cfeae5605b09b8342a12f3857 | 158 | exs | Elixir | apps/pipeline/.formatter.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/pipeline/.formatter.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/pipeline/.formatter.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | [
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
line_length: 120,
import_deps: [:placebo],
locals_without_parens: [retry: 2]
]
| 22.571429 | 70 | 0.620253 |
acf9b01ee59052267ba091b141f221451c673043 | 10,210 | ex | Elixir | lib/rabbit/producer.ex | Odaeus/rabb | 549b9fe209ea73162bc844ae2d82583c6c919333 | [
"MIT"
] | null | null | null | lib/rabbit/producer.ex | Odaeus/rabb | 549b9fe209ea73162bc844ae2d82583c6c919333 | [
"MIT"
] | null | null | null | lib/rabbit/producer.ex | Odaeus/rabb | 549b9fe209ea73162bc844ae2d82583c6c919333 | [
"MIT"
] | 1 | 2021-01-14T10:22:35.000Z | 2021-01-14T10:22:35.000Z | defmodule Rabbit.Producer do
@moduledoc """
A RabbitMQ producer process.
Producers are needed to publish any messages to RabbitMQ. They wrap around the
standard `AMQP.Channel` and provide the following benefits:
* Durability during connection and channel failures through use of expotential backoff.
* Chan... | 34.033333 | 108 | 0.646229 |
acf9ccb18e0001d09ffa218f5a9186601f4188cf | 231 | exs | Elixir | test/Integration/models.exs | StoiximanServices/tds_ecto | 5defd5540a91a760e88daf7e15df1bbcee33afba | [
"Apache-2.0"
] | 3 | 2016-12-07T08:38:37.000Z | 2021-08-24T10:38:55.000Z | test/Integration/models.exs | StoiximanServices/tds_ecto | 5defd5540a91a760e88daf7e15df1bbcee33afba | [
"Apache-2.0"
] | null | null | null | test/Integration/models.exs | StoiximanServices/tds_ecto | 5defd5540a91a760e88daf7e15df1bbcee33afba | [
"Apache-2.0"
] | null | null | null | defmodule Tds.EctoTest.Integration.Models do
defmodule Item do
use Ecto.Integration.Schema
schema "items" do
field :title, :string
field :in_stock, :integer
field :price, :decimal
end
end
end | 19.25 | 44 | 0.662338 |
acf9e032a5ac41f560687dfc510b9cff65cd309d | 3,192 | ex | Elixir | lib/chat_api/users/user.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api/users/user.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api/users/user.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Users.User do
use Ecto.Schema
use Pow.Ecto.Schema
import Ecto.Changeset
alias ChatApi.Conversations.Conversation
alias ChatApi.Messages.Message
alias ChatApi.Mentions.Mention
alias ChatApi.Accounts.Account
alias ChatApi.Users.{UserProfile, UserSettings}
@type t :: %__MODULE__{
... | 31.92 | 96 | 0.675125 |
acf9e4f6978e1c1230c9ba0c849182089c3862b5 | 3,363 | exs | Elixir | test/oban/migrations_test.exs | sushant12/oban | 158cc6f05699fe7c67a0502c12cb8a01ed4d33ca | [
"Apache-2.0"
] | null | null | null | test/oban/migrations_test.exs | sushant12/oban | 158cc6f05699fe7c67a0502c12cb8a01ed4d33ca | [
"Apache-2.0"
] | null | null | null | test/oban/migrations_test.exs | sushant12/oban | 158cc6f05699fe7c67a0502c12cb8a01ed4d33ca | [
"Apache-2.0"
] | null | null | null | defmodule Oban.MigrationsTest do
use Oban.Case, async: true
import Oban.Migrations, only: [initial_version: 0, current_version: 0, migrated_version: 2]
@arbitrary_checks 20
defmodule StepMigration do
use Ecto.Migration
def up do
Oban.Migrations.up(version: up_version(), prefix: "migrating")
... | 26.069767 | 93 | 0.681534 |
acf9f7dfb97ac37178f52d39be177550756ee80d | 123 | ex | Elixir | web/views/session_view.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | web/views/session_view.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | web/views/session_view.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | defmodule BioMonitor.SessionView do
use BioMonitor.Web, :view
def render("delete.json", _params) do
%{}
end
end
| 15.375 | 39 | 0.699187 |
acf9fd7ac4995485b32b7a75c9f8d02fc447c91f | 2,297 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_fhir_gcs_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_fhir_gcs_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_fhir_gcs_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.87234 | 871 | 0.754898 |
acf9fec0b36237110f955f64846f6892e4ade774 | 62 | ex | Elixir | lib/conveyer/types/phase_block.ex | Bloccs/conveyer | 84e1e1de75024a0288a05c3826fef5688ef34975 | [
"MIT"
] | 2 | 2019-01-28T13:16:09.000Z | 2019-02-10T21:35:50.000Z | lib/conveyer/types/phase_block.ex | Bloccs/conveyer | 84e1e1de75024a0288a05c3826fef5688ef34975 | [
"MIT"
] | 1 | 2019-05-28T11:16:54.000Z | 2019-05-28T11:16:54.000Z | lib/conveyer/types/phase_block.ex | Bloccs/conveyer | 84e1e1de75024a0288a05c3826fef5688ef34975 | [
"MIT"
] | null | null | null | defmodule Conveyer.Types.PhaseBlock do
@moduledoc false
end
| 15.5 | 38 | 0.822581 |
acfa03865b9c9de79fe87fec09fb2afe68309710 | 30,349 | ex | Elixir | lib/elixir/lib/calendar/datetime.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/datetime.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar/datetime.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | defmodule DateTime do
@moduledoc """
A datetime implementation with a time zone.
This datetime can be seen as an ephemeral snapshot
of a datetime at a given time zone. For such purposes,
it also includes both UTC and Standard offsets, as
well as the zone abbreviation field used exclusively
for formatting... | 31.946316 | 105 | 0.611849 |
acfa0d3563d847501a7ef2a09291b548d74dd86a | 2,272 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_active_breakpoints_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_active_breakpoints_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/list_active_breakpoints_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.859649 | 135 | 0.733275 |
acfa389026c0a9dbf7e80e85bad65be046c70822 | 78 | exs | Elixir | test/corex_web/views/layout_view_test.exs | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | test/corex_web/views/layout_view_test.exs | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | test/corex_web/views/layout_view_test.exs | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | defmodule CorexWeb.LayoutViewTest do
use CorexWeb.ConnCase, async: true
end
| 19.5 | 36 | 0.820513 |
acfa6be0e4e55237b83f3f28c7b85ae6b06a2071 | 385 | exs | Elixir | apps/roadtrip/priv/repo/migrations/20210903151845_create_measurements.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | 2 | 2022-01-19T17:59:21.000Z | 2022-01-19T18:05:05.000Z | apps/roadtrip/priv/repo/migrations/20210903151845_create_measurements.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | null | null | null | apps/roadtrip/priv/repo/migrations/20210903151845_create_measurements.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | null | null | null | defmodule Roadtrip.Repo.Migrations.CreateMeasurements do
use Ecto.Migration
def change do
create table(:measurements) do
add :odometer, :integer, null: false
add :moment, :utc_datetime, null: false
add :vehicle_id, references(:vehicles, on_delete: :restrict), null: false
timestamps()
... | 24.0625 | 79 | 0.698701 |
acfa6fc2c47658f1e3fa900d75a4af678352bfc5 | 129 | exs | Elixir | lab1/test/lab1_test.exs | AlexandruBurlacu/NetworkProgrammingLabs | 289720c6bcf2ce4bcdb22b5f57ec03a2c1200891 | [
"MIT"
] | null | null | null | lab1/test/lab1_test.exs | AlexandruBurlacu/NetworkProgrammingLabs | 289720c6bcf2ce4bcdb22b5f57ec03a2c1200891 | [
"MIT"
] | null | null | null | lab1/test/lab1_test.exs | AlexandruBurlacu/NetworkProgrammingLabs | 289720c6bcf2ce4bcdb22b5f57ec03a2c1200891 | [
"MIT"
] | null | null | null | defmodule Lab1Test do
use ExUnit.Case
doctest Lab1
test "greets the world" do
assert Lab1.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
acfa844a2a3c635404677622d2510b877e6b7a71 | 653 | ex | Elixir | test/support/factory.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | 2 | 2021-04-30T08:30:26.000Z | 2021-04-30T16:20:39.000Z | test/support/factory.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | null | null | null | test/support/factory.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | null | null | null | defmodule ChatApi.Factory do
use ExMachina.Ecto, repo: ChatApi.Repo
def user_factory do
%ChatApi.Authentication.User{
email: Faker.Internet.email(),
password: "some password"
}
end
def user_resource_factory do
%ChatApi.Authentication.UserResource{
user: build(:user),
user_r... | 19.787879 | 42 | 0.656968 |
acfa8fa6bf136cda10ca62076535c00723c66a70 | 2,858 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/snapshot.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/snapshot.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/snapshot.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.694444 | 141 | 0.680196 |
acfaafacc923b78aa3ad567e42f0825b12f21c35 | 727 | ex | Elixir | lib/your_sanctuary_web/gettext.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | 2 | 2018-10-23T13:30:00.000Z | 2018-10-24T14:32:52.000Z | lib/your_sanctuary_web/gettext.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | 60 | 2018-10-23T13:39:19.000Z | 2019-02-11T14:18:01.000Z | lib/your_sanctuary_web/gettext.ex | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | null | null | null | defmodule YourSanctuaryWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import YourSanctuaryWeb.Gettext
# Simple translation
gettex... | 29.08 | 72 | 0.689133 |
acfadc248651263efad7d3079eebd00ec385f381 | 1,119 | ex | Elixir | deps/exfswatch/lib/exfswatch/backends/inotify_wait_win32.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | deps/exfswatch/lib/exfswatch/backends/inotify_wait_win32.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | deps/exfswatch/lib/exfswatch/backends/inotify_wait_win32.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | alias ExFSWatch.Utils
defmodule ExFSWatch.Backends.InotifyWaitWin32 do
@re :re.compile('^(.*\\\\.*) ([A-Z_,]+) (.*)$', [:unicode]) |> elem(1)
def find_executable do
:code.priv_dir(:exfswatch) ++ '/inotifywait.exe'
end
def start_port(path, listener_extra_args) do
path = path |> Utils.format_path()
... | 29.447368 | 95 | 0.630027 |
acfadf4a304d9048a9ebbf5360d00a0f0a014739 | 1,149 | exs | Elixir | config/config.exs | smartcitiesdata/scos_noaa_adapter | 6f1210146a447881f31b60501d96b7f43827dc78 | [
"Apache-2.0"
] | 1 | 2019-07-09T15:52:26.000Z | 2019-07-09T15:52:26.000Z | config/config.exs | smartcitiesdata/scos_noaa_adapter | 6f1210146a447881f31b60501d96b7f43827dc78 | [
"Apache-2.0"
] | 1 | 2019-06-26T19:19:25.000Z | 2019-08-15T19:17:49.000Z | config/config.exs | smartcitiesdata/scos_noaa_adapter | 6f1210146a447881f31b60501d96b7f43827dc78 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 37.064516 | 73 | 0.75544 |
acfaf8741397c5223f2fc6c0e3e2d88d6bb1b526 | 11,634 | ex | Elixir | lib/changelog_web/router.ex | aindrila2412/changelog.com | 7856d05054b0957f3a39f120c38b61f0403901cf | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | lib/changelog_web/router.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | lib/changelog_web/router.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Router do
use ChangelogWeb, :router
use Plug.ErrorHandler
alias ChangelogWeb.Plug
if Mix.env() == :dev do
forward "/sent_emails", Bamboo.SentEmailViewerPlug
end
pipeline :browser do
plug :accepts, ["html", "js"]
plug :fetch_session
plug Plug.Turbolinks
plug :fet... | 40.256055 | 98 | 0.688155 |
acfb0a0ea18521083ca9f0f6961d035b7f361e7c | 988 | ex | Elixir | lib/sanbase_web/controllers/telegram_controller.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/controllers/telegram_controller.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/controllers/telegram_controller.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.TelegramController do
use SanbaseWeb, :controller
alias Sanbase.Telegram
def index(conn, %{"message" => %{"text" => "/start " <> user_token}} = params) do
%{"message" => %{"chat" => %{"id" => chat_id}}} = params
case Telegram.store_chat_id(user_token, chat_id) do
:ok ->
... | 23.52381 | 89 | 0.61336 |
acfb26f91749c3f868b80551ae698564e8f68df3 | 693 | ex | Elixir | exercism/bird-count/bird_count.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/bird-count/bird_count.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/bird-count/bird_count.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | defmodule BirdCount do
def today([]), do: nil
def today([today | _]), do: today
def increment_day_count([]), do: [1]
def increment_day_count([today | rest]), do: [today + 1 | rest]
def has_day_without_birds?([]), do: false
def has_day_without_birds?([0 | _]), do: true
def has_day_without_birds?([_ | res... | 33 | 82 | 0.643579 |
acfb69d8e8fb9c4ea7bc00483337e312c994d64d | 65 | exs | Elixir | apps/web/test/web_web/controllers/page_controller_test.exs | julien-leclercq/telepath | b73e47ae0fabb18ab565a8c015099b1ba948810c | [
"MIT"
] | 1 | 2019-10-30T19:38:12.000Z | 2019-10-30T19:38:12.000Z | apps/web/test/web_web/controllers/page_controller_test.exs | julien-leclercq/telepath | b73e47ae0fabb18ab565a8c015099b1ba948810c | [
"MIT"
] | 3 | 2018-05-23T11:53:24.000Z | 2022-02-10T15:53:08.000Z | apps/web/test/web_web/controllers/page_controller_test.exs | julien-leclercq/telepath | b73e47ae0fabb18ab565a8c015099b1ba948810c | [
"MIT"
] | null | null | null | defmodule WebWeb.PageControllerTest do
use WebWeb.ConnCase
end
| 16.25 | 38 | 0.846154 |
acfb6d61ab2baf67dd80a647b3f8735c5d47c5d1 | 179 | ex | Elixir | lib/arkenston_web/schema/types/object/user_logout.ex | dolfinus/diamantum-backend | efa9da3835befa58bbcd5f3965ce4431ed8c912f | [
"MIT"
] | 1 | 2019-04-29T18:07:08.000Z | 2019-04-29T18:07:08.000Z | lib/arkenston_web/schema/types/object/user_logout.ex | dolfinus/diamantum-backend | efa9da3835befa58bbcd5f3965ce4431ed8c912f | [
"MIT"
] | 126 | 2020-12-03T15:39:31.000Z | 2022-03-30T22:02:23.000Z | lib/arkenston_web/schema/types/object/user_logout.ex | dolfinus/arkenston-backend | 258880936dce673eb15db0c4b52e68d3d40c58ff | [
"MIT"
] | null | null | null | defmodule ArkenstonWeb.Schema.Types.Object.UserLogout do
use Absinthe.Schema.Notation
object :user_logout do
interface :with_user
import_fields :with_user
end
end
| 17.9 | 56 | 0.782123 |
acfb978745deb10cadc30abc807e8fcc4a9af11a | 4,768 | ex | Elixir | apps/ex_wire/lib/ex_wire/packet/capability/par/snapshot_manifest.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/ex_wire/lib/ex_wire/packet/capability/par/snapshot_manifest.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/ex_wire/lib/ex_wire/packet/capability/par/snapshot_manifest.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExWire.Packet.Capability.Par.SnapshotManifest do
@moduledoc """
Respond to a GetSnapshotManifest message with either an empty RLP list or a
1-item RLP list containing a snapshot manifest
```
`SnapshotManifest` [`0x12`, `manifest` or nothing]
```
"""
import Exth, only: [maybe_decode_unsigned: ... | 29.432099 | 154 | 0.616611 |
acfb9cc4dd80f44c14de4d9319b28260929ef441 | 900 | ex | Elixir | kousa/lib/broth/message/user/unblock.ex | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/lib/broth/message/user/unblock.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/lib/broth/message/user/unblock.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Broth.Message.User.Unblock do
use Broth.Message.Call
@primary_key false
embedded_schema do
field(:userId, :binary_id)
end
alias Kousa.Utils.UUID
def changeset(initializer \\ %__MODULE__{}, data) do
initializer
|> cast(data, [:userId])
|> validate_required([:userId])
|> UUID.... | 20.930233 | 94 | 0.654444 |
acfb9fe6f25339811d703e47ef10366eca93fa00 | 789 | exs | Elixir | test/lib/tackle/connection_test.exs | arfl/ex-tackle | b1ed825af900d983f2f945c4b16e7019d1c184e3 | [
"MIT"
] | null | null | null | test/lib/tackle/connection_test.exs | arfl/ex-tackle | b1ed825af900d983f2f945c4b16e7019d1c184e3 | [
"MIT"
] | 15 | 2019-08-12T14:21:51.000Z | 2021-12-31T02:12:04.000Z | test/lib/tackle/connection_test.exs | arfl/ex-tackle | b1ed825af900d983f2f945c4b16e7019d1c184e3 | [
"MIT"
] | 2 | 2021-06-28T06:48:10.000Z | 2021-07-05T09:26:50.000Z | defmodule Tackle.ConnectionTest do
use ExUnit.Case
doctest Tackle.Connection, import: true
setup do
Tackle.Connection.reset()
end
test "default connection name returns new process for each call" do
pid = get_connection_pid(:default)
assert get_connection_pid(:default) != pid
end
test "non d... | 23.909091 | 74 | 0.712294 |
acfbff95632026e8eec718df7fc94907e8ab6bda | 10,860 | ex | Elixir | apps/admin_app/lib/admin_app_web/controllers/product_controller.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | 1 | 2018-12-01T18:13:55.000Z | 2018-12-01T18:13:55.000Z | apps/admin_app/lib/admin_app_web/controllers/product_controller.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/admin_app/lib/admin_app_web/controllers/product_controller.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule AdminAppWeb.ProductController do
use AdminAppWeb, :controller
alias Snitch.Core.Tools.MultiTenancy.Repo
alias Snitch.Data.Model.Product, as: ProductModel
alias Snitch.Data.Model
alias Snitch.Data.Schema.Product, as: ProductSchema
alias Snitch.Data.Model.ProductPrototype, as: PrototypeModel
alia... | 30.591549 | 98 | 0.634438 |
acfc3a48147bd943ffaf4093f00ab6d59dd5f1d2 | 3,327 | exs | Elixir | apps/tai/mix.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/mix.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/mix.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.Mixfile do
use Mix.Project
def project do
[
app: :tai,
version: "0.0.66",
elixir: "~> 1.10",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
package: package(),
start_per... | 31.386792 | 96 | 0.517884 |
acfc3b83bb71789a1ff97e2dd6f49ad74f22e72e | 495 | ex | Elixir | lib/roleboard_web/views/error_view.ex | JuneShores/roleboard | 76a3b1f68f65aa5b18866ed62cd018235f7b9b13 | [
"MIT"
] | null | null | null | lib/roleboard_web/views/error_view.ex | JuneShores/roleboard | 76a3b1f68f65aa5b18866ed62cd018235f7b9b13 | [
"MIT"
] | 2 | 2021-03-10T04:37:08.000Z | 2021-05-11T00:20:22.000Z | lib/roleboard_web/views/error_view.ex | JuneShores/roleboard | 76a3b1f68f65aa5b18866ed62cd018235f7b9b13 | [
"MIT"
] | null | null | null | defmodule RoleboardWeb.ErrorView do
use RoleboardWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template ... | 29.117647 | 61 | 0.737374 |
acfc4fd867ea024bc8f4addaea86c5b58fc87727 | 2,358 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/analytics.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/partners/lib/google_api/partners/v2/model/analytics.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/partners/lib/google_api/partners/v2/model/analytics.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.368421 | 165 | 0.744699 |
acfc5ca5cea5ab32ed08d2e72d83610c91416adb | 979 | ex | Elixir | backend/lib/functional_vote/application.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 10 | 2020-03-13T12:56:06.000Z | 2021-06-28T22:13:27.000Z | backend/lib/functional_vote/application.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 132 | 2020-02-08T02:01:03.000Z | 2022-02-18T20:38:38.000Z | backend/lib/functional_vote/application.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 1 | 2021-03-17T06:22:55.000Z | 2021-03-17T06:22:55.000Z | defmodule FunctionalVote.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the Ecto repository
FunctionalV... | 30.59375 | 73 | 0.728294 |
acfc6511c147fc7f83a0827b593b6e8dc5d90643 | 1,431 | exs | Elixir | mix.exs | sega-yarkin/trigger | 1fc6b4525e0ada03b849aca6634624d8050adf35 | [
"MIT"
] | null | null | null | mix.exs | sega-yarkin/trigger | 1fc6b4525e0ada03b849aca6634624d8050adf35 | [
"MIT"
] | null | null | null | mix.exs | sega-yarkin/trigger | 1fc6b4525e0ada03b849aca6634624d8050adf35 | [
"MIT"
] | null | null | null | defmodule Trigger.MixProject do
use Mix.Project
@source_url "https://github.com/sega-yarkin/trigger"
@version "1.0.0"
def project do
[
app: :trigger,
version: @version,
elixir: "~> 1.5",
deps: deps(),
description: description(),
package: package(),
docs: docs(),
... | 21.681818 | 74 | 0.571628 |
acfc9fcbbb76fd381245a8a57c34060637bd0924 | 945 | ex | Elixir | lib/graphqexl/schema/union.ex | eslingerbryan/graphqexl | 07c0058b6dd72ac374d14b6091a0280f3564e29c | [
"MIT"
] | 14 | 2020-01-20T10:55:56.000Z | 2020-03-25T11:24:35.000Z | lib/graphqexl/schema/union.ex | eslingerbryan/graphqexl | 07c0058b6dd72ac374d14b6091a0280f3564e29c | [
"MIT"
] | 16 | 2020-01-21T00:45:50.000Z | 2021-05-11T01:54:23.000Z | lib/graphqexl/schema/union.ex | eslingerbryan/graphqexl | 07c0058b6dd72ac374d14b6091a0280f3564e29c | [
"MIT"
] | 1 | 2020-01-20T10:56:02.000Z | 2020-01-20T10:56:02.000Z | alias Graphqexl.Schema
alias Graphqexl.Schema.{
Field,
Ref,
}
defmodule Graphqexl.Schema.Union do
@moduledoc """
GraphQL union type
Example:
union Content = Comment | Post
"""
@moduledoc since: "0.1.0"
@enforce_keys [:name, :type1, :type2]
defstruct [:name, :type1, :type2, deprecated: false, de... | 21.976744 | 98 | 0.634921 |
acfca83e499eb806ec150cc5c57165ca5ceeb563 | 751 | ex | Elixir | apps/elixir_security_advisory_api_v1/lib/elixir_security_advisory_api_v1/plug/accept.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 5 | 2019-01-03T18:33:40.000Z | 2021-01-25T10:15:06.000Z | apps/elixir_security_advisory_api_v1/lib/elixir_security_advisory_api_v1/plug/accept.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | 15 | 2018-12-27T16:59:06.000Z | 2019-01-04T17:34:38.000Z | apps/elixir_security_advisory_api_v1/lib/elixir_security_advisory_api_v1/plug/accept.ex | ex-security-advisory/api | 75674d42efd3b9f2406233e36244d5cb5f174971 | [
"MIT"
] | null | null | null | defmodule ElixirSecurityAdvisoryApiV1.Plug.Accept do
@moduledoc false
@behaviour Plug
import Plug.Conn
@impl Plug
def init(options) do
[{_, default} | _] =
accepts =
for {accept, {plug, plug_options}} <- Keyword.fetch!(options, :accept) do
{accept, {plug, plug.init(plug_options)}}
... | 22.088235 | 79 | 0.593875 |
acfcdc4664cde0b743240252dedbd4d60660f04f | 1,877 | exs | Elixir | mix.exs | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | null | null | null | mix.exs | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | null | null | null | mix.exs | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | null | null | null | defmodule BuiltWithElixir.Mixfile do
use Mix.Project
def project do
[
app: :built_with_elixir,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases:... | 28.439394 | 88 | 0.581247 |
acfcfe8e7621f5a169768c9d9d72ee9976680dd9 | 670 | ex | Elixir | lib/mppm_web/views/dashboard_view.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | 6 | 2020-11-18T10:10:51.000Z | 2021-03-17T14:28:36.000Z | lib/mppm_web/views/dashboard_view.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | 6 | 2020-11-10T21:50:43.000Z | 2021-03-04T09:41:22.000Z | lib/mppm_web/views/dashboard_view.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | null | null | null | defmodule MppmWeb.DashboardView do
use MppmWeb, :view
use Phoenix.LiveComponent
def get_status_icon(:started, login), do:
tag(:img, src: "/images/web_ui/power-button-on.svg", phx_click: "stop-server", phx_target: "#server-#{login}")
def get_status_icon(:starting, _login), do:
tag(:img, src: "/images/we... | 39.411765 | 116 | 0.698507 |
acfd10deaf5ea7fedfe2e3c6c6852df7a77c662a | 828 | ex | Elixir | apps/aecore/lib/aecore/structures/header.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | apps/aecore/lib/aecore/structures/header.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | apps/aecore/lib/aecore/structures/header.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | defmodule Aecore.Structures.Header do
@moduledoc """
Structure of Header
"""
alias Aecore.Structures.Header
defstruct [
:height,
:prev_hash,
:txs_hash,
:chain_state_hash,
:difficulty_target,
:nonce,
:pow_evidence,
:timestamp,
:version
]
use ExConstructor
@type hea... | 21.230769 | 91 | 0.646135 |
acfd3c0e2be31aae1890bffd95c1e36a85fc852e | 522 | ex | Elixir | test/support/fakes.ex | lccezinha/correios-cep-elixir | fee32a9146167c13e169f682ed04837d9e9a525e | [
"Apache-2.0"
] | 39 | 2018-11-15T09:07:40.000Z | 2021-10-05T06:12:53.000Z | test/support/fakes.ex | lccezinha/correios-cep-elixir | fee32a9146167c13e169f682ed04837d9e9a525e | [
"Apache-2.0"
] | 15 | 2018-11-12T23:38:39.000Z | 2020-07-25T10:22:27.000Z | test/support/fakes.ex | lccezinha/correios-cep-elixir | fee32a9146167c13e169f682ed04837d9e9a525e | [
"Apache-2.0"
] | 5 | 2019-01-30T13:11:06.000Z | 2021-03-31T10:44:48.000Z | defmodule Correios.CEP.ClientFake do
@moduledoc false
def request("54250-610", options), do: request("54250610", options)
def request("54250610", _options) do
response = """
<return>
<bairro>Cavaleiro</bairro>
<cep>54250610</cep>
<cidade>Jaboatão dos Guararapes</cidade>
<end>Rua ... | 21.75 | 69 | 0.632184 |
acfd459016191246b618c154a682310d4e805758 | 630 | ex | Elixir | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/configuration.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Database.MySql.Model.Configuration do
@moduledoc """
Represents a Configuration.
"""
@derive [Poison.Encoder]
... | 21 | 93 | 0.677778 |
acfd459ceb19c31fb26cf98995a04b03f45964e0 | 2,738 | exs | Elixir | apps/nerves_hub_www/test/nerves_hub_www_web/controllers/product_controller_test.exs | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/test/nerves_hub_www_web/controllers/product_controller_test.exs | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/test/nerves_hub_www_web/controllers/product_controller_test.exs | acrogenesis/nerves_hub_web | 27f651dd64b40a034254b50805884f4efd679957 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWWWWeb.ProductControllerTest do
use NervesHubWWWWeb.ConnCase.Browser, async: true
alias NervesHubWebCore.Fixtures
@create_attrs %{name: "some name"}
@invalid_attrs %{name: nil}
describe "index" do
test "lists all products", %{conn: conn, org: org} do
conn = get(conn, Routes.pro... | 34.658228 | 98 | 0.671293 |
acfd533238afb4bfa7604d88028c56b590ee1726 | 511 | ex | Elixir | lib/yacto/schema/shard.ex | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | lib/yacto/schema/shard.ex | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | lib/yacto/schema/shard.ex | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | defmodule Yacto.Schema.Shard do
@moduledoc """
水平分割されたスキーマ
`Yacto.Schema` とほぼ同じだが、`Yacto.DB.repo(MySchema.dbname(), shard_key: shard_key)` のショートハンドとして `MySchema.repo(shard_key: shard_key)` が使える点のみが異なる。
"""
defmacro __using__(opts) do
dbname = Keyword.fetch!(opts, :dbname)
quote do
use Yacto.S... | 24.333333 | 144 | 0.663405 |
acfd936bb9a7d0ef2a29af8bf56275275e0aeed1 | 134 | exs | Elixir | config/config.exs | rafaeliga/ancestry | 00a86194fe7924756465dc0e9a8c811c5dca9560 | [
"MIT"
] | 25 | 2019-06-17T10:56:02.000Z | 2021-07-10T08:29:50.000Z | config/config.exs | rafaeliga/ancestry | 00a86194fe7924756465dc0e9a8c811c5dca9560 | [
"MIT"
] | 38 | 2020-04-01T12:35:27.000Z | 2021-08-02T21:18:00.000Z | config/config.exs | rafaeliga/ancestry | 00a86194fe7924756465dc0e9a8c811c5dca9560 | [
"MIT"
] | 2 | 2019-06-20T09:39:46.000Z | 2020-06-29T13:30:19.000Z | use Mix.Config
config :logger, :console, level: :error
config :ancestry, ecto_repos: [Dummy.Repo]
import_config "#{Mix.env()}.exs"
| 16.75 | 42 | 0.716418 |
acfdf4189f0f5ed3f50f3f3efafef433a13ba149 | 2,814 | ex | Elixir | lib/honeybadger/plug_data.ex | blendmedia/honeybadger-elixir | 908c76bd219ac720e478ffe9fd3307bde0837c0b | [
"MIT"
] | null | null | null | lib/honeybadger/plug_data.ex | blendmedia/honeybadger-elixir | 908c76bd219ac720e478ffe9fd3307bde0837c0b | [
"MIT"
] | null | null | null | lib/honeybadger/plug_data.ex | blendmedia/honeybadger-elixir | 908c76bd219ac720e478ffe9fd3307bde0837c0b | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule Honeybadger.PlugData do
@moduledoc false
alias Plug.Conn
@type plug_env :: %{
action: binary(),
cgi_data: map(),
component: binary(),
params: map(),
session: map(),
url: binary()
}... | 27.057692 | 79 | 0.583156 |
acfdf61f6e3a496ed6e4a988fe809ef9dc4f0aca | 235 | exs | Elixir | farmbot_core/priv/config/migrations/20180307180141_firmware_initialized_flag.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/config/migrations/20180307180141_firmware_initialized_flag.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/config/migrations/20180307180141_firmware_initialized_flag.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Config.Repo.Migrations.FirmwareInitializedFlag do
use Ecto.Migration
import FarmbotCore.Config.MigrationHelpers
def change do
create_settings_config("firmware_needs_first_sync", :bool, true)
end
end
| 23.5 | 71 | 0.817021 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.