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
627b8035b3f1ad3bee36f97a1136454a2b99fe7d
64,151
exs
Elixir
test/livebook/session/data_test.exs
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
test/livebook/session/data_test.exs
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
test/livebook/session/data_test.exs
edmundobiglia/livebook
d3b4a8a9e6d2f34d2c309e6cc59774dcf12ba0af
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Session.DataTest do use ExUnit.Case, async: true alias Livebook.Session.Data alias Livebook.{Delta, Notebook} alias Livebook.Notebook.Cell alias Livebook.Users.User alias Livebook.Runtime.NoopRuntime describe "new/1" do test "called with no arguments defaults to a blank notebook"...
35.074358
100
0.512463
627b836a6742207f0467c492a586c48808de4f05
1,322
exs
Elixir
config/config.exs
hectorperez/amplitude_ex
4df519f2e8edfefcc61e5732da1f3b1190bec293
[ "BSD-3-Clause" ]
null
null
null
config/config.exs
hectorperez/amplitude_ex
4df519f2e8edfefcc61e5732da1f3b1190bec293
[ "BSD-3-Clause" ]
null
null
null
config/config.exs
hectorperez/amplitude_ex
4df519f2e8edfefcc61e5732da1f3b1190bec293
[ "BSD-3-Clause" ]
2
2020-04-26T22:17:11.000Z
2021-08-16T14:38:44.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
33.897436
73
0.745083
627ba7f1bcea5779496dc32f64bb9bed5008bcf2
367
ex
Elixir
exercises/practice/gigasecond/lib/gigasecond.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/practice/gigasecond/lib/gigasecond.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/practice/gigasecond/lib/gigasecond.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule Gigasecond do @doc """ Calculate a date one billion seconds after an input date. """ @spec from({{pos_integer, pos_integer, pos_integer}, {pos_integer, pos_integer, pos_integer}}) :: {{pos_integer, pos_integer, pos_integer}, {pos_integer, pos_integer, pos_integer}} def from({{year, month, ...
36.7
99
0.700272
627bfac9c23a23396a6e4a350e10ec6ad388212e
373
ex
Elixir
contrib/examples/elixir/lib/brod_sample/application.ex
kianmeng/brod
7f009a7a194f9646cd8fde6df76b25c24a620308
[ "Apache-2.0" ]
529
2015-03-18T15:36:44.000Z
2021-02-19T18:29:22.000Z
contrib/examples/elixir/lib/brod_sample/application.ex
kianmeng/brod
7f009a7a194f9646cd8fde6df76b25c24a620308
[ "Apache-2.0" ]
356
2015-06-11T06:20:27.000Z
2021-02-26T08:30:26.000Z
contrib/examples/elixir/lib/brod_sample/application.ex
kianmeng/brod
7f009a7a194f9646cd8fde6df76b25c24a620308
[ "Apache-2.0" ]
178
2015-03-02T20:15:13.000Z
2021-02-18T10:04:52.000Z
defmodule BrodSample.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 = [ BrodSample.GroupSubscriber ] opts = [strategy: :one_for_one, name: BrodSample.Supervisor]...
23.3125
64
0.726542
627bff611594331d3071caf3157bf1b6c04cb804
5,574
exs
Elixir
test/phoenix/live_dashboard/live/processes_live_test.exs
ourobouros/phoenix_live_dashboard
da3165cf115ab0dafee3fcd95568a99a271d940f
[ "MIT" ]
null
null
null
test/phoenix/live_dashboard/live/processes_live_test.exs
ourobouros/phoenix_live_dashboard
da3165cf115ab0dafee3fcd95568a99a271d940f
[ "MIT" ]
null
null
null
test/phoenix/live_dashboard/live/processes_live_test.exs
ourobouros/phoenix_live_dashboard
da3165cf115ab0dafee3fcd95568a99a271d940f
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveDashboard.ProcessesLiveTest do use ExUnit.Case, async: true import Phoenix.ConnTest import Phoenix.LiveViewTest @endpoint Phoenix.LiveDashboardTest.Endpoint test "shows processes with limit" do {:ok, live, rendered} = live(build_conn(), "/dashboard/nonode@nohost/processes") ass...
45.688525
103
0.69878
627c22b98fb8f4e4e4310050969818335a5664a4
5,063
exs
Elixir
test/oban/crontab/crontab_test.exs
gabrielpra1/oban
e8bde2ec5c0e7f893d3c4d8a4d27b63900ce7faf
[ "Apache-2.0" ]
null
null
null
test/oban/crontab/crontab_test.exs
gabrielpra1/oban
e8bde2ec5c0e7f893d3c4d8a4d27b63900ce7faf
[ "Apache-2.0" ]
null
null
null
test/oban/crontab/crontab_test.exs
gabrielpra1/oban
e8bde2ec5c0e7f893d3c4d8a4d27b63900ce7faf
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Crontab.CronTest do use Oban.Case, async: true alias Oban.Crontab.Cron describe "parse!/1" do property "literal values and aliases are parsed" do check all minutes <- integer(0..59), hours <- integer(0..23), days <- integer(1..31), months ...
27.972376
93
0.510567
627c261fd4503fba1aa65d391bec4efc35741fdd
554
ex
Elixir
lib/ex_litedb/cache.ex
litedb/ex_litedb
ed1ca3a2721d05726e814b393b73c4e08df9350b
[ "MIT" ]
null
null
null
lib/ex_litedb/cache.ex
litedb/ex_litedb
ed1ca3a2721d05726e814b393b73c4e08df9350b
[ "MIT" ]
null
null
null
lib/ex_litedb/cache.ex
litedb/ex_litedb
ed1ca3a2721d05726e814b393b73c4e08df9350b
[ "MIT" ]
null
null
null
defmodule ExLitedb.CacheETS do use GenServer @name :ex_sqlean_cache def init(arg) do :ets.new(@name, [ :set, :public, :named_table, {:read_concurrency, true}, {:write_concurrency, true} ]) {:ok, arg} end def start_link(arg) do GenServer.start_link(__MODULE__, a...
15.828571
59
0.568592
627c85148c87181bddddcb7b87584f73bfcd7adf
2,682
ex
Elixir
clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/import_context_csv_import_options.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/model/import_context_csv_import_options.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/model/import_context_csv_import_options.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.258065
194
0.711409
627cc7dcc46ba18cf7be3a648e8df488b218d3af
1,813
ex
Elixir
apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/filled.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/filled.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/filled.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.Messages.UpdateOrders.Filled do defstruct ~w( account avg_px cl_ord_id cum_qty leaves_qty ord_status order_id symbol timestamp working_indicator )a end defimpl Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.Message, for: T...
26.661765
93
0.683949
627cdc6fe54cdca9b2970d07a44193437ef04fe9
8,633
ex
Elixir
lib/site_encrypt/acme/server.ex
bucha/site_encrypt
b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb
[ "MIT" ]
null
null
null
lib/site_encrypt/acme/server.ex
bucha/site_encrypt
b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb
[ "MIT" ]
null
null
null
lib/site_encrypt/acme/server.ex
bucha/site_encrypt
b5559fa26ce84fd8cb84ebfcddb1b9967214e2eb
[ "MIT" ]
null
null
null
defmodule SiteEncrypt.Acme.Server do @moduledoc false use Parent.Supervisor require Logger alias SiteEncrypt.Acme.Server.Account @type start_opts :: [id: SiteEncrypt.id(), dns: dns, port: pos_integer()] @type config :: %{id: SiteEncrypt.id(), site: String.t(), site_uri: URI.t(), dns: dns} @type dns :: %{...
32.700758
98
0.654002
627cfe922bbbba5dcfa7e1754c28fe2b21213a78
14,845
ex
Elixir
lib/tortoise/handler.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
1
2021-05-05T05:56:51.000Z
2021-05-05T05:56:51.000Z
lib/tortoise/handler.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
null
null
null
lib/tortoise/handler.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
null
null
null
defmodule Tortoise.Handler do @moduledoc """ User defined callback module for handling connection life cycle events. `Tortoise.Handler` defines a behaviour which can be given to a `Tortoise.Connection`. This allow the user to implement functionality for events happening in the life cycle of the connection,...
35.857488
97
0.66972
627d0fd87e9fffd4c5bbbd34da46ed9992872a3d
2,028
exs
Elixir
test/retry_token_test.exs
5ebec/requiem
dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a
[ "MIT" ]
37
2021-01-06T05:47:49.000Z
2022-03-24T11:07:00.000Z
test/retry_token_test.exs
5ebec/requiem
dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a
[ "MIT" ]
null
null
null
test/retry_token_test.exs
5ebec/requiem
dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a
[ "MIT" ]
2
2021-01-06T06:28:44.000Z
2022-03-07T10:04:34.000Z
defmodule RequiemTest.RetryTokenTest do use ExUnit.Case, async: true alias Requiem.Address alias Requiem.RetryToken alias Requiem.RetryToken.Protector alias Requiem.RetryToken.Params test "token protector" do origin = "HOGEHOGE" secret = :crypto.strong_rand_bytes(16) nonce = :crypto.strong_ra...
33.8
89
0.680966
627d5ae7c34d4148edbb2b2b325b258b57442444
1,467
ex
Elixir
lib/recycling_itsavesplanet_org_web/views/error_helpers.ex
AlShu/recycling.itsavesplanet.org
dd26944e39b250f3b0d12cbb99abb91e8f8ff49e
[ "MIT" ]
null
null
null
lib/recycling_itsavesplanet_org_web/views/error_helpers.ex
AlShu/recycling.itsavesplanet.org
dd26944e39b250f3b0d12cbb99abb91e8f8ff49e
[ "MIT" ]
null
null
null
lib/recycling_itsavesplanet_org_web/views/error_helpers.ex
AlShu/recycling.itsavesplanet.org
dd26944e39b250f3b0d12cbb99abb91e8f8ff49e
[ "MIT" ]
null
null
null
defmodule RISPWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn (error) -> content_tag :...
32.6
73
0.668712
627d79d9a592ed020bf44702798232d72d59492a
372
ex
Elixir
web/views/error_view.ex
selfup/unigen_visualizer
8c80290e71ff485f815929a0fe7269034345fea4
[ "MIT" ]
null
null
null
web/views/error_view.ex
selfup/unigen_visualizer
8c80290e71ff485f815929a0fe7269034345fea4
[ "MIT" ]
null
null
null
web/views/error_view.ex
selfup/unigen_visualizer
8c80290e71ff485f815929a0fe7269034345fea4
[ "MIT" ]
null
null
null
defmodule UniApi.ErrorView do use UniApi.Web, :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, a...
20.666667
47
0.696237
627d7e972e1243ed95053ae1e185eb28bc8a7380
1,835
ex
Elixir
clients/vault/lib/google_api/vault/v1/model/add_held_account_result.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/add_held_account_result.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/add_held_account_result.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.980392
142
0.73624
627da300ff1f0cdb3629dd63067df7df564b374c
1,304
exs
Elixir
test/platform/speech/aws/polly_test.exs
lucab85/audioslides.io
cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9
[ "MIT" ]
17
2017-11-14T14:03:18.000Z
2021-12-10T04:18:48.000Z
test/platform/speech/aws/polly_test.exs
lucab85/audioslides.io
cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9
[ "MIT" ]
21
2017-11-19T13:38:07.000Z
2022-02-10T00:11:14.000Z
test/platform/speech/aws/polly_test.exs
lucab85/audioslides.io
cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9
[ "MIT" ]
2
2019-09-03T03:32:13.000Z
2021-02-23T21:52:57.000Z
defmodule Platform.Speech.AWS.PollyTest do use ExUnit.Case use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney import Platform.Speech.AWS.Polly doctest Platform.Speech.AWS.Polly describe "get_speech" do test "should convert text to speech" do use_cassette "polly#working" do params = %{ ...
24.148148
91
0.552147
627dc6b38d81b19d51c2250563395ad2a7f9c913
94
exs
Elixir
config/config.exs
esl/ex_github_poller
b421c7091b298efe87bec5414e590800d9ccc447
[ "Apache-2.0" ]
2
2020-01-13T22:57:57.000Z
2021-03-11T23:19:18.000Z
config/config.exs
esl/ex_github_poller
b421c7091b298efe87bec5414e590800d9ccc447
[ "Apache-2.0" ]
12
2020-02-25T07:42:51.000Z
2021-07-12T05:47:27.000Z
config/config.exs
esl/ex_github_poller
b421c7091b298efe87bec5414e590800d9ccc447
[ "Apache-2.0" ]
2
2021-03-11T23:25:10.000Z
2022-03-06T10:07:45.000Z
use Mix.Config config :ex_github_poller, token: {:system, "EX_GITHUB_POLLER_GITHUB_TOKEN"}
18.8
51
0.787234
627dd3dba883e4234122f989810975952f189e14
1,230
exs
Elixir
config/config.exs
vbergae/postoffice
cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43
[ "Apache-2.0" ]
null
null
null
config/config.exs
vbergae/postoffice
cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43
[ "Apache-2.0" ]
null
null
null
config/config.exs
vbergae/postoffice
cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :postoffice, ecto_repos: [Postoffice.Re...
33.243243
86
0.772358
627de5b4195233adb71c7188af863e4cae45e79a
582
exs
Elixir
mix.exs
artemeff/exredis
d5aaa83516d0bb18a901a934e4823f0a7d5e7a3e
[ "MIT" ]
297
2015-01-07T10:15:46.000Z
2019-01-06T04:37:39.000Z
mix.exs
artemeff/exredis
d5aaa83516d0bb18a901a934e4823f0a7d5e7a3e
[ "MIT" ]
50
2015-01-09T23:55:45.000Z
2019-01-09T09:12:29.000Z
mix.exs
artemeff/exredis
d5aaa83516d0bb18a901a934e4823f0a7d5e7a3e
[ "MIT" ]
70
2015-01-09T23:50:30.000Z
2019-01-08T15:51:48.000Z
defmodule Redis.Mixfile do use Mix.Project def project do [ app: :redis, version: "0.1.0", elixir: "~> 1.5", deps: deps(), package: package(), description: "Redis commands for Elixir" ] end def application do [extra_applications: []] end defp deps do [ ...
17.117647
64
0.512027
627dec8d50128ef8b4111e9c652c8d2b8adcb7f3
1,638
ex
Elixir
lib/agile_pulse_web.ex
cscairns/agile_pulse
01675fc60c5ebc88e6e6c3304f2a5aa683528f7c
[ "CC0-1.0" ]
null
null
null
lib/agile_pulse_web.ex
cscairns/agile_pulse
01675fc60c5ebc88e6e6c3304f2a5aa683528f7c
[ "CC0-1.0" ]
null
null
null
lib/agile_pulse_web.ex
cscairns/agile_pulse
01675fc60c5ebc88e6e6c3304f2a5aa683528f7c
[ "CC0-1.0" ]
null
null
null
defmodule AgilePulseWeb 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 AgilePulseWeb, :controller use AgilePulseWeb, :view The definitions below will be executed for every view, con...
24.088235
69
0.693529
627df0d263ba7ca46edb7e8121924423325d39b9
2,251
ex
Elixir
lib/ex_pesa/Jenga/send_money/eft.ex
r-coh/ex_pesa
df2bb2485a3acba481787a434e4d0ee254e60186
[ "AML", "MIT" ]
20
2020-08-07T18:45:03.000Z
2021-12-02T12:47:07.000Z
lib/ex_pesa/Jenga/send_money/eft.ex
r-coh/ex_pesa
df2bb2485a3acba481787a434e4d0ee254e60186
[ "AML", "MIT" ]
65
2020-08-17T05:52:33.000Z
2021-05-20T16:06:34.000Z
lib/ex_pesa/Jenga/send_money/eft.ex
r-coh/ex_pesa
df2bb2485a3acba481787a434e4d0ee254e60186
[ "AML", "MIT" ]
11
2020-08-17T07:53:02.000Z
2021-04-02T20:57:16.000Z
defmodule ExPesa.Jenga.SendMoney.EFT do @moduledoc """ This module enables you to Send Money To Other Banks Via Electronic Funds Transfer (EFT) """ import ExPesa.Jenga.JengaBase alias ExPesa.Jenga.Signature @doc """ Send Money To Other Banks Via Electronic Funds Transfer (EFT) ## Parameters attrs: ...
35.171875
408
0.595735
627df4db4dd0ef26082a7cc422ce77a9acab9d06
1,040
ex
Elixir
apps/site/lib/site/components/inputs/input_location/arguments.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/site/lib/site/components/inputs/input_location/arguments.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/site/lib/site/components/inputs/input_location/arguments.ex
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule Site.Components.Inputs.InputLocation do @moduledoc """ Component for using Google's current location API """ defstruct name: :location, name_index: :address, id: "location-input", address: "", address_error: "", placeholder: "Enter a locatio...
27.368421
51
0.506731
627e0418a3a9622430324d9a44a3aba8b7ad95b8
237
ex
Elixir
ex/loqui/lib/loqui/protocol/codecs.ex
cwertyar/loqui
3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0
[ "MIT" ]
null
null
null
ex/loqui/lib/loqui/protocol/codecs.ex
cwertyar/loqui
3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0
[ "MIT" ]
null
null
null
ex/loqui/lib/loqui/protocol/codecs.ex
cwertyar/loqui
3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0
[ "MIT" ]
null
null
null
defmodule Loqui.Protocol.Codecs do @moduledoc false @enabled_codecs [Erlpack, Msgpack, Json] |> Enum.map(&Module.concat(__MODULE__, &1)) |> Enum.filter(&Code.ensure_compiled?/1) def all() do @enabled_codecs end end
19.75
47
0.691983
627e3021f6a8a0292e73aacab404ad2d8c96ce36
1,098
exs
Elixir
day06/test/day06_test.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
day06/test/day06_test.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
day06/test/day06_test.exs
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
defmodule Day06Test do use ExUnit.Case doctest Day06 test "part 1 with example" do assert Day06.part1(example1()) == 1000 * 1000 assert Day06.part1(example2()) == 1000 * 1000 - 1000 assert Day06.part1(example3()) == 1000 * 1000 - 4 end test "part 1 with my input data" do assert Day06.part1(i...
21.115385
65
0.601093
627e65f4106f88e527d6a71a8942af8fe7d51d19
260
ex
Elixir
apps/gitgud_web/lib/gitgud_web/views/repo_view.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
1
2019-09-08T07:48:10.000Z
2019-09-08T07:48:10.000Z
apps/gitgud_web/lib/gitgud_web/views/repo_view.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
null
null
null
apps/gitgud_web/lib/gitgud_web/views/repo_view.ex
anndream/gitgud
0dee75547f86040df417def209bf62c33cd8dfec
[ "MIT" ]
null
null
null
defmodule GitGud.Web.RepoView do @moduledoc false use GitGud.Web, :view @spec title(atom, map) :: binary def title(:new, _assigns), do: "Create a new repository" def title(:edit, %{repo: repo}), do: "Settings · #{repo.owner.login}/#{repo.name}" end
28.888889
84
0.676923
627eae563ce6e6be2c24128f170b821162a9dc49
19,800
exs
Elixir
test/plug/static_test.exs
adrianbarbic/plug
16c4126e564c8b25168ec267df77a1afd1744b07
[ "Apache-2.0" ]
null
null
null
test/plug/static_test.exs
adrianbarbic/plug
16c4126e564c8b25168ec267df77a1afd1744b07
[ "Apache-2.0" ]
null
null
null
test/plug/static_test.exs
adrianbarbic/plug
16c4126e564c8b25168ec267df77a1afd1744b07
[ "Apache-2.0" ]
null
null
null
defmodule Plug.StaticTest do use ExUnit.Case, async: true use Plug.Test defmodule MyPlug do use Plug.Builder plug Plug.Static, at: "/public", from: Path.expand("..", __DIR__), gzip: true, headers: %{"x-custom" => "x-value"}, content_types: %{"manifest-file" => "application/...
33.673469
95
0.618939
627ebbc9fc81c77a224f119c798dfa8f78cc553b
1,351
exs
Elixir
priv/repo/seeds.exs
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
1
2021-04-17T20:36:24.000Z
2021-04-17T20:36:24.000Z
priv/repo/seeds.exs
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
3
2021-04-15T19:45:43.000Z
2021-04-16T06:08:24.000Z
priv/repo/seeds.exs
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "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: # # Animina.Repo.insert!(%Animina.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will...
20.469697
71
0.61584
627f21d7d8e6b030fe2779e57ec0e31c37f49495
2,748
ex
Elixir
clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_settings.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
null
null
null
clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_settings.ex
jamesvl/elixir-google-api
6c87fb31d996f08fb42ce6066317e9d652a87acc
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_maintenance_settings.ex
myskoach/elixir-google-api
4f8cbc2fc38f70ffc120fd7ec48e27e46807b563
[ "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.576271
573
0.766739
627f2c66cb8a04bf80e809615d3ebcb7bad8b1f1
939
ex
Elixir
lib/smart_city/user_organization_disassociate.ex
SmartColumbusOS/smart_city
7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562
[ "Apache-2.0" ]
2
2019-07-09T15:52:17.000Z
2020-01-17T08:01:27.000Z
lib/smart_city/user_organization_disassociate.ex
SmartColumbusOS/smart_city
7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562
[ "Apache-2.0" ]
24
2019-06-06T15:36:12.000Z
2020-02-06T16:45:53.000Z
lib/smart_city/user_organization_disassociate.ex
SmartColumbusOS/smart_city
7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562
[ "Apache-2.0" ]
1
2022-03-08T23:44:23.000Z
2022-03-08T23:44:23.000Z
defmodule SmartCity.UserOrganizationDisassociate do @moduledoc """ Defines a user organization association. """ alias SmartCity.BaseStruct @type subject_id :: String.t() @type org_id :: SmartCity.Organization.id() @type t :: %SmartCity.UserOrganizationDisassociate{ :subject_id => subject_id(), ...
25.378378
76
0.658147
627f4a1a4505f84d5f1bc6b0890e91e27cc7849a
6,022
ex
Elixir
lib/cadet/auth/providers/luminus.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
lib/cadet/auth/providers/luminus.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
lib/cadet/auth/providers/luminus.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule Cadet.Auth.Providers.LumiNUS do @moduledoc """ Provides identity using LumiNUS and NUS ADFS. """ alias Cadet.Auth.Provider @behaviour Provider @type config :: %{api_key: String.t(), modules: %{}} @api_url "https://luminus.azure-api.net/" @spec authorise(config(), Provider.code(), Provider...
30.72449
97
0.612753
627f4b480174bb0c77c331b2a5dad3dfa8c8cac9
421
ex
Elixir
lib/unifex/code_generator/base_types/int64.ex
vanillahsu/unifex
a501479b611a94c8a1477d969e170a7280673b7c
[ "Apache-2.0" ]
42
2018-09-11T02:27:00.000Z
2022-03-23T18:30:56.000Z
lib/unifex/code_generator/base_types/int64.ex
vanillahsu/unifex
a501479b611a94c8a1477d969e170a7280673b7c
[ "Apache-2.0" ]
30
2018-10-18T10:56:22.000Z
2022-03-09T13:04:51.000Z
lib/unifex/code_generator/base_types/int64.ex
vanillahsu/unifex
a501479b611a94c8a1477d969e170a7280673b7c
[ "Apache-2.0" ]
7
2018-10-24T09:21:40.000Z
2022-03-29T12:39:08.000Z
defmodule Unifex.CodeGenerator.BaseTypes.Int64 do @moduledoc """ Module implementing `Unifex.CodeGenerator.BaseType` behaviour for 64-bit integer. Maps `int64` Unifex type to an `int64_t` native type. Implemented only for NIF as function parameter as well as return type. """ alias Unifex.CodeGenerator.Bas...
24.764706
83
0.755344
627f62bc4f15baf98a878a1be918990252cd6d31
28,484
exs
Elixir
test/oli/sections_test.exs
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
test/oli/sections_test.exs
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
test/oli/sections_test.exs
DevShashi1993/oli-torus
e6e0b66f0973f9790a5785731b22db6fb1c50a73
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.SectionsTest do use Oli.DataCase alias Oli.Delivery.Sections alias Oli.Delivery.Sections.Section alias Oli.Delivery.Sections.SectionResource alias Lti_1p3.Tool.ContextRoles alias Oli.Publishing alias Oli.Publishing.DeliveryResolver alias Oli.Resources.Numbering alias Oli.Delivery.Hierar...
34.778999
100
0.630951
627f7173e29a4ed9eceafa8063ec30fa1ae8eba5
6,631
ex
Elixir
lib/mix/tasks/phx.gen.schema.ex
jwarwick/phoenix
46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b
[ "MIT" ]
1
2021-06-26T03:57:48.000Z
2021-06-26T03:57:48.000Z
lib/mix/tasks/phx.gen.schema.ex
jwarwick/phoenix
46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b
[ "MIT" ]
1
2020-04-28T21:39:07.000Z
2020-04-28T21:39:07.000Z
lib/mix/tasks/phx.gen.schema.ex
jwarwick/phoenix
46dccaec5c7b79ab3fa863b2138d5a9eb6b4a34b
[ "MIT" ]
1
2021-06-22T08:06:06.000Z
2021-06-22T08:06:06.000Z
defmodule Mix.Tasks.Phx.Gen.Schema do @shortdoc "Generates an Ecto schema and migration file" @moduledoc """ Generates an Ecto schema and migration. mix phx.gen.schema Blog.Post blog_posts title:string views:integer The first argument is the schema module followed by its plural name (used as the tabl...
30.417431
127
0.701252
627f94e402b2dad94269bbd5d34afde45b1929cd
191
exs
Elixir
backend/priv/repo/migrations/20211209103351_add_picture_to_appliance_models.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/priv/repo/migrations/20211209103351_add_picture_to_appliance_models.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/priv/repo/migrations/20211209103351_add_picture_to_appliance_models.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
defmodule Edgehog.Repo.Migrations.AddPictureToApplianceModels do use Ecto.Migration def change do alter table(:appliance_models) do add :picture_url, :string end end end
19.1
64
0.748691
627f977013a6c2f3de2674051d53bca49543b516
6,077
ex
Elixir
lib/ecto/query/builder/order_by.ex
adbatista/ecto
ab63701cf9b3ceab6ddf54c87d549abe24e1248a
[ "Apache-2.0" ]
1
2016-06-03T09:40:38.000Z
2016-06-03T09:40:38.000Z
lib/ecto/query/builder/order_by.ex
adbatista/ecto
ab63701cf9b3ceab6ddf54c87d549abe24e1248a
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/builder/order_by.ex
adbatista/ecto
ab63701cf9b3ceab6ddf54c87d549abe24e1248a
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [apply: 2] defmodule Ecto.Query.Builder.OrderBy do @moduledoc false alias Ecto.Query.Builder @directions [ :asc, :asc_nulls_last, :asc_nulls_first, :desc, :desc_nulls_last, :desc_nulls_first ] @doc """ Escapes an order by query. The query is escaped to a...
32.848649
118
0.625967
627fa63af06171160f7fe846e168226833296811
4,302
ex
Elixir
lib/titeenipeli/telegram_poller.ex
Cadiac/titeenit-backend
51db7a1f93dc78a769bb309b94b1b893cefdcdc9
[ "MIT" ]
null
null
null
lib/titeenipeli/telegram_poller.ex
Cadiac/titeenit-backend
51db7a1f93dc78a769bb309b94b1b893cefdcdc9
[ "MIT" ]
null
null
null
lib/titeenipeli/telegram_poller.ex
Cadiac/titeenit-backend
51db7a1f93dc78a769bb309b94b1b893cefdcdc9
[ "MIT" ]
null
null
null
defmodule Titeenipeli.Poller do use GenServer require Logger alias Titeenipeli.Telegram alias Titeenipeli.Core # Server def start_link do Logger.log(:info, "[telegram] Started Telegram poller") GenServer.start_link(__MODULE__, :ok, name: __MODULE__) end def init(:ok) do get_updates() ...
26.231707
116
0.517201
627faa40c14bd059fdcc7f7209e0fcf8241efefc
597
ex
Elixir
lib/ffaker/zh_cn/name.ex
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
9
2016-11-09T15:50:05.000Z
2021-02-02T05:45:06.000Z
lib/ffaker/zh_cn/name.ex
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
3
2016-09-01T09:54:46.000Z
2017-07-25T05:23:56.000Z
lib/ffaker/zh_cn/name.ex
marocchino/ffaker
5bb4420a8034db9f954a2464cd72039129ef2307
[ "MIT" ]
4
2016-11-22T17:51:48.000Z
2021-02-02T05:45:01.000Z
defmodule Ffaker.ZhCn.Name do @moduledoc""" 中文姓氏 """ use Ffaker @doc""" 中文名 ### Example iex> Ffaker.ZhCn.Name.name "典然须" """ @spec name() :: String.t def name do "#{first_name()}#{last_name()}" end @doc""" 名 ### Example iex> Ffaker.ZhCn.Name.first_name "修纯"...
12.702128
38
0.552764
627fb21def20271e7f53258836bced04789a8120
1,079
ex
Elixir
lib/util/parse_proxy.ex
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
71
2020-03-09T02:09:30.000Z
2022-03-09T06:10:23.000Z
lib/util/parse_proxy.ex
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
null
null
null
lib/util/parse_proxy.ex
qhwa/bonfire
4a368d6d5300539399dcaff167ac69e3165c2bff
[ "MIT" ]
4
2020-04-03T02:28:05.000Z
2021-11-24T20:07:25.000Z
defmodule ParseProxy do @moduledoc """ A utility tool for parsing proxy config from string to Erlang term. ## Example: iex> ParseProxy.parse!("socks5://example.com:1234") [proxy: {:socks5, 'example.com', 1234}] iex> ParseProxy.parse!("socks5://user:secret@example.com:1234") [proxy: {:socks5, 'e...
25.690476
76
0.619092
627fc64cc6aa504fb3a6db735783baee0950b02f
323
exs
Elixir
.iex.symlink/colors_iex.exs
alistairstead/dotfiles
2920703905dfc305eab88290923c9ebfa5a169e0
[ "Apache-2.0" ]
9
2016-07-13T15:34:22.000Z
2020-03-13T19:54:47.000Z
.iex.symlink/colors_iex.exs
alistairstead/dotfiles
2920703905dfc305eab88290923c9ebfa5a169e0
[ "Apache-2.0" ]
10
2016-11-02T23:41:56.000Z
2020-07-22T12:43:48.000Z
.iex.symlink/colors_iex.exs
alistairstead/dotfiles
2920703905dfc305eab88290923c9ebfa5a169e0
[ "Apache-2.0" ]
1
2016-06-30T13:11:57.000Z
2016-06-30T13:11:57.000Z
IEx.configure( colors: [ syntax_colors: [ number: :magenta, atom: :cyan, string: :green, boolean: :magenta, nil: :red ], eval_result: [:green, :bright], eval_error: [[:red, :bright, "✘ \n"]], eval_info: [:yellow, :bright], eval_warning: [:yellow, :bright, "💩"] ...
20.1875
42
0.526316
627fc9c796636604fdff85be2c3a587921f542b1
2,357
exs
Elixir
apps/tai/test/tai/venues/adapters/create_order_close_test.exs
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/test/tai/venues/adapters/create_order_close_test.exs
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/test/tai/venues/adapters/create_order_close_test.exs
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
defmodule Tai.Venues.Adapters.CreateOrderCloseTest do use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney setup_all do on_exit(fn -> :ok = Application.stop(:tai_events) :ok = Application.stop(:tai) end) {:ok, _} = Application.ensure_all_started(:tai) HTTPoiso...
31.013158
104
0.65507
627fe98e576f33798b80184730c6f1ef5a396c62
1,509
exs
Elixir
test/minecraft_controller/users_test.exs
TenTakano/Minecraft_Controller
a118a6e9694da3c0fdfa9ec93872790d38f093e3
[ "MIT" ]
null
null
null
test/minecraft_controller/users_test.exs
TenTakano/Minecraft_Controller
a118a6e9694da3c0fdfa9ec93872790d38f093e3
[ "MIT" ]
29
2021-02-13T06:54:56.000Z
2021-06-06T09:55:36.000Z
test/minecraft_controller/users_test.exs
TenTakano/Minecraft_Controller
a118a6e9694da3c0fdfa9ec93872790d38f093e3
[ "MIT" ]
null
null
null
defmodule MinecraftController.UsersTest do use MinecraftController.DataCase alias MinecraftController.Auth alias Users.User @table_name "Users" describe "create_user/1" do test "creates a new user" do expected = %User{id: "someone", salt: "somesalt", password_hash: "somehash"} :meck.expect(...
27.436364
96
0.624917
62800286d4c1c129e5de5a44743229079e47f0c8
274
ex
Elixir
lib/elixir_keeb.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
9
2020-07-07T15:57:55.000Z
2021-08-12T04:59:44.000Z
lib/elixir_keeb.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
null
null
null
lib/elixir_keeb.ex
amalbuquerque/elixir-keeb
39b0cdc6efc82522c459d15e5f8277d26104ceda
[ "MIT" ]
1
2021-07-16T13:49:00.000Z
2021-07-16T13:49:00.000Z
defmodule ElixirKeeb do @moduledoc """ Documentation for ElixirKeeb. """ @doc """ Hello world. ## Examples iex> ElixirKeeb.hello |> Enum.at(0) :world """ def hello do [:world, "2020/11/22 22:09:16 @ Home, after Nerves upgrade"] end end
14.421053
64
0.59854
62800f738f4d6fc9a398490d05dfe9f87f71ce2a
1,922
exs
Elixir
mix.exs
klacointe/algoliax
6228d334e52a464162581b4887724a2f1cc357b5
[ "BSD-2-Clause" ]
null
null
null
mix.exs
klacointe/algoliax
6228d334e52a464162581b4887724a2f1cc357b5
[ "BSD-2-Clause" ]
null
null
null
mix.exs
klacointe/algoliax
6228d334e52a464162581b4887724a2f1cc357b5
[ "BSD-2-Clause" ]
null
null
null
defmodule Algoliax.MixProject do use Mix.Project def project do [ app: :algoliax, version: "0.1.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), aliases: aliases(), elixirc_paths: elixirc_paths(Mix.env()), test_coverage: [tool: ExCoveralls...
24.641026
80
0.533299
628017bc3df69c552d3633006013376009f1df16
540
ex
Elixir
apps/ewallet_api/test/support/view_case.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet_api/test/support/view_case.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/test/support/view_case.ex
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
defmodule EWalletAPI.ViewCase do @moduledoc """ This module defines common behaviors shared between V1 view tests. """ def v1 do quote do use ExUnit.Case import EWalletDB.Factory import Phoenix.View alias Ecto.Adapters.SQL.Sandbox alias EWalletDB.Repo setup do :...
20
68
0.661111
62803a804e00a714da7836913db4aa1558e03f32
2,269
exs
Elixir
mix.exs
josevalim/unicode_set
da3f4dcf6553e5c7e364461a76ad6c4de1e20c93
[ "Apache-2.0" ]
1
2022-02-27T22:57:18.000Z
2022-02-27T22:57:18.000Z
mix.exs
josevalim/unicode_set
da3f4dcf6553e5c7e364461a76ad6c4de1e20c93
[ "Apache-2.0" ]
null
null
null
mix.exs
josevalim/unicode_set
da3f4dcf6553e5c7e364461a76ad6c4de1e20c93
[ "Apache-2.0" ]
null
null
null
defmodule UnicodeSet.MixProject do use Mix.Project @version "1.1.0" def project do [ app: :unicode_set, version: @version, elixir: "~> 1.8", start_permanent: Mix.env() == :prod, build_embedded: Mix.env() == :prod, deps: deps(), docs: docs(), name: "Unicode Set...
23.884211
94
0.56104
6280a3df339069b526d11785e29d6ba72ac234a8
1,207
exs
Elixir
test/mastani_server/cms/repo_reactions_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
test/mastani_server/cms/repo_reactions_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
test/mastani_server/cms/repo_reactions_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Test.CMS.RepoReactions do use MastaniServer.TestTools alias MastaniServer.CMS setup do {:ok, user} = db_insert(:user) {:ok, community} = db_insert(:community) repo_attrs = mock_attrs(:repo, %{community_id: community.id}) {:ok, ~m(user community repo_attrs)a} end de...
36.575758
97
0.661972
6280ac4ac31ac475813280a002341f1fae272f5a
6,450
ex
Elixir
lib/plausible_web/router.ex
piarsonforked/plausible
ec80b8fd5180f05a25ed6c443179352f11ba582c
[ "MIT" ]
1
2020-04-08T16:39:00.000Z
2020-04-08T16:39:00.000Z
lib/plausible_web/router.ex
piarsonforked/plausible
ec80b8fd5180f05a25ed6c443179352f11ba582c
[ "MIT" ]
null
null
null
lib/plausible_web/router.ex
piarsonforked/plausible
ec80b8fd5180f05a25ed6c443179352f11ba582c
[ "MIT" ]
null
null
null
defmodule PlausibleWeb.Router do use PlausibleWeb, :router use Plug.ErrorHandler use Sentry.Plug @two_weeks_in_seconds 60 * 60 * 24 * 14 pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers plug ...
43
115
0.73876
6280ac66507e1fdf4c7d7ab646fed45bcc61a452
2,283
ex
Elixir
lib/error.ex
kianmeng/roachfeed
60f1f7144b563d0d81922732cfc7685caad7f9a6
[ "ISC" ]
null
null
null
lib/error.ex
kianmeng/roachfeed
60f1f7144b563d0d81922732cfc7685caad7f9a6
[ "ISC" ]
null
null
null
lib/error.ex
kianmeng/roachfeed
60f1f7144b563d0d81922732cfc7685caad7f9a6
[ "ISC" ]
2
2020-10-08T12:11:21.000Z
2022-01-11T06:05:48.000Z
defmodule RoachFeed.Error do @moduledoc """ Represents an error. The `source` field is `:cockroachdb` when the error was returned by the server. In such cases the `code` field should be the integer code returned (though it could be `nil` in the unlikely case that the error couldn't be parsed properly). Otherwis...
23.78125
81
0.644766
6280e5458a3befca60cc4db69a53fa45e9bef004
3,253
ex
Elixir
clients/run/lib/google_api/run/v1/model/revision_status.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/revision_status.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/revision_status.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...
55.135593
576
0.743929
6280efedca5853aba7df45f3989662260ad96388
266
exs
Elixir
test/pgex_connection_test.exs
guedes/pgex
1203046ae36a13678bb5bf3037330bec7301398c
[ "Apache-2.0" ]
1
2018-07-14T19:51:33.000Z
2018-07-14T19:51:33.000Z
test/pgex_connection_test.exs
guedes/pgex
1203046ae36a13678bb5bf3037330bec7301398c
[ "Apache-2.0" ]
null
null
null
test/pgex_connection_test.exs
guedes/pgex
1203046ae36a13678bb5bf3037330bec7301398c
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __FILE__ defmodule PGEx.Connection.Test do use ExUnit.Case test "connect" do assert { :ok, conn } = PGEx.Connection.connect("postgresql://guedes:senha@localhost:5432/banco") assert is_port(conn.socket) end end
24.181818
100
0.729323
62810bd58f384249e71fac394af91a08f3ef25e3
3,599
ex
Elixir
lib/extensions/reset_password/phoenix/controllers/reset_password_controller.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
lib/extensions/reset_password/phoenix/controllers/reset_password_controller.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
lib/extensions/reset_password/phoenix/controllers/reset_password_controller.ex
jordelver/pow
60235189155c87efbb40238ce5008340d470e995
[ "MIT" ]
null
null
null
defmodule PowResetPassword.Phoenix.ResetPasswordController do @moduledoc false use Pow.Extension.Phoenix.Controller.Base alias Plug.Conn alias Pow.Plug, as: PowPlug alias PowResetPassword.{Phoenix.Mailer, Plug} plug :require_not_authenticated plug :load_user_from_reset_token when action in [:edit, :upda...
31.570175
85
0.655738
62813e0268426ced9e8d14a3436c1e78bdd9fb16
5,536
ex
Elixir
lib/flop/cursor.ex
maltoe/flop
b7637655b613bcbb7949fabaf37d8ba5acb1a5be
[ "MIT" ]
null
null
null
lib/flop/cursor.ex
maltoe/flop
b7637655b613bcbb7949fabaf37d8ba5acb1a5be
[ "MIT" ]
null
null
null
lib/flop/cursor.ex
maltoe/flop
b7637655b613bcbb7949fabaf37d8ba5acb1a5be
[ "MIT" ]
null
null
null
defmodule Flop.Cursor do @moduledoc """ Functions for encoding, decoding and extracting cursor values. """ @doc """ Encodes a cursor value. iex> Flop.Cursor.encode(%{name: "Peter", email: "peter@mail"}) "g3QAAAACZAAFZW1haWxtAAAACnBldGVyQG1haWxkAARuYW1lbQAAAAVQZXRlcg==" """ @doc since: "0.8.0...
26.615385
79
0.595556
628149d1b7ad3a3d756f7de14aeea4f9675aa98f
4,044
exs
Elixir
test/slugger_test.exs
rubikill/slugger
e7a470c629a8056b6c30ed67c09b5b0e3ba89306
[ "MIT" ]
154
2015-01-25T23:40:19.000Z
2022-03-15T14:35:46.000Z
test/slugger_test.exs
rubikill/slugger
e7a470c629a8056b6c30ed67c09b5b0e3ba89306
[ "MIT" ]
36
2015-01-31T11:01:41.000Z
2022-01-05T19:49:50.000Z
test/slugger_test.exs
rubikill/slugger
e7a470c629a8056b6c30ed67c09b5b0e3ba89306
[ "MIT" ]
40
2015-05-19T14:27:43.000Z
2021-10-04T13:05:35.000Z
defmodule SluggerTest do use ExUnit.Case doctest Slugger #--- slugify() test "string keep case" do assert Slugger.slugify("ABC") == "ABC" end test "removing space at beginning" do assert Slugger.slugify(" \t \n ABC") == "ABC" end test "removing space at ending" do assert Slugger.slugify(...
30.636364
90
0.643422
6281738e5a5a0d1db95df997ebef26f57eb4393f
2,198
ex
Elixir
lib/connectivity/rabbit.ex
dustinrouillard/gm-gateway
2a2e4314cfaddf4d5e4deb32e5cfddb6231c2dd8
[ "MIT" ]
2
2021-09-01T04:27:50.000Z
2021-09-01T13:52:32.000Z
lib/connectivity/rabbit.ex
dustinrouillard/gm-gateway
2a2e4314cfaddf4d5e4deb32e5cfddb6231c2dd8
[ "MIT" ]
null
null
null
lib/connectivity/rabbit.ex
dustinrouillard/gm-gateway
2a2e4314cfaddf4d5e4deb32e5cfddb6231c2dd8
[ "MIT" ]
null
null
null
defmodule Gateway.Connectivity.Rabbit do use GenServer use AMQP def start_link(state) do GenServer.start_link(__MODULE__, state, name: :rabbit) end def init(_state) do {:ok, conn} = AMQP.Connection.open("#{Application.fetch_env!(:gateway, :rabbit_uri)}") {:ok, chan} = AMQP.Channel.open(conn) ...
26.481928
101
0.567789
628197c30bab4130fdc1aee72581ef4d676466ef
1,509
exs
Elixir
test/models/custom_record_test.exs
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2018-05-19T12:08:10.000Z
2018-05-19T12:08:10.000Z
test/models/custom_record_test.exs
b-a-b-e/ProComPrag
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
64
2019-07-29T22:06:16.000Z
2022-03-28T23:46:58.000Z
test/models/custom_record_test.exs
babe-project/BABE
50c6c87933e71cb69b5c95bc77bf591a34661410
[ "MIT" ]
1
2019-07-28T19:17:43.000Z
2019-07-28T19:17:43.000Z
defmodule Magpie.CustomRecordTest do @moduledoc """ Tests for the CustomRecord model """ use Magpie.ModelCase alias Magpie.CustomRecords.CustomRecord @valid_attrs %{ name: "some name", record: [%{"a" => 1, "b" => 2}, %{"a" => 11, "b" => 22}] } @invalid_attrs %{} test "changeset with valid ...
26.946429
92
0.632869
628199a87b90c38f22a9d685a911a50461250d77
1,857
exs
Elixir
mix.exs
balena/elixir-google-api-cloud-tasks
4858a6427989af9b2d2b23d77f287393e4123022
[ "Apache-2.0" ]
null
null
null
mix.exs
balena/elixir-google-api-cloud-tasks
4858a6427989af9b2d2b23d77f287393e4123022
[ "Apache-2.0" ]
null
null
null
mix.exs
balena/elixir-google-api-cloud-tasks
4858a6427989af9b2d2b23d77f287393e4123022
[ "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.136364
102
0.659666
6281d6563e14d9050ccbf38fc6c7fb5f63d22220
1,421
ex
Elixir
lib/erlef_web/controllers/slack_invite_controller.ex
ferd/website
400409d05ba91ff2a84179ed9a769196aee8f564
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/controllers/slack_invite_controller.ex
ferd/website
400409d05ba91ff2a84179ed9a769196aee8f564
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/controllers/slack_invite_controller.ex
ferd/website
400409d05ba91ff2a84179ed9a769196aee8f564
[ "Apache-2.0" ]
null
null
null
defmodule ErlefWeb.SlackInviteController do use ErlefWeb, :controller action_fallback ErlefWeb.FallbackController @supported_teams Application.get_env(:erlef, :slack_teams) def index(conn, %{"team" => team}) when team in @supported_teams do render(conn, team: team, created: false, recaptcha_site_key: rec...
29.604167
105
0.633357
6281eb207aff64ebe4888ed455bcd1c2902360d2
5,770
exs
Elixir
deps/phoenix/mix.exs
Abninho92/RocketseatNLW2021-Rocketpay
3e492bf582148202a215f6a26e6c0890ed9a0e23
[ "MIT" ]
1
2021-02-24T13:06:18.000Z
2021-02-24T13:06:18.000Z
deps/phoenix/mix.exs
gleidsonduarte/rocketseat-rocketpay-phoenix-elixir-postgres
300e0b34e0179380f56a8c6cae707722d9c4d8d0
[ "MIT" ]
null
null
null
deps/phoenix/mix.exs
gleidsonduarte/rocketseat-rocketpay-phoenix-elixir-postgres
300e0b34e0179380f56a8c6cae707722d9c4d8d0
[ "MIT" ]
1
2021-03-24T23:04:57.000Z
2021-03-24T23:04:57.000Z
defmodule Phoenix.MixProject do use Mix.Project @version "1.5.7" # If the elixir requirement is updated, we need to make the installer # use at least the minimum requirement used here. Although often the # installer is ahead of Phoenix itself. @elixir_requirement "~> 1.7" def project do [ app...
25.990991
105
0.584055
628215e7a22fa3bc2a1bbcec7eee56ef429b5bfc
2,683
ex
Elixir
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_key_controller.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
111
2018-07-25T01:07:51.000Z
2022-01-25T17:03:01.000Z
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_key_controller.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
361
2018-07-22T12:53:00.000Z
2022-03-31T18:50:34.000Z
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_key_controller.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
54
2018-08-26T02:58:04.000Z
2022-03-09T10:12:19.000Z
defmodule NervesHubWWWWeb.OrgKeyController do use NervesHubWWWWeb, :controller alias NervesHubWebCore.Accounts alias NervesHubWebCore.Accounts.OrgKey plug(:validate_role, [org: :read] when action in [:index, :show]) plug(:validate_role, [org: :write] when action in [:new, :create, :update, :edit]) plug(:v...
33.962025
92
0.626165
62821d2b81688ca6b1353d0ba9a7b2e3383f8ea7
655
ex
Elixir
lib/absinthe/subscription/proxy_supervisor.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
lib/absinthe/subscription/proxy_supervisor.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
lib/absinthe/subscription/proxy_supervisor.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Subscription.ProxySupervisor do @moduledoc false use Supervisor def start_link([pubsub, registry, pool_size]) do Supervisor.start_link(__MODULE__, {pubsub, registry, pool_size}) end def init({pubsub, registry, pool_size}) do task_super_name = Module.concat(registry, TaskSuper) ...
28.478261
71
0.716031
6282208bc6ad175299da4e9cb697e4942ec5365f
6,656
ex
Elixir
lib/chart/svg.ex
imsoulfly/contex
55aa17452ddcabedc9547199dd65a2138d8ec474
[ "MIT" ]
null
null
null
lib/chart/svg.ex
imsoulfly/contex
55aa17452ddcabedc9547199dd65a2138d8ec474
[ "MIT" ]
null
null
null
lib/chart/svg.ex
imsoulfly/contex
55aa17452ddcabedc9547199dd65a2138d8ec474
[ "MIT" ]
null
null
null
defmodule Contex.SVG do @moduledoc """ Convenience functions for generating SVG output """ def text(x, y, content, opts \\ []) do attrs = opts_to_attrs(opts) [ "<text ", ~s|x="#{x}" y="#{y}"|, attrs, ">", clean(content), "</text>" ] end def text(content, op...
29.582222
106
0.539063
628231fd507dbe8180a561c44135643518e61745
979
exs
Elixir
test/ex_pesa/Mpesa/mpesa_base_test.exs
MidigoF/ex_pesa
d2a62e72c67084385609c895e52a6ac52e8a9a8a
[ "AML", "MIT" ]
20
2020-08-07T18:45:03.000Z
2021-12-02T12:47:07.000Z
test/ex_pesa/Mpesa/mpesa_base_test.exs
MidigoF/ex_pesa
d2a62e72c67084385609c895e52a6ac52e8a9a8a
[ "AML", "MIT" ]
65
2020-08-17T05:52:33.000Z
2021-05-20T16:06:34.000Z
test/ex_pesa/Mpesa/mpesa_base_test.exs
MidigoF/ex_pesa
d2a62e72c67084385609c895e52a6ac52e8a9a8a
[ "AML", "MIT" ]
11
2020-08-17T07:53:02.000Z
2021-04-02T20:57:16.000Z
defmodule ExPesa.Mpesa.MpesaBaseTest do @moduledoc false use ExUnit.Case, async: true alias ExPesa.Mpesa.MpesaBase describe "Process Results" do test "response with 201 status with map body" do resp = {:ok, %{ status: 201, body: %{ responseCode: 0...
18.12963
53
0.45761
6282408d18631b8e3b4f92cbbd438b749f4d190d
1,988
ex
Elixir
lib/hello_web/controllers/company_controller.ex
suhaschitade/AppoRemind
64ed7123e7e5e2c40e398597c61d0a45db0cae50
[ "MIT" ]
null
null
null
lib/hello_web/controllers/company_controller.ex
suhaschitade/AppoRemind
64ed7123e7e5e2c40e398597c61d0a45db0cae50
[ "MIT" ]
null
null
null
lib/hello_web/controllers/company_controller.ex
suhaschitade/AppoRemind
64ed7123e7e5e2c40e398597c61d0a45db0cae50
[ "MIT" ]
null
null
null
defmodule HelloWeb.CompanyController do use HelloWeb, :controller alias Hello.UserCompanies alias Hello.UserCompanies.Company alias Hello.Common def index(conn, _params) do companies = UserCompanies.list_companies() render(conn, "index.html", companies: companies) end def new(conn, _params) do ...
31.555556
79
0.67002
62824d2951359de397b804a9ee3f5690cba9ac00
2,328
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_input_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_input_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_input_config.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.924528
347
0.75
628289fc95d2a8aec893233998a6183c0a654b49
969
ex
Elixir
lib/game/format/mail.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
lib/game/format/mail.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
lib/game/format/mail.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
defmodule Game.Format.Mail do @moduledoc """ Format functions for mail """ alias Data.Mail alias Game.Format alias Game.Format.Table @doc """ Format mail for a player """ @spec list_mail([Mail.t()]) :: String.t() def list_mail(mail) do rows = mail |> Enum.map(fn mail -> [...
26.916667
113
0.599587
628290d903076b88f9f3c1afce646a466b47df7d
84
exs
Elixir
examples/phx_server/test/phx_server_web/views/page_view_test.exs
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
examples/phx_server/test/phx_server_web/views/page_view_test.exs
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
examples/phx_server/test/phx_server_web/views/page_view_test.exs
hrzndhrn/json_rpc
c9a1d70b92abbf59260be6394bb5ecc41229a599
[ "MIT" ]
null
null
null
defmodule PhxServerWeb.PageViewTest do use PhxServerWeb.ConnCase, async: true end
21
40
0.833333
62829623314071bcd94a71c4601c5fb5f7255130
15,959
ex
Elixir
clients/partners/lib/google_api/partners/v2/api/users.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/partners/lib/google_api/partners/v2/api/users.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/partners/lib/google_api/partners/v2/api/users.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...
52.153595
216
0.694592
628297ad38086f1c53c5ab2a32073cbdb717d014
1,164
ex
Elixir
lib/versionary/plug/ensure_version.ex
sticksnleaves/versionary
bffb61b53d2002c90bb2b8e40eeafa32a89382ca
[ "MIT" ]
35
2017-04-05T19:47:08.000Z
2022-02-12T22:05:17.000Z
lib/versionary/plug/ensure_version.ex
sticksnleaves/versionary
bffb61b53d2002c90bb2b8e40eeafa32a89382ca
[ "MIT" ]
16
2017-03-23T14:36:53.000Z
2021-09-23T17:31:46.000Z
lib/versionary/plug/ensure_version.ex
sticksnleaves/versionary
bffb61b53d2002c90bb2b8e40eeafa32a89382ca
[ "MIT" ]
6
2017-03-19T03:04:34.000Z
2021-08-10T14:05:27.000Z
defmodule Versionary.Plug.EnsureVersion do @moduledoc """ This plug ensures that a valid version was provided and has been verified on the request. If the version provided is not valid then the request will be halted and the module provided to `handler` will be called. From there the handler can decide how...
21.163636
109
0.668385
6282e48c9392ff920d7db68956940bc9b2790099
9,836
exs
Elixir
test/integration/transaction_test.exs
feda12/braintree-elixir
03074d763bcd514d87213646d4cad6dac97c54af
[ "MIT" ]
null
null
null
test/integration/transaction_test.exs
feda12/braintree-elixir
03074d763bcd514d87213646d4cad6dac97c54af
[ "MIT" ]
null
null
null
test/integration/transaction_test.exs
feda12/braintree-elixir
03074d763bcd514d87213646d4cad6dac97c54af
[ "MIT" ]
null
null
null
defmodule Braintree.Integration.TransactionTest do use ExUnit.Case, async: true alias Braintree.Transaction alias Braintree.Testing.{CreditCardNumbers, Nonces, TestTransaction} @moduletag :integration test "sale/1 successful with a payment nonce" do {:ok, transaction} = Transaction.sale(%{ ...
31.62701
111
0.665616
6282f7d7e71dd49fa53c3ab8cfb24ad64598a212
393
exs
Elixir
priv/repo/migrations/20211109080329_works_join_teammates.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
2
2018-03-26T08:56:21.000Z
2018-07-02T22:34:51.000Z
priv/repo/migrations/20211109080329_works_join_teammates.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2018-03-21T03:40:50.000Z
2018-07-10T06:33:10.000Z
priv/repo/migrations/20211109080329_works_join_teammates.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
null
null
null
defmodule GroupherServer.Repo.Migrations.WorksJoinTeammates do use Ecto.Migration def change do create table(:works_join_teammates) do add(:works_id, references(:cms_works, on_delete: :delete_all), null: false) add(:user_id, references(:users, on_delete: :delete_all), null: false) end crea...
30.230769
81
0.737913
62834e9ab30413a968d6bc08f0e6135b03f34a13
942
ex
Elixir
apps/muster_web/test/support/channel_case.ex
eugenebolshakov/muster
dd5465da2c9c1a64817e271b297de95fa31c07d9
[ "Unlicense" ]
null
null
null
apps/muster_web/test/support/channel_case.ex
eugenebolshakov/muster
dd5465da2c9c1a64817e271b297de95fa31c07d9
[ "Unlicense" ]
null
null
null
apps/muster_web/test/support/channel_case.ex
eugenebolshakov/muster
dd5465da2c9c1a64817e271b297de95fa31c07d9
[ "Unlicense" ]
null
null
null
defmodule MusterWeb.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 interacts wi...
26.914286
63
0.737792
62836eed4816a82fa2fe00742c7b001882226aa6
391
ex
Elixir
api/lib/api_web/router.ex
Feggah/university-api
4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72
[ "MIT" ]
1
2021-10-04T23:26:37.000Z
2021-10-04T23:26:37.000Z
api/lib/api_web/router.ex
Feggah/university-api
4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72
[ "MIT" ]
5
2021-10-04T23:09:14.000Z
2022-02-25T09:35:25.000Z
api/lib/api_web/router.ex
Feggah/university-api
4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72
[ "MIT" ]
null
null
null
defmodule ApiWeb.Router do use ApiWeb, :router pipeline :api do plug :accepts, ["json"] end scope "/api", ApiWeb do pipe_through :api resources "/universities", UniversityController, except: [:new, :edit] end pipeline :browser do plug(:accepts, ["html"]) end scope "/", ApiWeb do ...
17.772727
74
0.652174
6283a540991d5bafb2f0b9305e4a3e5a76e189ee
1,218
ex
Elixir
lib/niacademy/application.ex
Ruin0x11/niacademy
f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f
[ "MIT" ]
null
null
null
lib/niacademy/application.ex
Ruin0x11/niacademy
f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f
[ "MIT" ]
null
null
null
lib/niacademy/application.ex
Ruin0x11/niacademy
f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f
[ "MIT" ]
null
null
null
defmodule Niacademy.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 Niacademy.Repo, # Start the Telemetry supervisor Nia...
29.707317
67
0.704433
6283aef890522615a0bb5571d721b2b22fcdc939
856
ex
Elixir
lib/day_15.ex
robindaumann/aoc-2020
63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a
[ "MIT" ]
1
2020-12-19T18:40:00.000Z
2020-12-19T18:40:00.000Z
lib/day_15.ex
robindaumann/aoc-2020
63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a
[ "MIT" ]
null
null
null
lib/day_15.ex
robindaumann/aoc-2020
63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a
[ "MIT" ]
null
null
null
defmodule Day15 do def part1(path) do solve(path, 2020) end def part2(path) do solve(path, 30_000_000) end def solve(path, turns) do {spoken, number, turn} = parse(path) (turn + 1)..turns |> Enum.reduce({number, spoken}, &turn/2) |> elem(0) end def turn(turn, {number, spoken}) ...
20.380952
71
0.607477
6283e15b8679e00655c0a746e4dec7b45c669768
347
ex
Elixir
lib/chess/moves/pieces/rook.ex
danbee/chess
c766ecb63ed15cd4a5c7ce4b503641d0222fb69d
[ "MIT" ]
30
2018-06-16T00:41:59.000Z
2021-03-05T08:39:02.000Z
lib/chess/moves/pieces/rook.ex
danbee/chess
c766ecb63ed15cd4a5c7ce4b503641d0222fb69d
[ "MIT" ]
221
2018-01-15T20:33:13.000Z
2022-02-16T00:53:35.000Z
lib/chess/moves/pieces/rook.ex
danbee/chess
c766ecb63ed15cd4a5c7ce4b503641d0222fb69d
[ "MIT" ]
5
2018-02-20T17:25:19.000Z
2018-12-29T00:09:30.000Z
defmodule Chess.Moves.Pieces.Rook do @moduledoc false alias Chess.Moves.Generator def moves(board, {file, rank}) do Generator.moves(board, {file, rank}, {0, 1}) ++ Generator.moves(board, {file, rank}, {0, -1}) ++ Generator.moves(board, {file, rank}, {-1, 0}) ++ Generator.moves(board, {file...
26.692308
54
0.616715
6283e2edb3288801b949bb2a1313233754db48c5
1,074
ex
Elixir
lib/lucidboard_web/channels/user_socket.ex
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
86
2019-01-07T20:49:04.000Z
2021-10-02T21:15:42.000Z
lib/lucidboard_web/channels/user_socket.ex
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
26
2019-03-27T12:06:52.000Z
2020-09-20T05:21:09.000Z
lib/lucidboard_web/channels/user_socket.ex
borodark/lucidboard
487a9a54053977ea9704121d4a6a4343012d4421
[ "MIT" ]
19
2015-01-06T19:02:49.000Z
2020-05-25T08:54:00.000Z
defmodule LucidboardWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", LucidboardWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all ...
31.588235
85
0.699255
6283eb37a1e3a699ffa20e08cd0e14ffc34188ec
3,664
exs
Elixir
test/ex_integrate/core/pipeline_test.exs
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
3
2022-01-14T20:04:07.000Z
2022-01-26T03:47:49.000Z
test/ex_integrate/core/pipeline_test.exs
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
30
2021-11-01T23:29:32.000Z
2022-02-28T21:35:03.000Z
test/ex_integrate/core/pipeline_test.exs
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
null
null
null
defmodule ExIntegrate.PipelineTest do use ExUnit.Case, async: true alias ExIntegrate.Core.Pipeline alias ExIntegrate.Core.Step test "get a pipeline's step by name" do step = Step.new(name: "my step", command: "foo", args: []) pipeline = Pipeline.new(name: "my pipeline", steps: [step]) assert pipe...
35.572816
98
0.640557
6283fefe672af41f44204bc7a9009ca13a75bf4d
69
ex
Elixir
lib/print_react_web/templates/views/layout_view.ex
greenealexander/print_react
f6d29884cc11b0bbf143df866e08bfaf4607de0c
[ "MIT-0" ]
null
null
null
lib/print_react_web/templates/views/layout_view.ex
greenealexander/print_react
f6d29884cc11b0bbf143df866e08bfaf4607de0c
[ "MIT-0" ]
null
null
null
lib/print_react_web/templates/views/layout_view.ex
greenealexander/print_react
f6d29884cc11b0bbf143df866e08bfaf4607de0c
[ "MIT-0" ]
null
null
null
defmodule PrintReactWeb.LayoutView do use PrintReactWeb, :view end
17.25
37
0.826087
628410196af03d319ff112f7183b52e19b7ea12e
1,050
ex
Elixir
extended_example/lib/web/live/order/orders_live.ex
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
19
2020-10-08T14:05:30.000Z
2022-03-18T08:43:11.000Z
extended_example/lib/web/live/order/orders_live.ex
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
null
null
null
extended_example/lib/web/live/order/orders_live.ex
PJUllrich/event-sourcing-with-elixir
7f70e6bc49d9d93f1d86513a1f358e41e07b8304
[ "MIT" ]
3
2021-02-19T08:31:58.000Z
2021-12-09T05:28:55.000Z
defmodule Web.OrdersLive do use Web, :live_view @impl true def render(assigns), do: Web.DashboardView.render("orders.html", assigns) @impl true def mount(_params, _session, socket) do if connected?(socket), do: Phoenix.PubSub.subscribe(Demo.PubSub, "OrderService") socket = socket |> ass...
26.25
87
0.674286
628429f253c18791c0eabe5601e99d0651ee864e
5,401
ex
Elixir
lib/event_store/config.ex
stone-payments/eventstore
80d645dbfa8ffef89839b35888ccd681df2b3799
[ "MIT" ]
null
null
null
lib/event_store/config.ex
stone-payments/eventstore
80d645dbfa8ffef89839b35888ccd681df2b3799
[ "MIT" ]
1
2018-08-23T16:47:17.000Z
2018-08-23T19:56:42.000Z
lib/event_store/config.ex
stone-payments/eventstore
80d645dbfa8ffef89839b35888ccd681df2b3799
[ "MIT" ]
null
null
null
defmodule EventStore.Config do @moduledoc """ Provides access to the EventStore configuration. """ @integer_url_query_params ["pool_size"] @doc """ Get the event store configuration for the environment. """ def get do Application.get_env(:eventstore, EventStore.Storage) || raise ArgumentErro...
25.238318
107
0.617663
62842af39ea34b5178135a9aaafa14d9765a6c54
1,653
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_replies.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_replies.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/comment_thread_replies.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...
35.170213
224
0.762855
62844877d1ecb8132395a8f57d573383197b7b0e
2,040
exs
Elixir
config/prod.exs
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
config/prod.exs
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
config/prod.exs
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
31.875
67
0.715196
62845c2b4d68a01517bd8bddab67b693178046f5
885
ex
Elixir
lib/web/controllers/auth_controller.ex
yknx4/opencov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
8
2021-08-22T10:37:57.000Z
2022-01-10T11:27:06.000Z
lib/web/controllers/auth_controller.ex
yknx4/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
109
2021-08-20T04:08:04.000Z
2022-01-03T07:39:18.000Z
lib/web/controllers/auth_controller.ex
Librecov/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
null
null
null
defmodule Librecov.AuthController do use Librecov.Web, :controller alias Librecov.Services.Users alias Librecov.Authentication plug Ueberauth def request(_conn, _params) do # Present an authentication challenge to the user end def callback(%{assigns: %{ueberauth_auth: auth_data}} = conn, _params) d...
27.65625
75
0.671186
6284659882e0e123c0176eb4d0e2df32aa5808ba
3,182
ex
Elixir
lib/can.ex
imranismail/can.ex
91aecab7cffdc6b0d5451c88df0ad1781b742086
[ "MIT" ]
2
2018-03-06T04:26:50.000Z
2020-01-12T03:34:14.000Z
lib/can.ex
imranismail/can.ex
91aecab7cffdc6b0d5451c88df0ad1781b742086
[ "MIT" ]
null
null
null
lib/can.ex
imranismail/can.ex
91aecab7cffdc6b0d5451c88df0ad1781b742086
[ "MIT" ]
2
2018-03-06T13:38:32.000Z
2020-05-07T22:40:11.000Z
defmodule Can do import Plug.Conn defstruct [ policy: nil, action: nil, authorized?: false ] def can(conn, policy, action, context) do action = action || get_action(conn) policy = policy || get_policy(conn) conn = conn |> put_action(action) |> put_policy(policy) ...
22.892086
86
0.649591
6284681ee0020b4e4cddbbd167b167918653ea2a
2,432
ex
Elixir
lib/credo/check/readability/predicate_function_names.ex
adrienmo/credo
205f43ba6cfc81b932605d4aa86fdb8378dea3a3
[ "MIT" ]
null
null
null
lib/credo/check/readability/predicate_function_names.ex
adrienmo/credo
205f43ba6cfc81b932605d4aa86fdb8378dea3a3
[ "MIT" ]
null
null
null
lib/credo/check/readability/predicate_function_names.ex
adrienmo/credo
205f43ba6cfc81b932605d4aa86fdb8378dea3a3
[ "MIT" ]
null
null
null
defmodule Credo.Check.Readability.PredicateFunctionNames do use Credo.Check, base_priority: :high, explanations: [ check: """ Predicate functions/macros should be named accordingly: * For functions, they should end in a question mark. # preferred defp user?(cookie) do ...
24.32
98
0.608141
62849f81737c5ff6f9663282ca1b5f61a9c16496
2,664
ex
Elixir
web/lib/auth/auth.ex
deadmp/core
4c244af3326f362ac6411e8996fb1cff0b5a29e6
[ "MIT" ]
null
null
null
web/lib/auth/auth.ex
deadmp/core
4c244af3326f362ac6411e8996fb1cff0b5a29e6
[ "MIT" ]
null
null
null
web/lib/auth/auth.ex
deadmp/core
4c244af3326f362ac6411e8996fb1cff0b5a29e6
[ "MIT" ]
null
null
null
defmodule Auth do @moduledoc """ Login functions """ alias Ueberauth.Auth alias Core.Repo alias Core.User alias Comeonin.Pbkdf2, as: Comeonin # Identity provider @doc """ Create new user """ def create(%Auth{provider: :identity} = auth) do with :ok <- validate_mail(auth.info), :ok ...
26.117647
95
0.596096
6284a5aa6a960e167871e9c926b1c02be43afc00
4,141
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/mixin.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/mixin.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/mixin.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.351563
116
0.682444
6284aa52515744f06c35570a9eabb9d49b4cdb93
875
ex
Elixir
test/support/conn_case.ex
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
test/support/conn_case.ex
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
test/support/conn_case.ex
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
defmodule GoodbotWeb.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 datastructures and query the data layer. Finally, if the...
25
58
0.729143
6284f6247f78c1ae223c4295e6c0f3033583c541
1,672
ex
Elixir
lib/codes/codes_i34.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_i34.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_i34.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_I34 do alias IcdCode.ICDCode def _I340 do %ICDCode{full_code: "I340", category_code: "I34", short_code: "0", full_name: "Nonrheumatic mitral (valve) insufficiency", short_name: "Nonrheumatic mitral (valve) insufficiency", category_...
32.153846
74
0.626196
628512d428321d6cd14933d247c2790257f4ed2c
1,180
ex
Elixir
lib/extensions/email_confirmation/plug.ex
dweremeichik/pow
8c45624c1bf40487680abf5a077549fad2de2141
[ "MIT" ]
null
null
null
lib/extensions/email_confirmation/plug.ex
dweremeichik/pow
8c45624c1bf40487680abf5a077549fad2de2141
[ "MIT" ]
null
null
null
lib/extensions/email_confirmation/plug.ex
dweremeichik/pow
8c45624c1bf40487680abf5a077549fad2de2141
[ "MIT" ]
1
2020-07-13T01:11:17.000Z
2020-07-13T01:11:17.000Z
defmodule PowEmailConfirmation.Plug do @moduledoc """ Plug helper methods. """ alias Plug.Conn alias Pow.Plug alias PowEmailConfirmation.Ecto.Context @doc """ Confirms the e-mail for the user found by the provided confirmation token. If successful, and a session exists, the session will be regenerat...
28.095238
95
0.655932
628521f3ad07b61737fe85adb9cb27619de15a32
619
exs
Elixir
test/tirexs/index/settings/filter_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
test/tirexs/index/settings/filter_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
test/tirexs/index/settings/filter_test.exs
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../../../test_helper.exs", __ENV__.file defmodule Tirexs.Index.Settings.FilterTest do use ExUnit.Case import Tirexs.Index.Settings test "settings w/ filter" do index = [name: "bear_test"] settings do analysis do filter "substring", [type: "nGram", min_gram: 2, max_...
26.913043
153
0.642973
62852599b660878353d24ad5a9b2efdfdfbaebfe
342
ex
Elixir
lib/inspect/vivid/group.ex
jamesotron/vivid
01a0089384d8daced8f22a97c49e657fc245fb3c
[ "MIT" ]
26
2017-01-03T01:18:38.000Z
2019-02-21T09:26:20.000Z
lib/inspect/vivid/group.ex
jamesotron/vivid
01a0089384d8daced8f22a97c49e657fc245fb3c
[ "MIT" ]
null
null
null
lib/inspect/vivid/group.ex
jamesotron/vivid
01a0089384d8daced8f22a97c49e657fc245fb3c
[ "MIT" ]
2
2017-03-18T22:45:49.000Z
2017-05-08T07:24:58.000Z
defimpl Inspect, for: Vivid.Group do alias Vivid.Group import Inspect.Algebra @doc """ Defines the inspect protocol for `Group`. """ @spec inspect(Group.t(), any) :: String.t() def inspect(%Group{shapes: shapes}, opts) do shapes = shapes |> Enum.to_list() concat(["#Vivid.Group<", to_doc(shapes, o...
24.428571
56
0.646199
62854023261e6710d590a45cdefea602290af7a8
4,687
ex
Elixir
lib/cadet_web/admin_controllers/admin_goals_controller.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
lib/cadet_web/admin_controllers/admin_goals_controller.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
lib/cadet_web/admin_controllers/admin_goals_controller.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule CadetWeb.AdminGoalsController do use CadetWeb, :controller use PhoenixSwagger alias Cadet.Incentives.Goals alias Cadet.Accounts.CourseRegistration def index(conn, _) do course_id = conn.assigns.course_reg.course_id render(conn, "index.json", goals: Goals.get(course_id)) end def index...
23.671717
96
0.639642
6285545906923a290b8a3edce419f6842517933b
61,599
ex
Elixir
lib/elixir/lib/kernel/special_forms.ex
fazzone/elixir
459319fb751f81399b6e3826789782452ea5c3c9
[ "Apache-2.0" ]
1
2018-02-24T19:48:35.000Z
2018-02-24T19:48:35.000Z
lib/elixir/lib/kernel/special_forms.ex
ericmj/elixir
37f84c936e4bb3a4b47ec6fc910523a7373c1971
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/kernel/special_forms.ex
ericmj/elixir
37f84c936e4bb3a4b47ec6fc910523a7373c1971
[ "Apache-2.0" ]
null
null
null
defmodule Kernel.SpecialForms do @moduledoc """ Special forms are the basic building blocks of Elixir, and therefore cannot be overridden by the developer. We define them in this module. Some of these forms are lexical (like `alias/2`, `case/2`, etc.). The macros `{}/1` and `<<>>/1` are also special forms ...
28.570965
117
0.629864
62856a11630a8228e29584d00c303f6054e3ffbc
2,001
ex
Elixir
lib/epics.ex
bonfire-networks/bonfire_epics
34300053dbafa9b9cfede22bd4e6433d04344b69
[ "Apache-2.0" ]
1
2022-01-31T20:44:09.000Z
2022-01-31T20:44:09.000Z
lib/epics.ex
bonfire-networks/bonfire_epics
34300053dbafa9b9cfede22bd4e6433d04344b69
[ "Apache-2.0" ]
null
null
null
lib/epics.ex
bonfire-networks/bonfire_epics
34300053dbafa9b9cfede22bd4e6433d04344b69
[ "Apache-2.0" ]
null
null
null
defmodule Bonfire.Epics do defmacro maybe_debug(epic, act, thing, label) do quote do import Where Bonfire.Epics.Debug.do_maybe_debug(unquote(epic), unquote(act), unquote(thing), unquote(label)) end end defmacro maybe_debug(act_or_epic, thing, label \\ nil) do quote do import Where ...
29.865672
115
0.658171
62856b1311c00b9499c451af5c52f0f6b1ed36b5
1,181
ex
Elixir
web/channels/user_socket.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
1
2018-03-07T17:21:58.000Z
2018-03-07T17:21:58.000Z
web/channels/user_socket.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
null
null
null
defmodule PhoenixAdmin.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", PhoenixAdmin.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify a...
31.078947
85
0.705334
62859424223d48be44f353280cb4091aa69c114e
1,671
ex
Elixir
apps/omg_watcher_rpc/lib/web/validators/transaction_constraints.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher_rpc/lib/web/validators/transaction_constraints.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher_rpc/lib/web/validators/transaction_constraints.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.133333
94
0.692998
6285b6e1f10ef60d3e28c4c6a3dfb437a0926ca2
518
exs
Elixir
elixir/fibo45/test/fibo45_test.exs
gmelodie/learning
4d33f1f8a26f74bc959a769ede1acbf00da9351b
[ "MIT" ]
null
null
null
elixir/fibo45/test/fibo45_test.exs
gmelodie/learning
4d33f1f8a26f74bc959a769ede1acbf00da9351b
[ "MIT" ]
null
null
null
elixir/fibo45/test/fibo45_test.exs
gmelodie/learning
4d33f1f8a26f74bc959a769ede1acbf00da9351b
[ "MIT" ]
null
null
null
defmodule Fibo45Test do use ExUnit.Case doctest Fibo45 test "returns first fibo numbers" do assert Fibo45.fibo(1) == 1 assert Fibo45.fibo(2) == 1 end test "returns invalid index" do assert_raise ArgumentError, "Invalid stop index. Needs to be higher than 0", fn -> Fibo45.fibo(0) end ...
21.583333
86
0.662162
6285e38a2c5cdf8a6516b1d978e9810842a79bcc
1,509
ex
Elixir
lib/mp_api_web/controllers/user_controller.ex
jsvelasquezv/mp_api
9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0
[ "MIT" ]
null
null
null
lib/mp_api_web/controllers/user_controller.ex
jsvelasquezv/mp_api
9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0
[ "MIT" ]
null
null
null
lib/mp_api_web/controllers/user_controller.ex
jsvelasquezv/mp_api
9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0
[ "MIT" ]
null
null
null
defmodule MpApiWeb.UserController do use MpApiWeb, :controller import MpApiWeb.Authorize alias Phauxth.Log alias MpApi.Accounts action_fallback MpApiWeb.FallbackController # the following plugs are defined in the controllers/authorize.ex file plug :user_check when action in [:index, :show] plug :id_c...
32.106383
92
0.660702
6285e77706e74683cf7ce9b0567e1d4929a0fb9d
797
ex
Elixir
lib/hap/http_server.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
40
2019-10-26T01:58:42.000Z
2022-03-09T18:18:39.000Z
lib/hap/http_server.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
11
2021-04-02T14:55:02.000Z
2021-11-05T13:49:55.000Z
lib/hap/http_server.ex
petermm/hap
550433a78bccd586ab6a7d8bf85765bfae58b13b
[ "MIT" ]
6
2020-05-18T09:34:14.000Z
2021-11-04T11:14:15.000Z
defmodule HAP.HTTPServer do @moduledoc false # Defines the HTTP interface for a HomeKit Accessory use Plug.Router plug(Plug.Logger) plug(:match) plug(Plug.Parsers, parsers: [HAP.TLVParser, :json], json_decoder: Jason) plug(:tidy_headers, builder_opts()) plug(:dispatch, builder_opts()) def init(opts...
26.566667
74
0.727729