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
0892ced008945f91c8d4c4114c8bef0bcdfc53ed
2,700
ex
Elixir
test/example/bank_account.ex
slashdotdash/eventsourced
8a1178141e3e18f56bf7b88f1966e4f095836558
[ "MIT" ]
109
2016-02-29T07:24:49.000Z
2022-03-04T09:31:58.000Z
test/example/bank_account.ex
slashdotdash/domain_model
8a1178141e3e18f56bf7b88f1966e4f095836558
[ "MIT" ]
1
2016-11-14T17:07:26.000Z
2016-11-14T17:07:26.000Z
test/example/bank_account.ex
slashdotdash/eventsourced
8a1178141e3e18f56bf7b88f1966e4f095836558
[ "MIT" ]
7
2016-03-08T00:37:51.000Z
2019-10-20T20:31:56.000Z
defmodule BankAccount do @moduledoc """ An example bank account aggregate root. It demonstrates returning either an `{:ok, aggregate}` or `{:error, reason}` tuple from the public API functions on success or failure. Following this approach allows strict pattern matching on success and failures. An error ind...
32.142857
137
0.722593
0893161bfc36c49c3328b29d61c4e5c065aa9a9b
383
exs
Elixir
apps/hefty/priv/repo/migrations/20190517104700_create_streaming_settings.exs
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
49
2019-10-28T22:27:28.000Z
2021-10-11T06:40:29.000Z
apps/hefty/priv/repo/migrations/20190517104700_create_streaming_settings.exs
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
9
2019-08-30T13:15:36.000Z
2019-10-10T21:25:14.000Z
apps/hefty/priv/repo/migrations/20190517104700_create_streaming_settings.exs
Cinderella-Man/crypto-streamer
b1e990d375f7143c5149930be991249f0d9c3ee3
[ "MIT" ]
7
2019-10-31T06:19:26.000Z
2021-09-30T04:20:58.000Z
defmodule Hefty.Repo.Migrations.CreateStreamingSettings do use Ecto.Migration def change do create table(:streaming_settings, primary_key: false) do add(:id, :uuid, primary_key: true) add(:symbol, :text, null: false) add(:platform, :text, null: false, default: "Binance") add(:enabled, :...
25.533333
60
0.67624
089324f128a99c835b25990bbb2c62e4b4834189
1,170
ex
Elixir
lib/serum/build/file_processor/template.ex
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
lib/serum/build/file_processor/template.ex
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
lib/serum/build/file_processor/template.ex
nallwhy/Serum
ed9f51a83e328789ccfca18d2a0397b45ac4be0f
[ "MIT" ]
null
null
null
defmodule Serum.Build.FileProcessor.Template do @moduledoc false require Serum.Result, as: Result import Serum.IOProxy, only: [put_msg: 2] alias Serum.Error alias Serum.Template alias Serum.Template.Compiler, as: TC alias Serum.Template.Storage, as: TS @spec compile_templates(map()) :: Result.t({}) ...
27.857143
87
0.665812
08935d7100e709940391bcbccebc3a640733fcb6
1,654
ex
Elixir
lib/Discord/rate_limits.ex
Cohedrin/alchemy
4e2bfe3c1ffd164141c06d181ad1aa987dfb0d72
[ "MIT" ]
null
null
null
lib/Discord/rate_limits.ex
Cohedrin/alchemy
4e2bfe3c1ffd164141c06d181ad1aa987dfb0d72
[ "MIT" ]
null
null
null
lib/Discord/rate_limits.ex
Cohedrin/alchemy
4e2bfe3c1ffd164141c06d181ad1aa987dfb0d72
[ "MIT" ]
null
null
null
defmodule Alchemy.Discord.RateLimits do @moduledoc false # Used for parsing ratelimits out of headers require Logger defmodule RateInfo do @moduledoc false defstruct [:limit, :remaining, :reset_time] end # will only match if the ratelimits are present defp parse_headers(%{"x-ratelimit-remaining"...
30.62963
87
0.682588
08936b1c83d3b1eeabfe7a6dcd7ee702a9a9672c
2,041
ex
Elixir
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/completeness.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/completeness.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/completeness.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...
38.509434
202
0.728074
08937c64a548b686fd3394c9843f467fe0d14293
754
ex
Elixir
test/support/channel_case.ex
ukisami/bot.messenger.fdl
571d29795612a21a3be21ce9f8851afa5a7b387f
[ "MIT" ]
null
null
null
test/support/channel_case.ex
ukisami/bot.messenger.fdl
571d29795612a21a3be21ce9f8851afa5a7b387f
[ "MIT" ]
null
null
null
test/support/channel_case.ex
ukisami/bot.messenger.fdl
571d29795612a21a3be21ce9f8851afa5a7b387f
[ "MIT" ]
null
null
null
defmodule FdlMessengerBot.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it ca...
22.176471
56
0.724138
0893a4fb36462647a2d92c2759c5ed98c5b24268
287
exs
Elixir
.dialyzer_ignore.exs
ex-security-advisory/api
75674d42efd3b9f2406233e36244d5cb5f174971
[ "MIT" ]
5
2019-01-03T18:33:40.000Z
2021-01-25T10:15:06.000Z
.dialyzer_ignore.exs
ex-security-advisory/api
75674d42efd3b9f2406233e36244d5cb5f174971
[ "MIT" ]
15
2018-12-27T16:59:06.000Z
2019-01-04T17:34:38.000Z
.dialyzer_ignore.exs
ex-security-advisory/api
75674d42efd3b9f2406233e36244d5cb5f174971
[ "MIT" ]
null
null
null
[ ~r/pipeline\/1/, {"", :unknown_type, 0}, {"apps/elixir_security_advisory/lib/elixir_security_advisory/vulnerabilities/database.ex"}, {"apps/elixir_security_advisory_api_v1/lib/elixir_security_advisory_api_v1/controllers/introduction_controller.ex", :pattern_match_cov, 1} ]
35.875
117
0.787456
0893b0e95ac2ad0282fe04d641cad332689eb5ca
168
ex
Elixir
lib/one_word.ex
Bentheburrito/onewordstorybot
2d75f3a59a952d141cfa4306fb14c902815cbff5
[ "MIT" ]
null
null
null
lib/one_word.ex
Bentheburrito/onewordstorybot
2d75f3a59a952d141cfa4306fb14c902815cbff5
[ "MIT" ]
null
null
null
lib/one_word.ex
Bentheburrito/onewordstorybot
2d75f3a59a952d141cfa4306fb14c902815cbff5
[ "MIT" ]
null
null
null
defmodule OneWord do use Application # Application Entry Point @impl true def start(_type, _args) do OneWord.Supervisor.start_link(name: BotSupervisor) end end
16.8
52
0.779762
0893b45c151fb9530968d638c9ce7041320d352c
2,801
ex
Elixir
lib/chat_api_web/controllers/forwarding_address_controller.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api_web/controllers/forwarding_address_controller.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api_web/controllers/forwarding_address_controller.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApiWeb.ForwardingAddressController do use ChatApiWeb, :controller alias ChatApi.ForwardingAddresses alias ChatApi.ForwardingAddresses.ForwardingAddress action_fallback(ChatApiWeb.FallbackController) plug(:authorize when action in [:show, :update, :delete]) defp authorize(conn, _) do id...
37.346667
100
0.681542
0893b4cd8f1a79b314e172c0e1544e7a6c9bffbe
9,444
ex
Elixir
lib/console/organizations/organizations.ex
mfalkvidd/console
6427c82bc4f8619b5bb3a5940099a8bdd6167a9e
[ "Apache-2.0" ]
1
2021-09-24T17:52:34.000Z
2021-09-24T17:52:34.000Z
lib/console/organizations/organizations.ex
mfalkvidd/console
6427c82bc4f8619b5bb3a5940099a8bdd6167a9e
[ "Apache-2.0" ]
null
null
null
lib/console/organizations/organizations.ex
mfalkvidd/console
6427c82bc4f8619b5bb3a5940099a8bdd6167a9e
[ "Apache-2.0" ]
null
null
null
defmodule Console.Organizations do import Ecto.Query, warn: false alias Console.Repo alias Console.Organizations.Organization alias Console.Devices alias Console.Organizations.Membership alias Console.Organizations.Invitation alias Console.Auth.User alias Console.ApiKeys.ApiKey def list_organization...
30.762215
192
0.668255
0893e5425251bf4a6888c46aad1b3c1111361254
4,645
ex
Elixir
lib/osr.ex
christopher-dG/osu-ex
ee1c4bc49e5c146a7bcd0d6b976a19d605d695ed
[ "MIT" ]
null
null
null
lib/osr.ex
christopher-dG/osu-ex
ee1c4bc49e5c146a7bcd0d6b976a19d605d695ed
[ "MIT" ]
null
null
null
lib/osr.ex
christopher-dG/osu-ex
ee1c4bc49e5c146a7bcd0d6b976a19d605d695ed
[ "MIT" ]
null
null
null
defmodule OsuEx.Osr do @moduledoc "Parses and downloads .osr files." alias OsuEx.API import OsuEx.Parser use Bitwise, only_operators: true @doc "Parses a replay file. The argument can be either the file path or the contents." @spec parse(binary) :: {:ok, map} | {:error, Exception.t()} def parse(path_or_...
26.542857
97
0.57718
0893e9eba33ee462a262d72e85a0a11e80378a4b
5,915
ex
Elixir
apps/broker/lib/collector/tx_collector/tx_collector.ex
iotaledger/chronicle
73566e5613268e4b0c5951265ae4760cedb4051f
[ "Apache-2.0" ]
19
2019-09-17T18:14:36.000Z
2021-12-06T07:29:27.000Z
apps/broker/lib/collector/tx_collector/tx_collector.ex
iotaledger/chronicle
73566e5613268e4b0c5951265ae4760cedb4051f
[ "Apache-2.0" ]
5
2019-09-30T04:57:14.000Z
2020-11-10T15:41:03.000Z
apps/broker/lib/collector/tx_collector/tx_collector.ex
iotaledger/chronicle
73566e5613268e4b0c5951265ae4760cedb4051f
[ "Apache-2.0" ]
2
2019-09-17T19:03:16.000Z
2021-03-01T01:04:31.000Z
defmodule Broker.Collector.TxCollector do @moduledoc """ Documentation for Broker.Collector.TxCollector. This lightweight processor(consumer) is responsible to handle dispatched flow of transactions from TxValidator(s) producer. """ use GenStage require Logger require Broker.Collector.Ring alias Bro...
33.607955
86
0.667456
08942ab6d1252fa096930587cbb74f8e5b3d1a93
493
ex
Elixir
lib/rocketpay_web/controllers/users_controller.ex
lucasliet/rocketpay-elixir
e0c202e2117b2aef72e7b4800c9322efa59c604a
[ "MIT" ]
null
null
null
lib/rocketpay_web/controllers/users_controller.ex
lucasliet/rocketpay-elixir
e0c202e2117b2aef72e7b4800c9322efa59c604a
[ "MIT" ]
null
null
null
lib/rocketpay_web/controllers/users_controller.ex
lucasliet/rocketpay-elixir
e0c202e2117b2aef72e7b4800c9322efa59c604a
[ "MIT" ]
null
null
null
defmodule RocketpayWeb.UsersController do use RocketpayWeb, :controller alias Rocketpay.User def create(conn, params) do params |>Rocketpay.create_user end defp handle_response({:ok, %User{} = user}, conn) do conn |>put_status(:created) |>render("create.json", user: user) end defp ...
20.541667
54
0.679513
08942db6a46383c56be144c40bb48d221be0f73a
772
ex
Elixir
lib/grizzly/zwave/commands/thermostat_setback_get.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
lib/grizzly/zwave/commands/thermostat_setback_get.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
lib/grizzly/zwave/commands/thermostat_setback_get.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.ThermostatSetbackGet do @moduledoc """ This module implements command THERMOSTAT_SETBACK_GET of the command class COMMAND_CLASS_THERMOSTAT_SETBACK. This command is used to request the current setback state of the thermostat. Params: - none - """ @behaviour Grizzly.ZW...
19.794872
78
0.702073
0894795359b2a6d1476db96384a98a197dab8a21
4,357
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/hl7_v2_store.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/hl7_v2_store.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/hl7_v2_store.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...
64.073529
682
0.747992
0894799e06f5252def158e679f13e045ac338bb7
2,239
ex
Elixir
clients/games/lib/google_api/games/v1/model/event_record_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/event_record_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/event_record_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.982143
180
0.722197
0894fbfa3be457c3d14143b7d827a27d0d569e05
1,071
ex
Elixir
skippy/dashboard/lib/dashboard_web/channels/user_socket.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
null
null
null
skippy/dashboard/lib/dashboard_web/channels/user_socket.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
5
2020-07-17T23:35:42.000Z
2021-05-10T07:00:10.000Z
skippy/dashboard/lib/dashboard_web/channels/user_socket.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
null
null
null
defmodule DashboardWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", DashboardWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all ch...
31.5
84
0.698413
08951157232d0b1941ff3215307c72fe8c272398
2,572
ex
Elixir
lib/task_bunny/job_runner.ex
smartrent/task_bunny
db0b91d966b54df75e0f60f9c788ffa044c1f37a
[ "MIT" ]
null
null
null
lib/task_bunny/job_runner.ex
smartrent/task_bunny
db0b91d966b54df75e0f60f9c788ffa044c1f37a
[ "MIT" ]
null
null
null
lib/task_bunny/job_runner.ex
smartrent/task_bunny
db0b91d966b54df75e0f60f9c788ffa044c1f37a
[ "MIT" ]
null
null
null
defmodule TaskBunny.JobRunner do # Handles job invocation concerns. # # This module is private to TaskBunny and should not be accessed directly. # # JobRunner wraps up job execution and provides you abilities: # # - invoking jobs concurrently (unblocking job execution) # - handling a job crashing # - ...
30.258824
110
0.657854
0895363b7e3236a07050e7d2d4899301b44838ab
2,070
ex
Elixir
clients/cloud_build/lib/google_api/cloud_build/v1/model/update_bitbucket_server_config_operation_metadata.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_build/lib/google_api/cloud_build/v1/model/update_bitbucket_server_config_operation_metadata.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_build/lib/google_api/cloud_build/v1/model/update_bitbucket_server_config_operation_metadata.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...
35.689655
211
0.733333
089556f4bd8884ccfdf0c7b211d11505c5d4072b
1,458
ex
Elixir
lib/joken/hooks/required_claims.ex
earv1/joken
08c91b302cf885475b8a83496ac14a13e0ebefa7
[ "Apache-2.0" ]
null
null
null
lib/joken/hooks/required_claims.ex
earv1/joken
08c91b302cf885475b8a83496ac14a13e0ebefa7
[ "Apache-2.0" ]
null
null
null
lib/joken/hooks/required_claims.ex
earv1/joken
08c91b302cf885475b8a83496ac14a13e0ebefa7
[ "Apache-2.0" ]
null
null
null
defmodule Joken.Hooks.RequiredClaims do @moduledoc """ Hook to demand claims presence. Adding this hook to your token configuration will allow to ensure some claims are present. It adds an `after_validate/3` implementation that checks claims presence. Example: defmodule MyToken do use Joken.Conf...
29.755102
95
0.674211
089558b8c040f682d8f85b8c67532d28d448023b
579
ex
Elixir
elixir/lib/homework/users/user.ex
simmons-hayden/web-homework
de9e339f2c6e5c082ea1b3f14aeb54caf03752f1
[ "MIT" ]
null
null
null
elixir/lib/homework/users/user.ex
simmons-hayden/web-homework
de9e339f2c6e5c082ea1b3f14aeb54caf03752f1
[ "MIT" ]
null
null
null
elixir/lib/homework/users/user.ex
simmons-hayden/web-homework
de9e339f2c6e5c082ea1b3f14aeb54caf03752f1
[ "MIT" ]
null
null
null
defmodule Homework.Users.User do use Ecto.Schema import Ecto.Changeset alias Homework.Companies.Company @primary_key {:id, :binary_id, autogenerate: true} schema "users" do field(:dob, :string) field(:first_name, :string) field(:last_name, :string) belongs_to(:company, Company, type: :bin...
23.16
77
0.685665
089583a844142651f2f2e4f8ded735ba3022154f
553
ex
Elixir
lib/server/server.ex
henriquetorquato/hermes
6d98ecdffd6486c1f64e8e0c5827fd512c719296
[ "MIT" ]
null
null
null
lib/server/server.ex
henriquetorquato/hermes
6d98ecdffd6486c1f64e8e0c5827fd512c719296
[ "MIT" ]
null
null
null
lib/server/server.ex
henriquetorquato/hermes
6d98ecdffd6486c1f64e8e0c5827fd512c719296
[ "MIT" ]
null
null
null
defmodule Server do use Supervisor def init(_) do children = [ {Room.Manager, []}, {Server.Receiver, [name: :receiver, debug: [:trace]]} ] Supervisor.init(children, strategy: :one_for_one) end def start do Supervisor.start_link(__MODULE__, [], name: __MODULE__) end def join(r...
19.75
59
0.670886
089598857451985ab3c3f28071dd3692a3f6e0a5
6,265
exs
Elixir
test/absinthe/phase/execution/non_null_test.exs
arturs678/absinthe
0d842c46e5d21399d66919cdaadfa8927fbca74d
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
test/absinthe/phase/execution/non_null_test.exs
arturs678/absinthe
0d842c46e5d21399d66919cdaadfa8927fbca74d
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
test/absinthe/phase/execution/non_null_test.exs
arturs678/absinthe
0d842c46e5d21399d66919cdaadfa8927fbca74d
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Phase.Document.Execution.NonNullTest do use Absinthe.Case, async: true defmodule Schema do use Absinthe.Schema defp thing_resolver(_, %{make_null: make_null}, _) do if make_null do {:ok, nil} else {:ok, %{}} end end defp thing_resolver(_, _, _)...
24.568627
106
0.551796
0895a3b298fe0cbf2840ae80f7fd83a19d2d5c1b
4,226
ex
Elixir
lib/oban/query.ex
manusajith/oban
0d7115fbf5e344878e0d2ac840ea8f84c2bcf26b
[ "MIT" ]
null
null
null
lib/oban/query.ex
manusajith/oban
0d7115fbf5e344878e0d2ac840ea8f84c2bcf26b
[ "MIT" ]
null
null
null
lib/oban/query.ex
manusajith/oban
0d7115fbf5e344878e0d2ac840ea8f84c2bcf26b
[ "MIT" ]
null
null
null
defmodule Oban.Query do @moduledoc false import Ecto.Query import DateTime, only: [utc_now: 0] alias Oban.Job @type repo :: module() # Taking a shared lock this way will always work, even if a lock has been taken by another # connection. defmacrop take_lock(id) do quote do fragment("pg_try...
31.073529
97
0.636299
0895ac96be265f6b5d08ffb8232d4466f0e6c4ed
876
exs
Elixir
mix.exs
dekokun/elixir_editor
4abef32a1174055a336fc440d516ac8c4e092799
[ "MIT" ]
null
null
null
mix.exs
dekokun/elixir_editor
4abef32a1174055a336fc440d516ac8c4e092799
[ "MIT" ]
null
null
null
mix.exs
dekokun/elixir_editor
4abef32a1174055a336fc440d516ac8c4e092799
[ "MIT" ]
null
null
null
defmodule ElixirEditor.Mixfile do use Mix.Project def project do [app: :elixir_editor, version: "0.0.1", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type `mix help compile.ap...
21.365854
77
0.577626
0895e8c904ef8e37bfae7c24167cc2cebca4b935
1,057
ex
Elixir
clients/digital_asset_links/lib/google_api/digital_asset_links/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/digital_asset_links/lib/google_api/digital_asset_links/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/digital_asset_links/lib/google_api/digital_asset_links/v1/connection.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
36.448276
77
0.761589
0896016769e0e49edc8a690ef301202311b48f4b
3,165
ex
Elixir
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/serving_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/serving_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/serving_config.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
46.544118
174
0.729542
0896754c3e809b34ff098d93193a888d046e8339
1,044
ex
Elixir
lib/elirc_twitch_oauth_web.ex
rockerBOO/elirc_twitch_oauth_web
1e4e62ceb57aac7efa68a09d3c9e87fa0f776203
[ "MIT" ]
null
null
null
lib/elirc_twitch_oauth_web.ex
rockerBOO/elirc_twitch_oauth_web
1e4e62ceb57aac7efa68a09d3c9e87fa0f776203
[ "MIT" ]
null
null
null
lib/elirc_twitch_oauth_web.ex
rockerBOO/elirc_twitch_oauth_web
1e4e62ceb57aac7efa68a09d3c9e87fa0f776203
[ "MIT" ]
null
null
null
defmodule ElircTwitchOauthWeb do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Start the endpoint when the application starts supervis...
33.677419
73
0.729885
08969c42120b0dd15ce2b29a7645508600b3a523
99,148
ex
Elixir
clients/iam/lib/google_api/iam/v1/api/projects.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/iam/lib/google_api/iam/v1/api/projects.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/iam/lib/google_api/iam/v1/api/projects.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
53.855513
1,439
0.638601
0896a7d701b9c15e91b695cb208f4edd6f35fa90
10,321
ex
Elixir
lib/cldr/datetime.ex
fertapric/cldr_dates_times
d1eff81c7a6e4d84484646465650d26d5dfc51db
[ "Apache-2.0" ]
null
null
null
lib/cldr/datetime.ex
fertapric/cldr_dates_times
d1eff81c7a6e4d84484646465650d26d5dfc51db
[ "Apache-2.0" ]
null
null
null
lib/cldr/datetime.ex
fertapric/cldr_dates_times
d1eff81c7a6e4d84484646465650d26d5dfc51db
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.DateTime do @moduledoc """ Provides localization and formatting of a `DateTime` struct or any map with the keys `:year`, `:month`, `:day`, `:calendar`, `:hour`, `:minute`, `:second` and optionally `:microsecond`. `Cldr.DateTime` provides support for the built-in calendar `Calendar.ISO` or an...
37.530909
98
0.679295
089726e09c04a3c15692ff7f68b26e63a7ca5ea4
322
exs
Elixir
test/loom_maps_test.exs
fribmendes/loom
b370f677f2a183db69337b34c7024410da08c548
[ "Apache-2.0" ]
206
2015-01-02T02:03:07.000Z
2021-01-10T11:17:21.000Z
test/loom_maps_test.exs
fribmendes/loom
b370f677f2a183db69337b34c7024410da08c548
[ "Apache-2.0" ]
7
2015-06-17T20:14:17.000Z
2017-05-30T12:10:28.000Z
test/loom_maps_test.exs
fribmendes/loom
b370f677f2a183db69337b34c7024410da08c548
[ "Apache-2.0" ]
16
2015-05-05T15:19:41.000Z
2018-11-15T10:15:50.000Z
defmodule LoomMapsTest do use ExUnit.Case import Loom.TypedORMap alias Loom.PNCounter, as: C alias Loom.PNCounterMap, as: CMap test "Basic definition..." do defmap C m = C.new |> C.inc(:a, 5) |> C.dec(:a, 3) c = CMap.new |> CMap.put(:a, "omg", m) assert 2 == CMap.get_value(c, "omg") end en...
21.466667
45
0.618012
089728debf1975b4e72ee9fcde4307bda6592866
2,592
ex
Elixir
lib/crawly/utils.ex
jallum/crawly
dfe37b125f6b39637608576715b076d0877b1d8b
[ "Apache-2.0" ]
null
null
null
lib/crawly/utils.ex
jallum/crawly
dfe37b125f6b39637608576715b076d0877b1d8b
[ "Apache-2.0" ]
null
null
null
lib/crawly/utils.ex
jallum/crawly
dfe37b125f6b39637608576715b076d0877b1d8b
[ "Apache-2.0" ]
null
null
null
defmodule Crawly.Utils do @moduledoc ~S""" Utility functions for Crawly """ require Logger @doc """ A helper function which returns a Request structure for the given URL """ @spec request_from_url(binary()) :: Crawly.Request.t() def request_from_url(url), do: %Crawly.Request{url: url, headers: []} ...
32
80
0.653549
08978fe982ecb168398c2a763d2b79ac95e373d1
1,941
ex
Elixir
lib/shopify_api/app_server.ex
pixelunion-apps/elixir-shopifyapi
dcc22f8f9edeeb65daa7b9752f7d8896570b5bfb
[ "Apache-2.0" ]
2
2021-11-11T17:40:44.000Z
2021-11-29T12:11:19.000Z
lib/shopify_api/app_server.ex
pixelunion-apps/elixir-shopifyapi
dcc22f8f9edeeb65daa7b9752f7d8896570b5bfb
[ "Apache-2.0" ]
17
2021-11-16T17:23:23.000Z
2022-03-29T18:31:36.000Z
lib/shopify_api/app_server.ex
pixelunion-apps/elixir-shopifyapi
dcc22f8f9edeeb65daa7b9752f7d8896570b5bfb
[ "Apache-2.0" ]
null
null
null
defmodule ShopifyAPI.AppServer do @moduledoc "Write-through cache for App structs." use GenServer alias ShopifyAPI.App alias ShopifyAPI.Config @table __MODULE__ def all do @table |> :ets.tab2list() |> Map.new() end @spec count() :: integer() def count, do: :ets.info(@table, :size) ...
22.310345
77
0.603812
0897aca4c9a35ac50d9c6edba9ff8867b1c30e9c
1,157
exs
Elixir
mix.exs
rsolovjov/expletive
75bbd20cc701b1dc743b8e294b9fc0ee6ca3e27c
[ "Apache-2.0" ]
null
null
null
mix.exs
rsolovjov/expletive
75bbd20cc701b1dc743b8e294b9fc0ee6ca3e27c
[ "Apache-2.0" ]
null
null
null
mix.exs
rsolovjov/expletive
75bbd20cc701b1dc743b8e294b9fc0ee6ca3e27c
[ "Apache-2.0" ]
null
null
null
defmodule Expletive.Mixfile do use Mix.Project def project do [app: :expletive, version: "0.1.4", elixir: "~> 1.0", deps: deps(), description: description(), package: package(), source_url: "https://github.com/xavier/expletive", homepage_url: "https://github.com/xavier/explet...
23.612245
77
0.605877
0897ed8ea1f832faced65fb7697818649d6508ff
703
ex
Elixir
lib/dispatch/absences/absences.ex
mirego/dispatch
65f81e264e45676ece8a6dc5f203cf9f283d6ec7
[ "BSD-3-Clause" ]
21
2019-02-13T15:26:00.000Z
2021-09-18T13:05:42.000Z
lib/dispatch/absences/absences.ex
mirego/dispatch
65f81e264e45676ece8a6dc5f203cf9f283d6ec7
[ "BSD-3-Clause" ]
26
2019-02-13T18:42:44.000Z
2021-09-16T15:40:05.000Z
lib/dispatch/absences/absences.ex
mirego/dispatch
65f81e264e45676ece8a6dc5f203cf9f283d6ec7
[ "BSD-3-Clause" ]
2
2020-05-26T09:09:19.000Z
2021-04-21T20:43:07.000Z
defmodule Dispatch.Absences do alias Dispatch.Utils.Normalization def absent_fullnames do client().fetch_absents() |> Enum.filter(&absent_right_now?/1) |> Enum.map(&extract_fullname/1) |> Enum.reject(&is_nil/1) |> Enum.map(&Normalization.normalize/1) end defp absent_right_now?(%{start: sta...
28.12
117
0.697013
0898098a9c4e0646f6f58e860067615509790dab
353
exs
Elixir
priv/repo/seeds.exs
jeffersono7/jeffbank
b817b298ed2729fb0f458e19807b1503681ffb1d
[ "BSD-2-Clause" ]
null
null
null
priv/repo/seeds.exs
jeffersono7/jeffbank
b817b298ed2729fb0f458e19807b1503681ffb1d
[ "BSD-2-Clause" ]
null
null
null
priv/repo/seeds.exs
jeffersono7/jeffbank
b817b298ed2729fb0f458e19807b1503681ffb1d
[ "BSD-2-Clause" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # JeffBank.Repo.insert!(%JeffBank.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they wi...
29.416667
61
0.708215
0898215bb4c76bdbf3b58e0fc3a2220d092e9017
3,609
ex
Elixir
lib/hexpm/ecto/changeset.ex
optikfluffel/hexpm
3b6c5f314ef5706d5d3c99830f39acba34867049
[ "Apache-2.0" ]
null
null
null
lib/hexpm/ecto/changeset.ex
optikfluffel/hexpm
3b6c5f314ef5706d5d3c99830f39acba34867049
[ "Apache-2.0" ]
null
null
null
lib/hexpm/ecto/changeset.ex
optikfluffel/hexpm
3b6c5f314ef5706d5d3c99830f39acba34867049
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Changeset do @moduledoc """ Ecto changeset helpers. """ import Ecto.Changeset @doc """ Checks if a version is valid semver. """ def validate_version(changeset, field) do validate_change(changeset, field, fn _, %Version{build: nil} -> [] _, %Version{} -> ...
27.340909
111
0.610973
08984639ebc10f3221f8ba16adfde0477971b7b5
495
ex
Elixir
lib/conductor_web/views/error_view.ex
meltingice/conductor
630440adc1081a0991d3dba17ced775a9dd05055
[ "MIT" ]
null
null
null
lib/conductor_web/views/error_view.ex
meltingice/conductor
630440adc1081a0991d3dba17ced775a9dd05055
[ "MIT" ]
2
2021-03-10T20:23:26.000Z
2021-05-11T15:56:49.000Z
lib/conductor_web/views/error_view.ex
meltingice/conductor
630440adc1081a0991d3dba17ced775a9dd05055
[ "MIT" ]
1
2020-06-05T02:34:58.000Z
2020-06-05T02:34:58.000Z
defmodule ConductorWeb.ErrorView do use ConductorWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the template ...
29.117647
61
0.737374
089899ee0512384753fecbe2d1af1cdae0f92d3e
2,322
ex
Elixir
lib/aws/generated/api_gateway_management_api.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/api_gateway_management_api.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/api_gateway_management_api.ex
salemove/aws-elixir
debdf6482158a71a57636ac664c911e682093395
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.ApiGatewayManagementApi do @moduledoc """ The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the...
23.938144
84
0.632214
0898a5b6e54be4a6c6b5549b481fcd913469992a
815
ex
Elixir
apps/customer/lib/customer/web/controllers/auth_controller.ex
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
102
2017-05-21T18:24:04.000Z
2022-03-10T12:53:20.000Z
apps/customer/lib/customer/web/controllers/auth_controller.ex
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
2
2017-05-21T01:53:30.000Z
2017-12-01T00:27:06.000Z
apps/customer/lib/customer/web/controllers/auth_controller.ex
JaiMali/job_search-1
5fe1afcd80aa5d55b92befed2780cd6721837c88
[ "MIT" ]
18
2017-05-22T09:51:36.000Z
2021-09-24T00:57:01.000Z
defmodule Customer.Web.AuthController do @moduledoc """ Auth controller responsible for handling Ueberauth response on login """ use Customer.Web, :controller plug Ueberauth alias Customer.Auth.Authorizer def callback(%{assigns: %{ueberauth_failure: _fails}} = conn, _params, _current_user, _claims) do ...
29.107143
99
0.665031
0898ed2360e2714272e3222e2aa990648a23ce90
1,532
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/volume.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/volume.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/volume.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.64
91
0.734334
0898f13afa16e94c0b5842788db7974402876136
799
exs
Elixir
example/test/web/channels/room_channel_test.exs
chazsconi/elm-phoenix
584ecbbe95913ba40f607eb47781a46ffb5c3c96
[ "BSD-3-Clause" ]
196
2016-09-18T14:42:33.000Z
2022-02-27T08:21:24.000Z
example/test/web/channels/room_channel_test.exs
chazsconi/elm-phoenix
584ecbbe95913ba40f607eb47781a46ffb5c3c96
[ "BSD-3-Clause" ]
45
2016-09-24T18:34:17.000Z
2020-05-30T13:38:27.000Z
example/test/web/channels/room_channel_test.exs
chazsconi/elm-phoenix
584ecbbe95913ba40f607eb47781a46ffb5c3c96
[ "BSD-3-Clause" ]
30
2016-10-04T13:18:14.000Z
2020-05-06T09:19:34.000Z
defmodule ElmPhoenix.Web.RoomChannelTest do use ElmPhoenix.Web.ChannelCase alias ElmPhoenix.Web.RoomChannel setup do {:ok, _, socket} = socket("user_id", %{some: :assign}) |> subscribe_and_join(RoomChannel, "room:lobby") {:ok, socket: socket} end test "ping replies with status ok", %{s...
27.551724
66
0.63204
089920fdb18621b1fcd7b291c9cf49d02f64ba79
1,918
ex
Elixir
lib/ex_doc/formatter/html/search_items.ex
Dalgona/ex_doc
814627067175bfe894461cc3f235ee1d9b71b487
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/formatter/html/search_items.ex
Dalgona/ex_doc
814627067175bfe894461cc3f235ee1d9b71b487
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/formatter/html/search_items.ex
Dalgona/ex_doc
814627067175bfe894461cc3f235ee1d9b71b487
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
defmodule ExDoc.Formatter.HTML.SearchItems do @moduledoc false alias ExDoc.Formatter.HTML def create(nodes, extras) do items = Enum.flat_map(nodes, &module_node/1) ++ Enum.flat_map(extras, &extra/1) ["searchNodes=[", Enum.intersperse(items, ?,), "]"] end @h2_split_regex ~r/<h2.*?>/ @header_body_re...
25.918919
86
0.573514
08993fa1a0287137e050ba2ae1cdedfde4dd04c7
1,926
exs
Elixir
.formatter.exs
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
.formatter.exs
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
.formatter.exs
rktjmp/temple
6fe46cbb4998477d76147fa95c9fd9c7841545ef
[ "MIT" ]
null
null
null
locals_without_parens = ~w[ temple c html head title style script noscript template body section nav article aside h1 h2 h3 h4 h5 h6 header footer address main p pre blockquote ol ul li dl dt dd figure figcaption div a em strong small s cite q dfn abbr data time code var samp kbd sub sup i b u mark ruby...
45.857143
130
0.813084
089946883cf39ce650e93cb6667974d803e2c91f
61
ex
Elixir
lib/bosque_web/views/layout_view.ex
prio101/bosque
3b9d0a789a4c33dce829d5cab9d198145f28b8fd
[ "MIT" ]
null
null
null
lib/bosque_web/views/layout_view.ex
prio101/bosque
3b9d0a789a4c33dce829d5cab9d198145f28b8fd
[ "MIT" ]
null
null
null
lib/bosque_web/views/layout_view.ex
prio101/bosque
3b9d0a789a4c33dce829d5cab9d198145f28b8fd
[ "MIT" ]
null
null
null
defmodule BosqueWeb.LayoutView do use BosqueWeb, :view end
15.25
33
0.803279
089957e0c52e44f15b7fedf548570c589ffe5512
5,950
exs
Elixir
test/adapter_test.exs
jaydeesimon/spandex_datadog
466760b132cecc2011a28902f1b148fa125dafba
[ "MIT" ]
1
2021-06-24T04:42:16.000Z
2021-06-24T04:42:16.000Z
test/adapter_test.exs
jaydeesimon/spandex_datadog
466760b132cecc2011a28902f1b148fa125dafba
[ "MIT" ]
null
null
null
test/adapter_test.exs
jaydeesimon/spandex_datadog
466760b132cecc2011a28902f1b148fa125dafba
[ "MIT" ]
1
2021-03-09T18:43:22.000Z
2021-03-09T18:43:22.000Z
defmodule SpandexDatadog.Test.AdapterTest do use ExUnit.Case, async: true alias Spandex.SpanContext alias SpandexDatadog.{ Adapter, Test.TracedModule, Test.Util } test "a complete trace sends spans" do TracedModule.trace_one_thing() spans = Util.sent_spans() Enum.each(spans, fn sp...
33.615819
117
0.64605
0899783bca3e6dcadc2e34cd565a7144ae9d8095
627
ex
Elixir
lib/open_submissions_web/controllers/fallback_controller.ex
csfalcione/open-submissions-api
b7af153ebe9c1a9bd487f7fc30a25007bdf2b9c3
[ "MIT" ]
7
2019-02-11T14:31:24.000Z
2021-12-28T08:15:00.000Z
lib/open_submissions_web/controllers/fallback_controller.ex
tblount/open-submissions-api
fb7395175e8079a659bc65ff7c5a7f1f4fc4b422
[ "MIT" ]
null
null
null
lib/open_submissions_web/controllers/fallback_controller.ex
tblount/open-submissions-api
fb7395175e8079a659bc65ff7c5a7f1f4fc4b422
[ "MIT" ]
2
2019-02-11T14:31:37.000Z
2021-12-28T08:15:01.000Z
defmodule OpenSubmissionsWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use OpenSubmissionsWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn ...
27.26087
72
0.709729
089998cb3972244c4a2969aace6f46c559abfafd
262
exs
Elixir
priv/repo/migrations/20210425174238_add_subject_to_conversations_and_messages.exs
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
priv/repo/migrations/20210425174238_add_subject_to_conversations_and_messages.exs
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
priv/repo/migrations/20210425174238_add_subject_to_conversations_and_messages.exs
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Repo.Migrations.AddSubjectToConversationsAndMessages do use Ecto.Migration def change do alter table(:conversations) do add(:subject, :string) end alter table(:messages) do add(:subject, :string) end end end
18.714286
73
0.70229
0899fb372dbc580de9d475bc5fc54000551879a2
1,682
ex
Elixir
lib/commodity_api/socket.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
7
2019-04-11T21:12:49.000Z
2021-04-14T12:56:42.000Z
lib/commodity_api/socket.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
null
null
null
lib/commodity_api/socket.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
2
2019-06-06T18:05:33.000Z
2019-07-16T08:49:45.000Z
## # Copyright 2018 Abdulkadir DILSIZ # # 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 la...
33.64
83
0.703329
089a16d380a0e73a7b19ff18ccb8fea4e5a1dedc
1,869
ex
Elixir
lib/user/presence.ex
Lechindianer/ex_pnut
99164b73e9b60bfccb90574dd1a6f418a7bd96ed
[ "ISC" ]
2
2019-07-12T04:07:34.000Z
2019-11-26T01:08:14.000Z
lib/user/presence.ex
Lechindianer/ex_pnut
99164b73e9b60bfccb90574dd1a6f418a7bd96ed
[ "ISC" ]
null
null
null
lib/user/presence.ex
Lechindianer/ex_pnut
99164b73e9b60bfccb90574dd1a6f418a7bd96ed
[ "ISC" ]
1
2019-11-26T01:18:54.000Z
2019-11-26T01:18:54.000Z
defmodule ExPnut.User.Presence do import ExPnut.Helper.HTTP alias ExPnut.User.UserParams @moduledoc """ A user's presence is the recent status of that user. Each updated presence lasts for 15 minutes, or until another status is given. Users who do not have a current status show up as "offline". A user's s...
36.647059
118
0.718566
089a54c86efcc0ddab4cf7ee093fca0900b1eed8
836
exs
Elixir
test/encoding_uri_test.exs
shanelep/aws_auth
5fde3711d7958e7144a16006f48462109233e777
[ "MIT" ]
null
null
null
test/encoding_uri_test.exs
shanelep/aws_auth
5fde3711d7958e7144a16006f48462109233e777
[ "MIT" ]
null
null
null
test/encoding_uri_test.exs
shanelep/aws_auth
5fde3711d7958e7144a16006f48462109233e777
[ "MIT" ]
null
null
null
defmodule AWSAuth.Encoding.URITest do use ExUnit.Case # doctest AWSAuth.Encoding.URI import AWSAuth.Encoding.URI test "unescaped characters" do Enum.each(?a..?z, &(assert char_unescaped?(&1) )) Enum.each(?A..?Z, &(assert char_unescaped?(&1) )) Enum.each(?0..?9, &(assert char_unescaped?(&1) )) E...
30.962963
116
0.660287
089a70a4577a5aa3b40e6dce1f30bd1867e39f5a
10,885
ex
Elixir
lib/pow/ecto/schema/changeset.ex
Immortalin/pow
96e8e2e58a09c98b52967f3e67ebe847ca763dd8
[ "MIT" ]
null
null
null
lib/pow/ecto/schema/changeset.ex
Immortalin/pow
96e8e2e58a09c98b52967f3e67ebe847ca763dd8
[ "MIT" ]
null
null
null
lib/pow/ecto/schema/changeset.ex
Immortalin/pow
96e8e2e58a09c98b52967f3e67ebe847ca763dd8
[ "MIT" ]
null
null
null
defmodule Pow.Ecto.Schema.Changeset do @moduledoc """ Handles changesets methods for Pow schema. These methods should never be called directly, but instead the methods build in macros in `Pow.Ecto.Schema` should be used. This is to ensure that only compile time configuration is used. ## Configuration opti...
33.492308
111
0.68994
089a7bef88f2a9547dfc5d4a6bf51b064a4c2aca
3,300
ex
Elixir
lib/credo/execution/task.ex
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
null
null
null
lib/credo/execution/task.ex
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
null
null
null
lib/credo/execution/task.ex
isaacsanders/credo
5623570bb2e3944345f1bf11819ca613533b5e10
[ "MIT" ]
1
2020-06-30T16:32:44.000Z
2020-06-30T16:32:44.000Z
defmodule Credo.Execution.Task do @type t :: module @callback call(exec :: Credo.Execution.t(), opts :: Keyword.t()) :: Credo.Execution.t() require Logger alias Credo.Execution alias Credo.Execution.ExecutionTiming defmacro __using__(_opts \\ []) do quote do @behaviour Credo.Execution.Task ...
24.087591
95
0.637273
089a83771fc95a56dfa76f5284bb785d42951d93
391
exs
Elixir
config/dev.exs
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
null
null
null
config/dev.exs
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
1
2018-08-23T16:47:17.000Z
2018-08-23T19:56:42.000Z
config/dev.exs
uberbrodt/eventstore
2bcdc7f8bcea6af87a08a4c719141f780e7a4fc4
[ "MIT" ]
1
2018-07-30T18:25:06.000Z
2018-07-30T18:25:06.000Z
use Mix.Config # Do not include metadata nor timestamps in development logs config :logger, :console, format: "[$level] $message\n" config :mix_test_watch, clear: true config :eventstore, EventStore.Storage, serializer: EventStore.TermSerializer, username: "postgres", password: "postgres", database: "eventst...
24.4375
60
0.746803
089adbd1399aed9c71bc06e1a623fb3cd4c2da67
555
ex
Elixir
lib/mix/tasks/nerves.release.init.ex
tverlaan/nerves
515b9b7730a1b2934ac051b0e7075cd7987b6c4a
[ "Apache-2.0" ]
1
2019-06-12T17:34:10.000Z
2019-06-12T17:34:10.000Z
lib/mix/tasks/nerves.release.init.ex
opencollective/nerves
81f5d30de283e77f3720a87fa1435619f0da12de
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/nerves.release.init.ex
opencollective/nerves
81f5d30de283e77f3720a87fa1435619f0da12de
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Nerves.Release.Init do use Mix.Task @moduledoc """ Prepares a new project for use with releases. By default, this forwards the call to mix release.init --template /path/to/nerves/release_template.eex For more information on additional args, reference mix help release.init """ ...
29.210526
89
0.702703
089ae4f10a75b1c459e5c2239f7c573b3b53b59c
13,107
ex
Elixir
lib/elixir/lib/inspect.ex
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
guilleiguaran/elixir
952052869ff7af0e293d2a7160b1aebc68fc46be
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [inspect: 1] import Inspect.Algebra defrecord Inspect.Opts, raw: false, limit: 50, pretty: false, width: 80 defprotocol Inspect do @moduledoc """ The `Inspect` protocol is responsible for converting any Elixir data structure into an algebra document. This document is then formatted, eit...
26.214
99
0.617227
089af3309b5a3aecdfe70d0c9aeddcfede6750f6
6,307
exs
Elixir
test/single_product_web/controllers/user_auth_test.exs
manojsamanta/stripe-single-product
d0af1cede55ce6ac71100b9f4b5473919c16c884
[ "MIT" ]
null
null
null
test/single_product_web/controllers/user_auth_test.exs
manojsamanta/stripe-single-product
d0af1cede55ce6ac71100b9f4b5473919c16c884
[ "MIT" ]
null
null
null
test/single_product_web/controllers/user_auth_test.exs
manojsamanta/stripe-single-product
d0af1cede55ce6ac71100b9f4b5473919c16c884
[ "MIT" ]
null
null
null
defmodule SingleProductWeb.UserAuthTest do use SingleProductWeb.ConnCase, async: true alias SingleProduct.Accounts alias SingleProductWeb.UserAuth import SingleProduct.AccountsFixtures @remember_me_cookie "_single_product_web_user_remember_me" setup %{conn: conn} do conn = conn |> Map.rep...
36.247126
98
0.677184
089b35002584159c21ab269bd8c480292978f73a
1,013
ex
Elixir
lib/wabanex_web/router.ex
Sensacioles/ElixirNLWTogether2021
97f72b4fda4367693755dedabf7ee86b63978221
[ "MIT" ]
null
null
null
lib/wabanex_web/router.ex
Sensacioles/ElixirNLWTogether2021
97f72b4fda4367693755dedabf7ee86b63978221
[ "MIT" ]
null
null
null
lib/wabanex_web/router.ex
Sensacioles/ElixirNLWTogether2021
97f72b4fda4367693755dedabf7ee86b63978221
[ "MIT" ]
null
null
null
defmodule WabanexWeb.Router do use WabanexWeb, :router pipeline :api do plug :accepts, ["json"] end scope "/api", WabanexWeb do pipe_through :api get "/", IMCController, :index end scope "/api" do pipe_through :api forward "/graphql", Absinthe.Plug, schema: WabanexWeb.Schema forwa...
28.942857
74
0.71076
089b44cfb887c7118a86b7ddc08e356906f45186
200
exs
Elixir
test/solvent_web/controllers/page_controller_test.exs
pbremer/solvent
76e4ec6e1230f25f55069c5702dbe628f35f0798
[ "MIT" ]
null
null
null
test/solvent_web/controllers/page_controller_test.exs
pbremer/solvent
76e4ec6e1230f25f55069c5702dbe628f35f0798
[ "MIT" ]
1
2021-03-10T11:08:45.000Z
2021-03-10T11:08:45.000Z
test/solvent_web/controllers/page_controller_test.exs
pbremer/solvent
76e4ec6e1230f25f55069c5702dbe628f35f0798
[ "MIT" ]
null
null
null
defmodule SolventWeb.PageControllerTest do use SolventWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
22.222222
60
0.68
089b67a559a1300bbd1c03fd238e5dc1bb1e08a0
2,326
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/encrypt_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/encrypt_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/encrypt_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.784615
150
0.733018
089b7306741203a56cffadae94c76c0a641a4889
1,662
ex
Elixir
lib/data_processor_web/controllers/field_controller.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
null
null
null
lib/data_processor_web/controllers/field_controller.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
3
2018-08-17T13:42:45.000Z
2018-08-17T17:05:11.000Z
lib/data_processor_web/controllers/field_controller.ex
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
null
null
null
defmodule DataProcessorWeb.FieldController do use DataProcessorWeb, :controller alias DataProcessor.Repo alias DataProcessor.InterSCity alias DataProcessor.InterSCity.JobTemplate def update_field(conn, %{"job_template_id" => id, "table" => t, "command" => "drop", "key" => k}) do template = InterSCity.ge...
47.485714
122
0.685319
089b7dc79d9f6376484326b1980cc5cd0be59c94
3,622
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/change_log.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.116279
238
0.657372
089b81d64de74333c3628d44f1b9581318c2dc49
2,213
exs
Elixir
mix.exs
basbz/ecto
db14ad1d44448f47bb35259447b7c453237ddbd7
[ "Apache-2.0" ]
null
null
null
mix.exs
basbz/ecto
db14ad1d44448f47bb35259447b7c453237ddbd7
[ "Apache-2.0" ]
null
null
null
mix.exs
basbz/ecto
db14ad1d44448f47bb35259447b7c453237ddbd7
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.MixProject do use Mix.Project @version "3.1.4" def project do [ app: :ecto, version: @version, elixir: "~> 1.5", deps: deps(), consolidate_protocols: Mix.env() != :test, # Hex description: "A toolkit for data mapping and language integrated query for...
22.814433
90
0.532309
089b8f531f75c01f76cc52f6630427d2350914c3
3,945
exs
Elixir
test/live_sup_web/controllers/user_reset_password_controller_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
test/live_sup_web/controllers/user_reset_password_controller_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
test/live_sup_web/controllers/user_reset_password_controller_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSupWeb.UserResetPasswordControllerTest do use LiveSupWeb.ConnCase, async: true alias LiveSup.Core.Accounts alias LiveSup.Repo import LiveSup.Test.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/reset_password" do @describetag :controllers test "rende...
33.432203
91
0.635995
089ba5028bcb96fab4b128746125fe87dad5689b
17,274
ex
Elixir
lib/utils/keys.ex
aeternity/aepp-sdk-elixir
a001b0eb264665623c9b05de25a71d1f13990679
[ "0BSD" ]
19
2019-04-16T07:27:53.000Z
2022-01-22T21:35:02.000Z
lib/utils/keys.ex
aeternity/aepp-sdk-elixir
a001b0eb264665623c9b05de25a71d1f13990679
[ "0BSD" ]
131
2019-04-05T13:01:37.000Z
2020-07-09T14:53:34.000Z
lib/utils/keys.ex
aeternity/aepp-sdk-elixir
a001b0eb264665623c9b05de25a71d1f13990679
[ "0BSD" ]
5
2019-04-11T19:21:42.000Z
2022-03-06T09:08:34.000Z
defmodule AeppSDK.Utils.Keys do @moduledoc """ Key generation, handling, encoding and crypto. """ alias AeppSDK.Utils.Encoding alias Argon2.Base, as: Argon2Base @prefix_bits 24 @random_salt_bytes 16 @random_nonce_bytes 24 @default_hash_params %{ m_cost: 16, parallelism: 1, t_cost: 3, ...
37.38961
326
0.642411
089ba8b284ee354c3b0c7c3bb17d4599395072a8
2,404
ex
Elixir
lib/oban/postgres_notifier.ex
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
lib/oban/postgres_notifier.ex
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
lib/oban/postgres_notifier.ex
chrismo/oban
f912ccf75a1d89e02229041d578f9263d4de0232
[ "Apache-2.0" ]
null
null
null
defmodule Oban.PostgresNotifier do @doc """ Postgres Listen/Notify based Notifier ## Caveats The notifications system is built on PostgreSQL's `LISTEN/NOTIFY` functionality. Notifications are only delivered **after a transaction completes** and are de-duplicated before publishing. Typically, applications ...
25.574468
98
0.680116
089bc8d40c975250aa16749a98f9a386886f0491
9,019
ex
Elixir
lib/absinthe/pipeline.ex
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
lib/absinthe/pipeline.ex
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
lib/absinthe/pipeline.ex
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
defmodule Absinthe.Pipeline do @moduledoc """ Execute a pipeline of phases. A pipeline is merely a list of phases. This module contains functions for building, modifying, and executing pipelines of phases. """ alias Absinthe.Phase require Logger @type data_t :: any @type phase_config_t :: Phase.t...
29.187702
88
0.642976
089bea24e4297fbbe75b20cf7a863139019264a0
712
exs
Elixir
test/test_helper.exs
nikneroz/mssql_ecto
d010b6c9c9041756353fc8184fa7e6368103cfac
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
nikneroz/mssql_ecto
d010b6c9c9041756353fc8184fa7e6368103cfac
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
nikneroz/mssql_ecto
d010b6c9c9041756353fc8184fa7e6368103cfac
[ "Apache-2.0" ]
null
null
null
Code.require_file("../deps/ecto/integration_test/support/types.exs", __DIR__) ExUnit.start() # ExUnit.configure(exclude: [skip: true]) defmodule MssqlEcto.Case do use ExUnit.CaseTemplate using _ do quote do import MssqlEcto.Case alias MssqlEcto.Connection, as: SQL end end def normalize(qu...
23.733333
78
0.654494
089bfc3ba89f8a37d395bc2a1a697091aa7c72c2
29,090
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/global_network_endpoint_groups.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/global_network_endpoint_groups.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/global_network_endpoint_groups.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
51.486726
434
0.657236
089c0fde3e4414b77f45b57896f65e4410501a73
70
exs
Elixir
apps/bbq_ui/test/views/page_view_test.exs
easco/ex_bbq
d736204bb124ea256907629f5025c3abaf08c0bb
[ "BSD-3-Clause" ]
2
2016-09-22T13:32:35.000Z
2017-02-17T20:26:50.000Z
apps/bbq_ui/test/views/page_view_test.exs
easco/ex_bbq
d736204bb124ea256907629f5025c3abaf08c0bb
[ "BSD-3-Clause" ]
null
null
null
apps/bbq_ui/test/views/page_view_test.exs
easco/ex_bbq
d736204bb124ea256907629f5025c3abaf08c0bb
[ "BSD-3-Clause" ]
null
null
null
defmodule BbqUi.PageViewTest do use BbqUi.ConnCase, async: true end
17.5
33
0.8
089c13b4b0b8bc4600e0350b2f0747a39bd2f3de
351
exs
Elixir
aoc21/test/day00_test.exs
sastels/advent-of-code-2021
7cefbb8bf08cce2c4a4e9517ecbaf49459a8671a
[ "MIT" ]
null
null
null
aoc21/test/day00_test.exs
sastels/advent-of-code-2021
7cefbb8bf08cce2c4a4e9517ecbaf49459a8671a
[ "MIT" ]
null
null
null
aoc21/test/day00_test.exs
sastels/advent-of-code-2021
7cefbb8bf08cce2c4a4e9517ecbaf49459a8671a
[ "MIT" ]
null
null
null
defmodule Day00Test do use ExUnit.Case # import Day00 setup do {:ok, contents: """ hi there """} end # @tag :skip # test "part 1", %{contents: contents} do # assert contents |> part_1() == nil # end # @tag :skip # test "part 2", %{contents: contents} do # assert contents ...
15.954545
43
0.552707
089c14506f1df76aa9fedce07e51e2ff9face093
303
ex
Elixir
test/comb/math_test.ex
tallakt/comb
e6660924891d88d798494ab0c5adeefb29fae8b8
[ "Apache-2.0" ]
38
2016-02-24T09:19:23.000Z
2022-02-15T14:33:35.000Z
test/comb/math_test.ex
tallakt/permutations
e6660924891d88d798494ab0c5adeefb29fae8b8
[ "Apache-2.0" ]
1
2018-01-07T11:42:07.000Z
2018-01-07T11:42:59.000Z
test/comb/math_test.ex
tallakt/permutations
e6660924891d88d798494ab0c5adeefb29fae8b8
[ "Apache-2.0" ]
10
2015-11-09T09:52:55.000Z
2020-10-19T05:07:00.000Z
defmodule Comb.MathTest do use ExUnit.Case, async: true doctest Comb.Math, import: true import Comb.Math test "first factorial numbers" do assert (for n <- 0..4, do: factorial(n)) == [1, 1, 2, 6, 24] end test "factorial 31" do 8222838654177922817725562880000000 end end
16.833333
47
0.663366
089c158b6c8aa0180282eca468eafba327653110
854
exs
Elixir
test/assertions/enum/have_max_by_test.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
test/assertions/enum/have_max_by_test.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
test/assertions/enum/have_max_by_test.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
defmodule Enum.HaveMaxByTest do use ExUnit.Case, async: true defmodule SomeSpec do use ESpec let :range, do: 1..3 let :func, do: fn el -> 10 / el end context "Success" do it do: expect(range()).to(have_max_by(func(), 1)) it do: expect(range()).to_not(have_max_by(func(), 3)) end ...
25.117647
82
0.63466
089c3b1d3f33676ba88373c0dabb78c5cf50d6c3
1,556
ex
Elixir
implementations/elixir/ockam/ockam/lib/ockam/transport/portal/inlet_listener.ex
twittner/ockam
96eadf99da42f7c35539c6e29010a657c579ccba
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/transport/portal/inlet_listener.ex
twittner/ockam
96eadf99da42f7c35539c6e29010a657c579ccba
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/transport/portal/inlet_listener.ex
twittner/ockam
96eadf99da42f7c35539c6e29010a657c579ccba
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Transport.Portal.InletListener do @moduledoc """ GenServer implementing the Inlet TCP listener It's a GenServer just to make it simple to be added to a supervision tree. """ use GenServer require Logger @typedoc """ TCP listener options - ip: t::inet.ip_address() - IP address to li...
28.290909
98
0.664524
089c4779f0c138ac2b240e78c3f76566bf77cc21
4,235
ex
Elixir
apps/site/lib/site_web/controllers/event_controller.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/lib/site_web/controllers/event_controller.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/lib/site_web/controllers/event_controller.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule SiteWeb.EventController do @moduledoc "Handles fetching event data for event views" use SiteWeb, :controller alias CMS.{API, Page, Repo} alias CMS.Page.Event alias Plug.Conn alias Site.IcalendarGenerator alias SiteWeb.ControllerHelpers alias SiteWeb.EventView plug(SiteWeb.Plugs.YearMonth) ...
27.322581
98
0.653365
089c510f841f3f84dcfa4ff85665fefba33650d9
108
ex
Elixir
test/support/schemas.ex
DockYard/inquisitor
bf219f5659c113a6a76704c64002b0eb6fc49730
[ "MIT" ]
156
2016-02-07T03:29:43.000Z
2022-02-25T23:07:00.000Z
test/support/schemas.ex
DockYard/inquisitor_jsonapi
8dad9b0b59f617bf0882465b0cc8be255720e320
[ "MIT" ]
13
2016-06-24T02:10:28.000Z
2020-07-04T07:53:34.000Z
test/support/schemas.ex
DockYard/inquisitor
bf219f5659c113a6a76704c64002b0eb6fc49730
[ "MIT" ]
20
2016-05-09T16:46:39.000Z
2022-01-27T15:54:14.000Z
defmodule User do use Ecto.Schema schema "users" do field :name field :age, :integer end end
12
24
0.657407
089c90e567a4696b45fca1bfab2c3ced55ee364a
130
exs
Elixir
samples/nodes_wobserver/test/nodes_wobserver_test.exs
IanLuites/wobserver-elixirconf-2017
86a56a392a5877d2d9a51dc7fbd7e0d8b576c711
[ "MIT" ]
11
2017-05-05T12:28:35.000Z
2020-02-26T09:16:10.000Z
samples/nodes_wobserver/test/nodes_wobserver_test.exs
IanLuites/wobserver-elixirconf-2017
86a56a392a5877d2d9a51dc7fbd7e0d8b576c711
[ "MIT" ]
null
null
null
samples/nodes_wobserver/test/nodes_wobserver_test.exs
IanLuites/wobserver-elixirconf-2017
86a56a392a5877d2d9a51dc7fbd7e0d8b576c711
[ "MIT" ]
null
null
null
defmodule NodesWobserverTest do use ExUnit.Case doctest NodesWobserver test "the truth" do assert 1 + 1 == 2 end end
14.444444
31
0.707692
089c92f691837c482b36a2a7543dd1da77b03f52
2,997
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/api/metadata.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/api/metadata.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/analytics/lib/google_api/analytics/v3/api/metadata.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
40.5
170
0.701702
089cbb681d63447ab6dfc033469f6ea18ce21b4c
475
ex
Elixir
lib/ex_notepad/supervisor.ex
kaiyote/ex_notepad
0df1c3e9d56c9c4b6e9a3ca8a61e1e6c40e6a0b3
[ "MIT" ]
null
null
null
lib/ex_notepad/supervisor.ex
kaiyote/ex_notepad
0df1c3e9d56c9c4b6e9a3ca8a61e1e6c40e6a0b3
[ "MIT" ]
null
null
null
lib/ex_notepad/supervisor.ex
kaiyote/ex_notepad
0df1c3e9d56c9c4b6e9a3ca8a61e1e6c40e6a0b3
[ "MIT" ]
null
null
null
defmodule ExNotepad.Supervisor do @moduledoc false use Supervisor @spec start_link() :: {:ok, pid()} | :ignore | {:error, any()} def start_link, do: Supervisor.start_link __MODULE__, [] @spec init([]) :: {:ok, {:supervisor.sup_flags(), [Supervisor.child_spec()]}} def init([]) do sup_flags = %{strateg...
27.941176
79
0.64
089cf9ccba3ed76f382a6e9ded81b4f0d42f9953
98
exs
Elixir
test/credo/backports/enum_test.exs
elixir-twister/credo
619e0ec6e244c5e0c12eeeb58ed9de97e1571d99
[ "MIT" ]
null
null
null
test/credo/backports/enum_test.exs
elixir-twister/credo
619e0ec6e244c5e0c12eeeb58ed9de97e1571d99
[ "MIT" ]
null
null
null
test/credo/backports/enum_test.exs
elixir-twister/credo
619e0ec6e244c5e0c12eeeb58ed9de97e1571d99
[ "MIT" ]
null
null
null
defmodule Credo.Backports.EnumTest do use Credo.TestHelper doctest Credo.Backports.Enum end
14
37
0.806122
089cfade1c4a98ff2f9d0b96ee5d03024e9f9fda
1,289
ex
Elixir
frameworks/Elixir/plug/lib/framework_benchmarks/handlers/fortune.ex
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
5,300
2015-01-02T08:04:20.000Z
2022-03-31T10:08:33.000Z
frameworks/Elixir/plug/lib/framework_benchmarks/handlers/fortune.ex
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
3,075
2015-01-01T05:11:45.000Z
2022-03-31T23:56:33.000Z
frameworks/Elixir/plug/lib/framework_benchmarks/handlers/fortune.ex
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
2,151
2015-01-02T14:16:09.000Z
2022-03-30T00:15:26.000Z
defmodule FrameworkBenchmarks.Handlers.Fortune do @moduledoc """ This is the handle for the /fortunes route """ require EEx @fortune_template """ <!DOCTYPE html> <html> <head><title>Fortunes</title></head> <body> <table> <tr><th>id</th><th>message</th></tr> <%= for item <- items do %...
26.306122
82
0.619085
089d0b52bf54c6a91b16cfe88cfc2c692ea26f86
1,862
ex
Elixir
lib/darfey_web/views/media_view.ex
joonatank/darfey
71ba0a41795bf97c35e940a4659dfbdf4805c46f
[ "MIT" ]
null
null
null
lib/darfey_web/views/media_view.ex
joonatank/darfey
71ba0a41795bf97c35e940a4659dfbdf4805c46f
[ "MIT" ]
null
null
null
lib/darfey_web/views/media_view.ex
joonatank/darfey
71ba0a41795bf97c35e940a4659dfbdf4805c46f
[ "MIT" ]
null
null
null
defmodule MediaFile do defstruct [:type, :file, :thumb, :caption] end defmodule DarfeyWeb.MediaView do @moduledoc """ MediaView module """ use DarfeyWeb, :view require Logger @doc """ Recursive function for creating list of image assets @return List of MediaFiles Tries to find a thumbnail file w...
30.032258
126
0.657895
089d1f56f30fbc11beaacfc22d520dea65177f0f
240
ex
Elixir
examples/invoicing_app/lib/invoicing_app/analytics/customer_invoice_counter.ex
surgeventures/sea-elixir
a2f1b63c2c829713594997c08dc5bc5892edbf62
[ "MIT" ]
8
2018-11-27T09:59:27.000Z
2021-06-03T17:51:53.000Z
examples/invoicing_app/lib/invoicing_app/analytics/customer_invoice_counter.ex
surgeventures/sea-elixir
a2f1b63c2c829713594997c08dc5bc5892edbf62
[ "MIT" ]
2
2019-03-19T13:38:10.000Z
2019-03-20T12:28:39.000Z
examples/invoicing_app/lib/invoicing_app/analytics/customer_invoice_counter.ex
surgeventures/sea-elixir
a2f1b63c2c829713594997c08dc5bc5892edbf62
[ "MIT" ]
1
2021-10-07T12:49:57.000Z
2021-10-07T12:49:57.000Z
defmodule InvoicingApp.Analytics.CustomerInvoiceCounter do @moduledoc false use Ecto.Schema schema "analytics_customer_invoice_counters" do field(:customer_id, :integer) field(:invoice_count, :integer, default: 0) end end
21.818182
58
0.775
089d7da0c4c12b917571cec0a6847f8b9a533168
2,834
ex
Elixir
lib/openflow/multipart/aggregate/request.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
5
2019-05-25T02:25:13.000Z
2020-10-06T17:00:03.000Z
lib/openflow/multipart/aggregate/request.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
5
2018-03-29T14:42:10.000Z
2019-11-19T07:03:09.000Z
lib/openflow/multipart/aggregate/request.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
1
2019-03-30T20:48:27.000Z
2019-03-30T20:48:27.000Z
defmodule Openflow.Multipart.Aggregate.Request do defstruct( version: 4, xid: 0, # virtual field datapath_id: nil, aux_id: nil, flags: [], table_id: :all, out_port: :any, out_group: :any, cookie: 0, cookie_mask: 0, match: Openflow.Match.new() ) alias __MODULE__ ...
26.735849
75
0.561397
089d841aae5ad640e99d8f43a713ae84cc77d886
794
exs
Elixir
test/http/events_test.exs
rijavskii/ex_ari
1fd5eabd9b4cb815e260867b0190a7fe635ee38a
[ "MIT" ]
13
2020-04-17T16:48:00.000Z
2022-03-25T19:16:51.000Z
test/http/events_test.exs
rijavskii/ex_ari
1fd5eabd9b4cb815e260867b0190a7fe635ee38a
[ "MIT" ]
1
2020-04-02T12:18:59.000Z
2020-04-02T12:18:59.000Z
test/http/events_test.exs
rijavskii/ex_ari
1fd5eabd9b4cb815e260867b0190a7fe635ee38a
[ "MIT" ]
7
2020-04-28T19:45:50.000Z
2022-03-25T21:42:03.000Z
defmodule ARI.HTTP.EventsTest do use ExUnit.Case, async: true require Logger alias ARI.HTTP.Events alias ARI.TestServer @username "username1" @password "password2" setup_all do host = "localhost" {:ok, {_server_ref, <<"http://localhost:", port::binary>>}} = TestServer.start() Events.start...
26.466667
95
0.630982
089d8a1ba4b1cc56ad401e454b6b507d30d63d4d
3,526
exs
Elixir
lib/elixir/test/elixir/exception_test.exs
joearms/elixir
9a0f8107bd8bbd089acb96fe0041d61a05e88a9b
[ "Apache-2.0" ]
4
2016-04-05T05:51:36.000Z
2019-10-31T06:46:35.000Z
lib/elixir/test/elixir/exception_test.exs
joearms/elixir
9a0f8107bd8bbd089acb96fe0041d61a05e88a9b
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/exception_test.exs
joearms/elixir
9a0f8107bd8bbd089acb96fe0041d61a05e88a9b
[ "Apache-2.0" ]
5
2015-02-01T06:01:19.000Z
2019-08-29T09:02:35.000Z
Code.require_file "test_helper.exs", __DIR__ defmodule Kernel.ExceptionTest do use ExUnit.Case, async: true test :is_exception do assert is_exception(RuntimeError.new) refute is_exception(empty_tuple) refute is_exception(a_tuple) refute is_exception(a_list) end test :format_stacktrace_entry_w...
44.075
131
0.693988
089daeda0c587687d169c130c94e6ffc4e845d19
819
ex
Elixir
lib/ex_twiml/reserved_name_error.ex
postmates/ex_twiml
9e2306723a206c5d1353977321901aad4715d63d
[ "MIT" ]
35
2015-04-17T19:06:05.000Z
2021-05-18T23:50:52.000Z
lib/ex_twiml/reserved_name_error.ex
tsloughter/ex_twiml
693f9ac80f14b6d5717f45354cd99cab8a79512e
[ "MIT" ]
9
2015-04-17T22:27:11.000Z
2017-08-05T16:45:39.000Z
lib/ex_twiml/reserved_name_error.ex
tsloughter/ex_twiml
693f9ac80f14b6d5717f45354cd99cab8a79512e
[ "MIT" ]
11
2015-05-31T18:42:06.000Z
2019-06-03T17:24:42.000Z
defmodule ExTwiml.ReservedNameError do @moduledoc """ This error is thrown if you try to use TwiML verb name as a variable name in your `twiml` block. ## Example This code will raise the error, because `number` is a reserved name. twiml do Enum.each [1, 2], fn(number) -> # ... ...
23.4
78
0.6337
089db3dc56f655fcbd1ae0ac1516b8e3383bf59e
2,018
exs
Elixir
elixir/frontend/config/prod.exs
honeycombio/example-greeting-service
52365a5f2ae434d0b3a84b10889486184042cbc3
[ "Apache-2.0" ]
8
2020-12-29T17:44:16.000Z
2021-11-18T22:18:42.000Z
elixir/frontend/config/prod.exs
honeycombio/example-greeting-service
52365a5f2ae434d0b3a84b10889486184042cbc3
[ "Apache-2.0" ]
36
2021-04-08T14:30:02.000Z
2022-03-30T22:06:44.000Z
elixir/frontend/config/prod.exs
honeycombio/example-greeting-service
52365a5f2ae434d0b3a84b10889486184042cbc3
[ "Apache-2.0" ]
1
2021-04-05T10:52:23.000Z
2021-04-05T10:52:23.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, # ...
36.035714
66
0.71556
089de80a6d14448cd37c5134322dccb2ca9cea58
6,171
ex
Elixir
lib/pow/plug.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
lib/pow/plug.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
lib/pow/plug.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
defmodule Pow.Plug do @moduledoc """ Plug helper methods. """ alias Plug.Conn alias Pow.{Config, Operations} @private_config_key :pow_config @doc """ Get the current user assigned to the conn. The config is fetched from the conn. See `current_user/2` for more. """ @spec current_user(Conn.t()) ...
28.836449
146
0.666991
089df73cddc06d4b8448777271db7de564f52942
711
exs
Elixir
early-chapters/mylist.exs
nespera/progr-elixir-1.6
d8b5751d5106ce81e440e2ad0a28abb0d00b18a2
[ "Apache-2.0" ]
null
null
null
early-chapters/mylist.exs
nespera/progr-elixir-1.6
d8b5751d5106ce81e440e2ad0a28abb0d00b18a2
[ "Apache-2.0" ]
null
null
null
early-chapters/mylist.exs
nespera/progr-elixir-1.6
d8b5751d5106ce81e440e2ad0a28abb0d00b18a2
[ "Apache-2.0" ]
null
null
null
defmodule MyList do def mapsum(list, fun) do mapsum(list, fun, 0) end def max([head | tail]) do maxp(tail, head) end def caesar([], _offset), do: [] def caesar([head | tail], offset) do [constrain(head + offset) | caesar(tail, offset)] end def span(from, to) when from > to, do: [] de...
20.911765
62
0.606188
089e2a7d96ccf4159abf6b387b64dbe7604e1239
1,739
ex
Elixir
lib/mgp_web/controllers/user_reset_password_controller.ex
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
null
null
null
lib/mgp_web/controllers/user_reset_password_controller.ex
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
2
2020-12-22T12:30:58.000Z
2021-05-19T10:07:26.000Z
lib/mgp_web/controllers/user_reset_password_controller.ex
imprest/mgp
61457315243d0e0c26713601b9930ca34a116a16
[ "MIT" ]
null
null
null
defmodule MgpWeb.UserResetPasswordController do use MgpWeb, :controller alias Mgp.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_us...
28.983333
101
0.658424
089e429936666700f00acef860f9eb1963f81e85
2,119
exs
Elixir
mix.exs
wdiechmann/fish
b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8
[ "MIT" ]
1
2021-02-09T23:49:40.000Z
2021-02-09T23:49:40.000Z
mix.exs
wdiechmann/fish
b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8
[ "MIT" ]
null
null
null
mix.exs
wdiechmann/fish
b63fe109bbfc1cbe515ac31f9adcd9b57c6b21c8
[ "MIT" ]
null
null
null
defmodule Fish.MixProject do use Mix.Project def project do [ app: :fish, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), dep...
28.635135
84
0.560642
089e5362a8b8dc0dd0a7da786059d1b094274c6e
2,326
ex
Elixir
clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/status.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/status.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_scheduler/lib/google_api/cloud_scheduler/v1/model/status.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.886792
427
0.72313
089e61646db42c34d93e8c8ab44f10b520a21367
472
ex
Elixir
web/views/error_view.ex
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
3
2015-08-24T11:44:19.000Z
2016-10-01T21:37:05.000Z
web/views/error_view.ex
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
null
null
null
web/views/error_view.ex
nsarno/winter
a65a6aa61d2b1af39277338277f8b3f479643939
[ "MIT" ]
null
null
null
defmodule Storm.ErrorView do use Storm.Web, :view def render("404.json", _assigns) do %{error: "Page not found"} end def render("500.json", _assigns) do %{error: "Server internal error"} end def render("401.json", _assigns) do %{error: "Unauthorized request"} end # In case no render clau...
21.454545
47
0.677966
089e664263a1108916d5b41be309b0dd26304ad3
1,625
exs
Elixir
test/i18n_test.exs
kianmeng/not_qwerty123
9778ab77db866778ad7a5874be6f4cf2818a5933
[ "MIT" ]
39
2016-07-09T14:07:52.000Z
2020-12-25T00:21:44.000Z
test/i18n_test.exs
kianmeng/not_qwerty123
9778ab77db866778ad7a5874be6f4cf2818a5933
[ "MIT" ]
13
2016-07-09T14:05:20.000Z
2022-01-20T02:42:41.000Z
test/i18n_test.exs
kianmeng/not_qwerty123
9778ab77db866778ad7a5874be6f4cf2818a5933
[ "MIT" ]
11
2016-07-09T14:02:21.000Z
2021-07-01T00:28:27.000Z
defmodule NotQwerty123.I18nTest do use ExUnit.Case import NotQwerty123.PasswordStrength test "gettext returns English message for default locale" do {:error, message} = strong_password?("4ghY&j2") assert message =~ "password should be at least 8 characters long" end test "gettext returns Japanese m...
33.163265
76
0.724308
089ec523178259e110637a6c6d063dab7c439a93
625
ex
Elixir
backend/lib/kjer_si_web/views/event_view.ex
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
2
2019-11-02T21:28:34.000Z
2019-11-28T18:01:08.000Z
backend/lib/kjer_si_web/views/event_view.ex
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
17
2019-11-29T16:23:38.000Z
2022-02-14T05:11:41.000Z
backend/lib/kjer_si_web/views/event_view.ex
danesjenovdan/kjer.si
185410ede2d42892e4d91c000099283254c5dc7a
[ "Unlicense" ]
null
null
null
defmodule KjerSiWeb.EventView do use KjerSiWeb, :view alias KjerSiWeb.EventView def render("index.json", %{events: events}) do %{data: render_many(events, EventView, "event.json")} end def render("show.json", %{event: event}) do %{data: render_one(event, EventView, "event.json")} end def render...
24.038462
57
0.6512
089ee963988bb0142d40beb382df3091a66bbce4
68
ex
Elixir
lib/first_app/repo.ex
seanreed1111/phoenix-first_app
240d4d586a365392aa8c1fdf1a77986b7e7bd5f6
[ "Apache-2.0" ]
null
null
null
lib/first_app/repo.ex
seanreed1111/phoenix-first_app
240d4d586a365392aa8c1fdf1a77986b7e7bd5f6
[ "Apache-2.0" ]
null
null
null
lib/first_app/repo.ex
seanreed1111/phoenix-first_app
240d4d586a365392aa8c1fdf1a77986b7e7bd5f6
[ "Apache-2.0" ]
null
null
null
defmodule FirstApp.Repo do use Ecto.Repo, otp_app: :first_app end
17
36
0.779412
089eff16381bc8fa2115babe49e380cb3313f7d4
351
ex
Elixir
lib/spandex_newrelic/application.ex
MaethorNaur/spandex_newrelic
f5155d8e39c82b226bb916941161d3a72f7b9a7b
[ "MIT" ]
null
null
null
lib/spandex_newrelic/application.ex
MaethorNaur/spandex_newrelic
f5155d8e39c82b226bb916941161d3a72f7b9a7b
[ "MIT" ]
null
null
null
lib/spandex_newrelic/application.ex
MaethorNaur/spandex_newrelic
f5155d8e39c82b226bb916941161d3a72f7b9a7b
[ "MIT" ]
null
null
null
defmodule SpandexNewrelic.Application do use Application def start(_type, _args) do children = [ %{ id: SpandexNewrelic.ApiServer, start: {SpandexNewrelic.ApiServer, :start_link, []} } ] opts = [strategy: :one_for_one, name: SpandexNewrelic.Supervisor] Supervisor.start_...
21.9375
69
0.666667
089f0617e05d9bcd81e56809266fa36d4bf0be61
239
exs
Elixir
priv/repo/migrations/20171014043419_change_body_field_type.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "MIT" ]
null
null
null
priv/repo/migrations/20171014043419_change_body_field_type.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "MIT" ]
null
null
null
priv/repo/migrations/20171014043419_change_body_field_type.exs
xorvo/elixir_blog
67123c05eb4cacfa482604ce62c4f5a7e9bc1690
[ "MIT" ]
null
null
null
defmodule ElixirBlog.Repo.Migrations.ChangeBodyFieldType do use Ecto.Migration def change do alter table("articles") do modify :body, :text end alter table("comments") do modify :body, :text end end end
17.071429
59
0.67364
089f11c0e26ebfa277b5c2aaad6765c3626af107
1,780
ex
Elixir
clients/text_to_speech/lib/google_api/text_to_speech/v1/model/synthesize_speech_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/text_to_speech/lib/google_api/text_to_speech/v1/model/synthesize_speech_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/text_to_speech/lib/google_api/text_to_speech/v1/model/synthesize_speech_response.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...
37.87234
374
0.75618