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
ac8640510837dfbeda4ad457f61985e53baac678
908
ex
Elixir
lib/mix/tasks/people/avatars.ex
yanokwa/changelog.com
88093bada9ff294159246b8200b3121cf41666f7
[ "MIT" ]
1
2021-03-14T21:12:49.000Z
2021-03-14T21:12:49.000Z
lib/mix/tasks/avatars.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
null
null
null
lib/mix/tasks/avatars.ex
joebew42/changelog.com
da4ec68d15f3a2b4b6c29033443d7e7afe814d18
[ "MIT" ]
1
2018-10-03T20:55:52.000Z
2018-10-03T20:55:52.000Z
defmodule Mix.Tasks.Changelog.Avatars do use Mix.Task alias Changelog.{Person, Repo} alias ChangelogWeb.{PersonView} @shortdoc "Downloads all people's avatars to a temp directory" def run(_) do Mix.Task.run "app.start" File.mkdir("avatars") for person <- Repo.all(Person) do try do ...
24.540541
70
0.606828
ac8676e0450ec537984cf79f3e008b9281be6c66
1,566
ex
Elixir
market_api/web/controllers/market_controller.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
market_api/web/controllers/market_controller.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
market_api/web/controllers/market_controller.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule MarketApi.MarketController do use MarketApi.Web, :controller alias MarketApi.Market def index(conn, _params) do markets = Repo.all(Market) render(conn, "index.json", markets: markets) end def create(conn, %{"market" => market_params}) do changeset = Market.changeset(%Market{}, market_...
27.964286
78
0.625798
ac868b0855bccd3fe0c879980bc5e349cf2ac03a
9,614
exs
Elixir
test/acceptance/ast/links_images/link_test.exs
RobertDober/earmark_parser
8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d
[ "Apache-2.0" ]
32
2020-07-01T17:25:08.000Z
2022-03-23T05:38:38.000Z
test/acceptance/ast/links_images/link_test.exs
RobertDober/earmark_parser
8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d
[ "Apache-2.0" ]
91
2020-06-30T09:08:00.000Z
2022-03-24T18:11:16.000Z
test/acceptance/ast/links_images/link_test.exs
RobertDober/earmark_parser
8a4e2bf47f4ce0d749df67288046f5a69e8f1f5d
[ "Apache-2.0" ]
22
2020-07-02T08:50:17.000Z
2022-02-21T08:31:27.000Z
defmodule Acceptance.Ast.LinkImages.LinkTest do use ExUnit.Case, async: true import Support.Helpers, only: [as_ast: 1, as_ast: 2, parse_html: 1] import EarmarkAstDsl describe "Link reference definitions" do test "link with title" do markdown = "[foo]: /url \"title\"\n\n[foo]\n" html = "<p><a hr...
30.814103
133
0.548159
ac86a8520b946e8130a3357dba97666111c22f5b
514
ex
Elixir
address_book/lib/contact.ex
QuirkOo/secret-elixir
ff707ecc34c84b3e1e32010d0d7f23ccacf486cc
[ "MIT" ]
1
2018-05-16T16:54:31.000Z
2018-05-16T16:54:31.000Z
address_book/lib/contact.ex
QuirkOo/secret-elixir
ff707ecc34c84b3e1e32010d0d7f23ccacf486cc
[ "MIT" ]
null
null
null
address_book/lib/contact.ex
QuirkOo/secret-elixir
ff707ecc34c84b3e1e32010d0d7f23ccacf486cc
[ "MIT" ]
null
null
null
defmodule AddressBook.Contact do defstruct phones: HashSet.new, emails: HashSet.new def updatePhones(c, phone) do %AddressBook.Contact{c | phones: HashSet.put(c.phones, phone)} end def updateEmails(c, email) do %AddressBook.Contact{c | emails: HashSet.put(c.emails, email)} end def new() do %AddressBook.C...
20.56
65
0.7393
ac86bb6527c1e25bdaf6af59587b56d9a5cb81c8
654
ex
Elixir
apps/tai/lib/tai/trading/order_response.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/lib/tai/trading/order_response.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/lib/tai/trading/order_response.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.Trading.OrderResponse do @moduledoc """ Return from venue adapters when creating or canceling an order """ @type t :: %Tai.Trading.OrderResponse{ id: String.t(), status: atom, time_in_force: atom, original_size: Decimal.t(), leaves_qty: Decimal.t(...
19.818182
64
0.582569
ac86bfda18c7dfb1af44e49007c6183711db3d74
605
ex
Elixir
lib/bunny.ex
efcasado/bunny
7475711e1cb6c633c818412ebf0a62ad36c6baa7
[ "MIT", "Unlicense" ]
null
null
null
lib/bunny.ex
efcasado/bunny
7475711e1cb6c633c818412ebf0a62ad36c6baa7
[ "MIT", "Unlicense" ]
null
null
null
lib/bunny.ex
efcasado/bunny
7475711e1cb6c633c818412ebf0a62ad36c6baa7
[ "MIT", "Unlicense" ]
null
null
null
###======================================================================== ### File: bunny.ex ### ### ### Author(s): ### - Enrique Fernandez <efcasado@gmail.com> ### ### Copyright (c) 2016, Enrique Fernandez ###======================================================================== defmodule Bunny do ##== Preambl...
24.2
75
0.345455
ac86e825be3b75e60c258fa76bec0ad779096091
892
ex
Elixir
clients/bigtable_admin/lib/google_api/bigtable_admin/v2/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
clients/bigtable_admin/lib/google_api/bigtable_admin/v2/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
clients/bigtable_admin/lib/google_api/bigtable_admin/v2/metadata.ex
mopp/elixir-google-api
d496227d17600bccbdf8f6be9ad1b7e7219d7ec6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
33.037037
74
0.761211
ac87013c80a89c2577d648853b7ada078a9177de
763
ex
Elixir
lib/ibm_functions_base/request.ex
imahiro-t/ibm_functions_base
62de50050acbfb0667e46b766c5c51e8a1282ba6
[ "MIT" ]
1
2022-02-25T21:17:56.000Z
2022-02-25T21:17:56.000Z
lib/ibm_functions_base/request.ex
imahiro-t/ibm_functions_base
62de50050acbfb0667e46b766c5c51e8a1282ba6
[ "MIT" ]
null
null
null
lib/ibm_functions_base/request.ex
imahiro-t/ibm_functions_base
62de50050acbfb0667e46b766c5c51e8a1282ba6
[ "MIT" ]
null
null
null
defmodule IbmFunctionsBase.Request do @moduledoc """ A request for IBM Functions. ## properties - `:method` - Http method as an atom(`:get`, `:post`, etc.) - `:headers` - Http headers as map - `:body` - Http body as string - `:path` - Http body as string """ defstruct [ :method, :headers, ...
22.441176
76
0.587156
ac87505e807705537ad4670bd5a594aaa92ed6f9
83
exs
Elixir
test/tiny_color/parser_test.exs
lnr0626/tiny_color
5fe53063832414dfa62632217d834b4a5815136f
[ "MIT" ]
null
null
null
test/tiny_color/parser_test.exs
lnr0626/tiny_color
5fe53063832414dfa62632217d834b4a5815136f
[ "MIT" ]
null
null
null
test/tiny_color/parser_test.exs
lnr0626/tiny_color
5fe53063832414dfa62632217d834b4a5815136f
[ "MIT" ]
null
null
null
defmodule TinyColor.ParserTest do use ExUnit.Case doctest TinyColor.Parser end
16.6
33
0.819277
ac8757501219423c16cd71bd02aedbac42a393ed
406
ex
Elixir
lib/erlef_web/plugs/authz/able_to_post.ex
HarryET/website
8b3e7b2bcc46339afd6bbc4ef190bdd5b2eb0b9f
[ "Apache-2.0" ]
71
2019-07-02T18:06:15.000Z
2022-03-09T15:30:08.000Z
lib/erlef_web/plugs/authz/able_to_post.ex
HarryET/website
8b3e7b2bcc46339afd6bbc4ef190bdd5b2eb0b9f
[ "Apache-2.0" ]
157
2019-07-02T01:21:16.000Z
2022-03-30T16:08:12.000Z
lib/erlef_web/plugs/authz/able_to_post.ex
HarryET/website
8b3e7b2bcc46339afd6bbc4ef190bdd5b2eb0b9f
[ "Apache-2.0" ]
45
2019-07-04T05:51:11.000Z
2022-02-27T11:56:02.000Z
defmodule ErlefWeb.Plug.Authz.AbleToPost do @moduledoc false import Plug.Conn alias Erlef.Blog def init(opts), do: opts def call(conn, _opts) do case Blog.categories_allowed_to_post(conn.assigns.current_user) do [] -> conn |> Phoenix.Controller.redirect(to: "/") |> halt()...
18.454545
70
0.635468
ac8777f84b47cac15d0b53276e0f7e0ccd27ff5b
1,693
exs
Elixir
test/livebook/sessions_test.exs
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
1
2022-02-16T09:13:27.000Z
2022-02-16T09:13:27.000Z
test/livebook/sessions_test.exs
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
test/livebook/sessions_test.exs
doyobi/livebook
136d5039c42b406dd0b31aea188deb4fce3b1328
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.SessionsTest do use ExUnit.Case, async: true alias Livebook.Sessions describe "create_session/0" do test "starts a new session process under the sessions supervisor" do {:ok, session} = Sessions.create_session() assert has_child_with_pid?(Livebook.SessionSupervisor, session.pi...
32.557692
78
0.700532
ac87a60fd5fddc0277d0eca658127771747a32b0
2,043
exs
Elixir
test/helpers_test.exs
Un3qual/optimus_hash
ca02b0c1345445e5e63ac2dc632afd24708d4f44
[ "MIT" ]
3
2019-01-29T13:56:51.000Z
2021-08-18T07:41:14.000Z
test/helpers_test.exs
Un3qual/optimus_hash
ca02b0c1345445e5e63ac2dc632afd24708d4f44
[ "MIT" ]
1
2021-06-28T09:32:37.000Z
2021-07-19T17:42:57.000Z
test/helpers_test.exs
Un3qual/optimus_hash
ca02b0c1345445e5e63ac2dc632afd24708d4f44
[ "MIT" ]
2
2021-06-24T18:28:47.000Z
2021-09-18T08:00:45.000Z
defmodule HelperTest do alias OptimusHash.Helpers use ExUnit.Case test "is_prime?" do [ 104_395_301, 104_395_303, 122_949_823, 122_949_829, 141_650_939, 141_650_963, 15_485_863, 15_485_867, 160_481_183, 160_481_219, 179_424_673, 179_424...
18.241071
47
0.580519
ac87ae5d076e5131ad63bcab3b4ebb0bf90be914
992
ex
Elixir
lib/runner.ex
tkling/elixir-koans-solutions
e591d38de0c048c036008f32e521b681d87ff706
[ "MIT" ]
null
null
null
lib/runner.ex
tkling/elixir-koans-solutions
e591d38de0c048c036008f32e521b681d87ff706
[ "MIT" ]
null
null
null
lib/runner.ex
tkling/elixir-koans-solutions
e591d38de0c048c036008f32e521b681d87ff706
[ "MIT" ]
null
null
null
defmodule Runner do @modules [ Equalities, Strings, Sigils, Numbers, Atoms, Tuples, Lists, KeywordLists, Maps, MapSets, Structs, PatternMatching, Functions, Enums, Processes, Tasks, Agents, Protocols, ] def koan?(koan), do: Enum.member?(@mod...
18.716981
88
0.638105
ac87c36c60042753d014ebab4c45d06d5d5e8aa6
1,535
ex
Elixir
clients/firestore/lib/google_api/firestore/v1beta1/model/empty.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/firestore/lib/google_api/firestore/v1beta1/model/empty.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/firestore/lib/google_api/firestore/v1beta1/model/empty.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# 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.547619
345
0.758958
ac87d3e655df58e0e73a94c60412e727a8204925
23
ex
Elixir
lib/csvex.ex
martin-torhage/csvex
ddf01ca2a8d016654ecd8f0c12e995ec300ce21b
[ "MIT" ]
null
null
null
lib/csvex.ex
martin-torhage/csvex
ddf01ca2a8d016654ecd8f0c12e995ec300ce21b
[ "MIT" ]
null
null
null
lib/csvex.ex
martin-torhage/csvex
ddf01ca2a8d016654ecd8f0c12e995ec300ce21b
[ "MIT" ]
null
null
null
defmodule Csvex do end
7.666667
18
0.826087
ac87e1edcada3970487f9c5dbb54ba6357bb9979
3,210
ex
Elixir
lib/livebook/runtime/elixir_standalone.ex
rodrigues/livebook
9822735bcf0b5bffbbc2bd59a7b942e81276ffe3
[ "Apache-2.0" ]
null
null
null
lib/livebook/runtime/elixir_standalone.ex
rodrigues/livebook
9822735bcf0b5bffbbc2bd59a7b942e81276ffe3
[ "Apache-2.0" ]
null
null
null
lib/livebook/runtime/elixir_standalone.ex
rodrigues/livebook
9822735bcf0b5bffbbc2bd59a7b942e81276ffe3
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Runtime.ElixirStandalone do defstruct [:node, :server_pid] # A runtime backed by a standalone Elixir node managed by Livebook. # # Livebook is responsible for starting and terminating the node. # Most importantly we have to make sure the started node doesn't # stay in the system when the...
32.1
97
0.703427
ac87f53a3c7a54fbb32351e58ed813d59dc39fdc
1,291
ex
Elixir
lib/lx/cmd/help.ex
hertogp/lx
271ecbefa06bfb7947cd641e0a85cd410ac9f97c
[ "MIT" ]
null
null
null
lib/lx/cmd/help.ex
hertogp/lx
271ecbefa06bfb7947cd641e0a85cd410ac9f97c
[ "MIT" ]
null
null
null
lib/lx/cmd/help.ex
hertogp/lx
271ecbefa06bfb7947cd641e0a85cd410ac9f97c
[ "MIT" ]
null
null
null
defmodule Lx.Cmd.Help do @moduledoc """ Help on commands and then some! """ require Logger @doc """ run """ def run(argv) do Logger.info(argv) Logger.info("commands are: " <> (cmd_map() |> Map.keys() |> Enum.join(", "))) case argv do [] -> list_cmds() [cmd | _] -> usage(cmd) ...
19.268657
91
0.539117
ac8812a7044c545db5b548521e9e4a47da10b9f3
5,347
ex
Elixir
lib/serum/build.ex
igalic/Serum
352f80ebcc8ed160230e7775aac3590787c912c6
[ "MIT" ]
1
2021-08-03T11:16:36.000Z
2021-08-03T11:16:36.000Z
lib/serum/build.ex
igalic/Serum
352f80ebcc8ed160230e7775aac3590787c912c6
[ "MIT" ]
null
null
null
lib/serum/build.ex
igalic/Serum
352f80ebcc8ed160230e7775aac3590787c912c6
[ "MIT" ]
null
null
null
defmodule Serum.Build do @moduledoc """ A module for managing the overall project build procedure. """ import Serum.Util alias Serum.Build.FileEmitter alias Serum.Build.FileLoader alias Serum.Build.FileProcessor alias Serum.Build.FragmentGenerator alias Serum.Build.PageGenerator alias Serum.Plugin ...
28.441489
78
0.618104
ac8847340d4f489c8b1c284dc5a10489ad3ef9ca
1,834
exs
Elixir
mix.exs
daroca-eco-br/inventory
2250c3ed4147673e26f0db29199dd02adebcda8c
[ "MIT" ]
null
null
null
mix.exs
daroca-eco-br/inventory
2250c3ed4147673e26f0db29199dd02adebcda8c
[ "MIT" ]
null
null
null
mix.exs
daroca-eco-br/inventory
2250c3ed4147673e26f0db29199dd02adebcda8c
[ "MIT" ]
null
null
null
defmodule Inventory.MixProject do use Mix.Project def project do [ app: :inventory, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(),...
27.787879
84
0.581243
ac885211b61b9a7175a03eb32f92a779e6bcae67
1,646
exs
Elixir
mix.exs
omisego/ink
ecd9c5ea22e98e5a28fdea6b00199ef70b423f8b
[ "MIT" ]
null
null
null
mix.exs
omisego/ink
ecd9c5ea22e98e5a28fdea6b00199ef70b423f8b
[ "MIT" ]
null
null
null
mix.exs
omisego/ink
ecd9c5ea22e98e5a28fdea6b00199ef70b423f8b
[ "MIT" ]
null
null
null
defmodule Ink.Mixfile do use Mix.Project def project do [ app: :ink, version: "1.1.1", elixir: "~> 1.8", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps(), aliases: aliases(...
21.946667
81
0.555286
ac888f736c43c0c0828f419527135fffb723ea5f
2,738
exs
Elixir
test/pluggy_elixir/config_test.exs
Finbits/pluggy_elixir
2396e1d33f04b8a0d816fa283248d970792a436d
[ "Apache-2.0" ]
2
2021-04-25T12:26:10.000Z
2021-04-26T13:00:10.000Z
test/pluggy_elixir/config_test.exs
Finbits/pluggy_elixir
2396e1d33f04b8a0d816fa283248d970792a436d
[ "Apache-2.0" ]
11
2021-04-25T04:27:46.000Z
2021-06-29T15:01:26.000Z
test/pluggy_elixir/config_test.exs
brainnco/pluggy_elixir
2396e1d33f04b8a0d816fa283248d970792a436d
[ "Apache-2.0" ]
null
null
null
defmodule PluggyElixir.ConfigTest do use ExUnit.Case, async: true alias PluggyElixir.Config alias PluggyElixir.Config.{Adapter, Auth} describe "override/1" do test "when has a empty list to override return a %Config{} by config files" do config = Config.override([]) assert config == ...
31.113636
87
0.462381
ac88c4a892ed8f9a3ae6b7914399a25eb1f119c1
1,175
ex
Elixir
lib/bson/utils.ex
aenglisc/elixir-mongodb-driver
a8a72fbb8690f44ac349e0449616ac2cfbf50640
[ "Apache-2.0" ]
140
2019-04-10T09:23:53.000Z
2022-03-27T12:37:02.000Z
lib/bson/utils.ex
aenglisc/elixir-mongodb-driver
a8a72fbb8690f44ac349e0449616ac2cfbf50640
[ "Apache-2.0" ]
99
2019-04-11T07:46:45.000Z
2022-03-31T07:23:28.000Z
lib/bson/utils.ex
aenglisc/elixir-mongodb-driver
a8a72fbb8690f44ac349e0449616ac2cfbf50640
[ "Apache-2.0" ]
45
2019-07-15T07:06:21.000Z
2021-11-24T09:23:21.000Z
defmodule BSON.Utils do @moduledoc false defmacro __using__(_) do quote do import BSON.Utils import Mongo.BinaryUtils @type_float 0x01 @type_string 0x02 @type_document 0x03 @type_array 0x04 @type_binary 0x05 @type_undefined 0x06 @type_...
23.039216
68
0.622979
ac88d92ca1ccf27c9b4df3412c430264ff6079d9
1,306
ex
Elixir
elixir/todoapp/lib/todo/list.ex
scorphus/sparring
6e53d81f2db39df58561a7fd941d73090712ba52
[ "MIT" ]
2
2017-01-06T15:32:50.000Z
2020-04-16T20:56:02.000Z
elixir/todoapp/lib/todo/list.ex
scorphus/sparring
6e53d81f2db39df58561a7fd941d73090712ba52
[ "MIT" ]
null
null
null
elixir/todoapp/lib/todo/list.ex
scorphus/sparring
6e53d81f2db39df58561a7fd941d73090712ba52
[ "MIT" ]
null
null
null
defmodule Todo.List do defstruct auto_id: 1, entries: %{} def new(entries \\ []) do IO.puts("Creating a new ToDo list") Enum.reduce( entries, %Todo.List{}, &add_entry(&2, &1) ) end def size(todo_list) do map_size(todo_list.entries) end def add_entry(todo_list, entry) do ...
26.12
80
0.660031
ac8915f5153e4d616f0e27ec2557502e39a4b788
801
ex
Elixir
web/controllers/session_controller.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
5
2016-07-05T20:31:46.000Z
2021-03-20T20:11:48.000Z
web/controllers/session_controller.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
null
null
null
web/controllers/session_controller.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
1
2016-07-18T23:00:46.000Z
2016-07-18T23:00:46.000Z
defmodule Webmonitor.SessionController do use Webmonitor.Web, :controller def new(conn, _params) do conn |> render(user: User.empty_changeset) end def create(conn, %{"user" => user_params}) do case Webmonitor.AuthenticateUserAction.perform(user_params) do {:ok, user} -> conn ...
26.7
86
0.625468
ac89329a48fec91f2f38fd3d4070711580c7d4d0
15,249
exs
Elixir
installer/test/phx_new_test.exs
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
installer/test/phx_new_test.exs
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
installer/test/phx_new_test.exs
grigor-aramyan/phoenix
d377b2e8d90753f9ec02972532e20f6878da86ad
[ "MIT" ]
null
null
null
Code.require_file "mix_helper.exs", __DIR__ defmodule Mix.Tasks.Phx.NewTest do use ExUnit.Case, async: false import MixHelper import ExUnit.CaptureIO @app_name "phx_blog" setup do # The shell asks to install deps. # We will politely say not. send self(), {:mix_shell_input, :yes?, false} :ok...
41.663934
156
0.657486
ac899b4b6eac7fae76f8e522b3da4c8c3656f807
480
exs
Elixir
chop.exs
lebm/MyElixirTests
4221012296c913179cdda278290263bfc1141454
[ "Apache-2.0" ]
null
null
null
chop.exs
lebm/MyElixirTests
4221012296c913179cdda278290263bfc1141454
[ "Apache-2.0" ]
null
null
null
chop.exs
lebm/MyElixirTests
4221012296c913179cdda278290263bfc1141454
[ "Apache-2.0" ]
null
null
null
defmodule Chop do def guess(n, a..b) when is_integer(n) and n>0 and a>=0 and b>=0 and b>a do g(n, a..b, div(a+b,2)) end def guess(_, _), do: IO.puts("Uso: guess(positivo, range)") defp g(n, _.._, n), do: n defp g(n, a.._, x) when n<x do IO.puts "Is #{x}" g(n, a..(x-1), div(a...
24
78
0.485417
ac89b2135b4c03146d06c0d451125958a9a0a41b
1,241
ex
Elixir
lib/test/http_client.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:11.000Z
2020-08-27T18:43:11.000Z
lib/test/http_client.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
null
null
null
lib/test/http_client.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:21.000Z
2020-08-27T18:43:21.000Z
# Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved. defmodule Antikythera.Test.HttpClient do defmacro __using__(_) do quote do @default_base_url Antikythera.Test.Config.base_url() alias Antikythera.Httpc def get(path, headers \\ %{}, options \\ []) do Httpc.get!(base_url() ...
28.204545
66
0.579371
ac89c94c54ddef37a904ca16de72af4fe299681d
747
ex
Elixir
lib/queries/total_table_size.ex
szTheory/ecto_psql_extras
05a2315b68f6c65e9c1e1cd36a06dc20c1556022
[ "MIT" ]
null
null
null
lib/queries/total_table_size.ex
szTheory/ecto_psql_extras
05a2315b68f6c65e9c1e1cd36a06dc20c1556022
[ "MIT" ]
null
null
null
lib/queries/total_table_size.ex
szTheory/ecto_psql_extras
05a2315b68f6c65e9c1e1cd36a06dc20c1556022
[ "MIT" ]
null
null
null
defmodule EctoPSQLExtras.TotalTableSize do @behaviour EctoPSQLExtras def info do %{ title: "Size of the tables (including indexes), descending by size", order_by: [size: :desc], columns: [ %{name: :name, type: :string}, %{name: :size, type: :bytes} ] } end def q...
25.758621
74
0.627845
ac89cee27f9a141d70d9719e4779000689b8e255
820
ex
Elixir
lib/pixie/transport.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/transport.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/transport.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
defmodule Pixie.Transport do import Pixie.Utils.String def start_link transport_name, client_id do transport_name |> module_from_name |> apply(:start_link, [client_id]) end def advice transport, advice do GenServer.call transport, {:advice, advice} end def connect transport, messages ...
21.025641
69
0.687805
ac89d029430fa9eb129a7d25e0060b7648b29e9c
51,440
ex
Elixir
lib/elixir/lib/macro.ex
irisTa56/elixir
0a953d75fb2cbdc6f3d33040aa60738d85512a1f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/macro.ex
irisTa56/elixir
0a953d75fb2cbdc6f3d33040aa60738d85512a1f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/macro.ex
irisTa56/elixir
0a953d75fb2cbdc6f3d33040aa60738d85512a1f
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [to_string: 1] defmodule Macro do @moduledoc ~S""" Macros are compile-time constructs that are invoked with Elixir's AST as input and a superset of Elixir's AST as output. Let's see a simple example that shows the difference between functions and macros: defmodule Example do ...
30.969296
103
0.616796
ac89f231b499f1dcb0aaabe0c75001ad682ed100
1,222
exs
Elixir
mix.exs
kwrooijen/bittrex
05974c96d6d406e716e726aa636ccc20434d2463
[ "MIT" ]
null
null
null
mix.exs
kwrooijen/bittrex
05974c96d6d406e716e726aa636ccc20434d2463
[ "MIT" ]
null
null
null
mix.exs
kwrooijen/bittrex
05974c96d6d406e716e726aa636ccc20434d2463
[ "MIT" ]
null
null
null
defmodule Bittrex.Mixfile do use Mix.Project @name :bittrex @version "0.5.3" @elixir_version "~> 1.5" @description """ Client for Bittrex (https://bittrex.com) """ @source_url "https://github.com/straw-hat-team/bittrex" def project do [ name: "Bittrex", description: @description, ...
17.970588
64
0.516367
ac8a49b042d36eeed6879c89535f6562d2dfeb37
708
exs
Elixir
01/day_1.exs
ericsolomon/aoc_2017
2a1b35f7b4f96f29a5ba3f45bcc08dccbe59b027
[ "MIT" ]
null
null
null
01/day_1.exs
ericsolomon/aoc_2017
2a1b35f7b4f96f29a5ba3f45bcc08dccbe59b027
[ "MIT" ]
null
null
null
01/day_1.exs
ericsolomon/aoc_2017
2a1b35f7b4f96f29a5ba3f45bcc08dccbe59b027
[ "MIT" ]
null
null
null
defmodule Part1 do def run() do input = File.read!("input.txt") |> String.trim() |> String.graphemes() solve(input ++ [hd(input)], 0) end defp solve([], acc), do: acc defp solve([x, x | tail], acc), do: solve([x | tail], String.to_integer(x) + acc) defp solve([_ | tail], acc), do: solve(tail, acc) en...
32.181818
95
0.605932
ac8ad4519d0ea6808f34daa4b0461b1eaf76c5d2
269
ex
Elixir
lib/banned_book_report.ex
LannyBose/banned-book-report
38de7d6399609c104f4821dc06672e8f583ecaed
[ "MIT" ]
null
null
null
lib/banned_book_report.ex
LannyBose/banned-book-report
38de7d6399609c104f4821dc06672e8f583ecaed
[ "MIT" ]
null
null
null
lib/banned_book_report.ex
LannyBose/banned-book-report
38de7d6399609c104f4821dc06672e8f583ecaed
[ "MIT" ]
null
null
null
defmodule BannedBookReport do @moduledoc """ BannedBookReport 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
ac8b240092e318d11306f05078947eb8067be361
2,164
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/target_http_proxy_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/target_http_proxy_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/target_http_proxy_list_warning.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...
40.074074
194
0.722736
ac8b62887d63f06e856845a0974aaf12d571a3c0
5,921
exs
Elixir
test/epicenter_web/live_components/contact_investigation_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_components/contact_investigation_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_components/contact_investigation_test.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule EpicenterWeb.ContactInvestigationTest do use EpicenterWeb.ConnCase, async: true import EpicenterWeb.LiveComponent.Helpers import Phoenix.LiveViewTest alias Epicenter.Accounts alias Epicenter.Cases alias Epicenter.ContactInvestigations alias Epicenter.Test alias EpicenterWeb.Test.Components ...
34.625731
151
0.67877
ac8ba599074f3e1350d7d87f1104f2be6cf79d13
723
ex
Elixir
lib/elixero/core_api/models/tax_rates/tax_rate/tax_component.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
84
2016-11-09T01:15:17.000Z
2022-01-06T02:55:35.000Z
lib/elixero/core_api/models/tax_rates/tax_rate/tax_component.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
14
2017-03-10T04:16:07.000Z
2021-11-10T16:39:19.000Z
lib/elixero/core_api/models/tax_rates/tax_rate/tax_component.ex
philals/elixero
fd75fe4a6f0a93b1d2ff94adbb307d20f014d458
[ "MIT" ]
18
2017-03-11T21:12:15.000Z
2022-02-22T20:07:10.000Z
defmodule EliXero.CoreApi.Models.TaxRates.TaxRate.TaxComponent do use Ecto.Schema import Ecto.Changeset @derive {Poison.Encoder, except: [:__meta__, :id]} schema "taxcomponents" do field :Name, :string field :Rate, :string field :IsCompound, :boolean embeds_ma...
32.863636
75
0.650069
ac8ba930cfd8862a8649d8e608880bb155aeb595
1,494
ex
Elixir
lib/termDirectory_web/views/error_helpers.ex
nliechti/termDirectory
267b3025c14e26575c7a9483692e94a7bf29e5fe
[ "MIT" ]
1
2019-03-15T15:40:24.000Z
2019-03-15T15:40:24.000Z
lib/termDirectory_web/views/error_helpers.ex
nliechti/termDirectory
267b3025c14e26575c7a9483692e94a7bf29e5fe
[ "MIT" ]
null
null
null
lib/termDirectory_web/views/error_helpers.ex
nliechti/termDirectory
267b3025c14e26575c7a9483692e94a7bf29e5fe
[ "MIT" ]
null
null
null
defmodule TermDirectoryWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn (error) -> cont...
33.2
82
0.674699
ac8bdd8370be94cc96f2d46c02f089564da628a3
939
ex
Elixir
lib/anchore_engine_api_server/model/policy_rule.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
null
null
null
lib/anchore_engine_api_server/model/policy_rule.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
null
null
null
lib/anchore_engine_api_server/model/policy_rule.ex
michaeljguarino/anchore-elixir-client
156a44f429ecb62433729a2b4c52de5dc0ef44d2
[ "MIT" ]
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 AnchoreEngineAPIServer.Model.PolicyRule do @moduledoc """ A rule that defines and decision value if the match is found true for a given image....
25.378378
90
0.70181
ac8c07947e0c81b786ebaaddf72e2ef75fb26ad6
361
exs
Elixir
priv/repo/seeds.exs
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "MIT" ]
3
2021-10-01T21:13:02.000Z
2021-11-05T22:25:55.000Z
priv/repo/seeds.exs
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
Ryandls/offer_hunters-backend
abedff162d8623e2fbaa4c5e4a518f1726bef436
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # OfferHunters.Repo.insert!(%OfferHunters.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as...
30.083333
61
0.714681
ac8c3eaa10bd02f615e7073fb1b4debd00ce0e5f
1,710
ex
Elixir
clients/gke_hub/lib/google_api/gke_hub/v1/model/anthos_vm_membership_spec.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/gke_hub/lib/google_api/gke_hub/v1/model/anthos_vm_membership_spec.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/gke_hub/lib/google_api/gke_hub/v1/model/anthos_vm_membership_spec.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...
36.382979
191
0.760234
ac8c5466cdee4473fceaab51848b1630191422ed
5,900
exs
Elixir
test/phoenix_events_live/events_test.exs
D-D-ing/phoenix-events-live
b68bdfdac1afc241574a0a8ffce25cf43bb71abe
[ "MIT" ]
null
null
null
test/phoenix_events_live/events_test.exs
D-D-ing/phoenix-events-live
b68bdfdac1afc241574a0a8ffce25cf43bb71abe
[ "MIT" ]
null
null
null
test/phoenix_events_live/events_test.exs
D-D-ing/phoenix-events-live
b68bdfdac1afc241574a0a8ffce25cf43bb71abe
[ "MIT" ]
null
null
null
defmodule PhoenixEventsLive.LiveEventsTest do use PhoenixEventsLive.DataCase alias PhoenixEventsLive.LiveEvents describe "live_events" do alias PhoenixEventsLive.LiveEvents.LiveEvent @valid_attrs %{description: "some description", name: "some name"} @update_attrs %{description: "some updated descri...
39.864865
112
0.714576
ac8c6018ac375e5ca656052d664ca0533baac603
721
ex
Elixir
server/lib/buff_server_web/gettext.ex
BlueHotDog/buff
0403f68867e950945a47cce2d7442974d12583b2
[ "MIT" ]
1
2020-03-18T17:29:32.000Z
2020-03-18T17:29:32.000Z
server/lib/buff_server_web/gettext.ex
BlueHotDog/buff
0403f68867e950945a47cce2d7442974d12583b2
[ "MIT" ]
26
2019-06-09T18:35:45.000Z
2020-07-30T17:05:58.000Z
server/lib/buff_server_web/gettext.ex
BlueHotDog/buff
0403f68867e950945a47cce2d7442974d12583b2
[ "MIT" ]
null
null
null
defmodule BuffServerWeb.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 BuffServerWeb.Gettext # Simple translation gettext("Her...
28.84
72
0.682386
ac8c776188e543f1d4706cda69cff1613bd8b39b
442
ex
Elixir
lib/kaur/secure.ex
fewlinesco/kaur
01f492ff6a7acfb4b65e5ffebb1acac5b9b86ed6
[ "MIT" ]
20
2017-09-06T14:46:27.000Z
2021-03-01T02:43:08.000Z
lib/kaur/secure.ex
fewlinesco/kaur
01f492ff6a7acfb4b65e5ffebb1acac5b9b86ed6
[ "MIT" ]
17
2017-09-06T15:13:14.000Z
2018-07-31T01:10:05.000Z
lib/kaur/secure.ex
fewlinesco/kaur
01f492ff6a7acfb4b65e5ffebb1acac5b9b86ed6
[ "MIT" ]
4
2017-10-06T17:37:50.000Z
2018-07-30T19:51:44.000Z
defmodule Kaur.Secure do @moduledoc """ Utilities to generate secure API Keys. """ @doc ~S""" Generates a formatted String of length 24, using base 64 encoding. ## Examples iex> Kaur.Secure.generate_api_key() "tEhdf77Pr8BDjRc9JMKGzQ==" """ @spec generate_api_key :: String.t() def generate_a...
19.217391
68
0.69457
ac8cbc2fe4db8e08d1067e324f1027532fd4bdff
1,136
ex
Elixir
lib/otto_api/network_request_exposures.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
null
null
null
lib/otto_api/network_request_exposures.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
1
2020-11-11T15:16:51.000Z
2020-11-11T20:53:34.000Z
lib/otto_api/network_request_exposures.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
null
null
null
defmodule OttoApi.NetworkExposureAggregation do @enforce_keys [:unique_clients, :count, :unique_desktop, :unique_mobile] defstruct @enforce_keys ++ [] alias OttoApi.Client @spec get( client :: %Client{}, account_id :: binary(), site_id :: binary(), incident_id :: binary...
24.170213
103
0.567782
ac8cd2d9132c1d74fe395446263549b616862127
1,091
ex
Elixir
lib/history_web/channels/user_socket.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
20
2021-08-06T01:09:48.000Z
2022-03-28T18:44:56.000Z
lib/history_web/channels/user_socket.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
13
2021-08-21T21:17:02.000Z
2022-03-27T06:33:51.000Z
lib/history_web/channels/user_socket.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
2
2021-09-23T11:31:59.000Z
2022-01-09T16:19:35.000Z
defmodule HistoryWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", HistoryWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channe...
30.305556
83
0.694775
ac8cd4ef3a03f92a3bd20edbd7aaa13802d8dd6c
843
exs
Elixir
config/dev.exs
LostKobrakai/hex-bobs-list
2b42111d70b8c3b19624496d3a3e6708d7139c29
[ "Apache-2.0" ]
8
2020-01-27T12:01:20.000Z
2020-12-14T20:30:44.000Z
config/dev.exs
LostKobrakai/hex-bobs-list
2b42111d70b8c3b19624496d3a3e6708d7139c29
[ "Apache-2.0" ]
7
2020-01-08T10:33:59.000Z
2021-05-27T12:47:41.000Z
config/dev.exs
LostKobrakai/hex-bobs-list
2b42111d70b8c3b19624496d3a3e6708d7139c29
[ "Apache-2.0" ]
null
null
null
import Config # Do not include metadata nor timestamps in development logs config :logger, :console, format: "[$level] $message\n" # Initialize plugs at runtime for faster development compilation config :phoenix, plug_init_mode: :runtime, stacktrace_depth: 20 config :bob_versions_web, BobVersionsWeb.Endpoint, ...
25.545455
65
0.652432
ac8d251dc6b804f1c471f065ba39f76b0fc2ab29
1,234
ex
Elixir
apps/admin_api/lib/admin_api/v1/controllers/user_auth_controller.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/controllers/user_auth_controller.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/controllers/user_auth_controller.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule AdminAPI.V1.UserAuthController do use AdminAPI, :controller import AdminAPI.V1.ErrorHandler alias EWalletDB.{AuthToken, User} @doc """ Generates a new authentication token for the provider_user_id and returns it. """ def login(conn, %{"id" => id}) when is_binary(id) and byte_size(id) > 0 ...
28.697674
87
0.679092
ac8d4cf56e7b16ab1e8c7603bbbd270ed76434fd
2,927
ex
Elixir
lib/idea_portal/supporting_documents.ex
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
5
2019-08-29T20:22:25.000Z
2020-04-01T17:40:48.000Z
lib/idea_portal/supporting_documents.ex
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
34
2019-03-06T17:53:29.000Z
2021-09-01T01:25:23.000Z
lib/idea_portal/supporting_documents.ex
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
2
2020-01-10T22:12:36.000Z
2021-01-22T04:37:45.000Z
defmodule IdeaPortal.SupportingDocuments do @moduledoc """ Context for managing supporting documents on a challenge """ alias IdeaPortal.SupportingDocuments.Document alias IdeaPortal.Repo alias Stein.Storage @doc """ Get the storage path for a document """ def document_path(key, extension), do: "/...
24.190083
92
0.640246
ac8d87427c7b3420496d6e418bf4583318ee7c66
1,639
ex
Elixir
lib/hound/helpers/window.ex
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
null
null
null
lib/hound/helpers/window.ex
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
null
null
null
lib/hound/helpers/window.ex
manukall/hound
5a96b714b5ae0b64f9cbee3ee4955d209895b92e
[ "MIT" ]
null
null
null
defmodule Hound.Helpers.Window do @doc "Get all window handles available to the session" @spec current_window_handle() :: String.t def current_window_handle do {:ok, driver_info} = Hound.driver_info driver_info[:driver_type].Window.current_window_handle end @doc "Get list of window handles available...
30.351852
82
0.733984
ac8de1a2fcb60c4b748dd592faa0b8c9c4efc3d8
60
ex
Elixir
lib/bokken_web/views/email_view.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
7
2020-10-19T14:06:46.000Z
2022-02-19T09:53:02.000Z
lib/bokken_web/views/email_view.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
5
2017-08-24T10:38:46.000Z
2021-05-26T16:48:22.000Z
lib/bokken_web/views/email_view.ex
coderdojobraga/bokken
df28522637315193e09ac1f3f79823361db0f2f9
[ "MIT" ]
2
2017-08-25T18:38:11.000Z
2021-07-15T00:57:33.000Z
defmodule BokkenWeb.EmailView do use BokkenWeb, :view end
15
32
0.8
ac8de9403ad1b71fa7ff102aa233f69aa034b206
17,381
ex
Elixir
clients/content/lib/google_api/content/v21/api/orderreturns.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/api/orderreturns.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/api/orderreturns.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "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...
47.489071
331
0.647776
ac8df78d4cd5d5618ebb04579d6fbe5cfdf0ef3a
1,556
ex
Elixir
lib/brex/rule/struct.ex
ktec/brex
e6cf1d6eb8bf9f3e17f6e7d92006f339a9f5d32e
[ "MIT" ]
null
null
null
lib/brex/rule/struct.ex
ktec/brex
e6cf1d6eb8bf9f3e17f6e7d92006f339a9f5d32e
[ "MIT" ]
null
null
null
lib/brex/rule/struct.ex
ktec/brex
e6cf1d6eb8bf9f3e17f6e7d92006f339a9f5d32e
[ "MIT" ]
null
null
null
defmodule Brex.Rule.Struct do @moduledoc """ Easily define your own struct based rules by *using* `#{inspect(__MODULE__)}`. It takes care of implementing `Brex.Rule.Evaluable` for you, as long as you define an `evaluate/2` function receiving your struct and the value to evaluate. # Example defmodul...
26.372881
102
0.65617
ac8e4b970b3a1bad825f424c94c1add15798bcb0
3,740
ex
Elixir
lib/transmog.ex
zpeters/transmog
026aafbb69a838e91c22e3a8582ab682567c72b8
[ "MIT" ]
null
null
null
lib/transmog.ex
zpeters/transmog
026aafbb69a838e91c22e3a8582ab682567c72b8
[ "MIT" ]
null
null
null
lib/transmog.ex
zpeters/transmog
026aafbb69a838e91c22e3a8582ab682567c72b8
[ "MIT" ]
null
null
null
defmodule Transmog do @moduledoc """ `Transmog` is a module which makes it easy to perform a deep rename of keys in a map or list of maps using a key mapping. The key mapping is a list of two tuples which are dot notation strings representing the path to update and the resulting name of the key after formatti...
34
83
0.643583
ac8e8f4036c8d301b6701ccb075f54e7362d2878
59
exs
Elixir
test/geom_test.exs
vladkosarev/elixir-etudes
3a4981d04f14f3cb5ae314a53540895a7dfa31f9
[ "MIT" ]
null
null
null
test/geom_test.exs
vladkosarev/elixir-etudes
3a4981d04f14f3cb5ae314a53540895a7dfa31f9
[ "MIT" ]
null
null
null
test/geom_test.exs
vladkosarev/elixir-etudes
3a4981d04f14f3cb5ae314a53540895a7dfa31f9
[ "MIT" ]
null
null
null
defmodule GeomTest do use ExUnit.Case doctest Geom end
11.8
21
0.779661
ac8ebe890f0477e38428158abc61921d1d2d43c9
3,266
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/endpoint.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/endpoint.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/endpoint.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...
58.321429
699
0.74556
ac8ee6e0016b1391858e8f61667b0922668ba022
33,645
ex
Elixir
lib/elixir/lib/code.ex
saydulk/elixir
17a0278a28a23d533bc012b5a61852fdb7b2fcc3
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/code.ex
saydulk/elixir
17a0278a28a23d533bc012b5a61852fdb7b2fcc3
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/code.ex
saydulk/elixir
17a0278a28a23d533bc012b5a61852fdb7b2fcc3
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
defmodule Code do @moduledoc """ Utilities for managing code compilation, code evaluation, and code loading. This module complements Erlang's [`:code` module](http://www.erlang.org/doc/man/code.html) to add behaviour which is specific to Elixir. Almost all of the functions in this module have global side eff...
32.792398
97
0.682598
ac8eea44cea943638f712f86a2bd7c617ab7732b
863
ex
Elixir
lib/structurez/net/tcp_socket.ex
hamiltop/structurez
350229d5b2d845795d552db3c1608b1985144113
[ "MIT" ]
12
2015-01-18T10:48:10.000Z
2020-09-28T01:59:57.000Z
lib/structurez/net/tcp_socket.ex
hamiltop/structurez
350229d5b2d845795d552db3c1608b1985144113
[ "MIT" ]
1
2015-01-15T10:05:37.000Z
2015-01-18T05:18:10.000Z
lib/structurez/net/tcp_socket.ex
hamiltop/structurez
350229d5b2d845795d552db3c1608b1985144113
[ "MIT" ]
null
null
null
defmodule TCPSocket do @moduledoc false defstruct socket: nil end defimpl Enumerable, for: TCPSocket do def reduce(stream, acc, reducer) do Stream.unfold( stream, fn (stream) -> case next(stream) do {:ok, value} -> {value, stream} _ -> nil end end ).(...
20.069767
46
0.588644
ac8ef01f885cee8d7b4607fb415eeea347b32483
909
exs
Elixir
lib/chex/move/smith/smith_parser.ex.exs
sprql/chex
f2c82e6b8db0377ed283597bdd6b7c33d6601099
[ "MIT" ]
10
2020-01-11T19:53:11.000Z
2021-06-07T14:41:24.000Z
lib/chex/move/smith/smith_parser.ex.exs
sprql/chex
f2c82e6b8db0377ed283597bdd6b7c33d6601099
[ "MIT" ]
45
2019-10-23T01:10:32.000Z
2022-03-23T17:34:22.000Z
lib/chex/move/smith/smith_parser.ex.exs
sprql/chex
f2c82e6b8db0377ed283597bdd6b7c33d6601099
[ "MIT" ]
5
2019-10-16T23:45:16.000Z
2022-02-06T16:00:58.000Z
defmodule Chex.Move.SmithParser do @moduledoc false # parsec:Chex.Move.SmithParser import NimbleParsec @files ?a..?h @ranks ?1..?8 @pieces 'rnbqk' file = utf8_char([@files]) |> label("file (a-h)") rank = utf8_char([@ranks]) |> label("rank (1-8)") square = concat(file, rank) |> label("square") mov...
28.40625
96
0.658966
ac8f1ad478c1ecaa57be48ff99b4676c44615675
693
ex
Elixir
lib/dialyxir/warnings/improper_list_construction.ex
groksrc/dialyxir
2968bea2c22e67571bfa939422fc370ea5ce5b4c
[ "Apache-2.0" ]
null
null
null
lib/dialyxir/warnings/improper_list_construction.ex
groksrc/dialyxir
2968bea2c22e67571bfa939422fc370ea5ce5b4c
[ "Apache-2.0" ]
null
null
null
lib/dialyxir/warnings/improper_list_construction.ex
groksrc/dialyxir
2968bea2c22e67571bfa939422fc370ea5ce5b4c
[ "Apache-2.0" ]
null
null
null
defmodule Dialyxir.Warnings.ImproperListConstruction do @behaviour Dialyxir.Warning @impl Dialyxir.Warning @spec warning() :: :improper_list_constr def warning(), do: :improper_list_constr @impl Dialyxir.Warning @spec format_short([String.t()]) :: String.t() def format_short(args), do: format_long(args)...
27.72
82
0.724387
ac8f211f49fbaf19c3dd7d07fd702a8449cab295
2,406
exs
Elixir
minimal_server/deps/plug/mix.exs
dalmarcogd/test_elixir_minimal_restfull
64ad5adbd6b9b39e70d4ed0a74615035d6ca246a
[ "Apache-2.0" ]
null
null
null
minimal_server/deps/plug/mix.exs
dalmarcogd/test_elixir_minimal_restfull
64ad5adbd6b9b39e70d4ed0a74615035d6ca246a
[ "Apache-2.0" ]
null
null
null
minimal_server/deps/plug/mix.exs
dalmarcogd/test_elixir_minimal_restfull
64ad5adbd6b9b39e70d4ed0a74615035d6ca246a
[ "Apache-2.0" ]
null
null
null
defmodule Plug.MixProject do use Mix.Project @version "1.8.3" @description "A specification and conveniences for composable modules between web applications" @xref_exclude [Plug.Cowboy, :telemetry] def project do [ app: :plug, version: @version, elixir: "~> 1.4", deps: deps(), ...
21.482143
97
0.54281
ac8f34e297dd525fc23a9af0067fa553f9bfda43
4,548
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/api.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/api.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/api.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...
48.382979
173
0.719657
ac8f52dab44e727d16c189f6f6cb386643938b15
46,449
exs
Elixir
lib/iex/test/iex/helpers_test.exs
LaudateCorpus1/elixir
b131f874640775fdf08707d5b2fbbc1e91722cd0
[ "Apache-2.0" ]
2
2020-08-11T16:19:53.000Z
2020-08-11T18:07:11.000Z
lib/iex/test/iex/helpers_test.exs
LaudateCorpus1/elixir
b131f874640775fdf08707d5b2fbbc1e91722cd0
[ "Apache-2.0" ]
1
2021-10-21T08:22:30.000Z
2021-10-21T08:22:30.000Z
lib/iex/test/iex/helpers_test.exs
LaudateCorpus1/elixir
b131f874640775fdf08707d5b2fbbc1e91722cd0
[ "Apache-2.0" ]
1
2020-12-18T19:20:35.000Z
2020-12-18T19:20:35.000Z
Code.require_file("../test_helper.exs", __DIR__) defmodule IEx.HelpersTest do use IEx.Case import IEx.Helpers @compile {:no_warn_undefined, [:sample, Sample, Sample2]} describe "whereami" do test "is disabled by default" do assert capture_iex("whereami()") =~ "Pry session is not currently enabled"...
30.498359
120
0.561175
ac8f8cf88cf1c89050e401996f7deebfc3b8c59b
304
ex
Elixir
apps/fz_http/test/support/mock_openid_connect.ex
amishakov/firezone
cd85b0847ac1792ca00aedab99fbf0f7a520f1a6
[ "Apache-2.0" ]
null
null
null
apps/fz_http/test/support/mock_openid_connect.ex
amishakov/firezone
cd85b0847ac1792ca00aedab99fbf0f7a520f1a6
[ "Apache-2.0" ]
1
2022-03-30T03:57:41.000Z
2022-03-30T03:57:41.000Z
apps/fz_http/test/support/mock_openid_connect.ex
amishakov/firezone
cd85b0847ac1792ca00aedab99fbf0f7a520f1a6
[ "Apache-2.0" ]
null
null
null
defmodule OpenIDConnect.MockBehaviour do @moduledoc """ Mock Behaviour for OpenIDConnect so that we can use Mox """ @callback authorization_uri(any, map) :: String.t() @callback fetch_tokens(any, map) :: {:ok, any} | {:error, any} @callback verify(any, map) :: {:ok, any} | {:error, any} end
33.777778
64
0.674342
ac8f96432514f0bb0e26572409d7f0d9a790f468
1,205
ex
Elixir
lib/export.ex
glebmikulko/export
ab14f770f48a104e25eecbb3dbb0b3da32a0650e
[ "MIT" ]
166
2016-03-25T11:54:49.000Z
2022-01-14T13:42:00.000Z
lib/export.ex
glebmikulko/export
ab14f770f48a104e25eecbb3dbb0b3da32a0650e
[ "MIT" ]
8
2017-04-13T20:30:02.000Z
2021-10-01T16:37:11.000Z
lib/export.ex
glebmikulko/export
ab14f770f48a104e25eecbb3dbb0b3da32a0650e
[ "MIT" ]
22
2016-07-07T22:13:54.000Z
2021-12-11T08:11:08.000Z
defmodule Export do @moduledoc """ [Erlport](http://erlport.org/) wrapper for Elixir. ## Installation Add export to your list of dependencies in `mix.exs`: ```elixir def deps do [ {:export, "~> 0.0.7"}, {:erlport, github: "hdima/erlport", manager: :make} ] end ``` ## Usage #...
20.423729
70
0.595021
ac8fa8f6cee212db52968c437306d735a80b38a3
310
ex
Elixir
lib/ash/query/function/is_nil.ex
MrFlorius/ash
247abbb8333d252da5440a58ddf4f1b7f184342f
[ "MIT" ]
528
2019-12-08T01:51:54.000Z
2022-03-30T10:09:45.000Z
lib/ash/query/function/is_nil.ex
MrFlorius/ash
247abbb8333d252da5440a58ddf4f1b7f184342f
[ "MIT" ]
278
2019-12-04T15:25:06.000Z
2022-03-31T03:40:51.000Z
lib/ash/query/function/is_nil.ex
MrFlorius/ash
247abbb8333d252da5440a58ddf4f1b7f184342f
[ "MIT" ]
53
2020-08-17T22:08:09.000Z
2022-03-24T01:58:59.000Z
defmodule Ash.Query.Function.IsNil do @moduledoc """ true if the provided field is nil """ use Ash.Query.Function, name: :is_nil def args, do: [[:any]] def new([arg]) do Ash.Query.Operator.IsNil.new(arg, true) end def evaluate(%{arguments: [val]}) do {:known, is_nil(val)} end end
18.235294
43
0.641935
ac8fbc6dae7d8fd5ca65b648218a3a409f1b2717
245
ex
Elixir
lib/melp.ex
neftalyluis/melp
279e6501414356a6652638f9a9e321a566017da4
[ "Apache-2.0" ]
null
null
null
lib/melp.ex
neftalyluis/melp
279e6501414356a6652638f9a9e321a566017da4
[ "Apache-2.0" ]
null
null
null
lib/melp.ex
neftalyluis/melp
279e6501414356a6652638f9a9e321a566017da4
[ "Apache-2.0" ]
null
null
null
defmodule Melp do @moduledoc """ Melp 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
24.5
66
0.746939
ac8fca59a4a85a706c15f36c58ce1b84a1e0ab3e
924
ex
Elixir
apps/service_broadcast/lib/broadcast_web/gettext.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
12
2020-01-27T19:43:02.000Z
2021-07-28T19:46:29.000Z
apps/service_broadcast/lib/broadcast_web/gettext.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
81
2020-01-28T18:07:23.000Z
2021-11-22T02:12:13.000Z
apps/service_broadcast/lib/broadcast_web/gettext.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
defmodule BroadcastWeb.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 BroadcastWeb.Gettext # Simple translation gettext("Here ...
29.806452
72
0.67316
ac8fce8d3f7d02b95cc364e1739e8d10b85d5eb8
5,292
ex
Elixir
deps/jose/lib/jose.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/jose/lib/jose.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/jose/lib/jose.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule JOSE do @moduledoc ~S""" JOSE stands for JSON Object Signing and Encryption which is a is a set of standards established by the [JOSE Working Group](https://datatracker.ietf.org/wg/jose). JOSE is split into 5 main components: * `JOSE.JWA` - JSON Web Algorithms (JWA) [RFC 7518](https://tools.ietf...
36
171
0.70994
ac8fef53ddbd8dabc77a092de12d279bc8cfc741
4,840
exs
Elixir
test/features/visitor_views_stats_test.exs
onekilo79/tilex
c1b2dbea911a22d21420f52533e96bd63ce8f4ff
[ "MIT" ]
null
null
null
test/features/visitor_views_stats_test.exs
onekilo79/tilex
c1b2dbea911a22d21420f52533e96bd63ce8f4ff
[ "MIT" ]
null
null
null
test/features/visitor_views_stats_test.exs
onekilo79/tilex
c1b2dbea911a22d21420f52533e96bd63ce8f4ff
[ "MIT" ]
null
null
null
defmodule Features.VisitorViewsStatsTest do use Tilex.IntegrationCase, async: Application.get_env(:tilex, :async_feature_test) def text_without_newlines(element) do String.replace(Wallaby.Element.text(element), "\n", " ") end test "sees total number of posts by channel", %{session: session} do target...
39.349593
117
0.690083
ac90711a7ef21dcabe90d241c7b60037279cccba
1,250
ex
Elixir
lib/verk_web/endpoint.ex
dev800/verk_web
2118e4a42a621b6004a9d51750d389cf5061ac30
[ "MIT" ]
null
null
null
lib/verk_web/endpoint.ex
dev800/verk_web
2118e4a42a621b6004a9d51750d389cf5061ac30
[ "MIT" ]
null
null
null
lib/verk_web/endpoint.ex
dev800/verk_web
2118e4a42a621b6004a9d51750d389cf5061ac30
[ "MIT" ]
null
null
null
defmodule VerkWeb.Endpoint do use Phoenix.Endpoint, otp_app: :verk_web socket("/socket", VerkWeb.UserSocket, websocket: true, longpoll: true ) # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your sta...
23.148148
70
0.6936
ac907d970ebcd37b975b6dfa8f21b708efc0a83e
2,518
ex
Elixir
lib/surface/live_view.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
1
2021-04-30T14:28:08.000Z
2021-04-30T14:28:08.000Z
lib/surface/live_view.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
lib/surface/live_view.ex
EddyLane/surface
1f13259cbdf81b5a4740ee13349a48f8b6c54bb5
[ "MIT" ]
null
null
null
defmodule Surface.LiveView do @moduledoc """ A wrapper component around `Phoenix.LiveView`. Since this module is just a wrapper around `Phoenix.LiveView`, you cannot define custom properties for it. Only `:id` and `:session` are available. However, built-in directives like `:for` and `:if` can be used norm...
24.211538
88
0.598094
ac9095284e6e09628500be1ddbaa5a3e50cdd2df
207
ex
Elixir
lib/ash/error/error_kind.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
528
2019-12-08T01:51:54.000Z
2022-03-30T10:09:45.000Z
lib/ash/error/error_kind.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
278
2019-12-04T15:25:06.000Z
2022-03-31T03:40:51.000Z
lib/ash/error/error_kind.ex
smt116/ash
880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f
[ "MIT" ]
53
2020-08-17T22:08:09.000Z
2022-03-24T01:58:59.000Z
defprotocol Ash.ErrorKind do @moduledoc false @spec id(t()) :: String.t() def id(error) @spec code(t()) :: String.t() def code(error) @spec message(t()) :: String.t() def message(error) end
15.923077
34
0.618357
ac90d94358099b96237a4b8ae9c9ea02068d5128
1,253
ex
Elixir
timetable_backend/web/views/error_helpers.ex
heru/timetable
b5f86f53020c6e32b569628c5396b8972ca0538f
[ "MIT" ]
null
null
null
timetable_backend/web/views/error_helpers.ex
heru/timetable
b5f86f53020c6e32b569628c5396b8972ca0538f
[ "MIT" ]
null
null
null
timetable_backend/web/views/error_helpers.ex
heru/timetable
b5f86f53020c6e32b569628c5396b8972ca0538f
[ "MIT" ]
null
null
null
defmodule TimetableBackend.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error...
30.560976
82
0.674381
ac91058d0e3526911118f00ecf5cdc561242e23a
1,262
exs
Elixir
config/dev.exs
CristianOliveiraDaRosa/doitbetter
8ce9f1b558a966d199df369a84d2c66cee58b8d7
[ "MIT" ]
null
null
null
config/dev.exs
CristianOliveiraDaRosa/doitbetter
8ce9f1b558a966d199df369a84d2c66cee58b8d7
[ "MIT" ]
null
null
null
config/dev.exs
CristianOliveiraDaRosa/doitbetter
8ce9f1b558a966d199df369a84d2c66cee58b8d7
[ "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 :dib_site, DibSite.Endpoint, http: [port: 4000...
29.348837
74
0.7187
ac912a611b4249a2aa3f8edf30d349cc44161ef2
561
ex
Elixir
lib/tannenbaum.ex
itwasscience/elixirKatas
b4e159cf7abb53cd8da1b051bb0be462fd3745cc
[ "MIT" ]
null
null
null
lib/tannenbaum.ex
itwasscience/elixirKatas
b4e159cf7abb53cd8da1b051bb0be462fd3745cc
[ "MIT" ]
null
null
null
lib/tannenbaum.ex
itwasscience/elixirKatas
b4e159cf7abb53cd8da1b051bb0be462fd3745cc
[ "MIT" ]
null
null
null
defmodule KataTannenbaum do def tree(size) do output = Range.new(1, size) |> Enum.reduce("", fn x, acc -> acc <> draw_segment(x, size) end) "\n" <> output <> draw_trunk(size) end def tree_with_star(size) do "\n" <> draw_star(size) <> tree(size) end defp draw_segment(x, size) do ...
21.576923
79
0.57754
ac915342cd7d6e6f244b149473af4c063f930b34
2,846
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_anchor_page_ref.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_anchor_page_ref.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_anchor_page_ref.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...
41.852941
295
0.731553
ac9154a7c722124aa0f7017e6ed1cfd710cc968e
249
exs
Elixir
test/romeo/xmlns_test.exs
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
78
2015-11-17T14:24:27.000Z
2022-01-18T05:24:23.000Z
test/romeo/xmlns_test.exs
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
38
2015-12-16T07:35:28.000Z
2021-04-06T08:52:01.000Z
test/romeo/xmlns_test.exs
crewstad/romeo
94ebe08c9de92c21a5d10018df0512d05bc1fa7a
[ "MIT" ]
56
2015-11-23T17:57:52.000Z
2022-01-20T16:17:29.000Z
defmodule Romeo.XMLNSTest do use ExUnit.Case, async: true import Romeo.XMLNS test "it provides XML namespaces" do assert ns_xml == "http://www.w3.org/XML/1998/namespace" assert ns_xmpp == "http://etherx.jabber.org/streams" end end
22.636364
59
0.710843
ac9179b48ce9a1e90cc0fd35ea361ee006a41806
200
ex
Elixir
chromoid_link/lib/chromoid.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
7
2020-11-18T11:29:20.000Z
2022-01-16T03:16:14.000Z
chromoid_link/lib/chromoid.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
null
null
null
chromoid_link/lib/chromoid.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
1
2021-01-06T15:40:46.000Z
2021-01-06T15:40:46.000Z
defmodule Chromoid do @moduledoc """ Documentation for Chromoid. """ @doc """ Hello world. ## Examples iex> Chromoid.hello :world """ def hello do :world end end
10.526316
29
0.575
ac91855908e69227e90c4fd0ad79591874abb9e5
15,188
ex
Elixir
lib/aws/kinesis_firehose.ex
tylerpearson/aws-elixir
09b7d3a3b9da1d775249cca291ab42ec5a081ff2
[ "Apache-2.0" ]
null
null
null
lib/aws/kinesis_firehose.ex
tylerpearson/aws-elixir
09b7d3a3b9da1d775249cca291ab42ec5a081ff2
[ "Apache-2.0" ]
null
null
null
lib/aws/kinesis_firehose.ex
tylerpearson/aws-elixir
09b7d3a3b9da1d775249cca291ab42ec5a081ff2
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/jkakar/aws-codegen for more details. defmodule AWS.Kinesis.Firehose do @moduledoc """ Amazon Kinesis Firehose API Reference Amazon Kinesis Firehose is a fully managed service that delivers real-time streaming data to destinations such as Am...
48.369427
94
0.75349
ac91b2c2c358cec88ea30511dc7db8994d822706
413
exs
Elixir
test/hasher_web/views/error_view_test.exs
enlego/hasher
43b528059119971ffbca6538ffb6713fb78e077f
[ "MIT" ]
null
null
null
test/hasher_web/views/error_view_test.exs
enlego/hasher
43b528059119971ffbca6538ffb6713fb78e077f
[ "MIT" ]
null
null
null
test/hasher_web/views/error_view_test.exs
enlego/hasher
43b528059119971ffbca6538ffb6713fb78e077f
[ "MIT" ]
null
null
null
defmodule HasherWeb.ErrorViewTest do use HasherWeb.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(HasherWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do asser...
27.533333
91
0.731235
ac91c4d6247367d757b7f827aa5feab5d58c1b83
168
exs
Elixir
test/e_queue_test.exs
bakkdoor/e_q
c38315716bd43dfd22166c7764c1d1512b062fa8
[ "MIT" ]
1
2021-07-27T05:38:46.000Z
2021-07-27T05:38:46.000Z
test/e_queue_test.exs
bakkdoor/e_q
c38315716bd43dfd22166c7764c1d1512b062fa8
[ "MIT" ]
null
null
null
test/e_queue_test.exs
bakkdoor/e_q
c38315716bd43dfd22166c7764c1d1512b062fa8
[ "MIT" ]
null
null
null
defmodule EQTest do use ExUnit.Case, async: true doctest EQ doctest Collectable.EQ doctest Enumerable.EQ test "the truth" do assert 1 + 1 == 2 end end
15.272727
30
0.690476
ac91c68616d3ca71a9dda2e31be99143caea97f6
2,439
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_directory.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_directory.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remoteworkers_v1test2_directory.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# 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...
35.347826
170
0.747027
ac91f95c7dd16748396baf7157af057aca22c714
118
exs
Elixir
apps/language_server/test/fixtures/formatter/.formatter.exs
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/fixtures/formatter/.formatter.exs
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/fixtures/formatter/.formatter.exs
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
null
null
null
[ line_length: 20, subdirectories: [ "lib", "test", "symlink", "apps/*" ], inputs: ["*.ex"] ]
10.727273
19
0.449153
ac9207d75b3d00deaa86561af92db67db9378c15
2,611
exs
Elixir
test/grizzly/zwave/commands/thermostat_mode_supported_report_test.exs
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
test/grizzly/zwave/commands/thermostat_mode_supported_report_test.exs
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
test/grizzly/zwave/commands/thermostat_mode_supported_report_test.exs
smartrent/grizzly
65a397ea7bfedb5518fe63a3f058a0b6af473e39
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.ThermostatModeSupportedReportTest do use ExUnit.Case, async: true alias Grizzly.ZWave.Commands.ThermostatModeSupportedReport test "creates the command and validates params" do {:ok, _command} = ThermostatModeSupportedReport.new(modes: []) modes = [ off: true, ...
25.349515
94
0.591344
ac92115f6f7a1530ff2f4ad0ba84d00ba8ced32e
2,260
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/create_instance_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/spanner/lib/google_api/spanner/v1/model/create_instance_metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/spanner/lib/google_api/spanner/v1/model/create_instance_metadata.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...
40.357143
232
0.720354
ac927ed9568bf89d46c2d007534996c58f3894bb
1,991
ex
Elixir
clients/games/lib/google_api/games/v1/model/metagame_config.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/metagame_config.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/metagame_config.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# 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...
36.87037
176
0.737318
ac9288570769f9926228e6b8b6a5687158d15ba2
1,040
exs
Elixir
mix.exs
sschneider1207/tracker_client
763d78747e9c9e603becffe71619d7d032138db1
[ "MIT" ]
null
null
null
mix.exs
sschneider1207/tracker_client
763d78747e9c9e603becffe71619d7d032138db1
[ "MIT" ]
null
null
null
mix.exs
sschneider1207/tracker_client
763d78747e9c9e603becffe71619d7d032138db1
[ "MIT" ]
null
null
null
defmodule TrackerClient.Mixfile do use Mix.Project def project do [app: :tracker_client, version: "0.1.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.3", build_embedded: Mix.env == :pr...
23.636364
74
0.577885
ac928cbb1aafafb107e1e7dce7e71d9cda4050fd
2,201
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/language_assigned_targeting_option_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/display_video/lib/google_api/display_video/v1/model/language_assigned_targeting_option_details.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/display_video/lib/google_api/display_video/v1/model/language_assigned_targeting_option_details.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...
40.018182
215
0.743753
ac92ffa7b029059872734da906f1b9b6455375dc
1,346
ex
Elixir
lib/otto_api/account.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
null
null
null
lib/otto_api/account.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
1
2020-11-11T15:16:51.000Z
2020-11-11T20:53:34.000Z
lib/otto_api/account.ex
DEVCONSec/otto-api-client-elixir
b74da14fbb7c4e33f0fe15e583630b6efa634d47
[ "MIT" ]
null
null
null
defmodule OttoApi.Account do @enforce_keys [:name, :description] defstruct @enforce_keys ++ [:id, :inserted_at, :referral_source] alias OttoApi.Client @spec all(client :: %Client{}) :: {:ok, list(%__MODULE__{id: binary, name: binary, description: binary, inserted_at: binary})} def all(c...
28.041667
97
0.558692
ac93233a0a8f2f627a22678da3a67540615a8fa1
1,148
ex
Elixir
test/support/conn_case.ex
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2018-05-19T12:08:10.000Z
2018-05-19T12:08:10.000Z
test/support/conn_case.ex
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
64
2019-07-29T22:06:16.000Z
2022-03-28T23:46:58.000Z
test/support/conn_case.ex
babe-project/BABE
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2019-07-28T19:17:43.000Z
2019-07-28T19:17:43.000Z
defmodule Magpie.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 and query models. Finally, if the test case interacts with the data...
24.425532
68
0.702091
ac932ecaa3698e11a5f6b54eb3a77f9308d425e5
911
exs
Elixir
test/chat_api_web/controllers/personal_api_key_controller_test.exs
arjenrschat/papercups
cba421945dd484689392c120ef98ed77200564d7
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/personal_api_key_controller_test.exs
arjenrschat/papercups
cba421945dd484689392c120ef98ed77200564d7
[ "MIT" ]
null
null
null
test/chat_api_web/controllers/personal_api_key_controller_test.exs
arjenrschat/papercups
cba421945dd484689392c120ef98ed77200564d7
[ "MIT" ]
null
null
null
defmodule ChatApiWeb.PersonalApiKeyControllerTest do use ChatApiWeb.ConnCase setup %{conn: conn} do account = account_fixture() user = user_fixture(account) conn = put_req_header(conn, "accept", "application/json") authed_conn = Pow.Plug.assign_current_user(conn, user, []) {:ok, conn: conn, a...
33.740741
82
0.699232
ac93498386c98d2c63f65a51890a3f32ea273bc2
505
exs
Elixir
config/test.exs
mu-box/qwit
556cb7dfcd6a8791176f82fdb37df377b4494491
[ "MIT" ]
null
null
null
config/test.exs
mu-box/qwit
556cb7dfcd6a8791176f82fdb37df377b4494491
[ "MIT" ]
null
null
null
config/test.exs
mu-box/qwit
556cb7dfcd6a8791176f82fdb37df377b4494491
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :qwit, QWIT.Oban.TestCase.Repo, username: System.get_env("DATA_DB_USER") || "postgres", password: System.get_env("DATA_DB_PASS") || "postgres", hostname: System.get_env("DATA_DB_HOST") || "localhost", database: (if System.get_env("APP_IP"), do: "gonano", else: "q...
31.5625
70
0.720792
ac9350f32776997485a106726abee28d971bb5b0
798
ex
Elixir
lib/prometheus_timer/application.ex
expert360/prometheus_timer
047453c53eefd429565cd5caccf76bdd2b87b533
[ "Apache-2.0" ]
5
2018-07-24T03:16:06.000Z
2020-07-29T05:52:26.000Z
lib/prometheus_timer/application.ex
expert360/prometheus_timer
047453c53eefd429565cd5caccf76bdd2b87b533
[ "Apache-2.0" ]
3
2018-07-23T06:17:33.000Z
2018-07-24T00:45:23.000Z
lib/prometheus_timer/application.ex
expert360/prometheus_timer
047453c53eefd429565cd5caccf76bdd2b87b533
[ "Apache-2.0" ]
2
2018-07-24T10:57:03.000Z
2019-11-08T03:08:17.000Z
defmodule PrometheusTimer.Application do @moduledoc false alias Plug.Adapters.Cowboy alias PrometheusTimer.Web.{Exporter, Router} def start(_, _) do import Supervisor.Spec children = [ supervisor(PrometheusTimer, []) ] ++ server_spec(server()) Supervisor.start_link(children, strategy: ...
21.567568
66
0.665414
ac9369c585581009e3a2e13a05c881726383efeb
353
exs
Elixir
priv/repo/seeds.exs
dtcristo/tap-racer
f66a3f4c728d547c85335aea7770e9b9ad857016
[ "MIT" ]
7
2016-06-04T09:24:24.000Z
2017-09-03T16:26:21.000Z
priv/repo/seeds.exs
dtcristo/tap-racer
f66a3f4c728d547c85335aea7770e9b9ad857016
[ "MIT" ]
10
2020-07-25T02:04:03.000Z
2021-07-28T12:01:20.000Z
priv/repo/seeds.exs
dtcristo/tap-racer
f66a3f4c728d547c85335aea7770e9b9ad857016
[ "MIT" ]
1
2019-05-17T03:37:43.000Z
2019-05-17T03:37:43.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # TapRacer.Repo.insert!(%TapRacer.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they wi...
29.416667
61
0.708215
ac93ae0beac96d2068808be8b06c539e046170a6
344
ex
Elixir
lib/club/colors/commands/add_color.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
lib/club/colors/commands/add_color.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
34
2019-11-10T11:31:37.000Z
2019-11-27T21:26:48.000Z
lib/club/colors/commands/add_color.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
defmodule Club.Colors.Commands.AddColor do use Commanded.Command, color_uuid: Ecto.UUID, name: :string, hex: :string @required_fields [ :color_uuid, :name, :hex ] def handle_validate(changeset) do changeset |> validate_required(@required_fields) |> validate_format(:hex, ~r/...
18.105263
45
0.65407
ac93ae87ca7b21254305284190d0b33a2075392b
485
ex
Elixir
lib/brando_admin/components/form/input/phone.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
lib/brando_admin/components/form/input/phone.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
lib/brando_admin/components/form/input/phone.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
null
null
null
defmodule BrandoAdmin.Components.Form.Input.Phone do use Surface.Component # use Phoenix.LiveComponent use Phoenix.HTML alias BrandoAdmin.Components.Form.FieldBase prop form, :form prop blueprint, :any def render(%{input: %{name: name, opts: opts}} = assigns) do ~F""" <FieldBase blueprint=...
22.045455
62
0.647423
ac93cdffda2530972a12be4fbd09c2d1c84a6047
2,247
exs
Elixir
test/ecto/adapters/exqlite/data_type_test.exs
Eiji7/exqlite
025bba63a2ebf2011d7bdf2c7a300f5782d917ae
[ "MIT" ]
null
null
null
test/ecto/adapters/exqlite/data_type_test.exs
Eiji7/exqlite
025bba63a2ebf2011d7bdf2c7a300f5782d917ae
[ "MIT" ]
null
null
null
test/ecto/adapters/exqlite/data_type_test.exs
Eiji7/exqlite
025bba63a2ebf2011d7bdf2c7a300f5782d917ae
[ "MIT" ]
null
null
null
defmodule Ecto.Adapters.Exqlite.DataTypeTest do use ExUnit.Case, async: true alias Ecto.Adapters.Exqlite.DataType describe ".column_type/2" do test ":id is INTEGER" do assert DataType.column_type(:id, nil) == "INTEGER" end test ":serial is INTEGER" do assert DataType.column_type(:serial...
26.75
85
0.64397
ac93f430db5767d475dd6e4b4b794d584466b704
2,202
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_scheduler_source_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_scheduler_source_status.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/cloud_scheduler_source_status.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...
38.631579
175
0.742961
ac93f6eca89b31d4e9438f0798bff6d160771c26
909
exs
Elixir
test/support/test_state_machine.exs
bgentry/machinery
f4835da5977394b819cde785d52b0b93bf3beae1
[ "Apache-2.0" ]
null
null
null
test/support/test_state_machine.exs
bgentry/machinery
f4835da5977394b819cde785d52b0b93bf3beae1
[ "Apache-2.0" ]
null
null
null
test/support/test_state_machine.exs
bgentry/machinery
f4835da5977394b819cde785d52b0b93bf3beae1
[ "Apache-2.0" ]
null
null
null
defmodule MachineryTest.TestStateMachine do use Machinery, states: ["created", "partial", "completed", "canceled"], transitions: %{ "created" => ["partial", "completed"], "partial" => "completed", "*" => "canceled" } def before_transition(struct, "partial") do # Code to simulate a...
26.735294
60
0.679868
ac94015e4a9a276dde2c182b36a34148cc090d25
2,090
exs
Elixir
generate_data.exs
mrdotb/vim-tailwind
f7450e5a0d596014a928957bbebc01db9b7bde72
[ "MIT" ]
10
2020-06-26T10:41:58.000Z
2022-02-13T09:37:33.000Z
generate_data.exs
mrdotb/vim-tailwindcss
f7450e5a0d596014a928957bbebc01db9b7bde72
[ "MIT" ]
null
null
null
generate_data.exs
mrdotb/vim-tailwindcss
f7450e5a0d596014a928957bbebc01db9b7bde72
[ "MIT" ]
null
null
null
#!/usr/bin/env elixir defmodule F do @output_file "autoload/tailwind/data.vim" @url 'https://unpkg.com/tailwindcss@2.0.1/dist/tailwind.css' def clean_class(class) do class |> (fn class -> if String.match?(class, ~r/[\da-z]:/) do result = Regex.scan(~r/\w\:/, class, return: :index) ...
21.326531
98
0.517225