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
2d448725b46e9fda7950ca6bcb574300aeba3c35
806
ex
Elixir
lib/chat_api_web/views/user_settings_view.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api_web/views/user_settings_view.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api_web/views/user_settings_view.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApiWeb.UserSettingsView do use ChatApiWeb, :view alias ChatApiWeb.UserSettingsView def render("index.json", %{user_settings: user_settings}) do %{data: render_many(user_settings, UserSettingsView, "user_settings.json")} end def render("show.json", %{user_settings: user_settings}) do %{...
33.583333
85
0.755583
2d448fea19fdcdfba28e060a9f92b304e99e64e2
3,169
exs
Elixir
priv/repo/seeds.exs
lee-dohm/ship-designer
641b6f44aa5efc676ee3f9251618eeafb2b89bad
[ "MIT" ]
1
2020-01-26T18:06:25.000Z
2020-01-26T18:06:25.000Z
priv/repo/seeds.exs
lee-dohm/ship-designer
641b6f44aa5efc676ee3f9251618eeafb2b89bad
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
lee-dohm/ship-designer
641b6f44aa5efc676ee3f9251618eeafb2b89bad
[ "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: # # ShipDesigner.Repo.insert!(%ShipDesigner.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as ...
26.855932
92
0.656674
2d44996035365a73f60538781aa40ce8eeebd9e8
1,779
ex
Elixir
lib/api/ai_competition/bots.ex
nunopolonia/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
1
2017-09-10T23:51:40.000Z
2017-09-10T23:51:40.000Z
lib/api/ai_competition/bots.ex
nunopolonia/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
24
2018-03-14T18:17:00.000Z
2021-03-01T07:47:53.000Z
lib/api/ai_competition/bots.ex
portosummerofcode/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
null
null
null
defmodule Api.AICompetition.Bots do import Ecto.Query, warn: false alias Api.Repo alias Api.AICompetition.Bot def get_bot(id) do Repo.get!(Bot, id) end def user_bot(id, user) do from(b in Bot, where: b.id == ^id and b.user_id == ^user.id ) |> Repo.one end def create_bot(current...
22.2375
80
0.581788
2d44a7232e7a620440888d15cd32ef1ddae0cf1b
1,892
ex
Elixir
lib/litelist_web/views/emergency_information_view.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
1
2021-01-13T15:46:49.000Z
2021-01-13T15:46:49.000Z
lib/litelist_web/views/emergency_information_view.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
1
2021-01-13T16:42:24.000Z
2021-01-13T16:42:24.000Z
lib/litelist_web/views/emergency_information_view.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
null
null
null
defmodule LitelistWeb.EmergencyInformationView do use LitelistWeb, :view # import LitelistWeb.FormHelpers # import LitelistWeb.UtilsView @doc """ This will return a struct with a route for where a form should submit to, the fields necessary for a form, and what the pop-over text should be for each field. ...
38.612245
207
0.687104
2d44cc02d9b3ee6559c6b3eef4e9e2bee0258bf9
9,383
exs
Elixir
test/cadet/updater/xml_parser_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
null
null
null
test/cadet/updater/xml_parser_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
test/cadet/updater/xml_parser_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule Cadet.Updater.XMLParserTest do alias Cadet.Assessments.{Assessment, Question} alias Cadet.Test.XMLGenerator alias Cadet.Updater.XMLParser use Cadet.DataCase import Cadet.Factory import ExUnit.CaptureLog setup do assessments = Enum.map( Assessment.assessment_types(), ...
30.966997
101
0.587232
2d44d608164315150f0f6bfb063f36012e8bb9c2
3,902
exs
Elixir
test/endpoint_test.exs
SparkPost/elixir-sparkpost
cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5
[ "Apache-2.0" ]
47
2016-01-30T07:24:10.000Z
2021-05-29T13:47:49.000Z
test/endpoint_test.exs
SparkPost/elixir-sparkpost
cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5
[ "Apache-2.0" ]
48
2016-01-21T22:11:14.000Z
2020-10-12T06:13:50.000Z
test/endpoint_test.exs
SparkPost/elixir-sparkpost
cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5
[ "Apache-2.0" ]
12
2016-02-27T23:04:13.000Z
2018-05-03T15:34:04.000Z
defmodule SparkPost.EndpointTest do use ExUnit.Case, async: false alias SparkPost.Endpoint alias SparkPost.MockServer import Mock defmodule Headers do def for_method(method) do cond do method in [:post, :put] -> Map.merge(for_body_requests(), core()) true -> core() end e...
33.637931
137
0.634546
2d44e422955635123fd4592bcd9c719ac0dd96eb
564
ex
Elixir
lib/radiator/email/email_console_adapter.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
lib/radiator/email/email_console_adapter.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
lib/radiator/email/email_console_adapter.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule Radiator.Email.Console do @moduledoc """ Bamboo Adapter that logs emails to console. """ require Logger @behaviour Bamboo.Adapter def deliver(email, _config) do {from_name, from_email} = email.from {to_name, to_email} = hd(email.to) Logger.info(~s(Mail To: "#{to_name} <#{to_email}>...
23.5
62
0.673759
2d44f62b88bb84fa8225dac5a940f2557cf6f867
491
ex
Elixir
web/policies/task_policy.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
web/policies/task_policy.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
web/policies/task_policy.ex
superdev999/Phoenix-project
ab13ac9366cdd0aa9581da7faf993b11aaa5344c
[ "MIT" ]
null
null
null
defmodule CodeCorps.TaskPolicy do import CodeCorps.Helpers.Policy, only: [get_project: 1, administered_by?: 2, task_authored_by?: 2] alias CodeCorps.{Task, User} alias Ecto.Changeset def create?(%User{} = user, %Changeset{changes: %{user_id: author_id}}), do: user.id == author_id def update?(%User{...
27.277778
74
0.663951
2d45022c66d7a36ec938f02e4aa9a4f018976979
2,418
ex
Elixir
lib/pharams/utils.ex
OctopusRage/pharams
ae7b114e41fca82ba9412bf51a91997619a223fe
[ "MIT" ]
37
2018-09-20T03:05:26.000Z
2022-03-11T07:24:54.000Z
lib/pharams/utils.ex
OctopusRage/pharams
ae7b114e41fca82ba9412bf51a91997619a223fe
[ "MIT" ]
6
2018-10-17T15:35:11.000Z
2018-11-01T21:34:43.000Z
lib/pharams/utils.ex
OctopusRage/pharams
ae7b114e41fca82ba9412bf51a91997619a223fe
[ "MIT" ]
4
2019-12-15T20:39:58.000Z
2021-08-16T04:08:49.000Z
defmodule Pharams.Utils do @moduledoc false alias Pharams.{SchemaUtils, ValidationUtils} def split_basic_and_group_fields(ast) do Enum.split_with(ast, fn {_req, _line, [_field, _type, opts]} when is_list(opts) -> not Keyword.has_key?(opts, :do) {_req, _line, [_field, _type, opts]} when ...
24.18
90
0.66005
2d450339bf08c45686965b111cc48f45354652c2
9,817
ex
Elixir
lib/freddy/connection.ex
ajkeys/ex_freddy
c59d0bcfad4b89de8a9b09c7124d0499824a0710
[ "MIT" ]
10
2017-06-28T11:39:39.000Z
2021-11-19T23:23:16.000Z
lib/freddy/connection.ex
ajkeys/ex_freddy
c59d0bcfad4b89de8a9b09c7124d0499824a0710
[ "MIT" ]
16
2017-01-07T15:34:36.000Z
2021-05-05T11:07:31.000Z
lib/freddy/connection.ex
ajkeys/ex_freddy
c59d0bcfad4b89de8a9b09c7124d0499824a0710
[ "MIT" ]
4
2018-10-08T19:54:46.000Z
2021-05-05T10:49:10.000Z
defmodule Freddy.Connection do @moduledoc """ Stable AMQP connection. """ alias Freddy.Utils.Backoff alias Freddy.Utils.MultikeyMap alias Freddy.Adapter alias Freddy.Core.Channel @params_docs [ adapter: """ Freddy adapter. Can be any module, but also can be passed as an alias `:amqp` or `:sand...
29.929878
103
0.643679
2d4525206a65c0115aa628c8080881692e5ba2b6
76
exs
Elixir
test/acme_ex_test.exs
aforward/acme_ex
f199943be6a75e0e4672a64dc4820dfc15abf330
[ "MIT" ]
1
2020-02-01T19:30:44.000Z
2020-02-01T19:30:44.000Z
test/acme_ex_test.exs
aforward/acme_ex
f199943be6a75e0e4672a64dc4820dfc15abf330
[ "MIT" ]
null
null
null
test/acme_ex_test.exs
aforward/acme_ex
f199943be6a75e0e4672a64dc4820dfc15abf330
[ "MIT" ]
null
null
null
defmodule AcmeExTest do use ExUnit.Case, async: true doctest AcmeEx end
15.2
30
0.776316
2d457001bcea399c250f225b68402f92e9c9155a
176
ex
Elixir
examples/ecto_assoc/lib/ecto_assoc/avatar.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
examples/ecto_assoc/lib/ecto_assoc/avatar.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
examples/ecto_assoc/lib/ecto_assoc/avatar.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
1
2018-09-21T16:05:29.000Z
2018-09-21T16:05:29.000Z
defmodule EctoAssoc.Avatar do use Ecto.Schema schema "avatars" do field :nick_name, :string field :pic_url, :string belongs_to :user, EctoAssoc.User end end
17.6
36
0.710227
2d45702a927bd24d10eb497e10bbf2ac339f5b58
6,110
ex
Elixir
lib/pow/store/backend/mnesia_cache.ex
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
lib/pow/store/backend/mnesia_cache.ex
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
lib/pow/store/backend/mnesia_cache.ex
abartier/pow
58a3d082da093e2dc7f07825a950ee133204813f
[ "Unlicense", "MIT" ]
null
null
null
defmodule Pow.Store.Backend.MnesiaCache do @moduledoc """ GenServer based key value Mnesia cache store with auto expiration. When the MnesiaCache starts, it'll initialize invalidators for all stored keys using the `expire` value. If the `expire` datetime is past, it'll send call the invalidator immediately. ...
27.899543
89
0.6491
2d458434708fa001f43438b43796a71edcb333b5
905
exs
Elixir
apps/streamer/mix.exs
drobban/bottle
57a502e765a65d635f48ec6d6cbfae1e87dfea75
[ "Unlicense" ]
null
null
null
apps/streamer/mix.exs
drobban/bottle
57a502e765a65d635f48ec6d6cbfae1e87dfea75
[ "Unlicense" ]
null
null
null
apps/streamer/mix.exs
drobban/bottle
57a502e765a65d635f48ec6d6cbfae1e87dfea75
[ "Unlicense" ]
null
null
null
defmodule Streamer.MixProject do use Mix.Project def project do [ app: :streamer, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.11", start_permanent: Mix.en...
23.815789
88
0.549171
2d4594ce994500f81f2b253b0f47f3c81752ac05
1,341
ex
Elixir
elixir_phoenix/lib/elixir_phoenix_web/endpoint.ex
kaibyao/rust-postgres-rest-benchmarks
0a32719c37de3cb783b5e597bef7381ccb4e20f1
[ "MIT" ]
null
null
null
elixir_phoenix/lib/elixir_phoenix_web/endpoint.ex
kaibyao/rust-postgres-rest-benchmarks
0a32719c37de3cb783b5e597bef7381ccb4e20f1
[ "MIT" ]
null
null
null
elixir_phoenix/lib/elixir_phoenix_web/endpoint.ex
kaibyao/rust-postgres-rest-benchmarks
0a32719c37de3cb783b5e597bef7381ccb4e20f1
[ "MIT" ]
null
null
null
defmodule ElixirPhoenixWeb.Endpoint do use Phoenix.Endpoint, otp_app: :elixir_phoenix socket "/socket", ElixirPhoenixWeb.UserSocket, websocket: true, longpoll: false # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phx.digest # when d...
28.531915
69
0.718867
2d45ba5f53935783aa897ca82cd66d22eb97cab4
266
exs
Elixir
phoenix/budgets/config/test.exs
stevenjackson/jacksonbudget
b1c0189684829f5be13155726ce156f1fccbc8fe
[ "MIT" ]
null
null
null
phoenix/budgets/config/test.exs
stevenjackson/jacksonbudget
b1c0189684829f5be13155726ce156f1fccbc8fe
[ "MIT" ]
null
null
null
phoenix/budgets/config/test.exs
stevenjackson/jacksonbudget
b1c0189684829f5be13155726ce156f1fccbc8fe
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :budgets, BudgetsWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
24.181818
56
0.736842
2d45cfb8ab83aa378bf8a4713c24224508cf8925
1,109
ex
Elixir
lib/logjam_agent/metadata.ex
xing/exbeetle
6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c
[ "MIT" ]
3
2018-02-02T14:38:21.000Z
2018-02-05T17:33:35.000Z
lib/logjam_agent/metadata.ex
xing/elixir_logjam_agent
6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c
[ "MIT" ]
null
null
null
lib/logjam_agent/metadata.ex
xing/elixir_logjam_agent
6c64ddd7568ef9f79bbabdb4b481ae64b5f2398c
[ "MIT" ]
null
null
null
defmodule LogjamAgent.Metadata do alias LogjamAgent.{Config, Buffer} def new_request_id! do rid = UUID.uuid4(:hex) current_request_id(rid) Buffer.create(rid) rid end def current_request_id, do: Logger.metadata[:logjam_request_id] def current_request_id(id), do: Logger.metadata(logjam_request...
28.435897
93
0.701533
2d45f2e2c00ec7f7147d632ef24ae083ffe2adb2
327
ex
Elixir
lib/petfinder/organizations.ex
petfinder-com/petfinder_ex
33d116ade25cf66cab8071e4e6569dec93a7f6e9
[ "BSD-3-Clause" ]
null
null
null
lib/petfinder/organizations.ex
petfinder-com/petfinder_ex
33d116ade25cf66cab8071e4e6569dec93a7f6e9
[ "BSD-3-Clause" ]
null
null
null
lib/petfinder/organizations.ex
petfinder-com/petfinder_ex
33d116ade25cf66cab8071e4e6569dec93a7f6e9
[ "BSD-3-Clause" ]
1
2021-01-11T18:28:38.000Z
2021-01-11T18:28:38.000Z
defmodule Petfinder.Organizations do alias Petfinder.Helpers def get_organizations(params \\ %{}) do "#{Helpers.base_url()}/v2/organizations" |> Helpers.process_get(params) end def get_organization_by_id(org_id) do "#{Helpers.base_url()}/v2/organizations/#{org_id}" |> Helpers.process_get() e...
23.357143
54
0.70948
2d45fcab05bcc1dc63c8c8c641d7a2ba73a81564
78
exs
Elixir
src/myapp/apps/services/test/views/layout_view_test.exs
ecamacho/elixir_at_work
c8e4c604c925455b4794931c2b9c15ef3774005f
[ "MIT" ]
null
null
null
src/myapp/apps/services/test/views/layout_view_test.exs
ecamacho/elixir_at_work
c8e4c604c925455b4794931c2b9c15ef3774005f
[ "MIT" ]
null
null
null
src/myapp/apps/services/test/views/layout_view_test.exs
ecamacho/elixir_at_work
c8e4c604c925455b4794931c2b9c15ef3774005f
[ "MIT" ]
null
null
null
defmodule Services.LayoutViewTest do use Services.ConnCase, async: true end
19.5
36
0.820513
2d4607c4b33b2a824348bf9f9217eee60d7c3abb
729
ex
Elixir
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/public_ip_address.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/public_ip_address.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/public_ip_address.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Network.Model.PublicIpAddress do @moduledoc """ Public IP address resource. """ @derive [Poison.Encoder] def...
21.441176
88
0.646091
2d460daa3bab43729595d237d847aa87894f48bb
612
ex
Elixir
lib/nebulex_redis_adapter/pool.ex
bjyoungblood/nebulex_redis_adapter
8ecf19f91d1d332c39e3507831fbfabc800fcf2b
[ "MIT" ]
20
2018-09-02T15:14:44.000Z
2021-12-10T16:40:56.000Z
lib/nebulex_redis_adapter/pool.ex
bjyoungblood/nebulex_redis_adapter
8ecf19f91d1d332c39e3507831fbfabc800fcf2b
[ "MIT" ]
23
2018-10-26T19:49:11.000Z
2022-03-23T22:37:25.000Z
lib/nebulex_redis_adapter/pool.ex
bjyoungblood/nebulex_redis_adapter
8ecf19f91d1d332c39e3507831fbfabc800fcf2b
[ "MIT" ]
17
2018-11-06T00:19:03.000Z
2021-11-19T09:46:06.000Z
defmodule NebulexRedisAdapter.Pool do @moduledoc false ## API @spec children(module, Keyword.t()) :: [Supervisor.child_spec()] def children(module, opts) do name = Keyword.fetch!(opts, :name) pool_size = opts[:pool_size] || System.schedulers_online() for index <- 0..(pool_size - 1) do opts ...
26.608696
66
0.651961
2d464728d6baa3e8e8062cd2f2023a8eaa0338f5
5,582
exs
Elixir
test/absinthe/phase/execution/non_null_test.exs
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
null
null
null
test/absinthe/phase/execution/non_null_test.exs
maartenvanvliet/absinthe
ebe820717200f53756e225b3dffbfefe924a94d3
[ "MIT" ]
2
2018-08-02T13:35:38.000Z
2018-08-02T13:36:42.000Z
test/absinthe/phase/execution/non_null_test.exs
jlgeering/absinthe
a3dbc29640d613928398626ad75a8f03203a1720
[ "MIT" ]
null
null
null
defmodule Absinthe.Phase.Document.Execution.NonNullTest do use ExUnit.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(_, _, _) d...
24.919643
102
0.551236
2d464e25f9b7cd406759001ce47d1f72d9dfc2e1
2,846
ex
Elixir
clients/testing/lib/google_api/testing/v1/model/ios_test_setup.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/testing/lib/google_api/testing/v1/model/ios_test_setup.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/testing/lib/google_api/testing/v1/model/ios_test_setup.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...
50.821429
382
0.741391
2d468948093a29a1adf6b73a576108e061b4b792
417
ex
Elixir
lib/order_api/order_items.ex
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
null
null
null
lib/order_api/order_items.ex
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
6
2021-01-22T15:23:04.000Z
2021-01-28T07:56:01.000Z
lib/order_api/order_items.ex
gissandrogama/delivery_order
8642453b03f590fe828225fc13aa58a5f79b2117
[ "MIT" ]
null
null
null
defmodule OrderApi.OrderItems do @moduledoc """ module has functions that retrieve a orders, insert in the bank """ import Ecto.Query, warn: false alias OrderApi.{OrderItem, Repo} @doc """ function returns `order items` with preload of `items` ## Example iex> list_items() [%OrderItem{...
18.130435
65
0.640288
2d469293c62257ff119375edb540b9190a96a233
1,250
exs
Elixir
mix.exs
idlehands/geo
c386540a951a291ecd6b3c89b95c9afd84e0e86b
[ "MIT" ]
1
2021-08-23T13:14:22.000Z
2021-08-23T13:14:22.000Z
mix.exs
idlehands/geo
c386540a951a291ecd6b3c89b95c9afd84e0e86b
[ "MIT" ]
null
null
null
mix.exs
idlehands/geo
c386540a951a291ecd6b3c89b95c9afd84e0e86b
[ "MIT" ]
null
null
null
defmodule Geo.Mixfile do use Mix.Project def project do [ app: :geo, version: "3.3.3", elixir: "~> 1.6", deps: deps(), description: description(), package: package(), name: "Geo", source_url: "https://github.com/bryanjos/geo", test_coverage: [tool: ExCovera...
21.929825
61
0.5408
2d472167d14267e0e2c71c5f48debe6ab598b755
268
ex
Elixir
lib/empex_cookbook_web/controllers/tag_controller.ex
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
4
2019-02-11T12:15:36.000Z
2021-03-22T16:23:47.000Z
lib/empex_cookbook_web/controllers/tag_controller.ex
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
null
null
null
lib/empex_cookbook_web/controllers/tag_controller.ex
ludwikbukowski/recipes
cac5711d32874c3011da8da3329b70d0e28e725e
[ "MIT" ]
null
null
null
defmodule EmpexCookbookWeb.TagController do use EmpexCookbookWeb, :controller alias EmpexCookbook.Cookbook action_fallback(EmpexCookbookWeb.FallbackController) def index(conn, _params) do render(conn, "index.json", tags: Cookbook.list_tags()) end end
22.333333
58
0.787313
2d47ad4457f48e2f160ecb2c160224711b8063d0
3,566
ex
Elixir
lib/ex_rets/search_response.ex
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
1
2019-12-20T14:23:19.000Z
2019-12-20T14:23:19.000Z
lib/ex_rets/search_response.ex
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
null
null
null
lib/ex_rets/search_response.ex
jdav-dev/ex_rets
16eb6a1adc5d1d1eb259f86d6b09080c3c1068bf
[ "Apache-2.0" ]
null
null
null
defmodule ExRets.SearchResponse do @moduledoc """ Records matching a search query. """ @moduledoc since: "0.1.0" alias ExRets.BaseXmlParser alias ExRets.CompactDelimiter alias ExRets.CompactRecord alias ExRets.HttpClient alias ExRets.RetsResponse @typedoc "Records matching a search query." @type...
29.471074
96
0.646943
2d47d2162af52fb934076d8aa18f7f824539fb05
1,074
exs
Elixir
test/doumi/repo_helper_test.exs
nallwhy/doumi
6324c340e0ad1974000f7ce2903fc0cccfae12f4
[ "MIT" ]
1
2020-08-25T23:43:51.000Z
2020-08-25T23:43:51.000Z
test/doumi/repo_helper_test.exs
nallwhy/doumi
6324c340e0ad1974000f7ce2903fc0cccfae12f4
[ "MIT" ]
null
null
null
test/doumi/repo_helper_test.exs
nallwhy/doumi
6324c340e0ad1974000f7ce2903fc0cccfae12f4
[ "MIT" ]
null
null
null
defmodule Doumi.RepoHelperTest do use Doumi.EctoCase, async: true import Ecto.Query alias Doumi.RepoHelper alias Doumi.TestRepo describe "wrap_transcation" do test "returns {:ok, result} with ok" do assert {:ok, 1} = RepoHelper.wrap_transaction( fn -> ...
30.685714
95
0.528864
2d47f5a0f8d42f9671bea3fa58baeb9349a3a9a0
491
ex
Elixir
lib/hangman_web/views/error_view.ex
empex2019liveview/hangman
3f3f4a0c65542a6441e2aa313b1ec5e5dbe35503
[ "MIT" ]
1
2020-01-30T18:24:20.000Z
2020-01-30T18:24:20.000Z
lib/hangman_web/views/error_view.ex
empex2019liveview/hangman
3f3f4a0c65542a6441e2aa313b1ec5e5dbe35503
[ "MIT" ]
null
null
null
lib/hangman_web/views/error_view.ex
empex2019liveview/hangman
3f3f4a0c65542a6441e2aa313b1ec5e5dbe35503
[ "MIT" ]
null
null
null
defmodule HangmanWeb.ErrorView do use HangmanWeb, :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 name...
28.882353
61
0.735234
2d48191b8a9d9268fcd1d9d94b06e63c13a0c078
160
ex
Elixir
lib/stripe/connect/recipient.ex
NarrativeApp/stripe-elixir
873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004
[ "MIT" ]
null
null
null
lib/stripe/connect/recipient.ex
NarrativeApp/stripe-elixir
873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004
[ "MIT" ]
24
2020-09-08T20:24:59.000Z
2021-09-22T04:04:17.000Z
lib/stripe/connect/recipient.ex
NarrativeApp/stripe-elixir
873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004
[ "MIT" ]
null
null
null
defmodule Stripe.Recipient do use Stripe.API, [:create, :retrieve, :update, :delete, :list] @moduledoc false def endpoint do "recipients" end end
16
63
0.69375
2d482342356a190669af0d2ca7b516e604d0175f
2,968
ex
Elixir
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
50.305085
320
0.724057
2d484ef284533ea099e16701d01faaeca4804767
1,719
exs
Elixir
12/part2.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
3
2016-01-18T01:14:45.000Z
2017-05-11T09:14:49.000Z
12/part2.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
null
null
null
12/part2.exs
seantanly/elixir-advent_of_code
1e39ac46bc01f5c8cffd2d2f79f9af0b71767291
[ "MIT" ]
null
null
null
# Solution without parsing JSON. defmodule Abacus do def clean_input(str) do str |> String.split("") |> clean_input([{[], :base}]) |> Enum.join end def clean_input([], [{buff, :base}]), do: buff |> Enum.reverse def clean_input([char | chars], [{buff, op} | parent_stack]=stack) do case char...
25.279412
93
0.54683
2d486f1fcca88cd69e2a3c69c1461e39efcb8726
1,125
exs
Elixir
config/config.exs
alvesdan/fuzzy_match
757122189379a8deed908b2013281b2debce052a
[ "MIT" ]
null
null
null
config/config.exs
alvesdan/fuzzy_match
757122189379a8deed908b2013281b2debce052a
[ "MIT" ]
null
null
null
config/config.exs
alvesdan/fuzzy_match
757122189379a8deed908b2013281b2debce052a
[ "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.290323
73
0.752889
2d488dd07f700877cea436e84d9f1bcffa9071bf
534
ex
Elixir
wadm/lib/wadm/application.ex
janitha09/wadm
b5c9a0f5290bfcdd0eefe0f0bf22583b61c66c0f
[ "Apache-2.0" ]
null
null
null
wadm/lib/wadm/application.ex
janitha09/wadm
b5c9a0f5290bfcdd0eefe0f0bf22583b61c66c0f
[ "Apache-2.0" ]
null
null
null
wadm/lib/wadm/application.ex
janitha09/wadm
b5c9a0f5290bfcdd0eefe0f0bf22583b61c66c0f
[ "Apache-2.0" ]
null
null
null
defmodule Wadm.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 = [ # Starts a worker by calling: Wadm.Worker.start_link(arg) # {Wadm.Worker, arg} ]...
25.428571
63
0.700375
2d4893281998dd79602da2959fa74d94149f00f2
574
ex
Elixir
Chapter08/apps/elixir_drip_web/lib/elixir_drip_web/api/views/file_view.ex
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
28
2018-08-09T05:05:29.000Z
2022-03-14T06:59:07.000Z
Chapter08/apps/elixir_drip_web/lib/elixir_drip_web/api/views/file_view.ex
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
1
2019-02-11T09:11:33.000Z
2019-05-06T06:40:19.000Z
Chapter08/apps/elixir_drip_web/lib/elixir_drip_web/api/views/file_view.ex
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
8
2018-08-09T14:53:02.000Z
2020-12-14T19:31:21.000Z
defmodule ElixirDripWeb.Api.FileView do use ElixirDripWeb, :view def render("index.json", %{files: files, folders: folders}) do %{ response: %{ files: render_many(files, __MODULE__, "file.json"), folders: render_many(folders, __MODULE__, "folder.json", as: :folder) } } end ...
27.333333
79
0.642857
2d4897592b274e3b5ded4c99ab30ca0260989f97
2,843
ex
Elixir
lib/nimble_template/addons/variants/phoenix/web/wallaby.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
34
2020-10-04T17:44:27.000Z
2022-03-21T07:13:02.000Z
lib/nimble_template/addons/variants/phoenix/web/wallaby.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
101
2020-06-10T03:35:10.000Z
2022-03-31T03:44:13.000Z
lib/nimble_template/addons/variants/phoenix/web/wallaby.ex
nimblehq/elixir-templates
1425c32084b3814d630d2db28a28e39ec8cce59e
[ "MIT" ]
2
2021-03-29T14:35:22.000Z
2021-11-25T21:39:30.000Z
defmodule NimbleTemplate.Addons.Phoenix.Web.Wallaby do @moduledoc false use NimbleTemplate.Addon @impl true def do_apply(%Project{} = project, _opts) do project |> copy_files() |> edit_files() end defp copy_files( %Project{web_module: web_module, base_module: base_module, web_test_pa...
22.03876
99
0.608512
2d48ef10af9ab7d5b888ba238c3ca7de49b2d4ab
2,136
exs
Elixir
test/acceptance/html1/fenced_code_blocks_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/acceptance/html1/fenced_code_blocks_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/acceptance/html1/fenced_code_blocks_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
defmodule Acceptance.Html1.FencedCodeBlocksTest do use ExUnit.Case, async: true import Support.Html1Helpers @moduletag :html1 describe "Fenced code blocks" do test "no lang" do markdown = "```\n<\n >\n```\n" html = fcode("&lt;\n &gt;", "") messages = [] assert to_html1(mar...
27.384615
84
0.560393
2d490578adad8f11e08cc0fed6940db4177a0a09
527
ex
Elixir
lib/poc_web/views/error_view.ex
joaopealves/elixir-graphql-poc
1d162ef7461d54bff779c6406f39ff7db6d574f7
[ "MIT" ]
1
2021-12-06T01:31:28.000Z
2021-12-06T01:31:28.000Z
lib/poc_web/views/error_view.ex
joaopealves/elixir-graphql-poc
1d162ef7461d54bff779c6406f39ff7db6d574f7
[ "MIT" ]
null
null
null
lib/poc_web/views/error_view.ex
joaopealves/elixir-graphql-poc
1d162ef7461d54bff779c6406f39ff7db6d574f7
[ "MIT" ]
null
null
null
defmodule PocWeb.ErrorView do use PocWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.json", _assigns) do # %{errors: %{detail: "Internal Server Error"}} # end # By default, Phoenix returns the status message from # the...
31
83
0.71537
2d4918e0273a979a9530b0a8855eac0bc70cd377
1,867
ex
Elixir
test/support/web/controllers/live_controller.ex
bdfinlayson/drab
ce11a643ec8fe7e7f622489af5792ef12e69a8c7
[ "MIT" ]
null
null
null
test/support/web/controllers/live_controller.ex
bdfinlayson/drab
ce11a643ec8fe7e7f622489af5792ef12e69a8c7
[ "MIT" ]
null
null
null
test/support/web/controllers/live_controller.ex
bdfinlayson/drab
ce11a643ec8fe7e7f622489af5792ef12e69a8c7
[ "MIT" ]
null
null
null
defmodule DrabTestApp.LiveController do @moduledoc false use DrabTestApp.Web, :controller use Drab.Controller require Logger @users ~w(Zdzisław Zofia Hendryk Stefan) def index(conn, _params) do render( conn, "index.html", users: @users, count: length(@users), color: "#f...
20.744444
56
0.552758
2d4930c40bee0baafaf2692dea025e37d4ff7bc7
372
ex
Elixir
lib/magpie_web/views/error_view.ex
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2018-05-19T12:08:10.000Z
2018-05-19T12:08:10.000Z
lib/magpie_web/views/error_view.ex
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
64
2019-07-29T22:06:16.000Z
2022-03-28T23:46:58.000Z
lib/magpie_web/views/error_view.ex
babe-project/BABE
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2021-02-06T10:23:25.000Z
2021-02-06T10:23:25.000Z
defmodule Magpie.ErrorView do use MagpieWeb, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_template, as...
20.666667
47
0.696237
2d493a6bfb5ea6625d8f7296dd76bca7edd8f971
7,233
ex
Elixir
tools/astarte_export/lib/astarte/fetchdata/queries/queries.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
tools/astarte_export/lib/astarte/fetchdata/queries/queries.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
tools/astarte_export/lib/astarte/fetchdata/queries/queries.ex
Annopaolo/astarte
f8190e8bf044759a9b84bdeb5786a55b6f793a4f
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
defmodule Astarte.Export.FetchData.Queries do alias Astarte.Core.InterfaceDescriptor alias Astarte.Core.Mapping require Logger def get_connection() do host = System.get_env("CASSANDRA_DB_HOST") port = System.get_env("CASSANDRA_DB_PORT") Logger.info("Connecting to #{inspect(host)}:#{inspect(port)} c...
31.311688
104
0.629476
2d493ddca34fd6cdba1c22144b0d872cbaca8464
6,288
exs
Elixir
test/models/book_test.exs
beccanelson/8th-light-library
d0aa70371ca7645abf8609b53202ebb1808ca633
[ "MIT" ]
null
null
null
test/models/book_test.exs
beccanelson/8th-light-library
d0aa70371ca7645abf8609b53202ebb1808ca633
[ "MIT" ]
9
2016-09-22T20:30:22.000Z
2016-09-22T21:00:53.000Z
test/models/book_test.exs
beccanelson/library
d0aa70371ca7645abf8609b53202ebb1808ca633
[ "MIT" ]
null
null
null
defmodule Bookish.BookTest do use Bookish.ModelCase alias Bookish.Book alias Bookish.Location alias Bookish.BookMetadata import Bookish.TestHelpers @valid_attrs %{author_firstname: "first name", author_lastname: "last name", current_location: "current location", title: "title", year: 2016, location_id: 1}...
32.246154
160
0.68257
2d4945c09e77dbbcdf494dc7e0ea6dcce52645c8
2,290
ex
Elixir
lib/chronik/aggregate/multi.ex
parody/chronik
ec2dbc5b415433d8732575db6ce24b02ebaf5da3
[ "MIT" ]
28
2017-09-12T13:54:17.000Z
2021-07-20T22:04:28.000Z
lib/chronik/aggregate/multi.ex
parody/chronik
ec2dbc5b415433d8732575db6ce24b02ebaf5da3
[ "MIT" ]
18
2017-09-22T14:06:00.000Z
2018-06-09T14:18:35.000Z
lib/chronik/aggregate/multi.ex
parody/chronik
ec2dbc5b415433d8732575db6ce24b02ebaf5da3
[ "MIT" ]
2
2018-05-11T09:36:50.000Z
2019-09-23T18:29:58.000Z
defmodule Chronik.Aggregate.Multi do @moduledoc """ `Chronik.Aggregate.Multi` can be used to generate a single commmand that affects multiple entities. As can be seen on the test a multiple-entity command can be defined as: ## Example ``` alias Chronik.Aggregate.Multi def handle_command({:update_n...
28.987342
93
0.666812
2d494dfb4dc41066eb22e85c02c3338e85901ae9
1,223
ex
Elixir
test/support/channel_case.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
test/support/channel_case.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
25
2021-05-21T02:23:37.000Z
2021-07-09T09:22:32.000Z
test/support/channel_case.ex
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
defmodule ElixirGoogleScraperWeb.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 data structures and query the data layer. Finally, if the test case...
27.795455
76
0.743254
2d495bf2114f3e392386c1406d1fc06fbb357a5a
1,097
exs
Elixir
apps/ex_wire/config/config.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/ex_wire/config/config.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/ex_wire/config/config.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config defer = fn fun -> apply(fun, []) end app_root = fn -> if String.contains?(File.cwd!(), "apps") do Path.join([File.cwd!(), "/../../"]) else File.cwd!() end end db_ro...
22.854167
61
0.657247
2d49608cf21d4f84f90dc703dc0bd3c5bb177ee4
6,241
exs
Elixir
test/phoenix_channel_client_test.exs
xaptum-eng/phoenix-channel-client
6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495
[ "MIT" ]
2
2020-10-22T14:54:39.000Z
2020-11-04T21:52:06.000Z
test/phoenix_channel_client_test.exs
xaptum-eng/phoenix-channel-client
6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495
[ "MIT" ]
null
null
null
test/phoenix_channel_client_test.exs
xaptum-eng/phoenix-channel-client
6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495
[ "MIT" ]
null
null
null
defmodule PhoenixChannelClientTest do use ExUnit.Case doctest PhoenixChannelClient @name :test @host "localhost" @path "/socket/websocket" @params %{authenticated: "true"} @port 4000 @opts [ host: @host, port: @port, path: @path, params: @params, heartbeat_interval: 500] setup_al...
34.865922
105
0.670405
2d4962066df0833f9e90f35ad48bc28a8dfd4edc
3,171
ex
Elixir
lib/leeloo/api.ex
azohra/leeloo
d5b26dda0e54c4cdc2f47208be433e6b79223284
[ "MIT" ]
null
null
null
lib/leeloo/api.ex
azohra/leeloo
d5b26dda0e54c4cdc2f47208be433e6b79223284
[ "MIT" ]
null
null
null
lib/leeloo/api.ex
azohra/leeloo
d5b26dda0e54c4cdc2f47208be433e6b79223284
[ "MIT" ]
null
null
null
defmodule Leeloo.Api do @moduledoc """ Documentation for Leeloo.Api. """ use Maru.Router use Maru.Type require IEx require Logger alias Leeloo.ImageDiff @token Application.get_env(:maru, Leeloo.Api, "")[:token] @max_length 52_428_800 # 50MB before do plug Plug.Logger plug Leeloo.Metric...
27.102564
135
0.615894
2d499f46703093a6e232d223bddd45c9b079ccf7
1,885
exs
Elixir
ui/config/prod.exs
Jwsonic/cliff_swallow
6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8
[ "MIT" ]
null
null
null
ui/config/prod.exs
Jwsonic/cliff_swallow
6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8
[ "MIT" ]
null
null
null
ui/config/prod.exs
Jwsonic/cliff_swallow
6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8
[ "MIT" ]
null
null
null
import 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, # w...
35.566038
85
0.706101
2d49a9a2386391a76af1d89127f632ffd7aa0ce9
1,080
exs
Elixir
test/serum/markdown_test.exs
afontaine/Serum
f2c410d086c235332e047afdc6a3c6e6c6f6fca8
[ "MIT" ]
1
2021-08-03T11:16:36.000Z
2021-08-03T11:16:36.000Z
test/serum/markdown_test.exs
afontaine/Serum
f2c410d086c235332e047afdc6a3c6e6c6f6fca8
[ "MIT" ]
null
null
null
test/serum/markdown_test.exs
afontaine/Serum
f2c410d086c235332e047afdc6a3c6e6c6f6fca8
[ "MIT" ]
null
null
null
defmodule Serum.MarkdownTest do use ExUnit.Case, async: true alias Serum.Markdown @markdown """ # Hello, world! The quick brown fox jumps over the lazy dog. ## Special Syntax Test - [Documentation](%page:docs/index) - [My Post](%post:2019-01-01-test-post) ![Sample picture](%media:images/sample.pn...
21.6
70
0.608333
2d49b4d8d83ba20986ed6ea76e05f35c069e44cd
649
exs
Elixir
test/web/views/error_view_test.exs
mbuhot/irateburgers
3ea07805501c10ef9b04cee04c22c36582f26e1e
[ "MIT" ]
1
2020-01-13T09:27:21.000Z
2020-01-13T09:27:21.000Z
test/web/views/error_view_test.exs
mbuhot/irateburgers
3ea07805501c10ef9b04cee04c22c36582f26e1e
[ "MIT" ]
null
null
null
test/web/views/error_view_test.exs
mbuhot/irateburgers
3ea07805501c10ef9b04cee04c22c36582f26e1e
[ "MIT" ]
null
null
null
defmodule Irateburgers.Web.ErrorViewTest do use Irateburgers.Web.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(Irateburgers.Web.ErrorView, "404.json", []) == %{errors: %{detail: "Page not found...
29.5
66
0.662558
2d49d34ab6cb5a6b4f9e3769f643e929de21607b
2,789
ex
Elixir
lib/ecto/log_entry.ex
CrowdHailer/ecto
8bc72417e9e5d3e0139040cee80a3bebe62ea70f
[ "Apache-2.0" ]
null
null
null
lib/ecto/log_entry.ex
CrowdHailer/ecto
8bc72417e9e5d3e0139040cee80a3bebe62ea70f
[ "Apache-2.0" ]
null
null
null
lib/ecto/log_entry.ex
CrowdHailer/ecto
8bc72417e9e5d3e0139040cee80a3bebe62ea70f
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.LogEntry do @moduledoc """ Struct used for logging entries. It is composed of the following fields: * query - the query as string; * source - the query data source; * params - the query parameters; * result - the query result as an `:ok` or `:error` tuple; * query_time - the t...
25.587156
94
0.595554
2d49db53bb1bec06692a1b40a7345529e2dcf93b
2,226
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/api_config_handler.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/api_config_handler.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/api_config_handler.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.052632
143
0.751572
2d49f78b9ebfd2f3a150c7859d1eb7da22eea7f5
317
ex
Elixir
lib/copadelrey_api_web/model/game_player.ex
trestini/copadelrey-api
d042ae5535c2a8860cb34e59078b2af15aec4c09
[ "Apache-2.0" ]
null
null
null
lib/copadelrey_api_web/model/game_player.ex
trestini/copadelrey-api
d042ae5535c2a8860cb34e59078b2af15aec4c09
[ "Apache-2.0" ]
2
2021-03-09T18:24:01.000Z
2021-05-10T15:20:30.000Z
lib/copadelrey_api_web/model/game_player.ex
trestini/copadelrey-api
d042ae5535c2a8860cb34e59078b2af15aec4c09
[ "Apache-2.0" ]
null
null
null
defmodule CupWeb.GamePlayer do @derive Jason.Encoder defstruct [:id, :team, :player] @spec from_schema(Cup.GamePlayer.t) :: CupWeb.GamePlayer.t def from_schema(game_player) do %CupWeb.GamePlayer{ id: game_player.id, team: game_player.team, player: game_player.player_id } end end
22.642857
60
0.697161
2d4a1b123592068e31136e1501bb0f1b49d00c8a
1,381
ex
Elixir
test/support/data_case.ex
awochna/quick_polls
b599918b795728feda338e6a00f295a97faba08a
[ "MIT" ]
null
null
null
test/support/data_case.ex
awochna/quick_polls
b599918b795728feda338e6a00f295a97faba08a
[ "MIT" ]
6
2017-04-10T05:01:04.000Z
2017-04-21T06:02:03.000Z
test/support/data_case.ex
awochna/quick_polls
b599918b795728feda338e6a00f295a97faba08a
[ "MIT" ]
null
null
null
defmodule QuickPolls.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every t...
25.574074
74
0.683563
2d4a2e86fed0f8abb7dbc04f9061de527dde736c
25,104
ex
Elixir
lib/postgrex.ex
bryanhuntesl/postgrex
d1074cfe8b72e6d8ed69075246c7adbedea23105
[ "Apache-2.0" ]
null
null
null
lib/postgrex.ex
bryanhuntesl/postgrex
d1074cfe8b72e6d8ed69075246c7adbedea23105
[ "Apache-2.0" ]
null
null
null
lib/postgrex.ex
bryanhuntesl/postgrex
d1074cfe8b72e6d8ed69075246c7adbedea23105
[ "Apache-2.0" ]
null
null
null
defmodule Postgrex do @moduledoc """ PostgreSQL driver for Elixir. Postgrex is a partial implementation of the Postgres [frontend/backend message protocol](https://www.postgresql.org/docs/current/protocol.html). It performs wire messaging in Elixir, as opposed to binding to a library such as `libpq` in C. ...
40.687196
138
0.673319
2d4abeb7784888616bc33aa0065fa58c40649f28
251
exs
Elixir
priv/repo/migrations/20200812072427_add_verifications_target_user_language_code_column.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
487
2020-06-08T03:04:21.000Z
2022-03-31T14:51:36.000Z
priv/repo/migrations/20200812072427_add_verifications_target_user_language_code_column.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
141
2020-06-11T01:03:29.000Z
2022-03-30T20:23:32.000Z
priv/repo/migrations/20200812072427_add_verifications_target_user_language_code_column.exs
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
61
2020-06-10T05:25:03.000Z
2022-03-23T15:54:26.000Z
defmodule PolicrMini.Repo.Migrations.AddVerificationsTargetUserLanguageCodeColumn do use PolicrMini.Migration def change do alter table("verifications") do add :target_user_language_code, :string, comment: "目标用户的语言代码" end end end
25.1
84
0.780876
2d4ac9c7b4683b33412cdec3c00ede13b292b1f6
2,444
ex
Elixir
lib/codes/codes_p71.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_p71.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_p71.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_P71 do alias IcdCode.ICDCode def _P710 do %ICDCode{full_code: "P710", category_code: "P71", short_code: "0", full_name: "Cow's milk hypocalcemia in newborn", short_name: "Cow's milk hypocalcemia in newborn", category_name: "Cow's m...
34.914286
104
0.644845
2d4ad136f7fe9cbcdabb3849f8c07f628deb0190
589
ex
Elixir
lib/application.ex
cassiofariasmachado/elixir-chat
fc607115a1badadd4aeb377953a819ff9d5d4a10
[ "MIT" ]
null
null
null
lib/application.ex
cassiofariasmachado/elixir-chat
fc607115a1badadd4aeb377953a819ff9d5d4a10
[ "MIT" ]
null
null
null
lib/application.ex
cassiofariasmachado/elixir-chat
fc607115a1badadd4aeb377953a819ff9d5d4a10
[ "MIT" ]
null
null
null
defmodule Chat.Application do use Application require Logger def start(type, _args) do children = [ {Chat.Registry, []} ] opts = [strategy: :one_for_one, name: {:global, __MODULE__}] case type do :normal -> Logger.info("Application is started on #{node()}") {:takeove...
21.814815
79
0.614601
2d4af2ecff6d1c1a10f5474f43d09da84f44e3a9
271
ex
Elixir
fixtures/elixir_output/post_form.ex
martinsirbe/curlconverter
c5324e85d2ca24ef4743fb2bb36139d23367e293
[ "MIT" ]
4,955
2015-01-02T09:04:20.000Z
2021-10-06T03:54:43.000Z
fixtures/elixir_output/post_form.ex
martinsirbe/curlconverter
c5324e85d2ca24ef4743fb2bb36139d23367e293
[ "MIT" ]
242
2015-03-27T05:59:11.000Z
2021-10-03T08:36:05.000Z
fixtures/elixir_output/post_form.ex
martinsirbe/curlconverter
c5324e85d2ca24ef4743fb2bb36139d23367e293
[ "MIT" ]
504
2015-01-02T16:04:36.000Z
2021-10-01T03:43:55.000Z
request = %HTTPoison.Request{ method: :post, url: "http://domain.tld/post-to-me.php", options: [], headers: [], params: [], body: {:multipart, [ {~s|username|, ~s|davidwalsh|}, {~s|password|, ~s|something|} ]} } response = HTTPoison.request(request)
19.357143
42
0.601476
2d4b01c3d67e4caacef151ae3290907715b0114f
3,203
exs
Elixir
mix.exs
groupcollect/wallaby
9a38f3291b91dfe3290a2d4569bfe38d7b340bd0
[ "MIT" ]
null
null
null
mix.exs
groupcollect/wallaby
9a38f3291b91dfe3290a2d4569bfe38d7b340bd0
[ "MIT" ]
null
null
null
mix.exs
groupcollect/wallaby
9a38f3291b91dfe3290a2d4569bfe38d7b340bd0
[ "MIT" ]
1
2021-05-12T11:02:20.000Z
2021-05-12T11:02:20.000Z
defmodule Wallaby.Mixfile do use Mix.Project @source_url "https://github.com/elixir-wallaby/wallaby" @version "0.28.0" @drivers ~w(selenium chrome) @selected_driver System.get_env("WALLABY_DRIVER") @maintainers [ "Aaron Renner", "Mitchell Hanberg" ] def project do [ app: :wallaby, ...
27.144068
87
0.573525
2d4b2b4bf00095df86621d9791891d1cd4a1d7a4
553
exs
Elixir
test/views/error_view_test.exs
ShaneKilkelly/marc
8ee86ad1517667a34e706597abaf9ed346971d31
[ "MIT" ]
11
2016-12-05T17:44:46.000Z
2018-09-15T15:54:41.000Z
test/views/error_view_test.exs
ShaneKilkelly/marc
8ee86ad1517667a34e706597abaf9ed346971d31
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
ShaneKilkelly/marc
8ee86ad1517667a34e706597abaf9ed346971d31
[ "MIT" ]
null
null
null
defmodule Marc.ErrorViewTest do use Marc.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(Marc.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do asser...
25.136364
66
0.667269
2d4b9aa7d1e11b2177be368ff6bdf4ab78e00543
299
exs
Elixir
test/slp_server_test.exs
stuart/elixir_slp
71691c298f1a5ceb4ddbd695b1bd34db211bcea5
[ "MIT" ]
2
2015-11-18T12:06:23.000Z
2017-08-18T22:22:09.000Z
test/slp_server_test.exs
stuart/elixir_slp
71691c298f1a5ceb4ddbd695b1bd34db211bcea5
[ "MIT" ]
null
null
null
test/slp_server_test.exs
stuart/elixir_slp
71691c298f1a5ceb4ddbd695b1bd34db211bcea5
[ "MIT" ]
null
null
null
defmodule SLPServerTest do use ExUnit.Case test "init starts the slp_port program" do {:ok, port} = SLP.Server.init(:ok) info = Port.info(port) assert Keyword.get(info, :connected) == self assert String.ends_with?(List.to_string(Keyword.get(info, :name)), "slp_port") end end
27.181818
82
0.692308
2d4bab267378e74ac08dd0869edf85bba6a1e32a
21,090
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.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...
43.57438
196
0.605642
2d4bcbc35481f5888e3f337bdab2d8ee69b5425d
286
ex
Elixir
lib/history/tokens/queries/search.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
20
2021-08-06T01:09:48.000Z
2022-03-28T18:44:56.000Z
lib/history/tokens/queries/search.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
13
2021-08-21T21:17:02.000Z
2022-03-27T06:33:51.000Z
lib/history/tokens/queries/search.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
2
2021-09-23T11:31:59.000Z
2022-01-09T16:19:35.000Z
defmodule History.Tokens.Queries.Search do require Ecto.Query import Ecto.Query alias History.Tokens def call(query) do from( t in Tokens.Token, order_by: [asc: :name], where: ilike(t.name, ^"%#{query}%") or ilike(t.symbol, ^"%#{query}%") ) end end
20.428571
75
0.622378
2d4bcc7b0ac0e6ce14137fbd936beb2ed0b5423e
6,204
exs
Elixir
server/bitcoinex/test/segwit_test.exs
runcitadel/bitfeed
2169704007610b02ab9a94b03bfd1c2fa797d80f
[ "MIT" ]
27
2022-01-01T14:58:22.000Z
2022-03-22T06:11:18.000Z
server/bitcoinex/test/segwit_test.exs
runcitadel/bitfeed
2169704007610b02ab9a94b03bfd1c2fa797d80f
[ "MIT" ]
22
2022-01-01T04:26:10.000Z
2022-03-22T00:02:31.000Z
server/bitcoinex/test/segwit_test.exs
runcitadel/bitfeed
2169704007610b02ab9a94b03bfd1c2fa797d80f
[ "MIT" ]
9
2022-01-03T07:34:36.000Z
2022-03-14T23:19:56.000Z
defmodule Bitcoinex.SegwitTest do use ExUnit.Case doctest Bitcoinex.Segwit alias Bitcoinex.Segwit import Bitcoinex.Utils, only: [replicate: 2] @valid_segwit_address_hexscript_pairs_mainnet [ {"BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4", "0014751e76e8199196d454941c45d1b3a323f1433bd6"}, {"bc1pw5...
44.314286
93
0.778208
2d4c0e161b9add5f7355f7254af13e6de0be364d
131
ex
Elixir
examples/functions.ex
archan937/besh
215260593a2d4557e0c1df49b5f4ee35d4489698
[ "MIT", "Unlicense" ]
null
null
null
examples/functions.ex
archan937/besh
215260593a2d4557e0c1df49b5f4ee35d4489698
[ "MIT", "Unlicense" ]
null
null
null
examples/functions.ex
archan937/besh
215260593a2d4557e0c1df49b5f4ee35d4489698
[ "MIT", "Unlicense" ]
null
null
null
def say_hello(name) do greet = "Hello, #{name}!" return "#{greet}!" end hello = say_hello("Paul") IO.puts "Output: #{hello}!"
16.375
27
0.618321
2d4c12e50cd9d3336de72ba5cbbe884bf3d91d90
46,832
ex
Elixir
lib/ecto/adapters/postgres/connection.ex
eksperimental/ecto_sql
0909e0d04a823859f1e7ce9714519fe87a857208
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/postgres/connection.ex
eksperimental/ecto_sql
0909e0d04a823859f1e7ce9714519fe87a857208
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/postgres/connection.ex
eksperimental/ecto_sql
0909e0d04a823859f1e7ce9714519fe87a857208
[ "Apache-2.0" ]
null
null
null
if Code.ensure_loaded?(Postgrex) do defmodule Ecto.Adapters.Postgres.Connection do @moduledoc false @default_port 5432 @behaviour Ecto.Adapters.SQL.Connection ## Module and Options @impl true def child_spec(opts) do opts |> Keyword.put_new(:port, @default_port) |> Postgrex...
37.168254
154
0.601063
2d4c19041dbe4dd168caddcc420e9405072e14ab
1,057
ex
Elixir
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/connection.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.233333
86
0.761589
2d4cc472db43e1243ed0017e72ad6e8ada007173
12,071
ex
Elixir
lib/proto/Session.pb.ex
kpanic/grakn_elixir
039433ea5414a5791ab07615a1b32ae1d42e2735
[ "MIT" ]
null
null
null
lib/proto/Session.pb.ex
kpanic/grakn_elixir
039433ea5414a5791ab07615a1b32ae1d42e2735
[ "MIT" ]
null
null
null
lib/proto/Session.pb.ex
kpanic/grakn_elixir
039433ea5414a5791ab07615a1b32ae1d42e2735
[ "MIT" ]
null
null
null
defmodule Session.Transaction do @moduledoc false use Protobuf, syntax: :proto3 defstruct [] end defmodule Session.Transaction.Req do @moduledoc false use Protobuf, syntax: :proto3 @type t :: %__MODULE__{ req: {atom, any} } defstruct [:req] oneof(:req, 0) field(:open_req, 1, type...
23.124521
95
0.692072
2d4cdc6ff3b15f4c30395d24213d8c89923c1f78
2,108
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/set_iam_policy_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/set_iam_policy_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/set_iam_policy_request.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...
41.333333
298
0.745731
2d4cef0bbde2d6a1dfa204be0d5e1de8fb12ac2b
4,907
ex
Elixir
lib/bson/encoder.ex
hauleth/mongodb
d1be214cb38494bfd2cb861628526b853e7b776f
[ "Apache-2.0" ]
null
null
null
lib/bson/encoder.ex
hauleth/mongodb
d1be214cb38494bfd2cb861628526b853e7b776f
[ "Apache-2.0" ]
null
null
null
lib/bson/encoder.ex
hauleth/mongodb
d1be214cb38494bfd2cb861628526b853e7b776f
[ "Apache-2.0" ]
null
null
null
defmodule BSON.Encoder do @moduledoc false use BSON.Utils def encode(true), do: 0x01 def encode(false), do: 0x00 def encode(nil), do: "" def encode(:BSON_min), do: "" def encode(:BSON_max), do: "" def encode(%BSON.Binary{binary: binary, subtype: :binary_old}) do subtype = s...
28.201149
86
0.633381
2d4d101bfb9fa8b71489b7ade1e6711728d97cd3
12,409
ex
Elixir
lib/mix/lib/releases/utils.ex
happysalada/distillery
2098604c9f12a26227d6bd794c62d5e62e609ad4
[ "MIT" ]
null
null
null
lib/mix/lib/releases/utils.ex
happysalada/distillery
2098604c9f12a26227d6bd794c62d5e62e609ad4
[ "MIT" ]
null
null
null
lib/mix/lib/releases/utils.ex
happysalada/distillery
2098604c9f12a26227d6bd794c62d5e62e609ad4
[ "MIT" ]
null
null
null
defmodule Mix.Releases.Utils do @moduledoc false @doc """ Loads a template from :distillery's `priv/templates` directory based on the provided name. Any parameters provided are configured as bindings for the template ## Example iex> {:ok, contents} = #{__MODULE__}.template("erl_script", [erts_vsn: "8...
27.034858
98
0.572488
2d4d15087a50f16b97c5ee985246ef0bb6711074
363
exs
Elixir
priv/repo/seeds.exs
pgrunwald/phoenix13_base
9c9ae51f9fda5dc86ffd33b860d1524f8d585e19
[ "MIT" ]
1
2019-03-28T05:47:46.000Z
2019-03-28T05:47:46.000Z
priv/repo/seeds.exs
pgrunwald/phoenix13_base
9c9ae51f9fda5dc86ffd33b860d1524f8d585e19
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
pgrunwald/phoenix13_base
9c9ae51f9fda5dc86ffd33b860d1524f8d585e19
[ "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: # # Phoenix13Base.Repo.insert!(%Phoenix13Base.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) ...
30.25
61
0.716253
2d4d3e77fd4f2ef7fe3998f55a878a11a91de9a0
4,883
ex
Elixir
implementations/elixir/ockam/ockam/lib/ockam/worker.ex
Szymongib/ockam
b6d8c62ec2516c8e0dac243a02c1d1aaf9094622
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/worker.ex
Szymongib/ockam
b6d8c62ec2516c8e0dac243a02c1d1aaf9094622
[ "Apache-2.0" ]
108
2021-10-30T14:46:14.000Z
2021-10-30T16:00:08.000Z
implementations/elixir/ockam/ockam/lib/ockam/worker.ex
frazar/ockam
2229a22cb95fc40485304fac9b2236384b544ad4
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Worker do @moduledoc false @callback setup(options :: Keyword.t(), initial_state :: map()) :: {:ok, state :: map()} | {:error, reason :: any()} @callback handle_message(message :: any(), state :: map()) :: {:ok, state :: map()} | {:error, reason :: any()...
32.337748
101
0.599631
2d4d4bfd70a77235d0419148b0788effe8a2aba9
3,063
ex
Elixir
lib/banks/fio.ex
michalhorcic/xbank
d6e91a30410776c90d7b58bc6f31597397d442f7
[ "MIT" ]
null
null
null
lib/banks/fio.ex
michalhorcic/xbank
d6e91a30410776c90d7b58bc6f31597397d442f7
[ "MIT" ]
null
null
null
lib/banks/fio.ex
michalhorcic/xbank
d6e91a30410776c90d7b58bc6f31597397d442f7
[ "MIT" ]
null
null
null
defmodule Xbank.Fio do @moduledoc """ Module for dealing with FIO bank (Czech Republic - www.fio.cz). Using their API documented here: https://www.fio.cz/docs/cz/API_Bankovnictvi.pdf. """ alias Xbank.Transaction @doc """ Receive list of transaction structs with defined properties in defined period. Da...
30.63
130
0.592883
2d4d61cb9b3d75c734d1a352d003a941f761496c
6,936
ex
Elixir
clients/games/lib/google_api/games/v1/model/turn_based_match.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/turn_based_match.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/turn_based_match.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...
66.057143
625
0.730969
2d4d7771fa1e3988e34430c9e1fc60cdaed9fa57
2,801
ex
Elixir
lib/workers/send_email_report.ex
samuel-p/analytics
5d35bab9c6c2aafc556659f64e4213848a37ed8a
[ "MIT" ]
2
2020-05-16T13:48:44.000Z
2020-05-22T09:52:36.000Z
lib/workers/send_email_report.ex
samuel-p/analytics
5d35bab9c6c2aafc556659f64e4213848a37ed8a
[ "MIT" ]
null
null
null
lib/workers/send_email_report.ex
samuel-p/analytics
5d35bab9c6c2aafc556659f64e4213848a37ed8a
[ "MIT" ]
null
null
null
defmodule Plausible.Workers.SendEmailReport do use Plausible.Repo use Oban.Worker, queue: :send_email_reports, max_attempts: 1 alias Plausible.Stats.Query alias Plausible.Stats.Clickhouse, as: Stats @impl Oban.Worker def perform(%{"interval" => "weekly", "site_id" => site_id}, _job) do site = Repo.get(...
32.569767
96
0.672974
2d4d7d62ea433215cfcf85df823272352841eb6d
2,278
exs
Elixir
test/pow/phoenix/controllers/plug_error_handler_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
4
2018-05-07T16:37:15.000Z
2018-07-14T00:44:12.000Z
test/pow/phoenix/controllers/plug_error_handler_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
test/pow/phoenix/controllers/plug_error_handler_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
defmodule Pow.Phoenix.PlugErrorHandlerTest do use ExUnit.Case doctest Pow.Phoenix.PlugErrorHandler alias Phoenix.ConnTest alias Plug.Conn alias Pow.Phoenix.{Messages, PlugErrorHandler} defmodule Messages do use Pow.Phoenix.Messages def user_not_authenticated(_conn), do: :not_authenticated def...
30.373333
93
0.701054
2d4da8cdb2e3489b8e888d4a2f2850b3feea5496
1,058
ex
Elixir
api/web/controllers/registration_controller.ex
panayi/react-phoenix-starter-kit
6615402deeac9b359954cdd8b523f7735b75eec9
[ "MIT" ]
null
null
null
api/web/controllers/registration_controller.ex
panayi/react-phoenix-starter-kit
6615402deeac9b359954cdd8b523f7735b75eec9
[ "MIT" ]
null
null
null
api/web/controllers/registration_controller.ex
panayi/react-phoenix-starter-kit
6615402deeac9b359954cdd8b523f7735b75eec9
[ "MIT" ]
null
null
null
defmodule App.RegistrationController do use App.Web, :controller alias App.User plug :scrub_params, "user" when action in [:create] def create(conn, %{"user" => user_params}) do changeset = User.registration_changeset(%User{}, user_params) case Repo.insert(changeset) do {:ok, user} -> ...
28.594595
99
0.590737
2d4dd8ec6b1fd49597d4ef4eb22768d1ca415c27
456
ex
Elixir
lib/scaffold/helpers.ex
gausby/scaffold
cc0f27a7d494215d9ff9dbbeb9ad0e9ab53dc05b
[ "Apache-2.0" ]
7
2015-05-30T16:15:34.000Z
2020-01-13T21:55:09.000Z
lib/scaffold/helpers.ex
gausby/scaffold
cc0f27a7d494215d9ff9dbbeb9ad0e9ab53dc05b
[ "Apache-2.0" ]
6
2015-05-30T14:00:55.000Z
2015-06-01T20:40:20.000Z
lib/scaffold/helpers.ex
gausby/scaffold
cc0f27a7d494215d9ff9dbbeb9ad0e9ab53dc05b
[ "Apache-2.0" ]
null
null
null
defmodule Scaffold.Helpers do @doc """ We want to sort by file name if we compare two files in the same folder. In other cases we want to sort the directories. This function is passed to `Enum.sort/2` """ def sort_by_folder_and_filename(a, b) do a_dirname = Path.dirname(a) b_dirname = Path.dirname(...
24
74
0.677632
2d4e270c2dffae9aff7e85825d17e575f30de496
1,102
ex
Elixir
test/support/conn_case.ex
KazuCocoa/myChatEx
27871c7d9715987a664caa10a7c79b2682f6e56c
[ "MIT" ]
null
null
null
test/support/conn_case.ex
KazuCocoa/myChatEx
27871c7d9715987a664caa10a7c79b2682f6e56c
[ "MIT" ]
null
null
null
test/support/conn_case.ex
KazuCocoa/myChatEx
27871c7d9715987a664caa10a7c79b2682f6e56c
[ "MIT" ]
null
null
null
defmodule MyChatEx.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the da...
24.488889
70
0.705989
2d4e377ef091d7734b0cc2b3ece10a902971b191
3,377
ex
Elixir
lib/plausible/site/admin.ex
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
984
2019-09-02T11:36:41.000Z
2020-06-08T06:25:48.000Z
lib/plausible/site/admin.ex
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
24
2019-09-10T09:53:17.000Z
2020-06-08T07:35:26.000Z
lib/plausible/site/admin.ex
plausible-insights/plausible
88173342b9e969894879bfb2e8d203426f6a1b1c
[ "MIT" ]
51
2019-09-03T10:48:10.000Z
2020-06-07T00:23:34.000Z
defmodule Plausible.SiteAdmin do use Plausible.Repo import Ecto.Query def search_fields(_schema) do [ :domain, members: [:name, :email] ] end def custom_index_query(_conn, _schema, query) do from(r in query, preload: [memberships: :user]) end def form_fields(_) do [ do...
27.016
89
0.643471
2d4e78da62fa1de5528498d5a4303a80f45a8d5a
683
exs
Elixir
examples/ecto_poll_queue/priv/repo/migrations/20190609185555_add_books_table.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
717
2015-06-15T19:30:54.000Z
2022-03-22T06:10:09.000Z
examples/ecto_poll_queue/priv/repo/migrations/20190609185555_add_books_table.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
106
2015-06-25T05:38:05.000Z
2021-12-08T23:17:19.000Z
examples/ecto_poll_queue/priv/repo/migrations/20190609185555_add_books_table.exs
kianmeng/honeydew
7c0e825c70ef4b72c82d02ca95491e7365d6b2e8
[ "MIT" ]
60
2015-06-07T00:48:37.000Z
2022-03-06T08:20:23.000Z
defmodule EctoPollQueueExample.Repo.Migrations.AddBooksTable do use Ecto.Migration import Honeydew.EctoPollQueue.Migration import EctoPollQueueExample.Book, only: [ocr_queue: 0] alias Honeydew.EctoSource.ErlangTerm def change do create table(:books, primary_key: false) do add :author, :string, pr...
25.296296
63
0.695461
2d4e7c1683819529b227d54d60a19195812869a8
151
exs
Elixir
apps/language_server/test/fixtures/test_code_lens/mix.exs
NobbZ/elixir-ls
4cc7f6c63d71f70511e67ae3d16f86965947cf46
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/fixtures/test_code_lens/mix.exs
NobbZ/elixir-ls
4cc7f6c63d71f70511e67ae3d16f86965947cf46
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/fixtures/test_code_lens/mix.exs
NobbZ/elixir-ls
4cc7f6c63d71f70511e67ae3d16f86965947cf46
[ "Apache-2.0" ]
null
null
null
defmodule TestCodeLens.MixProject do use Mix.Project def project do [app: :references, version: "0.1.0"] end def application, do: [] end
15.1
40
0.682119
2d4ea4f60f38a2f7caee1c24778167278b63294c
2,380
ex
Elixir
clients/content/lib/google_api/content/v21/model/orders_refund_order_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/orders_refund_order_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/orders_refund_order_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.338983
209
0.709664
2d4eb882442391a629fb28855bf6d585c7cb52fd
411
exs
Elixir
priv/repo/migrations/20150817175447_create_building_queue_item.exs
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
5
2016-10-20T10:00:59.000Z
2017-11-19T08:14:18.000Z
priv/repo/migrations/20150817175447_create_building_queue_item.exs
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
39
2020-04-22T05:27:32.000Z
2022-03-13T17:22:26.000Z
priv/repo/migrations/20150817175447_create_building_queue_item.exs
cruessler/lafamiglia
084915a2d44a5e69fb6ad9321eac08ced0e3016a
[ "MIT" ]
null
null
null
defmodule LaFamiglia.Repo.Migrations.CreateBuildingQueueItem do use Ecto.Migration def change do create table(:building_queue_items) do add :villa_id, references(:villas) add :building_id, :integer add :completed_at, :utc_datetime_usec timestamps end create index(:building_qu...
22.833333
63
0.727494
2d4ec4d21ffe7247f8a2f247a9273d4298f73de3
614
ex
Elixir
lib/porterage/fetcher/file_read.ex
mneudert/porterage
a49857a6e7b39e182c49b8f06275e83685b87b67
[ "Apache-2.0" ]
1
2020-01-13T23:59:51.000Z
2020-01-13T23:59:51.000Z
lib/porterage/fetcher/file_read.ex
mneudert/porterage
a49857a6e7b39e182c49b8f06275e83685b87b67
[ "Apache-2.0" ]
null
null
null
lib/porterage/fetcher/file_read.ex
mneudert/porterage
a49857a6e7b39e182c49b8f06275e83685b87b67
[ "Apache-2.0" ]
null
null
null
defmodule Porterage.Fetcher.FileRead do @moduledoc """ Fetcher based on results of `File.read/1` calls. ## Configuration { fetcher: Porterage.Fetcher.FileRead, fetcher_opts: %{file: _} } See `t:options/0` for a specification of available options. """ @type options :: %{file: ...
20.466667
61
0.620521
2d4ed81f9f384209114c5aa8c4d13aa3cd61e09d
1,635
exs
Elixir
test/metadata/mobi_test.exs
sohjiro/ex_ebook
4d5d72fbb880a7b25b1c5e217d0a9b679d0496ac
[ "MIT" ]
null
null
null
test/metadata/mobi_test.exs
sohjiro/ex_ebook
4d5d72fbb880a7b25b1c5e217d0a9b679d0496ac
[ "MIT" ]
null
null
null
test/metadata/mobi_test.exs
sohjiro/ex_ebook
4d5d72fbb880a7b25b1c5e217d0a9b679d0496ac
[ "MIT" ]
null
null
null
defmodule ExEbook.Metadata.MobiTest do use ExUnit.Case alias ExEbook.Metadata.Mobi describe "Metadata correct extraction" do setup [:complete_metadata] test "should read a mobi file", %{path: path} do assert {:ok, _} = Mobi.read_file(path) end test "should extract metadata from file", %{p...
30.277778
131
0.647095
2d4ede6f36b3f7f0f38c6b7fb0cca1c74519f356
1,177
exs
Elixir
domotic_firmware/config/config.exs
gcauchon/domotic-pi
af61102fb946670b3e5ec93def6a5c053d894e79
[ "MIT" ]
1
2020-06-11T17:53:20.000Z
2020-06-11T17:53:20.000Z
domotic_firmware/config/config.exs
gcauchon/domotic-pi
af61102fb946670b3e5ec93def6a5c053d894e79
[ "MIT" ]
9
2020-12-15T21:19:59.000Z
2021-11-23T13:23:11.000Z
domotic_firmware/config/config.exs
gcauchon/domotic-pi
af61102fb946670b3e5ec93def6a5c053d894e79
[ "MIT" ]
1
2021-03-10T15:31:01.000Z
2021-03-10T15:31:01.000Z
import Config import_config "../../domotic_ui/config/config.exs" # Customize non-Elixir parts of the firmware. # ⮑ https://hexdocs.pm/nerves/advanced-configuration.html config :nerves, :firmware, rootfs_overlay: "rootfs_overlay" # Set the SOURCE_DATE_EPOCH date for reproducible builds # ⮑ https://reproducible-builds...
28.707317
85
0.752761
2d4eecb7acc36f14523544a60826fd6364cd493c
12,033
ex
Elixir
lib/hexa_web/live/player_live.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
lib/hexa_web/live/player_live.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
lib/hexa_web/live/player_live.ex
libreearth/hexa
81938c3a5abc710eb16055d73c43cbf60dbf487e
[ "MIT" ]
null
null
null
defmodule HexaWeb.PlayerLive do use HexaWeb, {:live_view, container: {:div, []}} alias Hexa.{Accounts, MediaLibrary} alias Hexa.MediaLibrary.Song on_mount {HexaWeb.UserAuth, :current_user} def render(assigns) do ~H""" <!-- player --> <div id="audio-player" phx-hook="AudioPlayer" class="w-full" ...
32.787466
205
0.617469
2d4f15064106ab915f24a110ae610fbf2b53f0d1
2,475
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/gke_node_pool_target.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/gke_node_pool_target.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/gke_node_pool_target.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
46.698113
607
0.73697
2d4f240c4695d0d576c71f67b859961dd370d305
2,605
ex
Elixir
lib/elixir/lib/bitwise.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/bitwise.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/bitwise.ex
Nicd/elixir
e62ef92a4be1b562033d35b2d822cc9d6c661077
[ "Apache-2.0" ]
null
null
null
defmodule Bitwise do @moduledoc """ This module provide macros and operators for bitwise operators. These macros can be used in guards. The easiest way to use is to simply import them into your module: iex> use Bitwise iex> bnot 1 -2 iex> 1 &&& 1 1 You can select to include ...
20.193798
70
0.609597
2d4f2f4384e17dfc0dfba1612e4ec142a3c41f8c
1,076
ex
Elixir
lib/podcatcher/web/views/url_helpers.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
lib/podcatcher/web/views/url_helpers.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
lib/podcatcher/web/views/url_helpers.ex
danjac/podcatcher
748cf7419aebfff9216e7ff9353a5bdb46d3d7b1
[ "MIT" ]
null
null
null
defmodule Podcatcher.Web.URLHelpers do import Podcatcher.Web.Router.Helpers import Phoenix.HTML, only: [html_escape: 1] alias Podcatcher.Podcasts.Podcast alias Podcatcher.Podcasts.Image alias Podcatcher.Web.PaginationView def episode_url(conn, episode) do episodes_path(conn, :episode, episode.id, Slug...
28.315789
86
0.715613
2d4f4e695502d35554d500d9f9e951effaeab50f
2,428
ex
Elixir
clients/people/lib/google_api/people/v1/model/update_contact_photo_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/people/lib/google_api/people/v1/model/update_contact_photo_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/people/lib/google_api/people/v1/model/update_contact_photo_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 ...
28.904762
133
0.683278
2d4f4fdc23b785f212f1d36a68b11b315f4436ce
211
ex
Elixir
lib/phone/sm.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
97
2016-04-05T13:08:41.000Z
2021-12-25T13:08:34.000Z
lib/phone/sm.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
70
2016-06-14T00:56:00.000Z
2022-02-10T19:43:14.000Z
lib/phone/sm.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
31
2016-04-21T22:26:12.000Z
2022-01-24T21:40:00.000Z
defmodule Phone.SM do @moduledoc false use Helper.Country def regex, do: ~r/^(378)(0549)(.{6})/ def country, do: "San Marino" def a2, do: "SM" def a3, do: "SMR" matcher(:regex, ["3780549"]) end
16.230769
39
0.611374
2d4f5785229784d25e93f10dd7e2d498c882fddd
1,157
ex
Elixir
clients/org_policy/lib/google_api/org_policy/v2/connection.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/org_policy/lib/google_api/org_policy/v2/connection.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/org_policy/lib/google_api/org_policy/v2/connection.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.060606
114
0.73898
2d4f8616dd2273f1a9ad1711923039f50d92a75a
6,114
exs
Elixir
lib/elixir/test/elixir/module_test.exs
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
1
2015-11-12T19:23:45.000Z
2015-11-12T19:23:45.000Z
lib/elixir/test/elixir/module_test.exs
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/module_test.exs
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule ModuleTest.ToBeUsed do def value, do: 1 defmacro __using__(_) do target = __CALLER__.module Module.put_attribute(target, :has_callback, false) Module.put_attribute(target, :before_compile, __MODULE__) Module.put_attribute(target, :after_compil...
26.353448
106
0.669611
2d4fa9c206919f74b54e2b0992999d5be4f162da
134
ex
Elixir
lib/nfbutah_web/controllers/page_controller.ex
flash4syth/nfbutah
eae0557af36dc180bc74cae623a6c48a804babd7
[ "MIT" ]
null
null
null
lib/nfbutah_web/controllers/page_controller.ex
flash4syth/nfbutah
eae0557af36dc180bc74cae623a6c48a804babd7
[ "MIT" ]
null
null
null
lib/nfbutah_web/controllers/page_controller.ex
flash4syth/nfbutah
eae0557af36dc180bc74cae623a6c48a804babd7
[ "MIT" ]
null
null
null
defmodule NFBUWeb.PageController do use NFBUWeb, :controller def index(conn, _params) do render conn, "index.html" end end
16.75
35
0.731343
2d4ff3e061a7a6febb3fbf431f6642c8bc974f24
3,809
exs
Elixir
test/elixir_sense/eval_test.exs
msaraiva/elixir_sense
15bf8a5d4ea55ced2d76e5f41620c769cf125c82
[ "Unlicense", "MIT" ]
212
2017-03-29T09:08:08.000Z
2022-01-26T13:35:40.000Z
test/elixir_sense/eval_test.exs
msaraiva/elixir_sense
15bf8a5d4ea55ced2d76e5f41620c769cf125c82
[ "Unlicense", "MIT" ]
37
2017-04-11T04:13:18.000Z
2020-02-12T20:02:55.000Z
test/elixir_sense/eval_test.exs
msaraiva/elixir_sense
15bf8a5d4ea55ced2d76e5f41620c769cf125c82
[ "Unlicense", "MIT" ]
17
2017-04-11T17:46:15.000Z
2021-05-31T09:10:18.000Z
defmodule ElixirSense.Evaltest do use ExUnit.Case describe "match" do test "with bindings" do code = "{name, _, [par1, par2]} = {:func, [line: 1], [{:par1, [line: 1], nil}, {:par2, [line: 1], nil}]}" assert ElixirSense.match(code) =~ """ # Bindings name = :func par1 = {:par1, ...
25.393333
147
0.509845
2d50105ad5f5fb5f17ed3931a412a7f6e608e434
1,243
exs
Elixir
mix.exs
PneumaSolutions/ueberauth_zoom
e1dcf893c67c998131feff8345dc35b6a1db270a
[ "MIT" ]
1
2020-07-20T15:58:33.000Z
2020-07-20T15:58:33.000Z
mix.exs
mightycal/ueberauth_zoom
e1dcf893c67c998131feff8345dc35b6a1db270a
[ "MIT" ]
null
null
null
mix.exs
mightycal/ueberauth_zoom
e1dcf893c67c998131feff8345dc35b6a1db270a
[ "MIT" ]
3
2021-04-02T14:14:41.000Z
2021-11-23T19:32:19.000Z
defmodule UeberauthZoom.MixProject do use Mix.Project @version "0.1.0" @url "https://github.com/svycal/ueberauth_zoom" def project do [ app: :ueberauth_zoom, version: @version, name: "Ueberauth Zoom Strategy", package: package(), elixir: "~> 1.10", start_permanent: Mix....
21.431034
62
0.559131