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
7a3f28fb658816f7381e0e476a9ebe6435bafb05
1,900
exs
Elixir
clients/firebase_dynamic_links/mix.exs
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/firebase_dynamic_links/mix.exs
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/firebase_dynamic_links/mix.exs
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...
28.358209
113
0.666842
7a3f3273ce49c50da52af2fe3d7c7c5e90994a38
163
exs
Elixir
priv/repo/migrations/20160617132345_add_post_summary.exs
rzalamena/pxscratch
19d3db64b52a6d034d818482c88421f697264b56
[ "0BSD" ]
1
2016-06-02T21:21:42.000Z
2016-06-02T21:21:42.000Z
priv/repo/migrations/20160617132345_add_post_summary.exs
rzalamena/pxscratch
19d3db64b52a6d034d818482c88421f697264b56
[ "0BSD" ]
null
null
null
priv/repo/migrations/20160617132345_add_post_summary.exs
rzalamena/pxscratch
19d3db64b52a6d034d818482c88421f697264b56
[ "0BSD" ]
null
null
null
defmodule Pxscratch.Repo.Migrations.AddPostSummary do use Ecto.Migration def change do alter table(:posts) do add :summary, :text end end end
16.3
53
0.705521
7a3f35e3bfc3150ea1b9aeb78fe6b41b42844cc6
3,438
ex
Elixir
clients/jobs/lib/google_api/jobs/v3/model/commute_filter.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v3/model/commute_filter.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v3/model/commute_filter.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.076923
170
0.719314
7a3f379cbecd76d0113d0a0818b2f744fa6482e3
4,072
ex
Elixir
lib/zaryn/accounts/user_token.ex
Arvandazr/zaryn
748805297b399358d28fbcb7ced7588e40f90f03
[ "Apache-2.0" ]
1
2020-01-04T11:24:44.000Z
2020-01-04T11:24:44.000Z
lib/zaryn/accounts/user_token.ex
Arvandazr/zaryn
748805297b399358d28fbcb7ced7588e40f90f03
[ "Apache-2.0" ]
null
null
null
lib/zaryn/accounts/user_token.ex
Arvandazr/zaryn
748805297b399358d28fbcb7ced7588e40f90f03
[ "Apache-2.0" ]
null
null
null
defmodule Zaryn.Accounts.UserToken do use Zaryn.Schema import Ecto.Query @hash_algorithm :sha256 @rand_size 32 # It is very important to keep the reset password token expiry short, # since someone with access to the email may take over the account. @reset_password_validity_in_days 1 @confirm_validity_...
29.085714
95
0.688114
7a3f4b3408f7c630cd84b09c68774255bfd90a8e
747
ex
Elixir
lib/ex_dag/dag/worker.ex
badubizzle/exdag
be5a4ec5ef45dad4193235cc064e4a74426b7de4
[ "MIT" ]
null
null
null
lib/ex_dag/dag/worker.ex
badubizzle/exdag
be5a4ec5ef45dad4193235cc064e4a74426b7de4
[ "MIT" ]
null
null
null
lib/ex_dag/dag/worker.ex
badubizzle/exdag
be5a4ec5ef45dad4193235cc064e4a74426b7de4
[ "MIT" ]
1
2022-01-20T19:17:42.000Z
2022-01-20T19:17:42.000Z
defmodule ExDag.DAG.Worker do @moduledoc """ GenServer for running dag task """ use GenServer require Logger alias ExDag.DAG.DAGTaskRun def run_task(%DAGTaskRun{} = task) do GenServer.start_link(__MODULE__, task, []) end def start_link(task) do GenServer.start_link(__MODULE__, task, []) ...
21.970588
94
0.670683
7a3f54ee07882c5a44cba97c6ba6207af272c54a
17,854
exs
Elixir
test/teslamate/vehicles/vehicle/suspend_test.exs
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
1
2019-10-14T20:49:45.000Z
2019-10-14T20:49:45.000Z
test/teslamate/vehicles/vehicle/suspend_test.exs
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
null
null
null
test/teslamate/vehicles/vehicle/suspend_test.exs
markusdd/teslamate
baada9c5455da2d3c400bf916ab29834772f6a88
[ "MIT" ]
1
2019-10-09T18:17:32.000Z
2019-10-09T18:17:32.000Z
defmodule TeslaMate.Vehicles.Vehicle.SuspendTest do use TeslaMate.VehicleCase, async: true alias TeslaMate.Vehicles.Vehicle test "suspends when idling", %{test: name} do suspendable = online_event( drive_state: %{timestamp: 0, latitude: 0.0, longitude: 0.0}, climate_state: %{is_precond...
29.365132
96
0.612916
7a3f5a506774d2eff4bdce7b94fc3d4ab70febca
42,612
exs
Elixir
apps/andi/test/integration/andi_web/live/data_dictionary_form_test.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/andi/test/integration/andi_web/live/data_dictionary_form_test.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/andi/test/integration/andi_web/live/data_dictionary_form_test.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule AndiWeb.DataDictionaryFormTest do use ExUnit.Case use AndiWeb.Test.PublicAccessCase use Andi.DataCase use AndiWeb.Test.AuthConnCase.IntegrationCase use Placebo import Checkov import SmartCity.TestHelper, only: [eventually: 3] @moduletag shared_data_connection: true import Phoenix.LiveViewT...
38.080429
263
0.614052
7a3f5cfa70c1527da79b560fa5da5f9dc11b7f61
1,538
ex
Elixir
lib/ash/resource/transformers/belongs_to_attribute.ex
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
1
2021-12-27T09:43:29.000Z
2021-12-27T09:43:29.000Z
lib/ash/resource/transformers/belongs_to_attribute.ex
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
null
null
null
lib/ash/resource/transformers/belongs_to_attribute.ex
elbow-jason/ash
eb63bc9d4d24187ad07d9892088b4e55ad6258e4
[ "MIT" ]
null
null
null
defmodule Ash.Resource.Transformers.BelongsToAttribute do @moduledoc """ Creates the attribute for belongs_to relationships that have `define_field?: true` """ use Ash.Dsl.Transformer alias Ash.Dsl.Transformer alias Ash.Error.Dsl.DslError @extension Ash.Resource.Dsl def transform(_resource, dsl_state...
32.723404
100
0.622237
7a3f67793c0ff55e477a8514665da1e1448366ec
1,889
exs
Elixir
clients/dfa_reporting/mix.exs
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/mix.exs
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/mix.exs
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...
28.19403
124
0.663314
7a3f6c178efd225eda217a7043888ed0618d6fbd
99
ex
Elixir
testData/org/elixir_lang/find_usages/module_nested_recursive_declaration.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/find_usages/module_nested_recursive_declaration.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/find_usages/module_nested_recursive_declaration.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
defmodule Parent.De<caret>claration do alias Parent.Declaration alias Parent.{Declaration} end
19.8
38
0.808081
7a3f82aeaf78503f7811accaba08690462954fe3
1,696
ex
Elixir
clients/spectrum/lib/google_api/spectrum/v1explorer/model/event_time.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/spectrum/lib/google_api/spectrum/v1explorer/model/event_time.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/spectrum/lib/google_api/spectrum/v1explorer/model/event_time.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 &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.333333
247
0.752358
7a3f8382d6e074870f89566e2f2e1ea7986bc7da
302
ex
Elixir
prototypes/old_server/apps/server/lib/server/protocol.ex
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
5
2021-03-28T21:20:41.000Z
2021-07-02T22:46:29.000Z
prototypes/old_server/apps/server/lib/server/protocol.ex
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
null
null
null
prototypes/old_server/apps/server/lib/server/protocol.ex
PJS4-projet-gestionnaire-de-contact/Gambett-Server
fa30a85ffa6da480e177d40364dd59f73f0ad892
[ "MIT" ]
null
null
null
defmodule Server.Protocol do @callback init(any()) :: Server.Socket.t() @callback accept(Server.Socket.t()) :: Server.Socket.t() @callback receive_blocking(Server.Socket.t()) :: {:ok, binary() | list()} | {:error, any()} @callback send(Server.Socket.t(), binary()) :: :ok | {:error, any()} end
43.142857
93
0.642384
7a3f9badae3a20a6b961d12886ba394f1b5167d3
1,181
ex
Elixir
lib/surface/components/form/telephone_input.ex
jshmrtn/surface
5ddbbc67b2c165ba53a85c68c0da8fce491472f2
[ "MIT" ]
1
2021-04-30T14:28:08.000Z
2021-04-30T14:28:08.000Z
lib/surface/components/form/telephone_input.ex
davydog187/surface
6547e015a70d06fe20548b5618d0666c4f7481d1
[ "MIT" ]
null
null
null
lib/surface/components/form/telephone_input.ex
davydog187/surface
6547e015a70d06fe20548b5618d0666c4f7481d1
[ "MIT" ]
null
null
null
defmodule Surface.Components.Form.TelephoneInput do @moduledoc """ An input field that let the user enter a **telephone number**. Provides a wrapper for Phoenix.HTML.Form's `telephone_input/3` function. All options passed via `opts` will be sent to `telephone_input/3`, `value`, `pattern` and `class` can be ...
30.282051
91
0.696867
7a3fca0f87eb01cbb9a5760191c22b18b5a73a4e
282
exs
Elixir
test/segment_test.exs
utrustdev/analytics-elixir
41547d37f5ac2651a4b23d3d61b3c0360d4c139d
[ "MIT" ]
null
null
null
test/segment_test.exs
utrustdev/analytics-elixir
41547d37f5ac2651a4b23d3d61b3c0360d4c139d
[ "MIT" ]
null
null
null
test/segment_test.exs
utrustdev/analytics-elixir
41547d37f5ac2651a4b23d3d61b3c0360d4c139d
[ "MIT" ]
null
null
null
defmodule SegmentTest do use ExUnit.Case @segment_test_key System.get_env("SEGMENT_KEY") test "track debugging" do Segment.start_link(@segment_test_key) t = Segment.Analytics.track("343434", "track debugging #{elem(:os.timestamp(), 2)}") Task.await(t) end end
23.5
88
0.716312
7a3fea411a9f2422c19e2e4d647c69973377b4a3
3,659
ex
Elixir
lib/exred_node_suppress.ex
exredorg/exred_node_suppress
6aa0378637bdf2cb9954e42407b7362b2524ad1e
[ "MIT" ]
null
null
null
lib/exred_node_suppress.ex
exredorg/exred_node_suppress
6aa0378637bdf2cb9954e42407b7362b2524ad1e
[ "MIT" ]
null
null
null
lib/exred_node_suppress.ex
exredorg/exred_node_suppress
6aa0378637bdf2cb9954e42407b7362b2524ad1e
[ "MIT" ]
null
null
null
defmodule Exred.Node.Suppress do @moduledoc """ Suppresses or filters incoming messages for configurable time periods. ###Inputs `topic :: string` if message suppression starts when triggered then a message with '_START' topic triggers the suppression otherwise topic is ignored `payload :: term...
25.409722
123
0.576934
7a3ff7a70a9436e93a7d0ab51d9c21d112a953e6
998
ex
Elixir
lib/hexpm_web/markdown_engine.ex
Jks15063/hexpm
3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b
[ "Apache-2.0" ]
2
2020-03-01T18:23:33.000Z
2021-01-15T10:15:45.000Z
lib/hexpm_web/markdown_engine.ex
yitzackRabin/hexpm
5bf8c491e5aa764b2c60a3aab3e90f814eb3f471
[ "Apache-2.0" ]
3
2020-06-30T11:24:41.000Z
2020-08-05T15:47:34.000Z
lib/hexpm_web/markdown_engine.ex
yitzackRabin/hexpm
5bf8c491e5aa764b2c60a3aab3e90f814eb3f471
[ "Apache-2.0" ]
null
null
null
defmodule HexpmWeb.MarkdownEngine do @behaviour Phoenix.Template.Engine def compile(path, _name) do html = path |> File.read!() |> Earmark.as_html!(%Earmark.Options{gfm: true}) |> header_anchors("h3") |> header_anchors("h4") {:safe, html} end defp header_anchors(html, ta...
21.695652
68
0.541082
7a40278d6aefea864626cb93c7827f01aaf2d68a
5,441
ex
Elixir
lib/acl/acl.ex
cecemel/mu-authorization
96368f70e013b1818ac147c9f24141b18c1cb469
[ "MIT" ]
1
2019-09-05T23:00:48.000Z
2019-09-05T23:00:48.000Z
lib/acl/acl.ex
cecemel/mu-authorization
96368f70e013b1818ac147c9f24141b18c1cb469
[ "MIT" ]
7
2020-10-27T20:42:06.000Z
2021-11-15T07:41:15.000Z
lib/acl/acl.ex
cecemel/mu-authorization
96368f70e013b1818ac147c9f24141b18c1cb469
[ "MIT" ]
6
2016-04-06T09:28:43.000Z
2021-08-09T12:29:16.000Z
defmodule Acl do require Logger require ALog alias Updates.QueryAnalyzer.Types.Quad, as: Quad @type allowed_groups :: [allowed_group] | :sudo @type allowed_group :: {String.t(), [String.t()]} @default_graph_iri %Updates.QueryAnalyzer.Iri{ iri: "<http://mu.semte.ch/application>", real_name: "<http...
33.58642
109
0.655578
7a40615bd5dffcdc8f6ea15cf52e43aa1d17aee0
327
ex
Elixir
lib/events_tools_web/views/helpers.ex
community-tools/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
2
2017-10-06T01:14:35.000Z
2017-11-18T16:44:44.000Z
lib/events_tools_web/views/helpers.ex
community-tools/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
6
2017-10-06T00:04:59.000Z
2017-10-06T00:09:27.000Z
lib/events_tools_web/views/helpers.ex
apps-team/community-tools
40b0e6cc9234b44593d2ab60bb2303d7224deb30
[ "Apache-2.0" ]
1
2017-10-06T01:17:35.000Z
2017-10-06T01:17:35.000Z
defmodule CommunityToolsWeb.HelpersView do #defmodule CommunityToolsWeb.HelpersView do def active_on_current(%{request_path: path}, path), do: "active" def active_on_current(_, _), do: "" def logged_in?(conn), do: Guardian.Plug.authenticated?(conn) def current_user(conn), do: Guardian.Plug.current_resource(con...
36.333333
66
0.7737
7a406eccf9a19b248a65224cb91a329109c82031
10,267
ex
Elixir
lib/flop_phoenix/pagination.ex
OnigiriJack/flop_phoenix
1f9f64ac9fef82b9e502c4d0f48207b202fcc691
[ "MIT" ]
null
null
null
lib/flop_phoenix/pagination.ex
OnigiriJack/flop_phoenix
1f9f64ac9fef82b9e502c4d0f48207b202fcc691
[ "MIT" ]
null
null
null
lib/flop_phoenix/pagination.ex
OnigiriJack/flop_phoenix
1f9f64ac9fef82b9e502c4d0f48207b202fcc691
[ "MIT" ]
null
null
null
defmodule Flop.Phoenix.Pagination do @moduledoc false use Phoenix.Component use Phoenix.HTML import Phoenix.LiveView.Helpers alias Flop.Phoenix.Misc require Logger @spec default_opts() :: [Flop.Phoenix.pagination_option()] def default_opts do [ current_link_attrs: [ class: "pagina...
25.413366
87
0.558099
7a408ca9c6a71f4c5b7b4f5d405c3cb3df038190
59
ex
Elixir
web/views/layout_view.ex
itaym2/wiksir
a834ad95163e0b807dcba6d8ef17b998e312f396
[ "MIT" ]
null
null
null
web/views/layout_view.ex
itaym2/wiksir
a834ad95163e0b807dcba6d8ef17b998e312f396
[ "MIT" ]
null
null
null
web/views/layout_view.ex
itaym2/wiksir
a834ad95163e0b807dcba6d8ef17b998e312f396
[ "MIT" ]
null
null
null
defmodule Wiksir.LayoutView do use Wiksir.Web, :view end
14.75
30
0.779661
7a409a06d277a74118010105cad34164d6198f1a
18,991
ex
Elixir
lib/elixir/lib/dict.ex
jquadrin/elixir
98746e08eaa2bf58c202e8500b6cf83ed2368cc0
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/dict.ex
jquadrin/elixir
98746e08eaa2bf58c202e8500b6cf83ed2368cc0
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/dict.ex
jquadrin/elixir
98746e08eaa2bf58c202e8500b6cf83ed2368cc0
[ "Apache-2.0" ]
null
null
null
defmodule Dict do @moduledoc ~S""" This module specifies the Dict API expected to be implemented by different dictionaries. It also provides functions that redirect to the underlying Dict, allowing a developer to work with different Dict implementations using one API. To create a new dict, use the `new` ...
25.943989
80
0.561687
7a40d8ffd66455a028bf45758713527eb9496891
1,785
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/model/service_account.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/genomics/lib/google_api/genomics/v1/model/service_account.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/genomics/lib/google_api/genomics/v1/model/service_account.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.7
201
0.72605
7a40f09228096836c8edd0655dcd8cf20ad43a8c
634
exs
Elixir
priv/repo/migrations/20211106025152_create_bots_table.exs
ConnorRigby/yourbot
eea40e63b0f93963ed14b7efab9ecbe898ab11dd
[ "Apache-2.0" ]
3
2021-11-08T15:19:19.000Z
2021-11-11T03:18:35.000Z
priv/repo/migrations/20211106025152_create_bots_table.exs
ConnorRigby/yourbot
eea40e63b0f93963ed14b7efab9ecbe898ab11dd
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20211106025152_create_bots_table.exs
ConnorRigby/yourbot
eea40e63b0f93963ed14b7efab9ecbe898ab11dd
[ "Apache-2.0" ]
null
null
null
defmodule YourBot.Repo.Migrations.CreateBotsTable do use Ecto.Migration def change do create table(:bots) do add :name, :citext, null: false add :token, :string, null: false add :application_id, :binary, null: false add :public_key, :string, null: false timestamps() end c...
26.416667
56
0.659306
7a410c42ae6988fff982213ffeb5584984aeb5d6
720
ex
Elixir
web/router.ex
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
13
2015-03-24T04:49:39.000Z
2020-01-13T20:04:17.000Z
web/router.ex
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
1
2015-11-23T15:06:59.000Z
2015-11-23T15:11:30.000Z
web/router.ex
barsoom/content_translator
645d50609881eed790abb185a99ae243b05f781f
[ "MIT", "Unlicense" ]
2
2019-02-18T12:59:12.000Z
2021-05-28T12:40:37.000Z
defmodule ContentTranslator.Router do use ContentTranslator.Web, :router use Honeybadger.Plug pipeline :browser do plug :accepts, ~w(html) end pipeline :api do plug :accepts, ~w(json) end # Used by deploy scripts get "/revision", ContentTranslator.PageController, :revision get "/", Content...
25.714286
83
0.738889
7a412f66c277741ed181fb2a89fbfd6ec1649f40
1,684
exs
Elixir
mix.exs
statmuse/ex_microsoftbot
07196c75dc919a509d73fc15b1030481402bbd98
[ "MIT" ]
null
null
null
mix.exs
statmuse/ex_microsoftbot
07196c75dc919a509d73fc15b1030481402bbd98
[ "MIT" ]
null
null
null
mix.exs
statmuse/ex_microsoftbot
07196c75dc919a509d73fc15b1030481402bbd98
[ "MIT" ]
null
null
null
defmodule ExMicrosoftbot.Mixfile do use Mix.Project def project do [ app: :ex_microsoftbot, version: "2.0.2", elixir: "~> 1.5 or ~> 1.6", description: description(), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, package: package(), deps...
25.907692
83
0.558195
7a413b3bb55a5c67e187f7c95391a01ce3514c97
4,315
ex
Elixir
clients/game_services/lib/google_api/game_services/v1/model/binding.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/game_services/lib/google_api/game_services/v1/model/binding.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/game_services/lib/google_api/game_services/v1/model/binding.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...
77.053571
1,972
0.746698
7a41544a15d0684c7479acb744ea102bc825af2d
749
ex
Elixir
lib/rummage_phoenix/theme_adapters/theme_adapter.ex
Thopiax/rummage_phoenix
22c9a3f499abeaf61af29998c4164d177bfe6521
[ "MIT" ]
null
null
null
lib/rummage_phoenix/theme_adapters/theme_adapter.ex
Thopiax/rummage_phoenix
22c9a3f499abeaf61af29998c4164d177bfe6521
[ "MIT" ]
null
null
null
lib/rummage_phoenix/theme_adapters/theme_adapter.ex
Thopiax/rummage_phoenix
22c9a3f499abeaf61af29998c4164d177bfe6521
[ "MIT" ]
1
2018-08-31T16:07:29.000Z
2018-08-31T16:07:29.000Z
defmodule Rummage.Phoenix.ThemeAdapter do @moduledoc """ This module defines a behavior that `Rummage.Phoenix.ThemeAdapters` have to follow. Custom ThemeAdapters should follow this behavior and implement all the functions """ @callback run(queryable :: Ecto.Query.t, rummage :: map) :: queryable :: Ecto.Query....
29.96
97
0.682243
7a418a23092242ddef5d1e9145dafd7879313295
630
exs
Elixir
apps/legion_http/test/legion_web/views/error_view_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion_http/test/legion_web/views/error_view_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion_http/test/legion_web/views/error_view_test.exs
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
defmodule Legion.HTTP.ErrorViewTest do use Legion.HTTP.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(Legion.HTTP.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found"}} end ...
28.636364
66
0.642857
7a41a948bab954020d4c0ad93c7cb4bf6879797b
6,266
ex
Elixir
lib/macro.ex
zeam-vm/DeepLearning
45d0985d6ac4734b32dddcaf8748381013a2f93e
[ "BSD-2-Clause" ]
null
null
null
lib/macro.ex
zeam-vm/DeepLearning
45d0985d6ac4734b32dddcaf8748381013a2f93e
[ "BSD-2-Clause" ]
null
null
null
lib/macro.ex
zeam-vm/DeepLearning
45d0985d6ac4734b32dddcaf8748381013a2f93e
[ "BSD-2-Clause" ]
null
null
null
defmodule Time do defmacro time(exp) do quote do {time, dict} = :timer.tc(fn -> unquote(exp) end) IO.inspect("time: #{time} micro second") IO.inspect("-------------") dict end end end defmodule Network do defmacro defnetwork(name, do: body) do {_, _, [{arg, _, _}]} = name ...
22.298932
94
0.534951
7a41c36063631e39142c01ab795e007825a3f61d
867
exs
Elixir
gigasecond/gigasecond_test.exs
lpvm/exercism_elixir
b32981727c4aaec444680838db4014d70c983f5d
[ "MIT" ]
null
null
null
gigasecond/gigasecond_test.exs
lpvm/exercism_elixir
b32981727c4aaec444680838db4014d70c983f5d
[ "MIT" ]
null
null
null
gigasecond/gigasecond_test.exs
lpvm/exercism_elixir
b32981727c4aaec444680838db4014d70c983f5d
[ "MIT" ]
null
null
null
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("gigasecond.exs", __DIR__) end ExUnit.start() # ExUnit.configure(exclude: :pending, trace: true) defmodule GigasecondTest do use ExUnit.Case # @tag :pending test "from 4/25/2011" do assert Gigasecond.from({{2011, 4, 25}, {0, 0, 0}}) == {{2043...
26.272727
97
0.618224
7a41dbd58f667b762c6c3809b3b50c55e5764ee3
6,719
ex
Elixir
lib/jsonapi/view.ex
jnylen/jsonapi
eda4774c99689afadf5a6e8228b88bdb3a98dd86
[ "MIT" ]
null
null
null
lib/jsonapi/view.ex
jnylen/jsonapi
eda4774c99689afadf5a6e8228b88bdb3a98dd86
[ "MIT" ]
null
null
null
lib/jsonapi/view.ex
jnylen/jsonapi
eda4774c99689afadf5a6e8228b88bdb3a98dd86
[ "MIT" ]
null
null
null
defmodule JSONAPI.View do @moduledoc """ A View is simply a module that defines certain callbacks to configure proper rendering of your JSONAPI documents. defmodule PostView do use JSONAPI.View def fields, do: [:id, :text, :body] def type, do: "post" def relationships do ...
31.995238
213
0.59994
7a41e58d81fc99351ee02e59328100b67696ccfd
792
ex
Elixir
lib/geo/wkb/reader.ex
ilyashuma/geo
92c276a784237affd194b9dd0e3428bdc39ce4f8
[ "MIT" ]
1
2021-08-23T13:14:22.000Z
2021-08-23T13:14:22.000Z
lib/geo/wkb/reader.ex
ilyashuma/geo
92c276a784237affd194b9dd0e3428bdc39ce4f8
[ "MIT" ]
null
null
null
lib/geo/wkb/reader.ex
ilyashuma/geo
92c276a784237affd194b9dd0e3428bdc39ce4f8
[ "MIT" ]
null
null
null
defmodule Geo.WKB.Reader do @moduledoc false defstruct wkb: nil, endian: :xdr def new(<<"01", wkb::binary>>) do %Geo.WKB.Reader{wkb: wkb, endian: :ndr} end def new(<<"00", wkb::binary>>) do %Geo.WKB.Reader{wkb: wkb, endian: :xdr} end def read(%{endian: :ndr} = reader, count) do <<value::bin...
23.294118
61
0.616162
7a41ede81217f6c7ec088d230cd9eb5910f3284b
6,761
ex
Elixir
components/notifications-service/server/lib/pb/rules.pb.ex
satellite15/automate
b51a2595420f4c4561f01d7d5b46cee6384bd4dc
[ "Apache-2.0" ]
null
null
null
components/notifications-service/server/lib/pb/rules.pb.ex
satellite15/automate
b51a2595420f4c4561f01d7d5b46cee6384bd4dc
[ "Apache-2.0" ]
null
null
null
components/notifications-service/server/lib/pb/rules.pb.ex
satellite15/automate
b51a2595420f4c4561f01d7d5b46cee6384bd4dc
[ "Apache-2.0" ]
null
null
null
defmodule Notifications.Empty do @moduledoc false use Protobuf, syntax: :proto3 @type t :: %__MODULE__{} defstruct [] end defmodule Notifications.SlackAlert do @moduledoc false use Protobuf, syntax: :proto3 @type t :: %__MODULE__{ url: String.t() } defstruct [:url] field :url, 1,...
23.722807
77
0.675492
7a421124f8877c0174183e19fb38b95956dc7c08
520
exs
Elixir
elixir/elixir-mars-water/test/mars_water/algos/sliding_window_test.exs
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
1
2018-12-11T14:09:14.000Z
2018-12-11T14:09:14.000Z
elixir/elixir-mars-water/test/mars_water/algos/sliding_window_test.exs
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
elixir/elixir-mars-water/test/mars_water/algos/sliding_window_test.exs
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
defmodule MarsWater.Algos.SlidingWindowTest do use ExUnit.Case alias MarsWater.Algos.SlidingWindow describe "test/1" do test "calculates the solution correctly case 1" do input = " 1 3 1 3 1 2 9 4 4 1 8" assert SlidingWindow.run(input) == " (1, 1, score: 33)" end test "calculates the sol...
30.588235
102
0.628846
7a4246a03afbe277d5105457c00c9e882d6b6448
131
ex
Elixir
test/support/fake_hackney.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
234
2016-08-18T20:43:15.000Z
2022-02-27T11:31:48.000Z
test/support/fake_hackney.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
563
2016-07-25T17:45:14.000Z
2022-03-21T11:39:29.000Z
test/support/fake_hackney.ex
MeterSoft/appsignal-elixir
52e3505b9dc90bce0795c4753a758d40bdf41463
[ "MIT" ]
86
2016-09-13T22:53:46.000Z
2022-02-16T11:03:51.000Z
defmodule FakeHackney do def request(method, url, headers, body, options) do [method, url, headers, body, options] end end
21.833333
53
0.717557
7a425f819e232517168bcee3c7ac09f920694d3e
1,558
exs
Elixir
src/043/problem043.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
9
2018-05-06T04:43:08.000Z
2020-12-01T20:51:34.000Z
src/043/problem043.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
null
null
null
src/043/problem043.exs
fredericojordan/project-euler
75c3f519d5a6ad610362b6904f8fa4d1cde05448
[ "MIT" ]
null
null
null
#!/usr/bin/env elixir defmodule Problem043 do @moduledoc """ The number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it also has a rather interesting sub-string divisibility property. Let d[1] be the 1st digit, d[2] be the 2nd digit, and so on. ...
33.869565
192
0.637356
7a4267390070ab8e6521296b146e781be25cd2a5
7,891
exs
Elixir
test/scaffolding/repo_v2_test.exs
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
null
null
null
test/scaffolding/repo_v2_test.exs
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
null
null
null
test/scaffolding/repo_v2_test.exs
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Author: Keith Brings # Copyright (C) 2018 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.Scaffolding.RepoV2Test do use ExUnit.Case use Amnesia ...
38.681373
104
0.697123
7a42678acd636d223bb76ed82351a8b95a2de4b4
2,302
ex
Elixir
lib/codes/codes_e28.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_e28.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_e28.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_E28 do alias IcdCode.ICDCode def _E280 do %ICDCode{full_code: "E280", category_code: "E28", short_code: "0", full_name: "Estrogen excess", short_name: "Estrogen excess", category_name: "Estrogen excess" } end def _E281 ...
29.139241
59
0.598175
7a426a8aef05c410001aa4570d3cd7aa1f071a1f
2,304
ex
Elixir
lib/course_planner_web/controllers/auth/session_controller.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
38
2017-04-11T13:37:38.000Z
2021-05-22T19:35:36.000Z
lib/course_planner_web/controllers/auth/session_controller.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
226
2017-04-07T13:14:14.000Z
2018-03-08T16:50:11.000Z
lib/course_planner_web/controllers/auth/session_controller.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
7
2017-08-30T23:58:13.000Z
2021-03-28T11:50:45.000Z
defmodule CoursePlannerWeb.Auth.SessionController do @moduledoc """ This module handles loging in to the system """ use CoursePlannerWeb, :controller plug :put_layout, "session_layout.html" alias CoursePlanner.Accounts.{Users, User} alias Recaptcha.Config alias Guardian.Plug def new(conn, _) do ...
25.318681
92
0.618924
7a427279317f3eeb0d80bb473702c373c513e7b7
548
ex
Elixir
apps/fz_http/lib/fz_http_web/controllers/root_controller.ex
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
null
null
null
apps/fz_http/lib/fz_http_web/controllers/root_controller.ex
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
1
2022-03-30T03:57:41.000Z
2022-03-30T03:57:41.000Z
apps/fz_http/lib/fz_http_web/controllers/root_controller.ex
CloudFire-LLC/cloudfire-ce
416ea0d9c9528790fdf70c432aa4eb507d7b2074
[ "Apache-2.0" ]
null
null
null
defmodule FzHttpWeb.RootController do @moduledoc """ Firezone landing page -- show auth methods. """ use FzHttpWeb, :controller def index(conn, _params) do conn |> render( "auth.html", okta_enabled: conf(:okta_auth_enabled), google_enabled: conf(:google_auth_enabled), local_en...
23.826087
64
0.691606
7a42840f264e0c09f6fdd82c4a5b81a7d0d39116
30,151
ex
Elixir
lib/elixir/lib/string.ex
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/string.ex
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/string.ex
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [length: 1] defmodule String do @moduledoc %S""" A String in Elixir is a UTF-8 encoded binary. ## String and binary operations The functions in this module act according to the Unicode Standard, version 6.3.0. For example, `capitalize/1`, `downcase/1`, `strip/1` are provided by thi...
25.486898
128
0.622931
7a4288808e9cfba043dd3da7fcef0374ccbdc9d8
8,055
ex
Elixir
lib/infinity_one_web/channels/landing_channel.ex
smpallen99/ucx_ucc
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
11
2017-05-15T18:35:05.000Z
2018-02-05T18:27:40.000Z
lib/infinity_one_web/channels/landing_channel.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
15
2017-11-27T10:38:05.000Z
2018-02-09T20:42:08.000Z
lib/infinity_one_web/channels/landing_channel.ex
anndream/infinity_one
47225f205a6ac4aacdb9bb4f7512dcf4092576ad
[ "MIT" ]
4
2017-09-13T11:34:16.000Z
2018-02-26T13:37:06.000Z
defmodule InfinityOneWeb.LandingChannel do @moduledoc """ Channel for the Setup Landing Channel """ use InfinityOneWeb, :channel use Rebel.Channel, name: "landing", controllers: [ InfinityOneWeb.LandingController ] import Phoenix.HTML.Tag alias InfinityOneWeb.Query alias InfinityOne.Accounts ...
27.305085
108
0.613656
7a42d38a935e30e2582e8f3e12d35d6802681848
2,048
ex
Elixir
lib/brando/content/template.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
lib/brando/content/template.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
lib/brando/content/template.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule Brando.Content.Template do @moduledoc """ Villain templates """ @type t :: %__MODULE__{} use Brando.Blueprint, application: "Brando", domain: "Content", schema: "Template", singular: "template", plural: "templates", gettext_module: Brando.Gettext import Brando.Gettext ...
21.787234
77
0.547852
7a42e9270b6d810993bbfa9aadf43b4d0e5fed54
1,900
ex
Elixir
lib/mailchimp/member.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2020-07-17T02:52:34.000Z
2020-07-17T02:52:34.000Z
lib/mailchimp/member.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2020-01-09T18:59:39.000Z
2020-01-09T18:59:39.000Z
lib/mailchimp/member.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2019-09-10T10:19:10.000Z
2019-09-10T10:19:10.000Z
defmodule Mailchimp.Member do alias Mailchimp.Link alias HTTPoison.Response alias Mailchimp.HTTPClient defstruct email_address: nil, email_client: nil, email_type: nil, id: nil, ip_opt: nil, ip_signup: nil, language: nil, last_changed: nil, list_id: nil, location: nil, member_rating: nil, merge_fields: nil, st...
34.545455
338
0.679474
7a42ff90e1f843f347e82939c11c087497483813
733
ex
Elixir
lib/pogo/release.ex
mtwilliams/pogo
f427970bac860f538cdfe258eb0950e6c06edfb0
[ "MIT" ]
1
2015-12-07T09:24:33.000Z
2015-12-07T09:24:33.000Z
lib/pogo/release.ex
envato/pogo
74459ff08e8fc40ad9361a191657b1cab3bdb798
[ "MIT" ]
null
null
null
lib/pogo/release.ex
envato/pogo
74459ff08e8fc40ad9361a191657b1cab3bdb798
[ "MIT" ]
null
null
null
defmodule Pogo.Release do defmacro __using__(_) do quote do @after_bundle :pogo_write_script! def include_elixir?, do: true def include_erts?, do: true def default_release?, do: false def include_start_clean?, do: true def pogo_write_script!(options) do app = name(op...
28.192308
83
0.633015
7a431cf1e12631ee73ede42305fbce6c18d8797c
1,379
exs
Elixir
apps/website/mix.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
3
2018-07-20T22:14:36.000Z
2018-12-21T19:54:48.000Z
apps/website/mix.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
36
2018-09-15T21:46:54.000Z
2020-03-28T16:10:18.000Z
apps/website/mix.exs
gregredhead/belethor
255925396b18ba4a6950f386abf8a9e17a7e5e7c
[ "Apache-2.0" ]
2
2018-07-22T08:47:07.000Z
2021-12-11T01:39:19.000Z
defmodule Website.MixProject do use Mix.Project def project do [ app: :website, version: "0.0.1", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.7", elixirc_paths: elixirc_pat...
26.018868
57
0.566352
7a43219c6866d6fa769df63ff63406c108a0fd96
583
exs
Elixir
www/ember-phoenix-starter-app/server/test/views/error_view_test.exs
cheeseweasel/ember-phoenix-starter-app-box
e8363142a055ceb9ea39af9f84a0c1f856c02bfb
[ "MIT" ]
null
null
null
www/ember-phoenix-starter-app/server/test/views/error_view_test.exs
cheeseweasel/ember-phoenix-starter-app-box
e8363142a055ceb9ea39af9f84a0c1f856c02bfb
[ "MIT" ]
null
null
null
www/ember-phoenix-starter-app/server/test/views/error_view_test.exs
cheeseweasel/ember-phoenix-starter-app-box
e8363142a055ceb9ea39af9f84a0c1f856c02bfb
[ "MIT" ]
null
null
null
defmodule Starterapp.ErrorViewTest do use Starterapp.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(Starterapp.ErrorView, "404.html", []) == "Page not found" end test "render 500....
26.5
68
0.684391
7a4347b427b477e4b3a0c76c98cae18ec8212efe
9,772
ex
Elixir
lib/mix/lib/mix/task.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/task.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/task.ex
pap/elixir
c803afe90c766663823c74397fb23ed40ec52c5b
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Task do @moduledoc """ A simple module that provides conveniences for creating, loading and manipulating tasks. A Mix task can be defined by simply using `Mix.Task` in a module starting with `Mix.Tasks.` and defining the `run/1` function: defmodule Mix.Tasks.Hello do use Mix.Ta...
26.268817
88
0.635898
7a43566b8cf3bc49d39e13bdcf1d38229e674ea8
1,596
ex
Elixir
lib/bubble_lib/xml/parse.ex
botsquad/bubble_lib
774860db5d19e94ad0f3d34618519d13cbe9cbfe
[ "MIT" ]
2
2018-09-25T19:35:00.000Z
2019-09-23T18:12:50.000Z
lib/bubble_lib/xml/parse.ex
botsquad/bubble_lib
774860db5d19e94ad0f3d34618519d13cbe9cbfe
[ "MIT" ]
null
null
null
lib/bubble_lib/xml/parse.ex
botsquad/bubble_lib
774860db5d19e94ad0f3d34618519d13cbe9cbfe
[ "MIT" ]
1
2019-09-23T18:12:53.000Z
2019-09-23T18:12:53.000Z
defmodule BubbleLib.XML.Parse do use BubbleLib.XML.XmerlRecords import BubbleLib.XML.Xmerl, only: [to_xmerl: 1] def xml_parse(xml_string) when is_binary(xml_string) do xml_string |> to_xmerl() |> simple_element() end def simple_element(xmlComment()) do :skip end def simple_element(xmlPI...
22.8
89
0.672306
7a43769a2bc6c121a4de29fcab05f05fe1272c2e
316
ex
Elixir
lib/uswidi/bids/bid.ex
databrecht/uswidi
422c5d957af769a12799b6d3ea56ad1e9f769873
[ "MIT" ]
null
null
null
lib/uswidi/bids/bid.ex
databrecht/uswidi
422c5d957af769a12799b6d3ea56ad1e9f769873
[ "MIT" ]
null
null
null
lib/uswidi/bids/bid.ex
databrecht/uswidi
422c5d957af769a12799b6d3ea56ad1e9f769873
[ "MIT" ]
null
null
null
defmodule Uswidi.Bid do use Ecto.Schema import Ecto.Changeset schema "bids" do field :amount, :integer field :user_id, :id field :candy_id, :id timestamps() end @doc false def changeset(bid, attrs) do bid |> cast(attrs, [:amount]) |> validate_required([:amount]) end end
15.8
35
0.636076
7a437eef76a78202856b62ae6afbf57719f9fc44
1,216
ex
Elixir
lib/random.ex
diodechain/diode_server
1692788bd92cc17654965878abd059d13b5e236c
[ "Apache-2.0" ]
8
2021-03-12T15:35:09.000Z
2022-03-06T06:37:49.000Z
lib/random.ex
diodechain/diode_server_ex
5cf47e5253a0caafd335d0af4dba711d4dcad42d
[ "Apache-2.0" ]
15
2019-09-06T07:58:01.000Z
2021-03-06T17:04:46.000Z
lib/random.ex
diodechain/diode_server
1692788bd92cc17654965878abd059d13b5e236c
[ "Apache-2.0" ]
5
2021-10-01T12:52:28.000Z
2022-02-02T19:29:56.000Z
# Diode Server # Copyright 2021 Diode # Licensed under the Diode License, Version 1.1 defmodule Random do @moduledoc """ Random provides random aliases for the range of machine types uint8-uint64, int8-int64 as well as additional aliases uint8h-uint64h generating random numbers starting at the lower types range...
35.764706
80
0.722862
7a439ab273a1beae9aa804fdfe797a0abf617a53
2,026
ex
Elixir
persistent_list/lib/persistent_list/day01.ex
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
persistent_list/lib/persistent_list/day01.ex
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
persistent_list/lib/persistent_list/day01.ex
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
defmodule PersistentList.Day01 do alias PersistentList.Day01, as: List defstruct head: nil, tail: nil defimpl String.Chars, for: List do def to_string(list), do: "[" <> string_from(list) <> "]" defp string_from(%List{head: nil, tail: nil}), do: "" defp string_from( %List{ ...
29.794118
90
0.562192
7a43b9fe8ea8c360fdc7b156a96fb6d6fe268960
1,123
exs
Elixir
config/config.exs
AtysDev/atys
ea5c7c6fadc6dcdac038bb3ed1bf4f6f0c725525
[ "MIT" ]
null
null
null
config/config.exs
AtysDev/atys
ea5c7c6fadc6dcdac038bb3ed1bf4f6f0c725525
[ "MIT" ]
null
null
null
config/config.exs
AtysDev/atys
ea5c7c6fadc6dcdac038bb3ed1bf4f6f0c725525
[ "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.749777
7a43baab29d4d06d7b0a31ab137333af610321d9
2,644
exs
Elixir
.credo.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
null
null
null
.credo.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
null
null
null
.credo.exs
scottdavis/recaptcha
1b46e1a346c100e327cbc028fc6b8e7e8942e974
[ "MIT" ]
null
null
null
%{ configs: [ %{ name: "default", files: %{ included: ["lib/", "src/", "web/", "apps/"], excluded: [~r"/_build/", ~r"/deps/"] }, requires: [], check_for_updates: true, checks: [ {Credo.Check.Consistency.ExceptionNames}, {Credo.Check.Consistency.L...
42.645161
80
0.66944
7a43f2170eb8b2d6624ebd75fc64aa47ea47a548
6,975
ex
Elixir
web/auth/user_from_auth.ex
jbr/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
335
2015-06-19T18:27:51.000Z
2020-11-25T19:00:27.000Z
web/auth/user_from_auth.ex
thisdata/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
33
2015-06-24T17:00:01.000Z
2017-11-23T09:53:29.000Z
web/auth/user_from_auth.ex
thisdata/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
95
2015-06-30T22:18:00.000Z
2022-01-14T13:47:10.000Z
defmodule PhoenixGuardian.UserFromAuth do alias PhoenixGuardian.User alias PhoenixGuardian.Authorization alias Ueberauth.Auth def get_or_insert(auth, current_user, repo) do case auth_and_validate(auth, repo) do {:error, :not_found} -> register_user_from_auth(auth, current_user, repo) {:error, r...
31.561086
113
0.634265
7a43fce7c0793feab4e10c03b350995bd8672236
2,069
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_page_info.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_page_info.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_page_info.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.568627
221
0.758337
7a440b35da0c4e100a0b0dc0b18cce2d8b28d930
13,947
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/api/search.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/api/search.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/api/search.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...
91.756579
601
0.723955
7a4498de79c6260e58d493284a96fbef42767de7
664
exs
Elixir
lists/weather.exs
s0utakada/my-cheap-elixir
a94c928bde871aaf0cf9c85ef580bb435a5d211b
[ "MIT" ]
null
null
null
lists/weather.exs
s0utakada/my-cheap-elixir
a94c928bde871aaf0cf9c85ef580bb435a5d211b
[ "MIT" ]
null
null
null
lists/weather.exs
s0utakada/my-cheap-elixir
a94c928bde871aaf0cf9c85ef580bb435a5d211b
[ "MIT" ]
null
null
null
defmodule WeatherHistory do def for_location_27([]), do: [] def for_location_27([ [time, 27, temp, rain] | tail]) do [ [time, 27, temp, rain] | for_location_27(tail) ] end def for_location_27([ _ | tail]), do: for_location_27(tail) def test_data do [ [1366225622, 26, 15, 0.125], [136622562...
28.869565
61
0.566265
7a44c4eea36fb78833def4fb4c12f5677a9c0d07
2,877
exs
Elixir
test/integration/pruning_test.exs
pthompson/oban
b05dbdd4dc69c0755443a9683f65f742741d02be
[ "Apache-2.0" ]
null
null
null
test/integration/pruning_test.exs
pthompson/oban
b05dbdd4dc69c0755443a9683f65f742741d02be
[ "Apache-2.0" ]
null
null
null
test/integration/pruning_test.exs
pthompson/oban
b05dbdd4dc69c0755443a9683f65f742741d02be
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Integration.PruningTest do use Oban.Case import Ecto.Query @moduletag :integration defmodule FakeWorker do use Oban.Worker, queue: :default @impl Worker def perform(_args, _job), do: :ok end test "historic jobs may be pruned based on a maximum rows count" do %Job{id: id_1...
27.932039
87
0.656239
7a44dc16f45a04f7b2aec862cbc32e4ee3de9570
1,884
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/conversion_error.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/v28/model/conversion_error.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/conversion_error.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "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.254545
151
0.728238
7a44e2678267124d6b884dc9ddc5cfb8d27bf20c
365
exs
Elixir
priv/repo/seeds.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
13
2021-03-06T12:16:34.000Z
2022-03-31T09:46:35.000Z
priv/repo/seeds.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
148
2021-03-05T12:44:55.000Z
2022-03-11T12:09:06.000Z
priv/repo/seeds.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
2
2021-06-02T14:31:21.000Z
2022-02-14T08:36:51.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Hierbautberlin.Repo.insert!(%Hierbautberlin.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on...
30.416667
63
0.717808
7a44e370bc24f5ee322bcbd292406c4df90cd39a
486
exs
Elixir
exercise-tracker/test/exercise_tracker_web/views/error_view_test.exs
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
exercise-tracker/test/exercise_tracker_web/views/error_view_test.exs
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
exercise-tracker/test/exercise_tracker_web/views/error_view_test.exs
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
defmodule ExerciseTrackerWeb.ErrorViewTest do use ExerciseTrackerWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(ExerciseTrackerWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}} end ...
30.375
100
0.703704
7a4512a63fcb059927fa7c69cd5204f3f3d38bd0
1,095
ex
Elixir
api/lib/trello_clone_api_web/resolvers/project_resolver.ex
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
1
2021-04-17T20:20:59.000Z
2021-04-17T20:20:59.000Z
api/lib/trello_clone_api_web/resolvers/project_resolver.ex
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
null
null
null
api/lib/trello_clone_api_web/resolvers/project_resolver.ex
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
null
null
null
defmodule TrelloCloneApiWeb.ProjectResolver do alias TrelloCloneApi.Project def all_boards(_root, %{project_id: project_id}, _info) do projects = Project.list_boards(project_id) {:ok, projects} end def create_board(_root, args, _info) do args = %{args | project_id: String.to_integer(args.project_...
23.804348
113
0.641096
7a45361920b06e116812cf0adbafdc19d6fab8b3
136
ex
Elixir
web/controllers/help_controller.ex
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
10
2016-07-15T15:57:33.000Z
2018-06-09T00:40:46.000Z
web/controllers/help_controller.ex
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
null
null
null
web/controllers/help_controller.ex
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
6
2016-07-15T15:57:41.000Z
2018-03-22T16:38:00.000Z
defmodule Eecrit.HelpController do use Eecrit.Web, :controller def index(conn, _params) do render conn, "index.html" end end
17
34
0.727941
7a4536e2b657c26506cfc1366d7ba8356609afff
953
ex
Elixir
lib/horde/process_supervisor.ex
amatalai/horde
b94c96e186450672279d40b754c36b80dea9e2b8
[ "MIT" ]
null
null
null
lib/horde/process_supervisor.ex
amatalai/horde
b94c96e186450672279d40b754c36b80dea9e2b8
[ "MIT" ]
null
null
null
lib/horde/process_supervisor.ex
amatalai/horde
b94c96e186450672279d40b754c36b80dea9e2b8
[ "MIT" ]
null
null
null
defmodule Horde.ProcessSupervisor do @moduledoc false use Supervisor def child_spec({child_spec, graceful_shutdown_manager, node_id}) do %{ id: child_spec.id, start: {__MODULE__, :start_link, [child_spec, graceful_shutdown_manager, node_id]}, type: :supervisor } end def start_link...
26.472222
95
0.712487
7a4546f5575a12bb85140f6e39a76a3051d7b18e
475
exs
Elixir
farmbot_ext/test/test_helper.exs
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
1
2019-08-06T11:51:48.000Z
2019-08-06T11:51:48.000Z
farmbot_ext/test/test_helper.exs
SeppPenner/farmbot_os
39ba5c5880f8aef71792e2c009514bed1177089c
[ "MIT" ]
null
null
null
farmbot_ext/test/test_helper.exs
SeppPenner/farmbot_os
39ba5c5880f8aef71792e2c009514bed1177089c
[ "MIT" ]
null
null
null
# Mocking for FarmbotCore Mox.defmock(FarmbotCore.Asset.Query, for: FarmbotCore.Asset.Query) Mox.defmock(FarmbotCore.Asset.Command, for: FarmbotCore.Asset.Command) # Mocking for FarmbotExt Mox.defmock(FarmbotExt.API, for: FarmbotExt.API) Mox.defmock(FarmbotExt.AMQP.ConnectionWorker, for: FarmbotExt.AMQP.ConnectionWork...
31.666667
84
0.812632
7a457cab8b82c88f214dc317a54d58e990e40c82
816
ex
Elixir
Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/operation_list_result.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/operation_list_result.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/operation_list_result.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Storage.Model.OperationListResult do @moduledoc """ Result of the request to list Storage operations. It contains a...
29.142857
131
0.740196
7a458b511a878394646f98d71a329f2c80ca257f
1,147
ex
Elixir
lib/hound/helpers/log.ex
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
lib/hound/helpers/log.ex
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
lib/hound/helpers/log.ex
NeoArcanjo/hound
31f15d35aafcebc6263c28948f2bc84eefe8892d
[ "MIT" ]
null
null
null
defmodule Hound.Helpers.Log do @moduledoc "Functions to work with the log" import Hound.RequestUtils require Hound.NotSupportedError @doc """ Fetches console.log() from the browser as a single string of log-lines. """ def fetch_log do fail_if_webdriver_selenium("fetch_log()") get_browser_log() ...
25.488889
116
0.680907
7a459f3a43a3101bdee2250721115cb8c531254a
1,920
ex
Elixir
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_permission.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_permission.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_permission.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 &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.647059
289
0.753125
7a45cdac9403ea51a0577dec8c33b4793427f8ef
1,143
ex
Elixir
lib/bus_bar.ex
JonRowe/busbar
ffa828f9fb8dbcd68a7f100c8f6f464e1dde83a9
[ "MIT" ]
1
2016-06-05T10:37:20.000Z
2016-06-05T10:37:20.000Z
lib/bus_bar.ex
JonRowe/busbar
ffa828f9fb8dbcd68a7f100c8f6f464e1dde83a9
[ "MIT" ]
null
null
null
lib/bus_bar.ex
JonRowe/busbar
ffa828f9fb8dbcd68a7f100c8f6f464e1dde83a9
[ "MIT" ]
null
null
null
defmodule BusBar do @moduledoc """ BusBar receives events and dispatches them to listeners. """ use Application @doc """ Attach a listener to the bus. """ def attach(listener) do BusBar.EventManager.attach listener end @doc """ Detach a listener from the bus. """ def detach(listener) do...
18.737705
72
0.677165
7a45d58b7c149a8fb3767c208d8fb8e380319741
194
ex
Elixir
apps/rig_api/lib/rig_api/controllers/health_controller.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
apps/rig_api/lib/rig_api/controllers/health_controller.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
apps/rig_api/lib/rig_api/controllers/health_controller.ex
maxglassie/reactive-interaction-gateway
36b68fc75c71b9b4c3b6bd70fb11900c67172137
[ "Apache-2.0" ]
null
null
null
defmodule RigApi.HealthController do require Logger use RigApi, :controller @doc "Default response for health status" def check_health(conn, _params) do text(conn, "OK") end end
17.636364
43
0.731959
7a4612f32ac42c28afbacf35c618463f00295f12
768
exs
Elixir
test/slax/commands/latency_test.exs
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
11
2016-07-05T18:56:21.000Z
2021-09-15T22:23:54.000Z
test/slax/commands/latency_test.exs
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
181
2016-06-23T00:47:13.000Z
2022-03-10T11:23:44.000Z
test/slax/commands/latency_test.exs
HoffsMH/slax
b91ee30b9fd71a4cb7826f50b605ce580b7c1651
[ "MIT" ]
7
2019-01-30T21:38:28.000Z
2022-03-01T07:13:39.000Z
defmodule Slax.Latency.Test do use Slax.ModelCase, async: true alias Slax.Commands.Latency test "format_response/1" do {:ok, long_time_ago} = DateTime.from_unix(0) formatted = Latency.format_response( [ %{ "title" => "title", "updated_at" => "2019-04-18T14...
25.6
71
0.464844
7a4615117bd578252d7e1aeb7a8f9455ef6cd8d3
1,544
ex
Elixir
lib/bbb_lti_web/views/error_helpers.ex
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
lib/bbb_lti_web/views/error_helpers.ex
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
lib/bbb_lti_web/views/error_helpers.ex
IBM/bbb_l
01d2a2ad9a7056b02f6f0d85f17949126256c549
[ "Apache-2.0" ]
null
null
null
defmodule BbbLtiWeb.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(:...
32.166667
75
0.664508
7a464ec10969323fe0cbc81c3fe8bb3f030770a7
1,767
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_filtering_reasons_reasons.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_filtering_reasons_reasons.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_filtering_reasons_reasons.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...
35.34
188
0.747029
7a46783992737a54c8462b663943ac7a6e22e414
1,348
exs
Elixir
mix.exs
Schultzer/geotz
ea7c8b1824ac6c6ff9fd61a6c898a63e77f1c03a
[ "Unlicense", "MIT" ]
1
2020-12-15T01:17:59.000Z
2020-12-15T01:17:59.000Z
mix.exs
Schultzer/geotz
ea7c8b1824ac6c6ff9fd61a6c898a63e77f1c03a
[ "Unlicense", "MIT" ]
1
2017-12-09T17:26:10.000Z
2017-12-09T17:26:10.000Z
mix.exs
Schultzer/geotz
ea7c8b1824ac6c6ff9fd61a6c898a63e77f1c03a
[ "Unlicense", "MIT" ]
null
null
null
defmodule Geotz.Mixfile do use Mix.Project @version "0.1.0" def project do [ app: :geotz, version: @version, elixir: "~> 1.5", name: "Geotz", source_url: "https://github.com/schultzer/geotz", description: description(), package: package(), docs: docs(), ...
19.536232
89
0.547478
7a46a3725c1124f6341e5801d8a4125ef050ec17
4,060
ex
Elixir
lib/bamboo/adapters/ses_adapter.ex
marocchino/bamboo_ses
c5135b05172cbac2fc9bbd3813e3b74cce6bdd8d
[ "MIT" ]
null
null
null
lib/bamboo/adapters/ses_adapter.ex
marocchino/bamboo_ses
c5135b05172cbac2fc9bbd3813e3b74cce6bdd8d
[ "MIT" ]
null
null
null
lib/bamboo/adapters/ses_adapter.ex
marocchino/bamboo_ses
c5135b05172cbac2fc9bbd3813e3b74cce6bdd8d
[ "MIT" ]
null
null
null
defmodule Bamboo.SesAdapter do @moduledoc """ Sends email using AWS SES API. Use this adapter to send emails through AWS SES API. """ @behaviour Bamboo.Adapter alias Bamboo.SesAdapter.RFC2822Renderer alias ExAws.SES import Bamboo.ApiError @doc false def supports_attachments?, do: true @doc fa...
28.391608
97
0.673153
7a46bedfd08ce8cb92e3dc560aff8a9efe2be131
61
ex
Elixir
apps/xee2018_web/lib/xee2018_web/views/page_view.ex
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "MIT" ]
1
2018-09-05T10:31:50.000Z
2018-09-05T10:31:50.000Z
apps/xee2018_web/lib/xee2018_web/views/page_view.ex
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "MIT" ]
null
null
null
apps/xee2018_web/lib/xee2018_web/views/page_view.ex
RyoheiHayashi/xee2018
3b9ff03b13817563a5c7c75db1da360879a8a8d4
[ "MIT" ]
null
null
null
defmodule Xee2018Web.PageView do use Xee2018Web, :view end
15.25
32
0.803279
7a4707f86f752485d35f4cff3d207e6fe7285651
882
ex
Elixir
clients/cloud_iot/lib/google_api/cloud_iot/v1/metadata.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/cloud_iot/lib/google_api/cloud_iot/v1/metadata.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "Apache-2.0" ]
null
null
null
clients/cloud_iot/lib/google_api/cloud_iot/v1/metadata.ex
corp-momenti/elixir-google-api
fe1580e305789ab2ca0741791b8ffe924bd3240c
[ "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.666667
74
0.758503
7a470be1411c2e52da90f48d343e6c0f552e4b88
7,870
exs
Elixir
test/exsm_test.exs
themitigater/exsm
ef1184f05cd65139fbf43c50efda49463358b89f
[ "Apache-2.0" ]
null
null
null
test/exsm_test.exs
themitigater/exsm
ef1184f05cd65139fbf43c50efda49463358b89f
[ "Apache-2.0" ]
null
null
null
test/exsm_test.exs
themitigater/exsm
ef1184f05cd65139fbf43c50efda49463358b89f
[ "Apache-2.0" ]
null
null
null
defmodule ExsmTest do use ExUnit.Case, async: false # doctest Exsm alias ExsmTest.Helper alias ExsmTest.TestDefaultFieldStruct alias ExsmTest.TestStateMachine alias ExsmTest.TestStateMachineDefaultField alias ExsmTest.TestStateMachineWithGuard alias ExsmTest.TestStruct setup do Helper.exsm_inter...
40.989583
155
0.742313
7a47461f8cef43c7df22bbc83aec379aff56fc47
2,460
exs
Elixir
config/prod.exs
sinorga/phx_template
730a44df362c1e035cb8afd55d2e49d44fa60632
[ "MIT" ]
null
null
null
config/prod.exs
sinorga/phx_template
730a44df362c1e035cb8afd55d2e49d44fa60632
[ "MIT" ]
null
null
null
config/prod.exs
sinorga/phx_template
730a44df362c1e035cb8afd55d2e49d44fa60632
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
33.243243
69
0.719106
7a474d6e6f60f3ba85b1947da626b705b95ed08c
12,015
ex
Elixir
lib/level/spaces.ex
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
null
null
null
lib/level/spaces.ex
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
null
null
null
lib/level/spaces.ex
denismitr/level
0b01b0e46c252510dd50b3558d987c6f1e0b1da9
[ "Apache-2.0" ]
null
null
null
defmodule Level.Spaces do @moduledoc """ The Spaces context. """ import Ecto.Query import Level.Gettext alias Ecto.Changeset alias Ecto.Multi alias Level.AssetStore alias Level.Events alias Level.Levelbot alias Level.Repo alias Level.Schemas.OpenInvitation alias Level.Schemas.Space alias L...
27.87703
97
0.622971
7a476eb8c5e1de2477d1e483fee43554b105b4f9
4,169
ex
Elixir
lib/epi_contacts_web/live/questionnaire_live.ex
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
null
null
null
lib/epi_contacts_web/live/questionnaire_live.ex
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
13
2021-06-29T04:35:41.000Z
2022-02-09T04:25:39.000Z
lib/epi_contacts_web/live/questionnaire_live.ex
RatioPBC/epi-contacts
6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee
[ "Apache-2.0" ]
null
null
null
defmodule EpiContactsWeb.QuestionnaireLive do @moduledoc """ live view responsible for collecting contacts from inbound cases """ use EpiContactsWeb, :live_view require Logger alias EpiContacts.{Gettext, PatientCase, Contact} alias EpiContactsWeb.QuestionnaireView @components ~w{add_contact confirm_id...
31.583333
104
0.690573
7a477cab3f48c5a4f675c4b45bfd4f8a3ae4f591
3,647
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_metric_value.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_metric_value.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_metric_value.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...
46.75641
404
0.718947
7a47ad3057e821e120501d1532dfb5deaff60c26
200
exs
Elixir
priv/repo/migrations/20160508173942_change_length_of_uid_for_auth_provider.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20160508173942_change_length_of_uid_for_auth_provider.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20160508173942_change_length_of_uid_for_auth_provider.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
defmodule Accent.Repo.Migrations.ChangeLengthOfUidForAuthProvider do use Ecto.Migration def change do alter table(:auth_providers) do modify :uid, :string, size: 3000 end end end
20
68
0.74
7a47e2510d0bf0622cc00a7c312a37f829255e88
251
ex
Elixir
lib/geo/line_stringz.ex
ilyashuma/geo
92c276a784237affd194b9dd0e3428bdc39ce4f8
[ "MIT" ]
555
2015-01-19T18:56:37.000Z
2022-03-17T21:22:16.000Z
lib/geo/line_stringz.ex
ilyashuma/geo
92c276a784237affd194b9dd0e3428bdc39ce4f8
[ "MIT" ]
130
2015-02-12T16:48:54.000Z
2021-12-15T17:54:18.000Z
lib/geo/line_stringz.ex
ilyashuma/geo
92c276a784237affd194b9dd0e3428bdc39ce4f8
[ "MIT" ]
100
2015-04-21T17:55:47.000Z
2022-01-25T21:03:10.000Z
defmodule Geo.LineStringZ do @moduledoc """ Defines the LineStringZ struct. """ @type t :: %__MODULE__{coordinates: [{number, number, number}], srid: integer | nil, properties: map} defstruct coordinates: [], srid: nil, properties: %{} end
27.888889
103
0.685259
7a4833b78e8be23e9086b8e8a02eaf251fb5264e
4,460
exs
Elixir
test/mix/tasks/extension/phoenix/pow.extension.phoenix.mailer.gen.templates_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
4
2018-05-07T16:37:15.000Z
2018-07-14T00:44:12.000Z
test/mix/tasks/extension/phoenix/pow.extension.phoenix.mailer.gen.templates_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
test/mix/tasks/extension/phoenix/pow.extension.phoenix.mailer.gen.templates_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Pow.Extension.Phoenix.Mailer.Gen.TemplatesTest do use Pow.Test.Mix.TestCase alias Mix.Tasks.Pow.Extension.Phoenix.Mailer.Gen.Templates @tmp_path Path.join(["tmp", inspect(Templates)]) @expected_msg "Pow mailer templates has been installed in your phoenix app!" @expected_template_files [ ...
35.396825
187
0.6287
7a48741855bcdb22e5f5e467ea9233e5e07a481a
1,131
exs
Elixir
config/config.exs
redink/bloom_list
28aa83d28a58fd30b835be5f98ca2d6d2627339e
[ "Apache-2.0" ]
4
2019-03-14T10:33:52.000Z
2019-06-24T10:10:29.000Z
config/config.exs
redink/bloom_list
28aa83d28a58fd30b835be5f98ca2d6d2627339e
[ "Apache-2.0" ]
17
2019-04-03T21:16:20.000Z
2021-08-02T21:14:21.000Z
config/config.exs
redink/bloom_list
28aa83d28a58fd30b835be5f98ca2d6d2627339e
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.483871
73
0.751547
7a489acf813f224dfd31e30956109702a88047ed
391
ex
Elixir
lib/cloudinary/transformation/custom_function.ex
h-ikeda/cloudinary-elixir
5e70aedb6d1e51839f1e21c49b40293036b99efd
[ "MIT" ]
1
2021-05-23T09:17:44.000Z
2021-05-23T09:17:44.000Z
lib/cloudinary/transformation/custom_function.ex
h-ikeda/cloudinary-elixir
5e70aedb6d1e51839f1e21c49b40293036b99efd
[ "MIT" ]
44
2020-05-15T03:36:36.000Z
2022-03-23T21:39:11.000Z
lib/cloudinary/transformation/custom_function.ex
h-ikeda/cloudinary-elixir
5e70aedb6d1e51839f1e21c49b40293036b99efd
[ "MIT" ]
null
null
null
defmodule Cloudinary.Transformation.CustomFunction do @moduledoc false @spec to_url_string(%{function_type: :remote | :wasm, source: String.t()}) :: String.t() def to_url_string(%{function_type: :wasm, source: id}) when is_binary(id), do: "wasm:#{id}" def to_url_string(%{function_type: :remote, source: url}) w...
39.1
93
0.716113
7a48d56ffe9dd66584ff8f7c7e8e86be2ebe45e6
1,056
ex
Elixir
lib/codes/codes_k42.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_k42.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_k42.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_K42 do alias IcdCode.ICDCode def _K420 do %ICDCode{full_code: "K420", category_code: "K42", short_code: "0", full_name: "Umbilical hernia with obstruction, without gangrene", short_name: "Umbilical hernia with obstruction, without gangrene",...
31.058824
78
0.641098
7a48daa709f828a9f4875a1cc23b2e0fcf1088c7
2,308
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_api_categories_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_api_categories_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_api_categories_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.836066
136
0.717504
7a48e855dc9cce80b2b35044bd6f4deda360c7e6
1,586
ex
Elixir
lib/scenes/legacy/game_over.ex
codecurious-bln/elixir_snake
b0021fa32180d328a0d5794f5d8984a27e213e51
[ "MIT" ]
9
2019-10-18T14:09:33.000Z
2020-05-09T02:22:15.000Z
lib/scenes/legacy/game_over.ex
codecurious-bln/elixir_snake
b0021fa32180d328a0d5794f5d8984a27e213e51
[ "MIT" ]
23
2019-10-26T11:09:04.000Z
2020-03-02T08:17:28.000Z
lib/scenes/legacy/game_over.ex
codecurious-bln/elixir_snake
b0021fa32180d328a0d5794f5d8984a27e213e51
[ "MIT" ]
1
2019-10-31T15:53:18.000Z
2019-10-31T15:53:18.000Z
defmodule Snake.Scene.Legacy.GameOver do use Scenic.Scene alias Scenic.Graph alias Scenic.ViewPort import Scenic.Primitives, only: [text: 3, update_opts: 2] @text_opts [id: :gameover, fill: :white, text_align: :center] @graph Graph.build(font: :roboto, font_size: 36, clear_color: :black) |> text(...
26.881356
102
0.651955
7a49004128a3eb1b097d3b876cf9e3d374a0d732
2,635
exs
Elixir
config/dev.exs
ashkan18/memo
da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64
[ "MIT" ]
null
null
null
config/dev.exs
ashkan18/memo
da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64
[ "MIT" ]
null
null
null
config/dev.exs
ashkan18/memo
da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64
[ "MIT" ]
null
null
null
import Config # Configure your database config :memo, Memo.Repo, username: "memo", # password: "memo_dev", database: "memo_dev", hostname: "localhost", extensions: [{Geo.PostGIS.Extension, library: Geo}], types: Memo.PostgresTypes, show_sensitive_data_on_connection_error: true, pool_size: 10 # For dev...
31
86
0.690702
7a49169c28196fc5c40028699770b9532165066e
857
ex
Elixir
lib/prm/employees/employee_doctor.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
1
2017-07-27T16:03:28.000Z
2017-07-27T16:03:28.000Z
lib/prm/employees/employee_doctor.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
lib/prm/employees/employee_doctor.ex
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
defmodule PRM.Employees.EmployeeDoctor do @moduledoc false use Ecto.Schema import Ecto.Changeset @primary_key {:id, :binary_id, autogenerate: true} @derive {Poison.Encoder, except: [:__meta__, :employee, :employee_id, :inserted_at, :updated_at]} schema "employee_doctors" do field :science_degree, :...
27.645161
99
0.722287
7a493ba6e995f2f6d6812b8e386b32487227d011
40,959
ex
Elixir
lib/elixir/lib/registry.ex
michalmuskala/elixir
097de7d308ac40747b4524e266558a3d9498a60b
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/registry.ex
michalmuskala/elixir
097de7d308ac40747b4524e266558a3d9498a60b
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/registry.ex
michalmuskala/elixir
097de7d308ac40747b4524e266558a3d9498a60b
[ "Apache-2.0" ]
null
null
null
defmodule Registry do @moduledoc ~S""" A local, decentralized and scalable key-value process storage. It allows developers to lookup one or more processes with a given key. If the registry has `:unique` keys, a key points to 0 or 1 processes. If the registry allows `:duplicate` keys, a single key may point t...
34.246656
107
0.663664
7a494b25b3452aa5fd8f2b2413892086e4cb1d24
554
ex
Elixir
2016/day02/lib/day02/position.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day02/lib/day02/position.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day02/lib/day02/position.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
defmodule Day02.Position do @moduledoc """ Converts co-ordinates into the number of the button that they represent. """ def part_one({row, col}) do if row in 0..2 && col in 0..2 do (row * 3) + col + 1 end end def part_two({0, 2}) , do: 1 def part_two({1, col}) when col in...
29.157895
74
0.528881
7a4952e5b5b43135ae107acb2cb81e1d0af39147
424
exs
Elixir
priv/repo/migrations/20171129181403_create_product_ratings.exs
10clouds/10Books
622360ea190421e07d4b207700867be105894218
[ "MIT" ]
11
2018-08-29T15:59:09.000Z
2021-08-25T16:35:13.000Z
priv/repo/migrations/20171129181403_create_product_ratings.exs
fram74/10Books
9e4e280032c7f7b9625c831efa9850d999327e53
[ "MIT" ]
16
2018-08-29T15:43:52.000Z
2021-05-09T00:53:56.000Z
priv/repo/migrations/20171129181403_create_product_ratings.exs
fram74/10Books
9e4e280032c7f7b9625c831efa9850d999327e53
[ "MIT" ]
3
2019-05-29T14:22:59.000Z
2020-06-06T12:30:54.000Z
defmodule LibTen.Repo.Migrations.CreateProductRatings do use Ecto.Migration def change do create table(:product_ratings) do add :product_id, references(:products), null: false add :user_id, references(:users), null: false add :value, :float timestamps() end create unique_index...
24.941176
66
0.70283
7a49696ce658a4d21bd79ec9df2b43d4911523ca
1,987
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/list_targeting_options_response.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/list_targeting_options_response.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/list_targeting_options_response.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.127273
143
0.744338
7a49b72a552da0fd04c5eb76b13da382cc7ce104
20,005
ex
Elixir
lib/sage/executor.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
lib/sage/executor.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
lib/sage/executor.ex
Frameio/sage
243b387cb4043caaca289eeedf0cc8f1a075ffc3
[ "MIT" ]
null
null
null
defmodule Sage.Executor do @moduledoc """ This module is responsible for Sage execution. """ require Logger alias Sage.Executor.Retries # List of Sage.Executor functions we do not want to purge from stacktrace @stacktrace_functions_whitelist [:execute] # # Inline functions for performance optimization...
37.462547
120
0.691327
7a49d76046b86f3ebaffca090dc1712379218dd7
394
exs
Elixir
exercise_1.41.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
2
2019-08-26T13:17:27.000Z
2020-09-24T13:16:07.000Z
exercise_1.41.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
null
null
null
exercise_1.41.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
null
null
null
defmodule Doubler do def double(f), do: fn x -> f.(f.(x)) end end ExUnit.start defmodule DoublerTests do use ExUnit.Case, async: true test "it double increments" do inc = &(&1 + 1) dbl = Doubler.double(inc) assert dbl.(2) == 4 end test "it can double itself" do inc = &(&1 + 1) dblr = ...
17.130435
45
0.598985
7a4a0f7bf72cdf3a0583b1456a23fe2a6c574566
3,037
ex
Elixir
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_ingress_policy.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_ingress_policy.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_identity_accesscontextmanager_v1_ingress_policy.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
48.206349
719
0.774778