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
854f647fdeba1153e0d0d9c3f76073c7d8788d2b
2,380
exs
Elixir
test/ecto/repo/autogenerate_test.exs
photomattmills/ecto
ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54
[ "Apache-2.0" ]
1
2019-05-07T15:05:52.000Z
2019-05-07T15:05:52.000Z
test/ecto/repo/autogenerate_test.exs
photomattmills/ecto
ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54
[ "Apache-2.0" ]
null
null
null
test/ecto/repo/autogenerate_test.exs
photomattmills/ecto
ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54
[ "Apache-2.0" ]
null
null
null
alias Ecto.TestRepo defmodule Ecto.Repo.AutogenerateTest do use ExUnit.Case, async: true defmodule Default do use Ecto.Schema schema "my_model" do field :z, Ecto.UUID, autogenerate: true timestamps end end defmodule Config do use Ecto.Schema @timestamps_opts [inserted_at: :c...
30.126582
94
0.677311
854f72134fd81ab1b7c2feefa1715d116f49b859
1,516
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/add_banding_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/add_banding_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/sheets/lib/google_api/sheets/v4/model/add_banding_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
32.255319
124
0.744063
854f79815bd2f5a63332ed2f3f43d8123d2ee7f1
2,188
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_text_anchor.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_text_anchor.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta1_document_text_anchor.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
34.730159
195
0.738117
854f9b6da3ac794227448cdf029544bd4e09d49e
1,812
ex
Elixir
clients/custom_search/lib/google_api/custom_search/v1/model/search_search_information.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/custom_search/lib/google_api/custom_search/v1/model/search_search_information.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/custom_search/lib/google_api/custom_search/v1/model/search_search_information.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "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 "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...
31.789474
87
0.729029
854f9f4247f599d31bed8d17908a3e41df015644
10,900
ex
Elixir
clients/manufacturers/lib/google_api/manufacturers/v1/model/attributes.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
null
null
null
clients/manufacturers/lib/google_api/manufacturers/v1/model/attributes.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/manufacturers/lib/google_api/manufacturers/v1/model/attributes.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "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...
71.710526
257
0.697982
854fc6ad44868da41d1aab7102cfcf6d0852ad9e
1,106
ex
Elixir
apps/correcthorse_web/lib/correcthorse_web/channels/user_socket.ex
paulanthonywilson/correct-horse-elixir
63853f0dff8f3255b7714d12316deccc0879c740
[ "MIT" ]
3
2020-09-11T09:41:05.000Z
2021-01-29T00:16:39.000Z
apps/correcthorse_web/lib/correcthorse_web/channels/user_socket.ex
paulanthonywilson/correct-horse-elixir
63853f0dff8f3255b7714d12316deccc0879c740
[ "MIT" ]
4
2020-07-21T09:31:22.000Z
2021-06-07T09:27:51.000Z
apps/correcthorse_web/lib/correcthorse_web/channels/user_socket.ex
paulanthonywilson/correct-horse-elixir
63853f0dff8f3255b7714d12316deccc0879c740
[ "MIT" ]
null
null
null
defmodule CorrecthorseWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", CorrecthorseWeb.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 ...
30.722222
87
0.698915
854fcc38e0cb3ace187dd28f93b4f494777870bd
635
ex
Elixir
web/models/course.ex
mfunaro/handiman-phoenix
5d94114f37561647096f1695e3f0a3a3d1c7ca34
[ "MIT", "Unlicense" ]
1
2015-08-15T02:40:27.000Z
2015-08-15T02:40:27.000Z
web/models/course.ex
mfunaro/handiman-phoenix
5d94114f37561647096f1695e3f0a3a3d1c7ca34
[ "MIT", "Unlicense" ]
1
2015-09-11T00:02:33.000Z
2015-09-11T03:24:21.000Z
web/models/course.ex
mfunaro/handiman-phoenix
5d94114f37561647096f1695e3f0a3a3d1c7ca34
[ "MIT", "Unlicense" ]
null
null
null
defmodule Handiman.Course do use Handiman.Web, :model schema "courses" do field :name, :string field :city, :string field :state, :string has_many :tees, Handiman.Tee timestamps end @required_fields ~w(name city state) @optional_fields ~w() @doc """ Creates a changeset based on the...
20.483871
61
0.677165
854fd1950d1eb36cb503b8e5bac53df650f2e761
141
exs
Elixir
.formatter.exs
DockYard/flame_on
47580c687c131c23b3a6c435e243dba3d18dc93d
[ "MIT" ]
55
2022-02-23T20:36:43.000Z
2022-03-31T13:55:28.000Z
.formatter.exs
DockYard/flame_on
47580c687c131c23b3a6c435e243dba3d18dc93d
[ "MIT" ]
7
2022-02-24T00:23:10.000Z
2022-03-28T18:23:30.000Z
.formatter.exs
DockYard/flame_on
47580c687c131c23b3a6c435e243dba3d18dc93d
[ "MIT" ]
1
2022-02-26T03:27:00.000Z
2022-02-26T03:27:00.000Z
# Used by "mix format" [ import_deps: [:ecto], inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], line_length: 120 ]
20.142857
70
0.588652
8550107fdafdd24585535dc95d330b615a355ea7
67
ex
Elixir
01-manual/elixir_year/lib/elixir_year_web/views/page_view.ex
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
null
null
null
01-manual/elixir_year/lib/elixir_year_web/views/page_view.ex
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
1
2022-03-16T09:01:37.000Z
2022-03-16T09:01:37.000Z
01-manual/elixir_year/lib/elixir_year_web/views/page_view.ex
sgsharma/workshop-advanced-instrumentation
8368b454c428dc95055726e02ad58f68df92ba15
[ "Apache-2.0" ]
null
null
null
defmodule ElixirYearWeb.PageView do use ElixirYearWeb, :view end
16.75
35
0.820896
855038b40afdeb767d6609294d1eff703d74e029
329
ex
Elixir
lib/stein/storage/file_upload.ex
smartlogic/stein_storage
b5be8cfb9fa2cbf82743d8730bf84621c92aef9a
[ "MIT" ]
2
2020-01-20T17:00:29.000Z
2022-02-19T20:41:22.000Z
lib/stein/storage/file_upload.ex
smartlogic/stein_storage
b5be8cfb9fa2cbf82743d8730bf84621c92aef9a
[ "MIT" ]
null
null
null
lib/stein/storage/file_upload.ex
smartlogic/stein_storage
b5be8cfb9fa2cbf82743d8730bf84621c92aef9a
[ "MIT" ]
null
null
null
defmodule Stein.Storage.FileUpload do @moduledoc """ Processed file struct for use in uploading. Create with `Stein.Storage.prep_file/1` """ @type t() :: %__MODULE__{ filename: String.t(), extension: String.t(), path: String.t() } defstruct [:filename, :extension, :p...
20.5625
45
0.607903
85505e2d1fb7ebab529cd4f90ed854c161741c6b
3,276
ex
Elixir
lib/open_pantry/web/models/stock_distribution.ex
neilfulwiler/open_pantry
4b705f2282c7b2365a784503c9f1bdd34c741798
[ "MIT" ]
41
2017-10-04T00:33:46.000Z
2021-04-09T01:33:34.000Z
lib/open_pantry/web/models/stock_distribution.ex
openpantry/open_pantry
27d898a65dd6f44b325f48d41bc448bb486d9c6f
[ "MIT" ]
74
2017-09-20T03:36:17.000Z
2018-11-20T20:46:16.000Z
lib/open_pantry/web/models/stock_distribution.ex
neilfulwiler/open_pantry
4b705f2282c7b2365a784503c9f1bdd34c741798
[ "MIT" ]
12
2017-10-04T10:02:49.000Z
2021-12-28T22:57:20.000Z
defmodule OpenPantry.StockDistribution do use OpenPantry.Web, :model alias OpenPantry.UserOrder alias OpenPantry.Stock schema "stock_distributions" do field :quantity, :integer belongs_to :stock, Stock belongs_to :user_order, UserOrder has_one :user, through: [:user_order, :user] timestamp...
34.125
115
0.704518
85506514b83106000c4b27de92ed8958f9e0b80b
3,266
exs
Elixir
test/controllers/admin/person_controller_test.exs
kentcdodds/changelog.com
e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d
[ "MIT" ]
null
null
null
test/controllers/admin/person_controller_test.exs
kentcdodds/changelog.com
e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d
[ "MIT" ]
null
null
null
test/controllers/admin/person_controller_test.exs
kentcdodds/changelog.com
e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d
[ "MIT" ]
null
null
null
defmodule Changelog.Admin.PersonControllerTest do use Changelog.ConnCase use Bamboo.Test import Mock alias Changelog.Person @valid_attrs %{name: "Joe Blow", email: "joe@blow.com", handle: "joeblow"} @invalid_attrs %{name: "", email: "noname@nope.com"} @tag :as_admin test "lists all people on index",...
31.403846
88
0.676363
8550663dc1641a4cc1eb2470d2731e4d7310f71c
5,917
exs
Elixir
test/components/form/error_tag_test.exs
lnr0626/surface
11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb
[ "MIT" ]
1
2021-06-04T20:46:52.000Z
2021-06-04T20:46:52.000Z
test/components/form/error_tag_test.exs
lnr0626/surface
11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb
[ "MIT" ]
null
null
null
test/components/form/error_tag_test.exs
lnr0626/surface
11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.ErrorTagTest.Common do @moduledoc """ Common functions used by both ErrorTagTest and ErrorTagSyncTest """ def changeset do {%{}, %{name: :string}} |> Ecto.Changeset.cast(%{name: "myname"}, [:name]) |> Ecto.Changeset.add_error(:name, "is already taken") |> Ecto....
26.533632
105
0.578841
8550876c6e5f269f103fe141aa0318e24c3bb24c
1,046
ex
Elixir
out/manticoresearch-elixir/lib/manticoresearch/model/search_request.ex
mihaj/openapi
29e878b0be1218a897c4c86bf9d8d51f4d1a3e57
[ "MIT" ]
null
null
null
out/manticoresearch-elixir/lib/manticoresearch/model/search_request.ex
mihaj/openapi
29e878b0be1218a897c4c86bf9d8d51f4d1a3e57
[ "MIT" ]
null
null
null
out/manticoresearch-elixir/lib/manticoresearch/model/search_request.ex
mihaj/openapi
29e878b0be1218a897c4c86bf9d8d51f4d1a3e57
[ "MIT" ]
null
null
null
# Manticore Search Client # Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com) # # All rights reserved # Do not edit the class manually. defmodule Manticoresearch.Model.SearchRequest do @moduledoc """ Payload for search operation """ @derive [Poison.Encoder] defstruct [ :"ind...
21.346939
79
0.576482
855096334f933ff28800a9ff3d103291a3c5e775
1,160
ex
Elixir
lib/blog_web/channels/user_socket.ex
embik/blog
ee8e604fe0bba0bade5466cc180475dbe80bb6b6
[ "Apache-2.0" ]
null
null
null
lib/blog_web/channels/user_socket.ex
embik/blog
ee8e604fe0bba0bade5466cc180475dbe80bb6b6
[ "Apache-2.0" ]
1
2017-08-14T09:00:30.000Z
2017-08-14T16:18:44.000Z
lib/blog_web/channels/user_socket.ex
embik/blog
ee8e604fe0bba0bade5466cc180475dbe80bb6b6
[ "Apache-2.0" ]
null
null
null
defmodule BlogWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", Blog.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and authentica...
30.526316
83
0.7
8550b28768c990db9e600fe691849267a8c40560
9,248
ex
Elixir
teachme/deps/phoenix_ecto/lib/phoenix_ecto/html.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
null
null
null
teachme/deps/phoenix_ecto/lib/phoenix_ecto/html.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
1
2020-07-17T10:07:44.000Z
2020-07-17T10:07:44.000Z
teachme/deps/phoenix_ecto/lib/phoenix_ecto/html.ex
kodeklubben-sandefjord/kodeklubben-sandefjord.github.io
89351bceb132f87b1d2a0bcb325fb278d7ad48a4
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(Phoenix.HTML) do defimpl Phoenix.HTML.FormData, for: Ecto.Changeset do def to_form(changeset, opts) do %{params: params, data: data} = changeset {name, opts} = Keyword.pop(opts, :as) name = to_string(name || form_for_name(data)) %Phoenix.HTML.Form{ source: c...
32.911032
113
0.569096
8550b3aa54ba0db5f05b556cd37a83be8095c7db
90
exs
Elixir
config/config.exs
valiot/ecto_trail
32cba3166a524c0d8a8f47c097edc70fa319ebe5
[ "MIT" ]
1
2019-02-14T14:29:18.000Z
2019-02-14T14:29:18.000Z
config/config.exs
valiot/ecto_trail
32cba3166a524c0d8a8f47c097edc70fa319ebe5
[ "MIT" ]
1
2022-02-21T21:06:12.000Z
2022-02-21T21:06:12.000Z
config/config.exs
valiot/ecto_trail
32cba3166a524c0d8a8f47c097edc70fa319ebe5
[ "MIT" ]
1
2019-02-14T14:52:18.000Z
2019-02-14T14:52:18.000Z
use Mix.Config config :ecto_trail, table_name: "audit_log", redacted_fields: [:password]
22.5
73
0.777778
8550dbf5da02d8b8c9f437dc460cecb41ac0b14a
187
exs
Elixir
basic-types/integer.exs
edmilson-dk/learn-elixir
25cb7a1369d9367cd0ddea0fadace956df500358
[ "MIT" ]
null
null
null
basic-types/integer.exs
edmilson-dk/learn-elixir
25cb7a1369d9367cd0ddea0fadace956df500358
[ "MIT" ]
null
null
null
basic-types/integer.exs
edmilson-dk/learn-elixir
25cb7a1369d9367cd0ddea0fadace956df500358
[ "MIT" ]
null
null
null
integer = 10 binary = 0b1010 octal = 0o12 hexadecimal = 0xA IO.puts("Integer: #{integer}") IO.puts("Binary: #{binary}") IO.puts("Octal: #{octal}") IO.puts("Hexadecimal: #{hexadecimal}")
18.7
38
0.673797
8550f268d2e85de9f08e230ced7465ac4182f8af
446
exs
Elixir
test/fixtures/simple_app/mix.exs
se-apc/nerves
68c145968b5b8dc868d6bb85abe4a0145cd5dea6
[ "Apache-2.0" ]
null
null
null
test/fixtures/simple_app/mix.exs
se-apc/nerves
68c145968b5b8dc868d6bb85abe4a0145cd5dea6
[ "Apache-2.0" ]
null
null
null
test/fixtures/simple_app/mix.exs
se-apc/nerves
68c145968b5b8dc868d6bb85abe4a0145cd5dea6
[ "Apache-2.0" ]
null
null
null
defmodule SimpleApp.Fixture do use Mix.Project @target System.get_env("MIX_TARGET") || "system" def project do [ app: :simple_app, version: "0.1.0", archives: [nerves_bootstrap: "~> 1.0"], target: @target, deps: deps(), aliases: Nerves.Bootstrap.add_aliases([]) ] en...
16.518519
50
0.571749
85510169d3d0bf7bd8d224855f25711c5d5a30f7
376
ex
Elixir
web/views/error_view.ex
rsommerard/killbind
f77ca1cbb464053f9920cb9fa8a339f54fd3648e
[ "MIT" ]
null
null
null
web/views/error_view.ex
rsommerard/killbind
f77ca1cbb464053f9920cb9fa8a339f54fd3648e
[ "MIT" ]
null
null
null
web/views/error_view.ex
rsommerard/killbind
f77ca1cbb464053f9920cb9fa8a339f54fd3648e
[ "MIT" ]
null
null
null
defmodule KillBind.ErrorView do use KillBind.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_templat...
20.888889
47
0.699468
8551117b3c0554481dd8017fc89e88f1fee9c299
3,022
ex
Elixir
clients/run/lib/google_api/run/v1/model/service.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/service.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/run/lib/google_api/run/v1/model/service.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...
51.220339
691
0.731635
855112f7877cc466c5ef3428c78aa28d802d743a
1,528
ex
Elixir
lib/password/policy/common_password.ex
heresydev/password
e0b07400feff2aad7a280afeb4f34d0e9e4c85b0
[ "MIT" ]
4
2018-06-17T03:29:54.000Z
2020-01-13T08:58:22.000Z
lib/password/policy/common_password.ex
heresydev/password
e0b07400feff2aad7a280afeb4f34d0e9e4c85b0
[ "MIT" ]
null
null
null
lib/password/policy/common_password.ex
heresydev/password
e0b07400feff2aad7a280afeb4f34d0e9e4c85b0
[ "MIT" ]
null
null
null
defmodule Password.Policy.CommonPasswords do @moduledoc """ Check whether a password figures in the list of most common passwords by Mark Burnett (xato.net). To use, simply add it to the list of policies: ```elixir use Password, [ {Password.Policy.CommonPasswords} ] ``` ```elixir iex> MyApp.P...
24.253968
68
0.632853
8551318487b53503198f086b2dbf6fb413d7980d
550
ex
Elixir
lib/brando/blueprint/villain/blocks/text_block.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
lib/brando/blueprint/villain/blocks/text_block.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
lib/brando/blueprint/villain/blocks/text_block.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule Brando.Blueprint.Villain.Blocks.TextBlock do defmodule Data do use Ecto.Schema import Ecto.Changeset @primary_key false embedded_schema do field :text, :string field :type, Ecto.Enum, values: [:paragraph, :lede, :lead], default: :paragraph field :extensions, {:array, :str...
21.153846
85
0.661818
8551399c98c03d5ca996aed064ccf8bd214fe47d
2,274
ex
Elixir
lib/gossip/games/process.ex
oestrich/gossip-elixir
ad2195968c19f905f713790250a0b462503fc4b4
[ "MIT" ]
19
2018-07-13T04:34:00.000Z
2021-09-18T17:11:00.000Z
lib/gossip/games/process.ex
oestrich/gossip-elixir
ad2195968c19f905f713790250a0b462503fc4b4
[ "MIT" ]
5
2018-07-13T02:47:31.000Z
2018-10-11T00:05:54.000Z
lib/gossip/games/process.ex
oestrich/gossip-elixir
ad2195968c19f905f713790250a0b462503fc4b4
[ "MIT" ]
2
2018-07-13T03:55:26.000Z
2021-02-12T20:12:47.000Z
defmodule Gossip.Games.Process do @moduledoc """ GenServer process for tracking remote games See also: - `Gossip.Games.Internal` for calls/casts into this process - `Gossip.Games.Implementation` for the implementation of calls/casts - `Gossip.Games.Status` for the request/response for fetching a remote gam...
24.989011
94
0.674582
85514740f929f7035623910f1324d3157c2a5085
1,744
ex
Elixir
lib/ieex.ex
edmaarcosta/IEEx
fb457be8c03b7a147463cdd2736f9699a699e22d
[ "MIT" ]
null
null
null
lib/ieex.ex
edmaarcosta/IEEx
fb457be8c03b7a147463cdd2736f9699a699e22d
[ "MIT" ]
1
2017-12-05T15:58:10.000Z
2017-12-05T15:58:10.000Z
lib/ieex.ex
edmaarcosta/ieex
fb457be8c03b7a147463cdd2736f9699a699e22d
[ "MIT" ]
1
2018-10-01T19:35:47.000Z
2018-10-01T19:35:47.000Z
defmodule IEEx do @moduledoc """ Valida a inscrição estadual com base na UF. ## Exemplos iex> IEEx.is_valid?("56456", "pr") false iex> IEEx.is_valid?("52.504.085/2-0", "pr") true iex> IEEx.is_valid?("1207580984", "PR") true """ alias IEEx.UF.{AC, AL, AM, AP, BA, CE,...
23.890411
67
0.49828
85515968b1f12a09f410ade968c9b4005e618f7e
80
ex
Elixir
phoenix_webpack/lib/phoenix_cast/repo.ex
davejmac/phoenix-webpack
b7d0076069529311abfa6d4b6eda332bb970a24b
[ "MIT" ]
null
null
null
phoenix_webpack/lib/phoenix_cast/repo.ex
davejmac/phoenix-webpack
b7d0076069529311abfa6d4b6eda332bb970a24b
[ "MIT" ]
null
null
null
phoenix_webpack/lib/phoenix_cast/repo.ex
davejmac/phoenix-webpack
b7d0076069529311abfa6d4b6eda332bb970a24b
[ "MIT" ]
null
null
null
defmodule PhoenixWebpack.Repo do use Ecto.Repo, otp_app: :phoenix_webpack end
20
42
0.8125
855195a246cc5788d029c92a85847166e1ea7dd2
2,481
ex
Elixir
lib/aws_codegen/spec.ex
vrcca/aws-codegen
74765a9b11772bd08bd6109f68d51a77def225de
[ "Apache-2.0" ]
null
null
null
lib/aws_codegen/spec.ex
vrcca/aws-codegen
74765a9b11772bd08bd6109f68d51a77def225de
[ "Apache-2.0" ]
null
null
null
lib/aws_codegen/spec.ex
vrcca/aws-codegen
74765a9b11772bd08bd6109f68d51a77def225de
[ "Apache-2.0" ]
null
null
null
defmodule AWS.CodeGen.Spec do @moduledoc """ Parse and process the specfication for an AWS service. """ @module_acronyms ~w(SMS WAF API SES HSM FSx IoT MTurk QLDB DB RDS A2I XRay EC2 SSO IVS MQ SDB OIDC ACMPCA) defstruct protocol: nil, module_name: nil, filename: nil, api...
26.677419
108
0.584845
85519f555039216a2ee722e8f4817801c56c368b
1,595
ex
Elixir
flights/test/support/model_case.ex
sifxtreme/phoenix-flights
afc8724e9a9d6f9158305d57df8132327943894d
[ "MIT" ]
null
null
null
flights/test/support/model_case.ex
sifxtreme/phoenix-flights
afc8724e9a9d6f9158305d57df8132327943894d
[ "MIT" ]
null
null
null
flights/test/support/model_case.ex
sifxtreme/phoenix-flights
afc8724e9a9d6f9158305d57df8132327943894d
[ "MIT" ]
null
null
null
defmodule Flights.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be async. For ...
25.725806
84
0.684639
85519f7d8916c4ea1578921da6712525a1f4f77f
762
ex
Elixir
lib/mix/tasks/autox.destroy.views.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
null
null
null
lib/mix/tasks/autox.destroy.views.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
20
2016-04-05T06:28:58.000Z
2016-05-12T15:45:37.000Z
lib/mix/tasks/autox.destroy.views.ex
foxnewsnetwork/autox
66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Autox.Destroy.Views do alias Fox.StringExt alias Mix.Tasks.Autox.Infer.Views use Mix.Task def run(_) do Mix.Task.run "compile", [] Mix.Phoenix.base |> Module.safe_concat("Router") |> apply(:__routes__, []) |> Enum.map(&Views.parent_ids/1) |> Enum.reduce(%{}, &Views...
30.48
87
0.639108
8551e0cf3a6ee00942d5801622a4bb06d5d399f1
1,960
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/model/key_version_spec.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/private_ca/lib/google_api/private_ca/v1beta1/model/key_version_spec.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/private_ca/lib/google_api/private_ca/v1beta1/model/key_version_spec.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...
39.2
301
0.744388
8551f3d23c2d3a715e683810bb2878d0399d0bd5
6,769
exs
Elixir
test/worker_test.exs
itskoko/exq
916e194fe365fa316c36314e0ccf3a37c9080258
[ "Apache-2.0" ]
null
null
null
test/worker_test.exs
itskoko/exq
916e194fe365fa316c36314e0ccf3a37c9080258
[ "Apache-2.0" ]
null
null
null
test/worker_test.exs
itskoko/exq
916e194fe365fa316c36314e0ccf3a37c9080258
[ "Apache-2.0" ]
3
2021-04-07T14:50:17.000Z
2021-04-07T14:50:30.000Z
defmodule WorkerTest do use ExUnit.Case defmodule NoArgWorker do def perform do end end defmodule ThreeArgWorker do def perform(_, _, _) do end end defmodule CustomMethodWorker do def custom_perform do end end defmodule MetadataWorker do def perform() do %{class: "W...
27.971074
97
0.683114
855239d4e69daf216ff663993ac69176409dd6f4
1,772
exs
Elixir
test/livebook/notebook/cell/input.exs
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
test/livebook/notebook/cell/input.exs
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
test/livebook/notebook/cell/input.exs
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Notebook.Cell.InputText do use ExUnit.Case, async: true alias Livebook.Notebook.Cell.Input describe "validate/1" do test "given text input allows any value" do input = %{Input.new() | type: :text, value: "some 🐈 text"} assert Input.validate(input) == :ok end test "gi...
35.44
81
0.594808
85524b7092ef145cd911ab2dd5e65fb351957cc0
434
ex
Elixir
lib/freetube_updater/github_api_handler/github_api_handler.ex
LosEagle/freetube-updater
c6cc5a41152a70660050b2789019fc123214df7c
[ "MIT" ]
null
null
null
lib/freetube_updater/github_api_handler/github_api_handler.ex
LosEagle/freetube-updater
c6cc5a41152a70660050b2789019fc123214df7c
[ "MIT" ]
null
null
null
lib/freetube_updater/github_api_handler/github_api_handler.ex
LosEagle/freetube-updater
c6cc5a41152a70660050b2789019fc123214df7c
[ "MIT" ]
null
null
null
defmodule FreeTubeUpdater.GithubApiHandler do def send_request(url) do HTTPoison.get!(url) end def send_authenticated_request(url, token) do headers = [Authorization: "Bearer #{token}", Accept: "Application/json; Charset=utf-8"] HTTPoison.get!(url, headers) end def get_response_body(response) d...
21.7
91
0.732719
855259fe9846a937736f2d8e8d5a9fb3940cb6ad
1,879
ex
Elixir
lib/authex/server.ex
nsweeting/authex
d2eda35c0238cc4b91a00ed666536066efafafdc
[ "MIT" ]
74
2017-11-04T23:15:09.000Z
2022-02-23T17:55:54.000Z
lib/authex/server.ex
nsweeting/authex
d2eda35c0238cc4b91a00ed666536066efafafdc
[ "MIT" ]
29
2017-11-09T20:34:41.000Z
2021-08-02T10:19:51.000Z
lib/authex/server.ex
nsweeting/authex
d2eda35c0238cc4b91a00ed666536066efafafdc
[ "MIT" ]
3
2018-06-19T04:02:40.000Z
2019-01-02T13:52:34.000Z
defmodule Authex.Server do @moduledoc false use GenServer @opts_schema %{ secret: [type: :binary, required: true], blacklist: [type: [:module, :boolean], required: true, default: false], default_alg: [ type: :atom, inclusion: [:hs256, :hs384, :hs512], required: true, default:...
24.402597
75
0.531134
855260793d386e3aac2d119bb7d608707bfd8e00
694
ex
Elixir
debian/preinst.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
debian/preinst.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
debian/preinst.ex
timmy00274672/demo_dh_make
9a241f67131019911d07d41407c3240ff70c241a
[ "RSA-MD" ]
null
null
null
#!/bin/sh # preinst script for helloworld # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <new-preinst> `install' # * <new-preinst> `install' <old-version> # * <new-preinst> `upgrade' <old-version> # * <old-preinst> `abort-upgrade' <new-version> # for detai...
19.277778
63
0.629683
8552609bf4139ff4e0dbb7acfa354a847c4de4e6
1,494
exs
Elixir
test/scale/ggity_scale_shape_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
test/scale/ggity_scale_shape_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
test/scale/ggity_scale_shape_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
defmodule GGityScaleShapeTest do use ExUnit.Case import SweetXml alias GGity.Scale.Shape setup do %{scale: Shape.new() |> Shape.train(["beef", "chicken", "fish", "lamb", "shrimp"])} end describe "new/2" do test "returns a proper scale for discrete values", %{scale: scale} do assert scale.t...
28.730769
87
0.544846
855266b669b7a296aa3cdfb2e795d101e83d4c4f
540
exs
Elixir
priv/test_repo/migrations/20190711112455_add_test_schemas.exs
sobolevn/ecto_rescope
7eaf2befefc44856f7b7077b6e31db08d00ed5f1
[ "Apache-2.0" ]
12
2019-07-13T03:22:37.000Z
2022-01-07T08:20:58.000Z
priv/test_repo/migrations/20190711112455_add_test_schemas.exs
sobolevn/ecto_rescope
7eaf2befefc44856f7b7077b6e31db08d00ed5f1
[ "Apache-2.0" ]
3
2019-08-01T10:20:47.000Z
2019-11-22T21:37:02.000Z
priv/test_repo/migrations/20190711112455_add_test_schemas.exs
sobolevn/ecto_rescope
7eaf2befefc44856f7b7077b6e31db08d00ed5f1
[ "Apache-2.0" ]
2
2019-07-29T08:14:51.000Z
2019-08-26T07:53:47.000Z
defmodule Ecto.Rescope.TestRepo.Migrations.AddTestSchemas do use Ecto.Migration def change do create table(:teams) do add(:name, :string, null: false) add(:is_deleted, :boolean, null: false, default: false) timestamps(default: fragment("now()")) end create table(:users) do add...
25.714286
63
0.657407
85526a9d117e8ebccc2f12414b6445caa983fa8f
940
ex
Elixir
lib/nectar/command.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
356
2016-03-16T12:37:28.000Z
2021-12-18T03:22:39.000Z
lib/nectar/command.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
30
2016-03-16T09:19:10.000Z
2021-01-12T08:10:52.000Z
lib/nectar/command.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
72
2016-03-16T13:32:14.000Z
2021-03-23T11:27:43.000Z
defmodule Nectar.Command do defmacro __using__([model: model]) do model = Macro.expand(model, __ENV__) quote location: :keep do def insert!(repo, params) do unquote(model).changeset(struct(unquote(model)), params) |> repo.insert! end def update!(repo, existing, params) do ...
24.736842
94
0.609574
85527490402e6858530f3f4b7dbb8fe9e5252e35
805
ex
Elixir
apps/muster_web/lib/muster_web/views/error_helpers.ex
eugenebolshakov/muster
dd5465da2c9c1a64817e271b297de95fa31c07d9
[ "Unlicense" ]
null
null
null
apps/muster_web/lib/muster_web/views/error_helpers.ex
eugenebolshakov/muster
dd5465da2c9c1a64817e271b297de95fa31c07d9
[ "Unlicense" ]
null
null
null
apps/muster_web/lib/muster_web/views/error_helpers.ex
eugenebolshakov/muster
dd5465da2c9c1a64817e271b297de95fa31c07d9
[ "Unlicense" ]
null
null
null
defmodule MusterWeb.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 -> content_tag(:...
25.967742
69
0.663354
8552abe9b01aa9e9d83daf91bdb3254b847b6e68
1,612
exs
Elixir
mix.exs
wingyplus/junit-formatter
aeaddefaba03225b9d44f5f4ba5cecaf87f3e6a2
[ "Apache-2.0" ]
null
null
null
mix.exs
wingyplus/junit-formatter
aeaddefaba03225b9d44f5f4ba5cecaf87f3e6a2
[ "Apache-2.0" ]
null
null
null
mix.exs
wingyplus/junit-formatter
aeaddefaba03225b9d44f5f4ba5cecaf87f3e6a2
[ "Apache-2.0" ]
null
null
null
defmodule Formatter.Mixfile do use Mix.Project @source_url "https://github.com/victorolinasc/junit-formatter" @version "3.2.0" def project do [ app: :junit_formatter, version: @version, elixir: "~> 1.5", deps: deps(), package: package(), docs: docs(), consolidate_...
23.705882
95
0.554591
8552b3ef43558f38d15e6295f6953f6c2c4e035f
7,016
exs
Elixir
apps/site/test/site_web/views/event_view_test.exs
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
null
null
null
apps/site/test/site_web/views/event_view_test.exs
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
65
2021-05-06T18:38:33.000Z
2022-03-28T20:50:04.000Z
apps/site/test/site_web/views/event_view_test.exs
paulswartz/dotcom
73e43e7c61afd96b1928608ce8316a7ed0eb1440
[ "MIT" ]
null
null
null
defmodule SiteWeb.EventViewTest do use Site.ViewCase, async: true import SiteWeb.EventView import CMS.Helpers, only: [parse_iso_datetime: 1] alias CMS.Partial.Teaser alias CMS.Page.Event describe "show.html" do test "the notes section is not rendered when the event notes are empty", %{conn: conn} do ...
30.504348
98
0.6126
8552bc4828c242991dbe73f179c7615a25e58912
1,111
ex
Elixir
lib/koans/11_structs.ex
anaerobeth/elixir-koans
a0f7d5b9a998ed191ed4e2a188568e168c86afbe
[ "MIT" ]
null
null
null
lib/koans/11_structs.ex
anaerobeth/elixir-koans
a0f7d5b9a998ed191ed4e2a188568e168c86afbe
[ "MIT" ]
null
null
null
lib/koans/11_structs.ex
anaerobeth/elixir-koans
a0f7d5b9a998ed191ed4e2a188568e168c86afbe
[ "MIT" ]
null
null
null
defmodule Structs do use Koans @intro "Structs" defmodule Person do defstruct [:name, :age] end koan "Structs are defined and named after a module" do person = %Person{} assert person == %Structs.Person{age: nil, name: nil} end koan "Unless previously defined, fields begin as nil" do n...
22.673469
66
0.633663
8552bd76b26d4384a3e6304fc88030dcfb64129f
54,869
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/api/projects.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/api/projects.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/api/projects.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...
46.776641
196
0.627877
8552d0026a590aa4382402b443ede3c11560425d
6,010
ex
Elixir
lib/codes/codes_m77.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_m77.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_m77.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_M77 do alias IcdCode.ICDCode def _M7700 do %ICDCode{full_code: "M7700", category_code: "M77", short_code: "00", full_name: "Medial epicondylitis, unspecified elbow", short_name: "Medial epicondylitis, unspecified elbow", category_n...
32.139037
73
0.601997
8552ee6781b3df77dba9bbe4084ee9ed09e756e4
7,212
exs
Elixir
test/links_test.exs
roelandvanbatenburg/phoenix_integration
b05007fa987f1a072404ec7727988b7428c07711
[ "Apache-2.0" ]
218
2016-07-29T01:21:45.000Z
2022-02-08T15:19:41.000Z
test/links_test.exs
roelandvanbatenburg/phoenix_integration
b05007fa987f1a072404ec7727988b7428c07711
[ "Apache-2.0" ]
49
2016-08-06T20:57:43.000Z
2022-01-24T23:46:10.000Z
test/links_test.exs
roelandvanbatenburg/phoenix_integration
b05007fa987f1a072404ec7727988b7428c07711
[ "Apache-2.0" ]
29
2016-08-18T07:07:37.000Z
2022-01-11T14:39:52.000Z
defmodule PhoenixIntegration.LinksTest do use ExUnit.Case, async: true import Phoenix.ConnTest @endpoint PhoenixIntegration.TestEndpoint @href_first_get "/links/first" @href_second_get "https://www.example.com/links/second" @href_post "/links/post" @href_put "/links/put" @href_patch "/links/patch" @...
34.673077
96
0.631309
855305c2a14165e3893433ba4233668226cff8ee
503
ex
Elixir
lib/ble_live_sample_web/views/error_view.ex
khamada611/ble_live_sample
058fa90048e5ef474f9185d370e7e3202e649041
[ "Apache-2.0" ]
4
2019-04-06T15:36:48.000Z
2019-10-20T05:55:10.000Z
lib/ble_live_sample_web/views/error_view.ex
khamada611/ble_live_sample
058fa90048e5ef474f9185d370e7e3202e649041
[ "Apache-2.0" ]
null
null
null
lib/ble_live_sample_web/views/error_view.ex
khamada611/ble_live_sample
058fa90048e5ef474f9185d370e7e3202e649041
[ "Apache-2.0" ]
1
2021-05-04T10:59:57.000Z
2021-05-04T10:59:57.000Z
defmodule BleLiveSampleWeb.ErrorView do use BleLiveSampleWeb, :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 t...
29.588235
61
0.741551
85530f376f85fe14a4765c1ff8458e330b47174c
3,781
ex
Elixir
lib/onetime.ex
ryo33/onetime-elixir
e6fb147c72af548d1ecfab99323b66b66300bd7e
[ "MIT" ]
4
2015-12-24T01:20:18.000Z
2016-06-25T08:52:42.000Z
lib/onetime.ex
ryo33/onetime-elixir
e6fb147c72af548d1ecfab99323b66b66300bd7e
[ "MIT" ]
1
2016-01-09T14:30:03.000Z
2016-01-09T14:30:03.000Z
lib/onetime.ex
ryo33/onetime-elixir
e6fb147c72af548d1ecfab99323b66b66300bd7e
[ "MIT" ]
null
null
null
defmodule Onetime do @moduledoc """ This is a onetime key-value store. This can be used for such as storing tokens for authentication. """ use GenServer use Timex @type result :: {:ok, any} | :error def start_link(options \\ []) do GenServer.start_link(__MODULE__, %{}, options) end @doc """ ...
24.393548
100
0.591907
85533451a88abd5cb7b2445f8ab995bc3def5e02
525
ex
Elixir
test/support/routers/original.ex
mitchellhenke/torch
2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71
[ "MIT" ]
528
2019-09-13T15:10:36.000Z
2022-03-31T10:28:27.000Z
test/support/routers/original.ex
mitchellhenke/torch
2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71
[ "MIT" ]
133
2019-09-13T17:46:59.000Z
2022-03-01T13:37:10.000Z
test/support/routers/original.ex
mitchellhenke/torch
2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71
[ "MIT" ]
38
2019-10-29T20:37:13.000Z
2022-03-03T05:19:33.000Z
defmodule ExampleWeb.Router do use ExampleWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", ExampleWeb do # Use...
18.75
39
0.674286
85533749e5e9a11dbd0cca38958e6839553d1f97
1,644
ex
Elixir
lib/mix/tasks/nimble_template.gen.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
34
2020-10-04T17:44:27.000Z
2022-03-21T07:13:02.000Z
lib/mix/tasks/nimble_template.gen.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
101
2020-06-10T03:35:10.000Z
2022-03-31T03:44:13.000Z
lib/mix/tasks/nimble_template.gen.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
2
2021-03-29T14:35:22.000Z
2021-11-25T21:39:30.000Z
defmodule Mix.Tasks.NimbleTemplate.Gen do @shortdoc "Apply Nimble's Elixir/Phoenix template" @moduledoc """ #{@shortdoc} - Hex package: https://hex.pm/packages/nimble_template - Github: https://github.com/nimblehq/elixir-templates # Usage - mix help nimble_template.gen # Print help - mix nimble_temp...
27.4
100
0.681265
85534b1399136ebb2829c07abf74f1c3a7a4475e
1,373
ex
Elixir
lib/mix/tasks/dialyzer/explain.ex
xenomorphtech/dialyxir
d5c45780c3ec90ccfb6013420ed6c808f7f0925c
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/dialyzer/explain.ex
xenomorphtech/dialyxir
d5c45780c3ec90ccfb6013420ed6c808f7f0925c
[ "Apache-2.0" ]
2
2019-11-19T15:45:11.000Z
2019-11-21T22:38:34.000Z
lib/mix/tasks/dialyzer/explain.ex
kenny-evitt/dialyxir
62310a9cbcbb88a9ec08061d93946bf0f096bbbc
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Dialyzer.Explain do @shortdoc "Display information about dialyzer warnings." @moduledoc """ This task provides background information about dialyzer warnings. If invoked without any arguments it will list all warning atoms. When invoked with the name of a particular warning, it will displ...
22.145161
69
0.628551
855370005601ab40355189d6c497a1c6d0d25fe9
1,670
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/edit_all_order_deals_response.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/edit_all_order_deals_response.ex
ericrwolfe/elixir-google-api
3dc0f17edd5e2d6843580c16ddae3bf84b664ffd
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/edit_all_order_deals_response.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...
34.081633
116
0.767066
855393c2584ec77588810bc58ee2e7334f404eed
1,285
exs
Elixir
mix.exs
Lean5/rbmq
c6e746c212e103fc4ada53969e88fc1f32a357a6
[ "MIT" ]
null
null
null
mix.exs
Lean5/rbmq
c6e746c212e103fc4ada53969e88fc1f32a357a6
[ "MIT" ]
1
2019-02-13T14:26:22.000Z
2019-02-13T14:26:22.000Z
mix.exs
Lean5/rbmq
c6e746c212e103fc4ada53969e88fc1f32a357a6
[ "MIT" ]
null
null
null
defmodule Rbmq.Mixfile do use Mix.Project @version "0.4.0" def project do [app: :rbmq19, version: @version, elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps()] end def app...
22.54386
82
0.54786
855399f7eeabb670e8450d5fdf83d0405ed3f9f1
67
exs
Elixir
test/test_helper.exs
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
test/test_helper.exs
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
test/test_helper.exs
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Demo.Repo, :manual)
16.75
50
0.761194
8553a702b2f14dbdf7050e57c4a5cd2a19858c4b
1,109
ex
Elixir
test/support/conn_case.ex
sebbean/phoenix-trello
c698ef9bdd29553aff941cc1f31778ee09c974d6
[ "MIT" ]
1
2017-01-19T20:12:08.000Z
2017-01-19T20:12:08.000Z
test/support/conn_case.ex
sebbean/phoenix-trello
c698ef9bdd29553aff941cc1f31778ee09c974d6
[ "MIT" ]
null
null
null
test/support/conn_case.ex
sebbean/phoenix-trello
c698ef9bdd29553aff941cc1f31778ee09c974d6
[ "MIT" ]
null
null
null
defmodule PhoenixTrello.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 imports other functionality to make it easier to build and query models. Finally, if the test case interacts with ...
25.204545
72
0.712353
8553addadc41fade1f7a853e379344b003c28cf5
3,262
ex
Elixir
lib/stripe.ex
Finger-Ink/stripe-elixir
018cef01a6645074547be4a93b6a443d21be2484
[ "MIT" ]
null
null
null
lib/stripe.ex
Finger-Ink/stripe-elixir
018cef01a6645074547be4a93b6a443d21be2484
[ "MIT" ]
null
null
null
lib/stripe.ex
Finger-Ink/stripe-elixir
018cef01a6645074547be4a93b6a443d21be2484
[ "MIT" ]
null
null
null
defmodule Stripe do @moduledoc """ Main module for handling sending/receiving requests to Stripe's API """ @default_api_endpoint "https://api.stripe.com/v1/" @client_version Mix.Project.config()[:version] def version do @client_version end alias Stripe.{ APIConnectionError, APIError, ...
26.306452
93
0.670754
8553bf6cb90359be1efa96fcb88fb5b1f0f8f4e3
1,226
ex
Elixir
apps/merkle_patricia_tree/lib/merkle_patricia_tree/db/ets.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/merkle_patricia_tree/lib/merkle_patricia_tree/db/ets.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/merkle_patricia_tree/lib/merkle_patricia_tree/db/ets.ex
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule MerklePatriciaTree.DB.ETS do @moduledoc """ Implementation of `MerklePatriciaTree.DB` which is backed by :ets. """ @behaviour MerklePatriciaTree.DB @doc """ Performs initialization for this db. """ @impl true def init(db_name) do ^db_name = :ets.new(db_name, [:set, :public, :named_ta...
18.861538
63
0.608483
8553c3d6a3934098c904bc1910028bc066cde5e0
1,724
ex
Elixir
lib/mix/tasks/phx.gen.presence.ex
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
lib/mix/tasks/phx.gen.presence.ex
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
lib/mix/tasks/phx.gen.presence.ex
arkgil/phoenix
b5d82814154b5fb87c0870e25c1c2243c9384d9e
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phx.Gen.Presence do @shortdoc "Generates a Presence tracker" @moduledoc """ Generates a Presence tracker for your application. mix phx.gen.presence mix phx.gen.presence MyPresence The only argument is the module name of the Presence tracker, which defaults to Presence. A...
23.944444
94
0.647912
8553fe8e754889fb2846423b4f14be2602100022
1,211
exs
Elixir
test/protocol/produce_request/topic_partition_test.exs
chribben/asterix
92d30b7489df9209168f3991b8d5ead500054cb6
[ "MIT" ]
1
2015-02-20T19:25:29.000Z
2015-02-20T19:25:29.000Z
test/protocol/produce_request/topic_partition_test.exs
chribben/asterix
92d30b7489df9209168f3991b8d5ead500054cb6
[ "MIT" ]
null
null
null
test/protocol/produce_request/topic_partition_test.exs
chribben/asterix
92d30b7489df9209168f3991b8d5ead500054cb6
[ "MIT" ]
null
null
null
defmodule TopicPartitionTest do use ExUnit.Case alias Asterix.Protocol.Encodeable alias Asterix.Protocol.ProduceRequest.TopicPartition alias Asterix.Protocol.ProduceRequest.PartitionMessageSet test "TopicPartition with no partition message sets encodes correctly" do topic_partition = %TopicPartition{ ...
28.833333
75
0.665566
855409f1fcedaed512c76e7cd35a607ba4152211
1,188
ex
Elixir
lib/nostalgic_games_web/router.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
lib/nostalgic_games_web/router.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
lib/nostalgic_games_web/router.ex
rafaelcorazzi/nostalgic_games
34734aa3a89194730d0cc5e137f3db5f597979d4
[ "MIT" ]
null
null
null
defmodule NostalgicGamesWeb.Router do use NostalgicGamesWeb, :router pipeline :api do plug :accepts, ["json"] end scope "/api", NostalgicGamesWeb do pipe_through :api resources "/console", ConsoleController, only: [:index, :create, :show, :delete, :update] resources "/games", GamesController, ...
33
93
0.710438
8554255e84007388b5e8793a4d3188d847ccb33d
849
ex
Elixir
test/support/factory.ex
markglenn/shelving
d76a2df11186ace3fbca14e00a2b5010692b5ee0
[ "MIT" ]
null
null
null
test/support/factory.ex
markglenn/shelving
d76a2df11186ace3fbca14e00a2b5010692b5ee0
[ "MIT" ]
null
null
null
test/support/factory.ex
markglenn/shelving
d76a2df11186ace3fbca14e00a2b5010692b5ee0
[ "MIT" ]
null
null
null
defmodule Shelving.Factory do use ExMachina.Ecto, repo: Shelving.Repo def account_factory do %Shelving.Accounts.Account{ name: sequence(:name, &"Account #{&1}"), slug: sequence(:slug, &"account-#{&1}") } end def item_factory do %Shelving.Products.Item{ name: sequence(:name, &"Ite...
24.257143
79
0.608952
855444715822d060c16b219fdc4bfea7dbf5013a
2,868
exs
Elixir
apps/legion/config/canary.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion/config/canary.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion/config/canary.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
use Mix.Config six_months = 15_552_000 half_of_an_hour = 3_600 three_minutes = 180 config :ua_inspector, database_path: Path.join(Mix.Utils.mix_home(), "ua_inspector") # Please check configuration documentation for the meanings of the values. config :legion, Legion.Identity.Auth.AccessControl, permission_set_na...
27.314286
76
0.770572
85545b9d583e7367168dd85cf078eb54e1d91f8a
840
exs
Elixir
.formatter.exs
justmendes/corker
b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d
[ "0BSD" ]
5
2019-05-24T17:00:42.000Z
2019-05-27T13:50:56.000Z
.formatter.exs
justmendes/corker
b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d
[ "0BSD" ]
17
2019-05-27T08:59:36.000Z
2020-02-17T06:45:27.000Z
.formatter.exs
justmendes/corker
b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d
[ "0BSD" ]
1
2019-08-27T14:27:06.000Z
2019-08-27T14:27:06.000Z
[ import_deps: [:ecto], inputs: [ "*.{.ex,exs}", "mix.exs", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}", "apps/*/mix.exs", "apps/*/{config,lib,test,priv}/**/*.{ex,exs}" ], line_length: 80, locals_without_parens: [ # elixir defstruct: :*, defmodule: :*, send: :...
14.736842
49
0.419048
85546e9c582fc95e5a6f03ff5a60ccd541fa5f63
961
ex
Elixir
test/support/channel_case.ex
obahareth/crypto-monitor
bd9e9f1e9627fad582329afe2c66e2de4c95768b
[ "MIT" ]
null
null
null
test/support/channel_case.ex
obahareth/crypto-monitor
bd9e9f1e9627fad582329afe2c66e2de4c95768b
[ "MIT" ]
null
null
null
test/support/channel_case.ex
obahareth/crypto-monitor
bd9e9f1e9627fad582329afe2c66e2de4c95768b
[ "MIT" ]
null
null
null
defmodule CryptoMonitorWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the test case intera...
25.289474
75
0.723205
855479f0673ccbfe19af9dcfa48ad3c8fde9c889
1,746
ex
Elixir
lib/exdns/server/tcp_server.ex
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
16
2016-05-26T10:11:57.000Z
2021-01-08T15:09:19.000Z
lib/exdns/server/tcp_server.ex
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
9
2016-08-11T00:48:27.000Z
2020-09-16T22:10:07.000Z
lib/exdns/server/tcp_server.ex
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
11
2016-08-10T08:13:36.000Z
2021-04-03T10:20:11.000Z
defmodule Exdns.Server.TcpServer do @moduledoc """ Server for receiving TCP packets. """ @behaviour :gen_nb_server require Logger def start_link(_name, inet_family, address, port) do Logger.debug("Starting TCP server for #{inet_family} on address #{inspect address} port #{port}") :gen_nb_server.st...
25.676471
141
0.659221
855481baebffb26915bd89fff83f3125bb856938
853
ex
Elixir
apps/tai/lib/tai/venue_adapters/ftx/funding_rates.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venue_adapters/ftx/funding_rates.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/venue_adapters/ftx/funding_rates.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
defmodule Tai.VenueAdapters.Ftx.FundingRates do alias ExFtx.{Futures} alias Tai.VenueAdapters.Ftx def funding_rates(venue_id) do with {:ok, venue_funding_rates} <- Futures.FundingRates.get() do funding_rates = venue_funding_rates |> Enum.map(& build(&1, venue_id)) {:ok, funding_rates} end e...
29.413793
76
0.71864
855487ef91e5e7cc7a084ea31d195c38eb4db88c
302
ex
Elixir
lib/elixir_ecommerce_web/serializers/department_serializer.ex
abmBispo/elixir-ecommerce
0507f7621d68ba8f0f65409a1a503683b7c0d37b
[ "MIT" ]
4
2020-05-29T03:33:02.000Z
2021-08-21T23:01:48.000Z
lib/elixir_ecommerce_web/serializers/department_serializer.ex
abmBispo/elixir-ecommerce
0507f7621d68ba8f0f65409a1a503683b7c0d37b
[ "MIT" ]
2
2020-07-29T01:50:46.000Z
2021-08-31T20:10:47.000Z
lib/elixir_ecommerce_web/serializers/department_serializer.ex
abmBispo/elixir-ecommerce
0507f7621d68ba8f0f65409a1a503683b7c0d37b
[ "MIT" ]
1
2022-03-21T18:13:21.000Z
2022-03-21T18:13:21.000Z
defmodule ElixirEcommerce.Serializers.DepartmentSerializer do alias ElixirEcommerce.Department def serialize(%Department{ name: name }), do: %{ name: name } def serialize(departments) when is_list(departments) do Enum.map(departments, fn(department) -> serialize(department) end) end end
30.2
70
0.768212
855494e182e703a227ee56dfdfc733971a457f4f
5,169
ex
Elixir
clients/fusion_tables/lib/google_api/fusion_tables/v2/model/column.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/fusion_tables/lib/google_api/fusion_tables/v2/model/column.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/fusion_tables/lib/google_api/fusion_tables/v2/model/column.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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 ...
62.277108
1,615
0.733991
8554ae7f2018a807ee0f8ce08da3f6a00c398d3f
820
ex
Elixir
test/support/formatters/stap_factory.ex
membraneframework/membrane-element-rtp-h264
807befb264775c9994108403214e039d039e18b1
[ "Apache-2.0" ]
3
2019-10-15T05:29:07.000Z
2020-02-18T12:43:44.000Z
test/support/formatters/stap_factory.ex
geometerio/membrane_rtp_h264_plugin
21b48d78128a3bd663da82495134957c1d654a88
[ "Apache-2.0" ]
7
2020-07-29T20:57:41.000Z
2021-11-16T09:44:56.000Z
test/support/formatters/stap_factory.ex
membraneframework/membrane-element-rtp-h264
807befb264775c9994108403214e039d039e18b1
[ "Apache-2.0" ]
1
2021-06-21T23:13:44.000Z
2021-06-21T23:13:44.000Z
defmodule Membrane.Support.Formatters.STAPFactory do @moduledoc false @spec sample_data() :: [binary()] def sample_data do Enum.map(1..10, &<<&1>>) end @spec binaries_into_stap([binary()]) :: binary() def binaries_into_stap(binaries) do binaries |> into_aggregation_units() |> Enum.reduce(&(...
29.285714
98
0.652439
8554cb4c790ddd477f7a38c91fd090c18bc25f2d
239
exs
Elixir
elixir/priv/repo/migrations/20210313001148_company_id_column_in_transactions.exs
pauleibye/web-homework
1eb7a781796ee9186c8591207f87de96d138d5fd
[ "MIT" ]
1
2021-03-15T04:09:23.000Z
2021-03-15T04:09:23.000Z
elixir/priv/repo/migrations/20210313001148_company_id_column_in_transactions.exs
pauleibye/web-homework
1eb7a781796ee9186c8591207f87de96d138d5fd
[ "MIT" ]
null
null
null
elixir/priv/repo/migrations/20210313001148_company_id_column_in_transactions.exs
pauleibye/web-homework
1eb7a781796ee9186c8591207f87de96d138d5fd
[ "MIT" ]
null
null
null
defmodule Homework.Repo.Migrations.CompanyIdColumnInTransactions do use Ecto.Migration def change do alter table(:transactions) do add(:company_id, references(:companies, type: :uuid, on_delete: :nothing)) end end end
23.9
80
0.74477
8554dcb0ecaecc54e5840a56f954ecdb435cead1
214
exs
Elixir
test/phoenixstarter_web/controllers/page_controller_test.exs
nickyeager/phoenix-starter
6940499c28b460916d610929e6a6fec256345018
[ "MIT" ]
null
null
null
test/phoenixstarter_web/controllers/page_controller_test.exs
nickyeager/phoenix-starter
6940499c28b460916d610929e6a6fec256345018
[ "MIT" ]
2
2021-03-10T19:22:36.000Z
2021-05-11T15:05:23.000Z
test/phoenixstarter_web/controllers/page_controller_test.exs
nickyeager/phoenix-starter
6940499c28b460916d610929e6a6fec256345018
[ "MIT" ]
null
null
null
defmodule PhoenixStarterWeb.PageControllerTest do use PhoenixStarterWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
23.777778
60
0.700935
85550096e8c2680747694763d21f9aa166ee0b95
349
exs
Elixir
test/util_test.exs
voode/redlock
a929fd03f04706dd79b2c2f53c1cda8d86f67d25
[ "MIT" ]
21
2018-01-10T08:38:31.000Z
2022-01-30T19:15:25.000Z
test/util_test.exs
voode/redlock
a929fd03f04706dd79b2c2f53c1cda8d86f67d25
[ "MIT" ]
16
2017-10-09T03:31:25.000Z
2021-09-01T15:06:49.000Z
test/util_test.exs
voode/redlock
a929fd03f04706dd79b2c2f53c1cda8d86f67d25
[ "MIT" ]
17
2018-05-17T11:30:14.000Z
2022-01-28T12:46:28.000Z
defmodule Redlock.UtilTest do use ExUnit.Case alias Redlock.Util describe "calc_backoff/3" do test "returns the backoff when the attemp_counts are high enough to overflow" do base_ms = 300 max_ms = 3000 attempt_counts = 1016 assert is_number(Util.calc_backoff(base_ms, max_ms, attemp...
21.8125
84
0.713467
855524b23bccc9a90726ee2e087dac611b5a2b7d
3,074
ex
Elixir
lib/muontrap/port.ex
se-apc/muontrap
a6d91b6b5676c7345e53420c615b04ff3798fe3c
[ "Apache-2.0" ]
null
null
null
lib/muontrap/port.ex
se-apc/muontrap
a6d91b6b5676c7345e53420c615b04ff3798fe3c
[ "Apache-2.0" ]
null
null
null
lib/muontrap/port.ex
se-apc/muontrap
a6d91b6b5676c7345e53420c615b04ff3798fe3c
[ "Apache-2.0" ]
null
null
null
defmodule MuonTrap.Port do @moduledoc false @force_port_close -11 @spec muontrap_path() :: String.t() def muontrap_path() do Application.app_dir(:muontrap, ["priv", "muontrap"]) end @doc """ Run a command in a similar way to System.cmd/3, but taking MuonTrap options This code is mostly copy/past...
30.435644
93
0.64216
85552579d8b30163375c8637b160eac5e9f4291e
2,304
ex
Elixir
token_registry/lib/token_registry_web/controllers/user_settings_controller.ex
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
1
2021-12-18T16:17:19.000Z
2021-12-18T16:17:19.000Z
token_registry/lib/token_registry_web/controllers/user_settings_controller.ex
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
null
null
null
token_registry/lib/token_registry_web/controllers/user_settings_controller.ex
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
null
null
null
defmodule TokenRegistryWeb.UserSettingsController do use TokenRegistryWeb, :controller alias TokenRegistry.Accounts alias TokenRegistryWeb.UserAuth plug :assign_email_and_password_changesets def edit(conn, _params) do render(conn, "edit.html") end def update(conn, %{"action" => "update_email"} = p...
30.72
81
0.657986
85556818ab2162b8d1b4989360d320c7324ed0ee
1,322
exs
Elixir
config/dev.exs
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "MIT" ]
null
null
null
config/dev.exs
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "MIT" ]
null
null
null
config/dev.exs
andy-c-jones/basic-phoenix-app
7ebc473df5dd658ec4b7621e7e9ab0040d905394
[ "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 :basic_phoenix_app, BasicPhoenixApp.Endpoint, ...
30.744186
74
0.731467
85559f21a4399bce3d645a2688864f9e1f75805c
60
exs
Elixir
test/test_helper.exs
annatel/padlock
0ae17d69078954febb2aaaeef5a6a4d0b5173b5e
[ "MIT" ]
1
2021-06-22T10:15:23.000Z
2021-06-22T10:15:23.000Z
test/test_helper.exs
annatel/padlock
0ae17d69078954febb2aaaeef5a6a4d0b5173b5e
[ "MIT" ]
1
2021-06-22T15:14:57.000Z
2021-06-22T15:14:57.000Z
test/test_helper.exs
annatel/padlock
0ae17d69078954febb2aaaeef5a6a4d0b5173b5e
[ "MIT" ]
null
null
null
{:ok, _pid} = Padlock.TestRepo.start_link() ExUnit.start()
15
43
0.7
8555d6ecc8af0d7c96097de022fb51459a286b70
2,869
ex
Elixir
lib/elixir/lib/range.ex
milmazz/elixir
b62704e9e223ea00da75e2ad277e5468f728c5d3
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/range.ex
milmazz/elixir
b62704e9e223ea00da75e2ad277e5468f728c5d3
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/range.ex
milmazz/elixir
b62704e9e223ea00da75e2ad277e5468f728c5d3
[ "Apache-2.0" ]
null
null
null
defmodule Range do @moduledoc """ Defines a range. A range represents a discrete number of values where the first and last values are integers. Ranges can be either increasing (`first <= last`) or decreasing (`first > last`). Ranges are also always inclusive. A range is represented internally as a st...
23.710744
79
0.599861
8555e319c9e4331f11fc32fde595dee3a63b9c74
301
ex
Elixir
lib/app/users/user.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
lib/app/users/user.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
lib/app/users/user.ex
mzgajner/smena
6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9
[ "Unlicense" ]
null
null
null
defmodule Smena.Users.User do use Ecto.Schema import Ecto.Changeset schema "users" do field :name, :string timestamps() end @doc false def changeset(user, attrs) do user |> cast(attrs, [:name]) |> validate_required([:name]) |> unique_constraint(:name) end end
15.842105
33
0.644518
8555f22c142cc5c909da03cfa338cbad98b6ca3f
139,173
ex
Elixir
lib/elixir/lib/enum.ex
Tuxified/elixir-lang
7b70999fd017fa8a7ea150ec1b60c4e41e0c7b06
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
Tuxified/elixir-lang
7b70999fd017fa8a7ea150ec1b60c4e41e0c7b06
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/enum.ex
Tuxified/elixir-lang
7b70999fd017fa8a7ea150ec1b60c4e41e0c7b06
[ "Apache-2.0" ]
null
null
null
defprotocol Enumerable do @moduledoc """ Enumerable protocol used by `Enum` and `Stream` modules. When you invoke a function in the `Enum` module, the first argument is usually a collection that must implement this protocol. For example, the expression `Enum.map([1, 2, 3], &(&1 * 2))` invokes `Enumerable.r...
29.121783
118
0.616391
85566cdc7d6cb1ef76a19be0da54cf8b278efd01
11,598
ex
Elixir
lib/logger_json.ex
benwilson512/logger_json
712452fbd6f2d6b25648bdd9504df3eaee9c469c
[ "MIT" ]
null
null
null
lib/logger_json.ex
benwilson512/logger_json
712452fbd6f2d6b25648bdd9504df3eaee9c469c
[ "MIT" ]
null
null
null
lib/logger_json.ex
benwilson512/logger_json
712452fbd6f2d6b25648bdd9504df3eaee9c469c
[ "MIT" ]
null
null
null
defmodule LoggerJSON do @moduledoc """ JSON console back-end for Elixir Logger. It can be used as drop-in replacement for default `:console` Logger back-end in cases where you use use Google Cloud Logger or other JSON-based log collectors. ## Log Format By-default, generated JSON is compatible with [Go...
29.81491
120
0.643214
8556888119cb301813f46483ac8b01bc88568be2
1,105
ex
Elixir
ex_api/ex_api/top_tags_aggregator.ex
zemuldo/zemuldo.com.backend
0d9ee45e8595f9e154744e68eb820cce01905bac
[ "MIT" ]
2
2018-03-02T11:29:33.000Z
2019-10-26T18:38:01.000Z
ex_api/ex_api/top_tags_aggregator.ex
zemuldo/zemuldo.com.backend
0d9ee45e8595f9e154744e68eb820cce01905bac
[ "MIT" ]
5
2018-01-30T11:40:56.000Z
2021-07-12T05:30:02.000Z
ex_api/ex_api/top_tags_aggregator.ex
zemuldo/zemuldo.com.backend
0d9ee45e8595f9e154744e68eb820cce01905bac
[ "MIT" ]
1
2020-07-25T15:07:12.000Z
2020-07-25T15:07:12.000Z
defmodule ExApi.TopTagsAggregator do use GenServer alias ExApi.MongoDB def get_tags() do GenServer.call(__MODULE__, :get_tags) end def start_link(_) do GenServer.start_link(__MODULE__, %{}, name: __MODULE__) end def init(state) do tags = aggregate() {:ok, state |> Map.put(:tags, tags)}...
23.020833
78
0.61086
8556bb62829c2f3a938b8145d4efc42dac9474db
7,062
ex
Elixir
lib/nsq/config.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
null
null
null
lib/nsq/config.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
9
2020-04-05T15:39:46.000Z
2020-04-06T17:29:00.000Z
lib/nsq/config.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
null
null
null
defmodule NSQ.Config do @ms 1 @seconds 1000 * @ms @minutes 60 * @seconds @default_config %{ dial_timeout: 1000, # Deadlines for network reads and writes read_timeout: 1 * @minutes, write_timeout: 1 * @seconds, # {host, port} tuples identifying where we should look for nsqd/nsqlookupd. ...
30.973684
118
0.659303
8556f1fdfbdfe8fd991c955063868e1d37a01994
4,484
exs
Elixir
test/oban/job_test.exs
maxmarcon/oban
1834b741024974355937d708a8e3549e80a42e20
[ "Apache-2.0" ]
null
null
null
test/oban/job_test.exs
maxmarcon/oban
1834b741024974355937d708a8e3549e80a42e20
[ "Apache-2.0" ]
null
null
null
test/oban/job_test.exs
maxmarcon/oban
1834b741024974355937d708a8e3549e80a42e20
[ "Apache-2.0" ]
null
null
null
defmodule Oban.JobTest do use Oban.Case, async: true use ExUnitProperties doctest Oban.Job describe "scheduling with new/2" do test "scheduling a job for the future using :schedule_in" do changeset = Job.new(%{}, worker: Fake, schedule_in: 10) assert changeset.changes[:state] == "scheduled" ...
34.75969
95
0.596343
8557116a08292f4b90076ba93fe4010b5efa9fdc
6,329
exs
Elixir
lib/elixir/test/elixir/io_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
1
2017-07-25T21:46:25.000Z
2017-07-25T21:46:25.000Z
lib/elixir/test/elixir/io_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/io_test.exs
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
1
2017-07-25T21:46:48.000Z
2017-07-25T21:46:48.000Z
Code.require_file "test_helper.exs", __DIR__ defmodule IOTest do use ExUnit.Case doctest IO import ExUnit.CaptureIO test "read with count" do {:ok, file} = File.open(Path.expand('fixtures/file.txt', __DIR__), [:charlist]) assert 'FOO' == IO.read(file, 3) assert File.close(file) == :ok end t...
33.664894
94
0.599147
8557160272976cb3434dfd258eb566106f899b96
1,123
exs
Elixir
config/config.exs
carakan/soft_repo
86523030de97d7f4c5bc388ad9ba3f5df9177b66
[ "MIT" ]
2
2018-10-25T12:20:28.000Z
2018-12-25T11:52:52.000Z
config/config.exs
carakan/soft_repo
86523030de97d7f4c5bc388ad9ba3f5df9177b66
[ "MIT" ]
null
null
null
config/config.exs
carakan/soft_repo
86523030de97d7f4c5bc388ad9ba3f5df9177b66
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.225806
73
0.75512
85574ffda9109525ea9aa578336ab80d0789ef15
1,213
ex
Elixir
lib/simple_budget_web/controllers/login_controller.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
2
2019-04-02T01:06:40.000Z
2019-05-13T01:12:24.000Z
lib/simple_budget_web/controllers/login_controller.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
7
2018-12-27T12:33:38.000Z
2021-03-08T22:31:14.000Z
lib/simple_budget_web/controllers/login_controller.ex
corybuecker/simple-budget
d86241ff712552267da87052120468b01d2b8f41
[ "MIT" ]
null
null
null
defmodule SimpleBudgetWeb.LoginController do use SimpleBudgetWeb, :controller require Logger alias SimpleBudget.TokenAuth.Email alias SimpleBudget.TokenAuth.Google action_fallback SimpleBudgetWeb.FallbackController def index(conn, _params) do conn |> put_resp_header("cache-control", "no-store, p...
23.326923
60
0.615829
855773bb296c9512396dc875ce5a62f9abb1db4a
2,202
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instance_group_manager_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/instance_group_manager_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instance_group_manager_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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 ...
40.777778
194
0.729791
85578e32cfb87e253bd5aec623f38ee9898b1829
1,190
exs
Elixir
iterative_gambling_simulator.exs
pmarreck/elixir-snippets
5f5ee26087bc2ded4e71c4c3eeff1231310ff358
[ "BSD-3-Clause" ]
34
2015-02-27T14:41:12.000Z
2021-09-26T06:06:18.000Z
iterative_gambling_simulator.exs
pmarreck/elixir-snippets
5f5ee26087bc2ded4e71c4c3eeff1231310ff358
[ "BSD-3-Clause" ]
null
null
null
iterative_gambling_simulator.exs
pmarreck/elixir-snippets
5f5ee26087bc2ded4e71c4c3eeff1231310ff358
[ "BSD-3-Clause" ]
3
2016-02-05T16:09:41.000Z
2017-10-21T15:47:04.000Z
defmodule IterativeGamblingSimulator do def start(), do: start(0.49, 2000, 100, 1) def start(win_odds, games_left, 0, bet_per_game) do IO.puts "Ran out of money with #{games_left} games left to play." IO.puts "Win odds: #{win_odds * 100}%" IO.puts "Bet per game: $#{bet_per_game}" end def start(win...
29.02439
80
0.67479
855791cbf4feb151d41d057d25380a310e30a942
1,707
ex
Elixir
lib/eapmd/local.ex
tverlaan/inet_tcp_dist
4036fc4bdc4c91aed2348f2c87363cfc364e735f
[ "MIT" ]
19
2017-05-06T00:34:58.000Z
2020-08-05T11:10:23.000Z
lib/eapmd/local.ex
tverlaan/inet_tcp_dist
4036fc4bdc4c91aed2348f2c87363cfc364e735f
[ "MIT" ]
null
null
null
lib/eapmd/local.ex
tverlaan/inet_tcp_dist
4036fc4bdc4c91aed2348f2c87363cfc364e735f
[ "MIT" ]
1
2019-06-11T09:06:01.000Z
2019-06-11T09:06:01.000Z
defmodule EAPMD.Local do @moduledoc """ Sample of an EAPMD client that just checks if the name is known on this node. You can manually register nodes to make it work. Make sure to register the full node name, eg _foo@bar_. """ # erl_distribution wants us to start a worker process. We don't # need one, t...
27.532258
81
0.629174
85579bc63a81e30261654ccdd7d592f178122445
19,913
ex
Elixir
lib/ecto.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
lib/ecto.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
lib/ecto.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
1
2018-09-21T16:05:29.000Z
2018-09-21T16:05:29.000Z
defmodule Ecto do @moduledoc ~S""" Ecto is split into 4 main components: * `Ecto.Repo` - repositories are wrappers around the data store. Via the repository, we can create, update, destroy and query existing entries. A repository needs an adapter and credentials to communicate to the database ...
33.023217
93
0.680862
85579d03a6220f65f6fd7a1dcc7a01ce38f70198
3,335
exs
Elixir
test/glimesh_web/controllers/user_confirmation_controller_test.exs
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
test/glimesh_web/controllers/user_confirmation_controller_test.exs
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
test/glimesh_web/controllers/user_confirmation_controller_test.exs
itsUnsmart/glimesh.tv
22c532184bb5046f6c6d8232e8bd66ba534c01c1
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.UserConfirmationControllerTest do use GlimeshWeb.ConnCase, async: true alias Glimesh.Accounts alias Glimesh.Repo import Glimesh.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/confirm" do test "renders the confirmation page", %{conn: conn} do ...
35.478723
135
0.653973
8557dcce013ea83a3f0c0ed26254dd45afb26360
1,950
exs
Elixir
clients/smart_device_management/mix.exs
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/smart_device_management/mix.exs
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/smart_device_management/mix.exs
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "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...
29.104478
153
0.671282
8557fa07d00c6afffab7e9e129b460beb2effcfb
1,219
ex
Elixir
lib/team_budget_web/views/error_helpers.ex
adrianomota/team-budget
b105f47f602a0f7a2c184404235b8d004268c346
[ "MIT" ]
null
null
null
lib/team_budget_web/views/error_helpers.ex
adrianomota/team-budget
b105f47f602a0f7a2c184404235b8d004268c346
[ "MIT" ]
2
2021-07-30T15:19:20.000Z
2021-07-31T15:06:24.000Z
lib/team_budget_web/views/error_helpers.ex
adrianomota/team-budget
b105f47f602a0f7a2c184404235b8d004268c346
[ "MIT" ]
null
null
null
defmodule TeamBudgetWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # When using gettext, we typically pass the strings we want # to translate as a static a...
35.852941
79
0.673503
855809c84574b7cac4a4811e937ee1590c5c126c
3,163
exs
Elixir
mix.exs
d-m-u/changelog.com
bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325
[ "MIT" ]
null
null
null
mix.exs
d-m-u/changelog.com
bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325
[ "MIT" ]
null
null
null
mix.exs
d-m-u/changelog.com
bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325
[ "MIT" ]
null
null
null
defmodule Changelog.Mixfile do use Mix.Project Code.compile_file("config/secret_or_env.exs") def project do [ app: :changelog, version: SecretOrEnv.get("APP_VERSION", "0.0.1"), elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix] ++ Mix.compilers(), ...
31.949495
92
0.533354
85586375a4b7dbddc7876b23cf458f8432747b5d
99
exs
Elixir
.formatter.exs
kianmeng/restlax
6cded7cd34c49216d182efe4f71e62321545678d
[ "MIT" ]
1
2021-02-09T09:25:37.000Z
2021-02-09T09:25:37.000Z
.formatter.exs
kianmeng/restlax
6cded7cd34c49216d182efe4f71e62321545678d
[ "MIT" ]
3
2021-05-17T01:33:35.000Z
2022-01-27T00:23:31.000Z
.formatter.exs
kianmeng/restlax
6cded7cd34c49216d182efe4f71e62321545678d
[ "MIT" ]
1
2022-01-27T00:06:03.000Z
2022-01-27T00:06:03.000Z
[ import_deps: [:tesla], inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] ]
19.8
69
0.555556
85587043bdcf7c0c0097a169212870dd2b813dcc
2,678
ex
Elixir
web/controllers/api/v1/consumer_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
38
2016-10-21T08:26:15.000Z
2021-03-19T23:10:40.000Z
web/controllers/api/v1/consumer_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
32
2017-02-19T08:57:35.000Z
2020-02-05T13:15:11.000Z
web/controllers/api/v1/consumer_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
6
2017-11-24T16:02:20.000Z
2022-02-22T07:44:36.000Z
defmodule Kastlex.API.V1.ConsumerController do require Logger use Kastlex.Web, :controller plug Kastlex.Plug.EnsurePermissions def list_groups(conn, _params) do groups = Kastlex.CgCache.get_groups() json(conn, groups) end def show_group(conn, %{"group_id" => group_id}) do case Kastlex.CgCac...
28.189474
75
0.57655
855877fdad787727cf3794d2865aa6da57ade564
1,423
ex
Elixir
lib/apple_pay.ex
jshmrtn/ex-apple-pay
6cb14ecb5ae71952ed51a54378aa5fdf5e34e0ed
[ "MIT" ]
3
2018-02-05T14:27:19.000Z
2020-04-02T13:54:29.000Z
lib/apple_pay.ex
jshmrtn/ex-apple-pay
6cb14ecb5ae71952ed51a54378aa5fdf5e34e0ed
[ "MIT" ]
null
null
null
lib/apple_pay.ex
jshmrtn/ex-apple-pay
6cb14ecb5ae71952ed51a54378aa5fdf5e34e0ed
[ "MIT" ]
1
2020-04-30T12:00:34.000Z
2020-04-30T12:00:34.000Z
defmodule ApplePay do @moduledoc """ Handle Apple Pay Sessions """ alias ApplePay.Configuration alias HTTPoison.Response require Logger @doc """ ## Examples: iex> body = %ApplePay.InitiateSessionBody{ ...> merchant_identifier: "merchant.test.payment.airatel.com", ...> domain_n...
24.964912
112
0.585383
855899e88b0269f77f377e935b3ac879ae2aef75
3,290
ex
Elixir
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/model/operation.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/model/operation.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/model/operation.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...
44.459459
163
0.707903
8558e74caea910c85b488eb08521b972c2121039
255
ex
Elixir
lib/fragment/structured_text/span/strong.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
10
2018-01-12T18:52:53.000Z
2022-02-17T06:00:21.000Z
lib/fragment/structured_text/span/strong.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
12
2018-02-14T23:08:08.000Z
2021-11-22T15:55:41.000Z
lib/fragment/structured_text/span/strong.ex
TheRealReal/prismic-elixir
0850b922be6d2f2d541add8426fe27f8ce5f63eb
[ "MIT" ]
8
2018-05-08T14:02:21.000Z
2021-12-15T08:19:55.000Z
alias Prismic.Fragment.StructuredText.Span defmodule Span.Strong do defstruct [:start, :end] @type t :: %__MODULE__{start: Integer.t(), end: Integer.t()} end defimpl Span, for: Span.Strong do # TODO def serialize(_, _link_resolver), do: "" end
19.615385
62
0.705882
8558e9c702d191292c9a381b09b7def67bbe234e
1,579
ex
Elixir
clients/content/lib/google_api/content/v21/model/pos_custom_batch_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/pos_custom_batch_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/pos_custom_batch_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
33.595745
160
0.752375
8559057b6bf7b03bb542e5cd9ec021462a7b542b
2,185
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/external_vpn_gateway_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.462963
194
0.7254