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
083bc8f06d6e6713e4f8389a559fc7c8de03de0c
95
exs
Elixir
test/absinthe/integration/execution/aliases/with_errors.exs
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
test/absinthe/integration/execution/aliases/with_errors.exs
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
2
2020-07-21T05:23:37.000Z
2020-08-26T04:56:12.000Z
test/absinthe/integration/execution/aliases/with_errors.exs
jlgeering/absinthe
a3dbc29640d613928398626ad75a8f03203a1720
[ "MIT" ]
null
null
null
{:ok, %{data: %{"foo" => nil}, errors: [%{code: 42, message: "Custom Error", path: ["foo"]}]}}
47.5
94
0.515789
083bd90dc56675646d917e6c52422939770cc316
8,385
ex
Elixir
lib/mix/tasks/phx.gen.context.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
1
2019-04-24T09:28:15.000Z
2019-04-24T09:28:15.000Z
lib/mix/tasks/phx.gen.context.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
lib/mix/tasks/phx.gen.context.ex
zorn/phoenix
ac88958550fbd861e2f1e1af6e3c6b787b1a202e
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phx.Gen.Context do @shortdoc "Generates a context with functions around an Ecto schema" @moduledoc """ Generates a context with functions around an Ecto schema. mix phx.gen.context Accounts User users name:string age:integer The first argument is the context module followed by the s...
31.882129
132
0.7065
083be77f373d36bbb70e226bc622dd2c92c6fd5a
872
ex
Elixir
clients/fcm/lib/google_api/fcm/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/fcm/lib/google_api/fcm/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
clients/fcm/lib/google_api/fcm/v1/metadata.ex
Contractbook/elixir-google-api
342751041aaf8c2e7f76f9922cf24b9c5895802b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.296296
74
0.755734
083c0ae3ba62c5a5b672836c86f081eb1fc4a9c2
723
ex
Elixir
lib/remote_retro_web/controllers/page_controller.ex
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
523
2017-03-15T15:21:11.000Z
2022-03-14T03:04:18.000Z
lib/remote_retro_web/controllers/page_controller.ex
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
524
2017-03-16T18:31:09.000Z
2022-02-26T10:02:06.000Z
lib/remote_retro_web/controllers/page_controller.ex
octosteve/remote_retro
3385b0db3c2daab934ce12a2f7642a5f10ac5147
[ "MIT" ]
60
2017-05-01T18:02:28.000Z
2022-03-04T21:04:56.000Z
defmodule RemoteRetroWeb.PageController do use RemoteRetroWeb, :controller def index(conn, _params) do current_user_id = get_session(conn, :current_user_id) case current_user_id do nil -> render(conn, "index.html", %{ body_class: "landing-page", omit_header: true, ...
22.59375
60
0.611342
083c1e2582b6a423ec909e9e06ceb6dbd2549f98
945
ex
Elixir
test/support/channel_case.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
1
2020-01-20T18:17:59.000Z
2020-01-20T18:17:59.000Z
test/support/channel_case.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
null
null
null
test/support/channel_case.ex
AltCampus/altstatus_backend
70bf7a9d337e570f54002c3a7df264e88372adfa
[ "MIT" ]
2
2018-09-09T08:05:24.000Z
2018-09-09T08:35:18.000Z
defmodule AltstatusWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the test case interacts ...
24.868421
71
0.718519
083c2926cac2bb2a0a3069a665da8e430dd83961
2,459
ex
Elixir
lib/opus/pipeline/registration.ex
zorbash/opus
843f7b85bb28a6c860e9f48f4cb7001d6d6f1e8c
[ "MIT" ]
303
2018-09-11T10:19:01.000Z
2022-03-11T00:57:44.000Z
lib/opus/pipeline/registration.ex
zorbash/opus
843f7b85bb28a6c860e9f48f4cb7001d6d6f1e8c
[ "MIT" ]
24
2018-09-26T10:38:05.000Z
2021-09-29T12:51:28.000Z
lib/opus/pipeline/registration.ex
zorbash/opus
843f7b85bb28a6c860e9f48f4cb7001d6d6f1e8c
[ "MIT" ]
16
2018-10-05T18:54:18.000Z
2022-02-19T18:59:45.000Z
defmodule Opus.Pipeline.Registration do @moduledoc false def define_callback(_type, _stage_id, _name, nil) do quote do: :ok end def define_callback(type, stage_id, name, quoted_fun) do {name, _} = Code.eval_quoted(name) callback_name = :"opus_#{type}_callback_stage_#{name}_#{stage_id}" quote ...
29.27381
113
0.593737
083c2c3030644484b8a9702992d3cef7a6d56b34
692
ex
Elixir
lib/collision/intersection/hull_hull.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
6
2019-05-23T19:57:26.000Z
2021-06-14T16:52:53.000Z
lib/collision/intersection/hull_hull.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
10
2019-06-21T22:09:39.000Z
2019-07-10T04:16:12.000Z
lib/collision/intersection/hull_hull.ex
crertel/elixir_rigid_physics
059f121d5504b7b8fed22aa907503d9e9fd8ac1d
[ "Apache-2.0" ]
1
2021-01-09T01:58:55.000Z
2021-01-09T01:58:55.000Z
defmodule ElixirRigidPhysics.Collision.Intersection.HullHull do @moduledoc """ Module for sphere-hull intersection tests. """ require ElixirRigidPhysics.Dynamics.Body, as: Body require ElixirRigidPhysics.Geometry.Hull, as: Hull require ElixirRigidPhysics.Collision.Contact, as: Contact alias Graphmath.Vec...
28.833333
85
0.715318
083c3f5997319dc34d770d5ed0114d1dd590a301
527
ex
Elixir
lib/video/dir.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
12
2018-06-15T10:18:43.000Z
2022-01-24T12:50:54.000Z
lib/video/dir.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
15
2018-06-21T18:04:12.000Z
2021-10-16T12:54:39.000Z
lib/video/dir.ex
breunigs/veloroute
ac3b1eeb2ef2369c27186a138f6ffd8284652dab
[ "0BSD" ]
2
2020-03-09T19:21:36.000Z
2022-01-16T03:29:51.000Z
defmodule Video.Dir do def must_exist!(fun) when is_function(fun) do case present?() do {:error, msg} -> raise msg :ok -> fun.() end end def present? do Settings.video_source_dir_abs() |> File.stat() |> case do {:ok, %{type: :directory}} -> :ok ...
18.821429
115
0.525617
083c43b5c6c15094dc263832858702ff74c58bff
1,274
exs
Elixir
test/phoenix_live_view/controller_test.exs
phaleth/phoenix_live_view
84108603663f546871dcbb9b32c2dfeb2f6afda5
[ "MIT" ]
2
2021-05-15T05:20:19.000Z
2021-05-20T17:55:04.000Z
test/phoenix_live_view/controller_test.exs
phaleth/phoenix_live_view
84108603663f546871dcbb9b32c2dfeb2f6afda5
[ "MIT" ]
1
2021-05-12T12:14:27.000Z
2021-05-12T12:14:27.000Z
test/phoenix_live_view/controller_test.exs
phaleth/phoenix_live_view
84108603663f546871dcbb9b32c2dfeb2f6afda5
[ "MIT" ]
1
2021-11-20T01:11:28.000Z
2021-11-20T01:11:28.000Z
defmodule Phoenix.LiveView.ControllerTest do use ExUnit.Case, async: true import Phoenix.ConnTest alias Phoenix.LiveViewTest.Endpoint @endpoint Endpoint setup do {:ok, conn: Phoenix.ConnTest.build_conn()} end test "live renders from controller without session", %{conn: conn} do conn = get(conn...
29.627907
75
0.690738
083c43c3388c5ca900926260436f363f895f1385
537
exs
Elixir
string_compression/test/string_compression/day07_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
string_compression/test/string_compression/day07_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
string_compression/test/string_compression/day07_test.exs
alex-dukhno/elixir-tdd-katas
57e25fc275c4274c889f2b3760276cc8a393de9e
[ "MIT" ]
null
null
null
defmodule StringCompression.Day07Test do use ExUnit.Case, async: true alias StringCompression.Day07, as: StringCompression test "compress empty string", do: assert StringCompression.compress("") == "" test "compress single char string", do: assert StringCompression.compress("a") == "1a" test "comp...
28.263158
59
0.728119
083c484be4a5ddf5270212779fa9a7a3e283ffb3
518
exs
Elixir
.credo.exs
Atlas42/nebulex_ecto
76e546376011253f7def394e9aa501e5f35c8478
[ "MIT" ]
25
2017-05-11T14:30:31.000Z
2020-11-15T23:25:50.000Z
.credo.exs
Atlas42/nebulex_ecto
76e546376011253f7def394e9aa501e5f35c8478
[ "MIT" ]
11
2017-08-22T00:07:33.000Z
2021-02-10T14:27:14.000Z
.credo.exs
Atlas42/nebulex_ecto
76e546376011253f7def394e9aa501e5f35c8478
[ "MIT" ]
6
2017-10-16T00:11:02.000Z
2021-03-05T13:22:15.000Z
%{ configs: [ %{ name: "default", files: %{ included: ["lib/", "src/", "test/", "benchmarks/"], excluded: [~r"/_build/", ~r"/deps/"] }, color: true, checks: [ ## Design Checks {Credo.Check.Design.AliasUsage, priority: :low}, ## Readability Che...
22.521739
81
0.525097
083c677c4609620aedbd0807aa8f936c2c94fe3e
979
exs
Elixir
config/config.exs
MisterToolbox/logger_file_backend
ee10e27a5aa792ed927cfcbaff603935c9d6e8bf
[ "MIT" ]
2
2020-02-19T23:21:13.000Z
2021-09-30T21:29:07.000Z
config/config.exs
MisterToolbox/logger_file_backend
ee10e27a5aa792ed927cfcbaff603935c9d6e8bf
[ "MIT" ]
null
null
null
config/config.exs
MisterToolbox/logger_file_backend
ee10e27a5aa792ed927cfcbaff603935c9d6e8bf
[ "MIT" ]
2
2020-02-19T23:21:01.000Z
2021-04-21T00:20:08.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
39.16
73
0.754852
083c7f9d4b620b79dbc574088107565ddc7ac658
529
ex
Elixir
phx_channels/lib/phx_channels_web/channels/user_socket.ex
iomonad/elixir-pocs
bd0fc282a81c013769dea28a8063a2bfbaac557d
[ "Unlicense" ]
null
null
null
phx_channels/lib/phx_channels_web/channels/user_socket.ex
iomonad/elixir-pocs
bd0fc282a81c013769dea28a8063a2bfbaac557d
[ "Unlicense" ]
null
null
null
phx_channels/lib/phx_channels_web/channels/user_socket.ex
iomonad/elixir-pocs
bd0fc282a81c013769dea28a8063a2bfbaac557d
[ "Unlicense" ]
null
null
null
defmodule PhxChannelsWeb.UserSocket do use Phoenix.Socket ## Channels channel "room:*", PhxChannelsWeb.RoomChannel @max_age 24 * 60 * 60 def connect(%{"token" => token}, socket) do case Phoenix.Token.verify(socket, "user token", token, max_age: @max_age) do {:ok, user_id} -> {:ok, assign(socket, ...
21.16
80
0.655955
083ce425ab19a71d0201b62398ed68e52d7dceec
2,411
ex
Elixir
lib/gealts/crossover.ex
0010-IO/gealts
841b4af2c0931579be135cc9f8e0231690d5d0df
[ "Unlicense" ]
8
2015-10-13T08:19:17.000Z
2021-06-04T05:52:29.000Z
lib/gealts/crossover.ex
0010-IO/gealts
841b4af2c0931579be135cc9f8e0231690d5d0df
[ "Unlicense" ]
null
null
null
lib/gealts/crossover.ex
0010-IO/gealts
841b4af2c0931579be135cc9f8e0231690d5d0df
[ "Unlicense" ]
null
null
null
defmodule Gealts.Crossover do @moduledoc """ Randomly selects a position in a chromosome, then exchanges sub-chromosomes. Chromosomes fit for "mating" are randomly selected, the number of parent chromosomes is controlled by the @cr (crossover rate) parameter. """ alias Gealts.MathUtils @cr 0.25 ...
27.712644
109
0.642472
083cfa382e59afbab2ce4e9ab751ae8590602a46
1,977
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/point_data.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/point_data.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/monitoring/lib/google_api/monitoring/v3/model/point_data.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...
39.54
197
0.743551
083d00ab679f17ede6b811d463b0318fb917ddb0
589
ex
Elixir
lib/roger/partition/global/state_persister.ex
jnylen/roger
074338eceae4783221088e8b235a635452708ef1
[ "MIT" ]
null
null
null
lib/roger/partition/global/state_persister.ex
jnylen/roger
074338eceae4783221088e8b235a635452708ef1
[ "MIT" ]
null
null
null
lib/roger/partition/global/state_persister.ex
jnylen/roger
074338eceae4783221088e8b235a635452708ef1
[ "MIT" ]
null
null
null
defmodule Roger.Partition.Global.StatePersister do @moduledoc """ Behaviour for the persistence of the global partition state. See `Roger.Partition.Global` on how to implement a custom persister module. """ @doc """ Called when the global state process starts. """ @callback init(id :: String.t) :: :o...
23.56
77
0.658744
083d0f89e80119524f6b9dbbc435b551a631320a
76
exs
Elixir
test/myapp_web/views/page_view_test.exs
p-jaya/elixir-docker
08c2b401888e6154abb8a96afc02f8ae25ddb24d
[ "MIT" ]
11
2018-07-20T07:37:06.000Z
2020-08-18T17:48:00.000Z
test/myapp_web/views/page_view_test.exs
p-jaya/elixir-docker
08c2b401888e6154abb8a96afc02f8ae25ddb24d
[ "MIT" ]
null
null
null
test/myapp_web/views/page_view_test.exs
p-jaya/elixir-docker
08c2b401888e6154abb8a96afc02f8ae25ddb24d
[ "MIT" ]
1
2018-07-20T01:48:02.000Z
2018-07-20T01:48:02.000Z
defmodule MyappWeb.PageViewTest do use MyappWeb.ConnCase, async: true end
19
36
0.815789
083d1b5290e47a8ec6d54e8fd09785347e95fb31
4,561
ex
Elixir
rustler_mix/lib/rustler.ex
ericlathrop/rustler
662e36b11703e590fdb21fd392e2c80b26225033
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_mix/lib/rustler.ex
ericlathrop/rustler
662e36b11703e590fdb21fd392e2c80b26225033
[ "Apache-2.0", "MIT" ]
null
null
null
rustler_mix/lib/rustler.ex
ericlathrop/rustler
662e36b11703e590fdb21fd392e2c80b26225033
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule Rustler do @moduledoc """ Provides compile-time configuration for a NIF module. When used, Rustler expects the `:otp_app` as option. The `:otp_app` should point to the OTP application that the dynamic library can be loaded from. For example: defmodule MyNIF do use Rustler, otp_app...
32.578571
95
0.634948
083d4932d0cb82922df1f22bf496646f2c603db5
2,304
ex
Elixir
lib/cizen/dispatcher/sender.ex
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
lib/cizen/dispatcher/sender.ex
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
lib/cizen/dispatcher/sender.ex
Hihaheho-Studios/Cizen
09ba3c66aa11d0db913ffde804509bc7bef80db9
[ "MIT" ]
null
null
null
defmodule Cizen.Dispatcher.Sender do @moduledoc false use GenServer alias Cizen.Dispatcher.Node def start_link(opts) do allowed_to_send? = Keyword.get(opts, :allowed_to_send?, false) root_node = Keyword.get(opts, :root_node, Node) next_sender = Keyword.fetch!(opts, :next_sender) name = Keyword...
24.510638
98
0.647135
083d4b3fc8d90f6ea465f9b59adbd2cc4f9bb492
719
exs
Elixir
test/prometheus_telemetry/periodic_measurements/erlang_vm_test.exs
theblitzapp/prometheus_telemetry_elixir
a2c81e84f832c622ac5eb98bca89526a52cca3f0
[ "MIT" ]
3
2022-03-20T00:21:06.000Z
2022-03-31T13:40:20.000Z
test/prometheus_telemetry/periodic_measurements/erlang_vm_test.exs
theblitzapp/prometheus_telemetry_elixir
a2c81e84f832c622ac5eb98bca89526a52cca3f0
[ "MIT" ]
null
null
null
test/prometheus_telemetry/periodic_measurements/erlang_vm_test.exs
theblitzapp/prometheus_telemetry_elixir
a2c81e84f832c622ac5eb98bca89526a52cca3f0
[ "MIT" ]
null
null
null
defmodule PrometheusTelemetry.PeriodicMeasurements.ErlangVMTest do use ExUnit.Case alias PrometheusTelemetry.PeriodicMeasurements.ErlangVM @event_name [:erlang_vm_uptime] doctest ErlangVM describe "vm_wall_clock/0" do setup do: %{self: self()} test "writes value to telemetry", %{self: self, test:...
25.678571
87
0.732962
083d57085b367b428aa7b93fe28d411ce489692f
1,127
exs
Elixir
config/config.exs
jvantuyl/cidrex
54f6f05fe45c17859abb437fa8b37e50ce7d87a6
[ "MIT" ]
null
null
null
config/config.exs
jvantuyl/cidrex
54f6f05fe45c17859abb437fa8b37e50ce7d87a6
[ "MIT" ]
null
null
null
config/config.exs
jvantuyl/cidrex
54f6f05fe45c17859abb437fa8b37e50ce7d87a6
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.354839
73
0.750665
083d5938f038b5c1406cdc6c42ac2bdf0edab694
777
ex
Elixir
apps/ewallet/lib/ewallet/web/email_validator.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet/lib/ewallet/web/email_validator.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
apps/ewallet/lib/ewallet/web/email_validator.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
defmodule EWallet.EmailValidator do @moduledoc """ This module validates an email string. """ @email_regex ~r/^[^\@]+\@[^\@]+$/ @doc """ Checks whether the email address looks correct. """ @spec valid?(String.t() | nil) :: boolean() def valid?(nil), do: false def valid?(email) do Regex.match?(...
24.28125
82
0.621622
083d7b1f4367dabcc640f7f33f8d421d074ea848
2,743
exs
Elixir
test/soap/request_test.exs
the-AjK/soap
587f8a538084345fad01cb92e7c1ee9e51ca509d
[ "MIT" ]
74
2019-02-15T14:00:24.000Z
2022-03-27T06:02:43.000Z
test/soap/request_test.exs
the-AjK/soap
587f8a538084345fad01cb92e7c1ee9e51ca509d
[ "MIT" ]
23
2019-02-14T15:18:59.000Z
2022-01-13T10:27:44.000Z
test/soap/request_test.exs
the-AjK/soap
587f8a538084345fad01cb92e7c1ee9e51ca509d
[ "MIT" ]
49
2019-04-17T12:29:45.000Z
2022-03-16T11:45:46.000Z
defmodule Soap.RequestTest do use ExUnit.Case import Mock doctest Soap.Request alias Soap.{Request, Wsdl} @request_with_header ~S""" <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://test....
41.560606
218
0.578564
083d996288c357b7149f34e35bf2c02bbd474058
907
ex
Elixir
lib/hello_phoenix/endpoint.ex
chrhsmt/hello_phoenix
18c719cab56827847ddcf676df5141d1cf5e420b
[ "MIT" ]
null
null
null
lib/hello_phoenix/endpoint.ex
chrhsmt/hello_phoenix
18c719cab56827847ddcf676df5141d1cf5e420b
[ "MIT" ]
1
2018-12-14T08:36:11.000Z
2018-12-14T08:36:11.000Z
lib/hello_phoenix/endpoint.ex
chrhsmt/hello_phoenix
18c719cab56827847ddcf676df5141d1cf5e420b
[ "MIT" ]
null
null
null
defmodule HelloPhoenix.Endpoint do use Phoenix.Endpoint, otp_app: :hello_phoenix # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug Plug.Static, at: "/", from: :hello_phoe...
25.194444
65
0.708931
083da4e0a1970e17e4fcd97c02c0ce0fcaab9be6
29,184
ex
Elixir
api/deps/phoenix_live_view/lib/phoenix_live_view/engine.ex
makao95/scrumpoker
de235a049a360612cde23ae5992375cb01a7feba
[ "MIT" ]
2
2020-05-06T14:51:56.000Z
2020-05-06T14:52:21.000Z
api/deps/phoenix_live_view/lib/phoenix_live_view/engine.ex
makao95/scrumpoker
de235a049a360612cde23ae5992375cb01a7feba
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/phoenix_live_view/lib/phoenix_live_view/engine.ex
carlosviana/blog
1dcf58c3ca40bc3a7105d75de6f51954eb44bca8
[ "MIT" ]
1
2020-05-16T22:44:14.000Z
2020-05-16T22:44:14.000Z
defmodule Phoenix.LiveView.Component do @moduledoc """ The struct returned by components in .leex templates. This component is never meant to be output directly into the template. It should always be handled by the diffing algorithm. """ defstruct [:id, :component, :assigns] @type t :: %__MODULE__{ ...
31.584416
96
0.636342
083db4e05453aea762a1cad3eb29ea4cae86b51c
1,798
exs
Elixir
server/config/dev.exs
Nymrinae/TimeManager
5048280da7c497909bca7faf7d2256c07438d442
[ "MIT" ]
null
null
null
server/config/dev.exs
Nymrinae/TimeManager
5048280da7c497909bca7faf7d2256c07438d442
[ "MIT" ]
null
null
null
server/config/dev.exs
Nymrinae/TimeManager
5048280da7c497909bca7faf7d2256c07438d442
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :server, Server.Repo, # username: System.get_env("PG_USER"), # password: System.get_env("PG_PWD"), # database: System.get_env("PG_DB"), # hostname: System.get_env("PG_HOST"), username: "postgres", password: "postgres", database: "postgres", hostname: "db"...
29
68
0.719689
083df63de7701b4169b6adab50db123e261c89f3
342
exs
Elixir
api/priv/repo/seeds.exs
panayi/react-phoenix-starter-kit
6615402deeac9b359954cdd8b523f7735b75eec9
[ "MIT" ]
1
2017-06-02T07:17:22.000Z
2017-06-02T07:17:22.000Z
priv/repo/seeds.exs
mcampa/bigcommerce-elixir-app
f1fe40b2a456b49c09970a5317108316f054d5ec
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
mcampa/bigcommerce-elixir-app
f1fe40b2a456b49c09970a5317108316f054d5ec
[ "MIT" ]
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: # # App.Repo.insert!(%App.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail if ...
28.5
61
0.69883
083e05763ebba1ee991bb643f6b6ee107c0bcf49
1,547
exs
Elixir
mix.exs
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
25
2020-06-26T02:21:35.000Z
2022-03-05T18:51:46.000Z
mix.exs
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
29
2019-07-02T21:50:06.000Z
2020-05-28T18:34:01.000Z
mix.exs
paultannenbaum/mechanize
97fd54c0421689026c01b9bf38206fa74e8f7e1a
[ "MIT" ]
4
2020-06-24T02:11:47.000Z
2022-03-06T00:50:59.000Z
defmodule Mechanize.MixProject do use Mix.Project @version "0.1.0" def project do [ app: :mechanize, version: @version, elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], dialyzer: [plt_add_deps: :transitive], ...
25.783333
100
0.574661
083e1e613e974f91b619e0d421aab38c0d623be4
2,284
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list_warning.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
41.527273
195
0.727671
083e1eb6adbe774765accb191e85c5cd8ab9c3e9
215
ex
Elixir
elixir/plug-cowboy/lib/plug_cowboy_app/models/status.ex
ivanjj22/performance-benchmark-stacks
085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c
[ "MIT" ]
5
2021-05-14T13:59:13.000Z
2022-02-06T19:28:50.000Z
elixir/plug-cowboy/lib/plug_cowboy_app/models/status.ex
ivanjj22/performance-benchmark-stacks
085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c
[ "MIT" ]
null
null
null
elixir/plug-cowboy/lib/plug_cowboy_app/models/status.ex
ivanjj22/performance-benchmark-stacks
085dd392fdcf2b75ec3ea62b5272ff4d26d48c8c
[ "MIT" ]
4
2021-04-28T20:34:37.000Z
2021-10-06T20:29:47.000Z
defmodule Models.Status do @moduledoc false defstruct [ status: "" ] def up() do %__MODULE__{ status: "UP" } end def down() do %__MODULE__{ status: "DOWN" } end end
10.238095
26
0.534884
083e33fbf4654f74ae8baddf7d2e21695b26e0c8
1,954
ex
Elixir
lib/ex_oauth2_provider/plug/error_handler.ex
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
lib/ex_oauth2_provider/plug/error_handler.ex
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
lib/ex_oauth2_provider/plug/error_handler.ex
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
defmodule ExOauth2Provider.Plug.ErrorHandler do @moduledoc """ A default error handler that can be used for failed authentication """ alias Plug.Conn @callback unauthenticated(Conn.t(), map()) :: Conn.t() @callback unauthorized(Conn.t(), map()) :: Conn.t() @callback no_resource(Conn.t(), map()) :: Conn....
26.405405
68
0.651484
083e34445f293ee3594a1e912cec77df4b42d7f7
15,760
ex
Elixir
lib/ecto/query/api.ex
thenrio/ecto
87ad8d75a23d63b5f8f5a5cecadb2365d6ed6083
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/api.ex
thenrio/ecto
87ad8d75a23d63b5f8f5a5cecadb2365d6ed6083
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/api.ex
thenrio/ecto
87ad8d75a23d63b5f8f5a5cecadb2365d6ed6083
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Query.API do @moduledoc """ Lists all functions allowed in the query API. * Comparison operators: `==`, `!=`, `<=`, `>=`, `<`, `>` * Arithmetic operators: `+`, `-`, `*`, `/` * Boolean operators: `and`, `or`, `not` * Inclusion operator: `in/2` * Search functions: `like/2` and `ili...
29.961977
91
0.663388
083e43ba7640126f57768abc73d92a117e93e631
283
ex
Elixir
lib/fb_cryptocurrency_chatbot.ex
mohammedmazharuddin/fb_cryptocurrency_chatbot
0f4f445edf810638f30ca77dc288fca4d5428719
[ "MIT" ]
null
null
null
lib/fb_cryptocurrency_chatbot.ex
mohammedmazharuddin/fb_cryptocurrency_chatbot
0f4f445edf810638f30ca77dc288fca4d5428719
[ "MIT" ]
null
null
null
lib/fb_cryptocurrency_chatbot.ex
mohammedmazharuddin/fb_cryptocurrency_chatbot
0f4f445edf810638f30ca77dc288fca4d5428719
[ "MIT" ]
null
null
null
defmodule FbCryptocurrencyChatbot do @moduledoc """ FbCryptocurrencyChatbot 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
28.3
68
0.780919
083e4945de4333afb752974e738f266e763ec62e
253
ex
Elixir
programming_elixir/chapter14/spawn1.ex
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
programming_elixir/chapter14/spawn1.ex
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
programming_elixir/chapter14/spawn1.ex
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
defmodule Spawn1 do def greet do receive do {sender, msg} -> send sender, { :ok, "Hello, #{msg}" } end end end pid = spawn(Spawn1, :greet, []) send pid, {self, "World!"} receive do {:ok, message} -> IO.puts message end
14.882353
45
0.565217
083e49b5dfc68e8d15c615710a6115c23e1540c0
2,775
exs
Elixir
mix.exs
paradox460/earmark
24c516daf264a4dced1424777c60d9f1620f11bb
[ "Apache-1.1" ]
null
null
null
mix.exs
paradox460/earmark
24c516daf264a4dced1424777c60d9f1620f11bb
[ "Apache-1.1" ]
null
null
null
mix.exs
paradox460/earmark
24c516daf264a4dced1424777c60d9f1620f11bb
[ "Apache-1.1" ]
null
null
null
defmodule Earmark.Mixfile do use Mix.Project @version "1.4.14" @url "https://github.com/pragdave/earmark" @deps [ {:earmark_parser, ">= 1.4.12"}, {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:benchfella, "~> 0.3.0", only: [:dev]}, {:earmark_ast_dsl, "~> 0.2.5", only: [:test]}...
25.934579
109
0.575495
083e4b90c28a15dbcaeba80df6912e35abe636b3
1,556
ex
Elixir
lib/epi_locator_web/views/error_helpers.ex
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
null
null
null
lib/epi_locator_web/views/error_helpers.ex
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
6
2021-10-19T01:55:57.000Z
2022-02-15T01:04:19.000Z
lib/epi_locator_web/views/error_helpers.ex
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
2
2022-01-21T08:38:50.000Z
2022-01-21T08:42:04.000Z
defmodule EpiLocatorWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_t...
32.416667
79
0.667095
083e4d20cefd41773b0b083b7b930f2615acbbae
2,719
ex
Elixir
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_detail.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_detail.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration_detail.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "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...
38.295775
172
0.75285
083e731f2a983d231b50d1201b40426faa7b0e63
745
exs
Elixir
config/test.exs
fossabot/crimson_commerce
c23c9ec8d0deedccd0e98e2e6adf634f96ec27ab
[ "MIT" ]
64
2019-10-18T02:53:22.000Z
2021-11-24T13:10:29.000Z
config/test.exs
soediro/crimson_commerce
a6f260dd68afb4cd497a14dd33b5075830d5f84a
[ "MIT" ]
334
2019-10-15T22:14:20.000Z
2022-03-31T06:07:26.000Z
config/test.exs
soediro/crimson_commerce
a6f260dd68afb4cd497a14dd33b5075830d5f84a
[ "MIT" ]
12
2019-10-18T02:53:29.000Z
2021-11-16T01:08:46.000Z
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :crimson_commerce, CrimsonCommerce.Repo, username: "postgres", password: "postgres", database: "crimso...
31.041667
75
0.762416
083e981be048a9756c41e6f9e91fac4114682767
12,030
ex
Elixir
lib/absinthe_error_payload/payload.ex
chubarovNick/absinthe_error_payload
7a906bb11370ac65d69293d6eca4546ddc7da9c5
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/absinthe_error_payload/payload.ex
chubarovNick/absinthe_error_payload
7a906bb11370ac65d69293d6eca4546ddc7da9c5
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/absinthe_error_payload/payload.ex
chubarovNick/absinthe_error_payload
7a906bb11370ac65d69293d6eca4546ddc7da9c5
[ "MIT", "BSD-3-Clause" ]
null
null
null
defmodule AbsintheErrorPayload.Payload do @moduledoc """ Absinthe Middleware to build a mutation payload response. AbsintheErrorPayload mutation responses (aka "payloads") have three fields - `successful` - Indicates if the mutation completed successfully or not. Boolean. - `messages` - a list of validation...
30.302267
151
0.706484
083eb94cea3e4c810775e1c406fd0c5af1727712
200
exs
Elixir
programming_elixir/default_params2.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
programming_elixir/default_params2.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
programming_elixir/default_params2.exs
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule DefaultParams2 do def func(p1, p2 \\ 123) def func(p1, p2) when is_list(p1) do "You said #{p2} with a list" end def func(p1, p2) do "You passed in #{p1} and #{p2}" end end
20
38
0.615
083ee524f15214affa3ddda749ce1818afb1c196
4,717
ex
Elixir
lib/oli_web/controllers/registration_controller.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli_web/controllers/registration_controller.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli_web/controllers/registration_controller.ex
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule OliWeb.RegistrationController do use OliWeb, :controller alias Oli.Institutions alias Oli.Lti_1p3.Tool.Registration alias Oli.Branding alias OliWeb.Common.{Breadcrumb} def root_breadcrumbs(institution_id, action, name) do OliWeb.InstitutionController.root_breadcrumbs() ++ [ Bre...
32.986014
99
0.664193
083f180147081b6852f051d0f5a4100e45edaa4f
1,607
ex
Elixir
clients/alert_center/lib/google_api/alert_center/v1beta1/model/resource_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/alert_center/lib/google_api/alert_center/v1beta1/model/resource_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/alert_center/lib/google_api/alert_center/v1beta1/model/resource_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.14
131
0.728687
083f18dbe7ffd3b3be03f7333bd7b9026aaeaf19
86
exs
Elixir
test/bitstring_web/views/layout_view_test.exs
the-hills/www.bitstring.xyz
fde44f0812634614bf166ef20505bdaa15a2feb4
[ "MIT" ]
1
2017-09-22T14:53:03.000Z
2017-09-22T14:53:03.000Z
test/bitstring_web/views/layout_view_test.exs
the-hills/www.bitstring.xyz
fde44f0812634614bf166ef20505bdaa15a2feb4
[ "MIT" ]
null
null
null
test/bitstring_web/views/layout_view_test.exs
the-hills/www.bitstring.xyz
fde44f0812634614bf166ef20505bdaa15a2feb4
[ "MIT" ]
null
null
null
defmodule BitstringWeb.LayoutViewTest do use BitstringWeb.ConnCase, async: true end
21.5
40
0.837209
083f19a8c2c6c3fd499b1a3de8e67ba04b51b5b0
3,103
exs
Elixir
exercises/isbn-verifier/test/isbn_verifier_test.exs
DuoPan/elixir
e96388f242c383c1f45935570ed2f42394171fc6
[ "MIT" ]
2
2019-07-09T05:23:38.000Z
2019-07-29T01:39:59.000Z
exercises/isbn-verifier/test/isbn_verifier_test.exs
DuoPan/elixir
e96388f242c383c1f45935570ed2f42394171fc6
[ "MIT" ]
null
null
null
exercises/isbn-verifier/test/isbn_verifier_test.exs
DuoPan/elixir
e96388f242c383c1f45935570ed2f42394171fc6
[ "MIT" ]
null
null
null
defmodule IsbnVerifierTest do use ExUnit.Case # @tag :pending test "valid isbn number" do assert IsbnVerifier.isbn?("3-598-21508-8") end @tag :pending test "invalid isbn check digit" do refute IsbnVerifier.isbn?("3-598-21508-9") end @tag :pending test "valid isbn number with a check digit o...
23.507576
100
0.694811
083f1a70cf938179ba673e2b9dfdc5f948452fc1
3,868
exs
Elixir
test/phoenix/live_dashboard/pages/ports_page_test.exs
RomanKotov/phoenix_live_dashboard
439283fa625f5af876e01eb5edcb20aec7f3b2da
[ "MIT" ]
1
2020-11-04T16:18:16.000Z
2020-11-04T16:18:16.000Z
test/phoenix/live_dashboard/pages/ports_page_test.exs
RomanKotov/phoenix_live_dashboard
439283fa625f5af876e01eb5edcb20aec7f3b2da
[ "MIT" ]
null
null
null
test/phoenix/live_dashboard/pages/ports_page_test.exs
RomanKotov/phoenix_live_dashboard
439283fa625f5af876e01eb5edcb20aec7f3b2da
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveDashboard.PortsPageTest do use ExUnit.Case, async: true import Phoenix.ConnTest import Phoenix.LiveViewTest @endpoint Phoenix.LiveDashboardTest.Endpoint test "menu_link/2" do assert {:ok, "Ports"} = Phoenix.LiveDashboard.PortsPage.menu_link(nil, nil) end test "shows ports with...
36.490566
96
0.651241
083f31ebaf84a5e3da148c45325374bb811c1857
7,420
ex
Elixir
kousa/lib/data-layer/user_data.ex
joshrezende/dogehouse
2c77fa86fc0c625ded3d4b5d112fbdd22a3cdbfe
[ "MIT" ]
1
2021-02-26T19:55:41.000Z
2021-02-26T19:55:41.000Z
kousa/lib/data-layer/user_data.ex
agt25/dogehouse
6666028fa52b48f11bf64e60e859610dce2a3956
[ "MIT" ]
1
2022-02-27T19:40:57.000Z
2022-02-27T19:40:57.000Z
kousa/lib/data-layer/user_data.ex
agt25/dogehouse
6666028fa52b48f11bf64e60e859610dce2a3956
[ "MIT" ]
null
null
null
defmodule Kousa.Data.User do import Ecto.Query, warn: false alias Beef.{Repo, User} @fetch_limit 16 def edit_profile(user_id, data) do %User{id: user_id} |> User.edit_changeset(data) |> Repo.update() end def search(query, offset) do query_with_percent = "%" <> query <> "%" items = ...
22.901235
95
0.515094
083f350168760c775ce10032315fa850bdb526eb
5,563
exs
Elixir
lib/elixir/test/elixir/code_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/code_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/code_test.exs
TurtleAI/elixir
2fb41ebef4d06315dd6c05ee00899572b27ee50a
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule CodeTest do use ExUnit.Case, async: true doctest Code import PathHelpers def genmodule(name) do defmodule name do Kernel.LexicalTracker.remote_references(__MODULE__) end end contents = quote do defmodule CodeTest.Sample do d...
29.278947
109
0.650908
083f449894eb9ae2f3c9875745f9459efb4324a5
3,330
ex
Elixir
lib/error.ex
EevanW/ex_open_travel
cc52155dd0dbf7e9a305c07890c2de47e87e3585
[ "Apache-2.0" ]
null
null
null
lib/error.ex
EevanW/ex_open_travel
cc52155dd0dbf7e9a305c07890c2de47e87e3585
[ "Apache-2.0" ]
null
null
null
lib/error.ex
EevanW/ex_open_travel
cc52155dd0dbf7e9a305c07890c2de47e87e3585
[ "Apache-2.0" ]
null
null
null
defmodule ExOpenTravel.Error do defexception [:reason] @type t :: %__MODULE__{reason: any} @impl true def exception(code), do: %__MODULE__{reason: reason_for(code)} @impl true def message(%__MODULE__{reason: reason}), do: humanize_error(reason) @doc """ Convert API Error code to reason atom """ @...
37.840909
98
0.701502
083f5884270d41b2c4801d0f01d8a64de4f77fc7
129
exs
Elixir
.formatter.exs
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
7
2021-01-22T04:07:29.000Z
2021-12-14T14:01:30.000Z
.formatter.exs
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
1
2021-03-17T15:44:26.000Z
2021-03-17T15:44:26.000Z
.formatter.exs
feng19/wechat
431c22818c60cd01fc5c676aa060feb303d0c444
[ "Apache-2.0" ]
2
2021-03-17T14:35:56.000Z
2021-08-10T07:44:10.000Z
# Used by "mix format" [ import_deps: [:plug, :tesla], inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] ]
21.5
69
0.573643
083f65d57d08a56cd66ce6755927bf9c78a6e33f
965
exs
Elixir
mix.exs
iautom8things/nicene
f3c7bdd7dbc678610c8a1dcb58eb0a89190f34d9
[ "MIT" ]
null
null
null
mix.exs
iautom8things/nicene
f3c7bdd7dbc678610c8a1dcb58eb0a89190f34d9
[ "MIT" ]
null
null
null
mix.exs
iautom8things/nicene
f3c7bdd7dbc678610c8a1dcb58eb0a89190f34d9
[ "MIT" ]
null
null
null
defmodule Nicene.MixProject do use Mix.Project @github_url "https://github.com/sketch-hq/nicene" def project do [ app: :nicene, version: "0.5.0", elixir: "~> 1.7", start_permanent: false, description: "A Credo plugin containing additional checks.", deps: deps(), pac...
18.207547
66
0.481865
083f803a6793527ceb52ccb7aa6190f07e17bc91
108
ex
Elixir
apps/thousand/lib/thousand/repo.ex
thousandfr/api
bbcdbcf269000bba566ac7d7d8a351b6f6dd667a
[ "MIT" ]
null
null
null
apps/thousand/lib/thousand/repo.ex
thousandfr/api
bbcdbcf269000bba566ac7d7d8a351b6f6dd667a
[ "MIT" ]
3
2018-11-14T19:35:46.000Z
2019-01-04T23:10:40.000Z
apps/thousand/lib/thousand/repo.ex
thousandfr/api
bbcdbcf269000bba566ac7d7d8a351b6f6dd667a
[ "MIT" ]
null
null
null
defmodule Thousand.Repo do use Ecto.Repo, otp_app: :thousand, adapter: Ecto.Adapters.Postgres end
18
35
0.731481
083f84eec7c74c258ccc4f02f0717bb3c60e048d
1,811
ex
Elixir
backend/lib/backend/accounts.ex
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
null
null
null
backend/lib/backend/accounts.ex
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
null
null
null
backend/lib/backend/accounts.ex
silver-panda/budgetr
d8cad5c1401677947444add24c8d41f2450c8cc3
[ "MIT" ]
null
null
null
defmodule Backend.Accounts do @moduledoc """ The Accounts context. """ import Ecto.Query, warn: false alias Backend.Repo alias Backend.Accounts.User @doc """ Returns the list of users. ## Examples iex> list_users() [%User{}, ...] """ def list_users do Repo.all(User) end ...
16.169643
59
0.568747
083fb9e14fac8fb47926008dbafeb87f10776ba3
103
exs
Elixir
programming_elixir_1.3_snippets/factorial.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/factorial.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/factorial.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
defmodule Factorial do def of(0), do: 1 def of(n) when is_integer(n) and n > 0, do: n * of(n-1) end
25.75
57
0.631068
083fcd7f0a9a2a08962c368416b253d29281cca8
526
ex
Elixir
lib/ash/page/offset.ex
maartenvanvliet/ash
c7fd1927169b45d9e1e5ad4ba2ee81703fcf27db
[ "MIT" ]
null
null
null
lib/ash/page/offset.ex
maartenvanvliet/ash
c7fd1927169b45d9e1e5ad4ba2ee81703fcf27db
[ "MIT" ]
null
null
null
lib/ash/page/offset.ex
maartenvanvliet/ash
c7fd1927169b45d9e1e5ad4ba2ee81703fcf27db
[ "MIT" ]
null
null
null
defmodule Ash.Page.Offset do @moduledoc """ A page of results from `offset` based pagination. If a resource supports `keyset` pagination as well, it will also have the `keyset` metadata. """ defstruct [:results, :limit, :offset, :count, :rerun] @type t :: %__MODULE__{} def new(results, count, origina...
23.909091
55
0.638783
083ff7cb5c7d86f7e7b8959d028d6faecd664822
2,001
ex
Elixir
clients/admin/lib/google_api/admin/directory_v1/model/mobile_devices.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/admin/lib/google_api/admin/directory_v1/model/mobile_devices.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/admin/lib/google_api/admin/directory_v1/model/mobile_devices.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...
35.732143
140
0.712644
083ff9bba72c589967b3d5023f28d27ece210ec3
3,409
ex
Elixir
lib/tesla/adapter/httpc.ex
mmcc/tesla
75384470030fb9b44df0e8930371ae8ed081d388
[ "MIT" ]
null
null
null
lib/tesla/adapter/httpc.ex
mmcc/tesla
75384470030fb9b44df0e8930371ae8ed081d388
[ "MIT" ]
1
2019-10-25T19:27:33.000Z
2019-10-25T19:27:33.000Z
lib/tesla/adapter/httpc.ex
mmcc/tesla
75384470030fb9b44df0e8930371ae8ed081d388
[ "MIT" ]
1
2020-04-04T03:19:50.000Z
2020-04-04T03:19:50.000Z
defmodule Tesla.Adapter.Httpc do @moduledoc """ Adapter for [httpc](http://erlang.org/doc/man/httpc.html) This is the default adapter. **NOTE** Tesla overrides default autoredirect value with false to ensure consistency between adapters """ @behaviour Tesla.Adapter import Tesla.Adapter.Shared, only: ...
32.778846
101
0.669111
08401be8d23ad444ae8b79e26803b8655687bf04
238
ex
Elixir
test/fixtures/elixir/get_basic_auth.ex
csperando/curlconverter
733f110e5621375701f4424299ccd72e669876f6
[ "MIT" ]
536
2021-10-06T17:21:25.000Z
2022-03-31T13:05:48.000Z
test/fixtures/elixir/get_basic_auth.ex
csperando/curlconverter
733f110e5621375701f4424299ccd72e669876f6
[ "MIT" ]
74
2021-10-08T13:57:14.000Z
2022-03-31T06:55:39.000Z
test/fixtures/elixir/get_basic_auth.ex
csperando/curlconverter
733f110e5621375701f4424299ccd72e669876f6
[ "MIT" ]
104
2021-10-06T19:36:15.000Z
2022-03-31T07:34:04.000Z
request = %HTTPoison.Request{ method: :get, url: "https://localhost:28139/", options: [hackney: [basic_auth: {~s|some_username|, ~s|some_password|}]], headers: [], params: [], body: "" } response = HTTPoison.request(request)
21.636364
75
0.647059
08403c175270e36be30d5dd4edf4c99563171f35
1,794
exs
Elixir
test/ex_oauth2_provider/applications/application_test.exs
robotarmy/ex_oauth2_provider
b2cf7a80f8b545c12012d1195b1f7616b8f02f63
[ "MIT" ]
null
null
null
test/ex_oauth2_provider/applications/application_test.exs
robotarmy/ex_oauth2_provider
b2cf7a80f8b545c12012d1195b1f7616b8f02f63
[ "MIT" ]
null
null
null
test/ex_oauth2_provider/applications/application_test.exs
robotarmy/ex_oauth2_provider
b2cf7a80f8b545c12012d1195b1f7616b8f02f63
[ "MIT" ]
null
null
null
defmodule ExOauth2Provider.Applications.ApplicationTest do use ExOauth2Provider.TestCase alias ExOauth2Provider.Applications.Application alias Dummy.OauthApplications.OauthApplication describe "changeset/2 with existing application" do setup do application = Ecto.put_meta(%OauthApplication{}, state:...
33.222222
85
0.685061
08405bc38723e68926cfe6ab9086fe3697a0000f
1,086
exs
Elixir
apps/publishing/test/publishing/manage/platform_test.exs
pinpox/branchpage
e478ed9085c06cc3c5680b0ca4dc20eff2e74653
[ "MIT" ]
49
2021-06-06T05:40:30.000Z
2021-08-23T04:50:46.000Z
apps/publishing/test/publishing/manage/platform_test.exs
felipelincoln/mvp
6f3ca7dfafe884af40883f84f3eb825bb061c974
[ "MIT" ]
40
2021-01-09T16:50:50.000Z
2021-10-01T16:27:35.000Z
apps/publishing/test/publishing/manage/platform_test.exs
felipelincoln/mvp
6f3ca7dfafe884af40883f84f3eb825bb061c974
[ "MIT" ]
5
2021-02-20T12:58:39.000Z
2022-02-01T02:23:23.000Z
defmodule Publishing.Manage.PlatformTest do use Publishing.DataCase alias Publishing.Factory alias Publishing.Manage.Platform alias Publishing.Repo import Publishing.ChangesetHelpers @valid_empty_attrs %{} @valid_attrs %{name: "test-name"} @invalid_cast_attrs %{name: 0} test "changeset/2 with vali...
25.857143
70
0.705341
08409df23343df476c71ff2b148f2df9d590de6b
726
exs
Elixir
elixir/udemy/cards/mix.exs
normancapule/lab
2011896287df31926a8d09732c432b9de92bfcd9
[ "MIT" ]
null
null
null
elixir/udemy/cards/mix.exs
normancapule/lab
2011896287df31926a8d09732c432b9de92bfcd9
[ "MIT" ]
5
2020-10-22T08:14:20.000Z
2020-10-22T08:19:09.000Z
elixir/udemy/cards/mix.exs
normancapule/lab
2011896287df31926a8d09732c432b9de92bfcd9
[ "MIT" ]
null
null
null
defmodule Cards.Mixfile do use Mix.Project def project do [app: :cards, version: "0.1.0", elixir: "~> 1.9", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compile.app" for more i...
20.742857
77
0.592287
0840c13f6ad8b1d10b7c3b65b4fe98da43804301
944
ex
Elixir
src/mbs/lib/workflow/job/run_build/context/files.ex
visciang/mbs
3f218b82f3097c03149b6a4a440804056d94c387
[ "MIT" ]
null
null
null
src/mbs/lib/workflow/job/run_build/context/files.ex
visciang/mbs
3f218b82f3097c03149b6a4a440804056d94c387
[ "MIT" ]
1
2021-12-15T07:22:59.000Z
2021-12-15T07:47:56.000Z
src/mbs/lib/workflow/job/run_build/context/files.ex
visciang/mbs
3f218b82f3097c03149b6a4a440804056d94c387
[ "MIT" ]
null
null
null
defmodule MBS.Workflow.Job.RunBuild.Context.Files do @moduledoc false alias MBS.Docker alias MBS.Manifest.BuildDeploy alias MBS.Utils @spec put(BuildDeploy.Component.t(), boolean()) :: :ok | {:error, term()} def put(_component, false = _sandboxed), do: :ok def put(%BuildDeploy.Component{id: id, depende...
29.5
112
0.667373
08410791adbb7096ee36e1894a615e6c0d48008f
4,789
exs
Elixir
lib/logger/test/logger/backends/console_test.exs
alexcastano/elixir
0221ce1f79d1cfd0955a9fa46a6d84d0193ad838
[ "Apache-2.0" ]
null
null
null
lib/logger/test/logger/backends/console_test.exs
alexcastano/elixir
0221ce1f79d1cfd0955a9fa46a6d84d0193ad838
[ "Apache-2.0" ]
null
null
null
lib/logger/test/logger/backends/console_test.exs
alexcastano/elixir
0221ce1f79d1cfd0955a9fa46a6d84d0193ad838
[ "Apache-2.0" ]
1
2021-09-30T01:21:02.000Z
2021-09-30T01:21:02.000Z
defmodule Logger.Backends.ConsoleTest do use Logger.Case require Logger import ExUnit.CaptureIO setup do on_exit(fn -> :ok = Logger.configure_backend( :console, format: nil, device: :user, level: nil, metadata: [], colors: [enabled:...
27.682081
93
0.587388
08410bddaf64b6562bdd2c9eb4d7873962cc86fc
350
ex
Elixir
lib/slow_worker.ex
willferguson/waterpark_test
0eec8a785b2c01d1708603bb6965ceea58e77d3b
[ "Apache-2.0" ]
null
null
null
lib/slow_worker.ex
willferguson/waterpark_test
0eec8a785b2c01d1708603bb6965ceea58e77d3b
[ "Apache-2.0" ]
null
null
null
lib/slow_worker.ex
willferguson/waterpark_test
0eec8a785b2c01d1708603bb6965ceea58e77d3b
[ "Apache-2.0" ]
null
null
null
defmodule SlowWorker do use GenServer def start_link(args) do GenServer.start_link(__MODULE__, args) end def init(args) do send(self(), {:work, args}) {:ok, args} end def handle_info({:work, args}, state) do :timer.sleep(5000) {pid, arg} = args send(pid, {:result, arg}) {:stop...
15.909091
42
0.617143
08411a8a0ff415c2551ad5e178c10621124f20d1
227
exs
Elixir
apps/elixir_phoenix_chatroom_web/test/elixir_phoenix_chatroom_web/controllers/page_controller_test.exs
unip62/elixir-phoenix-chatroom
4c6af20d0461a572bcf3a70fb80cfe088e12ebbe
[ "MIT" ]
1
2018-02-19T09:02:14.000Z
2018-02-19T09:02:14.000Z
apps/elixir_phoenix_chatroom_web/test/elixir_phoenix_chatroom_web/controllers/page_controller_test.exs
unip62/elixir-phoenix-chatroom
4c6af20d0461a572bcf3a70fb80cfe088e12ebbe
[ "MIT" ]
null
null
null
apps/elixir_phoenix_chatroom_web/test/elixir_phoenix_chatroom_web/controllers/page_controller_test.exs
unip62/elixir-phoenix-chatroom
4c6af20d0461a572bcf3a70fb80cfe088e12ebbe
[ "MIT" ]
null
null
null
defmodule ElixirPhoenixChatroomWeb.PageControllerTest do use ElixirPhoenixChatroomWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
25.222222
60
0.722467
084144cfd488476b81ed55b3b2aff5ffb7f092be
2,346
exs
Elixir
test/credo/check/warning/map_get_unsafe_pass_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
test/credo/check/warning/map_get_unsafe_pass_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
test/credo/check/warning/map_get_unsafe_pass_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
defmodule Credo.Check.Warning.MapGetUnsafePassTest do use Credo.Test.Case @described_check Credo.Check.Warning.MapGetUnsafePass # # cases NOT raising issues # test "it should NOT report expected code" do """ defmodule CredoSampleModule do def some_function(parameter1, parameter2) do ...
19.55
55
0.558397
08417642c10e66b210992dc56e7775e2fa3c0296
11,300
exs
Elixir
lib/elixir/test/elixir/kernel/docs_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
2
2020-06-02T18:00:28.000Z
2021-12-10T03:21:42.000Z
lib/elixir/test/elixir/kernel/docs_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
1
2020-09-14T16:23:33.000Z
2021-03-25T17:38:59.000Z
lib/elixir/test/elixir/kernel/docs_test.exs
britto/elixir
1f6e7093cff4b68dada60b924399bc8404d39a7e
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.DocsTest do use ExUnit.Case import PathHelpers defmacro wrong_doc_baz do quote do @doc "Wrong doc" @doc since: "1.2" def baz(_arg) def baz(arg), do: arg + 1 end end test "attributes format" do defmodule D...
29.973475
100
0.558673
08417ac8e067ed11fbd9109f1a6aa50beb0c1848
558
ex
Elixir
lib/console_web/views/changeset_view.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
83
2018-05-31T14:49:10.000Z
2022-03-27T16:49:49.000Z
lib/console_web/views/changeset_view.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
267
2018-05-22T23:19:02.000Z
2022-03-31T04:31:06.000Z
lib/console_web/views/changeset_view.ex
maco2035/console
2a9a65678b8c671c7d92cdb62dfcfc71b84957c5
[ "Apache-2.0" ]
18
2018-11-20T05:15:54.000Z
2022-03-28T08:20:13.000Z
defmodule ConsoleWeb.ChangesetView do use ConsoleWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `ConsoleWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(changeset, &t...
27.9
65
0.738351
084181ba673f87c47e64f81d801218d0ab617bf7
2,024
exs
Elixir
config/prod.exs
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "MIT" ]
null
null
null
config/prod.exs
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "MIT" ]
null
null
null
config/prod.exs
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "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.645161
67
0.718379
0841910668f660c1b6204635a0a36b8b711bd78a
882
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1/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/sql_admin/lib/google_api/sql_admin/v1/metadata.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sql_admin/lib/google_api/sql_admin/v1/metadata.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.666667
74
0.758503
08419fe2a52a4d5d25ac984dc1a33485fee3a832
2,175
ex
Elixir
lib/vintage_net_wifi/access_point.ex
axelson/vintage_net_wifi
b989ec5a8122fca212cf62e7e6b489af4314cb5e
[ "Apache-2.0" ]
20
2019-12-03T18:26:25.000Z
2022-02-08T09:27:23.000Z
lib/vintage_net_wifi/access_point.ex
axelson/vintage_net_wifi
b989ec5a8122fca212cf62e7e6b489af4314cb5e
[ "Apache-2.0" ]
29
2020-01-21T02:21:47.000Z
2022-02-16T13:02:24.000Z
lib/vintage_net_wifi/access_point.ex
axelson/vintage_net_wifi
b989ec5a8122fca212cf62e7e6b489af4314cb5e
[ "Apache-2.0" ]
12
2020-02-16T16:48:03.000Z
2022-03-24T12:10:52.000Z
defmodule VintageNetWiFi.AccessPoint do alias VintageNetWiFi.Utils @moduledoc """ Information about a WiFi access point * `:bssid` - a unique address for the access point * `:flags` - a list of flags describing properties on the access point * `:frequency` - the access point's frequency in MHz * `:signa...
25.290698
94
0.573333
0841a1bbc1b94e2b2fbfdfc1f519eab5846b4ff1
3,019
ex
Elixir
lib/checker_mal_web/controllers/unapproved_controller.ex
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
null
null
null
lib/checker_mal_web/controllers/unapproved_controller.ex
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
null
null
null
lib/checker_mal_web/controllers/unapproved_controller.ex
Hiyori-API/checker-mal
c52f6e8a248ba160ffebc2c9369a933fc8fc4499
[ "MIT" ]
null
null
null
defmodule CheckerMalWeb.UnapprovedController do use CheckerMalWeb, :controller require Logger @html_basepath Application.get_env(:checker_mal, :unapproved_html_basepath, "/mal_unapproved") @error_msg "Page is currently being updated, this page will automatically refresh when its done..." def get_data(type)...
21.260563
101
0.555813
0841b38466d0f4367cab9e587953a66d7a358d9c
10,761
ex
Elixir
lib/elixir/lib/inspect.ex
stevedomin/elixir
df1a7d36472a92aedc97c0afe9f782678b7aa7e5
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
stevedomin/elixir
df1a7d36472a92aedc97c0afe9f782678b7aa7e5
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/inspect.ex
stevedomin/elixir
df1a7d36472a92aedc97c0afe9f782678b7aa7e5
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
import Kernel, except: [inspect: 1] import Inspect.Algebra alias Code.Identifier defprotocol Inspect do @moduledoc """ The `Inspect` protocol is responsible for converting any Elixir data structure into an algebra document. This document is then formatted, either in pretty printing format or a regular one. ...
27.521739
101
0.638695
0841be7902caa4ab2fd9f79696f7e97bcbf2c831
11,681
ex
Elixir
lib/radixir/bech32.ex
radixir/radixir
703034330e857bc084b78dd927ec611c3ea54349
[ "Apache-2.0" ]
16
2022-01-05T20:41:55.000Z
2022-03-25T09:06:43.000Z
lib/radixir/bech32.ex
radixir/radixir
703034330e857bc084b78dd927ec611c3ea54349
[ "Apache-2.0" ]
null
null
null
lib/radixir/bech32.ex
radixir/radixir
703034330e857bc084b78dd927ec611c3ea54349
[ "Apache-2.0" ]
1
2022-02-10T21:55:26.000Z
2022-02-10T21:55:26.000Z
defmodule Radixir.Bech32 do @moduledoc false # @moduledoc """ # This is an implementation of BIP-0173 # Bech32 address format for native v0-16 witness outputs. # See https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki for details # """ @gen {0x3B6A57B2, 0x26508E6D, 0x1EA119FA, 0x3D4233DD, 0x2...
32.628492
164
0.565448
08420cafe7cee7f1935d0eae8aec21f56a2ae3a6
1,504
ex
Elixir
apps/metrics_reporter/lib/metrics_reporter/packages.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
12
2020-01-27T19:43:02.000Z
2021-07-28T19:46:29.000Z
apps/metrics_reporter/lib/metrics_reporter/packages.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
81
2020-01-28T18:07:23.000Z
2021-11-22T02:12:13.000Z
apps/metrics_reporter/lib/metrics_reporter/packages.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
10
2020-02-13T21:24:09.000Z
2020-05-21T18:39:35.000Z
defmodule MetricsReporter.Packages do @moduledoc """ Pre-define commonly associated bundles of Telemetry Metrics definitions for easy inclusion in the MetricsReporter `metrics/0` function when configuring an instance of MetricsReporter. """ import Telemetry.Metrics def kafka_metrics() do [ coun...
28.923077
67
0.631649
08421e3717c7f021e023ba4df4735ccbb46c5888
1,235
ex
Elixir
web/uploaders/photo_file_definition.ex
mciastek/emotions-wheel-backend
072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf
[ "MIT" ]
null
null
null
web/uploaders/photo_file_definition.ex
mciastek/emotions-wheel-backend
072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf
[ "MIT" ]
null
null
null
web/uploaders/photo_file_definition.ex
mciastek/emotions-wheel-backend
072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf
[ "MIT" ]
null
null
null
defmodule EmotionsWheelBackend.PhotoFileDefinition do use Arc.Definition use Arc.Ecto.Definition @acl :public_read @versions [:original, :thumb] @extension_whitelist ~w(.jpg .jpeg .gif .png) def transform(:thumb, _) do {:convert, "-strip -thumbnail 200x200^ -gravity center -extent 200x200"} end #...
30.875
76
0.71417
084223544972af1b976485bef6c59435beff9dbb
872
exs
Elixir
config/config.exs
sevenc-nanashi/dqs
332eddc4e71e104c7a2d30f9049bf22f1743bd7c
[ "MIT" ]
null
null
null
config/config.exs
sevenc-nanashi/dqs
332eddc4e71e104c7a2d30f9049bf22f1743bd7c
[ "MIT" ]
null
null
null
config/config.exs
sevenc-nanashi/dqs
332eddc4e71e104c7a2d30f9049bf22f1743bd7c
[ "MIT" ]
1
2021-05-28T10:21:21.000Z
2021-05-28T10:21:21.000Z
import Config config :nostrum, token: System.get_env("BOT_TOKEN"), num_shards: :auto, gateway_intents: :all config :dqs, ecto_repos: [Dqs.Repo] config :dqs, Dqs.Repo, database: "dqs", username: System.get_env("POSTGRES_USER"), password: System.get_env("POSTGRES_PASSWORD"),...
31.142857
96
0.724771
084232376b5eb64d446ee3a7ba3ed8ea69ea0f06
1,809
exs
Elixir
mix.exs
dragonwasrobot/json-schema-to-elm
9200d1afde86b79bff37216395ae7dc2e7ff45be
[ "MIT" ]
74
2017-03-05T22:26:34.000Z
2022-03-14T13:22:47.000Z
mix.exs
dragonwasrobot/json-schema-to-elm
9200d1afde86b79bff37216395ae7dc2e7ff45be
[ "MIT" ]
43
2017-03-05T22:56:21.000Z
2022-03-26T19:19:26.000Z
mix.exs
dragonwasrobot/json-schema-to-elm
9200d1afde86b79bff37216395ae7dc2e7ff45be
[ "MIT" ]
6
2017-06-19T01:49:32.000Z
2018-06-22T02:04:24.000Z
defmodule JS2E.Mixfile do use Mix.Project @version "2.8.1" @elixir_version "~> 1.9" def project do [ app: :js2e, version: @version, elixir: @elixir_version, aliases: aliases(), deps: deps(), description: description(), dialyzer: dialyzer(), docs: docs(), ...
21.282353
78
0.578773
0842419bf7cf84aa52fbb303925644687e85d2e2
1,139
ex
Elixir
lib/qwirkl_ex_web/router.ex
ksherman/QwirkleEx
be4aa971767de916b9fc3a9a52124f17ce58b196
[ "MIT" ]
1
2021-02-01T12:09:47.000Z
2021-02-01T12:09:47.000Z
lib/qwirkl_ex_web/router.ex
ksherman/QwirkleEx
be4aa971767de916b9fc3a9a52124f17ce58b196
[ "MIT" ]
null
null
null
lib/qwirkl_ex_web/router.ex
ksherman/QwirkleEx
be4aa971767de916b9fc3a9a52124f17ce58b196
[ "MIT" ]
null
null
null
defmodule QwirklExWeb.Router do use QwirklExWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {QwirklExWeb.LayoutView, :root} plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do p...
25.886364
70
0.702371
0842a7578f49ef3499c2e19f61313d4a09e45bc3
643
exs
Elixir
test/action_for_children/web/controllers/page_controller_test.exs
cast-fuse/action-for-children
3cded6e04abdaf13d4d1033bf1daa783bc0e5ef2
[ "BSD-3-Clause" ]
null
null
null
test/action_for_children/web/controllers/page_controller_test.exs
cast-fuse/action-for-children
3cded6e04abdaf13d4d1033bf1daa783bc0e5ef2
[ "BSD-3-Clause" ]
57
2017-05-25T10:32:59.000Z
2021-05-06T21:03:39.000Z
test/action_for_children/web/controllers/page_controller_test.exs
cast-fuse/action-for-children
3cded6e04abdaf13d4d1033bf1daa783bc0e5ef2
[ "BSD-3-Clause" ]
null
null
null
defmodule ActionForChildrenWeb.PageControllerTest do use ActionForChildrenWeb.ConnCase test "non logged in user sees options to start conversation and enter code", %{conn: conn} do conn = get(conn, "/") contents = [ "Action for Children", "intercom", "form", "Continue a conversatio...
23.814815
95
0.645412
0842f46511b37097badec0658a9dc734e3aa8fe1
187
ex
Elixir
lib/mix/tasks/exq.run.ex
buob/exq
921fe26c7f3db7d77ff67e3a03ea9b83612f5598
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/exq.run.ex
buob/exq
921fe26c7f3db7d77ff67e3a03ea9b83612f5598
[ "Apache-2.0" ]
null
null
null
lib/mix/tasks/exq.run.ex
buob/exq
921fe26c7f3db7d77ff67e3a03ea9b83612f5598
[ "Apache-2.0" ]
3
2021-04-07T14:50:17.000Z
2021-04-07T14:50:30.000Z
defmodule Mix.Tasks.Exq.Run do use Mix.Task @shortdoc "Starts the Exq worker" def run(_args) do Exq.start_link IO.puts "Started Exq" :timer.sleep(:infinity) end end
15.583333
35
0.679144
0842fba2b398e0990fd3bd6d58f7261160b6fae5
1,693
exs
Elixir
apps/tai/test/tai/events_logger_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/test/tai/events_logger_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
null
null
null
apps/tai/test/tai/events_logger_test.exs
chrism2671/tai-1
847827bd23908adfad4a82c83d5295bdbc022796
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.EventsLoggerTest do use ExUnit.Case, async: false import ExUnit.CaptureLog @event %Support.CustomEvent{hello: "world"} setup do start_supervised!({Tai.Events, 1}) :ok end test "can start multiple loggers with different ids" do {:ok, a} = Tai.EventsLogger.start_link(id: :a) ...
30.232143
95
0.588895
08435625b6be1b2c80e9bc2f80e7a6e3889c700d
1,701
ex
Elixir
apps/enchat_web/lib/enchat_web/endpoint.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
apps/enchat_web/lib/enchat_web/endpoint.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
apps/enchat_web/lib/enchat_web/endpoint.ex
Allypost/enchat
f9cff2906116550099f4574bf44e8dc1fea6d476
[ "MIT" ]
null
null
null
defmodule EnchatWeb.Endpoint do use Phoenix.Endpoint, otp_app: :enchat_web socket("/socket", EnchatWeb.UserSocket) # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug(Plug.S...
27
95
0.696649
084360acf9d9fd670e1e22d32407512a0999ca6f
944
exs
Elixir
config/dev.exs
wkozyra95/phoenix-boilerplate
8fd4607639f327928b0f8319a697f8efa951556e
[ "MIT" ]
null
null
null
config/dev.exs
wkozyra95/phoenix-boilerplate
8fd4607639f327928b0f8319a697f8efa951556e
[ "MIT" ]
null
null
null
config/dev.exs
wkozyra95/phoenix-boilerplate
8fd4607639f327928b0f8319a697f8efa951556e
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :starter_project, StarterProject.Endpoint, htt...
29.5
68
0.760593
084369b9ed8fbbba884ef58f4de8fbac917bb8dd
8,207
ex
Elixir
lib/ex_doc/formatter/html/templates.ex
kianmeng/ex_doc
3c33f4c330bc3f002e0f2c9eca023b11c9837a3c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/formatter/html/templates.ex
kianmeng/ex_doc
3c33f4c330bc3f002e0f2c9eca023b11c9837a3c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
lib/ex_doc/formatter/html/templates.ex
kianmeng/ex_doc
3c33f4c330bc3f002e0f2c9eca023b11c9837a3c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
defmodule ExDoc.Formatter.HTML.Templates do @moduledoc false require EEx # TODO: It should not depend on the parent module # TODO: Add tests that assert on the returned structured, not on JSON alias ExDoc.Utils.SimpleJSON alias ExDoc.Formatter.HTML @doc """ Generate content from the module template fo...
28.496528
105
0.626051
08437bbf709fed584be03f38c4a9e0bb0283c87e
499
ex
Elixir
ros/ros_ui_station/lib/ros_ui_station_web/views/error_view.ex
kujua/elixir-handbook
4185ad8da7f652fdb59c799dc58bcb33fda10475
[ "Apache-2.0" ]
1
2019-07-01T18:47:28.000Z
2019-07-01T18:47:28.000Z
ros/ros_ui_station/lib/ros_ui_station_web/views/error_view.ex
kujua/elixir-handbook
4185ad8da7f652fdb59c799dc58bcb33fda10475
[ "Apache-2.0" ]
4
2020-07-17T16:57:18.000Z
2021-05-09T23:50:52.000Z
ros/ros_ui_station/lib/ros_ui_station_web/views/error_view.ex
kujua/elixir-handbook
4185ad8da7f652fdb59c799dc58bcb33fda10475
[ "Apache-2.0" ]
null
null
null
defmodule Ros.StationWeb.ErrorView do use Ros.StationWeb, :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 templ...
29.352941
61
0.735471
08438c15e6b3de62be99f59663ab6275bef6c33f
19,386
ex
Elixir
lib/aws/generated/network_firewall.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/network_firewall.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/network_firewall.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "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.NetworkFirewall do @moduledoc """ This is the API Reference for AWS Network Firewall. This guide is for developers who need detailed information about the Network Firewall API actions, da...
41.246809
199
0.743475
0843ac137a84039e514b69bd954855ba574c1ab4
30,924
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
elkinsd/elixir
810965e193cb57b82363e7c0c97b719743b7964f
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
elkinsd/elixir
810965e193cb57b82363e7c0c97b719743b7964f
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
elkinsd/elixir
810965e193cb57b82363e7c0c97b719743b7964f
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true import CompileAssertion defmacro hello do quote location: :keep do def hello, do: :world end end test "invalid token" do assert_compile_fail SyntaxError, "nofile:1: unexpected...
30.140351
128
0.640797
0843c65b373ef1ebc8efbca17bdae94a320ef83b
1,283
ex
Elixir
clients/site_verification/lib/google_api/site_verification/v1/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/site_verification/lib/google_api/site_verification/v1/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/site_verification/lib/google_api/site_verification/v1/connection.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.638889
77
0.744349
0843de5ce7fb42f326efb43c45ba1e1f4c0213c9
565
ex
Elixir
server_elixir/lib/server_elixir/application.ex
johnosullivan/MiHome
4e4062fd8801144a26bea8811e76688009913f94
[ "MIT" ]
7
2018-05-29T01:41:12.000Z
2021-12-26T04:27:21.000Z
server_elixir/lib/server_elixir/application.ex
johnosullivan/MiHome
4e4062fd8801144a26bea8811e76688009913f94
[ "MIT" ]
4
2017-12-06T14:48:59.000Z
2021-05-04T23:57:30.000Z
server_elixir/lib/server_elixir/application.ex
johnosullivan/MiHome
4e4062fd8801144a26bea8811e76688009913f94
[ "MIT" ]
5
2017-10-23T16:30:57.000Z
2019-07-27T19:40:11.000Z
defmodule ServerElixir.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application @impl true def start(_type, _args) do children = [ # Start Database ServerElixir.Repo, # Core Endpoints ServerElixi...
24.565217
66
0.709735
0843ee52b73829b5a6bf31e9cc8eb5483069f2e7
3,329
ex
Elixir
lib/livebook/application.ex
qhwa/livebook
26226a42e0544fe3870c29bc68d752e7d6d3e63c
[ "Apache-2.0" ]
null
null
null
lib/livebook/application.ex
qhwa/livebook
26226a42e0544fe3870c29bc68d752e7d6d3e63c
[ "Apache-2.0" ]
null
null
null
lib/livebook/application.ex
qhwa/livebook
26226a42e0544fe3870c29bc68d752e7d6d3e63c
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do ensure_distribution!() set_cookie() # We register our own :standard_error below Process.unregister(:stand...
28.698276
88
0.665065
084424b371815f0b82c4a6cd224ce12a7772221a
15,621
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/interconnects.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/interconnects.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/interconnects.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
54.618881
1,213
0.707317
0844264911d65e0f41421d5d89cd609127afea03
2,829
exs
Elixir
test/channels/lobby_channel_test.exs
Pianist038801/SprintPoker
ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c
[ "MIT" ]
null
null
null
test/channels/lobby_channel_test.exs
Pianist038801/SprintPoker
ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c
[ "MIT" ]
null
null
null
test/channels/lobby_channel_test.exs
Pianist038801/SprintPoker
ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c
[ "MIT" ]
null
null
null
defmodule SprintPoker.LobbyChannelTest do use SprintPoker.ChannelCase alias SprintPoker.LobbyChannel alias SprintPoker.User alias SprintPoker.Deck alias SprintPoker.Repo alias SprintPoker.Game alias SprintPoker.Deck alias SprintPoker.State test "joining lobby sends auth_token" do user = %User{} ...
37.72
120
0.644751
084458bdd825b74f4ebe5309dda15e9396fd51c5
347
ex
Elixir
apps/admin_api/lib/admin_api/v1/views/transaction_calculation_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/admin_api/lib/admin_api/v1/views/transaction_calculation_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/views/transaction_calculation_view.ex
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
null
null
null
defmodule AdminAPI.V1.TransactionCalculationView do use AdminAPI, :view alias EWallet.Web.V1.{ResponseSerializer, TransactionCalculationSerializer} def render("calculation.json", %{calculation: calculation}) do calculation |> TransactionCalculationSerializer.serialize() |> ResponseSerializer.serializ...
31.545455
77
0.786744
084478fbe968959b19ae3ea2aa83cd1d45b875eb
692
ex
Elixir
lib/nautilus/core/validators/client_validator/client_validator.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
lib/nautilus/core/validators/client_validator/client_validator.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
lib/nautilus/core/validators/client_validator/client_validator.ex
CarloHFR/NautilusGateway
26211948c5f9127e6662a90e41df5b43b2408372
[ "MIT" ]
null
null
null
defmodule Nautilus.Core.Validators.ClientValidator.ClientValidator do @moduledoc """ This module is responsible for validate client """ @key_value_adapter Application.get_env(:nautilus, :KeyValueBucketInterface) @doc """ This function receive a id and pid """ def validate...
27.68
106
0.59104
0844798c1400a6e8d17030e2deb50a7fe04eebd8
23,417
ex
Elixir
lib/ex_unit/lib/ex_unit/doc_test.ex
bmwiedemann/elixir
7a1ae92b42438dcd9115dca3e324980cdc0534ff
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/doc_test.ex
bmwiedemann/elixir
7a1ae92b42438dcd9115dca3e324980cdc0534ff
[ "Apache-2.0" ]
null
null
null
lib/ex_unit/lib/ex_unit/doc_test.ex
bmwiedemann/elixir
7a1ae92b42438dcd9115dca3e324980cdc0534ff
[ "Apache-2.0" ]
null
null
null
defmodule ExUnit.DocTest do @moduledoc """ ExUnit.DocTest implements functionality similar to [Python's doctest](https://docs.python.org/2/library/doctest.html). It allows us to generate tests from the code examples in a module/function/macro's documentation. To do this, invoke the `doctest/1` macro from w...
30.530639
102
0.627536
0844a1119ba72d40b45daa68ef649887458ffeb9
2,470
ex
Elixir
lib/enmity/user.ex
Cantido/enmity
385d6b54824e167a77b7eeab445a4e42ef19114e
[ "Unlicense", "MIT" ]
1
2019-11-25T11:09:04.000Z
2019-11-25T11:09:04.000Z
lib/enmity/user.ex
Cantido/enmity
385d6b54824e167a77b7eeab445a4e42ef19114e
[ "Unlicense", "MIT" ]
7
2020-10-14T18:28:36.000Z
2022-02-24T11:06:17.000Z
lib/enmity/user.ex
Cantido/enmity
385d6b54824e167a77b7eeab445a4e42ef19114e
[ "Unlicense", "MIT" ]
null
null
null
defmodule Enmity.User do alias Enmity.HTTP @moduledoc """ Operations on Users. """ @doc """ Gets a user. """ def get(user_id) do HTTP.get("/users/#{user_id}") end @doc """ Gets the current user. """ def get_me do get("@me") end @doc """ Modify the current user. ## Examples ...
23.52381
95
0.631579
0844fe79ce031396e3a58d312d25b3ed23894b14
370
ex
Elixir
lib/nookal/dispatcher.ex
theo-agilelab/nookal-elixir
09db7cc48c48ed1e714fb74c5c38c9a21e7e189a
[ "MIT" ]
1
2020-06-11T07:57:06.000Z
2020-06-11T07:57:06.000Z
lib/nookal/dispatcher.ex
theo-agilelab/nookal-elixir
09db7cc48c48ed1e714fb74c5c38c9a21e7e189a
[ "MIT" ]
null
null
null
lib/nookal/dispatcher.ex
theo-agilelab/nookal-elixir
09db7cc48c48ed1e714fb74c5c38c9a21e7e189a
[ "MIT" ]
1
2019-09-05T08:30:48.000Z
2019-09-05T08:30:48.000Z
defmodule Nookal.Dispatcher do @moduledoc false @callback dispatch(req_path :: String.t()) :: {:ok, term()} | {:error, term()} @callback dispatch(req_path :: String.t(), req_params :: map()) :: {:ok, term()} | {:error, term()} @callback upload(file_content :: String.t(), req_params :: map()) :: ...
37
80
0.567568
08452f6318e55f530d072d7dcfd2d7a3ee5eed4c
195
exs
Elixir
priv/repo/migrations/20190308170458_add_roles_to_users.exs
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
5
2019-08-29T20:22:25.000Z
2020-04-01T17:40:48.000Z
priv/repo/migrations/20190308170458_add_roles_to_users.exs
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
34
2019-03-06T17:53:29.000Z
2021-09-01T01:25:23.000Z
priv/repo/migrations/20190308170458_add_roles_to_users.exs
BaltimoreCity/IdeaPortal
dc1c775dfaec2aac974b821cd3700d76770c1e76
[ "MIT" ]
2
2020-01-10T22:12:36.000Z
2021-01-22T04:37:45.000Z
defmodule IdeaPortal.Repo.Migrations.AddRolesToUsers do use Ecto.Migration def change do alter table(:users) do add(:role, :string, default: "user", null: false) end end end
19.5
55
0.697436
08455c97d5b17394c1ef6ed366ac34325d8f1f94
23,419
ex
Elixir
apps/core/lib/core/services/repositories.ex
michaeljguarino/chartmart
a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc
[ "Apache-2.0" ]
null
null
null
apps/core/lib/core/services/repositories.ex
michaeljguarino/chartmart
a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc
[ "Apache-2.0" ]
2
2019-12-13T23:55:50.000Z
2019-12-17T05:49:58.000Z
apps/core/lib/core/services/repositories.ex
michaeljguarino/chartmart
a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc
[ "Apache-2.0" ]
null
null
null
defmodule Core.Services.Repositories do use Core.Services.Base import Core.Policies.Repository alias Core.PubSub alias Core.Services.Users alias Core.Auth.Jwt alias Core.Clients.Hydra alias Core.Schema.{ Repository, Installation, User, DockerRepository, DockerImage, LicenseToken, ...
34.439706
113
0.662795
08455d99da80cfd98338ec27abbce72b2e44d090
8,356
ex
Elixir
lib/amqp/connection.ex
ayanda-d/amqp
09bba8f72cda24f7b02b2a25d6e4d9c97a1af661
[ "MIT" ]
1
2021-07-07T10:04:38.000Z
2021-07-07T10:04:38.000Z
lib/amqp/connection.ex
ayanda-d/amqp
09bba8f72cda24f7b02b2a25d6e4d9c97a1af661
[ "MIT" ]
null
null
null
lib/amqp/connection.ex
ayanda-d/amqp
09bba8f72cda24f7b02b2a25d6e4d9c97a1af661
[ "MIT" ]
null
null
null
defmodule AMQP.Connection do @moduledoc """ Functions to operate on Connections. """ import AMQP.Core alias AMQP.Connection defstruct [:pid] @type t :: %Connection{pid: pid} @doc """ Opens an new Connection to an AMQP broker. The connections created by this module are supervised under amqp_cli...
41.98995
157
0.629607