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
18bde1f058acbfae185d8b29faa7a5e2a654d426
7,106
ex
Elixir
lib/amqp/queue.ex
archSeer/amqp
c92717a820209e1e7c1517e4fbb87a2760dffab4
[ "MIT" ]
null
null
null
lib/amqp/queue.ex
archSeer/amqp
c92717a820209e1e7c1517e4fbb87a2760dffab4
[ "MIT" ]
null
null
null
lib/amqp/queue.ex
archSeer/amqp
c92717a820209e1e7c1517e4fbb87a2760dffab4
[ "MIT" ]
null
null
null
defmodule AMQP.Queue do @moduledoc """ Functions to operate on Queues. """ import AMQP.Core alias AMQP.Channel alias AMQP.Basic alias AMQP.Utils @doc """ Declares a queue. The optional `queue` parameter is used to set the name. If set to an empty string (default), the server will assign a name. ...
34.663415
104
0.630453
18be18aa1605fa1205d1ac1c8ba4be01046143c0
781
ex
Elixir
lib/presence/activity.ex
LeonardSSH/lanyard
407bc5c7dfcfcaf28ee72a70dc8695c39980f87d
[ "MIT" ]
323
2021-03-12T17:42:44.000Z
2022-03-31T21:32:30.000Z
lib/presence/activity.ex
LeonardSSH/lanyard
407bc5c7dfcfcaf28ee72a70dc8695c39980f87d
[ "MIT" ]
56
2021-03-22T12:30:36.000Z
2022-03-25T17:56:01.000Z
lib/presence/activity.ex
LeonardSSH/lanyard
407bc5c7dfcfcaf28ee72a70dc8695c39980f87d
[ "MIT" ]
113
2021-03-13T17:30:36.000Z
2022-03-29T13:19:24.000Z
defmodule Lanyard.Presence.Activity do def build_pretty_activities(activities) do activities |> Enum.map(fn activity -> activity |> decorate_app_id |> decorate_emoji end) end defp decorate_app_id(%{application_id: application_id} = activity) when not is_binary(application_id)...
30.038462
93
0.679898
18be27448e802bc5805015b46f72f4da15da3468
7,102
ex
Elixir
lib/dlex/node.ex
windfish-studio/dlex
c5ee6b67b77e626c7e1f8b7f7665c168ddd87863
[ "Apache-2.0" ]
null
null
null
lib/dlex/node.ex
windfish-studio/dlex
c5ee6b67b77e626c7e1f8b7f7665c168ddd87863
[ "Apache-2.0" ]
null
null
null
lib/dlex/node.ex
windfish-studio/dlex
c5ee6b67b77e626c7e1f8b7f7665c168ddd87863
[ "Apache-2.0" ]
null
null
null
defmodule Dlex.Node do @moduledoc """ Simple high level API for accessing graphs ## Usage defmodule Shared do use Dlex.Node shared do field :id, :string, index: ["term"] field :name, :string, index: ["term"] end end defmodule User do use Dlex.Node, depends_o...
27.742188
97
0.643622
18be648bf71d86363095b94fa30421fba0d9170b
11,867
ex
Elixir
lib/thrift/binary/framed/client.ex
simplifi/elixir-thrift
3ce784e198fbdf77d7d2481e6fd0cc9fd9618630
[ "Apache-2.0" ]
209
2015-12-19T09:56:39.000Z
2022-03-22T04:43:16.000Z
lib/thrift/binary/framed/client.ex
fakeNetflix/pinterest-repo-elixir-thrift
4e6cc130738b4f04fdbb06bd6f12985b9a9438d3
[ "Apache-2.0" ]
312
2016-01-05T04:04:58.000Z
2021-11-15T17:59:57.000Z
lib/thrift/binary/framed/client.ex
thecodeboss/elixir-thrift
621a2039bcbcec62d1cedc85b01421813e0910e8
[ "Apache-2.0" ]
40
2015-12-21T19:46:03.000Z
2022-02-10T08:34:58.000Z
defmodule Thrift.Binary.Framed.Client do @moduledoc """ A client implementation of Thrift's Binary Framed protocol. This client is meant to be used with a generated Thrift client. This module implements framing on top of the `Connection` behaviour. This module adds `oneway/4` for making "oneway" RPC calls t...
31.56117
105
0.635628
18be7655a3d8b6f844891254703216ffed05418f
2,653
ex
Elixir
lib/birdcage_web/controllers/webhook_controller.ex
cognizant-softvision/birdcage
2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb
[ "Apache-2.0" ]
1
2022-02-10T13:54:39.000Z
2022-02-10T13:54:39.000Z
lib/birdcage_web/controllers/webhook_controller.ex
cognizant-softvision/birdcage
2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb
[ "Apache-2.0" ]
11
2020-07-10T16:05:17.000Z
2020-08-25T23:44:34.000Z
lib/birdcage_web/controllers/webhook_controller.ex
cognizant-softvision/birdcage
2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb
[ "Apache-2.0" ]
1
2020-08-06T18:56:52.000Z
2020-08-06T18:56:52.000Z
defmodule BirdcageWeb.WebhookController do @moduledoc tags: ["webhooks"] require Logger use BirdcageWeb, :controller use OpenApiSpex.Controller use BirdcageWeb.ApiSpec alias Birdcage.{Dashboard, Deployment} alias BirdcageWeb.Schemas action_fallback(BirdcageWeb.FallbackController) @event_ttl 3_600...
32.753086
95
0.685262
18bf041f706dff73577f2f4f5b0e4ef6968292bc
4,994
exs
Elixir
test/discovery_test.exs
cogini/onvif
ec687d70895bf22ad7b802d7964142e3719787b6
[ "Apache-2.0" ]
3
2018-09-26T07:33:22.000Z
2020-01-14T18:34:44.000Z
test/discovery_test.exs
cogini/onvif
ec687d70895bf22ad7b802d7964142e3719787b6
[ "Apache-2.0" ]
null
null
null
test/discovery_test.exs
cogini/onvif
ec687d70895bf22ad7b802d7964142e3719787b6
[ "Apache-2.0" ]
null
null
null
defmodule DiscoveryTest do use ExUnit.Case alias Onvif.Discovery test "parse Hello" do xml = """ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:dn="http://www.onvif....
61.654321
660
0.671806
18bf0d21b87e29ca56dce916220e899a9b249bdc
1,239
ex
Elixir
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_skus_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_skus_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_skus_response.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...
30.975
80
0.74657
18bf0fee2ff43f2239e478592b7900cfd77df5d4
1,574
ex
Elixir
lib/oniichain_web/endpoint.ex
freester1/OniiChain
28153c2fa3b1425aeac240df016c907d5b822101
[ "Apache-2.0" ]
9
2017-12-17T02:58:48.000Z
2018-11-07T13:48:50.000Z
lib/oniichain_web/endpoint.ex
freester1/OniiChain
28153c2fa3b1425aeac240df016c907d5b822101
[ "Apache-2.0" ]
1
2017-12-12T23:58:22.000Z
2017-12-13T00:00:21.000Z
lib/oniichain_web/endpoint.ex
freester1/OniiChain
28153c2fa3b1425aeac240df016c907d5b822101
[ "Apache-2.0" ]
3
2017-12-12T23:57:20.000Z
2018-03-03T22:13:38.000Z
defmodule OniichainWeb.Endpoint do use Phoenix.Endpoint, otp_app: :oniichain socket "/p2p", OniichainWeb.P2pSocket # 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...
28.107143
95
0.703939
18bf11a7edb6d1adf8a20a5b85f99186c0ec321d
535
exs
Elixir
config/config.exs
mbta/delta_http_s3
66c61fd2c95a2184216e8718adf0c5d58318d679
[ "MIT" ]
4
2020-04-03T14:38:53.000Z
2021-04-02T10:31:30.000Z
config/config.exs
mbta/delta_http_s3
66c61fd2c95a2184216e8718adf0c5d58318d679
[ "MIT" ]
107
2020-03-19T13:24:23.000Z
2022-02-28T06:32:58.000Z
config/config.exs
mbta/delta
65371728e2fad26c162082d3972cc04eb3055ea1
[ "MIT" ]
1
2019-12-31T17:49:06.000Z
2019-12-31T17:49:06.000Z
use Mix.Config config :delta, default_content_type: "application/octet-stream", compressed_content_types: [ "application/zip" ], content_type_extensions: %{ ".json" => "application/json", ".pb" => "application/x-protobuf", ".zip" => "application/zip" } config :delta, DeltaWeb.Endpoint, url: ...
20.576923
58
0.691589
18bf43230be41686e2ec589175ba3cb50a0a9057
1,573
ex
Elixir
apps/legion_http/lib/legion_http.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
1
2021-01-04T11:06:12.000Z
2021-01-04T11:06:12.000Z
apps/legion_http/lib/legion_http.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
3
2021-01-30T06:40:37.000Z
2021-01-30T06:41:08.000Z
apps/legion_http/lib/legion_http.ex
i386-64/legion
41ae99af9be962d7fb38726ddf4bb0456edb5ca4
[ "Apache-2.0" ]
null
null
null
defmodule Legion.HTTP do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use Legion.HTTP, :controller use Legion.HTTP, :view The definitions below will be executed for every view, controlle...
23.132353
69
0.689765
18bf8ee7cde81f3fe9cb57999187152840e9736e
22,265
ex
Elixir
lib/mix/tasks/phx.gen.auth.ex
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
1
2021-09-25T11:49:31.000Z
2021-09-25T11:49:31.000Z
lib/mix/tasks/phx.gen.auth.ex
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
lib/mix/tasks/phx.gen.auth.ex
udanieli/phoenix
40b79c8d227eadb2af90f19b26c297a87f3b69aa
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Phx.Gen.Auth do @shortdoc "Generates authentication logic for a resource" @moduledoc """ Generates authentication logic for a resource. $ mix phx.gen.auth Accounts User users The first argument is the context module followed by the schema module and its plural name (used as the sc...
32.790869
159
0.674961
18bfa594e32277b4c380270df0745b56d848eb0c
455
exs
Elixir
elixir/phoenix_demo/test/phoenix_demo_web/views/error_view_test.exs
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
elixir/phoenix_demo/test/phoenix_demo_web/views/error_view_test.exs
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
elixir/phoenix_demo/test/phoenix_demo_web/views/error_view_test.exs
gilmoreg/learn
0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2
[ "MIT" ]
null
null
null
defmodule PhoenixDemoWeb.ErrorViewTest do use PhoenixDemoWeb.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(PhoenixDemoWeb.ErrorView, "404.html", []) == "Not Found" end test "rend...
26.764706
72
0.707692
18bfb1d83678da34265f820269de95ea8bb947c1
163
exs
Elixir
lib/mix/test/fixtures/deps_status/custom/raw_repo/mix.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
4
2015-12-22T02:46:39.000Z
2016-04-26T06:11:09.000Z
lib/mix/test/fixtures/deps_status/custom/raw_repo/mix.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
null
null
null
lib/mix/test/fixtures/deps_status/custom/raw_repo/mix.exs
mk/elixir
2b2c66ecf7b1cc2167cae9cc3e88f950994223f1
[ "Apache-2.0" ]
1
2017-07-25T21:46:48.000Z
2017-07-25T21:46:48.000Z
defmodule RawRepo.Mixfile do use Mix.Project def project do Mix.shell.info ":raw_repo env is #{Mix.env}" [app: :raw_repo, version: "0.1.0"] end end
18.111111
48
0.662577
18c02098a7fad64b950d1c2b23b9e5f37cd924e1
47
ex
Elixir
testData/org/elixir_lang/issue_470/match_in_match.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/issue_470/match_in_match.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/issue_470/match_in_match.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
with k = g(p, "k"), l <- g(p, "l") do end
11.75
22
0.361702
18c03f7e7e435b7c566436e9ef7691edc35d35a0
435
ex
Elixir
lib/range/sandbox.ex
thiamsantos/pwned
ec577c81f168f186ecce533f53b5797003294315
[ "Apache-2.0" ]
20
2018-03-14T14:46:12.000Z
2021-12-18T21:15:06.000Z
lib/range/sandbox.ex
thiamsantos/pwned
ec577c81f168f186ecce533f53b5797003294315
[ "Apache-2.0" ]
1
2020-04-01T05:22:11.000Z
2020-04-01T12:27:24.000Z
lib/range/sandbox.ex
f0rest8/pwned
d2bbd279296c1be4eaf5b5be916321965e230e12
[ "Apache-2.0" ]
1
2019-09-10T03:06:53.000Z
2019-09-10T03:06:53.000Z
defmodule Pwned.Range.Sandbox do @moduledoc false def get("21BD1") do {:ok, "0018A45C4D1DEF81644B54AB7F969B88D65:1\r\n00D4F6E8FA6EECAD2A3AA415EEC418D38EC:2\r\n2DC183F740EE76F27B78EB39C8AD972A757:47205"} end def get("FCDD8") do {:ok, "0028B733054B5585121F1BB5F7ED30F18DA:14\r\n005B0B1E780BA4673...
33.461538
169
0.8
18c06ba727c500558a58582b05832906657602ee
334
exs
Elixir
priv/repo/migrations/20170820142924_create_business_types.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
priv/repo/migrations/20170820142924_create_business_types.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
priv/repo/migrations/20170820142924_create_business_types.exs
danielcavanagh/lle-cymraeg
01aebc939254e0dd76427cb460722b830c232e82
[ "MIT" ]
null
null
null
defmodule LleCymraeg.Repo.Migrations.CreateBusinessTypes do use Ecto.Migration def change do create table(:business_types) do add :name, :string, null: false add :parent_id, references(:business_types, on_delete: :delete_all) timestamps() end create index(:business_types, [:parent_i...
22.266667
73
0.712575
18c0bce049dad49489c28deb6bea4a59718f9985
86
ex
Elixir
lib/intermodal_containers/parse_error.ex
jjdonov/intermodal_containers
43cdd7af84fae773ea5a7fc416454ef9aeab0345
[ "MIT" ]
null
null
null
lib/intermodal_containers/parse_error.ex
jjdonov/intermodal_containers
43cdd7af84fae773ea5a7fc416454ef9aeab0345
[ "MIT" ]
null
null
null
lib/intermodal_containers/parse_error.ex
jjdonov/intermodal_containers
43cdd7af84fae773ea5a7fc416454ef9aeab0345
[ "MIT" ]
null
null
null
defmodule IntermodalContainers.ParseError do defexception [:message, :position] end
21.5
44
0.825581
18c0c30dc8c043970e5d4598dc5832ff5990e1b7
2,215
exs
Elixir
test/named_arguments_test.exs
techgaun/named_arguments
3bc3a9de843178e1db523456f5ef1d6f0a97a615
[ "MIT" ]
1
2020-06-03T23:05:27.000Z
2020-06-03T23:05:27.000Z
test/named_arguments_test.exs
techgaun/named_arguments
3bc3a9de843178e1db523456f5ef1d6f0a97a615
[ "MIT" ]
2
2018-03-20T04:42:23.000Z
2018-09-01T23:53:56.000Z
test/named_arguments_test.exs
techgaun/named_arguments
3bc3a9de843178e1db523456f5ef1d6f0a97a615
[ "MIT" ]
null
null
null
defmodule NamedArgumentsTest do use ExUnit.Case defmodule TestModule do use NamedArguments def no_args, do: :ok def no_default_args(opts), do: opts def default_arg(opts \\ [name: "Samar", age: 18]), do: opts def default_list_arg(nums \\ [1, 2, 3]), do: nums def multi_args(arg1, arg2), ...
29.533333
93
0.642438
18c0c9f0baab20268f52238e04d5cc3d20c8fc23
1,700
ex
Elixir
farmbot_os/lib/mix/tasks.farmbot/env.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
farmbot_os/lib/mix/tasks.farmbot/env.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
farmbot_os/lib/mix/tasks.farmbot/env.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Farmbot.Env do @moduledoc false @doc false def mix_config(key \\ nil) do config = Mix.Project.config() if key do config[key] else config end end @doc false def fw_file do # Path.join([images_dir(), "test.fw"]) Path.join([images_dir(), "#{mix_config(...
19.101124
81
0.562941
18c0d29027032d1f4504bf75cfb6ef5d05f983f3
118
ex
Elixir
lib/postgres_sync_copy/repo.ex
floriank/postgres_sync_copy
1763a1ec922d7d02b0a60299687f1dcbf09f9523
[ "MIT" ]
null
null
null
lib/postgres_sync_copy/repo.ex
floriank/postgres_sync_copy
1763a1ec922d7d02b0a60299687f1dcbf09f9523
[ "MIT" ]
null
null
null
lib/postgres_sync_copy/repo.ex
floriank/postgres_sync_copy
1763a1ec922d7d02b0a60299687f1dcbf09f9523
[ "MIT" ]
null
null
null
defmodule PostgresSyncCopy.Repo do use Ecto.Repo, otp_app: :postgres_sync_copy, adapter: Ecto.Adapters.Postgres end
29.5
78
0.822034
18c0f2afbf96eebbfe6da2f53653c9cce8dea92d
794
ex
Elixir
apps/data/lib/grapevine_data/telnet/mssp_response.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/data/lib/grapevine_data/telnet/mssp_response.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/data/lib/grapevine_data/telnet/mssp_response.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule GrapevineData.Telnet.MSSPResponse do @moduledoc """ Connection Schema """ use Ecto.Schema import Ecto.Changeset @type t :: %__MODULE__{} schema "mssp_responses" do field(:host, :string) field(:port, :integer) field(:supports_mssp, :boolean) field(:data, :map) timestamps(...
22.055556
73
0.632242
18c0fd8ca915b0f060ce0916e0003e3b5d7c0691
4,790
ex
Elixir
lib/floki/selector/pseudo_class.ex
nathanl/floki
042b3f60f4d9a6218ec85d558d13cc6dac30c587
[ "MIT" ]
null
null
null
lib/floki/selector/pseudo_class.ex
nathanl/floki
042b3f60f4d9a6218ec85d558d13cc6dac30c587
[ "MIT" ]
null
null
null
lib/floki/selector/pseudo_class.ex
nathanl/floki
042b3f60f4d9a6218ec85d558d13cc6dac30c587
[ "MIT" ]
null
null
null
defmodule Floki.Selector.PseudoClass do @moduledoc false require Logger # Represents a pseudo-class selector defstruct name: "", value: nil alias Floki.HTMLTree.{HTMLNode, Text} alias Floki.Selector.Functional @type t :: %__MODULE__{ name: String.t(), value: String.t() | [Floki.Sel...
25.752688
110
0.65261
18c100ee924a0e5d528a6b36bdb2943f61dc8843
5,471
exs
Elixir
test/logger_file_backend_test.exs
elarahq/logger_file_backend
fe82dea520e54b8a95e8283bf0c6c240093ce552
[ "MIT" ]
null
null
null
test/logger_file_backend_test.exs
elarahq/logger_file_backend
fe82dea520e54b8a95e8283bf0c6c240093ce552
[ "MIT" ]
null
null
null
test/logger_file_backend_test.exs
elarahq/logger_file_backend
fe82dea520e54b8a95e8283bf0c6c240093ce552
[ "MIT" ]
null
null
null
defmodule LoggerFileBackendTest do use ExUnit.Case, async: false require Logger @backend {LoggerFileBackend, :test} import LoggerFileBackend, only: [prune: 1, metadata_matches?: 2] # add the backend here instead of `config/test.exs` due to issue 2649 Logger.add_backend @backend setup do config [pa...
24.315556
112
0.613782
18c107f51e7ef2156e5e640a6ecada0ef28c3e74
867
ex
Elixir
lib/utils.ex
MLSDev/dinero
cbbe6b46711d9a3319905659f642a5d7af70f10e
[ "MIT" ]
1
2019-08-10T23:20:44.000Z
2019-08-10T23:20:44.000Z
lib/utils.ex
MLSDev/dinero
cbbe6b46711d9a3319905659f642a5d7af70f10e
[ "MIT" ]
null
null
null
lib/utils.ex
MLSDev/dinero
cbbe6b46711d9a3319905659f642a5d7af70f10e
[ "MIT" ]
null
null
null
defmodule Dinero.Utils do @moduledoc false # 2568.7 * 100 must be 256870 and not 256869.9999... def convert_currency_to_coins(value) when is_float(value) do str_value = Float.to_string(value) if String.contains?(str_value, "e") do value |> trunc() |> convert_currency_to_coins() else...
21.146341
64
0.622837
18c1083f3c06af255895824d6ea0a62538d2b2aa
2,541
ex
Elixir
clients/tag_manager/lib/google_api/tag_manager/v2/model/workspace.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/tag_manager/lib/google_api/tag_manager/v2/model/workspace.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/tag_manager/lib/google_api/tag_manager/v2/model/workspace.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 ...
37.367647
187
0.67926
18c126992181cb595a1546b23f7b7e5dff3c4f99
763
ex
Elixir
test/support/data_case.ex
tap349/ecto_cqs
fa7d89ffb6be8cac3be69db1e17f7ec9b75af759
[ "MIT" ]
3
2019-02-05T07:00:01.000Z
2019-02-07T11:59:28.000Z
test/support/data_case.ex
tap349/ecto_cqrs
fa7d89ffb6be8cac3be69db1e17f7ec9b75af759
[ "MIT" ]
null
null
null
test/support/data_case.ex
tap349/ecto_cqrs
fa7d89ffb6be8cac3be69db1e17f7ec9b75af759
[ "MIT" ]
null
null
null
# > <https://hexdocs.pm/ex_unit/ExUnit.DocTest.html> # > # > In general, doctests are not recommended when your code examples # > contain side effects. For example, if a doctest prints to standard # > output, doctest will not try to capture the output. # > # > Similarly, doctests do not run in any kind of sandbox. # # ...
22.441176
70
0.682831
18c12c0353177dbd511901fc076538b2c32446c2
403
exs
Elixir
test/fixtures/umbrella_test/mix.exs
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
test/fixtures/umbrella_test/mix.exs
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
test/fixtures/umbrella_test/mix.exs
TokiTori/distillery
9158df6d17c8b70a201ade4ca0d3f243245ceebd
[ "MIT" ]
null
null
null
defmodule UmbrellaTest.MixProject do use Mix.Project def project do [ apps_path: "apps", start_permanent: Mix.env() == :prod, deps: deps() ] end # Dependencies listed here are available only for this # project and cannot be accessed from applications inside # the apps folder. #...
19.190476
59
0.655087
18c14afeec2bdb62b9b2cd49eab935d5116a3497
9,267
ex
Elixir
lib/xplane_data.ex
robinhilliard/elixplane
8b2e5151f2ac3d19a77089da5c32e0e6b47a3d33
[ "MIT" ]
5
2018-10-01T17:15:21.000Z
2021-05-24T19:13:46.000Z
lib/xplane_data.ex
robinhilliard/elixplane
8b2e5151f2ac3d19a77089da5c32e0e6b47a3d33
[ "MIT" ]
null
null
null
lib/xplane_data.ex
robinhilliard/elixplane
8b2e5151f2ac3d19a77089da5c32e0e6b47a3d33
[ "MIT" ]
null
null
null
defmodule XPlane.Data do @moduledoc """ Get and set X-Plane data. """ @startup_grace_period 1100 @listen_port 59000 use GenServer # API @doc """ Start GenServer to exchange data references with a specific X-Plane instance. ## Parameters - instance: X-Plane instance fro...
27.828829
103
0.603647
18c19558bd50115e5ff3af2409eb684168ffd524
407
ex
Elixir
lib/kvstore/supervisor.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
lib/kvstore/supervisor.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
lib/kvstore/supervisor.ex
Ellocsys/KVstore
f5ee23a189bdf537e0ffa8ee7489f39880a21971
[ "MIT" ]
null
null
null
defmodule KVstore.Supervisor do use Supervisor def start_link(opts) do Supervisor.start_link(__MODULE__, opts, opts) end def init(opts) do children = [ {KVstore.Storage, [file_name: opts[:table_name]]}, Plug.Adapters.Cowboy.child_spec(:http, KVstore.Router, [], port: 80...
23.941176
78
0.636364
18c1982b3da3edc08b8ad481270011d9d22a8bf7
1,029
ex
Elixir
lib/tic_tac_toe/application.ex
bryanchun/tic_tac_toe
cad397ce72857669a685337911c7ae692cbd1695
[ "MIT" ]
null
null
null
lib/tic_tac_toe/application.ex
bryanchun/tic_tac_toe
cad397ce72857669a685337911c7ae692cbd1695
[ "MIT" ]
null
null
null
lib/tic_tac_toe/application.ex
bryanchun/tic_tac_toe
cad397ce72857669a685337911c7ae692cbd1695
[ "MIT" ]
null
null
null
defmodule TicTacToe.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository #TicTacToe.Repo, # Start the Telemetry supervisor Ti...
29.4
67
0.706511
18c1ab0449a8b5798c4189cb8f36629dd6ffd186
609
ex
Elixir
learning/gnome/game/gallows/lib/gallows_web/controllers/hangman_controller.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
2
2020-01-20T20:15:20.000Z
2020-02-27T11:08:42.000Z
learning/gnome/game/gallows/lib/gallows_web/controllers/hangman_controller.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
learning/gnome/game/gallows/lib/gallows_web/controllers/hangman_controller.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
defmodule GallowsWeb.HangmanController do use GallowsWeb, :controller def new_game(conn, _params) do render(conn, "new_game.html") end def create_game(conn, _params) do game = Hangman.new_game() tally = Hangman.tally(game) conn |> put_session(:game, game) |> render("game_field.html", ...
21
49
0.64532
18c22de4d7c745ed67e02058b6ef14cba73dfd47
66
exs
Elixir
test/test_helper.exs
mager/discogs-ex
f5df10d32d1a6c31f241e91a997adff555b89861
[ "BSD-3-Clause" ]
2
2018-05-13T20:42:20.000Z
2020-08-02T19:57:15.000Z
test/test_helper.exs
mager/discogs-ex
f5df10d32d1a6c31f241e91a997adff555b89861
[ "BSD-3-Clause" ]
null
null
null
test/test_helper.exs
mager/discogs-ex
f5df10d32d1a6c31f241e91a997adff555b89861
[ "BSD-3-Clause" ]
null
null
null
ExUnit.start() ExVCR.Config.cassette_library_dir("test/fixtures")
22
50
0.818182
18c2322d0285ab310d7c89b52ea8857a1a28ac8e
953
ex
Elixir
test/support/channel_case.ex
nuclearfurnace/stormcaster
2ba34f2a6ee18dfa0b8fa546ba82483827785c4c
[ "MIT" ]
null
null
null
test/support/channel_case.ex
nuclearfurnace/stormcaster
2ba34f2a6ee18dfa0b8fa546ba82483827785c4c
[ "MIT" ]
null
null
null
test/support/channel_case.ex
nuclearfurnace/stormcaster
2ba34f2a6ee18dfa0b8fa546ba82483827785c4c
[ "MIT" ]
null
null
null
defmodule StormcasterWeb.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 interact...
25.078947
73
0.720881
18c2538086ccb5ca16cced6808f587545c53b8aa
3,287
ex
Elixir
lib/sanbase/signals/historical_activity.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
lib/sanbase/signals/historical_activity.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
lib/sanbase/signals/historical_activity.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule Sanbase.Signal.HistoricalActivity do @moduledoc ~s""" Table that persists triggered signals and their payload. """ @derive [Jason.Encoder] use Ecto.Schema import Ecto.Query import Ecto.Changeset alias Sanbase.Signal.UserTrigger alias Sanbase.Auth.User alias Sanbase.Repo alias __MODULE...
28.582609
100
0.672954
18c27b151a46bb3fa0f2e5bb3329396355d70b54
10,193
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/api/adunits.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/api/adunits.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/api/adunits.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...
41.946502
206
0.678309
18c286d9aeaa96e91c69c41358c7d7ef52a39289
2,088
ex
Elixir
lib/pastelli.ex
elli-lib/pastelli
c5f17ffd2d3b53a705297e5aea5d1d22f74a5487
[ "MIT" ]
30
2015-04-17T09:20:20.000Z
2021-03-15T21:36:20.000Z
lib/pastelli.ex
elli-lib/pastelli
c5f17ffd2d3b53a705297e5aea5d1d22f74a5487
[ "MIT" ]
1
2016-09-09T02:26:52.000Z
2016-10-25T13:32:29.000Z
lib/pastelli.ex
zampino/pastelli
c5f17ffd2d3b53a705297e5aea5d1d22f74a5487
[ "MIT" ]
6
2016-05-09T17:03:24.000Z
2020-11-27T21:39:17.000Z
defmodule Pastelli do require Logger @moduledoc """ Adapter interface to the Elli webserver. ## Options * `:ip` - the ip to bind the server to. Must be a tuple in the format `{x, y, z, w}`. * `:port` - the port to run the server. Defaults to 4000 (http) * `:acceptors` - the number of acceptors...
24
72
0.663314
18c2973ff0fd3d5b7bcfb494e2b829812b83c4df
83
ex
Elixir
lib/kvstore/utils.ex
nekifirus/tender_pro_test
22e9758b3dec1770c6f1dd1b5984af4fd5c6420a
[ "MIT" ]
null
null
null
lib/kvstore/utils.ex
nekifirus/tender_pro_test
22e9758b3dec1770c6f1dd1b5984af4fd5c6420a
[ "MIT" ]
null
null
null
lib/kvstore/utils.ex
nekifirus/tender_pro_test
22e9758b3dec1770c6f1dd1b5984af4fd5c6420a
[ "MIT" ]
null
null
null
defmodule KVstore.Utils do @moduledoc """ Module for utils functions """ end
13.833333
28
0.698795
18c2b8245d390d68f40ae31550c385b08d7b1030
1,908
exs
Elixir
clients/admin/mix.exs
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/admin/mix.exs
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/admin/mix.exs
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.477612
189
0.658805
18c2e62d3c73da114a3e2123b88decdddda0138d
999
ex
Elixir
lib/commanded/serialization/json_serializer.ex
beorc/commanded
1330585f2c7397e1d4dd5d4789fea85a43ab031b
[ "MIT" ]
null
null
null
lib/commanded/serialization/json_serializer.ex
beorc/commanded
1330585f2c7397e1d4dd5d4789fea85a43ab031b
[ "MIT" ]
null
null
null
lib/commanded/serialization/json_serializer.ex
beorc/commanded
1330585f2c7397e1d4dd5d4789fea85a43ab031b
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(Jason) do defmodule Commanded.Serialization.JsonSerializer do @moduledoc """ A serializer that uses the JSON format and Jason library. """ alias Commanded.EventStore.TypeProvider alias Commanded.Serialization.JsonDecoder @doc """ Serialize given term to JSON binary...
24.365854
67
0.634635
18c3075097c695001ad9ac90d59cfe0e6279c902
288
ex
Elixir
lib/daily_meals_web/views/meals_view.ex
cassiofariasmachado/daily-meals
fa1965fa1190818e8f74382635b5174ab1e19eee
[ "MIT" ]
null
null
null
lib/daily_meals_web/views/meals_view.ex
cassiofariasmachado/daily-meals
fa1965fa1190818e8f74382635b5174ab1e19eee
[ "MIT" ]
null
null
null
lib/daily_meals_web/views/meals_view.ex
cassiofariasmachado/daily-meals
fa1965fa1190818e8f74382635b5174ab1e19eee
[ "MIT" ]
null
null
null
defmodule DailyMealsWeb.MealsView do use DailyMealsWeb, :view alias DailyMeals.Meal def render("create.json", %{meal: %Meal{} = meal}) do %{ message: "Meal created", meal: meal } end def render("meal.json", %{meal: %Meal{} = meal}), do: %{meal: meal} end
19.2
69
0.611111
18c30e18ce67652af4c0b1b7698e0f2b529d49de
1,596
ex
Elixir
server/lib/freedom_account/accounts.ex
randycoulman/freedomAccount
c1c51a765052aa318ad3a504a396e8d07a770195
[ "MIT" ]
6
2019-04-03T19:16:01.000Z
2020-08-10T09:38:24.000Z
server/lib/freedom_account/accounts.ex
randycoulman/freedomAccount
c1c51a765052aa318ad3a504a396e8d07a770195
[ "MIT" ]
32
2019-03-19T02:45:45.000Z
2021-12-05T06:58:07.000Z
server/lib/freedom_account/accounts.ex
randycoulman/freedomAccount
c1c51a765052aa318ad3a504a396e8d07a770195
[ "MIT" ]
null
null
null
defmodule FreedomAccount.Accounts do @moduledoc """ Context for working with Freedom Accounts. """ alias Ecto.Changeset alias FreedomAccount.Accounts.Account alias FreedomAccount.Authentication.User alias FreedomAccount.Repo @type account :: Account.t() @type account_id :: Account.id() @type accou...
26.6
91
0.639098
18c32d894516cda9b0d90249149c5e96908b546c
1,831
exs
Elixir
rel/config.exs
HoJSim/etog
dc2393e27915caf73eea0d8839ba198635c45ca6
[ "MIT" ]
null
null
null
rel/config.exs
HoJSim/etog
dc2393e27915caf73eea0d8839ba198635c45ca6
[ "MIT" ]
null
null
null
rel/config.exs
HoJSim/etog
dc2393e27915caf73eea0d8839ba198635c45ca6
[ "MIT" ]
null
null
null
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. ~w(rel plugins *.exs) |> Path.join() |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Distillery.Releases.Config, ...
32.696429
81
0.740033
18c35b1ed59b6831733058a03c717038662715fa
2,311
exs
Elixir
config/prod.exs
alexander-lazarov/battleships
e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707
[ "MIT" ]
null
null
null
config/prod.exs
alexander-lazarov/battleships
e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707
[ "MIT" ]
2
2020-07-17T13:59:03.000Z
2021-05-09T20:35:32.000Z
config/prod.exs
alexander-lazarov/battleships
e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707
[ "MIT" ]
null
null
null
use Mix.Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # ...
35.015152
66
0.718304
18c371e5d0bb8e0da2056f0d9aae2e2b47d76cb9
25,949
ex
Elixir
lib/aws/generated/fraud_detector.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/fraud_detector.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/fraud_detector.ex
andrewhr/aws-elixir
861dc2fafca50a2b2f83badba4cdcb44b5b0c171
[ "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.FraudDetector do @moduledoc """ This is the Amazon Fraud Detector API Reference. This guide is for developers who need detailed information about Amazon Fraud Detector API actions, data t...
36.859375
124
0.71706
18c3a1959cc4de7d3fedf136fd19378d1cd07e11
27,042
exs
Elixir
test/flop_phoenix_test.exs
maltoe/flop_phoenix
60d1a1ee6545e16911d59368e83c2faa6ab652cf
[ "MIT" ]
null
null
null
test/flop_phoenix_test.exs
maltoe/flop_phoenix
60d1a1ee6545e16911d59368e83c2faa6ab652cf
[ "MIT" ]
null
null
null
test/flop_phoenix_test.exs
maltoe/flop_phoenix
60d1a1ee6545e16911d59368e83c2faa6ab652cf
[ "MIT" ]
null
null
null
defmodule Flop.PhoenixTest do use ExUnit.Case use Phoenix.HTML import Flop.Phoenix import Flop.Phoenix.Factory import Phoenix.HTML.Safe, only: [to_iodata: 1] alias Flop.Meta alias Plug.Conn.Query doctest Flop.Phoenix, import: true @route_helper_opts [%{}, :pets] defp count_substrings(str, regex...
33.139706
134
0.537756
18c3a7e37a4527e403322599510d6e9e07ad4a52
1,031
ex
Elixir
lib/rihanna_ui/schemas/job.ex
nested-tech/rihanna_ui
89ad67e443c9fd6d014f56c2300e285572a570e8
[ "MIT" ]
null
null
null
lib/rihanna_ui/schemas/job.ex
nested-tech/rihanna_ui
89ad67e443c9fd6d014f56c2300e285572a570e8
[ "MIT" ]
null
null
null
lib/rihanna_ui/schemas/job.ex
nested-tech/rihanna_ui
89ad67e443c9fd6d014f56c2300e285572a570e8
[ "MIT" ]
null
null
null
defmodule RihannaUI.Job do use Ecto.Schema require Ecto.Query, as: Query schema Rihanna.Job.table() do field :term, RihannaUI.ETF field :enqueued_at, :utc_datetime field :failed_at, :utc_datetime field :fail_reason, :string end def enqueued() do Query.from( j in RihannaUI.Job, ...
22.911111
73
0.620757
18c3d453a40b7dfdbbcab693a66bead974956d31
2,235
ex
Elixir
clients/content/lib/google_api/content/v2/model/table.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/content/lib/google_api/content/v2/model/table.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/table.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 ...
39.910714
182
0.711409
18c3db1321be868ec6361e68e89cdbb29115dcb3
1,451
ex
Elixir
clients/service_usage/lib/google_api/service_usage/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/service_usage/lib/google_api/service_usage/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/service_usage/lib/google_api/service_usage/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...
37.205128
114
0.738112
18c4130c6c3bb67eb3316b42d27a3196a817d643
811
exs
Elixir
.iex.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
.iex.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
.iex.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
alias Hexpm.Repo alias Hexpm.{ Accounts.AuditLog, Accounts.Email, Accounts.Key, Accounts.Keys, Accounts.User, Accounts.UserHandles, Accounts.Users, Emails, Emails.Mailer, Repository.Assets, Repository.Download, Repository.Install, Repository.Installs, Repository.Owners, Repository.Package,...
21.918919
56
0.779285
18c414f10cd7f61ec643620f12e10a0240074b55
35,728
ex
Elixir
lib/elixir/lib/exception.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/exception.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/exception.ex
namjae/elixir
6d1561a5939d68fb61f422b83271fbc824847395
[ "Apache-2.0" ]
null
null
null
defmodule Exception do @moduledoc """ Functions to format throw/catch/exit and exceptions. Note that stacktraces in Elixir are updated on throw, errors and exits. For example, at any given moment, `System.stacktrace/0` will return the stacktrace for the last throw/error/exit that occurred in the current pr...
28.628205
153
0.655116
18c42b451ac1f3ba41c232ae4bbb7e57b3aa7ab7
4,852
exs
Elixir
apps/state/test/state/trip/added_test.exs
pacebus/mbta-api-fork
6bf1d3a16e8917c9cfac0001b184c443be1f3abd
[ "MIT" ]
null
null
null
apps/state/test/state/trip/added_test.exs
pacebus/mbta-api-fork
6bf1d3a16e8917c9cfac0001b184c443be1f3abd
[ "MIT" ]
null
null
null
apps/state/test/state/trip/added_test.exs
pacebus/mbta-api-fork
6bf1d3a16e8917c9cfac0001b184c443be1f3abd
[ "MIT" ]
1
2019-09-09T20:40:13.000Z
2019-09-09T20:40:13.000Z
defmodule State.Trip.AddedTest do @moduledoc false use ExUnit.Case import State.Trip.Added @trip_id "added_trip" @route_id "route" @route_type 3 @direction_id 0 @prediction %Model.Prediction{ trip_id: @trip_id, route_id: @route_id, direction_id: @direction_id, schedule_relationship: :add...
27.412429
99
0.604493
18c43f3266bb8ec8f0162a4006ffd49124e5a370
103
exs
Elixir
test/prowl_test.exs
zanderxyz/elixir-prowl
1b6971ea4edbc91a50dffe154152ebf6b328318e
[ "MIT" ]
1
2018-02-11T23:26:08.000Z
2018-02-11T23:26:08.000Z
test/prowl_test.exs
zanderxyz/elixir-prowl
1b6971ea4edbc91a50dffe154152ebf6b328318e
[ "MIT" ]
null
null
null
test/prowl_test.exs
zanderxyz/elixir-prowl
1b6971ea4edbc91a50dffe154152ebf6b328318e
[ "MIT" ]
null
null
null
defmodule Prowl.ProwlTest do use ExUnit.Case test "2 + 2 == 4" do assert 2 + 2 == 4 end end
12.875
28
0.601942
18c44fdfec43e6c7a32c1e9d40affacd51f36068
22,495
ex
Elixir
lib/ecto/adapters/sql.ex
mbuhot/ecto
e6c4c7df0af055ba4bae8737908b98ae85352d2f
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/sql.ex
mbuhot/ecto
e6c4c7df0af055ba4bae8737908b98ae85352d2f
[ "Apache-2.0" ]
null
null
null
lib/ecto/adapters/sql.ex
mbuhot/ecto
e6c4c7df0af055ba4bae8737908b98ae85352d2f
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Adapters.SQL do @moduledoc """ Behaviour and implementation for SQL adapters. The implementation for SQL adapter relies on `DBConnection` to provide pooling, prepare, execute and more. Developers that use `Ecto.Adapters.SQL` should implement the callbacks required both by this module and th...
32.743814
120
0.62525
18c465d6c04c39e0b28e1e0e80de984b55cc0311
903
exs
Elixir
examples/tutorial/mix.exs
renderedtext/riffed
f7d772753236d6c52ba685cf49e501e9b7c930b0
[ "Apache-2.0" ]
null
null
null
examples/tutorial/mix.exs
renderedtext/riffed
f7d772753236d6c52ba685cf49e501e9b7c930b0
[ "Apache-2.0" ]
null
null
null
examples/tutorial/mix.exs
renderedtext/riffed
f7d772753236d6c52ba685cf49e501e9b7c930b0
[ "Apache-2.0" ]
null
null
null
defmodule RiffedTutorial.Mixfile do use Mix.Project def project do [app: :riffed_tutorial, version: "0.0.1", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, compilers: [:thrift | Mix.compilers], thrift_files: Mix.Utils.extract_files(["thrift"...
23.763158
77
0.615725
18c479f8f1a9b169797915ea2a8955338e42a41d
2,350
ex
Elixir
lib/erflow_web.ex
roi-levoso/erflow
e8683fd93720703ea706af8f2317376dba3b401f
[ "MIT" ]
null
null
null
lib/erflow_web.ex
roi-levoso/erflow
e8683fd93720703ea706af8f2317376dba3b401f
[ "MIT" ]
null
null
null
lib/erflow_web.ex
roi-levoso/erflow
e8683fd93720703ea706af8f2317376dba3b401f
[ "MIT" ]
null
null
null
defmodule ErflowWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use ErflowWeb, :controller use ErflowWeb, :view The definitions below will be executed for every view, controller, etc...
22.380952
78
0.681277
18c48e777ba1c20aa6e5cdbebaafce941e719959
1,975
exs
Elixir
config/config.exs
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
config/config.exs
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
config/config.exs
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config config :lv_template, ecto_repos: [LvTemplate.Repo] ...
30.859375
117
0.706329
18c49251cf04254bf0dfd82d6dd0e817f95d4839
1,397
exs
Elixir
test/starring_test.exs
nmohoric/tentacat
3bbb9990aafad0a7232d302526ca00e282e7ba43
[ "MIT" ]
null
null
null
test/starring_test.exs
nmohoric/tentacat
3bbb9990aafad0a7232d302526ca00e282e7ba43
[ "MIT" ]
null
null
null
test/starring_test.exs
nmohoric/tentacat
3bbb9990aafad0a7232d302526ca00e282e7ba43
[ "MIT" ]
null
null
null
defmodule Tentacat.Users.StarringTest do use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney import Tentacat.Users.Starring doctest Tentacat.Users.Starring @client Tentacat.Client.new(%{access_token: "yourtokencomeshere"}) @bad_client Tentacat.Client.new(%{access_token: "badtokenc...
26.865385
73
0.664996
18c4b68f7fb2a922379ef5ba6c23a2e4a01ca94e
362
exs
Elixir
config/dev.exs
haakonst/openid_connect
e8dfd0033bb3420c1af43653406ccd870900032e
[ "MIT" ]
48
2017-08-27T11:16:42.000Z
2022-02-25T22:51:36.000Z
config/dev.exs
haakonst/openid_connect
e8dfd0033bb3420c1af43653406ccd870900032e
[ "MIT" ]
26
2017-10-17T14:56:17.000Z
2022-02-17T10:15:31.000Z
config/dev.exs
haakonst/openid_connect
e8dfd0033bb3420c1af43653406ccd870900032e
[ "MIT" ]
33
2018-05-16T12:32:53.000Z
2021-12-08T22:41:18.000Z
use Mix.Config config :openid_connect, :providers, google: [ discovery_document_uri: "https://accounts.google.com/.well-known/openid-configuration", client_id: "CLIENT_ID_1", client_secret: "CLIENT_SECRET_1", redirect_uri: "https://dev.example.com:4200/session", scope: "openid email profile", ...
30.166667
91
0.720994
18c4b6962fdd6edf723437542ed7b4609748a1c1
27,413
ex
Elixir
lib/generated/join_group.ex
kevint-simplifi/kayrock
9c88e99ec913728107ec99f9af94dc1d25e0e0d8
[ "MIT" ]
24
2019-06-26T22:08:13.000Z
2022-01-27T00:10:41.000Z
lib/generated/join_group.ex
kevint-simplifi/kayrock
9c88e99ec913728107ec99f9af94dc1d25e0e0d8
[ "MIT" ]
10
2020-04-10T07:48:53.000Z
2021-03-26T10:50:25.000Z
lib/generated/join_group.ex
kevint-simplifi/kayrock
9c88e99ec913728107ec99f9af94dc1d25e0e0d8
[ "MIT" ]
11
2019-10-30T12:53:09.000Z
2022-03-09T23:16:42.000Z
defmodule(Kayrock.JoinGroup) do @api :join_group @moduledoc "Kayrock-generated module for the Kafka `#{@api}` API\n" _ = " THIS CODE IS GENERATED BY KAYROCK" ( @vmin 0 @vmax 2 ) defmodule(V0.Request) do @vsn 0 @api :join_group @schema group_id: :string, session_timeout: :in...
32.061988
130
0.580309
18c4bd1b859bae0492351e616999b93530bb72fc
4,390
ex
Elixir
lib/httparrot.ex
idabmat/httparrot
1bc15bf4c7330341b36f7dc7d933285cda7bbf67
[ "MIT" ]
null
null
null
lib/httparrot.ex
idabmat/httparrot
1bc15bf4c7330341b36f7dc7d933285cda7bbf67
[ "MIT" ]
null
null
null
lib/httparrot.ex
idabmat/httparrot
1bc15bf4c7330341b36f7dc7d933285cda7bbf67
[ "MIT" ]
null
null
null
defmodule HTTParrot do use Application use Supervisor def start_link(arg) do Supervisor.start_link(__MODULE__, arg) end def init(_) do supervise([], strategy: :simple_one_for_one) end def start(_type, _args) do dispatch = :cowboy_router.compile([ {:_, [ {'/', :cowboy_static, {:priv_fi...
42.211538
121
0.587472
18c4dac49164a48782cefea76f70897e0a378699
23,004
exs
Elixir
lib/elixir/test/elixir/exception_test.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
lib/elixir/test/elixir/exception_test.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/exception_test.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
Code.require_file("test_helper.exs", __DIR__) defmodule ExceptionTest do use ExUnit.Case, async: true doctest Exception test "raising preserves the stacktrace" do stacktrace = try do raise "a" rescue _ -> [top | _] = System.stacktrace() top end fil...
36.688995
144
0.596983
18c52a2d23f34123367e22489fe06d7f077e5e8a
419
ex
Elixir
lib/vuetaba_web/router.ex
fobo66/vuetaba
629514acd9680190085e35ec497b68191115e508
[ "MIT" ]
9
2019-04-10T12:30:20.000Z
2020-09-07T15:07:02.000Z
lib/vuetaba_web/router.ex
fobo66/vuetaba
629514acd9680190085e35ec497b68191115e508
[ "MIT" ]
3
2019-10-28T10:39:06.000Z
2020-09-30T21:56:31.000Z
lib/vuetaba_web/router.ex
fobo66/vuetaba
629514acd9680190085e35ec497b68191115e508
[ "MIT" ]
null
null
null
defmodule VuetabaWeb.Router do use VuetabaWeb, :router pipeline :api do plug(:accepts, ["json"]) plug(VuetabaWeb.Context) end scope "/" do pipe_through(:api) if Mix.env() == :dev do forward("/graphiql", Absinthe.Plug.GraphiQL, schema: VuetabaWeb.Schema, socket: VuetabaWe...
19.045455
58
0.634845
18c52dd572f7fa2b9c3a15bf4e85e5f131f4e831
2,710
ex
Elixir
clients/storage/lib/google_api/storage/v1/model/bucket_retention_policy.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/bucket_retention_policy.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/storage/lib/google_api/storage/v1/model/bucket_retention_policy.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...
50.185185
605
0.764945
18c54bb88993e4e7eafd26cffb0151df418733db
1,641
ex
Elixir
clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_name.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_name.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_name.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.82
103
0.724558
18c58e2a80f4d21c7cf6ddb1dbde5e25bf8ea971
4,142
exs
Elixir
test/postoffice/rescuer/message_recovery_test.exs
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
15
2020-01-24T10:33:57.000Z
2020-10-24T07:57:14.000Z
test/postoffice/rescuer/message_recovery_test.exs
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
24
2020-01-24T09:52:56.000Z
2021-02-19T09:15:12.000Z
test/postoffice/rescuer/message_recovery_test.exs
andrewgy8/postoffice
eadd84c613e20af9fd4afe4591c3a336733d3f0b
[ "Apache-2.0" ]
5
2020-01-25T18:03:44.000Z
2021-02-23T10:07:03.000Z
defmodule Postoffice.Rescuer.MessageRecoveryTest do use ExUnit.Case, async: true use Oban.Testing, repo: Postoffice.Repo import Mox alias Postoffice.Fixtures alias Postoffice.Rescuer.Adapters.HttpMock alias Postoffice.Rescuer.MessageRecovery @origin_host "http://fake_origin.host" @first_message_id 1 ...
39.075472
319
0.636166
18c5ef46a7b4dc19d84edd790a7604871deda0b9
519
ex
Elixir
lib/teiserver/protocols/tachyon_v1/lobby_chat_out.ex
beyond-all-reason/teiserver
e394b5efe561eaf5700bca62e4e4263d8f720ac5
[ "MIT" ]
4
2021-07-29T16:23:20.000Z
2022-02-23T05:34:36.000Z
lib/teiserver/protocols/tachyon_v1/lobby_chat_out.ex
beyond-all-reason/teiserver
e394b5efe561eaf5700bca62e4e4263d8f720ac5
[ "MIT" ]
14
2021-08-01T02:36:14.000Z
2022-01-30T21:15:03.000Z
lib/teiserver/protocols/tachyon_v1/lobby_chat_out.ex
beyond-all-reason/teiserver
e394b5efe561eaf5700bca62e4e4263d8f720ac5
[ "MIT" ]
7
2021-05-13T12:55:28.000Z
2022-01-14T06:39:06.000Z
defmodule Teiserver.Protocols.Tachyon.V1.LobbyChatOut do @spec do_reply(atom, any) :: map() ########### # Messages def do_reply(:say, {lobby_id, sender_id, message}) do %{ "cmd" => "s.lobby.say", "lobby_id" => lobby_id, "sender" => sender_id, "message" => message } end def ...
21.625
60
0.564547
18c61203a3ee4cd110faf2ad2819fd3113405b6f
2,607
ex
Elixir
lib/oban/breaker.ex
qdentity/oban
d511f5ffd2f3b979afd6af94bc802949654ea410
[ "Apache-2.0" ]
null
null
null
lib/oban/breaker.ex
qdentity/oban
d511f5ffd2f3b979afd6af94bc802949654ea410
[ "Apache-2.0" ]
26
2021-07-24T21:32:21.000Z
2022-03-23T11:55:24.000Z
lib/oban/breaker.ex
qdentity/oban
d511f5ffd2f3b979afd6af94bc802949654ea410
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Breaker do @moduledoc false alias Oban.{Config, Telemetry} require Logger @type state_struct :: %{ :circuit => :enabled | :disabled, :conf => Config.t(), :name => GenServer.name(), :reset_timer => reference(), optional(atom()) => any() ...
24.59434
93
0.629459
18c6155b531b08fb9ffab15886702e27cb93a7f9
2,743
exs
Elixir
priv/repo/migrations/20170906172337_introduce_voting_info.exs
nunopolonia/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
1
2017-09-10T23:51:40.000Z
2017-09-10T23:51:40.000Z
priv/repo/migrations/20170906172337_introduce_voting_info.exs
nunopolonia/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
24
2018-03-14T18:17:00.000Z
2021-03-01T07:47:53.000Z
priv/repo/migrations/20170906172337_introduce_voting_info.exs
portosummerofcode/psc-api
2e358503851cc04cdaa89201a3f56586f8746736
[ "MIT" ]
null
null
null
defmodule Api.Repo.Migrations.IntroduceVotingInfo do use Ecto.Migration #alias Api.Competitions.Category alias Api.Repo defp fk(table, on_delete \\ :nilify_all, type \\ :uuid) do references(table, on_delete: on_delete, type: type) end def change do alter table(:users) do add :voter_identity...
28.873684
64
0.641633
18c6248a67db4dbaf1739402c34fd671b506c10f
15,481
ex
Elixir
lib/logger/lib/logger.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/logger/lib/logger.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
lib/logger/lib/logger.ex
liveforeverx/elixir
cf3cf0bd5443b59206e5733602244bc3543f0a53
[ "Apache-2.0" ]
null
null
null
defmodule Logger do @moduledoc ~S""" A logger for Elixir applications. It includes many features: * Provides debug, info, warn and error levels. * Supports multiple backends which are automatically supervised when plugged into Logger. * Formats and truncates messages on the client to a...
30.777336
91
0.685615
18c63a95e49b60385b34b446b788b95107ed6d12
4,477
ex
Elixir
lib/ibm_speech_to_text.ex
membraneframework/membrane_element_ibm_speech_to_text
04651abe7c723f7cf16c5336c9a0e2e917238d11
[ "Apache-2.0" ]
2
2019-06-05T05:16:54.000Z
2020-03-27T05:00:24.000Z
lib/ibm_speech_to_text.ex
membraneframework/membrane_element_ibm_speech_to_text
04651abe7c723f7cf16c5336c9a0e2e917238d11
[ "Apache-2.0" ]
null
null
null
lib/ibm_speech_to_text.ex
membraneframework/membrane_element_ibm_speech_to_text
04651abe7c723f7cf16c5336c9a0e2e917238d11
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Element.IBMSpeechToText do @moduledoc """ An element providing speech recognition via IBM Cloud Speech to Text service. This element sends speech recognition results (`t:IBMSpeechToText.Response.t()`) via notification mechanism to pipeline. It uses [ibm_speech_to_text](https://github.com/...
30.875862
95
0.609113
18c641be087c85b63841757ea08e6e1e1e4b6552
744
ex
Elixir
sypht_client/lib/sypht_client.ex
sypht-team/sypht-elixir-client
7e42e890bf41b1fc0d3b2fa7cef01033a4213afc
[ "Apache-2.0" ]
8
2019-09-18T00:59:41.000Z
2019-12-29T05:18:41.000Z
sypht_client/lib/sypht_client.ex
sypht-team/sypht-elixir-client
7e42e890bf41b1fc0d3b2fa7cef01033a4213afc
[ "Apache-2.0" ]
null
null
null
sypht_client/lib/sypht_client.ex
sypht-team/sypht-elixir-client
7e42e890bf41b1fc0d3b2fa7cef01033a4213afc
[ "Apache-2.0" ]
null
null
null
defmodule SyphtClient do @moduledoc """ Demonstrates the Sypht API document workflow. Parsing Sypht API results is beyond the scope of this client. See https://docs.sypht.com/ for details. """ @doc """ Send the file at path to Sypht. Returns {:ok, decoded_sypht_api_response} if successful, {:error, ...
32.347826
91
0.676075
18c66740f5a0577dc6995ca76f4fbb59caef0aef
263
exs
Elixir
test/aoc2019/day9_test.exs
pauljxtan/aoc2019
77abd8720a82b6d6080419fe3f34acbb781899d4
[ "WTFPL" ]
1
2020-03-27T14:57:32.000Z
2020-03-27T14:57:32.000Z
test/aoc2019/day9_test.exs
pauljxtan/aoc2019
77abd8720a82b6d6080419fe3f34acbb781899d4
[ "WTFPL" ]
1
2019-12-07T14:32:47.000Z
2019-12-08T16:18:07.000Z
test/aoc2019/day9_test.exs
pauljxtan/aoc2019
77abd8720a82b6d6080419fe3f34acbb781899d4
[ "WTFPL" ]
null
null
null
defmodule Aoc2019.Day9Test do use ExUnit.Case test "part 1" do assert Aoc2019.Day9.solve_part1() == 3_989_758_265 end # TODO optimize @tag timeout: :infinity @tag :skip test "part 2" do assert Aoc2019.Day9.solve_part2() == 76791 end end
17.533333
54
0.688213
18c66749ed9622c055f772accbb7724a547ca9b5
2,964
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_apply_updates_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_apply_updates_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_apply_updates_request.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...
44.909091
236
0.732794
18c687e16ecbc751a82aa29f081c159c2174ed21
1,244
ex
Elixir
lib/messengyr/web/views/error_helpers.ex
josecarlo-macariola/messengyr
b0d141b3665b22be1efd740fde823c20e2ee9615
[ "Unlicense" ]
null
null
null
lib/messengyr/web/views/error_helpers.ex
josecarlo-macariola/messengyr
b0d141b3665b22be1efd740fde823c20e2ee9615
[ "Unlicense" ]
null
null
null
lib/messengyr/web/views/error_helpers.ex
josecarlo-macariola/messengyr
b0d141b3665b22be1efd740fde823c20e2ee9615
[ "Unlicense" ]
null
null
null
defmodule Messengyr.Web.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 if error = form.errors[field] do content_tag :span, translate_error(er...
30.341463
79
0.669614
18c70e659f026cfcc1905ab872607c24e720311a
1,818
ex
Elixir
lib/bundlex/build_script.ex
TypedLambda/bundlex
afbe7d6ff006382acc584ab451f7b6c886fddf3c
[ "Apache-2.0" ]
null
null
null
lib/bundlex/build_script.ex
TypedLambda/bundlex
afbe7d6ff006382acc584ab451f7b6c886fddf3c
[ "Apache-2.0" ]
null
null
null
lib/bundlex/build_script.ex
TypedLambda/bundlex
afbe7d6ff006382acc584ab451f7b6c886fddf3c
[ "Apache-2.0" ]
null
null
null
defmodule Bundlex.BuildScript do @moduledoc false alias Bundlex.Platform use Bunch @script_ext unix: ".sh", windows: ".bat" @script_prefix unix: "#!/bin/sh\n", windows: "@echo off\r\n" @type t :: %__MODULE__{ commands: [command_t] } @type command_t :: String.t() defstruct commands...
26.347826
88
0.60231
18c71c1d6e0bebcd44ba9ac0d8e39a8caa82a00e
506
exs
Elixir
config/test.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
4
2021-05-04T13:14:32.000Z
2021-09-04T12:16:44.000Z
config/test.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
null
null
null
config/test.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
null
null
null
import Config # We don't run a server during test. If one is required, # you can enable the server option below. config :phoenix_live_view_collection, LiveViewCollectionWeb.Endpoint, http: [ip: {127, 0, 0, 1}, port: 4002], secret_key_base: "yQs3//1Z+8X8DQukLAHAWU42ejMnGWiTLl6EDVDTI+wWHGli5tXy0AfVuhbVOAeL", serve...
33.733333
86
0.77668
18c741ce385182ac0e5ea15bcc1a9dd28c077583
2,091
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/scaling_schedule_status.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/scaling_schedule_status.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/scaling_schedule_status.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.45283
283
0.724534
18c75a249f98d4e87df1066d6e87a1c3983fa5a6
1,255
ex
Elixir
test/support/conn_case.ex
andys8/stripcode
65a30d946ac20ad1b0e9635e6a3569b7a65e6270
[ "MIT" ]
281
2021-01-15T14:59:38.000Z
2022-01-06T23:13:33.000Z
test/support/conn_case.ex
andys8/stripcode
65a30d946ac20ad1b0e9635e6a3569b7a65e6270
[ "MIT" ]
12
2021-01-15T15:24:54.000Z
2021-07-31T17:36:39.000Z
test/support/conn_case.ex
andys8/stripcode
65a30d946ac20ad1b0e9635e6a3569b7a65e6270
[ "MIT" ]
11
2021-01-15T17:46:59.000Z
2021-09-22T13:24:19.000Z
defmodule OnlyCodesWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if ...
28.522727
71
0.72749
18c779ad079f2316193f1bec0dbf1bb7eaf54c4f
2,151
ex
Elixir
apps/meeple/lib/meeple/board/plan.ex
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
null
null
null
apps/meeple/lib/meeple/board/plan.ex
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
13
2021-12-24T23:44:10.000Z
2022-03-04T20:56:28.000Z
apps/meeple/lib/meeple/board/plan.ex
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
null
null
null
defmodule Meeple.Plan do use Agent require Logger alias Meeple.Action @spec start_link(nil | maybe_improper_list | map) :: {:error, any} | {:ok, pid} def start_link(args \\ []) do Agent.start_link(&initial_state/0, name: args[:name] || __MODULE__) end defp initial_state() do %{planned: :queue....
29.465753
93
0.650395
18c7f9282c82737f8e468fdc7b28a86019043106
906
ex
Elixir
lib/learn/api/announcements.ex
mark-b-kauffman/bblearn_rest_client
63fb0da9b8027e385df927f43ec5e9ea4a517570
[ "BSD-3-Clause" ]
null
null
null
lib/learn/api/announcements.ex
mark-b-kauffman/bblearn_rest_client
63fb0da9b8027e385df927f43ec5e9ea4a517570
[ "BSD-3-Clause" ]
null
null
null
lib/learn/api/announcements.ex
mark-b-kauffman/bblearn_rest_client
63fb0da9b8027e385df927f43ec5e9ea4a517570
[ "BSD-3-Clause" ]
null
null
null
defmodule Learn.Api.Announcements do require IEx @moduledoc """ Learn.Api.Announcements """ @v1_announcements "/learn/api/public/v1/announcements" # Since: 3100.7.0 ## ANNOUNCEMENTS ## Functions that call the v1_announcements endpoint def get_announcements(rest_client, params ...
39.391304
119
0.679912
18c80a9ac6678423a46984e712fad87be3dc6afe
1,816
exs
Elixir
mix.exs
victorolinasc/rihanna
560353c43e22bf81be14fbaaea066a144c0a55c9
[ "MIT" ]
null
null
null
mix.exs
victorolinasc/rihanna
560353c43e22bf81be14fbaaea066a144c0a55c9
[ "MIT" ]
null
null
null
mix.exs
victorolinasc/rihanna
560353c43e22bf81be14fbaaea066a144c0a55c9
[ "MIT" ]
null
null
null
defmodule Rihanna.MixProject do use Mix.Project def project do [ app: :rihanna, version: "1.2.0", elixir: "~> 1.5", start_permanent: Mix.env() == :prod, deps: deps(), dialyzer: [ignore_warnings: "dialyzer.ignore-warnings"], package: package(), elixirc_paths: elix...
27.104478
73
0.561674
18c810e04ad95208511149faa07dac0ef98de32d
2,487
ex
Elixir
lib/accent/operations/operation_batcher.ex
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
lib/accent/operations/operation_batcher.ex
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
lib/accent/operations/operation_batcher.ex
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
defmodule Accent.OperationBatcher do import Ecto.Query, only: [from: 2] alias Accent.{Repo, Operation} @time_limit 60 @time_unit "minute" def batch(%{batch_operation_id: id}) when not is_nil(id), do: {0, nil} def batch(operation) do with existing_operation when not is_nil(existing_operation) <- find...
33.608108
133
0.691998
18c816bde1d71bbe01388eebdaf97a4c18be8e62
1,765
exs
Elixir
benchmarks/bench_helper.exs
alexandrubagu/nebulex
c8870a91644545f7a10a6af825ef6822a40fadf4
[ "MIT" ]
845
2017-02-14T14:16:11.000Z
2022-03-30T04:13:08.000Z
benchmarks/bench_helper.exs
alexandrubagu/nebulex
c8870a91644545f7a10a6af825ef6822a40fadf4
[ "MIT" ]
146
2017-04-29T16:11:14.000Z
2022-03-29T08:49:05.000Z
benchmarks/bench_helper.exs
alexandrubagu/nebulex
c8870a91644545f7a10a6af825ef6822a40fadf4
[ "MIT" ]
50
2017-08-17T13:44:06.000Z
2022-03-30T11:29:59.000Z
defmodule BenchHelper do @moduledoc """ Benchmark commons. """ @doc false def benchmarks(cache) do %{ "get" => fn input -> cache.get(input) end, "get_all" => fn input -> cache.get_all([input, "foo", "bar"]) end, "put" => fn input -> cache.put(input, i...
22.628205
87
0.481586
18c81e68ac8db9f2506d54795cebbeb2bc11c4a9
692
ex
Elixir
lib/nacha/records/entry_detail.ex
goalves/nacha
24b60b46f5539700802bb6c8934511bdb49fc7ff
[ "Apache-2.0" ]
1
2020-02-10T22:56:24.000Z
2020-02-10T22:56:24.000Z
lib/nacha/records/entry_detail.ex
goalves/nacha
24b60b46f5539700802bb6c8934511bdb49fc7ff
[ "Apache-2.0" ]
null
null
null
lib/nacha/records/entry_detail.ex
goalves/nacha
24b60b46f5539700802bb6c8934511bdb49fc7ff
[ "Apache-2.0" ]
null
null
null
defmodule Nacha.Records.EntryDetail do @moduledoc """ A struct containing data for an individual entry detail record, which represents a single transfer. """ use Nacha.Record, fields: [ {:standard_entry_class, :string, 0}, {:record_type_code, :number, 1, 6}, {:transaction_code, :string,...
28.833333
65
0.605491
18c8489e8fb10b5501b4346b7905be0ba6f37f7d
76
exs
Elixir
test/views/page_view_test.exs
nethad/appricot-phoenix
cbce91b23e785f6f3501014710a473547b4af386
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
nethad/appricot-phoenix
cbce91b23e785f6f3501014710a473547b4af386
[ "MIT" ]
null
null
null
test/views/page_view_test.exs
nethad/appricot-phoenix
cbce91b23e785f6f3501014710a473547b4af386
[ "MIT" ]
null
null
null
defmodule Appricot.PageViewTest do use Appricot.ConnCase, async: true end
19
36
0.815789
18c84a40b5c1a8d05f20c26b840c4118b5ecb1c2
4,963
exs
Elixir
apps/nerves_hub_api/test/nerves_hub_api_web/controllers/product_user_controller_test.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
111
2018-07-25T01:07:51.000Z
2022-01-25T17:03:01.000Z
apps/nerves_hub_api/test/nerves_hub_api_web/controllers/product_user_controller_test.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
361
2018-07-22T12:53:00.000Z
2022-03-31T18:50:34.000Z
apps/nerves_hub_api/test/nerves_hub_api_web/controllers/product_user_controller_test.exs
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
54
2018-08-26T02:58:04.000Z
2022-03-09T10:12:19.000Z
defmodule NervesHubAPIWeb.ProductUserControllerTest do use NervesHubAPIWeb.ConnCase, async: true alias NervesHubWebCore.Fixtures alias NervesHubWebCore.Products setup context do org = Fixtures.org_fixture(context.user, %{name: "api_test"}) product = Fixtures.product_fixture(context.user, org, %{name: ...
29.541667
97
0.61213
18c8e8cf88038ee4df1b5d118f01e16b5642eaf8
282
ex
Elixir
lib/ecto/erd/color.ex
patatoid/ecto_erd
526a97001bcdeb4c956eb8bc04c30480e762d0b3
[ "Apache-2.0" ]
null
null
null
lib/ecto/erd/color.ex
patatoid/ecto_erd
526a97001bcdeb4c956eb8bc04c30480e762d0b3
[ "Apache-2.0" ]
null
null
null
lib/ecto/erd/color.ex
patatoid/ecto_erd
526a97001bcdeb4c956eb8bc04c30480e762d0b3
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.ERD.Color do @moduledoc false @colors ~w( antiquewhite1 azure seashell2 snow1 aliceblue darkslategray1 khaki2 seashell1 ) def get(term) do Enum.at(@colors, :erlang.phash2(term, length(@colors))) end end
16.588235
59
0.609929
18c90be057a5e0c7e060658feb2c5c100316b5d9
993
ex
Elixir
Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/security_alert_policy_properties.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.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/security_alert_policy_properties.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/security_alert_policy_properties.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.Database.PostgreSql.Model.SecurityAlertPolicyProperties do @moduledoc """ Properties of a security alert policy. ...
26.131579
114
0.693857
18c91ae0b1be2ba08b79bc1adc5f3702b8a2ec5e
1,600
ex
Elixir
lib/plate_slate_web/channels/user_socket.ex
nontech/graphql_absinthe
c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde
[ "MIT" ]
null
null
null
lib/plate_slate_web/channels/user_socket.ex
nontech/graphql_absinthe
c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde
[ "MIT" ]
null
null
null
lib/plate_slate_web/channels/user_socket.ex
nontech/graphql_absinthe
c813fcb020c4d2e6eb9fcebdc05cc36d6fcf2dde
[ "MIT" ]
null
null
null
#--- # Excerpted from "Craft GraphQL APIs in Elixir with Absinthe", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any pur...
34.782609
86
0.719375
18c92a58770f912a01dd54f477d972ec2cd6420f
876
ex
Elixir
lib/vex/blank.ex
r26D/vex
328a39f7688000e2746386eabe2f40e6c8e7796b
[ "MIT" ]
null
null
null
lib/vex/blank.ex
r26D/vex
328a39f7688000e2746386eabe2f40e6c8e7796b
[ "MIT" ]
null
null
null
lib/vex/blank.ex
r26D/vex
328a39f7688000e2746386eabe2f40e6c8e7796b
[ "MIT" ]
null
null
null
defprotocol Vex.Blank do @doc "Whether an item is blank" def blank?(value) end defimpl Vex.Blank, for: List do def blank?([]), do: true def blank?(_), do: false end defimpl Vex.Blank, for: Float do def blank?(_), do: false end defimpl Vex.Blank, for: Integer do def blank?(_), do: false end defimpl Vex.B...
18.638298
58
0.6621
18c94b86de60cb1bff1cc3b29c8736ca01d77281
382
ex
Elixir
lib/phoenix_elm_web/views/error_view.ex
ejpcmac/phoenix_elm
cc43a2253610728fbf2db9bd87b5341e82a27e5e
[ "BSD-3-Clause" ]
null
null
null
lib/phoenix_elm_web/views/error_view.ex
ejpcmac/phoenix_elm
cc43a2253610728fbf2db9bd87b5341e82a27e5e
[ "BSD-3-Clause" ]
null
null
null
lib/phoenix_elm_web/views/error_view.ex
ejpcmac/phoenix_elm
cc43a2253610728fbf2db9bd87b5341e82a27e5e
[ "BSD-3-Clause" ]
null
null
null
defmodule PhoenixElmWeb.ErrorView do use PhoenixElmWeb, :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(_t...
21.222222
47
0.706806
18c96c1f5502d4d57a5f0836f44579f82287a298
2,209
exs
Elixir
mix.exs
StephaneRob/algoliax
692edbe71b2197fd42ee76885b121802e9a6466e
[ "BSD-2-Clause" ]
11
2020-01-16T14:56:12.000Z
2020-09-03T10:38:41.000Z
mix.exs
StephaneRob/algoliax
692edbe71b2197fd42ee76885b121802e9a6466e
[ "BSD-2-Clause" ]
12
2019-11-22T09:40:51.000Z
2020-08-19T06:09:15.000Z
mix.exs
StephaneRob/algoliax
692edbe71b2197fd42ee76885b121802e9a6466e
[ "BSD-2-Clause" ]
3
2020-01-16T15:53:19.000Z
2020-04-30T12:31:48.000Z
defmodule Algoliax.MixProject do use Mix.Project @source_url "https://github.com/WTTJ/algoliax" @version "0.7.1" def project do [ app: :algoliax, name: "Algoliax", version: @version, elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), aliases: al...
25.390805
88
0.538705
18c9a131a070d13d8ffdaf521a4beaddb5146f37
7,165
exs
Elixir
test/exdns/resolver_test.exs
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
16
2016-05-26T10:11:57.000Z
2021-01-08T15:09:19.000Z
test/exdns/resolver_test.exs
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
9
2016-08-11T00:48:27.000Z
2020-09-16T22:10:07.000Z
test/exdns/resolver_test.exs
jeanparpaillon/exdns
53b7fc780399eda96d42052e11e03d5eb0dcd789
[ "MIT" ]
11
2016-08-10T08:13:36.000Z
2021-04-03T10:20:11.000Z
defmodule Exdns.ResolverTest do use ExUnit.Case, async: true require Logger require Exdns.Records test "resolve with no questions" do message = Exdns.Records.dns_message() assert Exdns.Resolver.resolve(message, :authority, :host) == message end test "resolve with one question for type A" do {:...
45.636943
140
0.728681
18c9a5d8379869a9befe6da84950816e3b905b07
1,194
ex
Elixir
api/lib/trello_clone_api_web/channels/user_socket.ex
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
1
2021-04-17T20:20:59.000Z
2021-04-17T20:20:59.000Z
api/lib/trello_clone_api_web/channels/user_socket.ex
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
null
null
null
api/lib/trello_clone_api_web/channels/user_socket.ex
arkanoryn/trello-clone
2d5f5bc5c498c1740054dc56da16ad78c545b755
[ "Apache-2.0" ]
null
null
null
defmodule TrelloCloneApiWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", TrelloCloneApiWeb.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used t...
31.421053
89
0.708543
18c9b6b5fc227557bfe53b95bbdf0ff82fe670ca
341
ex
Elixir
lib/fizzbuzz.ex
byhbt/ex_kata
022a6c245ab84a62046703d71c490c9b89d404a3
[ "MIT" ]
null
null
null
lib/fizzbuzz.ex
byhbt/ex_kata
022a6c245ab84a62046703d71c490c9b89d404a3
[ "MIT" ]
4
2021-07-10T15:41:49.000Z
2021-07-18T12:21:14.000Z
lib/fizzbuzz.ex
byhbt/ex_kata
022a6c245ab84a62046703d71c490c9b89d404a3
[ "MIT" ]
null
null
null
defmodule Fizzbuzz do @moduledoc """ Documentation for `StringCalculator`. """ def go(min, max) do Enum.each(min..max, fn n -> IO.puts(go(n)) end) end def go(number) do case {rem(number, 3), rem(number, 5)} do {0, 0} -> "fizzbuzz" {0, _} -> "fizz" {_, 0} -> "buzz" _ -> numb...
17.947368
51
0.533724
18c9f12e0f362981e1dd9f0d58fe5b16a341b96f
1,799
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/accounts_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/accounts_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/accounts_list.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.98
141
0.733741
18ca0ac061d2237e41f19df334a22568148ea1d3
5,167
exs
Elixir
apps/re_integrations/test/routific/routific_test.exs
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re_integrations/test/routific/routific_test.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
null
null
null
apps/re_integrations/test/routific/routific_test.exs
eduardomartines/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule ReIntegrations.RoutificTest do use ReIntegrations.ModelCase use Mockery import Re.Factory alias ReIntegrations.Routific @visits [ %{ id: "1", duration: 10, address: "x", neighborhood: "Vila Mariana", lat: 1.0, lng: 1.0 } ] setup do address = in...
26.772021
98
0.470292
18ca0f53e04359ac56b48bc1ce8f7b2475ac5484
539
ex
Elixir
lib/random_tweets.ex
taylonr/random-tweets
b49da6231565c89ce23a13e40eb7070a9f54344b
[ "MIT" ]
4
2016-11-24T08:40:44.000Z
2019-05-24T13:09:14.000Z
lib/random_tweets.ex
taylonr/random-tweets
b49da6231565c89ce23a13e40eb7070a9f54344b
[ "MIT" ]
null
null
null
lib/random_tweets.ex
taylonr/random-tweets
b49da6231565c89ce23a13e40eb7070a9f54344b
[ "MIT" ]
null
null
null
defmodule RandomTweets do defp configure_twitter() do ExTwitter.configure( consumer_key: System.get_env("ELIXIR_TWITTER_CONSUMER_KEY"), consumer_secret: System.get_env("ELIXIR_TWITTER_CONSUMER_SECRET"), access_token: System.get_env("ELIXIR_TWITTER_ACCESS_TOKEN"), ...
33.6875
79
0.688312
18ca2b3092e6611801f83a16f369a84e4123d6f8
1,530
ex
Elixir
clients/monitoring/lib/google_api/monitoring/v3/model/range.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/range.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/monitoring/lib/google_api/monitoring/v3/model/range.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...
30
77
0.721569
18ca5fb018b013784b20e1a425bf2daf741ba41c
5,199
ex
Elixir
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/target.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/target.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/target.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
62.638554
575
0.704366