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
2d71a8dcfea1656ebee88091d6f025da85e25246
2,706
exs
Elixir
apps/admin_api/test/admin_api/v1/views/minted_token_view_test.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
2
2019-07-13T05:49:03.000Z
2021-08-19T23:58:23.000Z
apps/admin_api/test/admin_api/v1/views/minted_token_view_test.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
apps/admin_api/test/admin_api/v1/views/minted_token_view_test.exs
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
3
2018-05-08T17:15:42.000Z
2021-11-10T04:08:33.000Z
defmodule AdminAPI.V1.MintedTokenViewTest do use AdminAPI.ViewCase, :v1 alias EWallet.Web.{Date, Paginator} alias AdminAPI.V1.MintedTokenView describe "AdminAPI.V1.MintedTokenView.render/2" do test "renders minted_token.json with correct response structure" do minted_token = insert(:minted_token) ...
31.835294
99
0.581301
2d71cfa1b16df1d77366bd1043f316634527317f
1,491
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/distribution_policy_zone_configuration.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/distribution_policy_zone_configuration.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/distribution_policy_zone_configuration.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...
31.723404
153
0.74715
2d71f0077c6177aa4ef84af31d06bef787555623
3,610
ex
Elixir
lib/gen_amqp/conn.ex
getong/gen_amqp
5db3a4722a0f7cab55e2d739661026e9851f6e8d
[ "MIT" ]
5
2017-02-15T21:12:49.000Z
2020-01-20T20:52:06.000Z
lib/gen_amqp/conn.ex
getong/gen_amqp
5db3a4722a0f7cab55e2d739661026e9851f6e8d
[ "MIT" ]
2
2018-04-05T00:59:28.000Z
2018-08-07T09:13:27.000Z
lib/gen_amqp/conn.ex
getong/gen_amqp
5db3a4722a0f7cab55e2d739661026e9851f6e8d
[ "MIT" ]
3
2018-05-08T22:51:30.000Z
2020-02-25T16:20:53.000Z
defmodule GenAMQP.Conn do @moduledoc """ Handles the internals for AMQP connections """ use GenServer require Logger # Public API @doc """ Starts the connection """ @spec start_link(String.t(), GenServer.name()) :: GenServer.on_start() def start_link(conn_url, name) do Logger.info("Crearing...
27.557252
93
0.643767
2d72268bbf8c403813b938f7ae66a6dda47ba1fa
37,116
exs
Elixir
test/plainbuffer_test.exs
kianmeng/ex_aliyun_ots
554da4a80b7d59640f1b8aed75c2ff81678f0c4d
[ "MIT" ]
null
null
null
test/plainbuffer_test.exs
kianmeng/ex_aliyun_ots
554da4a80b7d59640f1b8aed75c2ff81678f0c4d
[ "MIT" ]
null
null
null
test/plainbuffer_test.exs
kianmeng/ex_aliyun_ots
554da4a80b7d59640f1b8aed75c2ff81678f0c4d
[ "MIT" ]
null
null
null
defmodule ExAliyunOtsTest.PlainBuffer do use ExUnit.Case require Logger alias ExAliyunOts.Const.PKType require PKType alias ExAliyunOts.PlainBuffer, as: PlainBuffer test "deserialize row with primary keys only" do row = <<117, 0, 0, 0, 1, 3, 4, 13, 0, 0, 0, 112, 97, 114, 116, 105, 116, 105, 111, ...
65.230228
150
0.503907
2d72511c8b5fc3f4ac5539aa1c1efd1c7db2d7be
889
ex
Elixir
lib/ex_nifcloud/request/hackney.ex
kzmake/ex_nifcloud
87e69bb78fba4132b767decbc33eeb10bd79c593
[ "MIT" ]
null
null
null
lib/ex_nifcloud/request/hackney.ex
kzmake/ex_nifcloud
87e69bb78fba4132b767decbc33eeb10bd79c593
[ "MIT" ]
null
null
null
lib/ex_nifcloud/request/hackney.ex
kzmake/ex_nifcloud
87e69bb78fba4132b767decbc33eeb10bd79c593
[ "MIT" ]
null
null
null
defmodule ExNifcloud.Request.Hackney do @behaviour ExNifcloud.Request.HttpClient @moduledoc """ Configuration for :hackney Options can be set for :hackney with the following config: config :ex_nifcloud, :hackney_opts, recv_timeout: 30_000 The default config handles setting the above """ @d...
29.633333
74
0.650169
2d7266124a3803bd72c9d738b8c182257e0e3453
684
ex
Elixir
lib/survey_api_web/views/survey_data_view.ex
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
lib/survey_api_web/views/survey_data_view.ex
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
lib/survey_api_web/views/survey_data_view.ex
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
defmodule SurveyApiWeb.SurveyDataView do use SurveyApiWeb, :view def render("index.json", %{surveys: surveys}) do %{data: render_many(surveys, SurveyApiWeb.SurveyDataView, "survey.json")} end def render("show.json", %{survey: survey}) do %{data: render_one(survey, SurveyApiWeb.SurveyDataView, "survey....
27.36
85
0.688596
2d726a4669c71f206535e1357fa6bc0e12026b15
6,961
ex
Elixir
lib/iex/lib/iex/evaluator.ex
gsphanikumar/elixir
6ca225da4e016200a462888348ff1c3feb625b78
[ "Apache-2.0" ]
4
2015-12-22T02:46:39.000Z
2016-04-26T06:11:09.000Z
lib/iex/lib/iex/evaluator.ex
alco/elixir
4407170349aa12c58664cab2122374167e827f5e
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/evaluator.ex
alco/elixir
4407170349aa12c58664cab2122374167e827f5e
[ "Apache-2.0" ]
null
null
null
defmodule IEx.Evaluator do @moduledoc false @doc """ Eval loop for an IEx session. Its responsibilities include: * loading of .iex files * evaluating code * trapping exceptions in the code being evaluated * keeping expression history """ def init(server, leader, opts) do old_leader = Pr...
30.00431
110
0.643298
2d7276349a7e1a7a0746fd4c6a6e60159ee99ae3
583
exs
Elixir
test/views/error_view_test.exs
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
12
2016-01-27T01:30:42.000Z
2019-12-07T20:31:01.000Z
test/views/error_view_test.exs
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
3
2016-11-22T12:22:59.000Z
2017-08-01T17:26:40.000Z
test/views/error_view_test.exs
Dania02525/widget_saas
17b853f07be08a851c3e355863c18e15755cb7cb
[ "MIT" ]
5
2016-07-11T18:39:02.000Z
2019-10-23T03:22:49.000Z
defmodule WidgetSaas.ErrorViewTest do use WidgetSaas.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(WidgetSaas.ErrorView, "404.html", []) == "Page not found" end test "render 500....
26.5
68
0.684391
2d72823db8623f1f4b5448403be31ecdddc839bf
249
ex
Elixir
lib/winner.ex
manojsamanta/winner
63293ff2f53e7dd271470bfb36498a303a2394b0
[ "MIT" ]
null
null
null
lib/winner.ex
manojsamanta/winner
63293ff2f53e7dd271470bfb36498a303a2394b0
[ "MIT" ]
null
null
null
lib/winner.ex
manojsamanta/winner
63293ff2f53e7dd271470bfb36498a303a2394b0
[ "MIT" ]
null
null
null
defmodule Winner do @moduledoc """ Winner keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.9
66
0.751004
2d72abf731729cc1ff00840d804caef675513dde
7,740
ex
Elixir
lib/options/european.ex
jonathak/options
9000b7efbcafbbcba0bd8568f630507ed830b2ca
[ "MIT" ]
null
null
null
lib/options/european.ex
jonathak/options
9000b7efbcafbbcba0bd8568f630507ed830b2ca
[ "MIT" ]
null
null
null
lib/options/european.ex
jonathak/options
9000b7efbcafbbcba0bd8568f630507ed830b2ca
[ "MIT" ]
null
null
null
defmodule Options.European do @moduledoc """ Functions for evaluating European call options. """ ###################### ### default values ### ###################### # volatility def vol(x \\ 0.3), do: x # time to maturity (years) def t(x \\ 365 / 365), do: x # granularity of binomial tree (le...
26.597938
146
0.522481
2d72b92ccbe4a121ba2e27c8cbb91f2b5345edb1
99
ex
Elixir
apps/discovery_streams/lib/discovery_streams.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/discovery_streams/lib/discovery_streams.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/discovery_streams/lib/discovery_streams.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule DiscoveryStreams do @moduledoc false def instance_name(), do: :discovery_streams end
19.8
45
0.79798
2d72bb1c2da90276e4839415c263ae880ada42d5
293
exs
Elixir
lists-and-recursion/weather3.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
1
2019-02-17T11:54:17.000Z
2019-02-17T11:54:17.000Z
lists-and-recursion/weather3.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
lists-and-recursion/weather3.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
defmodule WeatherHistory do def for_location([], _target_loc), do: [] def for_location([ head = [_, target_loc, _, _] | tail], target_loc) do [ head | for_location(tail, target_loc) ] end def for_location([_ | tail], target_loc), do: for_location(tail, target_loc) end
36.625
80
0.665529
2d72e2a22a9ead1e5003ab1e80234f91d9a009e3
237
exs
Elixir
priv/repo/migrations/20200911193238_create_teams.exs
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
3
2020-11-23T15:30:04.000Z
2020-12-01T17:11:49.000Z
priv/repo/migrations/20200911193238_create_teams.exs
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
1
2020-12-29T09:09:03.000Z
2020-12-29T09:09:03.000Z
priv/repo/migrations/20200911193238_create_teams.exs
psolvy/cat_on_duty
b03ba225286c85407ca21576c39225f058b22b56
[ "MIT" ]
1
2021-08-11T10:10:16.000Z
2021-08-11T10:10:16.000Z
defmodule CatOnDuty.Repo.Migrations.CreateTeams do use Ecto.Migration def change do create table(:teams) do add :name, :string, null: false add :tg_chat_id, :string, null: false timestamps() end end end
18.230769
50
0.670886
2d72e53c231a342eb9f17b0d5fe8cc25edbd571d
19,151
ex
Elixir
lib/commanded/event/handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
null
null
null
lib/commanded/event/handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
null
null
null
lib/commanded/event/handler.ex
edwardzhou/commanded
f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d
[ "MIT" ]
null
null
null
defmodule Commanded.Event.Handler do @moduledoc """ Defines the behaviour an event handler must implement and provides a convenience macro that implements the behaviour, allowing you to handle only the events you are interested in processing. You should start your event handlers using a [Supervisor](supervis...
30.206625
100
0.667276
2d72e6b1d933785c1a9487f45e4d31d130b4e304
495
ex
Elixir
lib/smlr/compressor/gzip.ex
data-twister/smlr
6c5bbb5d45feb1426c643fef3d714dcee039ad00
[ "MIT" ]
5
2020-03-03T08:33:50.000Z
2021-02-22T01:19:01.000Z
lib/smlr/compressor/gzip.ex
data-twister/smlr
6c5bbb5d45feb1426c643fef3d714dcee039ad00
[ "MIT" ]
null
null
null
lib/smlr/compressor/gzip.ex
data-twister/smlr
6c5bbb5d45feb1426c643fef3d714dcee039ad00
[ "MIT" ]
1
2021-09-27T11:11:09.000Z
2021-09-27T11:11:09.000Z
defmodule Smlr.Compressor.Gzip do @moduledoc false @behaviour Smlr.Compressor alias Smlr.Config def name do "gzip" end def default_level do 4 end def level(opts) do Config.get_compressor_level(__MODULE__, opts) end def compress(data, opts) do z = :zlib.open() :zlib.deflateI...
17.068966
65
0.662626
2d72ea59394830c28072499091056e407e03c8e1
421
exs
Elixir
test/entrance_web/views/error_view_test.exs
exchange-prototype/Entrance
3edea9ffa2675c0580c7df43002b9e6cc275d60d
[ "Apache-2.0" ]
null
null
null
test/entrance_web/views/error_view_test.exs
exchange-prototype/Entrance
3edea9ffa2675c0580c7df43002b9e6cc275d60d
[ "Apache-2.0" ]
null
null
null
test/entrance_web/views/error_view_test.exs
exchange-prototype/Entrance
3edea9ffa2675c0580c7df43002b9e6cc275d60d
[ "Apache-2.0" ]
null
null
null
defmodule EntranceWeb.ErrorViewTest do use EntranceWeb.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(EntranceWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do ...
28.066667
93
0.736342
2d72f77bf87a4dc43207f5a84d79e531a5c1a0c0
909
ex
Elixir
lib/mix/tasks/assessments/update.ex
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/assessments/update.ex
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
2
2020-04-22T09:06:38.000Z
2020-04-22T09:15:33.000Z
lib/mix/tasks/assessments/update.ex
Hou-Rui/cadet
f9036d76005bf3b267b632dce176067ae1a19f71
[ "Apache-2.0" ]
1
2020-06-01T03:26:02.000Z
2020-06-01T03:26:02.000Z
defmodule Mix.Tasks.Cadet.Assessments.Update do @moduledoc """ Update assessments in database from the CS1101S git repository and import them. It will first check if the repository is cloned. If it is not, it will clone it. Then it will run pull updates on the repository. Finally, it will run Cadet.Assessm...
25.971429
82
0.666667
2d73023ef51a484d37576adb68702bd4308c66d8
103
exs
Elixir
integration/elistrix_test/test/elistrix_test_test.exs
tobz/elistrix
c9dd8a8369000492240969ada2b763433768aafa
[ "MIT" ]
15
2015-05-05T07:22:23.000Z
2019-08-16T12:08:56.000Z
integration/elistrix_test/test/elistrix_test_test.exs
tobz/elistrix
c9dd8a8369000492240969ada2b763433768aafa
[ "MIT" ]
null
null
null
integration/elistrix_test/test/elistrix_test_test.exs
tobz/elistrix
c9dd8a8369000492240969ada2b763433768aafa
[ "MIT" ]
null
null
null
defmodule ElistrixTestTest do use ExUnit.Case test "the truth" do assert 1 + 1 == 2 end end
12.875
29
0.669903
2d733199ecd3b6e87476da865c3944ccece65b26
2,715
ex
Elixir
lib/scenic/cache/term.ex
ruan-brandao/scenic
cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7
[ "Apache-2.0" ]
null
null
null
lib/scenic/cache/term.ex
ruan-brandao/scenic
cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7
[ "Apache-2.0" ]
null
null
null
lib/scenic/cache/term.ex
ruan-brandao/scenic
cbd8bf50c4239bb5e4ae7971bbc9850ae1f9f2b7
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 2017-11-12. # Copyright © 2017 Kry10 Industries. All rights reserved. # defmodule Scenic.Cache.Term do @moduledoc """ Simple functions to load a file, following the hashing rules. """ alias Scenic.Cache alias Scenic.Cache.Hash # import IEx # --------------------------...
27.424242
79
0.564273
2d7384354dc195e2c826f9601d8172c0f51c394c
114
exs
Elixir
test/test_helper.exs
jpaddison3/hello_phoenix
c86e0f3591134488e7e48faef96ce89818a59e62
[ "MIT" ]
null
null
null
test/test_helper.exs
jpaddison3/hello_phoenix
c86e0f3591134488e7e48faef96ce89818a59e62
[ "MIT" ]
null
null
null
test/test_helper.exs
jpaddison3/hello_phoenix
c86e0f3591134488e7e48faef96ce89818a59e62
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(HelloPhoenix.Repo, :manual) Application.ensure_all_started(:bypass)
19
58
0.824561
2d738f4ee7b506533072aec9bed4cfd109960706
647
exs
Elixir
hgw/test/lib/zwave/thermostat_test.exs
techgaun/dumpster
c2a5394afe759fb99041aea677e9b0bc4bf91aec
[ "Unlicense" ]
1
2019-12-10T22:25:31.000Z
2019-12-10T22:25:31.000Z
hgw/test/lib/zwave/thermostat_test.exs
techgaun/dumpster
c2a5394afe759fb99041aea677e9b0bc4bf91aec
[ "Unlicense" ]
3
2020-10-25T04:40:05.000Z
2020-10-25T04:48:10.000Z
hgw/test/lib/zwave/thermostat_test.exs
techgaun/dumpster
c2a5394afe759fb99041aea677e9b0bc4bf91aec
[ "Unlicense" ]
null
null
null
defmodule HubGateway.ZWave.Devices.ThermostatTest do use ExUnit.Case alias HubGateway.ZWave.Devices.Thermostat test "thermostat devices are handled as expected" do assert Thermostat.get_core_type == "thermostat" assert Thermostat.get_value_for_type("system_mode", "heat") == {:ok, "Heat"} assert Therm...
40.4375
85
0.718702
2d73be5adc5f4ab89aa442b80dc2c779fb1f0f77
780
exs
Elixir
apps/site/test/site_web/plugs/banner_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/test/site_web/plugs/banner_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/test/site_web/plugs/banner_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule SiteWeb.Plugs.BannerTest do use SiteWeb.ConnCase, async: true import SiteWeb.Plugs.Banner alias Alerts.Banner describe "call/2" do test "if there's an alert banner, assigns it along with the banner class/template", %{ conn: conn } do opts = init(banner_fn: fn -> %Banner{} end) ...
28.888889
90
0.673077
2d73ce336077e3e46c9d2cbf606d4572076bbcdb
43,833
ex
Elixir
deps/plug/lib/plug/conn.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
deps/plug/lib/plug/conn.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
deps/plug/lib/plug/conn.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
null
null
null
alias Plug.Conn.Unfetched defmodule Plug.Conn do @moduledoc """ The Plug connection. This module defines a `Plug.Conn` struct and the main functions for working with Plug connections. Note request headers are normalized to lowercase and response headers are expected to have lower-case keys. ## Request...
35.52107
141
0.657792
2d73ec8cf06d754b9d7e7f52295bef5779498677
2,549
ex
Elixir
lib/microformats2.ex
jalcine/microformats2-elixir
a7b1d0e6ac3e01dc4f0f9e96d57948dc53b127ad
[ "MIT" ]
null
null
null
lib/microformats2.ex
jalcine/microformats2-elixir
a7b1d0e6ac3e01dc4f0f9e96d57948dc53b127ad
[ "MIT" ]
null
null
null
lib/microformats2.ex
jalcine/microformats2-elixir
a7b1d0e6ac3e01dc4f0f9e96d57948dc53b127ad
[ "MIT" ]
null
null
null
defmodule Microformats2 do def parse(url) do response = HTTPotion.get(url, follow_redirects: true) if HTTPotion.Response.success?(response) do parse(response.body, url) else :error end end def parse(content, url) do doc = Floki.parse(content) |> Floki.filter_out("temp...
28.965909
109
0.616712
2d743278d9894ceb61b57743a0658c467ba1b6e8
2,273
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/time_of_day.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/time_of_day.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/time_of_day.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...
37.883333
131
0.704795
2d747425b26acd0d395e20da19ee41fc9a975a4b
1,066
ex
Elixir
test/support/conn_case.ex
cristianberneanu/pongo
c158d32981deebbc09c70bd1568c4e5fca4df226
[ "MIT" ]
2
2020-09-21T12:13:35.000Z
2020-09-21T14:58:28.000Z
test/support/conn_case.ex
cristianberneanu/pongo
c158d32981deebbc09c70bd1568c4e5fca4df226
[ "MIT" ]
null
null
null
test/support/conn_case.ex
cristianberneanu/pongo
c158d32981deebbc09c70bd1568c4e5fca4df226
[ "MIT" ]
null
null
null
defmodule PongoWeb.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 the ...
28.052632
60
0.731707
2d748db03c08b21bb19bfaa1e03a03ade9f885f8
1,808
ex
Elixir
clients/games/lib/google_api/games/v1/model/turn_based_match_data.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/turn_based_match_data.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/turn_based_match_data.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...
36.16
191
0.751106
2d748f57f497d56fe326fea045926d5848c382be
1,120
ex
Elixir
lib/event_serializer/decoder.ex
dawvee/event_serializer
bba15fc297ab7d9744a2ae26c97248513a238f5f
[ "MIT" ]
null
null
null
lib/event_serializer/decoder.ex
dawvee/event_serializer
bba15fc297ab7d9744a2ae26c97248513a238f5f
[ "MIT" ]
5
2018-10-16T17:21:13.000Z
2019-01-21T15:16:41.000Z
lib/event_serializer/decoder.ex
dawvee/event_serializer
bba15fc297ab7d9744a2ae26c97248513a238f5f
[ "MIT" ]
2
2018-10-12T11:39:56.000Z
2018-10-16T17:06:35.000Z
defmodule EventSerializer.Decoder do @moduledoc """ This module is resposible to decode the messages from a Kafka topic. """ alias EventSerializer.Helpers.MapBuilder @doc """ This function decodes the message from a Kafka topic. First we get the `schema_id` in the message so we can fetch the schema whic...
28.717949
84
0.688393
2d74951ba2d8125efe24da5abb0b4873b48411bd
3,349
ex
Elixir
apps/ui/lib/ui_web/live/profit_indicator_live.ex
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
49
2019-10-28T22:27:28.000Z
2021-10-11T06:40:29.000Z
apps/ui/lib/ui_web/live/profit_indicator_live.ex
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
9
2019-08-30T13:15:36.000Z
2019-10-10T21:25:14.000Z
apps/ui/lib/ui_web/live/profit_indicator_live.ex
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
7
2019-10-31T06:19:26.000Z
2021-09-30T04:20:58.000Z
defmodule UiWeb.ProfitIndicatorLive do use Phoenix.LiveView alias Timex, as: T def render(assigns) do ~L""" <div class="box box-default"> <div class="box-header with-border"> <h3 class="box-title">Total Profit</h3> <div class="box-tools pull-right"> <button type="button" ...
29.121739
114
0.495372
2d7497866be23548eb7055ca08daa82b7ff0997f
904
ex
Elixir
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.481481
74
0.764381
2d74ab27bafd3ca452edbc5320fc3e8099ba63e9
1,949
ex
Elixir
priv/perf/apps/load_test/lib/watcher_info/balance.ex
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/lib/watcher_info/balance.ex
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/lib/watcher_info/balance.ex
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...
29.089552
120
0.672653
2d74acaa9746f4531f552027a60e3a0f5f1d52c2
2,351
exs
Elixir
test/expostal_test.exs
dkuku/expostal
31d19edcf6e50e52d5e12f0846b9ffa28a94cb47
[ "MIT" ]
null
null
null
test/expostal_test.exs
dkuku/expostal
31d19edcf6e50e52d5e12f0846b9ffa28a94cb47
[ "MIT" ]
null
null
null
test/expostal_test.exs
dkuku/expostal
31d19edcf6e50e52d5e12f0846b9ffa28a94cb47
[ "MIT" ]
null
null
null
defmodule ExpostalTest do use ExUnit.Case doctest Expostal test "parse address" do address = "615 Rene Levesque Ouest, Montreal, QC, Canada" parsed = Expostal.parse_address(address) assert parsed == %{ country: "canada", city: "montreal", house_number: "615", ...
30.141026
97
0.598469
2d74c7b5d9a594bfec35e94e5514e4534de2c79e
1,668
ex
Elixir
lib/amqp/channel.ex
alappe/amqp
1beda620362ba75b3cedea1c48fffd19be026042
[ "MIT" ]
688
2015-01-14T14:40:25.000Z
2022-03-20T11:54:49.000Z
lib/amqp/channel.ex
alappe/amqp
1beda620362ba75b3cedea1c48fffd19be026042
[ "MIT" ]
180
2015-03-18T18:57:32.000Z
2022-03-14T13:12:30.000Z
lib/amqp/channel.ex
alappe/amqp
1beda620362ba75b3cedea1c48fffd19be026042
[ "MIT" ]
170
2015-04-18T13:54:35.000Z
2022-03-04T09:59:49.000Z
defmodule AMQP.Channel do @moduledoc """ Functions to operate on Channels. """ alias AMQP.{Connection, Channel, SelectiveConsumer} defstruct [:conn, :pid, :custom_consumer] @type t :: %Channel{conn: Connection.t(), pid: pid, custom_consumer: custom_consumer() | nil} @type custom_consumer :: {module(), a...
31.471698
95
0.669065
2d74d5ed61a954d570b5e02a806138b46f9752d1
1,409
exs
Elixir
mix.exs
chewy-soft/elixir-oauth2
cc16e2b490f967dc6b2724acb55a2710689f7421
[ "MIT" ]
null
null
null
mix.exs
chewy-soft/elixir-oauth2
cc16e2b490f967dc6b2724acb55a2710689f7421
[ "MIT" ]
null
null
null
mix.exs
chewy-soft/elixir-oauth2
cc16e2b490f967dc6b2724acb55a2710689f7421
[ "MIT" ]
null
null
null
defmodule OAuth2.Mixfile do use Mix.Project @version "0.9.2" def project do [app: :cs_oauth2, name: "OAuth2", version: @version, elixir: "~> 1.2", deps: deps(), package: package(), description: description(), docs: docs(), elixirc_paths: elixirc_paths(Mix.env), t...
22.725806
69
0.573456
2d7505e7235d8f9fa085bcbc7ee006ef52543004
124
ex
Elixir
test/ueberauth_qq_test.ex
dev800/ueberauth_qq
991260147ff2848b0efb88cff374db17b747b291
[ "MIT" ]
null
null
null
test/ueberauth_qq_test.ex
dev800/ueberauth_qq
991260147ff2848b0efb88cff374db17b747b291
[ "MIT" ]
null
null
null
test/ueberauth_qq_test.ex
dev800/ueberauth_qq
991260147ff2848b0efb88cff374db17b747b291
[ "MIT" ]
null
null
null
defmodule UeberauthQQTest do use ExUnit.Case doctest UeberauthQQ test "the truth" do assert 1 + 1 == 2 end end
13.777778
28
0.693548
2d751016148d9f39a6cf8853e5187dd5e28a6c95
624
ex
Elixir
elixir/word-count/lib/word_count.ex
quatauta/exercism
8c8a477a83719cbe57630c6a2884d40cc1808149
[ "MIT" ]
1
2022-01-23T20:34:27.000Z
2022-01-23T20:34:27.000Z
elixir/word-count/lib/word_count.ex
quatauta/exercism
8c8a477a83719cbe57630c6a2884d40cc1808149
[ "MIT" ]
null
null
null
elixir/word-count/lib/word_count.ex
quatauta/exercism
8c8a477a83719cbe57630c6a2884d40cc1808149
[ "MIT" ]
null
null
null
defmodule WordCount do @moduledoc """ Count the number of words in the sentence. Words are compared case-insensitively. """ @spec count(String.t()) :: map def count(sentence) do downcase(sentence) |> split() |> count_words() end defp downcase(sentence) do String.downcase(sentence) end def...
22.285714
73
0.666667
2d75bf2418ff1d282cbc1b151adc8aa11cd3913d
565
ex
Elixir
apps/service_acquire/lib/acquire/query/where/parameter.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
12
2020-01-27T19:43:02.000Z
2021-07-28T19:46:29.000Z
apps/service_acquire/lib/acquire/query/where/parameter.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
81
2020-01-28T18:07:23.000Z
2021-11-22T02:12:13.000Z
apps/service_acquire/lib/acquire/query/where/parameter.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
defmodule Acquire.Query.Where.Parameter do @moduledoc false use Definition, schema: Acquire.Query.Where.Parameter.Schema @type t :: %__MODULE__{value: term} defstruct [:value] defimpl Acquire.Queryable, for: __MODULE__ do def parse_statement(_) do "?" end def parse_input(%{value: value})...
18.225806
62
0.683186
2d75d87ada048580fde6631a12d5fd9f4cd35fca
5,291
ex
Elixir
lib/strategy/weebly.ex
nsweeting/ueberauth_weebly
f47595f0fc37b5fbd0105a8deccba2cf06f9e128
[ "MIT" ]
null
null
null
lib/strategy/weebly.ex
nsweeting/ueberauth_weebly
f47595f0fc37b5fbd0105a8deccba2cf06f9e128
[ "MIT" ]
null
null
null
lib/strategy/weebly.ex
nsweeting/ueberauth_weebly
f47595f0fc37b5fbd0105a8deccba2cf06f9e128
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.Weebly do @moduledoc """ Provides an Ueberauth strategy for authenticating with Weebly. ### Setup Create an application in Weebly for you to use. Register a new application at the [weebly developers page](https://dev.weebly.com/) and get the `client_id` and `client_secret`. ...
29.232044
130
0.664903
2d75df5b4e0c01d41f7ce15836b93460071648e4
21,251
ex
Elixir
lib/bongo/ex_bongo.ex
anuragdalia/bongo
c83c9ef70f76968e122ea7f5ed7ed2857266a13b
[ "MIT" ]
null
null
null
lib/bongo/ex_bongo.ex
anuragdalia/bongo
c83c9ef70f76968e122ea7f5ed7ed2857266a13b
[ "MIT" ]
null
null
null
lib/bongo/ex_bongo.ex
anuragdalia/bongo
c83c9ef70f76968e122ea7f5ed7ed2857266a13b
[ "MIT" ]
null
null
null
defmodule Bongo.Model do @moduledoc """ Bongo.Model is a library for defining structs with a type without writing boilerplate code. ## Rationale To define a struct in Elixir, you probably want to define three things: * the struct itself, with default values, * the list of enforced keys, * its a...
25.480815
86
0.530704
2d75fb935a3737e30ddf0324358d4b6aad2b915a
1,825
ex
Elixir
lib/worker.ex
skystar-p/irc_redis
fed42fa2ce641bc735723ac191c358bc58adb7e3
[ "MIT" ]
null
null
null
lib/worker.ex
skystar-p/irc_redis
fed42fa2ce641bc735723ac191c358bc58adb7e3
[ "MIT" ]
null
null
null
lib/worker.ex
skystar-p/irc_redis
fed42fa2ce641bc735723ac191c358bc58adb7e3
[ "MIT" ]
null
null
null
defmodule IRCWorker do use GenServer def start_link(opts) do GenServer.start_link(__MODULE__, :ok, opts) end def init(_state) do result = Redix.command(:redix, ["PING"]) config = Application.get_env(:irc_redis, :general) state = %{ queue_key: config |> Keyword.fetch!(:queue_key), m...
21.470588
85
0.542466
2d760c626e4c4a97a5affb9d53283a0a8e14bd73
1,797
ex
Elixir
create_fun_umbrella/apps/create_fun_cms/lib/create_fun_cms/router.ex
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
null
null
null
create_fun_umbrella/apps/create_fun_cms/lib/create_fun_cms/router.ex
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
9
2018-06-17T09:54:03.000Z
2018-06-17T09:55:20.000Z
create_fun_umbrella/apps/create_fun_cms/lib/create_fun_cms/router.ex
Vorzious/CreateFun
5744c913ef706bc29062fa90a8ec5de12d267dab
[ "MIT" ]
1
2018-06-05T18:38:01.000Z
2018-06-05T18:38:01.000Z
defmodule CreateFunCms.Router do use CreateFunCms, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end pipeline :auth_access do p...
26.043478
67
0.678909
2d76116144647b72406b0ab242d8d873d2df4f44
45,143
ex
Elixir
lib/elixir/lib/gen_server.ex
goalves/elixir
75726d5611413ee45cb5235b1698944b72efa244
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/gen_server.ex
goalves/elixir
75726d5611413ee45cb5235b1698944b72efa244
[ "Apache-2.0" ]
1
2020-09-14T16:23:33.000Z
2021-03-25T17:38:59.000Z
lib/elixir/lib/gen_server.ex
goalves/elixir
75726d5611413ee45cb5235b1698944b72efa244
[ "Apache-2.0" ]
null
null
null
defmodule GenServer do @moduledoc """ A behaviour module for implementing the server of a client-server relation. A GenServer is a process like any other Elixir process and it can be used to keep state, execute code asynchronously and so on. The advantage of using a generic server process (GenServer) impleme...
36.464459
129
0.664134
2d76134082a276abaac969e638e9de7335153b8c
23,151
exs
Elixir
lib/elixir/test/elixir/kernel_test.exs
michaelkschmidt/elixir
805efd071d220b7431269b9716c5f7ce44ca36e8
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel_test.exs
michaelkschmidt/elixir
805efd071d220b7431269b9716c5f7ce44ca36e8
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel_test.exs
michaelkschmidt/elixir
805efd071d220b7431269b9716c5f7ce44ca36e8
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule KernelTest do use ExUnit.Case, async: true doctest Kernel test "=~/2" do assert ("abcd" =~ ~r/c(d)/) == true assert ("abcd" =~ ~r/e/) == false assert ("abcd" =~ ~R/c(d)/) == true assert ("abcd" =~ ~R/e/) == false string = "^ab+cd*$" ...
27.430095
112
0.556434
2d761f51d2a3c51eeecaa2478f81bf7f5674e7ab
1,742
ex
Elixir
xarb/lib/xarb_web/controllers/user_reset_password_controller.ex
Erik-joh/examensarbete
951847f0ee5195abc0e3aa5f2b6fff78233127ee
[ "MIT" ]
null
null
null
xarb/lib/xarb_web/controllers/user_reset_password_controller.ex
Erik-joh/examensarbete
951847f0ee5195abc0e3aa5f2b6fff78233127ee
[ "MIT" ]
null
null
null
xarb/lib/xarb_web/controllers/user_reset_password_controller.ex
Erik-joh/examensarbete
951847f0ee5195abc0e3aa5f2b6fff78233127ee
[ "MIT" ]
null
null
null
defmodule XarbWeb.UserResetPasswordController do use XarbWeb, :controller alias Xarb.Accounts plug :get_user_by_reset_password_token when action in [:edit, :update] def new(conn, _params) do render(conn, "new.html") end def create(conn, %{"user" => %{"email" => email}}) do if user = Accounts.get...
29.033333
101
0.659013
2d76268e3a804c43dcd6eee5617d9f14d7ec4e0d
184
exs
Elixir
priv/repo/migrations/20170621210102_create_sponsor.exs
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
priv/repo/migrations/20170621210102_create_sponsor.exs
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
priv/repo/migrations/20170621210102_create_sponsor.exs
Namuraid/backend
04a10248bfeb156eb291207931621b40585d8f7e
[ "MIT" ]
null
null
null
defmodule Namuraid.Repo.Migrations.CreateSponsor do use Ecto.Migration def change do create table(:sponsor) do add :logo, :string timestamps() end end end
14.153846
51
0.679348
2d763b76ccb673c449d6f8b2fb0756d742ac272a
2,375
exs
Elixir
test/cadet/stories/stories_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
null
null
null
test/cadet/stories/stories_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
test/cadet/stories/stories_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule Cadet.StoriesTest do alias Cadet.Stories.{Story, Stories} alias Cadet.Accounts.User use Cadet.ChangesetCase, entity: Story setup do valid_params = %{ open_at: Timex.shift(Timex.now(), days: 1), close_at: Timex.shift(Timex.now(), days: Enum.random(2..30)), is_published: false, ...
28.963415
88
0.640842
2d7643322a1b22a4fdb50080c6b2e434659e3181
211
exs
Elixir
priv/repo/migrations/20190721005538_add_acq_method_to_roster_positions.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
17
2016-12-22T06:39:26.000Z
2021-01-20T13:51:13.000Z
priv/repo/migrations/20190721005538_add_acq_method_to_roster_positions.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
608
2016-08-06T18:57:58.000Z
2022-03-01T02:48:17.000Z
priv/repo/migrations/20190721005538_add_acq_method_to_roster_positions.exs
axelclark/ex338
3fb3c260d93bda61f7636ee1a677770d2dc1b89a
[ "MIT" ]
6
2017-11-21T22:35:45.000Z
2022-01-11T21:37:40.000Z
defmodule Ex338.Repo.Migrations.AddAcqMethodToRosterPositions do use Ecto.Migration def change do alter table(:roster_positions) do add(:acq_method, :string, default: "unknown") end end end
21.1
64
0.739336
2d766dd183e27a3d5619be859a57b205379a3e35
369
ex
Elixir
lib/models/note.ex
LauraBeatris/elixir-diary
d28966e6fa437a1273b859e0d7cbb6d77ca07f1b
[ "MIT" ]
2
2020-08-16T18:57:17.000Z
2021-03-13T14:48:17.000Z
lib/models/note.ex
LauraBeatris/elixir-diary
d28966e6fa437a1273b859e0d7cbb6d77ca07f1b
[ "MIT" ]
null
null
null
lib/models/note.ex
LauraBeatris/elixir-diary
d28966e6fa437a1273b859e0d7cbb6d77ca07f1b
[ "MIT" ]
null
null
null
defmodule Note do @moduledoc """ Defines the data structure of a diary note """ @enforce_keys [:value] @derive [Poison.Encoder] defstruct [ created_at: Date.utc_today, value: "" ] @spec new(value: String.t()) :: %Note{} def new(value) do %Note{value: value} end def update(note, va...
16.772727
46
0.620596
2d7692346af60012eb74c9aac7535c25ea34c767
1,583
ex
Elixir
lib/qencode/client.ex
char0n/qencode
22751a652e0af229b89e9b70498a0d36761c30e5
[ "BSD-3-Clause" ]
2
2019-07-03T11:51:39.000Z
2019-08-06T15:34:34.000Z
lib/qencode/client.ex
char0n/qencode
22751a652e0af229b89e9b70498a0d36761c30e5
[ "BSD-3-Clause" ]
5
2019-07-19T17:34:09.000Z
2019-11-04T10:59:11.000Z
lib/qencode/client.ex
char0n/qencode
22751a652e0af229b89e9b70498a0d36761c30e5
[ "BSD-3-Clause" ]
null
null
null
defmodule Qencode.Client do @moduledoc """ This module represents client for this Qencode API wrapper. """ require Logger import Qencode, only: [json_library: 0] @host "https://api.qencode.com" @headers %{ "Content-Type" => "application/x-www-form-urlencoded" } @doc """ Creating new data repr...
25.532258
92
0.648768
2d769a5261db6f87a071288f1e154f849d052336
123
ex
Elixir
lib/google_fit/activity_type/biking.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
2
2017-02-01T13:51:26.000Z
2019-04-12T11:37:25.000Z
lib/google_fit/activity_type/biking.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
null
null
null
lib/google_fit/activity_type/biking.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
null
null
null
defmodule GoogleFit.ActivityType.Biking do @moduledoc false def code, do: GoogleFit.ActivityType.code(__MODULE__) end
20.5
55
0.804878
2d76a6633e6504093ef8bbe25ad774993279b11c
7,481
ex
Elixir
lib/elixir_leaderboard/ets_store/ets.ex
payomdousti/elixir_leaderboard
af41620bb6cc44c05a121586c26b81ca04a4b598
[ "Apache-2.0" ]
2
2019-03-02T00:38:03.000Z
2020-05-22T01:53:23.000Z
lib/elixir_leaderboard/ets_store/ets.ex
payomdousti/elixir_leaderboard
af41620bb6cc44c05a121586c26b81ca04a4b598
[ "Apache-2.0" ]
null
null
null
lib/elixir_leaderboard/ets_store/ets.ex
payomdousti/elixir_leaderboard
af41620bb6cc44c05a121586c26b81ca04a4b598
[ "Apache-2.0" ]
1
2019-02-28T00:08:52.000Z
2019-02-28T00:08:52.000Z
defmodule ElixirLeaderboard.EtsStore.Ets do @moduledoc false alias ElixirLeaderboard.{Indexer, Entry} @meta_table_settings [ :set, :named_table, :protected, read_concurrency: true ] @entries_table_settings [ :ordered_set, :named_table, :protected, read_concurrency: true ] ...
22.331343
79
0.594974
2d76fa3db330cfd14c62c26f18824a4eecc6af85
1,591
exs
Elixir
test/mint/web_socket/autobahn_test.exs
hkrutzer/mint_web_socket
213bdc56addbc3d7b5344d14b6e194cc1ca3024f
[ "Apache-2.0" ]
23
2021-07-01T22:12:26.000Z
2022-03-25T14:36:23.000Z
test/mint/web_socket/autobahn_test.exs
hkrutzer/mint_web_socket
213bdc56addbc3d7b5344d14b6e194cc1ca3024f
[ "Apache-2.0" ]
11
2021-05-11T13:46:11.000Z
2022-03-31T10:13:33.000Z
test/mint/web_socket/autobahn_test.exs
hkrutzer/mint_web_socket
213bdc56addbc3d7b5344d14b6e194cc1ca3024f
[ "Apache-2.0" ]
2
2022-02-24T13:58:45.000Z
2022-03-23T15:25:36.000Z
defmodule Mint.WebSocket.AutobahnTest do @moduledoc """ A suite of tests against the Autobahn|Testsuite See https://github.com/crossbario/autobahn-testsuite """ use ExUnit.Case, async: true @moduletag :autobahn @moduletag :capture_log @extensions [ {~r"^12\.", [Mint.WebSocket.PerMessageDeflate]},...
28.410714
102
0.651163
2d7703507a1ab368e0c660933e04728c65be9b48
98
ex
Elixir
test/support/types/binary.ex
nickdichev/cloak_ecto
4e7c49dc3eaf623162aa5d55e91b83c49f3b2854
[ "MIT" ]
139
2018-12-17T13:52:42.000Z
2022-03-27T02:58:55.000Z
test/support/types/binary.ex
nickdichev/cloak_ecto
4e7c49dc3eaf623162aa5d55e91b83c49f3b2854
[ "MIT" ]
25
2019-08-07T16:49:03.000Z
2022-03-14T18:17:54.000Z
test/support/types/binary.ex
nickdichev/cloak_ecto
4e7c49dc3eaf623162aa5d55e91b83c49f3b2854
[ "MIT" ]
30
2019-01-09T12:36:16.000Z
2022-03-14T18:03:28.000Z
defmodule Cloak.Ecto.Encrypted.Binary do use Cloak.Ecto.Binary, vault: Cloak.Ecto.TestVault end
24.5
52
0.806122
2d7721b8a3f833cded6816a1a7ac6fd3e1efd8c1
1,907
ex
Elixir
lib/logger_json/jason_safe_formatter.ex
DealPad/logger_json
680c4cc19e833e5ea5c1dd845af43072be139f98
[ "MIT" ]
null
null
null
lib/logger_json/jason_safe_formatter.ex
DealPad/logger_json
680c4cc19e833e5ea5c1dd845af43072be139f98
[ "MIT" ]
null
null
null
lib/logger_json/jason_safe_formatter.ex
DealPad/logger_json
680c4cc19e833e5ea5c1dd845af43072be139f98
[ "MIT" ]
null
null
null
defmodule LoggerJSON.JasonSafeFormatter do @moduledoc """ Utilities for converting metadata into datastructures that can be safely passed to Jason.encode!/1 """ @doc """ Produces metadata that is "safe" for calling Jason.encode!/1 on without errors. This means that unexpected Logger metadata won't cause lo...
25.426667
100
0.646041
2d7744367baa006fbaf48451ee92e5959df11734
1,778
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_normalized_vertex.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/v1beta3/model/google_cloud_documentai_v1beta1_normalized_vertex.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/v1beta3/model/google_cloud_documentai_v1beta1_normalized_vertex.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.327273
144
0.727784
2d775e5c38c416c208842bb45bb5ba1790470921
870
ex
Elixir
lib/absinthe/language/object_type_definition.ex
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
lib/absinthe/language/object_type_definition.ex
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
2
2018-08-02T13:35:38.000Z
2018-08-02T13:36:42.000Z
lib/absinthe/language/object_type_definition.ex
jlgeering/absinthe
a3dbc29640d613928398626ad75a8f03203a1720
[ "MIT" ]
null
null
null
defmodule Absinthe.Language.ObjectTypeDefinition do @moduledoc false alias Absinthe.{Blueprint, Language} defstruct name: nil, directives: [], interfaces: [], fields: [], loc: %{start_line: nil} @type t :: %__MODULE__{ name: String.t(), dire...
28.064516
75
0.614943
2d77a830b5de63764b4eb302c07a4b19bb56c4ff
858
exs
Elixir
chp02/exercise-03.exs
ulissesalmeida/learn-fp-with-elixir-exercises
4286f6ecbca55c7487f4ad0f4dfbc323efa8e105
[ "MIT" ]
5
2019-03-21T00:01:38.000Z
2021-02-26T12:41:43.000Z
chp02/exercise-03.exs
ulissesalmeida/learn-fp-with-elixir-exercises
4286f6ecbca55c7487f4ad0f4dfbc323efa8e105
[ "MIT" ]
null
null
null
chp02/exercise-03.exs
ulissesalmeida/learn-fp-with-elixir-exercises
4286f6ecbca55c7487f4ad0f4dfbc323efa8e105
[ "MIT" ]
4
2019-07-12T22:00:20.000Z
2020-12-23T22:23:40.000Z
# • Build an anonymous function that applies a tax of 12% to a given price. # It should print a message with the new price and tax value. Bind the # anonymous function to a variable called apply_tax. You should use apply_tax # with Enum.each/2, like in the following example. Don’t worry about Enum.each/2 # now; you...
39
81
0.670163
2d77c35dceb5180e5fde26b2c2f18d2b14bd4b5d
280
exs
Elixir
priv/repo/migrations/20171013203929_create_articles.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "MIT" ]
null
null
null
priv/repo/migrations/20171013203929_create_articles.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "MIT" ]
null
null
null
priv/repo/migrations/20171013203929_create_articles.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "MIT" ]
null
null
null
defmodule ElixirBlog.Repo.Migrations.CreateArticles do use Ecto.Migration def change do create table(:articles) do add :title, :string add :body, :string add :author_id, :integer add :tags, {:array, :string} timestamps() end end end
17.5
54
0.642857
2d77d02f731fa6d52883c78edd82298717f49e42
2,299
exs
Elixir
mix.exs
elixir-cldr/cldr_utils
66c6598706e7feea00188f96f2f4f1b3bee5e17c
[ "Apache-2.0" ]
6
2019-07-19T17:49:11.000Z
2021-03-20T14:38:28.000Z
mix.exs
elixir-cldr/cldr_utils
66c6598706e7feea00188f96f2f4f1b3bee5e17c
[ "Apache-2.0" ]
5
2020-01-28T06:11:50.000Z
2022-03-22T01:31:16.000Z
mix.exs
elixir-cldr/cldr_utils
66c6598706e7feea00188f96f2f4f1b3bee5e17c
[ "Apache-2.0" ]
3
2020-01-28T06:08:42.000Z
2020-10-20T13:40:19.000Z
defmodule Cldr.Utils.MixProject do use Mix.Project @version "2.17.0" @source_url "https://github.com/elixir-cldr/cldr_utils" def project do [ app: :cldr_utils, version: @version, elixir: "~> 1.6", description: description(), start_permanent: Mix.env() == :prod, deps: de...
22.99
86
0.539365
2d77f76aa0647ebf84923c9e37facf77ee107db5
75
ex
Elixir
web/views/user_view.ex
jbr/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
335
2015-06-19T18:27:51.000Z
2020-11-25T19:00:27.000Z
web/views/user_view.ex
thisdata/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
33
2015-06-24T17:00:01.000Z
2017-11-23T09:53:29.000Z
web/views/user_view.ex
thisdata/phoenix_guardian
54152b8ca0ffa6afb4076e93814a54c68430f3e8
[ "MIT" ]
95
2015-06-30T22:18:00.000Z
2022-01-14T13:47:10.000Z
defmodule PhoenixGuardian.UserView do use PhoenixGuardian.Web, :view end
18.75
37
0.826667
2d786dc9e098f3ecce729a6b45619f569c7a7136
779
ex
Elixir
lib/benchfella/cli_util.ex
joekain/benchfella
0fd092f2b20bd1b80fda95eb347ae37919f66ec2
[ "MIT" ]
null
null
null
lib/benchfella/cli_util.ex
joekain/benchfella
0fd092f2b20bd1b80fda95eb347ae37919f66ec2
[ "MIT" ]
null
null
null
lib/benchfella/cli_util.ex
joekain/benchfella
0fd092f2b20bd1b80fda95eb347ae37919f66ec2
[ "MIT" ]
null
null
null
defmodule Benchfella.CLI.Util do def read_all_input() do read_all_input([]) end def read_all_input(lines) do case IO.binread(:line) do :eof -> lines |> Enum.reverse |> Enum.join("") {:error, reason} -> Mix.raise "Error reading from input: #{inspect reason}" line -> ...
24.34375
80
0.571245
2d78a599f80ae3f48bbd35788e086c64dbc8bf12
1,987
ex
Elixir
apps/omg_watcher/test/support/web/data_case.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/test/support/web/data_case.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/test/support/web/data_case.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OmiseGO 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 in writi...
29.220588
77
0.704076
2d78cbd238f90f03ec5f95a1f6bb14d96191a428
1,109
exs
Elixir
test/component_storage_test.exs
Phiriq/chlorine
30da3362949a8264125ce2d90a96f0f5318cf589
[ "MIT" ]
1
2021-06-30T03:40:47.000Z
2021-06-30T03:40:47.000Z
test/component_storage_test.exs
Phiriq/chlorine
30da3362949a8264125ce2d90a96f0f5318cf589
[ "MIT" ]
null
null
null
test/component_storage_test.exs
Phiriq/chlorine
30da3362949a8264125ce2d90a96f0f5318cf589
[ "MIT" ]
null
null
null
defmodule Chlorine.ComponentStorageTest do use ExUnit.Case, async: true alias Chlorine.Component.Storage alias Chlorine.ID @id1 ID.get() @id2 ID.get() @component1 {ModuleFoo, @id1} @component2 {ModuleFoo, @id2} @data %{ hello: :world, foo: :bar } @data2 %{ hello: :john, bar: :fo...
20.924528
48
0.645627
2d78ce2755f21fbcb44e4161917d318565bfd115
900
exs
Elixir
apps/discovery_streams/config/config.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
18
2020-11-13T15:38:24.000Z
2021-05-26T00:40:08.000Z
apps/discovery_streams/config/config.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
365
2020-09-21T12:31:40.000Z
2021-09-25T14:54:21.000Z
apps/discovery_streams/config/config.exs
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
3
2020-10-06T16:17:49.000Z
2021-09-03T17:11:41.000Z
use Mix.Config config :discovery_streams, DiscoveryStreamsWeb.Endpoint, http: [port: 4001, stream_handlers: [Web.StreamHandlers.StripServerHeader, :cowboy_stream_h]], secret_key_base: "This is a test key", render_errors: [view: DiscoveryStreamsWeb.ErrorView, accepts: ~w(html json)], pubsub_server: DiscoveryStr...
27.272727
96
0.732222
2d78d486dcf79a44d4bc97977a2a13ab8f620bd9
80
ex
Elixir
lib/buy_the_food_web/views/user_reset_password_view.ex
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
lib/buy_the_food_web/views/user_reset_password_view.ex
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
lib/buy_the_food_web/views/user_reset_password_view.ex
Fomich686/buy_the_food
ca4638a4efbb5f86347948ad07bcf7827f6523f9
[ "Apache-2.0" ]
null
null
null
defmodule BuyTheFoodWeb.UserResetPasswordView do use BuyTheFoodWeb, :view end
20
48
0.85
2d78ec6f17e333802d95e5ee89688c84be4e1bd4
973
ex
Elixir
lib/alfred/theme.ex
lee-dohm/alfred-ex
109939aa8cf3e7f87be57cdc569c701fde9d1920
[ "MIT" ]
5
2018-01-23T05:49:32.000Z
2020-01-26T17:54:57.000Z
lib/alfred/theme.ex
lee-dohm/alfred-ex
109939aa8cf3e7f87be57cdc569c701fde9d1920
[ "MIT" ]
1
2017-11-11T18:31:18.000Z
2017-11-11T18:31:18.000Z
lib/alfred/theme.ex
lee-dohm/alfred-ex
109939aa8cf3e7f87be57cdc569c701fde9d1920
[ "MIT" ]
1
2019-12-28T11:33:37.000Z
2019-12-28T11:33:37.000Z
defmodule Alfred.Theme do @moduledoc """ Contains Alfred theme information. * `background_color` &mdash; from environment `alfred_theme_background` * `id` &mdash; from environment `alfred_theme` * `selection_background_color` &mdash; from environment `alfred_theme_selection_background` * `subtext` &mdash; ...
34.75
94
0.754368
2d793f0b91e7d7568f2471e035b665418201b186
1,662
ex
Elixir
lib/level/connections/user_group_memberships.ex
davecremins/level
cc06b86d32e9bef954a199dc4a2b47561815fd4b
[ "Apache-2.0" ]
null
null
null
lib/level/connections/user_group_memberships.ex
davecremins/level
cc06b86d32e9bef954a199dc4a2b47561815fd4b
[ "Apache-2.0" ]
null
null
null
lib/level/connections/user_group_memberships.ex
davecremins/level
cc06b86d32e9bef954a199dc4a2b47561815fd4b
[ "Apache-2.0" ]
null
null
null
defmodule Level.Connections.UserGroupMemberships do @moduledoc """ A paginated connection for fetching a user's group memberships. """ import Ecto.Query import Level.Gettext alias Level.Groups.Group alias Level.Groups.GroupUser alias Level.Pagination alias Level.Pagination.Args alias Level.Repo ...
27.245902
92
0.573406
2d795e4bf127f0cb32d0c46ae2af1a6dff0de1b5
513
ex
Elixir
lib/romulus_web/views/profile_view.ex
haighis/romulus_app
d1c85ecb72d935eb9dd314617448bd56b53789e9
[ "MIT" ]
null
null
null
lib/romulus_web/views/profile_view.ex
haighis/romulus_app
d1c85ecb72d935eb9dd314617448bd56b53789e9
[ "MIT" ]
null
null
null
lib/romulus_web/views/profile_view.ex
haighis/romulus_app
d1c85ecb72d935eb9dd314617448bd56b53789e9
[ "MIT" ]
null
null
null
defmodule RomulusWeb.ProfileView do use RomulusWeb, :view alias RomulusWeb.{ProfileView, FormatHelpers} def render("show.json", %{user: user, following: following}) do %{profile: render_one(user, ProfileView, "profile.json", following: following)} end def render("profile.json", %{profile: profile, follo...
30.176471
83
0.692008
2d79631afe6d78bfadac3ca19d6d21ffcc54d86f
33,026
ex
Elixir
lib/elixir/lib/kernel/typespec.ex
matiasgarciaisaia/elixir
d0a3fdbfd774e0a6972513dcb82c2683400e67a0
[ "Apache-2.0" ]
1
2015-11-24T23:39:25.000Z
2015-11-24T23:39:25.000Z
lib/elixir/lib/kernel/typespec.ex
lau/elixir
6cfe09c50b5f612e473725623d901080077ad6a6
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/typespec.ex
lau/elixir
6cfe09c50b5f612e473725623d901080077ad6a6
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.Typespec do @moduledoc false ## Deprecated API moved to Code.Typespec @doc false @deprecated "Use Code.Typespec.spec_to_quoted/2 instead" def spec_to_ast(name, spec) do Code.Typespec.spec_to_quoted(name, spec) end @doc false @deprecated "Use Code.Typespec.type_to_quoted/1 instead...
32.763889
99
0.61827
2d7977308d581e28c297c8ffd6d3a4ca13078580
1,013
ex
Elixir
test/support/conn_case.ex
eslingerbryan/potion
eda03f3f9380e75873c6110321780c2b2aa97f98
[ "MIT" ]
2
2020-01-21T00:47:14.000Z
2020-03-25T11:25:26.000Z
test/support/conn_case.ex
eslingerbryan/potion
eda03f3f9380e75873c6110321780c2b2aa97f98
[ "MIT" ]
null
null
null
test/support/conn_case.ex
eslingerbryan/potion
eda03f3f9380e75873c6110321780c2b2aa97f98
[ "MIT" ]
1
2020-01-21T00:47:16.000Z
2020-01-21T00:47:16.000Z
defmodule PotionWeb.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 the...
28.942857
60
0.736426
2d7994eb1e9a181cc2b52e006fb4db00b6e8ada9
325
exs
Elixir
priv/test_repo/migrations/20170211131314_create_user.exs
nickolaich/formex_ecto
322907daa4924d1c297acc7f9e60f99bc8f2f6f3
[ "MIT" ]
20
2017-06-25T12:30:03.000Z
2021-04-25T06:43:31.000Z
priv/test_repo/migrations/20170211131314_create_user.exs
nickolaich/formex_ecto
322907daa4924d1c297acc7f9e60f99bc8f2f6f3
[ "MIT" ]
8
2017-11-19T17:15:32.000Z
2020-02-02T12:50:03.000Z
priv/test_repo/migrations/20170211131314_create_user.exs
nickolaich/formex_ecto
322907daa4924d1c297acc7f9e60f99bc8f2f6f3
[ "MIT" ]
9
2018-03-30T22:14:13.000Z
2021-11-15T12:12:56.000Z
defmodule App.Repo.Migrations.CreateUser do use Ecto.Migration def change do create table(:users) do add :first_name, :string add :last_name, :string add :department_id, references(:departments, on_delete: :nothing) timestamps() end create index(:users, [:department_id]) end...
20.3125
71
0.68
2d799eb5b575bcef492ee25cc3454234768a5687
3,507
ex
Elixir
lib/maybe.ex
mbuhot/moonsugar
2b31c88173b48ca0056729a1ab9daa51052a59a6
[ "MIT" ]
3
2018-03-28T11:54:09.000Z
2018-08-04T11:29:23.000Z
lib/maybe.ex
bobfp/moonsugar
91dc807d0fb9bb4a428993458d09d743b91271b6
[ "MIT" ]
null
null
null
lib/maybe.ex
bobfp/moonsugar
91dc807d0fb9bb4a428993458d09d743b91271b6
[ "MIT" ]
1
2018-03-27T09:43:31.000Z
2018-03-27T09:43:31.000Z
defmodule Moonsugar.Maybe do @moduledoc """ The Maybe module contains functions that help create and interact with the maybe type. The Maybe type is represented as either `{:just, value}` or `:nothing`. """ @doc """ Helper function to create a just tuple. ## Examples iex> Maybe.just(3) {:just...
18.956757
160
0.524665
2d79dfba873ca40c7a19aeca7aa0c10cc28c8ea2
814
exs
Elixir
config/runtime.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
null
null
null
config/runtime.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
null
null
null
config/runtime.exs
gildesmarais/website-1
7a19bd98d06a064e52fa279e226002e9c3b986f0
[ "MIT" ]
null
null
null
import Config if config_env() == :prod do database_url = System.get_env("DATABASE_URL") || raise """ environment variable DATABASE_URL is missing. For example: ecto://USER:PASS@HOST/DATABASE """ config :hierbautberlin, Hierbautberlin.Repo, # ssl: true, url: database_url, po...
27.133333
69
0.667076
2d79e3aab3ac122e6f6e7522b27e1f8cc5ab50a7
7,975
ex
Elixir
lib/phoenix/token.ex
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
lib/phoenix/token.ex
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
lib/phoenix/token.ex
jshahs/magiclogo
5b18cb4efff04c3547d167bab194d2806ec20d8a
[ "MIT" ]
null
null
null
defmodule Phoenix.Token do @moduledoc """ Tokens provide a way to generate and verify bearer tokens for use in Channels or API authentication. The data stored in the token is signed to prevent tampering but not encrypted. This means it is safe to store identification information (such as user IDs) but shou...
37.441315
98
0.685016
2d79e84aae9d9a1c388d4f802642e7bc50583b80
667
exs
Elixir
config/test.exs
bforchhammer/spandex
caa094c28bb98ef4a16a96ae451d35576ba7fe91
[ "MIT" ]
237
2018-08-29T17:48:17.000Z
2022-03-29T15:35:35.000Z
config/test.exs
bforchhammer/spandex
caa094c28bb98ef4a16a96ae451d35576ba7fe91
[ "MIT" ]
69
2018-08-23T14:28:25.000Z
2022-02-02T13:59:48.000Z
config/test.exs
bforchhammer/spandex
caa094c28bb98ef4a16a96ae451d35576ba7fe91
[ "MIT" ]
35
2018-08-27T13:33:34.000Z
2021-12-30T12:53:47.000Z
use Mix.Config config :logger, :console, level: :debug, colors: [enabled: false], format: "$time $metadata[$level] $message\n", metadata: [:trace_id, :span_id] config :spandex, :decorators, tracer: Spandex.Test.Support.Tracer config :spandex, Spandex.Test.Support.Tracer, service: :spandex_test, adapter: ...
22.233333
65
0.70015
2d79f73f830645d71508de3ab9e75ffdbd191882
214
ex
Elixir
lib/fun_with_flags/timestamps.ex
elpikel/fun_with_flags
1c409e8872eb7e370f827a0d471082aeff09cf33
[ "MIT" ]
736
2017-02-16T12:55:57.000Z
2022-03-31T19:50:43.000Z
lib/fun_with_flags/timestamps.ex
elpikel/fun_with_flags
1c409e8872eb7e370f827a0d471082aeff09cf33
[ "MIT" ]
86
2017-04-02T16:42:33.000Z
2022-03-25T01:07:13.000Z
lib/fun_with_flags/timestamps.ex
elpikel/fun_with_flags
1c409e8872eb7e370f827a0d471082aeff09cf33
[ "MIT" ]
63
2017-04-28T23:38:15.000Z
2022-03-28T12:49:02.000Z
defmodule FunWithFlags.Timestamps do @moduledoc false def now do DateTime.utc_now() |> DateTime.to_unix(:second) end def expired?(timestamp, ttl) do (timestamp + ttl) < __MODULE__.now() end end
17.833333
51
0.696262
2d79fa32c27ab9a8d0851943668d46ac08a4b06a
1,858
ex
Elixir
lib/ex_doc/markdown.ex
kelvinst/ex_doc
609d9765dd6f098dc298e5d6db6430859ee934ec
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/markdown.ex
kelvinst/ex_doc
609d9765dd6f098dc298e5d6db6430859ee934ec
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/markdown.ex
kelvinst/ex_doc
609d9765dd6f098dc298e5d6db6430859ee934ec
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
defmodule ExDoc.Markdown do @moduledoc """ Adapter behaviour and conveniences for converting Markdown to HTML. ExDoc is compatible with any markdown processor that implements the functions defined in this module. The markdown processor can be changed via the `:markdown_processor` option in your `mix.exs`. ...
25.805556
78
0.702368
2d7a0e4b49288a43a08756b2fc97d858d627d1e6
1,221
exs
Elixir
mix.exs
aenglisc/elixir-web-push-encryption
c6610dad233601a2e353c0a3ca29ebb69843d594
[ "MIT" ]
null
null
null
mix.exs
aenglisc/elixir-web-push-encryption
c6610dad233601a2e353c0a3ca29ebb69843d594
[ "MIT" ]
null
null
null
mix.exs
aenglisc/elixir-web-push-encryption
c6610dad233601a2e353c0a3ca29ebb69843d594
[ "MIT" ]
null
null
null
defmodule WebPushEncryption.Mixfile do use Mix.Project @version "0.3.0" def project do [ app: :web_push_encryption, version: @version, elixir: "~> 1.4", description: "Web push encryption library", source_url: "https://github.com/tuvistavie/elixir-web-push-encryption", bui...
24.918367
79
0.542179
2d7a155e9f340e4bdf07b079b23ec783448adadc
388
ex
Elixir
test/schema/user.ex
infer-beam/infer
de8bec47635ffdcdefc2ef6ff298101c62681ae5
[ "MIT" ]
5
2022-01-24T10:08:53.000Z
2022-03-09T10:15:14.000Z
test/schema/user.ex
infer-beam/infer
de8bec47635ffdcdefc2ef6ff298101c62681ae5
[ "MIT" ]
1
2022-03-15T09:58:33.000Z
2022-03-15T09:58:33.000Z
test/schema/user.ex
infer-beam/infer
de8bec47635ffdcdefc2ef6ff298101c62681ae5
[ "MIT" ]
1
2022-02-22T11:42:25.000Z
2022-02-22T11:42:25.000Z
defmodule Infer.Test.Schema.User do use Ecto.Schema use Infer.Ecto.Schema, repo: Infer.Test.Repo alias Infer.Test.Schema.List schema "users" do field :email, :string field :first_name, :string field :last_name, :string has_many :lists, List, foreign_key: :created_by_id end infer full_na...
21.555556
78
0.688144
2d7a368adceb080863c70c9da318f69b95f96b4d
236
exs
Elixir
test/test_helper.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
test/test_helper.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
2
2021-03-09T01:59:47.000Z
2022-02-10T17:08:54.000Z
test/test_helper.exs
francocatena/ptr
4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60
[ "MIT" ]
null
null
null
ExUnit.start(exclude: [:skip]) Ecto.Adapters.SQL.Sandbox.mode(Ptr.Repo, :manual) # Ignore migration modules being reloaded. # See https://github.com/Dania02525/apartmentex/issues/12 Code.compiler_options(ignore_module_conflict: true)
29.5
57
0.79661
2d7a7a79b94f0319fba2bfa48d4e801e842de218
2,559
ex
Elixir
lib/new_relic/sampler/process.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
227
2018-09-05T15:33:23.000Z
2022-02-25T18:12:06.000Z
lib/new_relic/sampler/process.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
211
2018-09-05T21:42:41.000Z
2022-03-25T17:51:56.000Z
lib/new_relic/sampler/process.ex
tpitale/elixir_agent
f356b588fe9d7cc3b9db00d9a251e009a20b3e0e
[ "Apache-2.0" ]
84
2018-09-05T04:26:26.000Z
2022-03-09T14:28:14.000Z
defmodule NewRelic.Sampler.Process do use GenServer # Takes samples of the state of requested processes at an interval @moduledoc false def start_link(_) do GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end def init(:ok) do NewRelic.sample_process() if NewRelic.Config.enabled?(), ...
28.120879
95
0.670965
2d7ae019edd670c95e91c0b9a91f9a7b4bd6a1b7
1,571
ex
Elixir
apps/legion/lib/identity/information/political/country.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion/lib/identity/information/political/country.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion/lib/identity/information/political/country.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
defmodule Legion.Identity.Information.Political.Country do @moduledoc """ Represents countries in the world. This model is pregenerated during setup of the application. ## Schema fields - `:two_letter`: Two-letter code for identifying the country. - `:three_letter`: Variant for two-letter code for identifyi...
32.729167
99
0.714195
2d7af028c3fc4b577cb001d4c9b446756d0b8c57
1,988
exs
Elixir
chatter/config/prod.exs
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chatter/config/prod.exs
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chatter/config/prod.exs
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
32.064516
67
0.71328
2d7b048185978e7f56a0156b68f6b914c349bb91
1,087
ex
Elixir
lib/mix/lib/mix/tasks/deps.check.ex
MSch/elixir
fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/deps.check.ex
MSch/elixir
fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/deps.check.ex
MSch/elixir
fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Deps.Check do use Mix.Task import Mix.Deps, only: [all: 0, format_dep: 1, format_status: 1, check_lock: 2, out_of_date?: 1] @hidden true @shortdoc "Check if all dependencies are valid" @moduledoc """ Checks if all dependencies are valid and if not, abort. Prints the invalid dependen...
28.605263
98
0.609016
2d7b21448da39d3cde1e99771651c67921670c0b
1,761
exs
Elixir
test/memo_web/controllers/user_registration_controller_test.exs
ashkan18/memo
da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64
[ "MIT" ]
null
null
null
test/memo_web/controllers/user_registration_controller_test.exs
ashkan18/memo
da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64
[ "MIT" ]
null
null
null
test/memo_web/controllers/user_registration_controller_test.exs
ashkan18/memo
da62914abff2f4f4c75ad6b996e3f6c3d5e9ad64
[ "MIT" ]
null
null
null
defmodule MemoWeb.UserRegistrationControllerTest do use MemoWeb.ConnCase, async: true import Memo.AccountsFixtures describe "GET /users/register" do test "renders registration page", %{conn: conn} do conn = get(conn, Routes.user_registration_path(conn, :new)) response = html_response(conn, 200) ...
32.018182
98
0.628052
2d7b306427df1ab8b603fe43faa704ad3d582288
458
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_qualified_call_operation_parsing_test_case/MatchedTwoOperation.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/parser_definition/matched_qualified_call_operation_parsing_test_case/MatchedTwoOperation.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/parser_definition/matched_qualified_call_operation_parsing_test_case/MatchedTwoOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
One.relative_identifier( 1 ++ 2, key: 3..4 ) ++ Two.relative_identifier( 2 -- 1, key: 4 <> 3 ) One.relative_identifier( 1 .. 2, key: 3 -- 4 )( 4 <> 5, key: 6 ++ 7 ) -- Two.relative_identifier( 2 <> 1, key: 4 .. 3 )( 5 ++ 4, key: 7 -- 6 ) One.relative_identifier key: 1 ++ 2 One.relative_identifie...
17.615385
47
0.49345
2d7b6b6113dde9e479270c8c82c2b33ce4c3b5ec
911
exs
Elixir
mix.exs
CarouselSMS/nexmo_elixir
f9be807bb5198a165b6453bc0aa5cdb6a3dc1a05
[ "MIT" ]
null
null
null
mix.exs
CarouselSMS/nexmo_elixir
f9be807bb5198a165b6453bc0aa5cdb6a3dc1a05
[ "MIT" ]
null
null
null
mix.exs
CarouselSMS/nexmo_elixir
f9be807bb5198a165b6453bc0aa5cdb6a3dc1a05
[ "MIT" ]
null
null
null
defmodule NexmoElixir.Mixfile do use Mix.Project def project do [app: :nexmo_elixir, version: "0.0.1", elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile.app"...
23.358974
78
0.588364
2d7b8fd2765cc61f7e92116c95e2efbca0d31eb8
486
ex
Elixir
lib/plug/accesslog/default_formatter/remote_user.ex
mneudert/plug_accesslog
35e9ee77b0b123a0f7a8c3c76d088b3234cfa0ec
[ "Apache-2.0" ]
32
2015-01-16T08:53:48.000Z
2021-03-16T09:12:13.000Z
lib/plug/accesslog/default_formatter/remote_user.ex
mneudert/plug_accesslog
35e9ee77b0b123a0f7a8c3c76d088b3234cfa0ec
[ "Apache-2.0" ]
14
2015-02-03T20:39:01.000Z
2020-07-12T11:11:50.000Z
lib/plug/accesslog/default_formatter/remote_user.ex
mneudert/plug_accesslog
35e9ee77b0b123a0f7a8c3c76d088b3234cfa0ec
[ "Apache-2.0" ]
6
2015-02-03T15:40:58.000Z
2020-06-07T14:07:39.000Z
defmodule Plug.AccessLog.DefaultFormatter.RemoteUser do @moduledoc """ Determines remote user. """ import Plug.Conn @doc """ Formats the log output. """ @spec format(Plug.Conn.t()) :: binary def format(conn) do with [<<"Basic ", credentials::binary>> | _] <- get_req_header(conn, "authorization")...
22.090909
90
0.600823
2d7b9cb50d0e527e951ccf10c3cff1e495f5269f
1,911
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/model/filter_ref.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/analytics/lib/google_api/analytics/v3/model/filter_ref.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/model/filter_ref.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 ...
32.389831
102
0.677132
2d7bd0d43cc5941e2612a849e9440f9e9a92f55e
2,689
ex
Elixir
lib/exnn/sensor.ex
zampino/exnn
2be888df107644daab1aca7614fecb4940fe3c84
[ "MIT" ]
104
2015-06-18T18:54:25.000Z
2021-11-04T15:07:02.000Z
lib/exnn/sensor.ex
nelyj/exnn
2be888df107644daab1aca7614fecb4940fe3c84
[ "MIT" ]
3
2016-10-09T11:19:42.000Z
2018-09-17T16:36:32.000Z
lib/exnn/sensor.ex
nelyj/exnn
2be888df107644daab1aca7614fecb4940fe3c84
[ "MIT" ]
17
2016-03-08T19:02:51.000Z
2019-04-27T16:40:52.000Z
defmodule EXNN.Sensor do @moduledoc """ _Sensor server metamodule to be used within your implementation_ #### Modules using EXNN.Sensor are turned into Sensor servers. Sensor modules *MUST* implement either a `sense/2` function emitting a tuple containing scalar impulses of length compatible with the con...
30.908046
136
0.649312
2d7bdf3e7dc15922b274c210d944f814cb77b1ec
533
ex
Elixir
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/ip_configuration.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.Network/lib/microsoft/azure/management/network/model/ip_configuration.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/ip_configuration.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.Network.Model.IpConfiguration do @moduledoc """ IP configuration """ @derive [Poison.Encoder] defstruct [ ...
20.5
88
0.712946
2d7bf4211a59b1fbc03bebcfb999f359cd4d1325
3,204
ex
Elixir
apps/potterhat_node/lib/node/listener/log.ex
omisego/potterhat
47635e5d061c76900bd0e42a19e5dfc2ae8c0253
[ "Apache-2.0" ]
6
2019-03-28T14:47:41.000Z
2019-06-25T02:38:06.000Z
apps/potterhat_node/lib/node/listener/log.ex
omisego/potterhat
47635e5d061c76900bd0e42a19e5dfc2ae8c0253
[ "Apache-2.0" ]
30
2019-05-22T10:08:09.000Z
2019-08-02T06:37:56.000Z
apps/potterhat_node/lib/node/listener/log.ex
omisego/potterhat
47635e5d061c76900bd0e42a19e5dfc2ae8c0253
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 OmiseGO 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 in writi...
23.386861
82
0.620787
2d7bf7621b15aca4e21fbe20d36a89d7803e3831
205
exs
Elixir
priv/repo/migrations/20190809095126_create_users.exs
westrik/todo-ex
6ab0c61b91d3e76239e77e988e51aa0b06f30408
[ "MIT" ]
1
2020-11-12T08:26:51.000Z
2020-11-12T08:26:51.000Z
priv/repo/migrations/20190809095126_create_users.exs
westrik/todo-ex
6ab0c61b91d3e76239e77e988e51aa0b06f30408
[ "MIT" ]
null
null
null
priv/repo/migrations/20190809095126_create_users.exs
westrik/todo-ex
6ab0c61b91d3e76239e77e988e51aa0b06f30408
[ "MIT" ]
null
null
null
defmodule TodoApi.Repo.Migrations.CreateUsers do use Ecto.Migration def change do create table(:users) do add :name, :string add :login, :string timestamps() end end end
14.642857
48
0.653659
2d7c0c4d7562b309218c7c2fcf82bdc8b5fcae25
350
exs
Elixir
test/credo/cli/command/gen.check_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
test/credo/cli/command/gen.check_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
test/credo/cli/command/gen.check_test.exs
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
1
2020-09-25T11:48:49.000Z
2020-09-25T11:48:49.000Z
defmodule Credo.CLI.Command.GenCheckTest do use Credo.TestHelper alias Credo.CLI.Command.GenCheck test "it should work" do expected = "SomeCustom42Check" assert expected == "../ecto/lib/some_custom_42_check.ex" |> GenCheck.check_name_for() assert expected == "lib/some_custom_42_check.ex" |> GenChe...
25
89
0.74
2d7c59fb0a7233c3bd5adaa0ac0698c8e8b365dd
9,365
ex
Elixir
lib/iex/lib/iex/info.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/info.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/iex/lib/iex/info.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
defprotocol IEx.Info do @fallback_to_any true @spec info(term) :: [{atom, String.t}] def info(term) end defimpl IEx.Info, for: Tuple do def info(_tuple) do ["Data type": "Tuple", "Reference modules": "Tuple"] end end defimpl IEx.Info, for: Atom do def info(atom) do specific_info = cond...
27.789318
113
0.62851
2d7cb4a022adaeeae79137339870fc9faf7f3d9e
493
ex
Elixir
test/support/helper.ex
MainShayne233/aeacus
b91685a051f1b03de6d061eec4a720bcbf613638
[ "BSD-3-Clause" ]
42
2015-07-05T12:20:04.000Z
2022-02-20T23:38:16.000Z
test/support/helper.ex
MainShayne233/aeacus
b91685a051f1b03de6d061eec4a720bcbf613638
[ "BSD-3-Clause" ]
1
2015-07-06T19:48:00.000Z
2015-07-06T20:54:03.000Z
test/support/helper.ex
MainShayne233/aeacus
b91685a051f1b03de6d061eec4a720bcbf613638
[ "BSD-3-Clause" ]
5
2016-02-13T05:13:46.000Z
2022-01-23T00:45:44.000Z
defmodule Aeacus.Test.Helper do @doc false defmacro __using__(_opts) do quote do alias Aeacus.Authenticator alias Aeacus.Test.Repo alias Aeacus.Test.MockResource alias Aeacus.Test.MockCustomResource import Aeacus.Test.Assertions @bad_identity "I Don't Exist!" @bad_pass...
24.65
60
0.679513
2d7cbe45e59d9ac6e21cb2227437e39c3c62070a
1,997
exs
Elixir
lesson_05/demo/user_demo_umbrella/config/prod.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
1
2021-09-22T09:56:35.000Z
2021-09-22T09:56:35.000Z
lesson_05/demo/user_demo_umbrella/config/prod.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
7
2020-03-14T19:30:29.000Z
2022-02-27T01:20:40.000Z
lesson_05/demo/user_demo_umbrella/config/prod.exs
martijnmeeldijk/ip_major
867f09975aa8db0b308081216ace639c5677446b
[ "BSD-3-Clause" ]
11
2020-02-13T14:52:45.000Z
2020-08-03T12:18:56.000Z
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, # ...
35.660714
66
0.716575
2d7ce652f76d361373b40f3b293db2c24a371d32
97
exs
Elixir
test/test_helper.exs
kimidesu/ElixirCore
1d3558aaccbca5f18dbf453271d8a98826fe1ce2
[ "MIT" ]
1
2021-04-09T05:40:28.000Z
2021-04-09T05:40:28.000Z
test/test_helper.exs
kimidesu/ElixirCore
1d3558aaccbca5f18dbf453271d8a98826fe1ce2
[ "MIT" ]
null
null
null
test/test_helper.exs
kimidesu/ElixirCore
1d3558aaccbca5f18dbf453271d8a98826fe1ce2
[ "MIT" ]
null
null
null
# http://elixir-lang.org/docs/stable/ex_unit/ExUnit.html#start/1 ExUnit.start(capture_log: true)
48.5
65
0.783505
2d7ce6fcd0052c57c2d85a3f71460dd7e5161d20
4,186
ex
Elixir
tests/syntax_test_numerics.ex
princemaple/elixir-sublime-syntax
f8154fd24afd478d444a47b963566ed434df2062
[ "MIT" ]
14
2018-01-26T07:41:42.000Z
2021-09-28T16:51:20.000Z
tests/syntax_test_numerics.ex
princemaple/elixir-sublime-syntax
f8154fd24afd478d444a47b963566ed434df2062
[ "MIT" ]
25
2019-02-13T02:56:33.000Z
2021-10-11T00:54:57.000Z
tests/syntax_test_numerics.ex
elixir-sublime/elixir-sublime-syntax
5f8aae15bfe5f12e31ec7a3509bc5619aa74babd
[ "MIT" ]
7
2019-02-12T13:03:49.000Z
2021-09-23T16:50:53.000Z
# SYNTAX TEST "Elixir.sublime-syntax" ## Numerics ### Integer 0 1 9 # ^ constant.numeric.integer # ^ constant.numeric.integer #^ constant.numeric.integer 000 #^^^ constant.numeric 0_0 #^^^ constant.numeric 0_1_2_3 #^^^^^^^ constant.numeric 0123 #^^^^ constant.numeric 0__0 0_0__0 # ^^^ invalid.illeg...
23.385475
86
0.556378
2d7d736e8829f718e6f3989d444100046043fb0f
4,162
ex
Elixir
writer_monad_from_first_principle/lib/monad.writer.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
writer_monad_from_first_principle/lib/monad.writer.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
writer_monad_from_first_principle/lib/monad.writer.ex
Shakadak/elixir_playground
3a9c0319d5c8a0e296e19d9ae98fea01f8266f44
[ "MIT" ]
null
null
null
defmodule Monad.Writer do @moduledoc """ ML / Ocaml style functor """ defmacro functor(opts) do module_name = Keyword.fetch!(opts, :module) mempty = Keyword.fetch!(opts, :mempty) mappend = Keyword.fetch!(opts, :mappend) quote location: :keep do defmodule unquote(module_name) do ...
30.15942
212
0.510332