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
18567e4d60d95ae73e67253a9a54006aa000116c
482
ex
Elixir
lib/jisho_elixir/v1/search.ex
szTheory/jisho_elixir
14124626af134aa54a6ad36c074071dab84b625e
[ "MIT" ]
20
2017-08-31T17:18:46.000Z
2021-07-12T12:58:15.000Z
lib/jisho_elixir/v1/search.ex
szTheory/jisho_elixir
14124626af134aa54a6ad36c074071dab84b625e
[ "MIT" ]
1
2020-03-08T14:05:35.000Z
2020-03-08T14:05:35.000Z
lib/jisho_elixir/v1/search.ex
szTheory/jisho_elixir
14124626af134aa54a6ad36c074071dab84b625e
[ "MIT" ]
3
2018-05-19T15:11:53.000Z
2020-03-03T14:53:10.000Z
defmodule JishoElixir.V1.Search do @moduledoc false # General case search, Jisho V1 import JishoElixir.V1.Base @doc """ Search a word or term. """ def search!(word) do process!(word) end @doc """ Search a word with tag(s). """ def search!(word, tags) do process_with_tag!(word, tag...
16.066667
49
0.628631
1856a336c900706775d9bd1c2bbe60f40a7c47e6
757
ex
Elixir
lib/aph/main/avatar.ex
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
8
2019-09-26T13:59:25.000Z
2020-03-30T21:26:48.000Z
lib/aph/main/avatar.ex
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
39
2019-11-16T02:24:28.000Z
2020-01-14T16:40:28.000Z
lib/aph/main/avatar.ex
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
2
2019-12-16T07:55:14.000Z
2020-06-11T04:14:00.000Z
defmodule Aph.Main.Avatar do @moduledoc """ The Avatar model. """ use Ecto.Schema import Ecto.Changeset schema "avatars" do field :gender, :string field :language, :string field :name, :string field :pitch, :integer field :speed, :float belongs_to :user, Aph.Accounts.User time...
26.103448
90
0.680317
1856dcf8ebc339277cddd5092da780f4df272773
1,549
exs
Elixir
config/config.example.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
23
2016-12-25T13:38:38.000Z
2020-11-02T15:06:10.000Z
config/config.example.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
15
2016-11-05T17:00:18.000Z
2019-08-28T10:00:41.000Z
config/config.example.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
8
2017-07-04T03:44:25.000Z
2020-11-11T08:32:39.000Z
# 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.780488
73
0.744997
1856df7b81c50bd29f62ff22a91df0c4899af047
1,318
ex
Elixir
home_page_local/lib/home_page_web/views/category_view.ex
tlk-emb/CMS_koji
40a93073128bfad7fdfa987c69d4a8759752064f
[ "Apache-2.0" ]
8
2019-06-02T05:02:36.000Z
2021-08-11T04:23:10.000Z
home_page_local/lib/home_page_web/views/category_view.ex
tlk-emb/CMS_koji
40a93073128bfad7fdfa987c69d4a8759752064f
[ "Apache-2.0" ]
7
2019-05-15T08:32:51.000Z
2020-06-10T07:46:43.000Z
home_page_local/lib/home_page_web/views/category_view.ex
tlk-emb/CMS_koji
40a93073128bfad7fdfa987c69d4a8759752064f
[ "Apache-2.0" ]
1
2019-06-02T05:02:47.000Z
2019-06-02T05:02:47.000Z
defmodule HomePageWeb.CategoryView do use HomePageWeb, :view alias HomePage.Accounts alias HomePage.Pages def current_user(conn) do Accounts.current_user(conn) end # アイテムが何行目かを返す(%{"行数" => アイテムの数}というマップを返す) def how_line(items, line, map, list) do # lineの初期値1,mapの初期値%{},listの初期値[] case items ...
24.867925
62
0.616844
1856f16f1b8ce61ea63d53c7a9aae95a38b89eab
1,353
exs
Elixir
implements/series/series_test.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
implements/series/series_test.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
1
2018-06-19T18:59:41.000Z
2018-06-19T18:59:41.000Z
implements/series/series_test.exs
MickeyOoh/Exercises
3b34e7fdab4a09e0269d20c68531b4fb75bb7f16
[ "MIT" ]
null
null
null
#if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("series.exs", __DIR__) #end ExUnit.start() #ExUnit.configure(exclude: :pending, trace: true) defmodule StringSeriesTest do use ExUnit.Case # @tag :pending test "slices of size 1" do assert StringSeries.slices("01234", 1) == ["0", "1", "2",...
25.528302
71
0.635625
185723fad1b45b95c067b08d1181f9c1aa4333a9
1,266
exs
Elixir
test/exfile/ecto/cast_content_type_test.exs
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
100
2015-12-25T12:38:41.000Z
2021-12-31T11:41:20.000Z
test/exfile/ecto/cast_content_type_test.exs
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
62
2015-12-26T01:43:54.000Z
2019-09-15T16:16:35.000Z
test/exfile/ecto/cast_content_type_test.exs
sreecodeslayer/exfile
c88288563d688fb47a6fcae190dbe1b8eb64bf9b
[ "MIT" ]
22
2016-04-19T11:54:38.000Z
2021-09-29T14:48:46.000Z
defmodule Exfile.Ecto.CastContentTypeTest do use ExUnit.Case, async: true import Ecto.Changeset, only: [cast: 3] import Exfile.Ecto.CastContentType test "assigns content type correctly" do changeset = cast(initial_changeset(), %{ image: image_file() }, [:image]) |> cast_content_type(:image) ass...
26.375
77
0.671406
185729cadc91ff9d27801c1b656e88dd053dddb2
111
exs
Elixir
elixir-tutorial/delay_task.exs
TakesxiSximada/gist
f8d8c6dcf3dae129f2db8d7ceda9f097ca41345e
[ "Apache-2.0" ]
1
2016-11-30T09:12:17.000Z
2016-11-30T09:12:17.000Z
elixir-tutorial/delay_task.exs
TakesxiSximada/gist
f8d8c6dcf3dae129f2db8d7ceda9f097ca41345e
[ "Apache-2.0" ]
null
null
null
elixir-tutorial/delay_task.exs
TakesxiSximada/gist
f8d8c6dcf3dae129f2db8d7ceda9f097ca41345e
[ "Apache-2.0" ]
null
null
null
foo = fn() -> Process.sleep(5000) end tasks = for _ <- 1..10, true, do: Task.async(foo) Task.yield_many(tasks)
27.75
49
0.657658
1857343c84ac9f1ec65fdd3e81f19a6949b4efba
4,213
ex
Elixir
lib/saxy/encoder.ex
varnerac/saxy
861a2ecb74701a27769395c9fd231108efb9803b
[ "MIT" ]
null
null
null
lib/saxy/encoder.ex
varnerac/saxy
861a2ecb74701a27769395c9fd231108efb9803b
[ "MIT" ]
null
null
null
lib/saxy/encoder.ex
varnerac/saxy
861a2ecb74701a27769395c9fd231108efb9803b
[ "MIT" ]
1
2021-01-12T09:56:09.000Z
2021-01-12T09:56:09.000Z
defmodule Saxy.Encoder do @moduledoc false @doc """ Encode data into a iodata list (merge between list and binary data). Example: iex> Saxy.Encoder.encode_to_iodata({"foo", [], []}, nil) [[[60, "foo"], 47, 62]] iex> Saxy.Encoder.encode_to_iodata({"foo", [{"id", "10"}], []}, nil) [[[60, "foo",...
22.650538
102
0.603845
18574801944056c34b5a6619d9c3955826b6bc50
3,648
ex
Elixir
lib/ecto/repo/supervisor.ex
mschae/ecto
00f85444c4f61080617179232c0d528381de5ec3
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo/supervisor.ex
mschae/ecto
00f85444c4f61080617179232c0d528381de5ec3
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo/supervisor.ex
mschae/ecto
00f85444c4f61080617179232c0d528381de5ec3
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Repo.Supervisor do @moduledoc false use Supervisor @doc """ Starts the repo supervisor. """ def start_link(repo, otp_app, adapter, opts) do name = opts[:name] || Application.get_env(otp_app, repo)[:name] || repo Supervisor.start_link(__MODULE__, {name, repo, otp_app, adapter, opts},...
28.5
92
0.635417
18577f2f86335f2bbcbb57a4ae924dda9cd725ff
3,801
ex
Elixir
lib/grizzly/zwave/command.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
lib/grizzly/zwave/command.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
lib/grizzly/zwave/command.ex
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Command do @moduledoc """ Data struct and behaviour for working with Z-Wave commands """ alias Grizzly.ZWave.{CommandClass, DecodeError} @type delay_seconds() :: non_neg_integer() @type params() :: Keyword.t() @typedoc """ Command struct * `:name` - the name of the command...
26.395833
98
0.629571
1857cf7f830ab2652886b570833d43bbd93be197
1,362
ex
Elixir
lib/chat_api/google/google_authorization.ex
J0/papercups
a896081727abae07982a79fdf5b649354155f3a4
[ "MIT" ]
null
null
null
lib/chat_api/google/google_authorization.ex
J0/papercups
a896081727abae07982a79fdf5b649354155f3a4
[ "MIT" ]
1
2021-01-17T10:42:34.000Z
2021-01-17T10:42:34.000Z
lib/chat_api/google/google_authorization.ex
J0/papercups
a896081727abae07982a79fdf5b649354155f3a4
[ "MIT" ]
null
null
null
defmodule ChatApi.Google.GoogleAuthorization do use Ecto.Schema import Ecto.Changeset alias ChatApi.Accounts.Account alias ChatApi.Users.User @type t :: %__MODULE__{ client: String.t(), access_token: String.t() | nil, refresh_token: String.t(), token_type: String.t() ...
24.763636
74
0.613803
1857e16b1507553e78eb0b9f0c92c40839ac2e51
225
ex
Elixir
lib/mechanize/http_adapter.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
25
2020-06-26T02:21:35.000Z
2022-03-05T18:51:46.000Z
lib/mechanize/http_adapter.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
29
2019-07-02T21:50:06.000Z
2020-05-28T18:34:01.000Z
lib/mechanize/http_adapter.ex
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
4
2020-06-24T02:11:47.000Z
2022-03-06T00:50:59.000Z
defmodule Mechanize.HTTPAdapter do @moduledoc false alias Mechanize.{Request, Response} @callback request!(Request.t()) :: Response.t() defmodule NetworkError do defexception [:message, :cause, :url] end end
18.75
49
0.72
1857fe1e65b80a30868b1a6d85e0574fa0f680c4
84
ex
Elixir
lib/command_handler/receive_message.ex
jonasrichard/iris
eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00
[ "Apache-2.0" ]
1
2017-03-31T09:26:21.000Z
2017-03-31T09:26:21.000Z
lib/command_handler/receive_message.ex
jonasrichard/iris
eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00
[ "Apache-2.0" ]
1
2017-05-03T06:30:09.000Z
2017-05-03T06:30:09.000Z
lib/command_handler/receive_message.ex
jonasrichard/iris
eb4547ced7f7ff9305a4edfa1c32e8d45fa2aa00
[ "Apache-2.0" ]
null
null
null
defmodule Iris.CommandHandler.ReceiveMessage do def handle(_command) do end end
16.8
47
0.809524
185803f11bcb8de684876f107a7c4a9048f1077c
1,897
exs
Elixir
config/dev.exs
srowley/ggity_demo
172815ce7d897ef965df1d992ba50e3290f8348d
[ "MIT" ]
null
null
null
config/dev.exs
srowley/ggity_demo
172815ce7d897ef965df1d992ba50e3290f8348d
[ "MIT" ]
null
null
null
config/dev.exs
srowley/ggity_demo
172815ce7d897ef965df1d992ba50e3290f8348d
[ "MIT" ]
null
null
null
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 webpack to recompile .js and .css sources. config :ggity_demo, GGityDemoWeb.Endpoint, http: [port:...
28.313433
68
0.690564
18582a657fffe66f8810126cce7535f41aba503e
5,868
ex
Elixir
lib/decorator/decorate.ex
kianmeng/decorator
fc758136ca50a9da790a7c610d4d40ec7c0bd1f5
[ "MIT" ]
null
null
null
lib/decorator/decorate.ex
kianmeng/decorator
fc758136ca50a9da790a7c610d4d40ec7c0bd1f5
[ "MIT" ]
null
null
null
lib/decorator/decorate.ex
kianmeng/decorator
fc758136ca50a9da790a7c610d4d40ec7c0bd1f5
[ "MIT" ]
null
null
null
defmodule Decorator.Decorate do @moduledoc false defmodule Context do @moduledoc """ Struct with information about the function that is being decorated. """ defstruct name: nil, arity: nil, module: nil, args: nil end def on_definition(env, kind, fun, args, guards, body) do decorators = ...
28.906404
95
0.622699
1858547839600ff5014879af35940d7a3a0490d4
505
ex
Elixir
apps/content/lib/content_web/views/error_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/content/lib/content_web/views/error_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/content/lib/content_web/views/error_view.ex
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
defmodule Legendary.Content.ErrorView do use Legendary.Content, :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...
29.705882
61
0.738614
185883bd6c17173a575fd3f55abb0104fef0b66d
12,808
ex
Elixir
lib/periods_builder.ex
aptinio/tz
8b6a243c58c451e92f8d1b56f62c3ad6885f8eae
[ "Apache-2.0" ]
66
2020-02-24T07:44:18.000Z
2022-03-30T00:39:54.000Z
lib/periods_builder.ex
aptinio/tz
8b6a243c58c451e92f8d1b56f62c3ad6885f8eae
[ "Apache-2.0" ]
9
2020-03-28T07:17:56.000Z
2021-10-11T13:07:05.000Z
lib/periods_builder.ex
aptinio/tz
8b6a243c58c451e92f8d1b56f62c3ad6885f8eae
[ "Apache-2.0" ]
8
2020-02-25T04:40:28.000Z
2021-10-10T12:19:18.000Z
defmodule Tz.PeriodsBuilder do @moduledoc false def build_periods(zone_lines, rule_records, mode \\ :compilation, prev_period \\ nil, periods \\ []) def build_periods([], _rule_records, _mode, _prev_period, periods), do: Enum.reverse(periods) def build_periods([zone_line | rest_zone_lines], rule_records, mod...
40.15047
151
0.724781
18588995286c6b6a68783b52eb9eee14a5ad12e1
1,098
ex
Elixir
lib/earmark_parser2/lexer.ex
RobertDober/EarmarkParser2
a50053a20e7aa2d5e6041d778dd9f19bb043da1b
[ "Apache-2.0" ]
null
null
null
lib/earmark_parser2/lexer.ex
RobertDober/EarmarkParser2
a50053a20e7aa2d5e6041d778dd9f19bb043da1b
[ "Apache-2.0" ]
null
null
null
lib/earmark_parser2/lexer.ex
RobertDober/EarmarkParser2
a50053a20e7aa2d5e6041d778dd9f19bb043da1b
[ "Apache-2.0" ]
null
null
null
defmodule EarmarkParser2.Lexer do @moduledoc false use EarmarkParser2.Types alias EarmarkParser2.Token @typep partial_token_t :: {atom(), String.t(), len: number()} @typep partial_token_ts :: list(partial_token_t) @spec tokenize(String.t(), lnb: number()) :: Token.ts() def tokenize(line, lnb: lnb) do ...
24.954545
86
0.622951
18588ba45d7684e1f1e6917232e3abd0cd5769b4
5,642
exs
Elixir
test/estructura_test.exs
am-kantox/estructura
e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5
[ "MIT" ]
12
2022-01-21T21:13:30.000Z
2022-02-06T03:06:24.000Z
test/estructura_test.exs
am-kantox/estructura
e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5
[ "MIT" ]
7
2022-01-21T05:55:54.000Z
2022-03-28T11:01:09.000Z
test/estructura_test.exs
am-kantox/estructura
e319603bbe629e9c15cd7f6521ae82b4cfa3bcc5
[ "MIT" ]
1
2022-02-01T21:19:00.000Z
2022-02-01T21:19:00.000Z
defmodule EstructuraTest do use ExUnit.Case, async: true use ExUnitProperties doctest Estructura doctest Estructura.Lazy doctest Estructura.LazyMap alias Estructura.Collectable.Bitstring, as: ECB alias Estructura.Collectable.List, as: ECL alias Estructura.Collectable.Map, as: ECM alias Estructura.Co...
31.344444
100
0.584544
1858a231c14f05a0ca08de6e3cb75643d89d16be
1,235
exs
Elixir
36-computing-statistics.exs
floriank/57-exercises-elixir
fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f
[ "MIT" ]
1
2016-04-23T17:03:02.000Z
2016-04-23T17:03:02.000Z
36-computing-statistics.exs
floriank/57-exercises-elixir
fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f
[ "MIT" ]
null
null
null
36-computing-statistics.exs
floriank/57-exercises-elixir
fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f
[ "MIT" ]
1
2021-06-07T21:21:41.000Z
2021-06-07T21:21:41.000Z
defmodule ComputingStatistics do import IO, only: [gets: 1, puts: 1] def ask(numbers \\ {}) do number = gets("Enter a number: ") |> String.rstrip if number == "done" do Tuple.to_list(numbers) |> compute else case Float.parse(number) do :error -> puts "Not a ...
23.301887
80
0.610526
1858cd079d0fd9cc4b7176f6dd3f6e8a42f06ff2
101,039
ex
Elixir
clients/api_gateway/lib/google_api/api_gateway/v1/api/projects.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/api_gateway/lib/google_api/api_gateway/v1/api/projects.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/api_gateway/lib/google_api/api_gateway/v1/api/projects.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "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...
45.905952
802
0.615832
1858d521129d59bfc2bfb8f5aaa16e31d7eb100b
3,114
ex
Elixir
deps/ecto/lib/ecto/adapter/schema.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/adapter/schema.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/adapter/schema.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule Ecto.Adapter.Schema do @moduledoc """ Specifies the schema API required from adapters. """ @typedoc "Proxy type to the adapter meta" @type adapter_meta :: Ecto.Adapter.adapter_meta() @typedoc "Ecto.Schema metadata fields" @type schema_meta :: %{ autogenerate_id: {schema_fie...
34.21978
90
0.614965
1858da58fa447a152e93328a0e0294db27828fb2
4,133
ex
Elixir
deps/phoenix_html/lib/phoenix_html/form_data.ex
pdamoc/cowboy_issue
3873ffed5cc2b15ead54b2d3e95575b09ba1833a
[ "MIT" ]
null
null
null
deps/phoenix_html/lib/phoenix_html/form_data.ex
pdamoc/cowboy_issue
3873ffed5cc2b15ead54b2d3e95575b09ba1833a
[ "MIT" ]
null
null
null
deps/phoenix_html/lib/phoenix_html/form_data.ex
pdamoc/cowboy_issue
3873ffed5cc2b15ead54b2d3e95575b09ba1833a
[ "MIT" ]
null
null
null
defprotocol Phoenix.HTML.FormData do @moduledoc """ Converts a data structure into a `Phoenix.HTML.Form` struct. """ @doc """ Converts a data structure into a `Phoenix.HTML.Form` struct. The options are the same options given to `form_for/4`. It can be used by implementations to configure their behaviou...
29.105634
84
0.590128
185900348655d5b241ea46caff79a2740f686275
606
ex
Elixir
lib/parser/file_reader.ex
rubum/css-parser
add41e66fa29eecca304e583b84445f355118d76
[ "Apache-2.0" ]
3
2021-08-05T10:54:49.000Z
2022-02-11T05:35:38.000Z
lib/parser/file_reader.ex
rubum/css-parser
add41e66fa29eecca304e583b84445f355118d76
[ "Apache-2.0" ]
null
null
null
lib/parser/file_reader.ex
rubum/css-parser
add41e66fa29eecca304e583b84445f355118d76
[ "Apache-2.0" ]
null
null
null
defmodule CssParser.File do @moduledoc """ File reading and formating helper for the css parser. """ @file_regex ~r/(?:^\/\w)(.*)|(?:^\w+\/)(.*)([^{}[\]]|.$|.css$)/m @doc """ Checks whether a given string is a file path """ @spec is_file?(binary()) :: boolean() def is_file?(path) do File.regul...
23.307692
77
0.607261
1859159b8e134c2d2f3b5cafe586ac6247b744ed
1,432
ex
Elixir
apps/admin_app/lib/admin_app_web/exporter/order.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/admin_app/lib/admin_app_web/exporter/order.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/admin_app/lib/admin_app_web/exporter/order.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule AdminAppWeb.Exporter.Order do @moduledoc """ Data export module for Order. """ alias AdminAppWeb.Exporter import Ecto.Query alias Snitch.Domain.Order, as: Domain alias Snitch.Data.Schema.Order alias Snitch.Data.Model.Order, as: OrderModel @columns ~w(id number line_items_count order_total b...
28.078431
124
0.700419
18592b3cddab865875b6061d21a485d85b518d1b
123
exs
Elixir
config/dev.exs
epinault/wavexfront
29dcc3e82cedbbf18d5894a3b4b465efed4c3069
[ "MIT" ]
1
2020-01-12T03:47:59.000Z
2020-01-12T03:47:59.000Z
config/dev.exs
epinault/wavexfront
29dcc3e82cedbbf18d5894a3b4b465efed4c3069
[ "MIT" ]
null
null
null
config/dev.exs
epinault/wavexfront
29dcc3e82cedbbf18d5894a3b4b465efed4c3069
[ "MIT" ]
null
null
null
use Mix.Config config :wavexfront, enabled: :log, histogram_1m: [enabled: true], counter_and_gauge: [enabled: true]
17.571429
36
0.723577
185935d0144208156d30556c48acbb29619a198c
201
exs
Elixir
apps/console/test/console/web/controllers/page_controller_test.exs
feb29/poly
e64e7a50d1683e1c29acf3d1b6973a3098f5850a
[ "MIT", "Unlicense" ]
null
null
null
apps/console/test/console/web/controllers/page_controller_test.exs
feb29/poly
e64e7a50d1683e1c29acf3d1b6973a3098f5850a
[ "MIT", "Unlicense" ]
null
null
null
apps/console/test/console/web/controllers/page_controller_test.exs
feb29/poly
e64e7a50d1683e1c29acf3d1b6973a3098f5850a
[ "MIT", "Unlicense" ]
null
null
null
defmodule Console.Web.PageControllerTest do use Console.Web.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
22.333333
60
0.676617
18594706c24f80cec297991f0d195d92a221a7ef
4,782
exs
Elixir
test/protobuf/decoder_test.exs
jeanparpaillon/protobuf-elixir
7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09
[ "MIT" ]
null
null
null
test/protobuf/decoder_test.exs
jeanparpaillon/protobuf-elixir
7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09
[ "MIT" ]
3
2019-09-19T14:52:12.000Z
2019-09-24T15:45:07.000Z
test/protobuf/decoder_test.exs
jeanparpaillon/protobuf-elixir
7e5ab19ea0d8ac6cf4c2babc9567273d94a5eb09
[ "MIT" ]
null
null
null
Code.require_file("../support/test_msg.ex", __DIR__) defmodule Protobuf.DecoderTest do use ExUnit.Case, async: true alias Protobuf.Decoder test "decodes one simple field" do struct = Decoder.decode(<<8, 42>>, TestMsg.Foo) assert struct == TestMsg.Foo.new(a: 42) end test "decodes full fields" do ...
34.157143
96
0.579674
185958c51f65f358f7e134ab540ed6aa757fd0b2
11,132
ex
Elixir
lib/membrane_dashboard_web/live/helpers.ex
membraneframework/membrane_dashboard
e9237bcd74a13092af1aae5f3db719a5765df881
[ "Apache-1.1" ]
4
2021-06-09T13:33:22.000Z
2022-01-29T12:51:54.000Z
lib/membrane_dashboard_web/live/helpers.ex
membraneframework/membrane_dashboard
e9237bcd74a13092af1aae5f3db719a5765df881
[ "Apache-1.1" ]
15
2021-06-12T22:23:58.000Z
2022-01-10T09:06:12.000Z
lib/membrane_dashboard_web/live/helpers.ex
membraneframework/membrane_dashboard
e9237bcd74a13092af1aae5f3db719a5765df881
[ "Apache-1.1" ]
null
null
null
defmodule Membrane.DashboardWeb.Live.Helpers do @moduledoc """ Modules consisting different svg icons. """ use Phoenix.Component @spec search_icon(map) :: Phoenix.LiveView.Rendered.t() def search_icon(assigns) do assigns = assign_class(assigns) ~H""" <svg class={"default-icon #{@class}"} xm...
57.678756
2,494
0.620194
1859b056ec5445f901e6bc14632758ef2b48d06a
1,192
exs
Elixir
spec/field_struct_spec.exs
eloy/extruder
3adfb8c024edc734aa3f721cbb2c53b1ac977389
[ "MIT" ]
1
2018-05-03T00:24:50.000Z
2018-05-03T00:24:50.000Z
spec/field_struct_spec.exs
eloy/extruder
3adfb8c024edc734aa3f721cbb2c53b1ac977389
[ "MIT" ]
null
null
null
spec/field_struct_spec.exs
eloy/extruder
3adfb8c024edc734aa3f721cbb2c53b1ac977389
[ "MIT" ]
null
null
null
defmodule FieldStructSpec do use ESpec defmodule NeestedStruct do use Extruder defmodel do field :bar, :int validates_presence_of :bar end end defmodule TestModel do use Extruder defmodel do field :foo, :struct, module: NeestedStruct end end defmodule NeestedSt...
19.866667
66
0.631711
1859b18a55451720b42bc54b6f2fe6b7f2656f06
3,625
exs
Elixir
test/elasticsearch/cluster/cluster_test.exs
LetThereBeDwight/elasticsearch-elixir
a24a198fe38aae7886fb0765ccc487ed65e995e5
[ "MIT" ]
215
2019-01-28T23:31:14.000Z
2022-03-31T16:03:30.000Z
test/elasticsearch/cluster/cluster_test.exs
LetThereBeDwight/elasticsearch-elixir
a24a198fe38aae7886fb0765ccc487ed65e995e5
[ "MIT" ]
56
2018-01-02T17:52:54.000Z
2019-01-19T16:05:47.000Z
test/elasticsearch/cluster/cluster_test.exs
LetThereBeDwight/elasticsearch-elixir
a24a198fe38aae7886fb0765ccc487ed65e995e5
[ "MIT" ]
39
2019-03-12T20:35:03.000Z
2022-03-11T16:49:45.000Z
defmodule Elasticsearch.ClusterTest do use ExUnit.Case, async: false def valid_config do %{ api: Elasticsearch.API.HTTP, json_library: Poison, url: "http://localhost:9200", username: "username", password: "password", indexes: %{ posts: %{ settings: "test/su...
27.462121
107
0.638069
1859bb3f5901c95fffa8c0ebe6ae98277f3e5eea
578
exs
Elixir
test/views/error_view_test.exs
mark-greene/blackjack-phoenix
e62be7cb67684c5b872ba91c7b3856bf390d1d2e
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
mark-greene/blackjack-phoenix
e62be7cb67684c5b872ba91c7b3856bf390d1d2e
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
mark-greene/blackjack-phoenix
e62be7cb67684c5b872ba91c7b3856bf390d1d2e
[ "MIT" ]
null
null
null
defmodule Blackjack.ErrorViewTest do use Blackjack.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(Blackjack.ErrorView, "404.html", []) == "Page not found" end test "render 500.htm...
26.272727
67
0.681661
1859e92e4bafc0178492295b4ed2bd009d65221e
590
ex
Elixir
lib/extensions/reset_password/phoenix/messages.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
null
null
null
lib/extensions/reset_password/phoenix/messages.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
null
null
null
lib/extensions/reset_password/phoenix/messages.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
1
2020-07-13T01:11:17.000Z
2020-07-13T01:11:17.000Z
defmodule PowResetPassword.Phoenix.Messages do @moduledoc false @doc """ Flash message to show when a reset password e-mail has been sent. """ def email_has_been_sent(_conn), do: "An email with reset instructions has been sent to you. Please check your inbox." @doc """ Flash message to show when a an in...
29.5
119
0.720339
185a4b71090c05abd4da6a1358e5ca5b48a6b936
169
exs
Elixir
test/test_helper.exs
amatalai/commanded
1e62888bdd733741fd08d42d9350282071764b35
[ "MIT" ]
null
null
null
test/test_helper.exs
amatalai/commanded
1e62888bdd733741fd08d42d9350282071764b35
[ "MIT" ]
null
null
null
test/test_helper.exs
amatalai/commanded
1e62888bdd733741fd08d42d9350282071764b35
[ "MIT" ]
null
null
null
alias Commanded.EventStore.Adapters.InMemory alias Commanded.Serialization.JsonSerializer {:ok, _pid} = InMemory.start_link(serializer: JsonSerializer) ExUnit.start()
24.142857
61
0.828402
185a79b3b9723ed2214d7011650f1b65929845eb
2,264
ex
Elixir
lib/days/07.ex
codebycaleb/advent-2020
ffdcfa6dc618ddcc6bf29e0125d15b3abd32f19b
[ "Unlicense" ]
null
null
null
lib/days/07.ex
codebycaleb/advent-2020
ffdcfa6dc618ddcc6bf29e0125d15b3abd32f19b
[ "Unlicense" ]
null
null
null
lib/days/07.ex
codebycaleb/advent-2020
ffdcfa6dc618ddcc6bf29e0125d15b3abd32f19b
[ "Unlicense" ]
null
null
null
defmodule D7 do @moduledoc """ --- Day 7: Handy Haversacks --- You land at the regional airport in time for your next flight. In fact, it looks like you'll even have time to grab some food: all flights are currently delayed due to issues in luggage processing. Due to recent aviation regulations, many rules (yo...
35.936508
308
0.658127
185a8525e29f8958917839ef54b95082e23a4643
613
ex
Elixir
apps/elixir_ls_utils/lib/launch.ex
rupurt/elixir-ls
67face6dd668e7d5d363e28f6b4305a1a64473c7
[ "Apache-2.0" ]
null
null
null
apps/elixir_ls_utils/lib/launch.ex
rupurt/elixir-ls
67face6dd668e7d5d363e28f6b4305a1a64473c7
[ "Apache-2.0" ]
null
null
null
apps/elixir_ls_utils/lib/launch.ex
rupurt/elixir-ls
67face6dd668e7d5d363e28f6b4305a1a64473c7
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.Utils.Launch do def start_mix do Mix.start() Mix.Local.append_archives() Mix.Local.append_paths() load_dot_config() :ok end def print_versions do IO.inspect(System.build_info()[:build], label: "Elixir version") IO.inspect(System.otp_release(), label: "Erlang version...
21.892857
68
0.675367
185ab403fb83299aefd902ae0a3d5c8e25566f05
283
exs
Elixir
priv/repo/migrations/20170317122620_create_deal.exs
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
priv/repo/migrations/20170317122620_create_deal.exs
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
priv/repo/migrations/20170317122620_create_deal.exs
GoberInfinity/ExamplePhoenix
4f2e016000a55dd4dbc28409dd214f0923e38e32
[ "MIT" ]
null
null
null
defmodule Otherpool.Repo.Migrations.CreateDeal do use Ecto.Migration def change do create table(:dealers) do add :stock, :integer add :user_id, references(:users, on_delete: :nothing) timestamps() end create index(:dealers, [:user_id]) end end
18.866667
59
0.674912
185abb6e928c05db96f46cfd5610656c7024c731
7,983
ex
Elixir
lib/changelog/schema/factory.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
1
2019-11-02T08:32:25.000Z
2019-11-02T08:32:25.000Z
lib/changelog/schema/factory.ex
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
null
null
null
lib/changelog/schema/factory.ex
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
null
null
null
defmodule Changelog.Factory do use ExMachina.Ecto, repo: Changelog.Repo def benefit_factory do %Changelog.Benefit{ offer: "Free stuff!", sponsor: build(:sponsor), link_url: "https://benefits.com" } end def topic_factory do %Changelog.Topic{ name: sequence(:name, &"Topic #{&...
24.117825
95
0.652261
185abf5617e5949d28d2e8839ffc599cc6d6ef81
1,824
exs
Elixir
apps/demon_spirit_web/test/demon_spirit_game_ui/game_registry_test.exs
mreishus/demon_spirit_umbrella
1ab9161427361ac7d35132fce2aed36923896a4b
[ "MIT" ]
12
2019-09-17T13:47:57.000Z
2021-12-11T17:11:11.000Z
apps/demon_spirit_web/test/demon_spirit_game_ui/game_registry_test.exs
mreishus/demon_spirit_umbrella
1ab9161427361ac7d35132fce2aed36923896a4b
[ "MIT" ]
181
2019-10-15T01:21:44.000Z
2021-08-31T19:26:54.000Z
apps/demon_spirit_web/test/demon_spirit_game_ui/game_registry_test.exs
mreishus/demon_spirit_umbrella
1ab9161427361ac7d35132fce2aed36923896a4b
[ "MIT" ]
2
2020-07-11T02:18:46.000Z
2021-05-31T10:46:39.000Z
defmodule GameRegistryTest do use ExUnit.Case, async: true alias DemonSpiritWeb.{GameRegistry, GameInfo} describe "start_link/1" do test "Already started by application" do # assert {:error, {:already_started, _pid}} = GameRegistry.start_link(nil) end end describe "add/2" do test "Adding w...
30.4
94
0.672149
185ac0cf8ad29780b39afd9b3a0c1fe776bab76e
1,081
ex
Elixir
lib/mastani_server/billing/bill_record.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
lib/mastani_server/billing/bill_record.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
lib/mastani_server/billing/bill_record.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Billing.BillRecord do @moduledoc """ bill records for investors """ alias __MODULE__ use Ecto.Schema import Ecto.Changeset alias MastaniServer.Accounts @required_fields ~w(user_id hash_id state amount payment_usage payment_method)a @optional_fields ~w(note)a schema "bill_...
24.022222
81
0.697502
185af80b8eb613dbcd1b94312fc3549d916994dc
32,071
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/public_delegated_prefixes.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/public_delegated_prefixes.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/public_delegated_prefixes.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "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...
59.611524
2,276
0.654735
185b03aff575a3ba9da2d753004d756a9f80a837
594
exs
Elixir
bench/send_bench_one.exs
getong/manifold
8fbb5275313e6b8255c32be88561ae9880e15fff
[ "MIT" ]
662
2017-09-20T02:48:42.000Z
2020-03-22T18:34:56.000Z
bench/send_bench_one.exs
getong/manifold
8fbb5275313e6b8255c32be88561ae9880e15fff
[ "MIT" ]
5
2018-02-04T05:20:19.000Z
2019-12-10T03:50:57.000Z
bench/send_bench_one.exs
getong/manifold
8fbb5275313e6b8255c32be88561ae9880e15fff
[ "MIT" ]
30
2017-10-08T20:28:06.000Z
2020-02-11T23:40:04.000Z
defmodule SendBenchOne do use Benchfella setup_all do pid = spawn_link &loop/0 {:ok, pid} end defp loop() do receive do _ -> loop() end end bench "send enum each" do [bench_context] |> Enum.each(&send(&1, :hi)) end bench "send list comp" do for pid <- [bench_context], d...
16.054054
50
0.599327
185b181ec4a69c15513f492e0a9fc893406daa7d
1,087
ex
Elixir
web/router.ex
pbrudnick/pyconar-talks
f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e
[ "MIT" ]
null
null
null
web/router.ex
pbrudnick/pyconar-talks
f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e
[ "MIT" ]
null
null
null
web/router.ex
pbrudnick/pyconar-talks
f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e
[ "MIT" ]
null
null
null
defmodule PyconarTalks.Router do use PyconarTalks.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end # This pipeline if intended for API requests and looks for the JWT in the "Autho...
27.175
98
0.698252
185b9619e30901bc42f496cee037b7def6079adb
2,054
exs
Elixir
test/text_based_fps/server_state/notifications_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
1
2022-03-02T12:18:07.000Z
2022-03-02T12:18:07.000Z
test/text_based_fps/server_state/notifications_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
12
2021-05-31T21:41:09.000Z
2021-07-30T03:18:09.000Z
test/text_based_fps/server_state/notifications_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
null
null
null
defmodule TextBasedFPS.ServerState.NotificationsTest do use ExUnit.Case, async: true alias TextBasedFPS.{Notification, ServerState} describe "add_notification/2" do test "adds notifications to the end of the list" do state = ServerState.new() |> ServerState.add_notifications([Notificat...
32.603175
91
0.598345
185bbc9b6b63d7cf832c9b98b3c8e34f17205c26
1,777
ex
Elixir
clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_rejoin_user_events_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_rejoin_user_events_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_rejoin_user_events_response.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...
32.907407
138
0.7704
185bc0cd3cbbe56ac6334f29805ea8078755428d
273
ex
Elixir
web/controllers/page_controller.ex
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
3
2015-06-10T12:09:51.000Z
2015-11-24T06:16:28.000Z
web/controllers/page_controller.ex
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
colindensem/phoenix.summit360
094a33a91c580dd98b7ec2318e8cf4b4df741b9a
[ "MIT" ]
null
null
null
defmodule Summit360Www.PageController do use Summit360Www.Web, :controller plug :action def index(conn, _params) do render conn, "index.html", page: "" end def show(conn, %{"page" => page}) do conn |> render "#{page}.html", page: page end end
15.166667
40
0.641026
185c2ab24ef81f3082ef4fa7f626aa02b07cfd4c
1,062
ex
Elixir
lib/loops_with_friends/endpoint.ex
jeffcole/loops
8d1f8345140182905dfc1967af135205b82f2cdc
[ "MIT" ]
null
null
null
lib/loops_with_friends/endpoint.ex
jeffcole/loops
8d1f8345140182905dfc1967af135205b82f2cdc
[ "MIT" ]
null
null
null
lib/loops_with_friends/endpoint.ex
jeffcole/loops
8d1f8345140182905dfc1967af135205b82f2cdc
[ "MIT" ]
null
null
null
defmodule LoopsWithFriends.Endpoint do use Phoenix.Endpoint, otp_app: :loops_with_friends socket "/socket", LoopsWithFriends.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in prod...
26.55
69
0.723164
185c2ec8de02bcf46e8aea4800c4b8615691a69c
5,903
exs
Elixir
test/noven_web/controllers/user_auth_test.exs
ConnorRigby/noven
2c34953490585b77b6c7ae8dd772da5028f6a948
[ "Apache-2.0" ]
8
2020-09-10T09:18:17.000Z
2022-03-25T03:43:25.000Z
test/noven_web/controllers/user_auth_test.exs
ConnorRigby/noven
2c34953490585b77b6c7ae8dd772da5028f6a948
[ "Apache-2.0" ]
null
null
null
test/noven_web/controllers/user_auth_test.exs
ConnorRigby/noven
2c34953490585b77b6c7ae8dd772da5028f6a948
[ "Apache-2.0" ]
4
2020-12-28T06:13:51.000Z
2021-04-27T18:00:06.000Z
defmodule NovenWeb.UserAuthTest do use NovenWeb.ConnCase, async: true alias Noven.Accounts alias NovenWeb.UserAuth import Noven.AccountsFixtures setup %{conn: conn} do conn = conn |> Map.replace!(:secret_key_base, NovenWeb.Endpoint.config(:secret_key_base)) |> init_test_session(%{}) ...
35.993902
98
0.672539
185c7d80dd28319b4cd71859e21aa8a78525a37c
17,251
exs
Elixir
lib/elixir/test/elixir/exception_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/exception_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/exception_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule ExceptionTest do use ExUnit.Case, async: true doctest Exception test "raise preserves the stacktrace" do stacktrace = try do raise "a" rescue _ -> [top | _] = System.stacktrace top end file = __ENV__.file |...
42.385749
131
0.632659
185ca8af7565a29d86f6f44ec943902368cb3cbf
7,038
ex
Elixir
lib/smart_chain/abi.ex
esprezzo/elixir-smart-chain
ed031713edd46c610472406f541196a67e07cb59
[ "MIT" ]
null
null
null
lib/smart_chain/abi.ex
esprezzo/elixir-smart-chain
ed031713edd46c610472406f541196a67e07cb59
[ "MIT" ]
null
null
null
lib/smart_chain/abi.ex
esprezzo/elixir-smart-chain
ed031713edd46c610472406f541196a67e07cb59
[ "MIT" ]
null
null
null
defmodule SmartChain.ABI do require Logger require IEx @spec load_abi(binary()) :: list() | {:error, atom()} @doc "Loads the abi at the file path and reformats it to a map" def load_abi(file_path) do file = File.read(Path.join(System.cwd(), file_path)) case file do {:ok, abi} -> __MODULE_...
31.004405
100
0.609122
185cc569eece9a898cac32d7639552d4fc64ed8f
1,689
ex
Elixir
lib/order_invariant_compare.ex
mbramson/order_invariant_compare
76917387a83252e48828bf5237dc0813cf9f3a6c
[ "MIT" ]
null
null
null
lib/order_invariant_compare.ex
mbramson/order_invariant_compare
76917387a83252e48828bf5237dc0813cf9f3a6c
[ "MIT" ]
1
2017-11-05T22:45:40.000Z
2017-11-05T22:45:40.000Z
lib/order_invariant_compare.ex
mbramson/order_invariant_compare
76917387a83252e48828bf5237dc0813cf9f3a6c
[ "MIT" ]
null
null
null
defmodule OrderInvariantCompare do @moduledoc """ OrderInvariantCompare defines the `<~>` operator which is used to compare two items for equality. If they are lists, then it returns true if those lists contain the same elements, even if those elements are not in the same order. This can be useful for when y...
30.160714
79
0.6791
185cd6f0ebcf352b8521a51830a79b1a6d193aa6
1,786
ex
Elixir
lib/animina_web/controllers/coupon_controller.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
1
2021-04-17T20:36:24.000Z
2021-04-17T20:36:24.000Z
lib/animina_web/controllers/coupon_controller.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
3
2021-04-15T19:45:43.000Z
2021-04-16T06:08:24.000Z
lib/animina_web/controllers/coupon_controller.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
null
null
null
defmodule AniminaWeb.CouponController do use AniminaWeb, :controller alias Animina.Points alias Animina.Points.Coupon def index(conn, _params) do coupons = Points.list_coupons() render(conn, "index.html", coupons: coupons) end def new(conn, _params) do changeset = Points.change_coupon(%Coupon...
28.349206
71
0.641097
185cdc48487b2bbee71a89c6f792f2b636f81933
2,551
exs
Elixir
.credo.exs
remiprev/plug_best
f3d5ee080128b88f5c2051c11e9ad6d6683206a4
[ "MIT" ]
9
2016-05-25T13:44:35.000Z
2019-05-04T11:12:10.000Z
.credo.exs
remi/plug_best
f3d5ee080128b88f5c2051c11e9ad6d6683206a4
[ "MIT" ]
5
2016-05-26T13:32:14.000Z
2016-06-06T12:15:03.000Z
.credo.exs
remiprev/plug_best
f3d5ee080128b88f5c2051c11e9ad6d6683206a4
[ "MIT" ]
null
null
null
%{ configs: [ %{ name: "default", strict: true, files: %{ included: ["lib/", "test/"], excluded: [] }, checks: [ {Credo.Check.Consistency.ExceptionNames}, {Credo.Check.Consistency.LineEndings}, {Credo.Check.Consistency.SpaceAroundOperators}, ...
39.246154
81
0.670717
185cfcdf3a171b1aefcaf68c563e7923467eaf52
3,641
ex
Elixir
farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/asset_workers/regimen_instance_worker.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.RegimenInstance do @moduledoc """ An instance of a running Regimen. Asset.Regimen is the blueprint by which a Regimen "instance" is created. """ use GenServer require Logger require FarmbotCore.Logger alias FarmbotCeleryScript.AST alias Farmbot...
38.326316
127
0.71409
185d0076ced613ae0de9bac87004e4cc42b09524
2,451
exs
Elixir
test/wobserver/web/router/static_test.exs
coby-spotim/wobserver
b0b9d77fb4ff40bb417f6b370ee343b8d42de750
[ "MIT" ]
null
null
null
test/wobserver/web/router/static_test.exs
coby-spotim/wobserver
b0b9d77fb4ff40bb417f6b370ee343b8d42de750
[ "MIT" ]
null
null
null
test/wobserver/web/router/static_test.exs
coby-spotim/wobserver
b0b9d77fb4ff40bb417f6b370ee343b8d42de750
[ "MIT" ]
1
2018-09-12T16:13:57.000Z
2018-09-12T16:13:57.000Z
defmodule Wobserver.Web.Router.StaticTest do use ExUnit.Case, async: false use Plug.Test alias Wobserver.Web.Router.Static @opts Static.init([]) describe "with config set to false" do setup do :meck.new(Application, [:passthrough]) :meck.expect(Application, :get_env, fn :wobserver, option,...
19.766129
69
0.558956
185d191d1de081a1aff7ef1f94ebc1bfda0c92ad
1,194
exs
Elixir
apps/glayu/test/glayu/cli/new_test.exs
pmartinezalvarez/glayu
8dc30eea4d04c38f5c7999b593c066828423a3dc
[ "MIT" ]
51
2017-05-21T07:27:34.000Z
2017-11-30T04:34:17.000Z
apps/glayu/test/glayu/cli/new_test.exs
doc22940/glayu
8dc30eea4d04c38f5c7999b593c066828423a3dc
[ "MIT" ]
17
2017-06-14T18:40:44.000Z
2017-08-20T16:14:58.000Z
apps/glayu/test/glayu/cli/new_test.exs
doc22940/glayu
8dc30eea4d04c38f5c7999b593c066828423a3dc
[ "MIT" ]
5
2017-06-04T19:55:56.000Z
2017-07-29T16:18:58.000Z
defmodule Glayu.CLI.NewTest do use ExUnit.Case import ExUnit.CaptureIO test "new command help is displayed when invalid arguments are provided" do assert capture_io(fn -> Glayu.CLI.main(["new", "New Glayu Post", "invalid-arg"]) end) == help_output() end test "new page command help is displayed when in...
62.842105
685
0.727806
185d1b79ce7845b5c17e1ab75d26c0a4fe93f184
5,838
exs
Elixir
test/tracer_test.exs
binaryseed/elixir_agent
25f1242c10516618d9ea3a9b18712e5bc41efad6
[ "Apache-2.0" ]
null
null
null
test/tracer_test.exs
binaryseed/elixir_agent
25f1242c10516618d9ea3a9b18712e5bc41efad6
[ "Apache-2.0" ]
null
null
null
test/tracer_test.exs
binaryseed/elixir_agent
25f1242c10516618d9ea3a9b18712e5bc41efad6
[ "Apache-2.0" ]
null
null
null
defmodule TracerTest do use ExUnit.Case alias NewRelic.Harvest.Collector defmodule Traced do use NewRelic.Tracer @trace :fun def fun do end @trace :funny def funny do end @trace :bar def foo do end @trace {:query, category: :external} def query do end ...
25.718062
97
0.692189
185d9815ccfefee54fc49a5d4fd51082c661ed2a
291
exs
Elixir
priv/repo/seeds/00_bootstrap.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
priv/repo/seeds/00_bootstrap.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
priv/repo/seeds/00_bootstrap.exs
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
import Botanist import System, only: [get_env: 1] alias Console.{Repo, Schema} seed do %Schema.User{ name: get_env("ADMIN_NAME"), email: get_env("ADMIN_EMAIL"), } |> Schema.User.changeset(%{password: get_env("ADMIN_PASSWORD"), roles: %{admin: true}}) |> Repo.insert!() end
20.785714
89
0.670103
185e0194971500aa76f8318c9a5199539773bb9f
12,031
ex
Elixir
lib/militerm/systems/entity.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
6
2017-06-16T10:26:35.000Z
2021-04-07T15:01:00.000Z
lib/militerm/systems/entity.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
2
2020-04-14T02:17:46.000Z
2021-03-10T11:09:05.000Z
lib/militerm/systems/entity.ex
jgsmith/militerm
c4252d0a93f5620b90750ac2b61baf282e9ef7eb
[ "Apache-2.0" ]
null
null
null
defmodule Militerm.Systems.Entity do use Militerm.ECS.System alias Militerm.Config alias Militerm.Components alias Militerm.Systems.MML alias Militerm.Systems.Entity.Controller require Logger @moduledoc """ Manages control of an entity -- managing events more than anything else. """ defscript id...
28.241784
95
0.588563
185e493646050e2a7213279dfada2fb11610f7b4
873
exs
Elixir
apps/app_with_brunch/config/config.exs
jschoch/umb
98e4ca8b883777c775d2b1115ae5116cc32570fe
[ "MIT" ]
null
null
null
apps/app_with_brunch/config/config.exs
jschoch/umb
98e4ca8b883777c775d2b1115ae5116cc32570fe
[ "MIT" ]
null
null
null
apps/app_with_brunch/config/config.exs
jschoch/umb
98e4ca8b883777c775d2b1115ae5116cc32570fe
[ "MIT" ]
null
null
null
# 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 :app_with_brunch, AppWithBrunch.Endpoint, url: [ho...
34.92
86
0.762887
185eb2aaba019d8089c9eea621af0464de851aea
2,095
ex
Elixir
elixir/lib/homework/transactions.ex
dosmond/DivvyHomeWork
80bbdc686c8d7c621e57becf51838b131dea43f0
[ "MIT" ]
null
null
null
elixir/lib/homework/transactions.ex
dosmond/DivvyHomeWork
80bbdc686c8d7c621e57becf51838b131dea43f0
[ "MIT" ]
6
2021-01-08T02:25:19.000Z
2022-02-27T11:13:52.000Z
elixir/lib/homework/transactions.ex
dosmond/DivvyHomeWork
80bbdc686c8d7c621e57becf51838b131dea43f0
[ "MIT" ]
null
null
null
defmodule Homework.Transactions do @moduledoc """ The Transactions context. """ import Ecto.Query, warn: false alias Homework.Repo alias Homework.Transactions.Transaction @doc """ Returns the list of transactions. ## Examples iex> list_transactions([]) [%Transaction{}, ...] """ d...
19.952381
71
0.644391
185ecdab46472315bef6a162ecc7235eb66578a0
3,622
ex
Elixir
lib/empty/accounts/user.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
lib/empty/accounts/user.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
lib/empty/accounts/user.ex
manojsamanta/empty-app-with-auth
e601a7c6ef1b4a992758117e6bf0922a5ce08f04
[ "MIT" ]
null
null
null
defmodule Empty.Accounts.User do use Ecto.Schema import Ecto.Changeset @derive {Inspect, except: [:password]} schema "users" do field :email, :string field :password, :string, virtual: true field :hashed_password, :string field :confirmed_at, :naive_datetime timestamps() end @doc """ ...
29.209677
112
0.684981
185eda387c9ac23d2222835baca1ccaec09035cc
269
ex
Elixir
alex_story+elixir/maze_jam/apps/generator_display/lib/generator_display.ex
NashFP/maze-jam
6896a0e09bd7fdc2e18688e067eff983d01cd6a5
[ "MIT" ]
null
null
null
alex_story+elixir/maze_jam/apps/generator_display/lib/generator_display.ex
NashFP/maze-jam
6896a0e09bd7fdc2e18688e067eff983d01cd6a5
[ "MIT" ]
null
null
null
alex_story+elixir/maze_jam/apps/generator_display/lib/generator_display.ex
NashFP/maze-jam
6896a0e09bd7fdc2e18688e067eff983d01cd6a5
[ "MIT" ]
null
null
null
defmodule GeneratorDisplay do @moduledoc """ GeneratorDisplay keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
26.9
66
0.769517
185f1d5912915d7afa6588bdc6aea414d1fe87fa
6,689
ex
Elixir
lib/ewebmachine/builder.resources.ex
awetzel/ewebmachine
64b7ed15aa10bee8b012c46383259c24a46a5309
[ "MIT" ]
66
2015-01-22T06:40:13.000Z
2017-04-19T09:16:32.000Z
lib/ewebmachine/builder.resources.ex
awetzel/ewebmachine
64b7ed15aa10bee8b012c46383259c24a46a5309
[ "MIT" ]
19
2015-01-22T12:12:46.000Z
2017-02-09T10:47:38.000Z
lib/ewebmachine/builder.resources.ex
awetzel/ewebmachine
64b7ed15aa10bee8b012c46383259c24a46a5309
[ "MIT" ]
10
2015-01-25T11:27:34.000Z
2016-10-03T12:56:11.000Z
defmodule Ewebmachine.Builder.Resources do @moduledoc ~S""" `use` this module will `use Plug.Builder` (so a plug pipeline described with the `plug module_or_function_plug` macro), but gives you a `:resource_match` local function plug which matches routes declared with the `resource/2` macro and execute the p...
34.658031
119
0.694872
185f22adb1e50b5ad09b72f62dfe0ad9e346022e
1,458
exs
Elixir
mix.exs
philosophers-stone/transform
1eb2de475c5734aa09d1e04ce75104bb074c78d9
[ "Apache-2.0" ]
29
2015-11-23T21:33:02.000Z
2022-02-16T22:36:12.000Z
mix.exs
philosophers-stone/transform
1eb2de475c5734aa09d1e04ce75104bb074c78d9
[ "Apache-2.0" ]
1
2015-11-26T16:26:35.000Z
2015-11-27T18:23:08.000Z
mix.exs
philosophers-stone/transform
1eb2de475c5734aa09d1e04ce75104bb074c78d9
[ "Apache-2.0" ]
3
2015-11-26T04:19:29.000Z
2019-08-19T16:42:32.000Z
defmodule PhStTransform.Mixfile do use Mix.Project def project do [app: :phst_transform, version: "1.0.2", elixir: "~> 1.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), # Ex_doc docs: [logo: "examples/phst_svg.png", extras: ["...
23.901639
85
0.591221
185f2f1feea40754c21569e5fcd994a6c51bedf3
4,360
ex
Elixir
lib/exp_web/controllers/user_auth.ex
karloescota/exp
77267b80febf6d738b3ac6b6203795feef01e666
[ "MIT" ]
null
null
null
lib/exp_web/controllers/user_auth.ex
karloescota/exp
77267b80febf6d738b3ac6b6203795feef01e666
[ "MIT" ]
null
null
null
lib/exp_web/controllers/user_auth.ex
karloescota/exp
77267b80febf6d738b3ac6b6203795feef01e666
[ "MIT" ]
null
null
null
defmodule ExpWeb.UserAuth do import Plug.Conn import Phoenix.Controller alias Exp.Accounts alias ExpWeb.Router.Helpers, as: Routes # Make the remember me cookie valid for 60 days. # If you want bump or reduce this value, also change # the token expiry itself in UserToken. @max_age 60 * 60 * 24 * 60 ...
29.066667
81
0.693349
185f5365177b800d95ca96a1014d2038d99792e5
1,568
exs
Elixir
apps/site/test/site_web/views/helpers/pagination_helpers_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/test/site_web/views/helpers/pagination_helpers_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/test/site_web/views/helpers/pagination_helpers_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule SiteWeb.PaginationHelpersTest do use ExUnit.Case, async: true import SiteWeb.PaginationHelpers @pagination %Site.ResponsivePagination{ current: 5, mobile_range: [4, 5, 6], next: 6, prefix: [1, "…"], previous: 4, range: [3, 4, 5, 6, 7], suffix: ["…", 10] } @link_context ...
28.509091
92
0.612883
185f5cf75126b41a2ceb8790a887f6a5980181e8
2,503
ex
Elixir
file_sharing_server/apps/client/lib/client.ex
rumen-cholakov/file-sharing-server
b1672b72e783e055a053451f3e398dcf6c03f13e
[ "MIT" ]
null
null
null
file_sharing_server/apps/client/lib/client.ex
rumen-cholakov/file-sharing-server
b1672b72e783e055a053451f3e398dcf6c03f13e
[ "MIT" ]
null
null
null
file_sharing_server/apps/client/lib/client.ex
rumen-cholakov/file-sharing-server
b1672b72e783e055a053451f3e398dcf6c03f13e
[ "MIT" ]
null
null
null
defmodule Client do use GenServer @default_key '' @default_time 0 # @default_dir Path.expand("~/target") def start_link(init_args) do # you may want to register your server with `name: __MODULE__` # as a third argument to `start_link` GenServer.start_link(__MODULE__, init_args, name: __MODULE__...
25.540816
101
0.610068
185f80af2376074bb156a1e34275a72389b25254
268
exs
Elixir
test/exrush_web/views/layout_view_test.exs
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
test/exrush_web/views/layout_view_test.exs
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
test/exrush_web/views/layout_view_test.exs
xaviRodri/exrush
43dfa9e1364c87d77b16739c03215d3ba2abb5bc
[ "MIT" ]
null
null
null
defmodule ExrushWeb.LayoutViewTest do use ExrushWeb.ConnCase, async: true # When testing helpers, you may want to import Phoenix.HTML and # use functions such as safe_to_string() to convert the helper # result into an HTML string. # import Phoenix.HTML end
29.777778
65
0.764925
185fb4792b1389afd895bf4c6efbf3e68c8a386c
783
ex
Elixir
lib/techtree_web/controllers/session_controller.ex
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
2
2018-10-26T06:06:42.000Z
2020-02-16T15:01:42.000Z
lib/techtree_web/controllers/session_controller.ex
kenkeiras/TechTree
26c8ca59855002a88bf15eb0b64a6c788f438ec8
[ "WTFPL" ]
108
2018-10-25T10:30:33.000Z
2021-07-28T04:18:03.000Z
lib/techtree_web/controllers/session_controller.ex
kenkeiras/TechTree
26c8ca59855002a88bf15eb0b64a6c788f438ec8
[ "WTFPL" ]
null
null
null
defmodule TechtreeWeb.SessionController do use TechtreeWeb, :controller alias Techtree.Accounts def new(conn, _) do render(conn, "new.html") end def create(conn, %{"user" => %{"username" => username, "password" => password}}) do case Accounts.authenticate_by_password(username, password) do {:...
26.1
85
0.605364
185fbac27db9135392e2fbc21df4d0f269d7eac0
522
ex
Elixir
apps/buzzcms/lib/buzzcms/schema/taxonomy.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
apps/buzzcms/lib/buzzcms/schema/taxonomy.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
41
2020-02-12T07:53:14.000Z
2020-03-30T02:18:14.000Z
apps/buzzcms/lib/buzzcms/schema/taxonomy.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
defmodule Buzzcms.Schema.Taxonomy do use Ecto.Schema import Ecto.Changeset @required_fields [:code, :display_name] @optional_fields [] schema "taxonomy" do field :code, :string field :display_name, :string many_to_many :entry_types, Buzzcms.Schema.EntryType, join_through: "entry_type_taxonomy" ...
24.857143
92
0.716475
185fe80d23e9f56661095bffff17e9c3b90cc05c
10,386
exs
Elixir
test/calendar_test.exs
mainframe2/postgrex
7c3312f69b6b787e7d1831eedff32be36c3ee953
[ "Apache-2.0" ]
null
null
null
test/calendar_test.exs
mainframe2/postgrex
7c3312f69b6b787e7d1831eedff32be36c3ee953
[ "Apache-2.0" ]
null
null
null
test/calendar_test.exs
mainframe2/postgrex
7c3312f69b6b787e7d1831eedff32be36c3ee953
[ "Apache-2.0" ]
null
null
null
defmodule CalendarTest do use ExUnit.Case, async: true import Postgrex.TestHelper alias Postgrex, as: P setup do opts = [database: "postgrex_test", backoff_type: :stop] {:ok, pid} = P.start_link(opts) {:ok, [pid: pid]} end test "decode time", context do assert [[~T[00:00:00.000000]]] = que...
46.366071
161
0.558059
185fff773ddeac2fd0b8eb23e185254c853942de
1,838
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/tcp_socket_action.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/tcp_socket_action.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/tcp_socket_action.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "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...
36.76
218
0.735038
186000eae888368dcf60ebbe39475c6383cb7ddf
688
exs
Elixir
apps/definition/mix.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/definition/mix.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/definition/mix.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
defmodule Definition.MixProject do use Mix.Project def project do [ app: :definition, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.9", start_permanent: Mix...
20.235294
65
0.497093
18604ef1a7667af8b3ce76d19a8c101ccdc2dcfd
716
ex
Elixir
lib/graphql_with_absinthe_on_phoenix/graphql/schema.ex
wbotelhos/graphql-with-absinthe-on-phoenix
f831d4c78bbba821ef2dd6deee5e3640aff864a5
[ "MIT" ]
1
2021-08-03T20:30:49.000Z
2021-08-03T20:30:49.000Z
lib/graphql_with_absinthe_on_phoenix/graphql/schema.ex
wbotelhos/graphql-with-absinthe-on-phoenix
f831d4c78bbba821ef2dd6deee5e3640aff864a5
[ "MIT" ]
null
null
null
lib/graphql_with_absinthe_on_phoenix/graphql/schema.ex
wbotelhos/graphql-with-absinthe-on-phoenix
f831d4c78bbba821ef2dd6deee5e3640aff864a5
[ "MIT" ]
null
null
null
defmodule GraphqlWithAbsintheOnPhoenix.GraphQL.Schema do use Absinthe.Schema alias GraphqlWithAbsintheOnPhoenix.Documents alias GraphqlWithAbsintheOnPhoenix.GraphQL import_types(GraphQL.Mutations) import_types(GraphQL.Queries) import_types(GraphQL.Types) query do import_fields(:book_queries) im...
21.69697
80
0.755587
1860561b9bce44d7cab00259bbbe96301a271959
70,962
ex
Elixir
lib/aws/generated/route53.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/route53.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/route53.ex
smanolloff/aws-elixir
c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.Route53 do @moduledoc """ Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service. """ @doc """ Associates an Amazon VPC with a private hosted zone. ...
39.227197
250
0.711353
1860acc61052b4612081d81ef48cc759f88c4d98
1,453
ex
Elixir
lib/dialyxir/warnings/guard_fail.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
1,455
2015-01-03T02:53:19.000Z
2022-03-12T00:31:25.000Z
lib/dialyxir/warnings/guard_fail.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
330
2015-05-14T13:53:13.000Z
2022-03-29T17:12:23.000Z
lib/dialyxir/warnings/guard_fail.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
146
2015-02-03T18:19:43.000Z
2022-03-07T10:05:20.000Z
defmodule Dialyxir.Warnings.GuardFail do @moduledoc """ The function guard either presents an impossible guard or the only calls will never succeed against the guards. ## Example defmodule Example do def ok() do ok(0) end defp ok(n) when n > 1 do :ok ...
18.87013
68
0.620096
1860bd1069545a9ff41f9f718c6a7b3bd1060307
2,085
ex
Elixir
clients/calendar/lib/google_api/calendar/v3/model/calendar_notification.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/model/calendar_notification.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/model/calendar_notification.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
45.326087
506
0.744844
1860c791a335734cc1599f6bca2fc8ebcc14a310
136
exs
Elixir
test/ueber_identity_test.exs
jnylen/ueberauth_identity
9d32c2cb9d3920192ce82e33ea4baf54de99fddb
[ "MIT" ]
79
2015-11-18T23:30:42.000Z
2022-02-27T19:52:33.000Z
test/ueber_identity_test.exs
jnylen/ueberauth_identity
9d32c2cb9d3920192ce82e33ea4baf54de99fddb
[ "MIT" ]
25
2015-11-18T17:34:00.000Z
2021-07-25T02:02:32.000Z
test/ueber_identity_test.exs
jnylen/ueberauth_identity
9d32c2cb9d3920192ce82e33ea4baf54de99fddb
[ "MIT" ]
25
2015-11-18T15:52:18.000Z
2021-07-08T19:27:42.000Z
defmodule UeberauthIdentityTest do use ExUnit.Case doctest UeberauthIdentity test "the truth" do assert 1 + 1 == 2 end end
15.111111
34
0.720588
1860db5d159c8e394d0a671e07a40fb3d63f7762
1,043
exs
Elixir
config/dev.exs
code-mancers/exray
f37a089c98ae3117063865c8d2583fec6d112af5
[ "MIT" ]
1
2016-03-20T05:30:28.000Z
2016-03-20T05:30:28.000Z
config/dev.exs
code-mancers/exray
f37a089c98ae3117063865c8d2583fec6d112af5
[ "MIT" ]
null
null
null
config/dev.exs
code-mancers/exray
f37a089c98ae3117063865c8d2583fec6d112af5
[ "MIT" ]
null
null
null
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 :exray, Exray.Endpoint, http: [port: 4000], ...
30.676471
74
0.703739
1860e644f65c0e19b22730985a394deb9b5ede78
2,295
ex
Elixir
lib/clickhousex/codec/json.ex
arikai/clickhousex
bbf65ec2386ee2ec9ea99f4cff6efa1f34c92969
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/codec/json.ex
arikai/clickhousex
bbf65ec2386ee2ec9ea99f4cff6efa1f34c92969
[ "Apache-2.0" ]
null
null
null
lib/clickhousex/codec/json.ex
arikai/clickhousex
bbf65ec2386ee2ec9ea99f4cff6efa1f34c92969
[ "Apache-2.0" ]
2
2019-12-10T14:12:40.000Z
2020-03-23T13:32:18.000Z
defmodule Clickhousex.Codec.JSON do @behaviour Clickhousex.Codec defdelegate encode(query, replacements, params), to: Clickhousex.Codec.Values @impl Clickhousex.Codec def request_format do "Values" end @impl Clickhousex.Codec def response_format do "JSONCompact" end @impl Clickhousex.Codec...
22.5
79
0.605229
18613071a69cbf8219ed7b90fdd3d249f4ba7a18
1,365
ex
Elixir
lib/mix/lib/mix/tasks/clean.ex
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/clean.ex
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/clean.ex
gabrielelana/elixir
7e78113f925d438568b7efa8eaded5ae43dce4b1
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Clean do use Mix.Task @shortdoc "Delete generated application files" @recursive true @moduledoc """ Delete generated application files. This command deletes all build artifacts for the current project. Dependencies' build files are cleaned if the `--deps` option is given. By defa...
25.754717
78
0.630037
186153a65c941e89ff770a9b8b94c7ea66574987
11,869
ex
Elixir
lib/oli_web/live/history/revision_history.ex
jrissler/oli-torus
747f9e4360163d76a6ca5daee3aab1feab0c99b1
[ "MIT" ]
1
2022-03-17T20:35:47.000Z
2022-03-17T20:35:47.000Z
lib/oli_web/live/history/revision_history.ex
jrissler/oli-torus
747f9e4360163d76a6ca5daee3aab1feab0c99b1
[ "MIT" ]
9
2021-11-02T16:52:09.000Z
2022-03-25T15:14:01.000Z
lib/oli_web/live/history/revision_history.ex
marc-hughes/oli-torus-1
aa3c9bb2d91b678a365be839761eaf86c60ee35c
[ "MIT" ]
null
null
null
defmodule OliWeb.RevisionHistory do use Surface.LiveView use OliWeb.Common.Modal import Ecto.Query, warn: false alias Oli.Repo alias Oli.Resources.Revision alias Oli.Resources alias Oli.Publishing alias Oli.Authoring.Course alias Oli.Accounts.Author alias OliWeb.RevisionHistory.Details alias Oli...
30.201018
110
0.666948
1861721160bf22573feaf999490ce452ea5a9e46
1,102
ex
Elixir
lib/simple_pool/v2/cluster_management_framework/structures/entities/cluster/service/status.ex
noizu/simple_pool
59251a3391ff82152a31626072955b95f83c18ee
[ "MIT" ]
12
2018-07-03T10:14:54.000Z
2020-04-07T02:04:39.000Z
lib/simple_pool/v2/cluster_management_framework/structures/entities/cluster/service/status.ex
noizu/simple_pool
59251a3391ff82152a31626072955b95f83c18ee
[ "MIT" ]
1
2018-12-02T06:05:59.000Z
2018-12-02T06:05:59.000Z
lib/simple_pool/v2/cluster_management_framework/structures/entities/cluster/service/status.ex
noizu/simple_pool
59251a3391ff82152a31626072955b95f83c18ee
[ "MIT" ]
2
2018-03-05T12:01:51.000Z
2018-07-03T10:15:04.000Z
#------------------------------------------------------------------------------- # Author: Keith Brings # Copyright (C) 2020 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.SimplePool.V2.ClusterManagement.Cluster.Service.Statu...
31.485714
84
0.46824
1861993cd9d22d386f42f19d24bb001a7d28083a
553
exs
Elixir
test/views/error_view_test.exs
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
ankurp/chat
a9fced84898c9d47a17ea14fda6ed78e57ef04e8
[ "MIT" ]
null
null
null
defmodule Chat.ErrorViewTest do use Chat.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(Chat.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do asser...
25.136364
66
0.667269
18619d800a8207cc2b68619977a8834312d4e180
187
ex
Elixir
lib/markright/finalizer.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
15
2017-01-12T19:24:35.000Z
2021-04-27T14:44:08.000Z
lib/markright/finalizer.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
8
2017-02-13T17:01:35.000Z
2021-07-27T16:20:52.000Z
lib/markright/finalizer.ex
betrybe/markright
1b81a2d9931b70645f9eff70d2605f0e9a58f396
[ "MIT" ]
1
2021-04-24T18:40:11.000Z
2021-04-24T18:40:11.000Z
defmodule Markright.Finalizer do @moduledoc """ The default behaviour for all the finalizers. """ @callback finalize(Markright.Continuation.t()) :: Markright.Continuation.t() end
26.714286
78
0.743316
1861ae629e7c3376e0ef4d44a6abc3d638fb70c7
763
ex
Elixir
lib/librecov_web/live/live_helpers.ex
yknx4/opencov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
8
2021-08-22T10:37:57.000Z
2022-01-10T11:27:06.000Z
lib/librecov_web/live/live_helpers.ex
yknx4/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
109
2021-08-20T04:08:04.000Z
2022-01-03T07:39:18.000Z
lib/librecov_web/live/live_helpers.ex
Librecov/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
null
null
null
defmodule Librecov.LiveHelpers do import Phoenix.LiveView.Helpers @doc """ Renders a component inside the `Librecov.ModalComponent` component. The rendered modal receives a `:return_to` option to properly update the URL when the modal is closed. ## Examples <%= live_modal @socket, Librecov.Reposit...
31.791667
80
0.710354
1861b2c8b3b889f4e6b1ae7fdb4f3ad11bc221cc
2,094
ex
Elixir
lib/cog/commands/relay_group/rename.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
lib/cog/commands/relay_group/rename.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
lib/cog/commands/relay_group/rename.ex
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Commands.RelayGroup.Rename do use Cog.Command.GenCommand.Base, bundle: Cog.Util.Misc.embedded_bundle, name: "relay-group-rename" require Cog.Commands.Helpers, as: Helpers alias Cog.Repository.RelayGroups alias Cog.Commands.RelayGroup @description "Renames relay groups" @arguments "<...
27.92
133
0.606017
1861ccb54e5ac95038ff3d768f39337a5a133d25
1,142
ex
Elixir
lib/exred_node_redis_daemon.ex
exredorg/exred_node_redis_daemon
1e2fbe5f59b9a2c1ca3108c802bcd5e47c43fd54
[ "MIT" ]
null
null
null
lib/exred_node_redis_daemon.ex
exredorg/exred_node_redis_daemon
1e2fbe5f59b9a2c1ca3108c802bcd5e47c43fd54
[ "MIT" ]
null
null
null
lib/exred_node_redis_daemon.ex
exredorg/exred_node_redis_daemon
1e2fbe5f59b9a2c1ca3108c802bcd5e47c43fd54
[ "MIT" ]
null
null
null
defmodule Exred.Node.RedisDaemon do @moduledoc """ This is a **daemon node**. It does not handle messages like a regular node. It is used for configuring and starting up a Redis connection pool that other nodes can use. """ @name "Redis Daemon" @category "daemon" @info @moduledoc @config %{ host:...
29.282051
79
0.656743
1861ef4e6fd0c62ef923b0b73e0c391f7c289470
4,530
exs
Elixir
topology.exs
bhaveshpoddar94/GossipProtocol
91e4c8223edd7fa2c2c7b7c2641f1d7f50d85643
[ "MIT" ]
null
null
null
topology.exs
bhaveshpoddar94/GossipProtocol
91e4c8223edd7fa2c2c7b7c2641f1d7f50d85643
[ "MIT" ]
null
null
null
topology.exs
bhaveshpoddar94/GossipProtocol
91e4c8223edd7fa2c2c7b7c2641f1d7f50d85643
[ "MIT" ]
null
null
null
defmodule Topology do def create(type, actor_list) do case type do "full" -> FullNetwork.create(actor_list) "rand2D" -> Random.create(actor_list) "torus" -> Torus.create(actor_list) "line" -> Line.create(actor_list) "3D" -> ThreeD.create(actor_list) "impLine" -> I...
30
101
0.602649
1861fb05d0aa8060c33ccb3ef6b8472f9c719b4f
2,546
ex
Elixir
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/redirect.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/redirect.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/redirect.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...
36.898551
131
0.695994
18629fa3743c2fa99f665f9fcf027c52c6005eaf
1,899
ex
Elixir
lib/gor_project_web/endpoint.ex
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
2
2018-09-03T05:42:54.000Z
2018-09-18T05:48:17.000Z
lib/gor_project_web/endpoint.ex
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
2
2018-09-17T16:06:06.000Z
2018-09-24T18:06:19.000Z
lib/gor_project_web/endpoint.ex
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
1
2018-09-17T14:57:20.000Z
2018-09-17T14:57:20.000Z
defmodule GORprojectWeb.Endpoint do use Phoenix.Endpoint, otp_app: :gor_project socket("/socket", GORprojectWeb.UserSocket) # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. pl...
26.746479
95
0.680358
1862a6de1f97e75d0c5ee0f483bf65147042686a
67
ex
Elixir
lib/my_personal_web/views/page_view.ex
kadmohardy/MyPersonal
5b2b05ef8b2db57c99a8751e5ac381f01e9faba9
[ "MIT" ]
null
null
null
lib/my_personal_web/views/page_view.ex
kadmohardy/MyPersonal
5b2b05ef8b2db57c99a8751e5ac381f01e9faba9
[ "MIT" ]
null
null
null
lib/my_personal_web/views/page_view.ex
kadmohardy/MyPersonal
5b2b05ef8b2db57c99a8751e5ac381f01e9faba9
[ "MIT" ]
null
null
null
defmodule MyPersonalWeb.PageView do use MyPersonalWeb, :view end
16.75
35
0.820896
1862af32209c4f8a89457c21274ab18e271f7424
4,390
exs
Elixir
test/notifier/notifier_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
528
2019-12-08T01:51:54.000Z
2022-03-30T10:09:45.000Z
test/notifier/notifier_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
278
2019-12-04T15:25:06.000Z
2022-03-31T03:40:51.000Z
test/notifier/notifier_test.exs
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
53
2020-08-17T22:08:09.000Z
2022-03-24T01:58:59.000Z
defmodule Ash.Test.NotifierTest do @moduledoc false use ExUnit.Case, async: false defmodule Notifier do use Ash.Notifier def notify(notification) do send(Application.get_env(__MODULE__, :notifier_test_pid), {:notification, notification}) end end defmodule PostLink do use Ash.Resource,...
21.207729
94
0.605467
1862ce8a27e3fb812455be0fdc8b75de555d73e5
5,097
ex
Elixir
lib/scenic/component.ex
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
1
2020-09-20T14:07:49.000Z
2020-09-20T14:07:49.000Z
lib/scenic/component.ex
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
null
null
null
lib/scenic/component.ex
tiger808/scenic
77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 2018-03-26. # Copyright © 2018 Kry10 Industries. All rights reserved. # defmodule Scenic.Component do @moduledoc """ A Component is simply a Scene that is optimized to be referenced by another scene. All you need to do to create a Component is call use Scenic.Component ...
31.658385
100
0.644104
1862cfc1047af99f473c341aca047ce9295f657a
23,069
ex
Elixir
lib/ash/actions/read.ex
mhussa/ash
983a711837e4091d49a2ebff8010827ca2e8c889
[ "MIT" ]
null
null
null
lib/ash/actions/read.ex
mhussa/ash
983a711837e4091d49a2ebff8010827ca2e8c889
[ "MIT" ]
null
null
null
lib/ash/actions/read.ex
mhussa/ash
983a711837e4091d49a2ebff8010827ca2e8c889
[ "MIT" ]
null
null
null
defmodule Ash.Actions.Read do @moduledoc false require Logger require Ash.Query alias Ash.Actions.SideLoad alias Ash.Engine alias Ash.Engine.Request alias Ash.Error.Invalid.{LimitRequired, PaginationRequired} alias Ash.Error.Query.NoReadAction alias Ash.Filter alias Ash.Query.Aggregate def unpa...
30.195026
100
0.565044
1862d608cd640c0d961e310406742e90ff7603cd
697
ex
Elixir
apps/estuary/lib/estuary/application.ex
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
1
2021-04-05T19:17:18.000Z
2021-04-05T19:17:18.000Z
apps/estuary/lib/estuary/application.ex
msomji/smartcitiesdata
fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c
[ "Apache-2.0" ]
11
2020-01-07T15:43:42.000Z
2020-12-22T15:23:25.000Z
apps/estuary/lib/estuary/application.ex
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
null
null
null
defmodule Estuary.Application do @moduledoc false use Application def start(_type, _args) do [ EstuaryWeb.Endpoint, Estuary.Quantum.Scheduler ] |> config_init_server() |> List.flatten() |> Supervisor.start_link(strategy: :one_for_one, name: Estuary.Supervisor) end # Tell Phoe...
24.034483
78
0.69297
1862e45d1a9f1c12ee184ffa92d31bf66d665b04
10,137
ex
Elixir
lib/raxx/server.ex
NineFX/raxx
620f3ee0cb0925e6dad225c63e32379b647846a1
[ "Apache-2.0" ]
null
null
null
lib/raxx/server.ex
NineFX/raxx
620f3ee0cb0925e6dad225c63e32379b647846a1
[ "Apache-2.0" ]
null
null
null
lib/raxx/server.ex
NineFX/raxx
620f3ee0cb0925e6dad225c63e32379b647846a1
[ "Apache-2.0" ]
1
2021-01-12T09:57:58.000Z
2021-01-12T09:57:58.000Z
defmodule Raxx.Server do @moduledoc """ Interface to handle server side communication in an HTTP message exchange. If simple `request -> response` transformation is possible, try `Raxx.SimpleServer` *A module implementing `Raxx.Server` is run by an HTTP server. For example [Ace](https://github.com/CrowdHail...
31
112
0.664398
18633f503e18a01adf2c003f50fd63ce4b79f370
4,291
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/consent.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1beta1/model/consent.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/consent.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "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...
53.6375
638
0.712188
186370b07fc7bc0c5df8c2f5cd219496e86b9362
454
exs
Elixir
test/models/user_test.exs
orsai-project/orsai-be
31786c8f0c2e50b3586579c43400a84f83b0781d
[ "MIT" ]
null
null
null
test/models/user_test.exs
orsai-project/orsai-be
31786c8f0c2e50b3586579c43400a84f83b0781d
[ "MIT" ]
9
2017-06-18T00:45:12.000Z
2017-07-12T22:08:27.000Z
test/models/user_test.exs
orsai-project/orsai-be
31786c8f0c2e50b3586579c43400a84f83b0781d
[ "MIT" ]
null
null
null
defmodule Orsai.UserTest do use Orsai.ModelCase alias Orsai.User @valid_attrs %{email: "some content", name: "some content", password: "some content"} @invalid_attrs %{} test "changeset with valid attributes" do changeset = User.changeset(%User{}, @valid_attrs) assert changeset.valid? end test...
23.894737
87
0.713656