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
08258c9587fd833d1cc2bd55d6b5393786ef5bf7
270
ex
Elixir
lib/discuss_web/models/topic.ex
shahnCM/discuss
a880950e090ecf9309d495e81c31d589d3655881
[ "MIT" ]
null
null
null
lib/discuss_web/models/topic.ex
shahnCM/discuss
a880950e090ecf9309d495e81c31d589d3655881
[ "MIT" ]
null
null
null
lib/discuss_web/models/topic.ex
shahnCM/discuss
a880950e090ecf9309d495e81c31d589d3655881
[ "MIT" ]
null
null
null
defmodule DiscussWeb.Topic do use DiscussWeb, :model schema "topics" do field :title, :string end def changeset(struct, params \\ %{}) do struct |> cast(params, [:title]) |> validate_required([:title]) end end
19.285714
43
0.562963
082598936100fe90ef8ceefbbd118e8e0467430a
292
ex
Elixir
lib/potionx/middleware/mutation_middleware.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
31
2021-02-16T20:50:46.000Z
2022-02-03T10:38:07.000Z
lib/potionx/middleware/mutation_middleware.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
6
2021-04-07T21:50:20.000Z
2022-02-06T21:54:04.000Z
lib/potionx/middleware/mutation_middleware.ex
shuv1824/potionx
a5888413b13a520d8ddf79fb26b7483e441737c3
[ "MIT" ]
4
2021-03-25T17:59:44.000Z
2021-04-25T16:28:22.000Z
defmodule Potionx.Middleware.Mutation do @behaviour Absinthe.Middleware def call(res, _) do cond do is_map(res.value) && Map.has_key?(res.value, :__struct__) -> %{res | value: %{node: res.value}} true -> %{res | value: res.value || %{}} end end end
22.461538
66
0.592466
0825b9d95d713dcae3bf6d6dd4bc913cf8757916
669
ex
Elixir
test/support/factory.ex
joabehenrique/rockelivery
02f83fe99df8e27d4e2a6270fecb39a521f2ceaf
[ "MIT" ]
null
null
null
test/support/factory.ex
joabehenrique/rockelivery
02f83fe99df8e27d4e2a6270fecb39a521f2ceaf
[ "MIT" ]
null
null
null
test/support/factory.ex
joabehenrique/rockelivery
02f83fe99df8e27d4e2a6270fecb39a521f2ceaf
[ "MIT" ]
null
null
null
defmodule Rockelivery.Factory do use ExMachina.Ecto, repo: Rockelivery.Repo alias Rockelivery.User.User def user_params_factory, do: %{ "age" => 22, "address" => "Rua Paulista 20º", "cep" => "12345678", "cpf" => "12345678900", "email" => "henriquecidoz@hotmail.com", "passw...
23.892857
48
0.58296
0825e81c0238adad42c70216ca28ae5f740c9ade
6,277
ex
Elixir
lib/mix/tasks/hex.info.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
824
2015-01-05T09:12:36.000Z
2022-03-28T12:02:29.000Z
lib/mix/tasks/hex.info.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
737
2015-01-01T05:48:46.000Z
2022-03-29T12:56:12.000Z
lib/mix/tasks/hex.info.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
220
2015-03-14T17:55:11.000Z
2022-03-23T22:17:07.000Z
defmodule Mix.Tasks.Hex.Info do use Mix.Task @shortdoc "Prints Hex information" @moduledoc """ Prints Hex package or system information. $ mix hex.info [PACKAGE [VERSION]] If `package` is not given, print system information. This includes when registry was last updated and current system version. ...
27.897778
98
0.632308
0825eb78236fab5113f92a3ca36c9849fdce58df
2,293
ex
Elixir
clients/webmaster/lib/google_api/webmaster/v3/model/url_crawl_errors_sample.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/webmaster/lib/google_api/webmaster/v3/model/url_crawl_errors_sample.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/webmaster/lib/google_api/webmaster/v3/model/url_crawl_errors_sample.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 "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...
38.216667
118
0.730048
0825ec553993a44626461f75da840d41d40ddf08
1,970
ex
Elixir
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_list_descriptor.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 "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 ...
35.818182
111
0.725381
0825fe6a6d29b52245be990cf44ac18582451b03
151
ex
Elixir
lib/cgrates_web_jsonapi_web/controllers/tp_filter_import_job_controller.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
2
2018-10-03T07:41:32.000Z
2021-03-21T11:27:27.000Z
lib/cgrates_web_jsonapi_web/controllers/tp_filter_import_job_controller.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
1
2018-10-31T04:55:59.000Z
2018-10-31T04:55:59.000Z
lib/cgrates_web_jsonapi_web/controllers/tp_filter_import_job_controller.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
5
2018-09-27T11:30:44.000Z
2021-01-16T08:28:58.000Z
defmodule CgratesWebJsonapiWeb.TpFilterImportJobController do use CgratesWebJsonapi.CsvImportJob, module: CgratesWebJsonapi.TariffPlans.TpFilter end
37.75
84
0.89404
0826150390ec85c41f3bfe85d358adf37cd4dde8
279
exs
Elixir
priv/repo/seeds.exs
emerayo/challenge
93d41a667bf32aa4982cc0e19dbf0b7b2d9ec800
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
emerayo/challenge
93d41a667bf32aa4982cc0e19dbf0b7b2d9ec800
[ "MIT" ]
3
2019-01-20T23:17:20.000Z
2019-01-21T11:46:09.000Z
priv/repo/seeds.exs
emerayo/challenge
93d41a667bf32aa4982cc0e19dbf0b7b2d9ec800
[ "MIT" ]
null
null
null
alias Challenge.Account alias Challenge.Repo email = "admin@bankapi.com" password = "1234" result = Repo.get_by Account, %{email: email, encrypted_password: password} if result == nil do %Account{email: email, encrypted_password: password, admin: true} |> Repo.insert!() end
25.363636
85
0.74552
082675216aab62b47fccc8c6f90d0ad62522d182
1,762
exs
Elixir
test/oban/plugins/stager_test.exs
iautom8things/oban
5f1dfc277c2933fdc0dada812dbbca31c6d55fa0
[ "Apache-2.0" ]
null
null
null
test/oban/plugins/stager_test.exs
iautom8things/oban
5f1dfc277c2933fdc0dada812dbbca31c6d55fa0
[ "Apache-2.0" ]
null
null
null
test/oban/plugins/stager_test.exs
iautom8things/oban
5f1dfc277c2933fdc0dada812dbbca31c6d55fa0
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Plugins.StagerTest do use Oban.Case alias Oban.Plugins.Stager alias Oban.{PluginTelemetryHandler, Registry} @moduletag :integration test "descheduling jobs to make them available for execution" do events = [ [:oban, :plugin, :start], [:oban, :plugin, :stop], [:oban, :pl...
30.37931
97
0.632236
0826790ebead7625a9dbf167d75a70033a36c3c6
20,768
ex
Elixir
lib/asteroid/token/access_token.ex
tanguilp/asteroid
8e03221d365da7f03f82df192c535d3ba2101f4d
[ "Apache-2.0" ]
36
2019-07-23T20:01:05.000Z
2021-08-05T00:52:34.000Z
lib/asteroid/token/access_token.ex
tanguilp/asteroid
8e03221d365da7f03f82df192c535d3ba2101f4d
[ "Apache-2.0" ]
19
2019-08-23T19:04:50.000Z
2021-05-07T22:12:25.000Z
lib/asteroid/token/access_token.ex
tanguilp/asteroid
8e03221d365da7f03f82df192c535d3ba2101f4d
[ "Apache-2.0" ]
3
2019-09-06T10:47:20.000Z
2020-09-09T03:43:31.000Z
defmodule Asteroid.Token.AccessToken do import Asteroid.Utils alias Asteroid.Context alias Asteroid.Client alias Asteroid.Crypto alias Asteroid.Token @moduledoc """ Access token structure ## Field naming The `data` field holds the token data. The following field names are standard and are used by...
32.45
97
0.692363
08269615e6b12c9d8e7ce4560dc7873f958a506e
1,783
exs
Elixir
mix.exs
Qqwy/elixir-map_diff
7a0e0292d44bfc9a87bccfe1430c3867caab2592
[ "MIT" ]
55
2019-08-19T04:14:39.000Z
2022-03-28T08:10:04.000Z
mix.exs
Qqwy/elixir-map_diff
7a0e0292d44bfc9a87bccfe1430c3867caab2592
[ "MIT" ]
46
2019-08-17T20:52:52.000Z
2022-03-25T11:15:12.000Z
mix.exs
Qqwy/elixir_map_diff
7a0e0292d44bfc9a87bccfe1430c3867caab2592
[ "MIT" ]
7
2016-12-20T20:39:16.000Z
2019-08-05T19:05:49.000Z
defmodule MapDiff.Mixfile do use Mix.Project def project do [app: :map_diff, version: "1.3.3", # build_path: "../../_build", # config_path: "../../config/config.exs", # deps_path: "../../deps", # lockfile: "../../mix.lock", elixir: "~> 1.3", build_embedded: Mix.env == :prod, ...
25.471429
86
0.591139
0826b8cf03805ad2586ec052a250878cd7656c5b
707
ex
Elixir
lib/brahman/dns/header.ex
shun159/brahman
dfa04d757c4e4422b00bdc97a694d2d6637708f9
[ "Beerware" ]
null
null
null
lib/brahman/dns/header.ex
shun159/brahman
dfa04d757c4e4422b00bdc97a694d2d6637708f9
[ "Beerware" ]
null
null
null
lib/brahman/dns/header.ex
shun159/brahman
dfa04d757c4e4422b00bdc97a694d2d6637708f9
[ "Beerware" ]
null
null
null
defmodule Brahman.Dns.Header do @moduledoc false defmacro __using__(_which) do quote location: :keep do require Record @include_libs [ "dns/include/dns_terms.hrl", "dns/include/dns_records.hrl" ] for lib_path <- @include_libs do for {name, fields} <- Record.ext...
22.09375
71
0.639321
0826c9817471c7789f5ea36b82ea93aa53727e0e
3,297
exs
Elixir
test/flix_web/controllers/user_confirmation_controller_test.exs
conradwt/flix-elixir
e4d6bf6fd79be12fbed6fb6250f78e929247c1a4
[ "MIT" ]
3
2021-03-21T23:52:16.000Z
2021-06-02T03:47:00.000Z
test/flix_web/controllers/user_confirmation_controller_test.exs
conradwt/flix-elixir
e4d6bf6fd79be12fbed6fb6250f78e929247c1a4
[ "MIT" ]
44
2021-04-09T04:04:13.000Z
2022-03-29T06:29:37.000Z
test/flix_web/controllers/user_confirmation_controller_test.exs
conradwt/flix-elixir
e4d6bf6fd79be12fbed6fb6250f78e929247c1a4
[ "MIT" ]
null
null
null
defmodule FlixWeb.UserConfirmationControllerTest do use FlixWeb.ConnCase, async: true alias Flix.Accounts alias Flix.Repo import Flix.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/confirm" do test "renders the confirmation page", %{conn: conn} do conn = get(co...
34.705263
97
0.646648
0826f4525c5acc1e9bdf3187eba8d7d2383c3ae2
5,513
ex
Elixir
lib/application_auth/accounts.ex
oscarjg/application_auth
c4f5bb3eb4a29db2e11714829e495c880b2adf28
[ "MIT" ]
null
null
null
lib/application_auth/accounts.ex
oscarjg/application_auth
c4f5bb3eb4a29db2e11714829e495c880b2adf28
[ "MIT" ]
null
null
null
lib/application_auth/accounts.ex
oscarjg/application_auth
c4f5bb3eb4a29db2e11714829e495c880b2adf28
[ "MIT" ]
null
null
null
defmodule ApplicationAuth.Accounts do @moduledoc """ Accounts context to handle accounts actions as abstraction """ import Ecto.Query alias ApplicationAuth.Accounts.{User, Application, ApplicationCredential} alias ApplicationAuth.Repo @spec create_registered_user(Map.t()) :: {:ok, ApplicationA...
28.713542
159
0.60965
08271d59321ef2d48b536c90ef19437d165e35d4
1,559
ex
Elixir
lib/mix/tasks.ex
msimonborg/odd_job
99c662b21e7a6ed34ebae6bdd79cb6ad997e9724
[ "MIT" ]
3
2022-02-01T13:49:51.000Z
2022-02-04T05:56:34.000Z
lib/mix/tasks.ex
msimonborg/odd_job
99c662b21e7a6ed34ebae6bdd79cb6ad997e9724
[ "MIT" ]
null
null
null
lib/mix/tasks.ex
msimonborg/odd_job
99c662b21e7a6ed34ebae6bdd79cb6ad997e9724
[ "MIT" ]
null
null
null
if Mix.env() == :test do defmodule Mix.Tasks.OddJob do @moduledoc """ Mix task for development testing and code linting. Runs the Mix code formatter and all tests, generates an ExCoveralls test coverage report, and builds documentation locally. Use `$ mix odd_job` in the project's root directory...
29.415094
112
0.612572
0827364961b221bedd5c718d79bafebfa0481aef
7,642
ex
Elixir
apps/api_web/lib/api_web/controllers/service_controller.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
62
2019-01-17T12:34:39.000Z
2022-03-20T21:49:47.000Z
apps/api_web/lib/api_web/controllers/service_controller.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
375
2019-02-13T15:30:50.000Z
2022-03-30T18:50:41.000Z
apps/api_web/lib/api_web/controllers/service_controller.ex
fjlanasa/api
c39bc393aea572bfb81754b2ea1adf9dda9ce24a
[ "MIT" ]
14
2019-01-16T19:35:57.000Z
2022-02-26T18:55:54.000Z
defmodule ApiWeb.ServiceController do @moduledoc """ Controller for Services. Filterable by: * id (multiple) """ use ApiWeb.Web, :api_controller alias State.Service plug(ApiWeb.Plugs.ValidateDate) @filters ~w(id route)s @pagination_opts ~w(offset limit order_by)a def state_module, do: State.Serv...
30.939271
131
0.551295
082775979a2c54e1bdb000ba7e93f5c400739c55
8,861
ex
Elixir
lib/livebook/evaluator/io_proxy.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
lib/livebook/evaluator/io_proxy.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
lib/livebook/evaluator/io_proxy.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Evaluator.IOProxy do @moduledoc false # An IO device process used by `Evaluator` as its `:stdio`. # # The process implements [The Erlang I/O Protocol](https://erlang.org/doc/apps/stdlib/io_protocol.html) # and can be thought of as a *virtual* IO device. # # Upon receiving an IO request...
27.015244
105
0.646315
0827b314b61ef5abd100c747ad42fe025a2a4596
559
ex
Elixir
web/web.ex
stwf/notsense
4ed9d27682f0f0a0ba0a9c12ab7df622001052ac
[ "Apache-2.0" ]
null
null
null
web/web.ex
stwf/notsense
4ed9d27682f0f0a0ba0a9c12ab7df622001052ac
[ "Apache-2.0" ]
null
null
null
web/web.ex
stwf/notsense
4ed9d27682f0f0a0ba0a9c12ab7df622001052ac
[ "Apache-2.0" ]
1
2019-10-12T13:23:21.000Z
2019-10-12T13:23:21.000Z
defmodule Notsense.Web do @moduledoc false def view do quote do require Logger # use Phoenix.View, root: file_path use Phoenix.View, root: "web/templates" # Import convenience functions from controllers import Phoenix.Controller, only: [view_module: 1] # Use all HTML func...
22.36
61
0.670841
0827c6c241ac412c7947f984a663d3a42267c077
993
exs
Elixir
mix.exs
johninvictus/mpesa_elixir
1c4715c247ae05805cd4aae2497af5e7c2eea289
[ "Apache-2.0" ]
11
2018-04-10T15:27:54.000Z
2020-12-04T07:48:52.000Z
mix.exs
johninvictus/mpesa_elixir
1c4715c247ae05805cd4aae2497af5e7c2eea289
[ "Apache-2.0" ]
1
2020-05-22T05:13:25.000Z
2020-05-22T05:13:39.000Z
mix.exs
johninvictus/mpesa_elixir
1c4715c247ae05805cd4aae2497af5e7c2eea289
[ "Apache-2.0" ]
7
2018-05-09T20:31:44.000Z
2020-11-08T15:21:27.000Z
defmodule MpesaElixir.MixProject do use Mix.Project @description """ Elixir wrapper for Safricom Mpesa API """ def project do [ app: :mpesa_elixir, version: "0.1.1", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, description: @description, package: package()...
20.6875
74
0.543807
0827c74b5e3b399bf67fc2b1205d0bef2611314d
3,256
ex
Elixir
apps/ewallet_db/lib/ewallet_db/minted_token.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
2
2019-07-13T05:49:03.000Z
2021-08-19T23:58:23.000Z
apps/ewallet_db/lib/ewallet_db/minted_token.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/lib/ewallet_db/minted_token.ex
turbo-play/ewallet
b7fee3eed62ac716f46246132c2ead1045f2e4f3
[ "Apache-2.0" ]
3
2018-05-08T17:15:42.000Z
2021-11-10T04:08:33.000Z
defmodule EWalletDB.MintedToken do @moduledoc """ Ecto Schema representing minted tokens. """ use Ecto.Schema import Ecto.{Changeset, Query} alias Ecto.UUID alias EWalletDB.{Repo, Account, MintedToken} @primary_key {:id, Ecto.UUID, autogenerate: true} schema "minted_token" do field :friendly_id,...
29.071429
73
0.641585
0827cf7cb8997eb47ddf7b8f560862af8211ec8b
371
ex
Elixir
lib/ash/error/query/no_such_operator.ex
regularfellow/ash
179495fecb141e0eb8eaf35bbb4d04000eab694b
[ "MIT" ]
null
null
null
lib/ash/error/query/no_such_operator.ex
regularfellow/ash
179495fecb141e0eb8eaf35bbb4d04000eab694b
[ "MIT" ]
null
null
null
lib/ash/error/query/no_such_operator.ex
regularfellow/ash
179495fecb141e0eb8eaf35bbb4d04000eab694b
[ "MIT" ]
null
null
null
defmodule Ash.Error.Query.NoSuchOperator do @moduledoc "Used when an operator that doesn't exist is used in a query" use Ash.Error def_ash_error([:name], class: :invalid) defimpl Ash.ErrorKind do def id(_), do: Ecto.UUID.generate() def code(_), do: "no_such_operator" def message(error) do ...
21.823529
74
0.684636
0827e6181a96ae4033c3bb651e7487c924d008fe
43
exs
Elixir
test/test_helper.exs
giraphme/sendgrid_elixir
53eaa58486cd052d19a5df58dbb3c944fd54b635
[ "MIT" ]
null
null
null
test/test_helper.exs
giraphme/sendgrid_elixir
53eaa58486cd052d19a5df58dbb3c944fd54b635
[ "MIT" ]
null
null
null
test/test_helper.exs
giraphme/sendgrid_elixir
53eaa58486cd052d19a5df58dbb3c944fd54b635
[ "MIT" ]
null
null
null
ExUnit.start(exclude: [integration: true])
21.5
42
0.767442
0827f0414fea25bc7694ad589fcf2526b6a4c84f
44,142
exs
Elixir
test/ecto/type_test.exs
fertapric/ecto
c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4
[ "Apache-2.0" ]
null
null
null
test/ecto/type_test.exs
fertapric/ecto
c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4
[ "Apache-2.0" ]
2
2020-04-23T00:19:07.000Z
2020-04-23T00:24:25.000Z
test/ecto/type_test.exs
fertapric/ecto
c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4
[ "Apache-2.0" ]
1
2020-10-07T16:52:00.000Z
2020-10-07T16:52:00.000Z
defmodule Ecto.TypeTest do use ExUnit.Case, async: true defmodule Custom do use Ecto.Type def type, do: :custom def load(_), do: {:ok, :load} def dump(_), do: {:ok, :dump} def cast(_), do: {:ok, :cast} def equal?(true, _), do: true def equal?(_, _), do: false def embed_as...
44.632963
134
0.575416
08283e6b5a1a69caa04e27e6d863926d26a95b3b
1,058
ex
Elixir
lib/level/resolvers/reaction_connection.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
928
2018-04-03T16:18:11.000Z
2019-09-09T17:59:55.000Z
lib/level/resolvers/reaction_connection.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
74
2018-04-03T00:46:50.000Z
2019-03-10T18:57:27.000Z
lib/level/resolvers/reaction_connection.ex
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
89
2018-04-03T17:33:20.000Z
2019-08-19T03:40:20.000Z
defmodule Level.Resolvers.ReactionConnection do @moduledoc """ A paginated connection for fetching a post or reply's reactions. """ alias Level.Pagination alias Level.Pagination.Args alias Level.Schemas.Post alias Level.Schemas.Reply defstruct first: nil, last: nil, before: nil...
25.804878
67
0.594518
08284b7dc35352b6ed26593a3db697f943f5bd70
5,786
ex
Elixir
lib/hexpm/accounts/audit_log.ex
pragmaticivan/hexpm
7845d1baaf14e8811df00db550b59e51ac9675c6
[ "Apache-2.0" ]
null
null
null
lib/hexpm/accounts/audit_log.ex
pragmaticivan/hexpm
7845d1baaf14e8811df00db550b59e51ac9675c6
[ "Apache-2.0" ]
null
null
null
lib/hexpm/accounts/audit_log.ex
pragmaticivan/hexpm
7845d1baaf14e8811df00db550b59e51ac9675c6
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Accounts.AuditLog do use Hexpm.Web, :schema schema "audit_logs" do belongs_to :actor, User field :user_agent, :string field :action, :string field :params, :map timestamps(updated_at: false) end def build(nil, user_agent, action, params) when action in ~w(password.res...
35.937888
95
0.680781
08285ef571e4dbb35b4699ceca6f3d6ee361d177
691
ex
Elixir
lib/phx_api_web/controllers/fallback_controller.ex
trevligare/phx_api
ea622cfe15b2c3248374a70aaa65edca53cc3171
[ "MIT" ]
null
null
null
lib/phx_api_web/controllers/fallback_controller.ex
trevligare/phx_api
ea622cfe15b2c3248374a70aaa65edca53cc3171
[ "MIT" ]
null
null
null
lib/phx_api_web/controllers/fallback_controller.ex
trevligare/phx_api
ea622cfe15b2c3248374a70aaa65edca53cc3171
[ "MIT" ]
null
null
null
defmodule PhxApiWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use PhxApiWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn |> put_status(...
24.678571
74
0.684515
08287134b38aef5cb2de8803d432cd1d24bb293b
102
ex
Elixir
apps/naive/lib/naive/repo.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
65
2020-07-07T01:51:27.000Z
2021-09-27T00:13:59.000Z
apps/naive/lib/naive/repo.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
5
2021-02-12T08:21:15.000Z
2021-09-01T21:17:27.000Z
apps/naive/lib/naive/repo.ex
itsemilano/orbex
301dfaad1369acfd68055f1868d9a1dcd7e51e16
[ "Apache-2.0" ]
10
2020-08-13T13:39:31.000Z
2021-09-14T12:46:51.000Z
defmodule Naive.Repo do use Ecto.Repo, otp_app: :naive, adapter: Ecto.Adapters.Postgres end
17
35
0.715686
0828899014c9bdc17aa5e79c4a024ca0c96034df
1,347
exs
Elixir
test/support/conn_case.exs
jcarlos7121/ex_admin
60a07320efaf549814d29f3593715543aef51e6b
[ "MIT" ]
1,347
2015-10-05T18:23:49.000Z
2022-01-09T18:38:36.000Z
test/support/conn_case.exs
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
402
2015-10-03T13:53:32.000Z
2021-07-08T09:52:22.000Z
test/support/conn_case.exs
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
333
2015-10-12T22:56:57.000Z
2021-05-26T18:40:24.000Z
defmodule TestExAdmin.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 imports other functionality to make it easier to build and query models. Finally, if the test case interacts with th...
25.903846
68
0.694135
0828b5879c4c3564d20c7c5668d4055f6459e7c8
280
ex
Elixir
lib/blue_jet/app/file_storage/external/cloudfront_client.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
44
2018-05-09T01:08:57.000Z
2021-01-19T07:25:26.000Z
lib/blue_jet/app/file_storage/external/cloudfront_client.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
36
2018-05-08T23:59:54.000Z
2018-09-28T13:50:30.000Z
lib/blue_jet/app/file_storage/external/cloudfront_client.ex
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
9
2018-05-09T14:09:19.000Z
2021-03-21T21:04:04.000Z
defmodule BlueJet.FileStorage.CloudfrontClient do @moduledoc false @cloudfront_client Application.get_env(:blue_jet, :file_storage)[:cloudfront_client] @callback get_presigned_url(String.t()) :: String.t() defdelegate get_presigned_url(key), to: @cloudfront_client end
28
86
0.796429
0828b73dff8d317baeb562ba382334d7df181cde
496
ex
Elixir
lib/tweet_source.ex
stphnrdmr/twittrix
c0a1d76d6bd7d6c43d011ed9776c8514e6dde215
[ "MIT" ]
1
2017-12-29T16:35:45.000Z
2017-12-29T16:35:45.000Z
lib/tweet_source.ex
stphnrdmr/twittrix
c0a1d76d6bd7d6c43d011ed9776c8514e6dde215
[ "MIT" ]
null
null
null
lib/tweet_source.ex
stphnrdmr/twittrix
c0a1d76d6bd7d6c43d011ed9776c8514e6dde215
[ "MIT" ]
null
null
null
alias Experimental.GenStage defmodule Twittrix.TweetSource do use GenStage def start_link(query) do GenStage.start_link(__MODULE__, query, name: __MODULE__) end def init(query) do {:producer, query} end def handle_demand(demand, query) when demand > 0 do result = twitter_search(query, 100) ...
20.666667
79
0.699597
0828baa842296e93b9f94af9d3e9c4dd221342cc
574
ex
Elixir
exercises/concept/guessing-game/.meta/exemplar.ex
herminiotorres/exercism-elixir
0464a968f3e37680b2bf34868b889d6f8de5581e
[ "MIT" ]
2
2019-07-09T05:23:38.000Z
2019-07-29T01:39:59.000Z
exercises/concept/guessing-game/.meta/exemplar.ex
herminiotorres/exercism-elixir
0464a968f3e37680b2bf34868b889d6f8de5581e
[ "MIT" ]
6
2022-03-04T13:05:25.000Z
2022-03-30T18:36:49.000Z
exercises/concept/guessing-game/.meta/exemplar.ex
herminiotorres/exercism-elixir
0464a968f3e37680b2bf34868b889d6f8de5581e
[ "MIT" ]
null
null
null
defmodule GuessingGame do def compare(secret_number, guess \\ :no_guess) def compare(_secret_number, guess) when guess == :no_guess do "Make a guess" end def compare(secret_number, guess) when guess == secret_number do "Correct" end def compare(secret_number, guess) when guess == secret_num...
22.076923
66
0.682927
0828bfd4a5fb68d99c2a040a5ed1a66e62bc7191
5,353
exs
Elixir
test/stopsel/builder_test.exs
Awlexus/stopsel
0d207a65e786a5a057aea76cd7fde72d22ddfd78
[ "MIT" ]
3
2021-01-07T15:59:01.000Z
2021-08-16T00:46:55.000Z
test/stopsel/builder_test.exs
Awlexus/Stopsel
0d207a65e786a5a057aea76cd7fde72d22ddfd78
[ "MIT" ]
null
null
null
test/stopsel/builder_test.exs
Awlexus/Stopsel
0d207a65e786a5a057aea76cd7fde72d22ddfd78
[ "MIT" ]
null
null
null
defmodule Stopsel.BuilderTest do use ExUnit.Case import ExUnit.CaptureIO alias Stopsel.Command describe "router/2" do test "allows only one router per module" do capture_io(:stderr, fn -> assert_raise(Stopsel.RouterAlreadyDefinedError, fn -> defmodule Invalid do import S...
22.304167
98
0.533346
0828c27a1969e16b5b2a7bba6a2a1781c6500025
431
ex
Elixir
lib/error.ex
maartenvanvliet/absinthe_linter
ebfb5879aa1638d29d789dda47350febc1848dc8
[ "MIT" ]
1
2022-01-20T20:16:15.000Z
2022-01-20T20:16:15.000Z
lib/error.ex
maartenvanvliet/absinthe_linter
ebfb5879aa1638d29d789dda47350febc1848dc8
[ "MIT" ]
1
2022-02-24T04:30:37.000Z
2022-02-24T04:30:37.000Z
lib/error.ex
maartenvanvliet/absinthe_linter
ebfb5879aa1638d29d789dda47350febc1848dc8
[ "MIT" ]
null
null
null
defmodule AbsintheLinter.Error do @moduledoc false @enforce_keys [:message, :phase] defstruct [ :message, :phase, locations: [], extra: %{}, path: [] ] @type loc_t :: %{optional(any) => any, line: pos_integer, column: pos_integer} @type t :: %__MODULE__{ message: String.t(),...
18.73913
80
0.535963
0828cb0d5c2225d43117aa4c992a1d030e08e2f0
1,749
ex
Elixir
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/result.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/result.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/result.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...
34.98
157
0.72956
0828ceff5056735e4068b8ee7380ba4cf4ca8bb1
264
exs
Elixir
hoge/test/hoge_web/views/layout_view_test.exs
t-yamanashi/testex
2b51788fc71f7b60c40316b9a9b6166953a060ba
[ "Apache-2.0" ]
null
null
null
hoge/test/hoge_web/views/layout_view_test.exs
t-yamanashi/testex
2b51788fc71f7b60c40316b9a9b6166953a060ba
[ "Apache-2.0" ]
null
null
null
hoge/test/hoge_web/views/layout_view_test.exs
t-yamanashi/testex
2b51788fc71f7b60c40316b9a9b6166953a060ba
[ "Apache-2.0" ]
null
null
null
defmodule HogeWeb.LayoutViewTest do use HogeWeb.ConnCase, async: true # When testing helpers, you may want to import Phoenix.HTML and # use functions such as safe_to_string() to convert the helper # result into an HTML string. # import Phoenix.HTML end
29.333333
65
0.761364
0828d1b21adc471ab153d28224af8742958384c7
833
ex
Elixir
lib/today/entry.ex
rockwood/today
4ce3a92d1bee5bb32040e1d2d333df50cd0c24ff
[ "MIT" ]
null
null
null
lib/today/entry.ex
rockwood/today
4ce3a92d1bee5bb32040e1d2d333df50cd0c24ff
[ "MIT" ]
null
null
null
lib/today/entry.ex
rockwood/today
4ce3a92d1bee5bb32040e1d2d333df50cd0c24ff
[ "MIT" ]
null
null
null
defmodule Today.Entry do defstruct [:timestamp, :dir, :body] def from_body(body) do struct(__MODULE__, %{ timestamp: DateTime.utc_now, dir: "#{System.user_home}/today", body: body }) end def path(entry) do "#{entry.dir}/#{padded_date(entry.timestamp)}.md" end def date_headi...
17
64
0.558223
0828e39cce67091f38238cac586a6d1af079e2ba
1,178
exs
Elixir
test/combineLatest_test.exs
macoene/observables
6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7
[ "MIT" ]
4
2018-04-16T20:43:37.000Z
2019-07-18T21:50:49.000Z
test/combineLatest_test.exs
macoene/observables
6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7
[ "MIT" ]
null
null
null
test/combineLatest_test.exs
macoene/observables
6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7
[ "MIT" ]
1
2021-03-18T18:37:11.000Z
2021-03-18T18:37:11.000Z
defmodule CombineLatestTest do use ExUnit.Case alias Observables.{Obs, Subject} require Logger @tag :combinelatest test "Combine Latest" do testproc = self() xs = Subject.create() ys = Subject.create() Obs.combinelatest(xs, ys, left: nil, right: nil) |> Obs.map(fn v -> send(testproc, v...
24.541667
72
0.623939
08291da30080e08328d564d05a812c9f4730db80
1,176
ex
Elixir
lib/hl7/2.5/segments/con.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.5/segments/con.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.5/segments/con.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_5.Segments.CON do @moduledoc false require Logger alias HL7.V2_5.{DataTypes} use HL7.Segment, fields: [ segment: nil, set_id_con: nil, consent_type: DataTypes.Cwe, consent_form_id: nil, consent_form_number: DataTypes.Ei, consent_text: nil, subject...
31.783784
53
0.730442
082932d264650d70a24f6d58c30d92c6c20b6291
342
exs
Elixir
test/covid19_questionnaire_web/controllers/bienvenue_controller/index_test.exs
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
3
2020-04-08T19:15:22.000Z
2020-05-24T22:37:54.000Z
test/covid19_questionnaire_web/controllers/bienvenue_controller/index_test.exs
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
10
2020-04-05T17:31:49.000Z
2020-06-10T11:09:17.000Z
test/covid19_questionnaire_web/controllers/bienvenue_controller/index_test.exs
betagouv/covid19-algorithme-orientation-elixir
7d99c0b79551438bd763ae4293b495096bc8d9ad
[ "MIT" ]
null
null
null
defmodule Covid19QuestionnaireWeb.BienvenueController.IndexQuestionnaire do use Covid19QuestionnaireWeb.ConnCase, async: true test "bienvenue", %{conn: conn} do body = conn |> get("/") |> response(200) |> Jason.decode!() assert body["bienvenue"] =~ "Bienvenue à l'API d'orientation ...
24.428571
76
0.672515
08294e3eb84a7b97661fb58bdfc419acbbc1fc11
2,083
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/table_cell_properties.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/table_cell_properties.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/table_cell_properties.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...
40.057692
200
0.763322
08295e0a50ed6e262a00efaa656ca57612e59261
1,092
exs
Elixir
braccino_ui/config/config.exs
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
null
null
null
braccino_ui/config/config.exs
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
null
null
null
braccino_ui/config/config.exs
darcros/braccino
33f4d945daf8eac36e4e88ef412dd53cb1389376
[ "MIT" ]
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 # Configures the endpoint config :braccino_ui, B...
34.125
88
0.776557
08295ed45785af6753407c99f620f4afd06d25f2
1,113
exs
Elixir
config/config.exs
rockerBOO/master-slave-failover
7db82af3a5a4f1ee83c7bdbe13982958c385ab39
[ "MIT" ]
null
null
null
config/config.exs
rockerBOO/master-slave-failover
7db82af3a5a4f1ee83c7bdbe13982958c385ab39
[ "MIT" ]
null
null
null
config/config.exs
rockerBOO/master-slave-failover
7db82af3a5a4f1ee83c7bdbe13982958c385ab39
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
37.1
73
0.760108
0829742d9fa2ddeea3e45c9646a503323889af61
1,744
ex
Elixir
clients/content/lib/google_api/content/v21/model/orders_update_shipment_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/orders_update_shipment_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/orders_update_shipment_response.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...
32.296296
192
0.727064
0829889499b56515bcfd06cdd386529e6bfa5fad
397
exs
Elixir
priv/repo/migrations/20181023142819_create_posts_viewers.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
priv/repo/migrations/20181023142819_create_posts_viewers.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
priv/repo/migrations/20181023142819_create_posts_viewers.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Repo.Migrations.CreatePostsViewers do use Ecto.Migration def change do create table(:posts_viewers) do add(:post_id, references(:cms_posts, on_delete: :delete_all), null: false) add(:user_id, references(:users, on_delete: :delete_all), null: false) timestamps() e...
26.466667
80
0.715365
0829df9416d6d83925d376c979f805f362054353
2,030
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info_form_info.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info_form_info.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_page_info_form_info.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "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...
33.833333
205
0.755172
0829f68ba2597104132bb4e2fab9dad91873d4a8
641
exs
Elixir
test/fast_ts/stream/pipeline_test.exs
processone/fast_ts
ac7e42c17753f1399a12e2c5531570466debfaba
[ "Apache-2.0" ]
15
2016-01-13T09:46:17.000Z
2020-02-07T20:12:19.000Z
test/fast_ts/stream/pipeline_test.exs
processone/fast_ts
ac7e42c17753f1399a12e2c5531570466debfaba
[ "Apache-2.0" ]
null
null
null
test/fast_ts/stream/pipeline_test.exs
processone/fast_ts
ac7e42c17753f1399a12e2c5531570466debfaba
[ "Apache-2.0" ]
6
2016-01-13T11:28:56.000Z
2019-09-22T14:17:39.000Z
defmodule FastTS.Stream.PipelineTest do use ExUnit.Case test "Ignore empty pipeline" do assert FastTS.Stream.Pipeline.start_link(:empty, []) == :ignore end test "Create a one step pipeline" do test_pid = self start_fun = fn _ets_table, next_pid -> send test_pid, {:from, :started, self} ...
24.653846
85
0.644306
082a116827df3446dc3383d7e6f9de49c5ad55fb
1,994
ex
Elixir
lib/hl7/2.4/segments/in1.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/in1.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/in1.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.Segments.IN1 do @moduledoc false require Logger alias HL7.V2_4.{DataTypes} use HL7.Segment, fields: [ segment: nil, set_id_in1: nil, insurance_plan_id: DataTypes.Ce, insurance_company_id: DataTypes.Cx, insurance_company_name: DataTypes.Xon, insurance_...
32.688525
53
0.715145
082a2407a65d198a585ca0607255b3e87c49e2fb
707
ex
Elixir
lib/word_smith/remove_accents.ex
benfalk/word_smith
f5f09d0fbbaa2513b59947ef37ffaeec0cbc456a
[ "MIT" ]
19
2016-04-29T20:31:50.000Z
2021-12-07T13:04:55.000Z
lib/word_smith/remove_accents.ex
hiro-riveros/word_smith
f5f09d0fbbaa2513b59947ef37ffaeec0cbc456a
[ "MIT" ]
2
2017-07-13T14:21:03.000Z
2019-07-14T14:30:22.000Z
lib/word_smith/remove_accents.ex
hiro-riveros/word_smith
f5f09d0fbbaa2513b59947ef37ffaeec0cbc456a
[ "MIT" ]
2
2019-07-10T09:48:28.000Z
2019-10-13T09:10:40.000Z
defmodule WordSmith.RemoveAccents do @accents_file Path.join([__DIR__, "../../priv/data/unaccent.rules"]) @external_resource @accents_file @moduledoc false @doc false def remove_accents(str) when is_binary(str), do: remove_accents(str, []) for pair <- File.stream!(@accents_file, [], :line) do [char, r...
28.28
74
0.677511
082a3f06b1ff76f42e6f406290f224fa6978a574
19,537
exs
Elixir
apps/language_server/test/dialyzer_test.exs
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
865
2018-10-31T20:29:13.000Z
2022-03-29T11:13:39.000Z
apps/language_server/test/dialyzer_test.exs
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
441
2019-01-05T02:33:52.000Z
2022-03-30T20:56:50.000Z
apps/language_server/test/dialyzer_test.exs
maciej-szlosarczyk/elixir-ls
f9e3a969a32212482a7625deec9e0fd0f533f991
[ "Apache-2.0" ]
126
2018-11-12T19:16:53.000Z
2022-03-26T13:27:50.000Z
defmodule ElixirLS.LanguageServer.DialyzerTest do # TODO: Test loading and saving manifest alias ElixirLS.LanguageServer.{Dialyzer, Server, Protocol, SourceFile, JsonRpc} import ExUnit.CaptureLog use ElixirLS.Utils.MixTest.Case, async: false use Protocol setup_all do # This will generate a large PLT f...
33.22619
102
0.507959
082a4018b4ca6307a2621398872399edf0dbe1e6
994
ex
Elixir
phoenix_tutorial/test/support/channel_case.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
phoenix_tutorial/test/support/channel_case.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
phoenix_tutorial/test/support/channel_case.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
defmodule PhoenixTutorial.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it ca...
23.666667
74
0.710262
082a64cc508785d7bf143565071dac41a749ceb0
686
ex
Elixir
backendElixir/lib/backendElixir_web/router.ex
deibsoncogo/NLW7Impulse
d530204a01085668d29e7bc303ba6263783283a1
[ "MIT" ]
null
null
null
backendElixir/lib/backendElixir_web/router.ex
deibsoncogo/NLW7Impulse
d530204a01085668d29e7bc303ba6263783283a1
[ "MIT" ]
null
null
null
backendElixir/lib/backendElixir_web/router.ex
deibsoncogo/NLW7Impulse
d530204a01085668d29e7bc303ba6263783283a1
[ "MIT" ]
null
null
null
defmodule BackendElixirWeb.Router do use BackendElixirWeb, :router pipeline :api do plug :accepts, ["json"] end # criamos as rotas aqui dentro scope "/api", BackendElixirWeb do pipe_through :api post "/message", MessageController, :create end if Mix.env() in [:dev, :test] do import Pho...
21.4375
70
0.685131
082a788454501db5f8016dcc2988cb5ca960cb5f
73
exs
Elixir
config/config.exs
mvalitov/phone_number
15dc3cb4354a128a00fa40a5f6ee4d041f04dae4
[ "MIT" ]
9
2017-12-07T09:22:40.000Z
2022-01-09T06:27:24.000Z
config/config.exs
mvalitov/phone_number
15dc3cb4354a128a00fa40a5f6ee4d041f04dae4
[ "MIT" ]
6
2017-12-13T11:13:02.000Z
2022-02-19T02:52:47.000Z
config/config.exs
mvalitov/phone_number
15dc3cb4354a128a00fa40a5f6ee4d041f04dae4
[ "MIT" ]
3
2018-04-30T23:55:30.000Z
2022-01-09T00:02:56.000Z
use Mix.Config config :phone_number, files_path: "/priv/phone_number"
14.6
34
0.767123
082a7be96c34ecbee69d0aae50a8a47431722122
264
exs
Elixir
test/axon_web/views/layout_view_test.exs
MattFerraro/Axon
9c41c617ffd4a8dac89319d2f26f5736d9f96ca4
[ "MIT" ]
null
null
null
test/axon_web/views/layout_view_test.exs
MattFerraro/Axon
9c41c617ffd4a8dac89319d2f26f5736d9f96ca4
[ "MIT" ]
null
null
null
test/axon_web/views/layout_view_test.exs
MattFerraro/Axon
9c41c617ffd4a8dac89319d2f26f5736d9f96ca4
[ "MIT" ]
null
null
null
defmodule AxonWeb.LayoutViewTest do use AxonWeb.ConnCase, async: true # When testing helpers, you may want to import Phoenix.HTML and # use functions such as safe_to_string() to convert the helper # result into an HTML string. # import Phoenix.HTML end
29.333333
65
0.761364
082a7f0d25eb3bb2cf3b04a8210298ff154e48ec
1,234
ex
Elixir
test/support/conn_case.ex
girorme/starer
4e3840291da6a7d47c0b94aacb456794fbee091b
[ "MIT" ]
null
null
null
test/support/conn_case.ex
girorme/starer
4e3840291da6a7d47c0b94aacb456794fbee091b
[ "MIT" ]
null
null
null
test/support/conn_case.ex
girorme/starer
4e3840291da6a7d47c0b94aacb456794fbee091b
[ "MIT" ]
null
null
null
defmodule StarerWeb.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 the...
28.045455
68
0.722853
082a926b340cb8b8c5a77e0c33aaa7f94ac6715e
2,789
ex
Elixir
lib/hangman/player_logger.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
1
2016-12-19T00:10:34.000Z
2016-12-19T00:10:34.000Z
lib/hangman/player_logger.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
lib/hangman/player_logger.ex
brpandey/elixir-hangman
458502af766b42e492ebb9ca543fc8b855687b09
[ "MIT" ]
null
null
null
defmodule Hangman.Player.Logger.Handler do @moduledoc """ Module implements event logger handler for `Hangman.Events.Manager`. Each `event` is logged to a file named after the player `id`. """ use Experimental.GenStage alias Experimental.GenStage require Logger @root_path :code.priv_dir(:hangman_game)...
25.587156
89
0.614557
082aa02a85a95af24881b4d2e51501370196c07d
4,213
ex
Elixir
lib/plumbapius/abstract_plug.ex
Amuhar/plumbapius
a9066512f520f2ad97e677b04d70cc62695f2def
[ "Apache-2.0" ]
10
2020-08-25T07:52:23.000Z
2020-12-06T12:44:44.000Z
lib/plumbapius/abstract_plug.ex
Amuhar/plumbapius
a9066512f520f2ad97e677b04d70cc62695f2def
[ "Apache-2.0" ]
3
2020-10-13T11:49:32.000Z
2021-05-28T08:34:41.000Z
lib/plumbapius/abstract_plug.ex
Amuhar/plumbapius
a9066512f520f2ad97e677b04d70cc62695f2def
[ "Apache-2.0" ]
2
2020-09-03T14:29:00.000Z
2021-05-26T11:07:37.000Z
defmodule Plumbapius.AbstractPlug do alias Plumbapius.{ContentType, Request, Response, ConnHelper} alias Plumbapius.Plug.Options alias Plumbapius.Coverage.CoverageTracker alias Plumbapius.Coverage.CoverageTracker.CoveredCase alias Plumbapius.Coverage.NullCoverageTracker @spec init(json_schema: String.t(), ...
29.256944
111
0.676715
082af2af49fd5001d3d446fadb2fe460ccaada25
1,025
ex
Elixir
apps/sms_code/lib/sms_code/generator.ex
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
apps/sms_code/lib/sms_code/generator.ex
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
apps/sms_code/lib/sms_code/generator.ex
jeffweiss/openrobby
9fed2024e6ce87a6fe27ef3af85558f3116aca2a
[ "Apache-2.0" ]
null
null
null
defmodule SmsCode.Generator do require Logger use GenServer def start_link do GenServer.start_link __MODULE__, [], name: __MODULE__ end def init(_) do {:ok, []} end def send_new_code(id, mobile_number) do GenServer.call(__MODULE__, {:send_new_code, id, mobile_number}) end def validate_...
22.282609
93
0.683902
082b2bc4cfebece3b1108e1cd0043aa05bf37b50
1,568
exs
Elixir
test/parser_test.exs
suexcxine/jaxon
fb638f76945236822e8e015ee4b4d79b8255b71e
[ "Apache-2.0" ]
null
null
null
test/parser_test.exs
suexcxine/jaxon
fb638f76945236822e8e015ee4b4d79b8255b71e
[ "Apache-2.0" ]
null
null
null
test/parser_test.exs
suexcxine/jaxon
fb638f76945236822e8e015ee4b4d79b8255b71e
[ "Apache-2.0" ]
1
2020-01-29T01:50:12.000Z
2020-01-29T01:50:12.000Z
defmodule ParseTest do use ExUnit.Case alias Jaxon.Parser doctest Parser @tests [ {~s({ "name": "john", "test": {"number": 5.1}, "tags":[null,true,false,1]}), [ :start_object, {:string, "name"}, :colon, {:string, "john"}, :comma, {:string, "test"}, :col...
17.422222
80
0.384566
082b5e8032aeb05d849bf8f58442fe089d635b4a
136
exs
Elixir
.formatter.exs
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
31
2017-11-25T00:18:12.000Z
2022-03-03T20:11:17.000Z
.formatter.exs
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
12
2018-01-09T21:18:30.000Z
2021-09-06T10:35:43.000Z
.formatter.exs
utrustdev/commanded-scheduler
7532f192d39df2d0b7d1d500973ceaa8ec987ed3
[ "MIT" ]
13
2018-02-08T15:15:11.000Z
2020-08-13T12:25:18.000Z
# Used by "mix format" [ locals_without_parens: [project: 2], inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] ]
22.666667
69
0.610294
082b62a3b396be5f248414856cf0b1efc2ef7de1
4,642
ex
Elixir
web/models/user.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
1
2018-03-07T17:21:58.000Z
2018-03-07T17:21:58.000Z
web/models/user.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
null
null
null
web/models/user.ex
albertchan/phoenix_admin
74a9bbb01d7574db887b19a13f2934b7372f7d20
[ "MIT" ]
null
null
null
defmodule PhoenixAdmin.User do use PhoenixAdmin.Web, :model use Ecto.Schema alias PhoenixAdmin.Repo import Comeonin.Bcrypt, only: [hashpwsalt: 1] import Ecto.Changeset schema "users" do field :email, :string field :name, :string field :encrypted_password, :string field :password, :string, v...
27.146199
98
0.658768
082b8c6ef9ee67e533f71e528a1dd8c6326c55b5
584
ex
Elixir
apps/ex_wire/test/support/ex_wire/fake_kademlia.ex
unozerocode/mana
d4b16f16020fd512255004ad537ec604513c2589
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/ex_wire/test/support/ex_wire/fake_kademlia.ex
Jacekdaa/mana
4b24b05fbf4033c6b57d30e1cd2dc5890ff6b3e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/ex_wire/test/support/ex_wire/fake_kademlia.ex
Jacekdaa/mana
4b24b05fbf4033c6b57d30e1cd2dc5890ff6b3e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule ExWire.FakeKademlia do @moduledoc """ Kademlia interface mock. """ use GenServer # API def get_peers() do _ = GenServer.call(__MODULE__, :get_peers_call) [] end def start_link(_), do: GenServer.start_link(__MODULE__, [], name: __MODULE__) def init(_), do: {:ok, %{}} def handle_ca...
24.333333
79
0.669521
082bbf4e3cc160d209764b5a9197192c29486557
3,038
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_list_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_list_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_list_response.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...
42.194444
166
0.722844
082bc791b5558efdecf7ae9f3123d6dcc02bb5b5
262
exs
Elixir
config/test.exs
bigbassroller/ueberauth_example
5e889abaf060b6a37add2eb8a3cf1938f394c4af
[ "MIT" ]
null
null
null
config/test.exs
bigbassroller/ueberauth_example
5e889abaf060b6a37add2eb8a3cf1938f394c4af
[ "MIT" ]
null
null
null
config/test.exs
bigbassroller/ueberauth_example
5e889abaf060b6a37add2eb8a3cf1938f394c4af
[ "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 :my_app, MyAppWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
23.818182
56
0.736641
082bd40686c61aa01f6866a5dbf20b90ac9c52b4
416
ex
Elixir
test/support/tenancy/person.ex
sb8244/ecto_tenancy_enforcer
7dac523d0560ec4a57bcf3800b788d312d70d6e6
[ "MIT" ]
36
2019-12-30T23:02:59.000Z
2022-03-26T14:38:41.000Z
test/support/tenancy/person.ex
sb8244/ecto_tenancy_enforcer
7dac523d0560ec4a57bcf3800b788d312d70d6e6
[ "MIT" ]
1
2021-01-13T05:01:04.000Z
2021-01-13T05:01:04.000Z
test/support/tenancy/person.ex
sb8244/ecto_tenancy_enforcer
7dac523d0560ec4a57bcf3800b788d312d70d6e6
[ "MIT" ]
1
2021-04-25T16:50:16.000Z
2021-04-25T16:50:16.000Z
defmodule Tenancy.Person do use Ecto.Schema import Ecto.Changeset schema "people" do field :name, :string field :tenant_id, :id belongs_to :company, Tenancy.Company belongs_to :unenforced_resource, Tenancy.UnenforcedResource timestamps() end @doc false def changeset(person, attrs) do ...
19.809524
63
0.692308
082bde7c3969a1b8e4f2a68d9849f56989770322
3,897
ex
Elixir
lib/identicon.ex
mauricius/elixir-identicon
ebf967f18a5bb6a39d03969e9dd045d318e95d30
[ "MIT" ]
null
null
null
lib/identicon.ex
mauricius/elixir-identicon
ebf967f18a5bb6a39d03969e9dd045d318e95d30
[ "MIT" ]
null
null
null
lib/identicon.ex
mauricius/elixir-identicon
ebf967f18a5bb6a39d03969e9dd045d318e95d30
[ "MIT" ]
null
null
null
defmodule Identicon do alias IO.ANSI, as: Ansi @moduledoc """ Identicon generator written in Elixir Resources: * https://en.wikipedia.org/wiki/Identicon * https://github.com/mauricius/identicon """ @doc """ Exports a string into an Identicon PNG image. ## Parameters - input: The input string...
20.19171
77
0.60662
082c31b4b64297260fded58093d30125b4c4a182
3,352
ex
Elixir
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex
Gazler/nerves_hub_web
9a636a17310382819eaa6cee590e053cb47f0dcc
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex
Gazler/nerves_hub_web
9a636a17310382819eaa6cee590e053cb47f0dcc
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex
Gazler/nerves_hub_web
9a636a17310382819eaa6cee590e053cb47f0dcc
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubWWWWeb.AccountController do use NervesHubWWWWeb, :controller alias Ecto.Changeset alias NervesHubWebCore.Accounts alias NervesHubWebCore.Accounts.User alias NervesHubWWW.Accounts.Email alias NervesHubWWW.Mailer plug(NervesHubWWWWeb.Plugs.AllowUninvitedSignups when action in [:new, :cr...
26.603175
82
0.579654
082c4d0c2b303d5236dc1e49d4e7196445afb44b
4,901
ex
Elixir
lib/sue/models/message.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
1
2020-06-21T01:50:12.000Z
2020-06-21T01:50:12.000Z
lib/sue/models/message.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
lib/sue/models/message.ex
alwayswimmin/Sue
33dfd860e7d5b6dce11e2dc202924efad6a9474c
[ "MIT" ]
null
null
null
defmodule Sue.Models.Message do alias __MODULE__ alias Sue.Models.{Account, Buddy, Chat} @type t() :: %__MODULE__{} defstruct [ :platform, :id, :sue_id, :buddy, :body, :time, :chat, :account, :from_me, :ignorable, :attachments, :has_attachments, :command, ...
27.533708
89
0.600898
082c557e5d3e4213e60168df49a0c7ff4b9d7123
6,047
ex
Elixir
lib/talan/counting_bloom_filter.ex
preciz/talan
97aa357987ab4237d695f9542d48bce9ba30c7ba
[ "MIT" ]
4
2019-10-24T22:27:47.000Z
2020-11-13T09:11:38.000Z
lib/talan/counting_bloom_filter.ex
preciz/talan
97aa357987ab4237d695f9542d48bce9ba30c7ba
[ "MIT" ]
9
2020-09-14T04:57:30.000Z
2021-08-03T04:48:34.000Z
lib/talan/counting_bloom_filter.ex
preciz/talan
97aa357987ab4237d695f9542d48bce9ba30c7ba
[ "MIT" ]
2
2020-02-22T17:08:44.000Z
2021-11-05T17:36:47.000Z
defmodule Talan.CountingBloomFilter do @moduledoc """ Counting bloom filter implementation with **concurrent accessibility**, powered by [:atomics](http://erlang.org/doc/man/atomics.html) module. ## Features * Fixed size Counting Bloom filter * Concurrent reads & writes * Custom & default hash fun...
28.933014
86
0.668927
082c56a5b72b5a36d0f0e72041fef5a2bc2d83fe
180
exs
Elixir
test/basic_benchmarks_elixir_test.exs
zacky1972/basic_benchmarks_elixir
670585c5f4413c1e9d689d482a022e3a88978540
[ "Apache-2.0" ]
null
null
null
test/basic_benchmarks_elixir_test.exs
zacky1972/basic_benchmarks_elixir
670585c5f4413c1e9d689d482a022e3a88978540
[ "Apache-2.0" ]
null
null
null
test/basic_benchmarks_elixir_test.exs
zacky1972/basic_benchmarks_elixir
670585c5f4413c1e9d689d482a022e3a88978540
[ "Apache-2.0" ]
null
null
null
defmodule BasicBenchmarksElixirTest do use ExUnit.Case doctest BasicBenchmarksElixir test "greets the world" do assert BasicBenchmarksElixir.hello() == :world end end
20
50
0.777778
082c5d431751c283b0cb77d6c67098e7f960a8ba
1,022
exs
Elixir
rel/config.exs
ConnorRigby/turtle_fw
b9f2da3ef63fd62b4de00457c135bf9f095ee7e0
[ "MIT" ]
null
null
null
rel/config.exs
ConnorRigby/turtle_fw
b9f2da3ef63fd62b4de00457c135bf9f095ee7e0
[ "MIT" ]
null
null
null
rel/config.exs
ConnorRigby/turtle_fw
b9f2da3ef63fd62b4de00457c135bf9f095ee7e0
[ "MIT" ]
null
null
null
use Mix.Releases.Config, # This sets the default release built by `mix release` default_release: :default, # This sets the default environment used by `mix release` default_environment: :dev # For a full list of config options for both releases # and environments, visit https://hexdocs.pm/distillery/config/dis...
30.969697
78
0.762231
082d370b5f6c4084553c39fd9558fba564488f42
1,979
exs
Elixir
test/membrane/integration/timer_test.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
test/membrane/integration/timer_test.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
test/membrane/integration/timer_test.exs
eboskma/membrane_core
e216994fe1ba99c5d228a4b0959faa5fabb13b1c
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Integration.TimerTest do use ExUnit.Case, async: true import Membrane.Testing.Assertions alias Membrane.{Pipeline, Testing, Time} defmodule Element do use Membrane.Source def_output_pad :output, mode: :push, caps: :any @impl true def handle_prepared_to_playing(_ctx, state) ...
25.050633
67
0.654371
082d418a814757adbf647a26de0b85bc53635c98
1,869
exs
Elixir
test/db/old_reservation_sink_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
10
2016-07-15T15:57:33.000Z
2018-06-09T00:40:46.000Z
test/db/old_reservation_sink_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
null
null
null
test/db/old_reservation_sink_test.exs
marick/eecrit
50b1ebeadc5cf21ea9f9df6add65e4d7037e2482
[ "MIT" ]
6
2016-07-15T15:57:41.000Z
2018-03-22T16:38:00.000Z
defmodule Eecrit.OldReservationSinkTest do use Eecrit.ModelCase alias Eecrit.OldReservationSink alias Eecrit.OldReservation alias Eecrit.OldGroup alias Eecrit.OldUse alias Eecrit.OldAnimal alias Eecrit.OldProcedure test "complete_reservation" do animal = insert_old_animal() procedure = insert_o...
33.981818
85
0.684323
082d641f853164ef8ead6b01b534d1b5b2555823
561
ex
Elixir
Samples/BarNecking/BarNecking-Axi/Abaqus/Extract.ex
pantale/DynELA
f346c0888059784c3f56b853e8593b71fc3dd708
[ "BSD-3-Clause" ]
5
2019-12-13T14:12:43.000Z
2020-09-21T18:27:39.000Z
Samples/BarNecking/BarNecking-Axi/Abaqus/Extract.ex
pantale/DynELA-v.-4.0
2c366859b68df6243a1e128a7839e4fb23888820
[ "BSD-3-Clause" ]
1
2021-06-28T16:54:58.000Z
2021-06-28T16:54:58.000Z
Samples/BarNecking/BarNecking-Axi/Abaqus/Extract.ex
pantale/DynELA-v.-4.0
2c366859b68df6243a1e128a7839e4fb23888820
[ "BSD-3-Clause" ]
2
2021-03-15T07:13:28.000Z
2021-06-28T16:46:26.000Z
# Built-in model TimeHistory, job=BarNecking, value=MISES, name=vonMises, region=Element CYLINDER-1.1 Int Point 1 TimeHistory, job=BarNecking, value=PEEQ, name=PlasticStrain, region=Element CYLINDER-1.1 Int Point 1 TimeHistory, job=BarNecking, value=TEMP, name=Temperature, region=Element CYLINDER-1.1 Int Point 1 TimeHi...
70.125
100
0.811052
082d651f63205e30e8a5e5185331455fe8f9a11c
1,131
ex
Elixir
exercism/elixir/beer-song/lib/beer_song.ex
rusucosmin/til
1687b89454b22e14c5c720f41199a5d2badf7db2
[ "MIT" ]
14
2016-02-19T22:14:31.000Z
2022-02-06T21:59:46.000Z
exercism/elixir/beer-song/lib/beer_song.ex
rusucosmin/til
1687b89454b22e14c5c720f41199a5d2badf7db2
[ "MIT" ]
null
null
null
exercism/elixir/beer-song/lib/beer_song.ex
rusucosmin/til
1687b89454b22e14c5c720f41199a5d2badf7db2
[ "MIT" ]
2
2020-01-07T11:27:26.000Z
2022-02-06T21:59:54.000Z
defmodule BeerSong do @doc """ Get a single verse of the beer song """ @spec verse(integer) :: String.t() def verse(number) do # Your implementation here... if number == 0 do "No more bottles of beer on the wall, no more bottles of beer.\n" <> "Go to the store and buy some more, 99 bottl...
23.5625
120
0.592396
082dbcadd6041e44f289751770bbc6571ab55510
215
exs
Elixir
farmbot_core/priv/config/migrations/20190110180643_add_eap_settings.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_core/priv/config/migrations/20190110180643_add_eap_settings.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/priv/config/migrations/20190110180643_add_eap_settings.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCore.Config.Migrations.AddEapSettings do use Ecto.Migration def change do alter table("network_interfaces") do add(:identity, :string) add(:password, :string) end end end
19.545455
57
0.706977
082e154deacad3349243c41652f3ef2ff97097f4
2,552
exs
Elixir
test/controllers/github_controller_test.exs
joakimk/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
27
2016-09-21T09:11:25.000Z
2020-12-16T04:04:50.000Z
test/controllers/github_controller_test.exs
barsoom/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
2
2016-12-02T08:05:13.000Z
2020-03-27T08:07:59.000Z
test/controllers/github_controller_test.exs
barsoom/exremit
6c0a5fb32208b98cc1baac11d6a7bd248a1aa3bc
[ "Unlicense", "MIT" ]
4
2016-09-25T09:58:17.000Z
2020-04-27T15:07:36.000Z
defmodule Review.GithubControllerTest do use Review.ConnCase use Phoenix.ChannelTest test "can handle a ping" do conn = build_conn() |> put_req_header("x-github-event", "ping") |> post("/webhooks/github?secret=webhook_secret", %{ zen: "Yo.", hook_id: 123 }) assert text_response(conn, 200) =~...
33.142857
117
0.672806
082e1c84114b136509722ab5f47fa064040261c4
404
exs
Elixir
mix.exs
Kyuden/heiseiex
7ecc951cab70462b58ffb4be76f08e239eff4ecd
[ "MIT" ]
null
null
null
mix.exs
Kyuden/heiseiex
7ecc951cab70462b58ffb4be76f08e239eff4ecd
[ "MIT" ]
null
null
null
mix.exs
Kyuden/heiseiex
7ecc951cab70462b58ffb4be76f08e239eff4ecd
[ "MIT" ]
null
null
null
defmodule TrotExample.Mixfile do use Mix.Project def project do [app: :trot_example, version: "0.0.1", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end def application do [applications: [:logger, :trot]] end defp deps ...
17.565217
68
0.616337
082e3cd6f3f7add4e59073b306a68f7a91a6d688
49,101
ex
Elixir
lib/elixir/lib/code.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/code.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/code.ex
DmitryKakurin/elixir
a5df6a5a830d4cff8b7c8da54342b66cab999e0f
[ "Apache-2.0" ]
null
null
null
defmodule Code do @moduledoc ~S""" Utilities for managing code compilation, code evaluation, and code loading. This module complements Erlang's [`:code` module](http://www.erlang.org/doc/man/code.html) to add behaviour which is specific to Elixir. Almost all of the functions in this module have global side e...
35.37536
145
0.690332
082e5c183e5ec68850a73c3aab8692392f7b118b
67
exs
Elixir
test/ex_orient_test.exs
syncrypt/ex_orient
966823f5c1823c5c5ed3b9ed5e0a61280ca44e40
[ "MIT" ]
null
null
null
test/ex_orient_test.exs
syncrypt/ex_orient
966823f5c1823c5c5ed3b9ed5e0a61280ca44e40
[ "MIT" ]
null
null
null
test/ex_orient_test.exs
syncrypt/ex_orient
966823f5c1823c5c5ed3b9ed5e0a61280ca44e40
[ "MIT" ]
1
2021-07-21T07:45:22.000Z
2021-07-21T07:45:22.000Z
defmodule ExOrientTest do use ExUnit.Case doctest ExOrient end
13.4
25
0.80597
082e60f74ca8ad57522426c35d90b5867bbc6f91
354
ex
Elixir
apps/castles_game/lib/castles_game.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
apps/castles_game/lib/castles_game.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
apps/castles_game/lib/castles_game.ex
sjanota/castles
a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a
[ "Apache-2.0" ]
null
null
null
defmodule CastlesGame do use Application def start(_start_type, _start_args) do import Supervisor.Spec children = [ supervisor(CastlesGame.GameSupervisor, []), supervisor(CastlesGame.LobbySupervisor, []) ] opts = [strategy: :one_for_one, name: CastlesGame.Supervisor] Supervisor.star...
23.6
65
0.714689
082ecd49fa524b5cc0d5bb808160032bbcd061fd
954
exs
Elixir
api/config/test.exs
Feggah/university-api
4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72
[ "MIT" ]
1
2021-10-04T23:26:37.000Z
2021-10-04T23:26:37.000Z
api/config/test.exs
Feggah/university-api
4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72
[ "MIT" ]
5
2021-10-04T23:09:14.000Z
2022-02-25T09:35:25.000Z
api/config/test.exs
Feggah/university-api
4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72
[ "MIT" ]
null
null
null
import Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :api, Api.Repo, username: "postgres", password: "postgres", database: "api_test#{System.get_env("MIX_TE...
30.774194
86
0.751572
082ed2ce771a854f77e732c4aa6985c2a4647d14
787
exs
Elixir
test/regressions/i114_ordered_list_test.exs
RichMorin/earmark
e65fcf67345c84c23d237c732e5c174246662c68
[ "Apache-1.1" ]
null
null
null
test/regressions/i114_ordered_list_test.exs
RichMorin/earmark
e65fcf67345c84c23d237c732e5c174246662c68
[ "Apache-1.1" ]
null
null
null
test/regressions/i114_ordered_list_test.exs
RichMorin/earmark
e65fcf67345c84c23d237c732e5c174246662c68
[ "Apache-1.1" ]
null
null
null
defmodule Regressions.I114OrderedListTest do use ExUnit.Case @default_start """ 1. hello 1. world """ test "default" do assert Earmark.as_html!(@default_start) == "<ol>\n<li><p>hello</p>\n</li>\n<li><p>world</p>\n</li>\n</ol>\n" end @explicit_start """ 2. hello 1. world """ ...
23.848485
182
0.570521
082ee5dbd56da5224f421326f0da3504867655d8
667
exs
Elixir
mix.exs
jonnystorm/elexir
ef197f7c592f1eaa628fcd0970bec856e933284f
[ "WTFPL" ]
null
null
null
mix.exs
jonnystorm/elexir
ef197f7c592f1eaa628fcd0970bec856e933284f
[ "WTFPL" ]
null
null
null
mix.exs
jonnystorm/elexir
ef197f7c592f1eaa628fcd0970bec856e933284f
[ "WTFPL" ]
2
2021-03-06T19:04:53.000Z
2021-03-07T12:27:54.000Z
defmodule Elexir.Mixfile do use Mix.Project def project do [app: :elexir, version: "0.0.1", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuration for the OTP application # # Type "mix help compile.app" for more...
20.212121
77
0.605697
082f04cefa9cc7e9cf6e3f7756cc1b8e3c93c652
673
ex
Elixir
lib/avrolixr.ex
avvo/avrolixr
e5f5dd663597d2ab062ec9fea2d1da38897a4c42
[ "MIT" ]
3
2016-09-13T07:14:59.000Z
2017-07-20T07:47:48.000Z
lib/avrolixr.ex
avvo/avrolixr
e5f5dd663597d2ab062ec9fea2d1da38897a4c42
[ "MIT" ]
3
2016-10-12T21:24:11.000Z
2017-06-29T08:35:55.000Z
lib/avrolixr.ex
avvo/avrolixr
e5f5dd663597d2ab062ec9fea2d1da38897a4c42
[ "MIT" ]
5
2017-02-25T18:06:21.000Z
2018-10-24T14:28:50.000Z
defmodule Avrolixr do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false # Define workers and child supervisors to be supervised children = [ # Starts a wor...
32.047619
80
0.716196
082f5b086a6b7c59ed90d74ece3f4aea2dcd05f9
2,259
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_likelihood_adjustment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_likelihood_adjustment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_likelihood_adjustment.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 ...
38.948276
131
0.73838
082f8616b4058c53e904f7fa542642a16b401fd1
10,679
exs
Elixir
test/kane/subscription_test.exs
peburrows/murdoch
731d73b4c0c0734a777991f330638c89ed1d16ec
[ "MIT" ]
99
2016-04-28T13:45:44.000Z
2021-12-03T06:48:28.000Z
test/kane/subscription_test.exs
peburrows/murdoch
731d73b4c0c0734a777991f330638c89ed1d16ec
[ "MIT" ]
29
2016-04-29T23:22:35.000Z
2022-03-15T16:41:34.000Z
test/kane/subscription_test.exs
peburrows/murdoch
731d73b4c0c0734a777991f330638c89ed1d16ec
[ "MIT" ]
46
2016-03-21T18:21:38.000Z
2022-03-23T07:49:42.000Z
defmodule Kane.SubscriptionTest do use ExUnit.Case alias Kane.Subscription alias Kane.Topic alias Kane.Message setup do bypass = Bypass.open() Application.put_env(:kane, :endpoint, "http://localhost:#{bypass.port}") {:ok, project} = Goth.Config.get(:project_id) {:ok, bypass: bypass, project: ...
33.687697
97
0.506414
082f8bdca8e393b73e5b738a5c0c169418da1cf4
2,798
exs
Elixir
mix.exs
alexfreska/ash_graphql
d7e56bec11b4e714c19ccebfa7ba5821669b19cc
[ "MIT" ]
null
null
null
mix.exs
alexfreska/ash_graphql
d7e56bec11b4e714c19ccebfa7ba5821669b19cc
[ "MIT" ]
null
null
null
mix.exs
alexfreska/ash_graphql
d7e56bec11b4e714c19ccebfa7ba5821669b19cc
[ "MIT" ]
null
null
null
defmodule AshGraphql.MixProject do use Mix.Project @description """ An absinthe-backed graphql extension for Ash """ @version "0.9.1" def project do [ app: :ash_graphql, version: @version, elixir: "~> 1.10", start_permanent: Mix.env() == :prod, package: package(), ...
24.761062
86
0.564332
082f9725773258ea3ecbda254bb03ce6f3a5015f
1,105
exs
Elixir
apps/definition_load_persist/test/load/persist_test.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/definition_load_persist/test/load/persist_test.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
apps/definition_load_persist/test/load/persist_test.exs
kennyatpillar/hindsight
e90e2150a14218e5d6fdf5874f57eb055fd2dd07
[ "Apache-2.0" ]
null
null
null
defmodule Load.PersistTest do use ExUnit.Case import Checkov describe "new/1" do data_test "validates #{field} against bad input" do input = put_in(%{}, [field], value) assert {:error, [%{input: value, path: [field]} | _]} = Load.Persist.new(input) where([ [:field, :value], ...
24.021739
85
0.495928
082fb3dc354e8ee5e90ac16ead4ccaf27e80994e
5,649
ex
Elixir
clients/fitness/lib/google_api/fitness/v1/model/data_source.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/data_source.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/fitness/lib/google_api/fitness/v1/model/data_source.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...
79.56338
1,642
0.759958
082fbae788b0340949f4af7eb6a211677dc58baf
2,750
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/commit_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/commit_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/commit_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
49.107143
550
0.742909
082fd909369b755a844a9eedef6ebb8faef27844
646
ex
Elixir
lib/coherence/plugs/require_login.ex
harmon25/coherence
5c4f26d3c87f6a16638adf623d041e2723ccf2b8
[ "MIT" ]
1
2022-03-06T16:30:21.000Z
2022-03-06T16:30:21.000Z
lib/coherence/plugs/require_login.ex
ysbaddaden/coherence
5c4f26d3c87f6a16638adf623d041e2723ccf2b8
[ "MIT" ]
null
null
null
lib/coherence/plugs/require_login.ex
ysbaddaden/coherence
5c4f26d3c87f6a16638adf623d041e2723ccf2b8
[ "MIT" ]
2
2017-09-22T16:54:36.000Z
2021-11-09T20:55:58.000Z
defmodule Coherence.RequireLogin do @behaviour Plug import Coherence.ControllerHelpers, only: [logged_out_url: 1] import Plug.Conn import Phoenix.Controller, only: [put_flash: 3, redirect: 2] @dialyzer [ {:nowarn_function, call: 2}, {:nowarn_function, init: 1}, ] @spec init(Keyword.t) :: [tuple...
20.83871
63
0.647059
083009277b9c0073abad19ed276b45c9da68942b
1,222
ex
Elixir
lib/speediview_ui/layout.ex
ConnorRigby/speediview
d840bcc5563314302ff3c99bbeeeace56519feea
[ "Apache-2.0" ]
2
2020-06-25T22:28:19.000Z
2020-08-27T02:36:20.000Z
lib/speediview_ui/layout.ex
ConnorRigby/megasquirt-dashboard
d840bcc5563314302ff3c99bbeeeace56519feea
[ "Apache-2.0" ]
null
null
null
lib/speediview_ui/layout.ex
ConnorRigby/megasquirt-dashboard
d840bcc5563314302ff3c99bbeeeace56519feea
[ "Apache-2.0" ]
3
2020-06-26T12:32:25.000Z
2021-04-16T08:59:21.000Z
defmodule SpeediViewUI.Layout do @moduledoc """ Saves layouts to disk for next startup """ @doc "Save the layout to disk" def save(layout) do # remote_reload(layout) File.write!(layout_file(), :erlang.term_to_binary(layout)) end @doc "Lazily load the layout from disk" def load() do case Fi...
29.095238
82
0.62275
08301dcf07fd0802dbba36a62efd234669b38a13
2,150
exs
Elixir
test/interactive/rill/framework_at_glance.exs
rill-project/rill
16d35f9dda1ec58190fa6bda9923372834ab456b
[ "MIT" ]
1
2022-01-26T15:06:14.000Z
2022-01-26T15:06:14.000Z
test/interactive/rill/framework_at_glance.exs
rill-project/rill
16d35f9dda1ec58190fa6bda9923372834ab456b
[ "MIT" ]
null
null
null
test/interactive/rill/framework_at_glance.exs
rill-project/rill
16d35f9dda1ec58190fa6bda9923372834ab456b
[ "MIT" ]
null
null
null
defmodule Person do defstruct [:name, :age] end defmodule Renamed do use Rill, :message defstruct [:name] end defmodule Person.Projection do use Rill, :projection @impl Rill.EntityProjection def apply(%Renamed{} = renamed, person) do Map.put(person, :name, renamed.name) end end defmodule Store do ...
25
75
0.662326
08302e6b3f5e678c1322acabf663eef96424589e
700
ex
Elixir
lib/Domain/Post.ex
bruh-boys/anonpost
1828f45443408183ce184e90e5108e6c8fd88f3a
[ "MIT" ]
7
2021-08-10T16:53:05.000Z
2021-12-04T18:35:22.000Z
lib/Domain/Post.ex
bruh-boys/anonpost
1828f45443408183ce184e90e5108e6c8fd88f3a
[ "MIT" ]
1
2021-08-19T03:30:13.000Z
2021-08-19T03:30:13.000Z
lib/Domain/Post.ex
bruh-boys/anonpost
1828f45443408183ce184e90e5108e6c8fd88f3a
[ "MIT" ]
null
null
null
defmodule Anonpost.Domain.Post do defmodule Publ do defstruct replygin_to: "no one", board: "", username: "anon", title: "404 not found", body: "404 not found", time: DateTime.utc_now |>DateTime.to_unix, comments: [] end def ...
24.137931
63
0.562857
08304ebab23c57a4b0d540184f153cabfcda9862
1,042
ex
Elixir
lib/mix/tasks/cmake/clean.ex
shoz-f/mix_cmake
af37dc09986b3930d2265fde1783f0d5de0ff42c
[ "Apache-2.0" ]
2
2021-10-04T09:49:27.000Z
2021-10-06T05:14:26.000Z
lib/mix/tasks/cmake/clean.ex
shoz-f/mix_cmake
af37dc09986b3930d2265fde1783f0d5de0ff42c
[ "Apache-2.0" ]
1
2021-12-01T01:25:21.000Z
2021-12-01T01:25:21.000Z
lib/mix/tasks/cmake/clean.ex
shoz-f/mix_cmake
af37dc09986b3930d2265fde1783f0d5de0ff42c
[ "Apache-2.0" ]
1
2022-02-13T20:56:39.000Z
2022-02-13T20:56:39.000Z
defmodule Mix.Tasks.Cmake.Clean do use Mix.Task alias Mix.Tasks.Cmake require Cmake @shortdoc "Clean outputs of Cmake" @moduledoc """ Clean outputs of Cmake. $ mix cmake.clean [opt] ## Command line options * `--all` - remove cmake build directory. * `--verbose` - print process detail ...
20.84
85
0.603647
08305e5fc1b33e09a8473c9276e9493e04d0342a
2,569
ex
Elixir
lib/brave/character_generator.ex
st23am/brave
fb61e52f82e206843af1199e3830b03d6bc04f0e
[ "CC-BY-4.0" ]
null
null
null
lib/brave/character_generator.ex
st23am/brave
fb61e52f82e206843af1199e3830b03d6bc04f0e
[ "CC-BY-4.0" ]
1
2021-03-09T19:28:25.000Z
2021-03-09T19:28:25.000Z
lib/brave/character_generator.ex
st23am/brave
fb61e52f82e206843af1199e3830b03d6bc04f0e
[ "CC-BY-4.0" ]
null
null
null
defmodule Brave.CharacterGenerator do alias Brave.Character alias Brave.Equiptment def new do random() end def random do %Character{} |> roll_attributes |> determine_traits |> generate_name |> generate_hit_points |> add_inventory end def add_inventory(character) do gear ...
23.787037
75
0.619696
08306be5368dcbf87a51cd10d9a546963babcb6c
340
ex
Elixir
lib/salty/stream_salsa208.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
23
2017-07-04T19:29:43.000Z
2021-02-16T19:44:38.000Z
lib/salty/stream_salsa208.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
16
2017-08-13T15:31:25.000Z
2019-06-19T14:44:13.000Z
lib/salty/stream_salsa208.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
19
2017-08-10T19:01:49.000Z
2021-06-20T01:34:59.000Z
defmodule Salty.Stream.Salsa208 do use Salty.Stream def noncebytes do C.stream_salsa208_NONCEBYTES() end def keybytes do C.stream_salsa208_KEYBYTES() end def stream(outlen, nonce, key) do C.stream_salsa208(outlen, nonce, key) end def xor(m, nonce, key) do C.stream_salsa208_xor(m, non...
16.190476
41
0.705882
08307731ade2ed2918e5f0bd05b566034bd09f04
2,034
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/channel_audit_details.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/channel_audit_details.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/channel_audit_details.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.377358
143
0.747296
0830bcd05e6ff1f6da980a18db400ceb6f1187c7
1,803
ex
Elixir
chromoid_web/lib/chromoid_web/router.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
7
2020-11-18T11:29:20.000Z
2022-01-16T03:16:14.000Z
chromoid_web/lib/chromoid_web/router.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
null
null
null
chromoid_web/lib/chromoid_web/router.ex
ConnorRigby/chromoid
6424a9234227d18d7c287ded869caeb31511bb97
[ "Apache-2.0" ]
1
2021-01-06T15:40:46.000Z
2021-01-06T15:40:46.000Z
defmodule ChromoidWeb.Router do use ChromoidWeb, :router import ChromoidWeb.UserAuth import Phoenix.LiveDashboard.Router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :fetch_live_flash plug :put_root_layout, {ChromoidWeb.LayoutView, :root} plug...
31.086207
77
0.724903
0830de31d352546f0e64cfd1231caa342eb9a14e
1,603
ex
Elixir
test/support/model_case.ex
Project-ShangriLa/sana_server_phoenix
d2ea4cc023d02e7249ae9267bb2b41a212b79ce7
[ "Apache-2.0" ]
5
2015-11-07T11:27:08.000Z
2017-06-23T00:54:20.000Z
test/support/model_case.ex
Project-ShangriLa/sana_server_phoenix
d2ea4cc023d02e7249ae9267bb2b41a212b79ce7
[ "Apache-2.0" ]
null
null
null
test/support/model_case.ex
Project-ShangriLa/sana_server_phoenix
d2ea4cc023d02e7249ae9267bb2b41a212b79ce7
[ "Apache-2.0" ]
null
null
null
defmodule SanaServerPhoenix.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be a...
26.716667
84
0.694323