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
2d685f11486ffef671df25a50c4ade64c4815959
529
exs
Elixir
test/integration_test.exs
kianmeng/mockery
ad843783e890000627c51b30b69a115e73617542
[ "Apache-2.0" ]
85
2017-07-29T22:03:54.000Z
2022-03-29T09:50:49.000Z
test/integration_test.exs
kianmeng/mockery
ad843783e890000627c51b30b69a115e73617542
[ "Apache-2.0" ]
36
2017-07-30T10:12:44.000Z
2021-12-23T12:25:42.000Z
test/integration_test.exs
kianmeng/mockery
ad843783e890000627c51b30b69a115e73617542
[ "Apache-2.0" ]
13
2017-07-29T09:06:47.000Z
2021-05-20T13:36:56.000Z
defmodule IntegrationTest do use ExUnit.Case, async: true import Mockery test "mocked module" do assert IntegrationTest.Mocked.fun() == 1 end test "compile-time mode" do mock(IntegrationTest.Mocked, :fun, 2) assert IntegrationTest.Tested.fun1() == 2 end test "test-env mode" do mock(Int...
19.592593
45
0.688091
2d686a15678405acaf9ecb0da62987a0f8bf841d
372
ex
Elixir
web/views/error_view.ex
smpallen99/elixir_survey_tutorial
24aa40d73cd3254d510e484693c7249ebcf93605
[ "MIT" ]
48
2015-10-02T19:16:02.000Z
2022-01-18T20:50:00.000Z
web/views/error_view.ex
houshuang/survey
948acaf20840af82af1d9af3147acca94cb4fcf8
[ "Apache-2.0" ]
1
2017-01-29T21:46:11.000Z
2017-05-09T02:47:01.000Z
web/views/error_view.ex
houshuang/survey
948acaf20840af82af1d9af3147acca94cb4fcf8
[ "Apache-2.0" ]
15
2015-06-29T21:13:57.000Z
2021-07-27T10:02:40.000Z
defmodule Survey.ErrorView do use Survey.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Server internal error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_template, a...
20.666667
47
0.696237
2d6873068d40631561a436a0af021826d085b2b5
2,395
ex
Elixir
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/network_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/network_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/network_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.916667
135
0.746555
2d68741c0cf6bf6f272ba5f001c1e1eb89d2fb7f
171
exs
Elixir
priv/repo/migrations/20200731021053_create_schemes_chat_id_unique_index.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
487
2020-06-08T03:04:21.000Z
2022-03-31T14:51:36.000Z
priv/repo/migrations/20200731021053_create_schemes_chat_id_unique_index.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
141
2020-06-11T01:03:29.000Z
2022-03-30T20:23:32.000Z
priv/repo/migrations/20200731021053_create_schemes_chat_id_unique_index.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
61
2020-06-10T05:25:03.000Z
2022-03-23T15:54:26.000Z
defmodule PolicrMini.Repo.Migrations.CreateSchemesChatIdUniqueIndex do use PolicrMini.Migration def change do create unique_index(:schemes, [:chat_id]) end end
21.375
70
0.795322
2d68794676ca97833d06e980c878fd7753440170
483
exs
Elixir
test/f1_calendar_bot/cal_test.exs
evbogdanov/f1_calendar_bot
cc9fb51cea19062dde1cb1b1194406de4ff19938
[ "BSD-3-Clause" ]
null
null
null
test/f1_calendar_bot/cal_test.exs
evbogdanov/f1_calendar_bot
cc9fb51cea19062dde1cb1b1194406de4ff19938
[ "BSD-3-Clause" ]
null
null
null
test/f1_calendar_bot/cal_test.exs
evbogdanov/f1_calendar_bot
cc9fb51cea19062dde1cb1b1194406de4ff19938
[ "BSD-3-Clause" ]
null
null
null
defmodule F1CalendarBot.CalTest do use ExUnit.Case alias F1CalendarBot.Cal test "date from string" do assert ~D[2017-03-26] == Cal.parse_date("2017-03-26") end test "days between two dates" do assert 0 == Cal.days_between(~D[2017-01-01], ~D[2017-01-01]) assert 1 == Cal.days_between(~D[2017-01-0...
26.833333
66
0.656315
2d689285e6c8e12fd7573a05b3812bc3d0d59a2c
1,191
ex
Elixir
apps/sample_web/lib/sample_web/channels/user_socket.ex
ODYLIGHT/sample_umbrella
8b4ef00c732e24ccec6d98555d7542dff10a73f9
[ "MIT" ]
1
2020-02-20T11:27:02.000Z
2020-02-20T11:27:02.000Z
apps/sample_web/lib/sample_web/channels/user_socket.ex
ODYLIGHT/sample_umbrella
8b4ef00c732e24ccec6d98555d7542dff10a73f9
[ "MIT" ]
1
2020-04-30T00:58:40.000Z
2020-04-30T00:58:40.000Z
apps/sample_web/lib/sample_web/channels/user_socket.ex
ODYLIGHT/sample_umbrella
8b4ef00c732e24ccec6d98555d7542dff10a73f9
[ "MIT" ]
null
null
null
defmodule SampleWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", SampleWeb.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket, timeout: 45_000 # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be u...
30.538462
83
0.701092
2d68ad8690356bfa1e80d75349ec6e5329800863
2,402
exs
Elixir
mix.exs
GhostGroup/json_api_client
23779eddcde7c9d08e447560140e618a71492bf7
[ "MIT" ]
null
null
null
mix.exs
GhostGroup/json_api_client
23779eddcde7c9d08e447560140e618a71492bf7
[ "MIT" ]
null
null
null
mix.exs
GhostGroup/json_api_client
23779eddcde7c9d08e447560140e618a71492bf7
[ "MIT" ]
null
null
null
defmodule JsonApiClient.Mixfile do use Mix.Project def project do [ app: :json_api_client, version: "3.1.0", elixir: "~> 1.5", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, name: "JsonApiClient", description: description(), package: pac...
24.510204
65
0.529975
2d68b23248de79d5057c478cc68f2caba6465018
1,266
ex
Elixir
monitoring_hub/apps/market_spread_reports_ui/web/channels/report_socket.ex
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
monitoring_hub/apps/market_spread_reports_ui/web/channels/report_socket.ex
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
monitoring_hub/apps/market_spread_reports_ui/web/channels/report_socket.ex
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
defmodule MarketSpreadReportsUI.ReportSocket do use Phoenix.Socket ## Channels channel "reports:market-spread", MarketSpreadReportsUI.ReportsChannel transport :websocket, Phoenix.Transports.WebSocket transport :longpoll, Phoenix.Transports.LongPoll transport :tcp, PhoenixTCP.Transports.TCP, timeout: :i...
33.315789
86
0.720379
2d68ccadf2f9a2b6b7e7c16181efdab2d9d32a90
107
ex
Elixir
test/examples/call.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
1,455
2015-01-03T02:53:19.000Z
2022-03-12T00:31:25.000Z
test/examples/call.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
330
2015-05-14T13:53:13.000Z
2022-03-29T17:12:23.000Z
test/examples/call.ex
staring-frog/dialyxir
b78735f75b325238b7db20d9eed22f018cca5f26
[ "Apache-2.0" ]
146
2015-02-03T18:19:43.000Z
2022-03-07T10:05:20.000Z
defmodule Dialyxir.Examples.Call do def ok() do ok(:error) end def ok(:ok) do :ok end end
10.7
35
0.607477
2d68f210883b4ccd35b41b79d23eaf47162ae4ec
2,801
exs
Elixir
test/db_dets_test.exs
chwevans/db_dets
b8f1b8d0c31184d5b9b9946c306a81dc1b3976ac
[ "MIT" ]
null
null
null
test/db_dets_test.exs
chwevans/db_dets
b8f1b8d0c31184d5b9b9946c306a81dc1b3976ac
[ "MIT" ]
null
null
null
test/db_dets_test.exs
chwevans/db_dets
b8f1b8d0c31184d5b9b9946c306a81dc1b3976ac
[ "MIT" ]
null
null
null
defmodule Db.Dets.Test do use ExUnit.Case @behaviour Db doctest Db.Dets defstruct action: :undefined test "Write then lookup works" do :ok = Db.execute(%Db.Dets.Test{action: :kv_write}, {:foo1, :bar}) assert {:ok, :bar} == Db.execute(%Db.Dets.Test{action: :kv_lookup}, :foo1) end test "Lookup no...
43.765625
132
0.644056
2d691252803d871890db8c6aae6fce0d96502b4d
2,914
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/access_config.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/access_config.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/access_config.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...
45.53125
356
0.731297
2d693cf2489be6549892923eb64465d584ddf76d
10,172
ex
Elixir
lib/nsq/consumer/rdy.ex
blueshift-labs/elixir_nsq
35711fc5f4091f7f1983ffde7ba4f73259c75848
[ "MIT" ]
89
2015-11-17T01:15:02.000Z
2022-01-31T20:17:17.000Z
lib/nsq/consumer/rdy.ex
blueshift-labs/elixir_nsq
35711fc5f4091f7f1983ffde7ba4f73259c75848
[ "MIT" ]
20
2016-06-17T14:15:22.000Z
2019-09-23T13:31:18.000Z
lib/nsq/consumer/rdy.ex
blueshift-labs/elixir_nsq
35711fc5f4091f7f1983ffde7ba4f73259c75848
[ "MIT" ]
33
2016-01-28T15:20:43.000Z
2021-12-18T14:36:19.000Z
defmodule NSQ.Consumer.RDY do @moduledoc """ Consumers have a lot of logic around calculating and distributing RDY. This is where that goes! """ require Logger alias NSQ.ConnInfo alias NSQ.Consumer, as: C alias NSQ.Consumer.Connections import NSQ.Consumer.Helpers @doc """ Initialized from NSQ....
34.134228
136
0.672827
2d69412ddae855b906e8a34089a356ba9e533f14
1,789
ex
Elixir
lib/uro_web/controllers/admin/prop_controller.ex
V-Sekai/uro
0b23da65d5c7e459efcd6b2c3d9bdf91c533b737
[ "MIT" ]
1
2022-01-11T04:05:39.000Z
2022-01-11T04:05:39.000Z
lib/uro_web/controllers/admin/prop_controller.ex
V-Sekai/uro
0b23da65d5c7e459efcd6b2c3d9bdf91c533b737
[ "MIT" ]
35
2021-02-10T08:18:57.000Z
2021-05-06T17:19:50.000Z
lib/uro_web/controllers/admin/prop_controller.ex
V-Sekai/uro
0b23da65d5c7e459efcd6b2c3d9bdf91c533b737
[ "MIT" ]
null
null
null
defmodule UroWeb.Admin.PropController do use UroWeb, :controller alias Uro.UserContent alias Uro.UserContent.Prop def index(conn, _params) do props = UserContent.list_props() render(conn, "index.html", props: props) end def new(conn, _params) do changeset = UserContent.change_prop(%Prop{}) ...
28.396825
67
0.637786
2d6957586995f83ff45b0a39d6f263a0c65bbbd3
116
exs
Elixir
test/workflow/create_user/create_user_permissions.test.exs
Alezrik/user_manager
ef30f87587f652842b335b38dd2222873dbcb56b
[ "MIT" ]
3
2017-04-02T11:17:31.000Z
2017-09-08T09:12:11.000Z
test/workflow/create_user/create_user_permissions.test.exs
Alezrik/user_manager
ef30f87587f652842b335b38dd2222873dbcb56b
[ "MIT" ]
15
2017-02-11T01:08:54.000Z
2017-02-22T09:45:41.000Z
test/workflow/create_user/create_user_permissions.test.exs
Alezrik/user_manager
ef30f87587f652842b335b38dd2222873dbcb56b
[ "MIT" ]
1
2018-06-19T04:10:53.000Z
2018-06-19T04:10:53.000Z
defmodule CreateUserPermissionsTest do use ExUnit.Case doctest UserManager.CreateUser.CreateUserPermissions end
23.2
54
0.87069
2d695772896f46cd98c72236fa8f0ac0f01f2378
2,104
ex
Elixir
clients/android_management/lib/google_api/android_management/v1/model/status_reporting_settings.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/android_management/lib/google_api/android_management/v1/model/status_reporting_settings.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/android_management/lib/google_api/android_management/v1/model/status_reporting_settings.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.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...
37.571429
117
0.765684
2d69689a07e277d18a3f3180bd269795eab319d6
1,135
ex
Elixir
apps/web_api/lib/web_api_web/channels/user_socket.ex
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
1
2020-10-23T19:25:27.000Z
2020-10-23T19:25:27.000Z
apps/web_api/lib/web_api_web/channels/user_socket.ex
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
5
2019-01-11T11:48:08.000Z
2019-01-16T17:29:23.000Z
apps/web_api/lib/web_api_web/channels/user_socket.ex
vapordao/staxx
5110167573e67a91c0865c3265896642ebe4012e
[ "Apache-2.0" ]
7
2019-10-09T05:49:52.000Z
2022-03-23T16:48:45.000Z
defmodule Staxx.WebApiWeb.UserSocket do use Phoenix.Socket, log: :debug ## Channels channel "*", Staxx.WebApiWeb.ApiChannel channel "chain:*", Staxx.WebApiWeb.ChainChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put de...
32.428571
87
0.700441
2d6968a6107b9d8024f491019b0599e71865228b
4,044
ex
Elixir
lib/temple.ex
zimt28/temple
07858739b06cd9f0fa6d76e185514b9a60d922b5
[ "MIT" ]
null
null
null
lib/temple.ex
zimt28/temple
07858739b06cd9f0fa6d76e185514b9a60d922b5
[ "MIT" ]
null
null
null
lib/temple.ex
zimt28/temple
07858739b06cd9f0fa6d76e185514b9a60d922b5
[ "MIT" ]
null
null
null
defmodule Temple do defmacro __using__(_) do quote location: :keep do import Temple end end @doc """ Creates a markup context. All tags must be called inside of a `Temple.temple/1` block. Returns a safe result of the form `{:safe, result}` ## Example ``` team = ["Alice", "Bob", "Car...
22.098361
145
0.587537
2d6a02e5b2c7d23cb8640307e734c2f7d856a26a
1,373
ex
Elixir
test/support/data_case.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
1
2017-07-27T16:03:28.000Z
2017-07-27T16:03:28.000Z
test/support/data_case.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
test/support/data_case.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
defmodule PRM.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every test run...
24.517857
73
0.678806
2d6a117b7c75a8478f23b51762616f90059fd2c0
656
ex
Elixir
repool/lib/repool/service.ex
adigitalmonk/otp_v2
c259b478af8cfa892266eebe107dc5973e2a06c4
[ "MIT" ]
null
null
null
repool/lib/repool/service.ex
adigitalmonk/otp_v2
c259b478af8cfa892266eebe107dc5973e2a06c4
[ "MIT" ]
null
null
null
repool/lib/repool/service.ex
adigitalmonk/otp_v2
c259b478af8cfa892266eebe107dc5973e2a06c4
[ "MIT" ]
5
2021-06-25T18:31:27.000Z
2021-06-28T15:03:45.000Z
defmodule Repool.Service do alias Repool.Core, as: Counter def listen(state) do receive do :inc -> Counter.add(state, 1) :dec -> Counter.add(state, -1) {:message, from} -> send(from, Counter.get(state)) state end end def loop(state) do state |>...
16
51
0.556402
2d6a55aa7c04d5923fa4f801ce5a43f66383901e
1,515
ex
Elixir
lib/google_api/you_tube/v3/model/playlist_item_list_response.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
lib/google_api/you_tube/v3/model/playlist_item_list_response.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
lib/google_api/you_tube/v3/model/playlist_item_list_response.ex
jesteracer/ytb
67e3cab899e4f69e586383f7be2c3855c6beea49
[ "Apache-2.0" ]
null
null
null
# 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...
30.918367
100
0.726073
2d6a5fa1a734f76343ef2c7f2badca12db999dcc
61
ex
Elixir
apps/uniflow_web/lib/uniflow_web/views/page_view.ex
andyl/uniflow
049050d2e41b8242bb1e6c543d715caa0d0e7f02
[ "MIT" ]
null
null
null
apps/uniflow_web/lib/uniflow_web/views/page_view.ex
andyl/uniflow
049050d2e41b8242bb1e6c543d715caa0d0e7f02
[ "MIT" ]
9
2021-05-10T18:31:22.000Z
2021-05-27T12:57:20.000Z
apps/uniflow_web/lib/uniflow_web/views/page_view.ex
andyl/uniflow
049050d2e41b8242bb1e6c543d715caa0d0e7f02
[ "MIT" ]
null
null
null
defmodule UniflowWeb.PageView do use UniflowWeb, :view end
15.25
32
0.803279
2d6a5fe6cf723e473df167b60ab08733a4f05a12
941
ex
Elixir
anituber/test/support/channel_case.ex
Ogiwara-CostlierRain464/Anituber
5ce128883ee609e785416b18cc9ca3ebc3877258
[ "MIT" ]
null
null
null
anituber/test/support/channel_case.ex
Ogiwara-CostlierRain464/Anituber
5ce128883ee609e785416b18cc9ca3ebc3877258
[ "MIT" ]
null
null
null
anituber/test/support/channel_case.ex
Ogiwara-CostlierRain464/Anituber
5ce128883ee609e785416b18cc9ca3ebc3877258
[ "MIT" ]
null
null
null
defmodule AnituberWeb.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 interacts w...
24.763158
70
0.717322
2d6a8362eaf98daeab7768933bcd158cfbebeb06
776
ex
Elixir
lib/hexpm/web/controllers/api/auth_controller.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/controllers/api/auth_controller.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
lib/hexpm/web/controllers/api/auth_controller.ex
hubertpompecki/hexpm
5cd4208b07a70bf2e1490930bf5d577978793b50
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Web.API.AuthController do use Hexpm.Web, :controller plug :required_params, ["domain"] plug :authorize def show(conn, %{"domain" => domain} = params) do key = conn.assigns.key user = conn.assigns.current_user resource = params["resource"] if Key.verify_permissions?(key, domain...
25.032258
61
0.588918
2d6a87939757ded0c80e0f0cec1e41b4fe72846d
4,977
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_organization.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_organization.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_organization.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "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...
54.097826
485
0.696604
2d6b2463593cb79c0a68b48c5611ef2b52a8266a
3,580
ex
Elixir
lib/faker/food.ex
theabrad/faker
7bf54d15f127a2fb845335967b5b601e67960ef0
[ "MIT" ]
null
null
null
lib/faker/food.ex
theabrad/faker
7bf54d15f127a2fb845335967b5b601e67960ef0
[ "MIT" ]
null
null
null
lib/faker/food.ex
theabrad/faker
7bf54d15f127a2fb845335967b5b601e67960ef0
[ "MIT" ]
null
null
null
defmodule Faker.Food do @moduledoc """ Functions for generating food data. """ @doc """ Returns a random complete dish. ## Examples iex> Faker.Food.dish() "Vegetable Soup" iex> Faker.Food.dish() "Fish and chips" iex> Faker.Food.dish() "Pork belly buns" iex> Faker...
22.375
158
0.628212
2d6b26c60db157aaa3dd068203d1b4c92832e1d3
854
exs
Elixir
priv/perf/apps/load_test/test/load_test/runner/watcher_info_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
priv/perf/apps/load_test/test/load_test/runner/watcher_info_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
priv/perf/apps/load_test/test/load_test/runner/watcher_info_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network Pte Ltd # # 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...
32.846154
86
0.759953
2d6b6f749b3f02ae20cc1c6097c2c00b54986cc3
12,094
ex
Elixir
lib/mix/lib/mix/tasks/compile.app.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
1
2019-04-29T12:35:51.000Z
2019-04-29T12:35:51.000Z
lib/mix/lib/mix/tasks/compile.app.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/compile.app.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Compile.App do use Mix.Task.Compiler @recursive true @moduledoc """ Writes an .app file. An `.app` file is a file containing Erlang terms that defines your application. Mix automatically generates this file based on your `mix.exs` configuration. In order to generate the `.app` fi...
32.510753
108
0.634281
2d6b7e496fe55694cc7ae0b0b54975636621abf6
1,301
ex
Elixir
lib/ex_rabbit/application.ex
mathewdgardner/ex_rabbit
72991cddc5af9e60ec5a38029e93bd22943bec85
[ "MIT" ]
null
null
null
lib/ex_rabbit/application.ex
mathewdgardner/ex_rabbit
72991cddc5af9e60ec5a38029e93bd22943bec85
[ "MIT" ]
null
null
null
lib/ex_rabbit/application.ex
mathewdgardner/ex_rabbit
72991cddc5af9e60ec5a38029e93bd22943bec85
[ "MIT" ]
null
null
null
defmodule ExRabbit.Application do @moduledoc """ The root of the `ExRabbit` supervistion tree. It supervises: * `ExRabbit.Connection` - A `GenServer` whose state is a connection to RabbitMQ * `Registry` - A registry for the application to keep track of worker pids * `ExRabbit.Consumer` - A `Supervisor` to...
31.731707
108
0.693313
2d6b8dcdb87bac6bc5551462242cc47efe75f6b4
6,204
ex
Elixir
lib/changelog/notifier.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
null
null
null
lib/changelog/notifier.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
null
null
null
lib/changelog/notifier.ex
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
null
null
null
defmodule Changelog.Notifier do alias Changelog.{ Episode, Mailer, NewsItem, NewsItemComment, Person, Podcast, Repo, Subscription, Slack, EpisodeRequest } alias ChangelogWeb.Email def notify(%NewsItem{feed_only: true}), do: false def notify(item = %NewsItem{type: :au...
27.696429
84
0.697292
2d6bc683ca875f85922579e56765a8f9258e8d00
2,543
ex
Elixir
lib/Easypost/helpers.ex
kevinkoltz/easypost-elixir
79af3f6f1671b5199e4850672f4aeb399908e220
[ "MIT" ]
null
null
null
lib/Easypost/helpers.ex
kevinkoltz/easypost-elixir
79af3f6f1671b5199e4850672f4aeb399908e220
[ "MIT" ]
null
null
null
lib/Easypost/helpers.ex
kevinkoltz/easypost-elixir
79af3f6f1671b5199e4850672f4aeb399908e220
[ "MIT" ]
1
2021-02-13T04:23:44.000Z
2021-02-13T04:23:44.000Z
defmodule Easypost.Helpers do def url(domain, path) when is_binary(domain) and is_binary(path) do Path.join([domain, path]) end def url(domain, path) when is_binary(path) do raise ArgumentError, "Invalid domain for URL: #{inspect(domain)}" end def url(domain, path) when is_binary(domain) do raise ...
28.255556
87
0.557216
2d6bcf7a038bd611532654ea70d015751f247d0c
6,961
exs
Elixir
mix.exs
zven21/commanded
bd3be98a225629816127cf8ef6624632cd09766e
[ "MIT" ]
null
null
null
mix.exs
zven21/commanded
bd3be98a225629816127cf8ef6624632cd09766e
[ "MIT" ]
null
null
null
mix.exs
zven21/commanded
bd3be98a225629816127cf8ef6624632cd09766e
[ "MIT" ]
null
null
null
defmodule Commanded.Mixfile do use Mix.Project @version "1.2.0" def project do [ app: :commanded, version: @version, elixir: "~> 1.6", elixirc_paths: elixirc_paths(Mix.env()), deps: deps(), description: description(), docs: docs(), package: package(), al...
27.513834
86
0.568022
2d6c027eda334034479800beed4d59c8d3744790
24,784
exs
Elixir
apps/site/test/site_web/controllers/schedule/line/helpers_test.exs
thecristen/dotcom
b8dce8683c1a58e631dff42dd3b012786ddccadb
[ "MIT" ]
null
null
null
apps/site/test/site_web/controllers/schedule/line/helpers_test.exs
thecristen/dotcom
b8dce8683c1a58e631dff42dd3b012786ddccadb
[ "MIT" ]
65
2021-05-06T18:38:33.000Z
2022-03-28T20:50:04.000Z
apps/site/test/site_web/controllers/schedule/line/helpers_test.exs
thecristen/dotcom
b8dce8683c1a58e631dff42dd3b012786ddccadb
[ "MIT" ]
null
null
null
defmodule SiteWeb.ScheduleController.Line.HelpersTest do use ExUnit.Case, async: true alias Routes.{Route} alias RoutePatterns.RoutePattern alias SiteWeb.ScheduleController.Line.Helpers alias Stops.{RouteStops, Stop} doctest Helpers @routes_repo_api Application.get_env(:routes, :routes_repo_api) @st...
27.44629
129
0.411717
2d6c0a595f02b163ca4ab42eee267ae5543a57e8
192
exs
Elixir
apps/web/test/web_web/controllers/page_controller_test.exs
renovate-tests/ex
2e02d5a1e59122c13a0ebd2321f5cb291160aaa8
[ "MIT" ]
null
null
null
apps/web/test/web_web/controllers/page_controller_test.exs
renovate-tests/ex
2e02d5a1e59122c13a0ebd2321f5cb291160aaa8
[ "MIT" ]
80
2020-03-02T20:34:55.000Z
2022-03-30T12:11:21.000Z
apps/web/test/web_web/controllers/page_controller_test.exs
9renpoto/phx
06457b5e5630e45e17add8cb5097004dc1ff7e9d
[ "MIT" ]
1
2019-07-28T19:45:59.000Z
2019-07-28T19:45:59.000Z
defmodule WebWeb.PageControllerTest do use WebWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
21.333333
60
0.666667
2d6c50bbac3d26a9f8f2bd14cfcb2d2334d2db67
680
ex
Elixir
test/support/fake_slack/router.ex
jokawachi-hg/Elixir-Slack
342f63f3b75b64ea43328277d568a4ba3c5e3977
[ "MIT" ]
657
2015-01-05T21:56:30.000Z
2022-03-28T12:56:47.000Z
test/support/fake_slack/router.ex
jokawachi-hg/Elixir-Slack
342f63f3b75b64ea43328277d568a4ba3c5e3977
[ "MIT" ]
214
2015-02-15T18:06:20.000Z
2022-02-21T21:15:53.000Z
test/support/fake_slack/router.ex
jokawachi-hg/Elixir-Slack
342f63f3b75b64ea43328277d568a4ba3c5e3977
[ "MIT" ]
207
2015-02-26T23:24:36.000Z
2022-02-27T21:53:57.000Z
defmodule Slack.FakeSlack.Router do use Plug.Router import Plug.Conn plug(:match) plug(:dispatch) get "/api/rtm.start" do conn = fetch_query_params(conn) pid = Application.get_env(:slack, :test_pid) send(pid, {:token, conn.query_params["token"]}) response = ~S( { "ok": true, ...
21.935484
62
0.514706
2d6c535bdf9e3bb0f98a3937b71e86b3b514c03d
84
ex
Elixir
lib/reservation_book_web/views/user_session_view.ex
chargio/reservation_book_phoenix
87f07e390f0da2bed162d55b26d3c73c0f3aea4a
[ "MIT" ]
null
null
null
lib/reservation_book_web/views/user_session_view.ex
chargio/reservation_book_phoenix
87f07e390f0da2bed162d55b26d3c73c0f3aea4a
[ "MIT" ]
null
null
null
lib/reservation_book_web/views/user_session_view.ex
chargio/reservation_book_phoenix
87f07e390f0da2bed162d55b26d3c73c0f3aea4a
[ "MIT" ]
null
null
null
defmodule ReservationBookWeb.UserSessionView do use ReservationBookWeb, :view end
21
47
0.857143
2d6c5b0b6e2de9ac111a15098058064d1d690108
183
exs
Elixir
config/config.exs
kipcole9/cldr_calendars_format
597866b77222a6988626d4b8305427f7ffa8d175
[ "Apache-2.0" ]
null
null
null
config/config.exs
kipcole9/cldr_calendars_format
597866b77222a6988626d4b8305427f7ffa8d175
[ "Apache-2.0" ]
2
2020-04-05T02:55:32.000Z
2020-04-07T06:15:51.000Z
config/config.exs
kipcole9/cldr_calendars_format
597866b77222a6988626d4b8305427f7ffa8d175
[ "Apache-2.0" ]
1
2020-04-06T04:15:22.000Z
2020-04-06T04:15:22.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :ex_cldr, default_backend: MyApp.Cldr
30.5
61
0.803279
2d6c7ebcc8fe6db92ecea4e3395ecd15fdc2258c
2,474
ex
Elixir
lib/groupher_server/cms/delegates/hooks/audition.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
2
2018-03-26T08:56:21.000Z
2018-07-02T22:34:51.000Z
lib/groupher_server/cms/delegates/hooks/audition.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2018-03-21T03:40:50.000Z
2018-07-10T06:33:10.000Z
lib/groupher_server/cms/delegates/hooks/audition.ex
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
null
null
null
defmodule GroupherServer.CMS.Delegate.Hooks.Audition do @moduledoc """ hooks for mention task parse and fmt(see shape function) mentions to Delivery module """ import Ecto.Query, warn: false alias GroupherServer.{CMS, Repo} alias Helper.AuditBot def handle(%{body_html: body_html} = comment) do Au...
33.432432
85
0.719887
2d6c93da951f4c671aae1195a96634d382d94abf
5,388
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_analyze_content_response.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_analyze_content_response.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_analyze_content_response.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...
61.931034
563
0.775056
2d6ca6ec3d6a6ea7fe772dbbb597e3c520c7ecd7
741
ex
Elixir
test/support/channel_case.ex
mark-greene/blackjack-phoenix
e62be7cb67684c5b872ba91c7b3856bf390d1d2e
[ "MIT" ]
null
null
null
test/support/channel_case.ex
mark-greene/blackjack-phoenix
e62be7cb67684c5b872ba91c7b3856bf390d1d2e
[ "MIT" ]
null
null
null
test/support/channel_case.ex
mark-greene/blackjack-phoenix
e62be7cb67684c5b872ba91c7b3856bf390d1d2e
[ "MIT" ]
null
null
null
defmodule Blackjack.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 and query models. Finally, if the test case interacts with the database, it cannot be...
21.794118
56
0.719298
2d6cd21d9ba1dc908200f08316fc7f736a08be2b
1,262
ex
Elixir
2021-09-15-elixir-australia-prom-ex/prom_ex_demo/test/support/conn_case.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
1
2022-02-16T09:00:34.000Z
2022-02-16T09:00:34.000Z
2021-09-15-elixir-australia-prom-ex/prom_ex_demo/test/support/conn_case.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
2021-09-15-elixir-australia-prom-ex/prom_ex_demo/test/support/conn_case.ex
rellen/talks
97e123e6cb331b78fa737c90cedc2974a35243e4
[ "CC-BY-4.0" ]
null
null
null
defmodule PromExDemoWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if...
28.681818
72
0.729002
2d6cdb32f67f70e3b4f87abfc67e4758ab772cc3
581
exs
Elixir
test/floki/filter_out_test.exs
activeprospect/floki
74935f1d4e530ced36c15f9a4e1903550df24845
[ "MIT" ]
null
null
null
test/floki/filter_out_test.exs
activeprospect/floki
74935f1d4e530ced36c15f9a4e1903550df24845
[ "MIT" ]
null
null
null
test/floki/filter_out_test.exs
activeprospect/floki
74935f1d4e530ced36c15f9a4e1903550df24845
[ "MIT" ]
null
null
null
defmodule Floki.FilterOutTest do use ExUnit.Case, async: true test "filter out elements with complex selectors" do html = Floki.parse("<body> <div class=\"has\">one</div> <div>two</div> </body>") assert Floki.FilterOut.filter_out(html, "div[class]") == {"body", [], [{"div", [], ["two"]}]} end test "...
36.3125
97
0.633391
2d6ce6009bd6e297771ab0bfe12a88e999b2266c
1,793
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/transcode_setting.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/transcode_setting.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/transcode_setting.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 ...
35.86
193
0.737869
2d6cef58e594c73a54863653003dcba0479965b1
890
ex
Elixir
clients/cloud_channel/lib/google_api/cloud_channel/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_channel/lib/google_api/cloud_channel/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_channel/lib/google_api/cloud_channel/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
32.962963
74
0.760674
2d6cf034283a0fa7f0e3b9c2fbf6d67ae661645a
3,736
exs
Elixir
apps/engine/test/engine/db/fee_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
4
2020-11-30T17:38:57.000Z
2021-01-23T21:29:41.000Z
apps/engine/test/engine/db/fee_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
24
2020-11-30T17:32:48.000Z
2021-02-22T06:25:22.000Z
apps/engine/test/engine/db/fee_test.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
null
null
null
defmodule Engine.DB.FeeTest do use Engine.DB.DataCase, async: true alias Engine.DB.Fee @term %{ 1 => %{ <<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>> => %{ amount: 43_000_000_000_000, pegged_amount: nil, pegged_currency: nil, pegged_subunit_to_unit: nil...
30.622951
110
0.608672
2d6d083aeea50fb7047d403f35be7c2965b00083
2,126
ex
Elixir
lib/simple_markdown/Renderer/html.ex
ScrimpyCat/SimpleMarkdownEx
30f04a4defd3235c4a150589cb0d4189caf7481f
[ "BSD-2-Clause" ]
5
2016-04-16T00:01:27.000Z
2018-06-27T06:06:21.000Z
lib/simple_markdown/Renderer/html.ex
ScrimpyCat/SimpleMarkdownEx
30f04a4defd3235c4a150589cb0d4189caf7481f
[ "BSD-2-Clause" ]
1
2020-06-24T03:49:32.000Z
2020-06-24T03:49:32.000Z
lib/simple_markdown/Renderer/html.ex
ScrimpyCat/SimpleMarkdownEx
30f04a4defd3235c4a150589cb0d4189caf7481f
[ "BSD-2-Clause" ]
1
2020-06-23T09:06:56.000Z
2020-06-23T09:06:56.000Z
defprotocol SimpleMarkdown.Renderer.HTML do @moduledoc """ A renderer protocol for HTML. Individual rule renderers can be overriden or new ones may be added. Rule types follow the format of structs defined under `SimpleMarkdown.Attribute.*`. e.g. If there is a rule with the name `:hea...
44.291667
140
0.694732
2d6d0b65bf037465ab039818f57d9efdc471059e
1,485
ex
Elixir
lib/slack_bot/plugin.ex
papamitra/slack_bot_plugin
68abf4bbc39674c81720c71c865b7b8df48c9e54
[ "BSD-3-Clause" ]
null
null
null
lib/slack_bot/plugin.ex
papamitra/slack_bot_plugin
68abf4bbc39674c81720c71c865b7b8df48c9e54
[ "BSD-3-Clause" ]
null
null
null
lib/slack_bot/plugin.ex
papamitra/slack_bot_plugin
68abf4bbc39674c81720c71c865b7b8df48c9e54
[ "BSD-3-Clause" ]
null
null
null
defmodule SlackBot.Plugin do use GenServer require Logger @doc """ Called when the bot load this plugin. """ @callback plugin_init(any) :: {:ok, pid, [atom]} @doc """ Called when the bot dispatch command. """ @callback dispatch_command(atom, String.t, any, any) :: :ok defmacro __using__(_) do ...
23.203125
91
0.635017
2d6d131f7f052ab9ecdd46e9a2f3b3cf526cc80d
2,463
exs
Elixir
mix.exs
naramore/ex_spec
d3e52be6efd43f112f58e33f8488434c34608247
[ "MIT" ]
2
2020-06-18T06:24:24.000Z
2021-02-21T02:16:37.000Z
mix.exs
naramore/ex_spec
d3e52be6efd43f112f58e33f8488434c34608247
[ "MIT" ]
45
2019-11-21T10:49:14.000Z
2021-08-02T10:21:01.000Z
mix.exs
naramore/ex_spec
d3e52be6efd43f112f58e33f8488434c34608247
[ "MIT" ]
null
null
null
defmodule Vow.MixProject do use Mix.Project @app :vow @in_production Mix.env() == :prod @version "0.0.2" @source_url "https://github.com/naramore/vow" @description """ Data specification library inspired by clojure.spec """ def project do [ app: @app, version: @version, elixir:...
24.386139
78
0.546894
2d6d17f641b182d8dd9244691fe9fdf54505536f
756
exs
Elixir
tools/astarte_import/mix.exs
shubham11107/astarte
b3fd55e847883e7aa1531b7a2c607bb2b14d124a
[ "Apache-2.0" ]
null
null
null
tools/astarte_import/mix.exs
shubham11107/astarte
b3fd55e847883e7aa1531b7a2c607bb2b14d124a
[ "Apache-2.0" ]
null
null
null
tools/astarte_import/mix.exs
shubham11107/astarte
b3fd55e847883e7aa1531b7a2c607bb2b14d124a
[ "Apache-2.0" ]
null
null
null
defmodule Astarte.Import.MixProject do use Mix.Project def project do [ app: :astarte_import, version: "0.11.0-beta.2", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do...
22.909091
87
0.59127
2d6d38790fd0e78b5349273b850719666599cff2
861
ex
Elixir
exercises/practice/difference-of-squares/.meta/example.ex
ryanzidago/elixir
d00ca743340fcc328c70ee351274f91b57fd4c8d
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/practice/difference-of-squares/.meta/example.ex
ryanzidago/elixir
d00ca743340fcc328c70ee351274f91b57fd4c8d
[ "MIT" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/practice/difference-of-squares/.meta/example.ex
ryanzidago/elixir
d00ca743340fcc328c70ee351274f91b57fd4c8d
[ "MIT" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule Squares do @moduledoc """ Calculate sum of squares, square of sum, difference between two sums from 1 to a given end number. """ @doc """ Calculate sum of squares from 1 to a given end number. """ @spec sum_of_squares(pos_integer) :: pos_integer def sum_of_squares(number) do Enum.reduce(1...
27.774194
100
0.694541
2d6d39a542d677c4ee91aca76324a85bff5e273b
134
exs
Elixir
test/test_helper.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
test/test_helper.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
test/test_helper.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
{:ok, _pid} = GrizzlyTest.Server.start(5000) Grizzly.Supervisor.start_link(GrizzlyTest.Utils.default_options_args()) ExUnit.start()
22.333333
71
0.791045
2d6d480c3055b5966be0f7d9d1a82f37c22b188c
714
ex
Elixir
lib/bagheera_web/gettext.ex
hansjhoffman/bagheera
a816a38a4dd8a4ac841accb0234dfdc15f1aeec2
[ "MIT" ]
3
2020-02-19T14:57:45.000Z
2020-02-26T03:38:09.000Z
lib/bagheera_web/gettext.ex
hansjhoffman/bagheera
a816a38a4dd8a4ac841accb0234dfdc15f1aeec2
[ "MIT" ]
1
2021-09-30T13:51:51.000Z
2021-09-30T13:51:51.000Z
lib/bagheera_web/gettext.ex
hansjhoffman/bagheera
a816a38a4dd8a4ac841accb0234dfdc15f1aeec2
[ "MIT" ]
null
null
null
defmodule BagheeraWeb.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 BagheeraWeb.Gettext # Simple translation gettext("Here is...
28.56
72
0.679272
2d6d4fbafa89203449a21ae89115c6cfe6ccf7ad
1,134
ex
Elixir
lib/speck/runner/checker.ex
fdfzcq/speck
e2f3ed839c11f2de6b7b00259a66c5ffa7c5420c
[ "Apache-2.0" ]
1
2018-11-19T15:54:56.000Z
2018-11-19T15:54:56.000Z
lib/speck/runner/checker.ex
fdfzcq/speck
e2f3ed839c11f2de6b7b00259a66c5ffa7c5420c
[ "Apache-2.0" ]
null
null
null
lib/speck/runner/checker.ex
fdfzcq/speck
e2f3ed839c11f2de6b7b00259a66c5ffa7c5420c
[ "Apache-2.0" ]
null
null
null
defmodule Speck.Runner.Checker do def check(result, expected) when is_list(expected), do: check(result, expected, false) def check(result, :atom), do: is_atom(result) def check(result, :float), do: is_float(result) def check(result, :int), do: is_integer(result) def check(result, :integer), do: check(result,...
49.304348
88
0.680776
2d6de3d39a22ceab12442019ee43d65a5a82e5a8
1,945
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_deploy_processor_version_metadata.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_v1_deploy_processor_version_metadata.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_v1_deploy_processor_version_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...
34.732143
188
0.769152
2d6dfd18ecdf394880c22046fe14da93c775073a
952,894
ex
Elixir
lib/apm.ex
beamuav/elixir_mavlink_util
caab0b8d096e67f12512fa87197e73f53ccda5fd
[ "MIT" ]
null
null
null
lib/apm.ex
beamuav/elixir_mavlink_util
caab0b8d096e67f12512fa87197e73f53ccda5fd
[ "MIT" ]
1
2021-05-20T22:25:53.000Z
2021-05-20T22:25:53.000Z
lib/apm.ex
beamuav/elixir_mavlink_util
caab0b8d096e67f12512fa87197e73f53ccda5fd
[ "MIT" ]
null
null
null
defmodule APM.Types do @typedoc "A MAVLink message" @type message :: APM.Message.Heartbeat | APM.Message.SysStatus | APM.Message.SystemTime | APM.Message.Ping | APM.Message.ChangeOperatorControl | APM.Message.ChangeOperatorControlAck | APM.Message.AuthKey | APM.Message.SetMode | APM.Message.ParamRequestRead | APM....
113.710501
6,797
0.770532
2d6e0fceb04c5c525f8e2e4e481baac636ae6d4c
4,831
exs
Elixir
test/append_to_stream_test.exs
kaikuchn/eventstore
cfe77cb22860526ef3591ba43649ceffc3175259
[ "MIT" ]
null
null
null
test/append_to_stream_test.exs
kaikuchn/eventstore
cfe77cb22860526ef3591ba43649ceffc3175259
[ "MIT" ]
null
null
null
test/append_to_stream_test.exs
kaikuchn/eventstore
cfe77cb22860526ef3591ba43649ceffc3175259
[ "MIT" ]
null
null
null
defmodule EventStore.AppendToStreamTest do use EventStore.StorageCase alias EventStore.EventFactory alias TestEventStore, as: EventStore describe "append to new stream using `:any_version`" do test "should persist events" do stream_uuid = UUID.uuid4() events = EventFactory.create_events(3) ...
32.206667
96
0.681432
2d6e1351f463abdce6c285804a65fd9585523700
17,429
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/zone_operations.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/zone_operations.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/zone_operations.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...
50.665698
1,174
0.629755
2d6e1b389a8f8759367840c7f742ba480b7e3a37
1,167
exs
Elixir
apps/admin_api/test/admin_api/versioned_router_test.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
apps/admin_api/test/admin_api/versioned_router_test.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
apps/admin_api/test/admin_api/versioned_router_test.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
defmodule AdminAPI.VersionedRouterTest do use AdminAPI.ConnCase, async: true # Potential candidate to be moved to a shared library # credo:disable-for-next-line Credo.Check.Design.DuplicatedCode describe "versioned router" do test "accepts v1+json requests" do response = build_conn() |> put_req...
30.710526
105
0.610968
2d6e389114cecf8803d5bf56889b862fedad6e66
584
exs
Elixir
test/receptar_web/controllers/page_controller_test.exs
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
test/receptar_web/controllers/page_controller_test.exs
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
test/receptar_web/controllers/page_controller_test.exs
johannes-mueller/receptar
6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e
[ "Apache-2.0" ]
null
null
null
defmodule ReceptarWeb.PageControllerTest do import Receptar.AccountsFixtures use ReceptarWeb.ConnCase describe "admin user registered" do setup %{conn: conn} do admin_fixture() %{conn: conn} end test "GET / at least one user registered", %{conn: conn} do conn = get(conn, "/") ...
24.333333
97
0.652397
2d6e3c72cec7e4b8391171fc8fe77e0007eeb8a2
148
exs
Elixir
config/config.exs
kennyballou/exdatadog
d3829329dbc41be03f304b8a0a0939e80cdf383c
[ "Apache-2.0" ]
1
2018-05-10T06:34:53.000Z
2018-05-10T06:34:53.000Z
config/config.exs
kennyballou/exdatadog
d3829329dbc41be03f304b8a0a0939e80cdf383c
[ "Apache-2.0" ]
null
null
null
config/config.exs
kennyballou/exdatadog
d3829329dbc41be03f304b8a0a0939e80cdf383c
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :exdatadog, api_key: {:system, "DATADOG_API_KEY"}, app_key: {:system, "DATADOG_APP_KEY"} import_config "#{Mix.env}.exs"
18.5
40
0.709459
2d6e63e6d8f5b1ae5276befa41bab22058562456
1,337
ex
Elixir
apps/api_web/lib/api_web/plugs/version.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/api_web/lib/api_web/plugs/version.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/api_web/lib/api_web/plugs/version.ex
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule ApiWeb.Plugs.Version do @moduledoc """ Sets the API version to use for the request. API keys have a version stored in the database. Anonymous users have a static default. All users can override the default by sending the `MBTA-Version` header. Assigns `:api_version` to a value from the api_web/v...
23.45614
94
0.697083
2d6e6c5356d8ac2ed9e2468c82f7160dab60c07f
325
ex
Elixir
lib/challenge_gov/login_gov/token.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
9
2020-02-26T20:24:38.000Z
2022-03-22T21:14:52.000Z
lib/challenge_gov/login_gov/token.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
15
2020-04-22T19:33:24.000Z
2022-03-26T15:11:17.000Z
lib/challenge_gov/login_gov/token.ex
smartlogic/Challenge_gov
b4203d1fcfb742dd17ecfadb9e9c56ad836d4254
[ "CC0-1.0" ]
4
2020-04-27T22:58:57.000Z
2022-01-14T13:42:09.000Z
defmodule ChallengeGov.LoginGov.Token do @moduledoc """ Token context for login.gov """ use Joken.Config def signer(private_key) do %Joken.Signer{ alg: "RS256", jwk: private_key, jws: JOSE.JWS.from_map(%{"alg" => "RS256", "typ" => "JWT"}) } end def token_config do %{} end...
17.105263
65
0.6
2d6e6d43dabf9c073c65457aba018f50da7488d8
85
ex
Elixir
examples/elixir-phoenix/lib/railwayphoenix/mailer.ex
PixelPasta/starters
bd245840f13f22f11cc271ddc9794feeea455fc0
[ "MIT" ]
null
null
null
examples/elixir-phoenix/lib/railwayphoenix/mailer.ex
PixelPasta/starters
bd245840f13f22f11cc271ddc9794feeea455fc0
[ "MIT" ]
5
2022-01-28T21:45:40.000Z
2022-02-28T03:51:31.000Z
examples/elixir-phoenix/lib/railwayphoenix/mailer.ex
PixelPasta/starters
bd245840f13f22f11cc271ddc9794feeea455fc0
[ "MIT" ]
null
null
null
defmodule Railwayphoenix.Mailer do use Swoosh.Mailer, otp_app: :railwayphoenix end
21.25
45
0.823529
2d6ee59b35e422b09adfd818a2b8fa3a523212d5
190
exs
Elixir
priv/repo/migrations/20210928062348_add_oban_jobs_table.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
12
2021-09-30T20:51:49.000Z
2022-01-27T04:09:32.000Z
priv/repo/migrations/20210928062348_add_oban_jobs_table.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
76
2021-10-01T05:45:11.000Z
2022-03-28T04:12:39.000Z
priv/repo/migrations/20210928062348_add_oban_jobs_table.exs
froseph/ambry
86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1
[ "MIT" ]
2
2021-10-04T19:27:28.000Z
2022-01-13T22:36:38.000Z
defmodule Ambry.Repo.Migrations.AddObanJobsTable do use Ecto.Migration def up do Oban.Migrations.up(version: 10) end def down do Oban.Migrations.down(version: 1) end end
15.833333
51
0.726316
2d6ee6e26046c0b9eb0098eaad01229611238fe1
754
exs
Elixir
couchdb_design/mix.exs
sbezugliy/couchdb_elixir
2fdcb1617918324315a2217b2d1567e9a2c68558
[ "Apache-2.0" ]
null
null
null
couchdb_design/mix.exs
sbezugliy/couchdb_elixir
2fdcb1617918324315a2217b2d1567e9a2c68558
[ "Apache-2.0" ]
null
null
null
couchdb_design/mix.exs
sbezugliy/couchdb_elixir
2fdcb1617918324315a2217b2d1567e9a2c68558
[ "Apache-2.0" ]
null
null
null
defmodule CouchdbDesign.Mixfile do use Mix.Project def project do [app: :couchdb_design, version: "0.1.0", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compil...
22.176471
79
0.6313
2d6eec5c49d984009fda5b0be79f62aecfdf55af
3,347
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_label_annotation.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_label_annotation.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_label_annotation.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "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...
37.188889
332
0.740365
2d6f02b3f4a5df028a3136aa371ed109e2f2508f
1,520
ex
Elixir
pop_kube/test/support/data_case.ex
pastleo/k8s-challenge-2021
83e4403344292e1de53ef901cf2c3457bbeb24dd
[ "MIT" ]
1
2022-01-10T14:55:55.000Z
2022-01-10T14:55:55.000Z
pop_kube/test/support/data_case.ex
pastleo/k8s-challenge-2021
83e4403344292e1de53ef901cf2c3457bbeb24dd
[ "MIT" ]
null
null
null
pop_kube/test/support/data_case.ex
pastleo/k8s-challenge-2021
83e4403344292e1de53ef901cf2c3457bbeb24dd
[ "MIT" ]
null
null
null
defmodule PopKube.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes done to t...
29.230769
88
0.695395
2d6f41a8a68a364a240e073d0651ea5303a4fd84
32,790
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/reports.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/reports.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/reports.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...
43.488064
196
0.604026
2d6f4a7be36606ef4f3860c82efa933673552bb7
2,405
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_build_details.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_build_details.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_build_details.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...
48.1
659
0.775884
2d6f5cf33b4cd50c01900748859c21ed2f720d9a
3,876
exs
Elixir
test/langue/android/expectation_test.exs
gitter-badger/accent-1
b2fdf26e598d832550eceaa40cd8055f93bca216
[ "BSD-3-Clause" ]
null
null
null
test/langue/android/expectation_test.exs
gitter-badger/accent-1
b2fdf26e598d832550eceaa40cd8055f93bca216
[ "BSD-3-Clause" ]
null
null
null
test/langue/android/expectation_test.exs
gitter-badger/accent-1
b2fdf26e598d832550eceaa40cd8055f93bca216
[ "BSD-3-Clause" ]
null
null
null
defmodule LangueTest.Formatter.Android.Expectation do alias Langue.Entry defmodule Simple do use Langue.Expectation.Case def render do """ <?xml version="1.0" encoding="utf-8"?> <resources> <string name="activity_open_in_chrome">Ouvrir avec Chrome</string> <string name="a...
24.074534
138
0.581011
2d6f68f621bc54c924cea124df3ec382199b12fc
967
ex
Elixir
lib/day1/part2.ex
anamba/adventofcode2017
87d886107c45d40b72b925e992ff665330205ad6
[ "MIT" ]
null
null
null
lib/day1/part2.ex
anamba/adventofcode2017
87d886107c45d40b72b925e992ff665330205ad6
[ "MIT" ]
null
null
null
lib/day1/part2.ex
anamba/adventofcode2017
87d886107c45d40b72b925e992ff665330205ad6
[ "MIT" ]
null
null
null
defmodule Day1.Part2 do @doc """ iex> Day1.Part2.part2("1212") 6 iex> Day1.Part2.part2("1221") 0 iex> Day1.Part2.part2("123425") 4 iex> Day1.Part2.part2("123123") 12 iex> Day1.Part2.part2("12131415") 4 """ def part2(input) do input = input ...
20.145833
74
0.552223
2d6f7c9ec11bf6d690ab73b10d3502ff1ca9f749
1,914
exs
Elixir
test/open_telemetry_test.exs
open-telemetry/opentelemetry-erlang-api-
41cb700d60a7dcfdb4165aca73634bbe1c07a33f
[ "Apache-2.0" ]
63
2019-11-26T14:31:03.000Z
2022-01-21T05:05:26.000Z
test/open_telemetry_test.exs
open-telemetry/opentelemetry-erlang-api-
41cb700d60a7dcfdb4165aca73634bbe1c07a33f
[ "Apache-2.0" ]
47
2019-11-15T19:52:52.000Z
2020-10-25T20:09:19.000Z
test/open_telemetry_test.exs
open-telemetry/opentelemetry-erlang-api-
41cb700d60a7dcfdb4165aca73634bbe1c07a33f
[ "Apache-2.0" ]
16
2019-11-10T02:46:12.000Z
2021-10-10T23:54:14.000Z
defmodule OpenTelemetryTest do use ExUnit.Case, async: true require OpenTelemetry.Tracer, as: Tracer require OpenTelemetry.Span, as: Span require Record @fields Record.extract(:span_ctx, from_lib: "opentelemetry_api/include/opentelemetry.hrl") Record.defrecordp(:span_ctx, @fields) @fields Record.extrac...
26.219178
92
0.653083
2d6f83750f1539cb5dacf8662ebfd7a6fcf0e4b9
119
exs
Elixir
scope/sc1.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
scope/sc1.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
scope/sc1.exs
leogtzr/elixir_code_snippets
5c8c921dc165de8fc29bb14046386efa81ce7542
[ "MIT" ]
null
null
null
defmodule Something do @default_name "Leonardo" def foo() do IO.puts "#{@default_name}" end end
11.9
34
0.605042
2d6f8ccce61bf8c891fe9b8aeaf9a6f4431a2d1f
1,914
ex
Elixir
clients/service_control/lib/google_api/service_control/v1/model/span_context.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/service_control/lib/google_api/service_control/v1/model/span_context.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/service_control/lib/google_api/service_control/v1/model/span_context.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.723404
421
0.748694
2d6f95aa9bf8dc67270b88915802d0c3d9ed62f4
496
exs
Elixir
chapter13/working_with_multiple_processes_3.exs
PaoloLaurenti/programming_elixir
b243097dafac7d95632ada1035e8ab62248bbff6
[ "MIT" ]
null
null
null
chapter13/working_with_multiple_processes_3.exs
PaoloLaurenti/programming_elixir
b243097dafac7d95632ada1035e8ab62248bbff6
[ "MIT" ]
null
null
null
chapter13/working_with_multiple_processes_3.exs
PaoloLaurenti/programming_elixir
b243097dafac7d95632ada1035e8ab62248bbff6
[ "MIT" ]
2
2018-03-22T01:47:28.000Z
2018-06-29T00:37:22.000Z
defmodule WorkingWithMultipleProcesses3 do def run do Process.flag(:trap_exit, true) pid = spawn_link(WorkingWithMultipleProcesses3, :send_back, []) send pid, {self(), "42"} :timer.sleep(500) receive_msgs() end def receive_msgs do receive do message -> IO.puts inspect messa...
18.37037
67
0.663306
2d6fb810aa9819aebcd4c68e0aebec8c36bf297a
496
ex
Elixir
clients/client/elixir/lib/ory/model/warning.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/client/elixir/lib/ory/model/warning.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/client/elixir/lib/ory/model/warning.ex
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule Ory.Model.Warning do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"code", :"message" ] @type t :: %__MODULE__{ ...
17.714286
91
0.643145
2d6fc04cf3ad828d48eb84ad4db3531adcb43dc8
1,023
ex
Elixir
web/views/error_helpers.ex
X0nic/officetournament
4d1c7464bf4a6da2a97247ec698e35f9628c6b01
[ "MIT" ]
1
2015-09-18T04:41:01.000Z
2015-09-18T04:41:01.000Z
web/views/error_helpers.ex
X0nic/officetournament
4d1c7464bf4a6da2a97247ec698e35f9628c6b01
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
X0nic/officetournament
4d1c7464bf4a6da2a97247ec698e35f9628c6b01
[ "MIT" ]
null
null
null
defmodule Officetournament.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(...
29.228571
87
0.688172
2d6fc4ddfdc5d9400c607938c829da1d9f9ed5d3
870
ex
Elixir
lib/mix/tasks/seed_from_instances_joinpeertube_org.ex
silicium14/peertube_index
241264a2a20f3ad9088f667bc8313a98b52901c2
[ "MIT" ]
31
2019-06-17T08:55:15.000Z
2022-01-15T19:08:03.000Z
lib/mix/tasks/seed_from_instances_joinpeertube_org.ex
silicium14/peertube_index
241264a2a20f3ad9088f667bc8313a98b52901c2
[ "MIT" ]
7
2019-07-03T23:52:49.000Z
2020-04-12T22:39:29.000Z
lib/mix/tasks/seed_from_instances_joinpeertube_org.ex
silicium14/peertube_index
241264a2a20f3ad9088f667bc8313a98b52901c2
[ "MIT" ]
1
2020-04-06T15:31:33.000Z
2020-04-06T15:31:33.000Z
defmodule Mix.Tasks.SeedFromInstancesJoinpeertubeOrg do use Mix.Task @moduledoc """ Fetches instances from instances.joinpeertube.org and adds the not yet known instances to the instance storage """ @shortdoc """ Fetches instances from instances.joinpeertube.org and adds the not yet known instances to the...
32.222222
115
0.728736
2d6fe0c4f4e84efed97b630d330cac8603b48ff9
1,556
ex
Elixir
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_move_deployment_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_move_deployment_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_move_deployment_request.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...
33.106383
157
0.754499
2d6fef37b74fe2f80bdf62f86bf5351612d81ea4
755
ex
Elixir
lib/kwtool_web/controllers/auth_controller.ex
byhbt/kwtool
8958a160066e3e4c61806202af2563541f2261e3
[ "MIT" ]
5
2021-12-14T08:18:24.000Z
2022-03-29T10:02:48.000Z
lib/kwtool_web/controllers/auth_controller.ex
byhbt/kwtool
8958a160066e3e4c61806202af2563541f2261e3
[ "MIT" ]
32
2021-03-21T16:32:18.000Z
2022-03-23T08:00:37.000Z
lib/kwtool_web/controllers/auth_controller.ex
byhbt/kwtool
8958a160066e3e4c61806202af2563541f2261e3
[ "MIT" ]
1
2021-06-03T17:22:16.000Z
2021-06-03T17:22:16.000Z
defmodule KwtoolWeb.AuthController do use KwtoolWeb, :controller alias Kwtool.Accounts alias Kwtool.Accounts.Guardian alias Kwtool.Accounts.Schemas.User plug :put_layout, "auth.html" def show(conn, _params) do changeset = User.registration_changeset(%{}) render(conn, "sign_up.html", changeset: ch...
26.964286
68
0.66755
2d6ff68e5610acb970e2b0068befa859e7a62025
13,557
ex
Elixir
lib/httpotion.ex
aforward/httpotion
b67f02c9eb0dd285d4f03fce258018f03ce86e11
[ "Unlicense" ]
null
null
null
lib/httpotion.ex
aforward/httpotion
b67f02c9eb0dd285d4f03fce258018f03ce86e11
[ "Unlicense" ]
null
null
null
lib/httpotion.ex
aforward/httpotion
b67f02c9eb0dd285d4f03fce258018f03ce86e11
[ "Unlicense" ]
null
null
null
defmodule HTTPotion.Base do @moduledoc """ The base module of HTTPotion. When used, it defines overridable functions, which allows you to make customized HTTP client modules (see the README). It is used by the `HTTPotion` module to provide the a basic general-purpose client. """ defmacro __using__(_) do ...
37.97479
195
0.620565
2d7010f86c54d3f210ae683cbcf9fca749d82755
20,377
ex
Elixir
clients/content/lib/google_api/content/v21/model/product.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/product.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/product.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...
71.498246
474
0.683319
2d703443309ff876b157a56d0ed60983143eec82
242
exs
Elixir
config/prod.exs
jhonndabi/speedrun_blogengine
3a4ae736be1a3e21634376cff1c2e2a60750dcba
[ "Apache-2.0" ]
null
null
null
config/prod.exs
jhonndabi/speedrun_blogengine
3a4ae736be1a3e21634376cff1c2e2a60750dcba
[ "Apache-2.0" ]
null
null
null
config/prod.exs
jhonndabi/speedrun_blogengine
3a4ae736be1a3e21634376cff1c2e2a60750dcba
[ "Apache-2.0" ]
null
null
null
import Config config :speedrun_blogengine_web, SpeedrunBlogengineWeb.Endpoint, url: [host: "example.com", port: 80], cache_static_manifest: "priv/static/cache_manifest.json" config :logger, level: :info import_config "prod.secret.exs"
24.2
64
0.780992
2d703cdad07dc5b3465995723ef82003d15ac61b
376
ex
Elixir
apps/dockup_ui/web/views/error_view.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
1
2019-08-20T07:45:10.000Z
2019-08-20T07:45:10.000Z
apps/dockup_ui/web/views/error_view.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
null
null
null
apps/dockup_ui/web/views/error_view.ex
rudydydy/dockup
0d05d1ef65cc5523800bd852178361521cd3e7d8
[ "MIT" ]
2
2019-03-08T10:51:34.000Z
2019-08-20T07:45:13.000Z
defmodule DockupUi.ErrorView do use DockupUi.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Server internal 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
2d703ec201f7b4d8a8487c49004608bdebbcc565
4,259
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_app.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_app.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_app.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...
50.702381
272
0.689598
2d704d1c194032a4fa1bb8a9caed3907d69f2adf
300
ex
Elixir
test/schema/list_template.ex
infer-beam/infer
de8bec47635ffdcdefc2ef6ff298101c62681ae5
[ "MIT" ]
5
2022-01-24T10:08:53.000Z
2022-03-09T10:15:14.000Z
test/schema/list_template.ex
infer-beam/infer
de8bec47635ffdcdefc2ef6ff298101c62681ae5
[ "MIT" ]
1
2022-03-15T09:58:33.000Z
2022-03-15T09:58:33.000Z
test/schema/list_template.ex
infer-beam/infer
de8bec47635ffdcdefc2ef6ff298101c62681ae5
[ "MIT" ]
1
2022-02-22T11:42:25.000Z
2022-02-22T11:42:25.000Z
defmodule Infer.Test.Schema.ListTemplate do use Ecto.Schema use Infer.Ecto.Schema, repo: Infer.Test.Repo alias Infer.Test.Schema.List schema "list_templates" do field :title, :string field :hourly_points, :float has_many :lists, List, foreign_key: :from_template_id end end
20
57
0.736667
2d70507b552fcc30ebb0d2fba4d79040ab63b7b5
67
ex
Elixir
lib/pictionary_web/views/page_view.ex
LaudateCorpus1/pictionary
7dd352cb38904e3ba643609d8d5eb90535eb5107
[ "MIT" ]
10
2021-06-20T08:22:32.000Z
2021-07-08T14:35:53.000Z
lib/pictionary_web/views/page_view.ex
Arp-G/pictionary
7dd352cb38904e3ba643609d8d5eb90535eb5107
[ "MIT" ]
3
2021-06-20T14:37:10.000Z
2022-02-13T14:03:37.000Z
lib/pictionary_web/views/page_view.ex
LaudateCorpus1/pictionary
7dd352cb38904e3ba643609d8d5eb90535eb5107
[ "MIT" ]
1
2022-02-08T07:49:51.000Z
2022-02-08T07:49:51.000Z
defmodule PictionaryWeb.PageView do use PictionaryWeb, :view end
16.75
35
0.820896
2d705cd248b7e4dd7a825d283c70a9746faff086
1,418
ex
Elixir
test/support/data_case.ex
dreamingechoes/retrospectivex
cad0df6cfde5376121d841f4a8b36861b6ec5d45
[ "MIT" ]
5
2018-06-27T17:51:51.000Z
2020-10-05T09:59:04.000Z
test/support/data_case.ex
dreamingechoes/retrospectivex
cad0df6cfde5376121d841f4a8b36861b6ec5d45
[ "MIT" ]
1
2018-10-08T11:33:12.000Z
2018-10-08T11:33:12.000Z
test/support/data_case.ex
dreamingechoes/retrospectivex
cad0df6cfde5376121d841f4a8b36861b6ec5d45
[ "MIT" ]
2
2018-10-08T11:31:55.000Z
2020-10-05T09:59:05.000Z
defmodule Retrospectivex.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, eve...
26.259259
77
0.687588
2d706bd19a7136cd1602dd09b581f41e0a86fb21
147
exs
Elixir
test/test_helper.exs
salemove/ex_freddy
78e255121bc722fe3266ceaf04884aadf2f8e2db
[ "MIT" ]
10
2017-06-28T11:39:39.000Z
2021-11-19T23:23:16.000Z
test/test_helper.exs
salemove/ex_freddy
78e255121bc722fe3266ceaf04884aadf2f8e2db
[ "MIT" ]
16
2017-01-07T15:34:36.000Z
2021-05-05T11:07:31.000Z
test/test_helper.exs
salemove/ex_freddy
78e255121bc722fe3266ceaf04884aadf2f8e2db
[ "MIT" ]
4
2018-10-08T19:54:46.000Z
2021-05-05T10:49:10.000Z
ExUnit.start( # We're dealing with real RabbitMQ instance which may add latency assert_receive_timeout: 500 ) Logger.remove_backend(:console)
21
67
0.789116
2d70877385e8b727f0da1912eeade016876d712b
1,398
ex
Elixir
lib/preview_web/telemetry.ex
leandrocp/preview
9dd3a9bae4385dc4935e76f63328f70b9d78fe4d
[ "Apache-2.0" ]
26
2021-01-25T20:30:46.000Z
2021-12-16T08:42:35.000Z
lib/preview_web/telemetry.ex
leandrocp/preview
9dd3a9bae4385dc4935e76f63328f70b9d78fe4d
[ "Apache-2.0" ]
17
2021-01-25T18:45:43.000Z
2021-07-23T15:15:41.000Z
lib/preview_web/telemetry.ex
leandrocp/preview
9dd3a9bae4385dc4935e76f63328f70b9d78fe4d
[ "Apache-2.0" ]
4
2021-01-25T21:32:28.000Z
2021-07-07T12:36:19.000Z
defmodule PreviewWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ # Telemetry poller will execute the given period measurements # every 10_000ms. Learn ...
28.530612
86
0.670243
2d70c1267b9456ecd3bd91fabba1f0bb80692408
1,354
exs
Elixir
config/dev.exs
flipjs/film-is-not-dead
a7ee56362e98ee08403532435dc3c05aa1ee58c3
[ "MIT" ]
null
null
null
config/dev.exs
flipjs/film-is-not-dead
a7ee56362e98ee08403532435dc3c05aa1ee58c3
[ "MIT" ]
null
null
null
config/dev.exs
flipjs/film-is-not-dead
a7ee56362e98ee08403532435dc3c05aa1ee58c3
[ "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 :film_is_not_dead, FilmIsNotDead.Endpoint, htt...
30.772727
73
0.706056
2d70c35160f3d7633e467b7f509816b9a6f07d56
2,281
ex
Elixir
akd_tester/lib/mix/tasks/akd/deploy.ex
corroded/akd
ed15b8929b6d110552a19522f8a17edf75452e87
[ "MIT" ]
null
null
null
akd_tester/lib/mix/tasks/akd/deploy.ex
corroded/akd
ed15b8929b6d110552a19522f8a17edf75452e87
[ "MIT" ]
null
null
null
akd_tester/lib/mix/tasks/akd/deploy.ex
corroded/akd
ed15b8929b6d110552a19522f8a17edf75452e87
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Akd.Deploy do @moduledoc """ This task was generated by Akd TODO: Add more documentation """ use Akd.Mix.Task # This tasks comes with the following switches, but add more if needed # For example: :client (for your apps) @switches [name: :string, build_at: :string, env: :string, ...
27.817073
85
0.675581
2d70d52973fcbe273cf8e8046dc211b2273e6791
2,242
exs
Elixir
test/support/strict_models.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
484
2016-06-19T19:33:31.000Z
2022-03-30T00:04:06.000Z
test/support/strict_models.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
125
2016-12-13T14:28:45.000Z
2022-03-01T00:07:06.000Z
test/support/strict_models.exs
rschef/paper_trail
6ab8b29ee97b46222cc48d376daea70fc5cb8105
[ "MIT" ]
80
2016-09-09T02:12:41.000Z
2022-03-29T20:51:12.000Z
defmodule StrictCompany do use Ecto.Schema alias PaperTrailTest.MultiTenantHelper, as: MultiTenant import Ecto.Changeset import Ecto.Query schema "strict_companies" do field(:name, :string) field(:is_active, :boolean) field(:website, :string) field(:city, :string) field(:address, :strin...
25.770115
92
0.713649
2d70f38603d10ac706d93cd8c9f352327b3e4664
1,184
ex
Elixir
lib/cqrs/guards.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
null
null
null
lib/cqrs/guards.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
null
null
null
lib/cqrs/guards.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
null
null
null
defmodule Cqrs.Guards do @moduledoc false alias Cqrs.{ InvalidCommandError, InvalidDispatcherError, InvalidQueryError, InvalidRouterError } def ensure_is_struct!(module) do unless exports_function?(module, :__struct__, 0) do raise "#{module |> Module.split() |> Enum.join(".")} should ...
25.191489
85
0.702703
2d70fd1371ee774517c016565c4178f879c713e5
362
exs
Elixir
test_app/test/test_app_test.exs
archan937/mecks_unit
b730ab31ce2cbf01551adbd74b47a765646d435e
[ "Unlicense", "MIT" ]
50
2019-01-12T08:58:36.000Z
2022-01-25T22:32:12.000Z
test_app/test/test_app_test.exs
archan937/mecks_unit
b730ab31ce2cbf01551adbd74b47a765646d435e
[ "Unlicense", "MIT" ]
5
2019-02-13T10:19:20.000Z
2020-04-19T08:49:36.000Z
test_app/test/test_app_test.exs
archan937/mecks_unit
b730ab31ce2cbf01551adbd74b47a765646d435e
[ "Unlicense", "MIT" ]
6
2019-02-24T18:58:50.000Z
2022-01-25T22:33:32.000Z
defmodule TestAppTest do use ExUnit.Case use MecksUnit.Case test "greets the world" do assert TestApp.hello() == :world end defmock TestApp do def hello, do: :goodbye end mocked_test "sings Hello, Goodbye" do assert TestApp.hello() == :goodbye end test "greets the world again" do a...
17.238095
39
0.676796
2d7101a2453ba8160b271f122b8fcc7cb30e8d8c
3,018
ex
Elixir
lib/azurex/blob/config.ex
tofran/azurex
c5c2448347a7afb2b22c23b1b87b2b150a8013a9
[ "MIT" ]
5
2020-11-10T09:49:21.000Z
2022-03-22T16:45:16.000Z
lib/azurex/blob/config.ex
tofran/azurex
c5c2448347a7afb2b22c23b1b87b2b150a8013a9
[ "MIT" ]
7
2020-11-06T09:45:17.000Z
2021-05-24T18:17:39.000Z
lib/azurex/blob/config.ex
tofran/azurex
c5c2448347a7afb2b22c23b1b87b2b150a8013a9
[ "MIT" ]
9
2021-01-25T11:11:16.000Z
2022-03-22T16:45:18.000Z
defmodule Azurex.Blob.Config do @moduledoc """ Azurex Blob Config """ @missing_envs_error_msg """ Azurex.Blob.Config: `storage_account_name` and `storage_account_key` or `storage_account_connection_string` required. """ defp conf, do: Application.get_env(:azurex, __MODULE__, []) @doc """ Azure en...
29.300971
95
0.688204
2d710a57a24a2041771ebf201d8cfa327373255c
4,898
ex
Elixir
lib/alcsmg/queue/worker.ex
velimir0xff/alcsmg
7f8845b4e4698009a44769fc593a551c5f9387ee
[ "MIT" ]
null
null
null
lib/alcsmg/queue/worker.ex
velimir0xff/alcsmg
7f8845b4e4698009a44769fc593a551c5f9387ee
[ "MIT" ]
null
null
null
lib/alcsmg/queue/worker.ex
velimir0xff/alcsmg
7f8845b4e4698009a44769fc593a551c5f9387ee
[ "MIT" ]
null
null
null
defmodule Alcsmg.Queue.Worker do require Logger alias Alcsmg.Github alias Alcsmg.Incident alias Alcsmg.Inspection alias Alcsmg.GitDiff @status_context "code-style/alcsmg" use GenServer use Exrabbit.Consumer.DSL, exchange: exchange_declare( exchange: "pull_request", type: "direct", durable: t...
27.672316
95
0.627807
2d715daf2ee9ac877559b33d9955c7de4221c015
7,097
ex
Elixir
kousa/lib/onion/user_session.ex
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
9
2021-03-17T03:56:18.000Z
2021-09-24T22:45:14.000Z
kousa/lib/onion/user_session.ex
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
12
2021-07-06T12:51:13.000Z
2022-03-16T12:38:18.000Z
kousa/lib/onion/user_session.ex
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
4
2021-07-15T20:33:50.000Z
2022-03-27T12:46:47.000Z
defmodule Onion.UserSession do use GenServer, restart: :temporary alias Beef.Rooms # TODO: change this defmodule State do @type t :: %__MODULE__{ user_id: String.t(), avatar_url: String.t(), banner_url: String.t(), username: String.t(), display_na...
31.402655
98
0.62308
2d7162e178ae3bc6504d3be1fb6f908729392ede
1,766
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/edge_configstore_bundle_bad_bundle_violation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/apigee/lib/google_api/apigee/v1/model/edge_configstore_bundle_bad_bundle_violation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/apigee/lib/google_api/apigee/v1/model/edge_configstore_bundle_bad_bundle_violation.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...
35.32
146
0.738958
2d7172e97ea192b78850fc9124b6f281870b9967
1,547
exs
Elixir
.formatter.exs
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
.formatter.exs
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
.formatter.exs
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
locals_without_parens = ~w[ temple c slot html head title style script noscript template body section nav article aside h1 h2 h3 h4 h5 h6 header footer address main p pre blockquote ol ul li dl dt dd figure figcaption div a em strong small s cite q dfn abbr data time code var samp kbd sub sup i b u mark...
44.2
130
0.79638
2d7198fa562202483b5390273f1539ad75074938
3,990
ex
Elixir
lib/assent/http_adapter/mint.ex
lmeier/assent
3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41
[ "MIT" ]
160
2019-09-25T01:07:16.000Z
2022-03-08T00:45:16.000Z
lib/assent/http_adapter/mint.ex
lmeier/assent
3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41
[ "MIT" ]
47
2019-09-25T00:38:44.000Z
2022-03-21T17:35:43.000Z
lib/assent/http_adapter/mint.ex
lmeier/assent
3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41
[ "MIT" ]
30
2019-10-04T15:58:06.000Z
2021-12-10T16:43:52.000Z
defmodule Assent.HTTPAdapter.Mint do @moduledoc """ HTTP adapter module for making http requests with Mint. Mint can be configured by updating the configuration to `http_adapter: {HTTPAdapter.Mint, [...]}`. See `Assent.HTTPAdapter` for more. """ alias Assent.{HTTPAdapter, HTTPAdapter.HTTPResponse} @b...
37.641509
107
0.680702