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
dacd0fbccdf6c264e171751d76691895a02770c9
2,733
exs
Elixir
test/blog_web/controllers/post_controller_test.exs
jhonisds/blog
e7265060abe978f48b2b9fc4d6115d314c84c813
[ "MIT" ]
null
null
null
test/blog_web/controllers/post_controller_test.exs
jhonisds/blog
e7265060abe978f48b2b9fc4d6115d314c84c813
[ "MIT" ]
3
2021-01-01T18:21:41.000Z
2021-01-02T02:18:27.000Z
test/blog_web/controllers/post_controller_test.exs
jhonisds/blog
e7265060abe978f48b2b9fc4d6115d314c84c813
[ "MIT" ]
null
null
null
defmodule BlogWeb.PostControllerTest do use BlogWeb.ConnCase alias Blog.Posts @valid_attrs %{title: "Phoenix", description: "Description Phoenix"} @update_attrs %{title: "Update", description: "Description Update"} @invalid_attrs %{title: nil, description: nil} def post_fixtures(attrs \\ %{}) do {:ok...
31.77907
85
0.658617
dacd1185998202ec15f119675dba6644c524b443
19,151
exs
Elixir
test/mixin/parallel_scan_test.exs
Yarnus/ex_aliyun_ots
1d2ed426cb18fca68811e7a6297da9583cbd0a77
[ "MIT" ]
19
2018-05-10T09:33:25.000Z
2022-01-25T11:57:33.000Z
test/mixin/parallel_scan_test.exs
Yarnus/ex_aliyun_ots
1d2ed426cb18fca68811e7a6297da9583cbd0a77
[ "MIT" ]
23
2019-11-28T07:51:52.000Z
2022-03-09T08:33:42.000Z
test/mixin/parallel_scan_test.exs
Yarnus/ex_aliyun_ots
1d2ed426cb18fca68811e7a6297da9583cbd0a77
[ "MIT" ]
9
2019-01-30T03:17:12.000Z
2021-12-14T02:23:32.000Z
defmodule ExAliyunOts.MixinTest.ParallelScan do use ExUnit.Case, async: false @instance_key EDCEXTestInstance use ExAliyunOts, instance: @instance_key import ExUnit.CaptureLog require Logger require Integer @table "test_parallelscan" @index "test_parallelscan_index" import Mock # # Noti...
25.87973
106
0.519712
dacdb12caa16ed7bea503f15b761b314cb88cd29
1,375
ex
Elixir
lib/test_the_planet/provide_context.ex
slogsdon/test-the-planet
98fe79abff66326c3bc1c626e3a35c47e7373678
[ "MIT", "Unlicense" ]
1
2020-01-12T19:09:02.000Z
2020-01-12T19:09:02.000Z
lib/test_the_planet/provide_context.ex
slogsdon/test-the-planet
98fe79abff66326c3bc1c626e3a35c47e7373678
[ "MIT", "Unlicense" ]
null
null
null
lib/test_the_planet/provide_context.ex
slogsdon/test-the-planet
98fe79abff66326c3bc1c626e3a35c47e7373678
[ "MIT", "Unlicense" ]
null
null
null
defmodule TestThePlanet.ProvideContext do @moduledoc """ Giving context to tests. Writing the same setup for all the tests for a module leaves a lot of redundant code in your tests. What happens if the setup code needs to change? Each and every copy needs to be updated! This is where setup callbacks come ...
27.5
82
0.624727
dacdcc764c3b6992c6c28e6bdef9c70eee50d8ea
491
ex
Elixir
lib/otp_demo_web/views/error_view.ex
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
lib/otp_demo_web/views/error_view.ex
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
lib/otp_demo_web/views/error_view.ex
moroz/phoenix-totp-demo
b07b1925a1116ecbade15cb37764e4aebf442b5b
[ "MIT" ]
null
null
null
defmodule OtpDemoWeb.ErrorView do use OtpDemoWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the template name...
28.882353
61
0.735234
dace04de161ab8024db3d4c76a9b742d0617833f
6,136
exs
Elixir
apps/gitgud/test/gitgud/smart_http_backend_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
449
2018-03-06T01:05:55.000Z
2022-03-23T21:03:56.000Z
apps/gitgud/test/gitgud/smart_http_backend_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
69
2018-03-06T09:26:41.000Z
2022-03-21T22:43:09.000Z
apps/gitgud/test/gitgud/smart_http_backend_test.exs
EdmondFrank/gitgud
1952c16130564357aa6f23e35f48f19e3a50d4dd
[ "MIT" ]
41
2018-03-06T01:06:07.000Z
2021-11-21T17:55:04.000Z
defmodule GitGud.SmartHTTPBackendTest do use GitGud.DataCase use GitGud.DataFactory use Plug.Test alias GitRekt.Git alias GitRekt.GitRepo alias GitRekt.GitAgent alias GitGud.User alias GitGud.Repo alias GitGud.RepoStorage alias GitGud.SmartHTTPBackendRouter setup [:create_user, :create_repo] ...
43.828571
239
0.657269
dace0c458c6e288c1fe9b9011eb793eddabc3613
5,073
ex
Elixir
lib/phoenix_live_view/upload_channel.ex
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
1
2020-09-09T09:10:01.000Z
2020-09-09T09:10:01.000Z
lib/phoenix_live_view/upload_channel.ex
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
null
null
null
lib/phoenix_live_view/upload_channel.ex
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.UploadChannel do @moduledoc false use Phoenix.Channel, log_handle_in: false @timeout :infinity require Logger alias Phoenix.LiveView.{Static, Channel} def cancel(pid) do GenServer.call(pid, :cancel, @timeout) end def consume(pid, entry, func) when is_function(func, 1) ...
27.128342
95
0.610093
dace390a2135f399d7d82da02662f8eae72a6f44
566
ex
Elixir
lib/mfl/application.ex
srowley/mfl
d4a47e5b9dd61a90d06d9f5ab72bde0a99882628
[ "MIT" ]
1
2021-03-12T17:46:17.000Z
2021-03-12T17:46:17.000Z
lib/mfl/application.ex
srowley/mfl
d4a47e5b9dd61a90d06d9f5ab72bde0a99882628
[ "MIT" ]
null
null
null
lib/mfl/application.ex
srowley/mfl
d4a47e5b9dd61a90d06d9f5ab72bde0a99882628
[ "MIT" ]
null
null
null
defmodule MFL.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Starts a worker by calling: MFL.Worker.start_link(arg)...
26.952381
62
0.701413
dace536a54fab3d730c678a35104b77adc213106
1,720
ex
Elixir
lib/auto_api/capabilities/vehicle_status_capability.ex
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
lib/auto_api/capabilities/vehicle_status_capability.ex
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
lib/auto_api/capabilities/vehicle_status_capability.ex
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
38.222222
79
0.747674
dace653e70fa3d7ff9be1a2cf9b5d3ad7c1ad886
2,225
exs
Elixir
apps/ex_wire/test/ex_wire/framing/frame_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
152
2018-10-27T04:52:03.000Z
2022-03-26T10:34:00.000Z
apps/ex_wire/test/ex_wire/framing/frame_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
270
2018-04-14T07:34:57.000Z
2018-10-25T18:10:45.000Z
apps/ex_wire/test/ex_wire/framing/frame_test.exs
wolflee/mana
db66dac85addfaad98d40da5bd4082b3a0198bb1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
25
2018-10-27T12:15:13.000Z
2022-01-25T20:31:14.000Z
defmodule ExWire.Framing.FrameTest do use ExUnit.Case, async: true alias ExthCrypto.AES alias ExWire.Framing.Frame test "mac encoder" do mac_secret = "2212767d793a7a3d66f869ae324dd11bd17044b82c9f463b8a541a4d089efec5" |> ExthCrypto.Math.hex_to_bin() input_1 = "12532abaec065082a3cf1da7d0136f...
35.31746
143
0.652135
dace6914e54c1c4113adf463402f1518b8570f81
1,129
exs
Elixir
test/scale/ggity_scale_size_continuous_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
test/scale/ggity_scale_size_continuous_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
test/scale/ggity_scale_size_continuous_test.exs
kianmeng/ggity
75f0097464eae4086f8c70e4bea995d60571eba9
[ "MIT" ]
null
null
null
defmodule GGityScaleSizeContinuousTest do use ExUnit.Case alias GGity.Scale.Size setup do %{min_max: {0, 4}} end describe "new/2" do test "returns a correct scale given default options", %{min_max: min_max} do scale = Size.Continuous.new() |> Size.Continuous.train(min_max) ...
31.361111
83
0.674934
dace771e4832ccc847a25424f7679c2d85eb0bee
1,728
ex
Elixir
clients/content/lib/google_api/content/v2/model/orders_create_test_return_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/content/lib/google_api/content/v2/model/orders_create_test_return_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_create_test_return_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "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 ...
32
152
0.743056
dace82c5c490e3394b8a1aa4c88084d892bff115
2,009
ex
Elixir
lib/stripe_callbacks/token.ex
aforward/stripe-callbacks
e9ba4a9ad2762f6b4024f346f0511d5de5152057
[ "MIT" ]
1
2019-03-14T18:56:43.000Z
2019-03-14T18:56:43.000Z
lib/stripe_callbacks/token.ex
aforward/stripe-callbacks
e9ba4a9ad2762f6b4024f346f0511d5de5152057
[ "MIT" ]
null
null
null
lib/stripe_callbacks/token.ex
aforward/stripe-callbacks
e9ba4a9ad2762f6b4024f346f0511d5de5152057
[ "MIT" ]
null
null
null
defmodule StripeCallbacks.Token do use Ecto.Schema import Ecto.Changeset import Ecto.Query, only: [from: 2] alias StripeCallbacks.{Token,Response,Repo} @derive {Poison.Encoder, only: [:data, :token_status]} schema "tokens" do field :data, :map field :token_status, :string timestamps() end ...
25.75641
95
0.629667
dacea99d5c0a47d4771590adcf6304876c402f2e
1,671
exs
Elixir
priv/repo/migrations/20140323232653_add_package_downloads_view.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20140323232653_add_package_downloads_view.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20140323232653_add_package_downloads_view.exs
findmypast/hexfmp
38a50f5e1057833fd98748faac230bf4b9cc26a3
[ "Apache-2.0" ]
null
null
null
defmodule Hexpm.Repo.Migrations.AddPackageDownloadsView do use Ecto.Migration def up do execute "CREATE TYPE calendar_view AS ENUM ('day', 'week', 'all')" execute """ CREATE MATERIALIZED VIEW package_downloads ( package_id, view, downloads) AS SELECT r.package_id, v...
34.102041
75
0.55775
dacead7d0b900f63482b0059d6c0405d9ae0d591
593
exs
Elixir
test/queerlink_web/views/error_view_test.exs
Queertoo/Queerlink
0a7726460cda63fc4ab342a2fe1d1155caa3d6d4
[ "MIT" ]
38
2015-11-07T23:54:26.000Z
2021-04-09T04:14:25.000Z
test/queerlink_web/views/error_view_test.exs
Queertoo/Queerlink
0a7726460cda63fc4ab342a2fe1d1155caa3d6d4
[ "MIT" ]
2
2015-11-23T15:00:34.000Z
2015-11-26T09:59:26.000Z
test/queerlink_web/views/error_view_test.exs
Queertoo/Queerlink
0a7726460cda63fc4ab342a2fe1d1155caa3d6d4
[ "MIT" ]
6
2015-11-26T00:25:22.000Z
2020-03-04T22:13:59.000Z
defmodule QueerlinkWeb.ErrorViewTest do use QueerlinkWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(QueerlinkWeb.ErrorView, "404.html", []) == "Page not found" end test "rende...
26.954545
70
0.689713
dacede9e780676859da4ec5997c1f98a67d6d563
761
exs
Elixir
test/elixir_search_extractor/search_keyword/html_parser_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
null
null
null
test/elixir_search_extractor/search_keyword/html_parser_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
32
2021-05-24T06:52:33.000Z
2021-07-19T05:04:40.000Z
test/elixir_search_extractor/search_keyword/html_parser_test.exs
rafayet-monon/elixir_search_extractor
a644e53ab364315fd7d055738d76e2ad1518d0ee
[ "MIT" ]
null
null
null
defmodule ElixirSearchExtractor.SearchKeyword.HtmlParserTest do use ElixirSearchExtractor.DataCase, async: true alias ElixirSearchExtractor.SearchKeyword.HtmlParser @html_fixture "test/support/fixtures/html_files/google_response.html" describe "parse/1" do test "returns parsed data" do {_, html} = ...
31.708333
71
0.716163
dacee071f247950071a3d9cdef84b7993b7011cd
693
ex
Elixir
lib/changelog/oban_workers/comment_notifier.ex
d-m-u/changelog.com
bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325
[ "MIT" ]
1
2020-09-04T03:25:40.000Z
2020-09-04T03:25:40.000Z
lib/changelog/oban_workers/comment_notifier.ex
d-m-u/changelog.com
bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325
[ "MIT" ]
null
null
null
lib/changelog/oban_workers/comment_notifier.ex
d-m-u/changelog.com
bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325
[ "MIT" ]
null
null
null
defmodule Changelog.ObanWorkers.CommentNotifier do @moduledoc """ This module defines the Oban worker for dealing with comment notifications. """ use Oban.Worker, queue: :comment_notifier alias Changelog.{NewsItemComment, Notifier, Repo} @five_mins 60 * 5 @impl Oban.Worker def perform(%Oban.Job{args...
23.896552
77
0.704185
dacee806645e5f7efb8537905883924a9f8cc77c
1,269
ex
Elixir
apps/elixir_ls_utils/test/support/packet_capture.ex
tmepple/elixir-ls
01d5ee857bb8b9e729da622dbc4f64b680aac3fc
[ "Apache-2.0" ]
null
null
null
apps/elixir_ls_utils/test/support/packet_capture.ex
tmepple/elixir-ls
01d5ee857bb8b9e729da622dbc4f64b680aac3fc
[ "Apache-2.0" ]
null
null
null
apps/elixir_ls_utils/test/support/packet_capture.ex
tmepple/elixir-ls
01d5ee857bb8b9e729da622dbc4f64b680aac3fc
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.Utils.PacketCapture do @moduledoc """ When set as group leader, captures packets output and sends them to another process This is useful in tests so we can use macros like `assert_receive` to test that packets are being output correctly. """ use GenServer ## Client API def start_l...
22.660714
99
0.650118
dacef71de6b102a8f58eb73c0dae76fcee64830c
3,316
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_table.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_table.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta1_document_page_table.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...
38.55814
212
0.743667
dacf2f6218d2d21073c5ccd53218fe837a2167c9
558
ex
Elixir
lib/firestorm_web/oembed.ex
abousamra/firestorm
4270774cb6f47be2f6341cfaac62fd44d3d10505
[ "MIT" ]
null
null
null
lib/firestorm_web/oembed.ex
abousamra/firestorm
4270774cb6f47be2f6341cfaac62fd44d3d10505
[ "MIT" ]
null
null
null
lib/firestorm_web/oembed.ex
abousamra/firestorm
4270774cb6f47be2f6341cfaac62fd44d3d10505
[ "MIT" ]
1
2020-03-20T12:58:37.000Z
2020-03-20T12:58:37.000Z
defmodule FirestormWeb.OEmbed do @cache_name :oembed_cache def for(url) do case get(url) do nil -> Task.start(fn() -> case OEmbed.for(url) do {:ok, result} -> LruCache.put(@cache_name, url, result) {:ok, result} {:error, reason} -> ...
21.461538
66
0.508961
dacf3bfef8eb80a5ba8fce26db35600c03c71098
3,147
exs
Elixir
test/slipstream/retry_backoff_test.exs
fhunleth/slipstream
cebd924384b93b7dd3c1aa6ae2ac8d237e942f18
[ "Apache-2.0" ]
63
2021-02-10T16:18:11.000Z
2022-03-18T11:06:44.000Z
test/slipstream/retry_backoff_test.exs
fhunleth/slipstream
cebd924384b93b7dd3c1aa6ae2ac8d237e942f18
[ "Apache-2.0" ]
21
2021-01-30T21:00:06.000Z
2021-12-27T04:27:15.000Z
test/slipstream/retry_backoff_test.exs
fhunleth/slipstream
cebd924384b93b7dd3c1aa6ae2ac8d237e942f18
[ "Apache-2.0" ]
6
2021-02-26T23:56:49.000Z
2022-03-26T09:28:13.000Z
defmodule Slipstream.RetryBackoffTest do use ExUnit.Case, async: true # test the reconnect/1 and rejoin/3 functionality import Slipstream import Slipstream.Socket import Slipstream.PidHelpers import Slipstream.Signatures, only: [command: 1] alias Slipstream.{Commands, CommandRouter} @moduletag :captu...
26.445378
86
0.622815
dacf3e667866c36edced3a547060fe68fe2b241e
57
ex
Elixir
web/views/page_view.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
1
2017-10-05T08:53:03.000Z
2017-10-05T08:53:03.000Z
web/views/page_view.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
null
null
null
web/views/page_view.ex
mallond/elixir-mix
dfdec1faace5e4457cecf4a34c83ca3c9c0f0f5f
[ "MIT" ]
1
2019-04-06T02:33:19.000Z
2019-04-06T02:33:19.000Z
defmodule ElixirMix.PageView do use ElixirMix.View end
14.25
31
0.824561
dacf4628fe654c861bda8c6dcc5a0484188327d6
1,725
exs
Elixir
Chapter09/apps/elixir_drip_web/test/elixir_drip_web/channels/user_channel_test.exs
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
28
2018-08-09T05:05:29.000Z
2022-03-14T06:59:07.000Z
Chapter09/apps/elixir_drip_web/test/elixir_drip_web/channels/user_channel_test.exs
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
1
2019-02-11T09:11:33.000Z
2019-05-06T06:40:19.000Z
Chapter09/apps/elixir_drip_web/test/elixir_drip_web/channels/user_channel_test.exs
sthagen/Mastering-Elixir
1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d
[ "MIT" ]
8
2018-08-09T14:53:02.000Z
2020-12-14T19:31:21.000Z
defmodule ElixirDripWeb.UserChannelTest do use ElixirDripWeb.ChannelCase setup [:create_users, :create_media, :connect_to_socket] test "join users:lobby pushes a 'presence_state' event to the joiner", %{socket: socket} do {:ok, _reply, _socket} = subscribe_and_join(socket, "users:lobby") assert_push "p...
32.54717
134
0.652754
dacf7718cc3fd58406a038d4901ac1e83fa75fde
813
ex
Elixir
samples/weather/lib/weather.ex
thbar/elixir-playground
4c3e8cecb927d05f762b666d3064114451786db4
[ "MIT" ]
14
2016-01-18T13:58:37.000Z
2021-08-09T11:39:54.000Z
samples/weather/lib/weather.ex
thbar/elixir-playground
4c3e8cecb927d05f762b666d3064114451786db4
[ "MIT" ]
null
null
null
samples/weather/lib/weather.ex
thbar/elixir-playground
4c3e8cecb927d05f762b666d3064114451786db4
[ "MIT" ]
null
null
null
defmodule Weather do defmodule CLI do def main(args) do process(args) end def process([target_code]) do target_code |> build_url |> fetch_page |> parse_response |> IO.puts end def process(_) do IO.puts "Syntax: weather target_code (e.g. KDTO)" Syst...
18.477273
58
0.586716
dacf9a519b86ee1c57caa0714162833c2e5a2516
408
ex
Elixir
apps/re/lib/calendars/policy.ex
ruby2elixir/emcasa-backend
70d7f4f233555417941ffa6ada84cf8740c21dd2
[ "MIT" ]
4
2019-11-01T16:29:31.000Z
2020-10-10T21:20:12.000Z
apps/re/lib/calendars/policy.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
null
null
null
apps/re/lib/calendars/policy.ex
caspg/backend
34df9dc14ab8ed75de4578fefa2e087580c7e867
[ "MIT" ]
5
2019-11-04T21:25:45.000Z
2020-02-13T23:49:36.000Z
defmodule Re.Calendars.Policy do @moduledoc """ Authorization policies for calendars """ alias Re.User def authorize(_, %User{role: "admin"}, _), do: :ok def authorize(:schedule_tour, %User{role: "user"}, _), do: :ok def authorize(:tour_options, %User{role: "user"}, _), do: :ok def authorize(_, nil, ...
25.5
64
0.64951
dacf9b733ff067f351083e5854c020c86b4b72f7
920
ex
Elixir
apps/faqcheck_web/lib/faqcheck_web/controllers/facility_controller.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
apps/faqcheck_web/lib/faqcheck_web/controllers/facility_controller.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
20
2021-09-08T04:07:31.000Z
2022-03-10T21:52:24.000Z
apps/faqcheck_web/lib/faqcheck_web/controllers/facility_controller.ex
csboling/faqcheck
bc182c365d466c8dcacc6b1a5fe9186a2c912cd4
[ "CC0-1.0" ]
null
null
null
defmodule FaqcheckWeb.FacilityController do use FaqcheckWeb, :controller alias Faqcheck.Referrals def title(action) do case action do :index -> gettext "Browse facilities" :show -> gettext "Facility details" :history -> gettext "Facility edit history" end end def index(conn, %{"lo...
26.285714
89
0.668478
dacfa418adc011c95ec59831bf39a4b2c68e7314
1,785
ex
Elixir
farmbot_core/lib/farmbot_celery_script/compiler/utils.ex
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_core/lib/farmbot_celery_script/compiler/utils.ex
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_celery_script/compiler/utils.ex
gdwb/farmbot_os
0ef2697c580c9fbf37a22daa063a64addfcb778d
[ "MIT" ]
null
null
null
defmodule FarmbotCeleryScript.Compiler.Utils do alias FarmbotCeleryScript.{ Compiler, AST, Compiler.Scope } @doc """ Recursively compiles a list or single Celery AST into an Elixir `__block__` """ def compile_block(ast, cs_scope) do compile_block(ast, cs_scope, []) end def compile_block...
25.869565
87
0.60056
dacfb292780c51131c20af7fd2d029c387986850
2,804
exs
Elixir
apps/ewallet/test/ewallet/web/v1/serializers/transaction_consumption_serializer_test.exs
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
1
2018-12-07T06:21:21.000Z
2018-12-07T06:21:21.000Z
apps/ewallet/test/ewallet/web/v1/serializers/transaction_consumption_serializer_test.exs
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/web/v1/serializers/transaction_consumption_serializer_test.exs
amadeobrands/ewallet
505b7822721940a7b892a9b35c225e80cc8ac0b4
[ "Apache-2.0" ]
null
null
null
defmodule EWallet.Web.V1.TransactionConsumptionSerializerTest do use EWallet.Web.SerializerCase, :v1 alias EWallet.Web.Date alias EWalletConfig.Helpers.Assoc alias EWalletDB.TransactionConsumption alias EWallet.Web.V1.{ AccountSerializer, TokenSerializer, TransactionConsumptionSerializer, Tra...
36.894737
84
0.691512
dacfcfd203ad47fccf3f1ff9a9f89ad0b53cf673
3,112
ex
Elixir
lib/august_db/sstable/zip.ex
Terkwood/AugustDB
6de696a80bc4eb523b89d64cd4292ac342bdb3aa
[ "MIT" ]
5
2021-07-28T15:56:42.000Z
2021-08-18T20:58:43.000Z
lib/august_db/sstable/zip.ex
Terkwood/AugustDB
6de696a80bc4eb523b89d64cd4292ac342bdb3aa
[ "MIT" ]
54
2021-07-28T14:51:49.000Z
2021-08-11T21:56:10.000Z
lib/august_db/sstable/zip.ex
Terkwood/AugustDB
6de696a80bc4eb523b89d64cd4292ac342bdb3aa
[ "MIT" ]
null
null
null
defmodule SSTable.Zip do defmodule Index do defstruct [:key, :offset] end defmodule ChunkAccum do defstruct [:payload, :current_chunk, :chunk_key, :chunk_offset, :index, :current_offset] def empty do %__MODULE__{ payload: <<>>, current_chunk: <<>>, chunk_key: nil, ...
32.416667
98
0.523458
dacfe0f8f382a849845ead06c4ef15629c98dff5
5,099
ex
Elixir
lib/afk/state.ex
doughsay/afk
9b7f55c98aa8c52dee3f134cef112c1361fe75f4
[ "MIT" ]
4
2019-12-10T21:27:06.000Z
2020-01-26T03:07:43.000Z
lib/afk/state.ex
doughsay/afk
9b7f55c98aa8c52dee3f134cef112c1361fe75f4
[ "MIT" ]
46
2019-12-13T05:46:08.000Z
2020-10-29T13:07:40.000Z
lib/afk/state.ex
nerves-keyboard/afk
9b7f55c98aa8c52dee3f134cef112c1361fe75f4
[ "MIT" ]
1
2020-01-02T13:35:03.000Z
2020-01-02T13:35:03.000Z
defmodule AFK.State do @moduledoc """ A GenServer process representing the current state of the keyboard. The process can effectively be thought of as a realtime stream manipulator. It receives key press and key release events (through `press_key/2` and `release_key/2` respectively) and transforms them into ...
26.419689
114
0.638164
dacff280be70056b1674bd41f6bf652721ae37e6
1,481
ex
Elixir
nevernote/lib/nevernote_web/views/error_helpers.ex
dreamingechoes/create-an-mvp-with-phoenix-framework
2a75582fdece9c8f0931f6322e27db5467ae96a4
[ "MIT" ]
4
2019-01-07T09:15:23.000Z
2021-06-18T02:56:14.000Z
nevernote/lib/nevernote_web/views/error_helpers.ex
dreamingechoes/create-an-mvp-with-phoenix-framework
2a75582fdece9c8f0931f6322e27db5467ae96a4
[ "MIT" ]
null
null
null
nevernote/lib/nevernote_web/views/error_helpers.ex
dreamingechoes/create-an-mvp-with-phoenix-framework
2a75582fdece9c8f0931f6322e27db5467ae96a4
[ "MIT" ]
null
null
null
defmodule NevernoteWeb.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_ta...
32.911111
78
0.672519
dad015d6b5d9048f6aadabb10bce5bd331238c9f
1,670
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.531915
281
0.747904
dad09dcd1c8095d4cec90d73836808b6fbdaff65
367
exs
Elixir
back/priv/repo/migrations/20190910095354_create_workingtimes.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
back/priv/repo/migrations/20190910095354_create_workingtimes.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
back/priv/repo/migrations/20190910095354_create_workingtimes.exs
HugoLefebvre/Epitech_TM_MP03
0ed161c956f7a10aec245fe2e17eb5a9b55f6075
[ "MIT" ]
null
null
null
defmodule Api.Repo.Migrations.CreateWorkingtimes do use Ecto.Migration def change do create table(:workingtimes) do add :start, :utc_datetime, null: false add :end, :utc_datetime, null: false add :user_a, references(:users, on_delete: :nothing), null: false timestamps() end cr...
22.9375
71
0.683924
dad0a1d9dc033ab372cc3d5726b4b5cffd92f0ab
14,228
ex
Elixir
deps/ecto/lib/ecto/changeset/relation.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/changeset/relation.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
deps/ecto/lib/ecto/changeset/relation.ex
Hajto/hangmanelixir
a05cc0b73e0a5d464405f63d274ae622565728ca
[ "MIT" ]
null
null
null
defmodule Ecto.Changeset.Relation do @moduledoc false use Behaviour alias Ecto.Changeset alias Ecto.Association.NotLoaded @type on_cast :: atom @type on_replace :: :raise | :mark_as_invalid | :delete | :nilify @type t :: %{__struct__: atom, cardinality: :one | :many, related: atom, on_cas...
32.558352
104
0.631501
dad0b6de9652178606d38c3306c4cb676a43c0c5
27,316
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/images.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/images.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/images.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
48.51865
1,213
0.686118
dad0dc38565b32c0942d55d3ff81bea191534390
67
exs
Elixir
test/test_helper.exs
zarynxyz/zaryn
5d6cf8b6e43e8cdf2a8d0688fb9c16e4509fc958
[ "Apache-2.0" ]
4
2021-05-29T11:22:36.000Z
2022-02-09T11:26:39.000Z
test/test_helper.exs
zarynxyz/zaryn
5d6cf8b6e43e8cdf2a8d0688fb9c16e4509fc958
[ "Apache-2.0" ]
2
2021-06-17T13:32:39.000Z
2022-02-09T11:26:02.000Z
test/test_helper.exs
zarynxyz/zaryn
5d6cf8b6e43e8cdf2a8d0688fb9c16e4509fc958
[ "Apache-2.0" ]
1
2021-06-04T14:27:20.000Z
2021-06-04T14:27:20.000Z
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Zaryn.Repo, :manual)
22.333333
51
0.776119
dad0ff7f20de9f6786e71df1095c6aab133d1d17
51
exs
Elixir
test/annex/utils_test.exs
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
1
2020-10-23T13:41:07.000Z
2020-10-23T13:41:07.000Z
test/annex/utils_test.exs
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
null
null
null
test/annex/utils_test.exs
arpieb/annex
6f472a30361bf0a1646e256d6dfe478706427f64
[ "MIT" ]
null
null
null
defmodule Annex.UtilsTest do use ExUnit.Case end
12.75
28
0.803922
dad126454de9238dca16ebef6544037242a23021
8,450
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/firewall.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/firewall.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/firewall.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "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...
87.113402
807
0.751834
dad1633440023fcd166bafc71ad15ae94db27d3b
669
exs
Elixir
test/models/ref_monitor_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
2
2019-03-05T16:29:10.000Z
2020-01-17T14:11:48.000Z
test/models/ref_monitor_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
3
2019-03-18T20:26:48.000Z
2020-06-25T14:31:13.000Z
test/models/ref_monitor_test.exs
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
1
2018-06-16T15:32:25.000Z
2018-06-16T15:32:25.000Z
defmodule CncfDashboardApi.RefMonitorTest do use CncfDashboardApi.ModelCase alias CncfDashboardApi.RefMonitor @valid_attrs %{order: 42, pipeline_id: 42, project_id: 42, ref: "some content", release_type: "some content", sha: "some content", status: "some content", arch: "", test_env: "stable", kubernetes_releas...
33.45
221
0.741405
dad1a31b93703a69a43cfca69285886c678f0d63
3,912
ex
Elixir
lib/mv_opentelemetry.ex
mindvalley/mv-opentelemetry
90d654c023e6912f74c2cce518530878b46dd20b
[ "MIT" ]
9
2021-10-05T08:01:18.000Z
2022-03-30T07:19:38.000Z
lib/mv_opentelemetry.ex
mindvalley/mv-opentelemetry
90d654c023e6912f74c2cce518530878b46dd20b
[ "MIT" ]
29
2021-10-04T05:46:47.000Z
2022-03-31T18:47:10.000Z
lib/mv_opentelemetry.ex
mindvalley/mv-opentelemetry
90d654c023e6912f74c2cce518530878b46dd20b
[ "MIT" ]
2
2021-10-04T05:50:38.000Z
2021-10-05T05:01:34.000Z
defmodule MvOpentelemetry do @moduledoc """ Top level module for Opentelemetry instrumentation, as used at Mindvalley. Used to publish Opentelemetry events to applicable processors, for example to Honeycomb. Opentelemetry resources and processor are configured outside of the scope of this module, use Opent...
47.707317
98
0.726994
dad1b355c81dc6ad55dbc6fe809a556d0ab6e78c
1,108
ex
Elixir
lib/bike_brigade/ecto_phone_number.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
28
2021-10-11T01:53:53.000Z
2022-03-24T17:45:55.000Z
lib/bike_brigade/ecto_phone_number.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
20
2021-10-21T08:12:31.000Z
2022-03-31T13:35:53.000Z
lib/bike_brigade/ecto_phone_number.ex
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
null
null
null
defmodule BikeBrigade.EctoPhoneNumber do @moduledoc """ Custom phone number type. I had some issues with https://github.com/surgeventures/ecto-phone-number and Canadian numbers. This is uses the ex_phone_number library but I simplified a lot based on my usecase """ defmodule InvalidNumber do defexception ...
29.157895
123
0.673285
dad1c2ac02301395aac71075f31420c2d9521cbb
124
exs
Elixir
config/otel_stdout.exs
irvingreid/control
07c661ed2e12bc60d53311ed2c7259efc8e88f96
[ "BSD-3-Clause" ]
null
null
null
config/otel_stdout.exs
irvingreid/control
07c661ed2e12bc60d53311ed2c7259efc8e88f96
[ "BSD-3-Clause" ]
null
null
null
config/otel_stdout.exs
irvingreid/control
07c661ed2e12bc60d53311ed2c7259efc8e88f96
[ "BSD-3-Clause" ]
null
null
null
import Config config :opentelemetry, :processors, otel_batch_processor: %{ exporter: {:otel_exporter_stdout, []} }
17.714286
41
0.717742
dad1d5f53c28f807da80324b3be95ec66a95a9b7
3,095
exs
Elixir
test/mix/tasks/ex_oauth2_provider.install_test.exs
gozego/ex_oauth2_provider
d3a7658d28233dda2dfdef7ed397b5b440a2f737
[ "Unlicense", "MIT" ]
2
2021-04-25T20:59:53.000Z
2021-07-13T22:49:20.000Z
test/mix/tasks/ex_oauth2_provider.install_test.exs
gozego/ex_oauth2_provider
d3a7658d28233dda2dfdef7ed397b5b440a2f737
[ "Unlicense", "MIT" ]
null
null
null
test/mix/tasks/ex_oauth2_provider.install_test.exs
gozego/ex_oauth2_provider
d3a7658d28233dda2dfdef7ed397b5b440a2f737
[ "Unlicense", "MIT" ]
null
null
null
defmodule Mix.Tasks.ExOauth2Provider.InstallTest do use ExUnit.Case, async: true import Mix.Tasks.ExOauth2Provider.Install, only: [run: 1] import ExOauth2Provider.FileHelpers defmodule Repo do def __adapter__ do true end def config do [priv: "tmp/#{inspect(ExOauth2Provider.Install)}",...
29.759615
108
0.683683
dad1dc0b4586d8a6c7ba8bf1ed2ca504af8e324a
656
ex
Elixir
lib/ellie_web/graphql/types/revision.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
377
2018-04-05T03:36:00.000Z
2022-03-30T19:12:44.000Z
lib/ellie_web/graphql/types/revision.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
91
2018-05-24T21:56:06.000Z
2022-02-26T03:54:04.000Z
lib/ellie_web/graphql/types/revision.ex
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
34
2018-05-29T03:54:35.000Z
2022-01-13T07:12:46.000Z
defmodule EllieWeb.Graphql.Types.Revision do use Absinthe.Schema.Notation object :revision do field :id, non_null(:project_id) field :title, :string field :elm_code, non_null(:string) field :html_code, non_null(:string) field :packages, non_null(list_of(non_null(:elm_package))) field :elm_v...
29.818182
68
0.727134
dad1de6595708c80bb7eb9ab0763e30dcf14af81
170
exs
Elixir
test/euler_test.exs
sebastiandedeyne/project-euler-elixir-kata
3434adf6dd075909d7efc69064859b31a0dab088
[ "MIT" ]
2
2016-05-31T00:47:09.000Z
2017-11-10T03:09:15.000Z
test/euler_test.exs
sebastiandedeyne/project-euler-elixir
3434adf6dd075909d7efc69064859b31a0dab088
[ "MIT" ]
null
null
null
test/euler_test.exs
sebastiandedeyne/project-euler-elixir
3434adf6dd075909d7efc69064859b31a0dab088
[ "MIT" ]
null
null
null
defmodule EulerTest do use ExUnit.Case doctest Euler.Problem1 doctest Euler.Problem2 doctest Euler.Problem3 doctest Euler.Problem4 doctest Euler.Problem5 end
18.888889
24
0.8
dad22a8311f72e1baec92f8a3003a260597f1c63
557
exs
Elixir
day20/test/day20_test.exs
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
day20/test/day20_test.exs
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
day20/test/day20_test.exs
bjorng/advent-of-code-2017
bd58a36864a4d82809253770f8a6d0c4e02cb59a
[ "Apache-2.0" ]
null
null
null
defmodule Day20Test do use ExUnit.Case doctest Day20 test "part 1 with example" do assert Day20.part1(example()) == 0 end test "part 1 with my input data" do assert Day20.part1(input()) == 157 end test "part 2 with my input data" do assert Day20.part2(input()) == 499 end defp example()...
18.566667
38
0.561939
dad239aa58f3d4a2619586a07ac1a5de767ed5f2
21,522
ex
Elixir
lib/phoenix_live_view/test/live_view_test.ex
smeade/phoenix_live_view
c981846c1e350bc689c28b4cbdaeffe1e30240b2
[ "MIT" ]
null
null
null
lib/phoenix_live_view/test/live_view_test.ex
smeade/phoenix_live_view
c981846c1e350bc689c28b4cbdaeffe1e30240b2
[ "MIT" ]
null
null
null
lib/phoenix_live_view/test/live_view_test.ex
smeade/phoenix_live_view
c981846c1e350bc689c28b4cbdaeffe1e30240b2
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveViewTest do @moduledoc """ Conveniences for testing Phoenix live views. In LiveView tests, we interact with views via process communication in substitution of a browser. Like a browser, our test process receives messages about the rendered updates from the view which can be asserted a...
31.191304
95
0.643946
dad2470f3b45604b7bb7f4a3071188ebae4e6bcd
11,702
exs
Elixir
test/omise/transfer_test.exs
vascoosx/omise-sample
f81f7ec26f6460778ce35c1e278ae7abf073a559
[ "MIT" ]
null
null
null
test/omise/transfer_test.exs
vascoosx/omise-sample
f81f7ec26f6460778ce35c1e278ae7abf073a559
[ "MIT" ]
null
null
null
test/omise/transfer_test.exs
vascoosx/omise-sample
f81f7ec26f6460778ce35c1e278ae7abf073a559
[ "MIT" ]
null
null
null
defmodule Omise.TransferTest do use Omise.TestCase, async: true alias Omise.Transfer setup do: set_fixture_dir("transfer") describe "list/2" do test "lists all transfers" do use_cassette "list_transfers" do assert Transfer.list(from: "2017-10-01") == {:ok, ...
38.493421
91
0.400615
dad2d28689cd12ab52d5e0e5f0f8e7fec51ee97c
769
exs
Elixir
test/apps/custom_table_name/config/config.exs
pumbaacave/yacto
6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23
[ "Apache-2.0" ]
null
null
null
test/apps/custom_table_name/config/config.exs
pumbaacave/yacto
6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23
[ "Apache-2.0" ]
null
null
null
test/apps/custom_table_name/config/config.exs
pumbaacave/yacto
6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :custom_table_name, :ecto_repos, [CustomTableName.Repo0, CustomTableName.Repo1] config :custom_table_name, CustomTableName.Repo0, adapter: Ecto.Adapters.MySQL, database: "custom_table_name_repo0", username: "root", password: "", hostname: "localhost", port: "3306" config :custom_tab...
28.481481
90
0.726918
dad2dfdfa21892919e308df143866363d6688ff7
447
exs
Elixir
priv/repo/migrations/00000_create_simplestats.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
11
2019-05-27T23:43:46.000Z
2021-08-24T06:37:23.000Z
priv/repo/migrations/00000_create_simplestats.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
1
2020-05-17T04:51:52.000Z
2021-03-25T15:38:33.000Z
priv/repo/migrations/00000_create_simplestats.exs
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
2
2019-05-27T23:43:52.000Z
2020-10-15T09:09:58.000Z
defmodule SimpleStatEx.Repo.Migrations.CreateSimplestats do @moduledoc false use Ecto.Migration def change do create_if_not_exists table(:simplestats) do add :category, :string add :period, :string add :time, :naive_datetime add :count, :integer timestamps() end create_...
24.833333
71
0.709172
dad2e439090979df81971b32c9ad7ba85337de3a
3,647
exs
Elixir
config/.credo.exs
coop/verk
cae9bea1426d5b340b3041b29453f17c709d70a8
[ "MIT" ]
null
null
null
config/.credo.exs
coop/verk
cae9bea1426d5b340b3041b29453f17c709d70a8
[ "MIT" ]
null
null
null
config/.credo.exs
coop/verk
cae9bea1426d5b340b3041b29453f17c709d70a8
[ "MIT" ]
1
2018-12-04T03:50:36.000Z
2018-12-04T03:50:36.000Z
# This file contains the configuration for Credo. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues %{ # # You can have as many configs as you like in the `configs:` field. configs: [ %{ # # Run any config using `mix ...
40.522222
84
0.65643
dad2f071713224ed667031137a86b98b7faacae2
410
exs
Elixir
priv/repo/migrations/20180711151703_create_communities_videos.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
priv/repo/migrations/20180711151703_create_communities_videos.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20180711151703_create_communities_videos.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Repo.Migrations.CreateCommunitiesVideos do use Ecto.Migration def change do create table(:communities_videos) do add(:community_id, references(:communities, on_delete: :delete_all), null: false) add(:video_id, references(:cms_videos, on_delete: :delete_all), null: false) ...
31.538462
87
0.74878
dad2f63b9a5188027a7a403fc06e43eb66f87168
1,105
ex
Elixir
test/support/conn_case.ex
supernintendo/rustler_live_view_toy
4faeb662daae4238142d3f560ef22d5cd26bb3c6
[ "Apache-2.0" ]
1
2019-10-07T09:30:16.000Z
2019-10-07T09:30:16.000Z
test/support/conn_case.ex
supernintendo/rustler_live_view_toy
4faeb662daae4238142d3f560ef22d5cd26bb3c6
[ "Apache-2.0" ]
2
2021-03-09T19:17:39.000Z
2021-05-10T16:30:30.000Z
test/support/conn_case.ex
supernintendo/rustler_live_view_toy
4faeb662daae4238142d3f560ef22d5cd26bb3c6
[ "Apache-2.0" ]
null
null
null
defmodule RustlerLiveViewToyWeb.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. Fin...
28.333333
80
0.732127
dad3367d2405d73b75b6f9305a420466eee60cd7
1,331
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/partitioned_dml.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/partitioned_dml.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/partitioned_dml.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.953488
77
0.760331
dad3603c5ef186f722a71fa228a50d78605c273f
1,499
ex
Elixir
lib/MiscRandom.ex
esaj/elixir-stringga
c90d775b0918d4f86c28d750b9b6eaf49d97724c
[ "WTFPL" ]
null
null
null
lib/MiscRandom.ex
esaj/elixir-stringga
c90d775b0918d4f86c28d750b9b6eaf49d97724c
[ "WTFPL" ]
null
null
null
lib/MiscRandom.ex
esaj/elixir-stringga
c90d775b0918d4f86c28d750b9b6eaf49d97724c
[ "WTFPL" ]
null
null
null
#Originally from https://gist.github.com/ahmadshah/8d978bbc550128cca12dd917a09ddfb7 defmodule Randomizer do @moduledoc """ Random string generator module. """ @doc """ Generate random string based on the given legth. It is also possible to generate certain type of randomise string using the options below:...
31.893617
140
0.653102
dad382bd87b0dd70f33c72aed15f8b065023d17e
414
ex
Elixir
test/support/user.ex
curator-ex/curator_approvable
d316fe2c3aa7a2a7026ff4c1c8d7503118d17687
[ "MIT" ]
null
null
null
test/support/user.ex
curator-ex/curator_approvable
d316fe2c3aa7a2a7026ff4c1c8d7503118d17687
[ "MIT" ]
null
null
null
test/support/user.ex
curator-ex/curator_approvable
d316fe2c3aa7a2a7026ff4c1c8d7503118d17687
[ "MIT" ]
null
null
null
defmodule CuratorApprovable.Test.User do use Ecto.Schema import Ecto.Changeset use CuratorApprovable.Schema schema "users" do field :name, :string field :email, :string curator_approvable_schema timestamps end def changeset(model, params \\ %{}) do model |> cast(params, [:email,...
18
41
0.673913
dad3aab08ab62c466aeccf79dda320e4eedcd57c
811
ex
Elixir
chapter_7/todo_worker_pool/lib/todo/database/worker.ex
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
3
2021-04-22T11:55:58.000Z
2021-08-22T13:19:56.000Z
chapter_7/todo_worker_pool/lib/todo/database/worker.ex
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
null
null
null
chapter_7/todo_worker_pool/lib/todo/database/worker.ex
librity/elixir_in_action
d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec
[ "MIT" ]
3
2021-04-22T21:19:45.000Z
2021-08-22T13:20:03.000Z
defmodule Todo.Database.Worker do use GenServer @impl GenServer def init(db_folder), do: {:ok, db_folder} @impl GenServer def handle_cast({:store, key, data}, db_folder) do key |> file_name(db_folder) |> File.write!(:erlang.term_to_binary(data)) {:noreply, db_folder} end def handle_cas...
24.575758
90
0.669544
dad3f6ed8ae5018c4858c3ba4edf6f0fa78a52b2
709
ex
Elixir
lib/banchan/identities/identities.ex
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan/identities/identities.ex
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan/identities/identities.ex
tacohole/banchan
04c9f2fd5464e697d9b69e4bc524ace5f6487487
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
defmodule Banchan.Identities do @moduledoc """ The Identities context. """ alias Banchan.Accounts.User alias Banchan.Repo alias Banchan.Studios.Studio def get_user_or_studio_by_handle(handle) do cond do user = Repo.get_by(User, handle: handle) -> {:ok, user} studio = Repo.get_by(Studio, h...
23.633333
67
0.674189
dad42f0808081c7537b23209685a75a26ae7cd26
30,433
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/node_templates.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/node_templates.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/node_templates.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.164782
511
0.641343
dad47c2cf9bea2fe88b499462b919612449d6434
2,687
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_report_compatible_fields.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_report_compatible_fields.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_report_compatible_fields.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...
47.982143
203
0.747302
dad482bd8722045d5685de2e02352f8096b81445
351
exs
Elixir
priv/repo/seeds.exs
evandiewald/mappers
7359cfb39a4d9d26c42f5917ee04a7e41d3291bc
[ "Apache-2.0" ]
32
2021-04-22T01:55:31.000Z
2022-02-25T13:17:21.000Z
priv/repo/seeds.exs
evandiewald/mappers
7359cfb39a4d9d26c42f5917ee04a7e41d3291bc
[ "Apache-2.0" ]
58
2021-06-04T18:42:59.000Z
2022-03-31T07:17:01.000Z
priv/repo/seeds.exs
evandiewald/mappers
7359cfb39a4d9d26c42f5917ee04a7e41d3291bc
[ "Apache-2.0" ]
13
2021-04-10T06:09:15.000Z
2022-03-23T13:07:37.000Z
# 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: # # Mappers.Repo.insert!(%Mappers.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will...
29.25
61
0.706553
dad48c0d39bd53d1069f2607a77876b73590efd3
1,779
ex
Elixir
lib/maru/response.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
819
2016-11-25T07:12:04.000Z
2022-03-16T06:59:36.000Z
lib/maru/response.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
71
2016-11-24T20:19:09.000Z
2021-06-09T10:12:23.000Z
lib/maru/response.ex
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
56
2015-01-10T23:34:12.000Z
2016-11-17T00:13:56.000Z
defmodule Maru.Response do @moduledoc """ This module is a wrapper for request and response of maru. """ @doc false defmacro __using__(_) do quote do import unquote(__MODULE__) import Plug.Conn end end @doc """ Get params. """ def get_maru_params(conn) do conn.private[:maru...
20.929412
84
0.62226
dad4a238eb14f5f723c3f69eb1d5356d54fd3672
2,105
ex
Elixir
apps/omg_watcher/lib/omg_watcher/http_rpc/client.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/lib/omg_watcher/http_rpc/client.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher/lib/omg_watcher/http_rpc/client.ex
boolafish/elixir-omg
46b568404972f6e4b4da3195d42d4fb622edb934
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 OmiseGO 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 in ...
31.41791
106
0.673159
dad4a2a054d5e7ec3b3768db8fb7251ea46a7855
2,124
ex
Elixir
deps/ex_doc/lib/ex_doc/doc_ast.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/ex_doc/lib/ex_doc/doc_ast.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/ex_doc/lib/ex_doc/doc_ast.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
defmodule ExDoc.DocAST do @moduledoc false alias ExDoc.Markdown alias ExDoc.Formatter.HTML.Templates @doc """ Parse given `doc` according to `doc_format`. """ def parse!(doc, doc_format, options \\ []) def parse!(markdown, "text/markdown", opts) do parse_markdown(markdown, opts) end def pars...
25.902439
97
0.661959
dad4a96def1bb2c320c30432c6393b8fdd2e12e6
855
exs
Elixir
astreu/deps/merkle_map/mix.exs
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
astreu/deps/merkle_map/mix.exs
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
astreu/deps/merkle_map/mix.exs
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
defmodule MerkleMap.MixProject do use Mix.Project def project do [ app: :merkle_map, version: "0.2.1", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, package: package(), deps: deps() ] end # Run "mix help compile.app" to learn about applications. def appli...
20.853659
66
0.564912
dad4ce2689b1a65c40e2a150549c87ace9963c69
1,430
exs
Elixir
api/test/controllers/session_controller_test.exs
AlexYanai/microblogger
833320759cddd276bc31dabaec6f0c9e2eabb05a
[ "MIT" ]
null
null
null
api/test/controllers/session_controller_test.exs
AlexYanai/microblogger
833320759cddd276bc31dabaec6f0c9e2eabb05a
[ "MIT" ]
null
null
null
api/test/controllers/session_controller_test.exs
AlexYanai/microblogger
833320759cddd276bc31dabaec6f0c9e2eabb05a
[ "MIT" ]
null
null
null
defmodule Microblogger.SessionControllerTest do use Microblogger.ConnCase alias Microblogger.{User} @user_attrs %{email: "some_email", password: "some_pass", bio: "some_bio", username: "some_user"} setup %{conn: _} do current_user = User.registration_changeset(%User{}, @user_attrs) |> Repo.insert! new...
34.878049
99
0.658042
dad5235ec5b334dad9ec9978ae2948d463b9e1f1
3,934
ex
Elixir
lib/identicon.ex
Weenkus/identicon
333d831e708b780cda4bf6f95824110aec315c7d
[ "MIT" ]
3
2017-11-09T19:13:58.000Z
2021-01-30T06:04:29.000Z
lib/identicon.ex
Weenkus/identicon_generator
333d831e708b780cda4bf6f95824110aec315c7d
[ "MIT" ]
null
null
null
lib/identicon.ex
Weenkus/identicon_generator
333d831e708b780cda4bf6f95824110aec315c7d
[ "MIT" ]
null
null
null
defmodule Identicon do @moduledoc """ Builds a identicon from an input string. An Identicon is a visual representation of a hash value, usually of an IP address, that serves to identify a user of a computer system as a form of avatar while protecting the users' privacy. The original Identicon was a 9...
28.926471
91
0.595577
dad52de10b6e6b63cc490554969729025475a775
3,249
ex
Elixir
clients/container/lib/google_api/container/v1/model/master_auth.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/master_auth.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/container/lib/google_api/container/v1/model/master_auth.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...
43.905405
190
0.722684
dad53841d484d410a1ff09f295dc7c09019852e3
1,327
exs
Elixir
mix.exs
aramsm/alchemy
056a07f9efcb0d03bf295073c3e1fdddcbb9ddd7
[ "MIT" ]
null
null
null
mix.exs
aramsm/alchemy
056a07f9efcb0d03bf295073c3e1fdddcbb9ddd7
[ "MIT" ]
null
null
null
mix.exs
aramsm/alchemy
056a07f9efcb0d03bf295073c3e1fdddcbb9ddd7
[ "MIT" ]
null
null
null
defmodule Alchemy.Mixfile do use Mix.Project def project do [ app: :alchemy, version: "0.6.9", elixir: "~> 1.8", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps(), docs: doc...
22.491525
79
0.553127
dad57a254bd2dd78f4713de9e88b1e6799ca89a7
1,292
exs
Elixir
test/membrane_tee_plugin/parallel/pipeline_parallel_test.exs
membraneframework/membrane_tee_plugin
d453c01e00783502ad5945e594fb2450c2492ab7
[ "Apache-2.0" ]
1
2022-03-03T11:56:40.000Z
2022-03-03T11:56:40.000Z
test/membrane_tee_plugin/parallel/pipeline_parallel_test.exs
membraneframework/membrane_tee_plugin
d453c01e00783502ad5945e594fb2450c2492ab7
[ "Apache-2.0" ]
null
null
null
test/membrane_tee_plugin/parallel/pipeline_parallel_test.exs
membraneframework/membrane_tee_plugin
d453c01e00783502ad5945e594fb2450c2492ab7
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Tee.PipelineParallelTest do @moduledoc false use ExUnit.Case, async: true use Bunch import Membrane.Testing.Assertions alias Membrane.Buffer alias Membrane.Testing.{Source, Pipeline, Sink} def make_pipeline(data) do import Membrane.ParentSpec Pipeline.start_link( child...
26.367347
65
0.639319
dad58d0fe468b5e1664c67c87c1eb61964e01855
6,122
ex
Elixir
lib/oli/delivery/sections/section.ex
ehilfer/oli-torus
c2babe03047bfca2d3fe59ae3b7604597e34001e
[ "MIT" ]
null
null
null
lib/oli/delivery/sections/section.ex
ehilfer/oli-torus
c2babe03047bfca2d3fe59ae3b7604597e34001e
[ "MIT" ]
null
null
null
lib/oli/delivery/sections/section.ex
ehilfer/oli-torus
c2babe03047bfca2d3fe59ae3b7604597e34001e
[ "MIT" ]
null
null
null
defmodule Oli.Delivery.Sections.Section do use Ecto.Schema import Ecto.Changeset import Oli.Utils alias Oli.Utils.Slug alias Oli.Authoring.Course.Project alias Oli.Institutions.Institution alias Oli.Branding.Brand alias Oli.Delivery.DeliveryPolicy alias Oli.Delivery.Sections.{ SectionsProjectsPu...
29.574879
98
0.68213
dad5a20694c0e380c57954ac630bcb97fe9c118a
106
ex
Elixir
lib/exshome/dependency/not_ready.ex
exshome/exshome
ef6b7a89f11dcd2016856dd49517b74aeebb6513
[ "MIT" ]
2
2021-12-21T16:32:56.000Z
2022-02-22T17:06:39.000Z
lib/exshome/dependency/not_ready.ex
exshome/exshome
ef6b7a89f11dcd2016856dd49517b74aeebb6513
[ "MIT" ]
null
null
null
lib/exshome/dependency/not_ready.ex
exshome/exshome
ef6b7a89f11dcd2016856dd49517b74aeebb6513
[ "MIT" ]
null
null
null
defmodule Exshome.Dependency.NotReady do @moduledoc """ Shows when dependency is not ready. """ end
17.666667
40
0.726415
dad5bf75307dcf57c0f450596c2b2d3e3a6d3d33
11,411
ex
Elixir
lib/web/command.ex
notriddle-cerebrum/bors-ng
7a7d8408e2dea09e928a476ac72fd3a8b4d6d216
[ "Apache-2.0" ]
null
null
null
lib/web/command.ex
notriddle-cerebrum/bors-ng
7a7d8408e2dea09e928a476ac72fd3a8b4d6d216
[ "Apache-2.0" ]
null
null
null
lib/web/command.ex
notriddle-cerebrum/bors-ng
7a7d8408e2dea09e928a476ac72fd3a8b4d6d216
[ "Apache-2.0" ]
1
2018-10-18T13:42:34.000Z
2018-10-18T13:42:34.000Z
defmodule BorsNG.Command do @moduledoc """ Resolve magic comments. # try The bors comment CLI allows parameters to be passed to try. Assuming the activation phrase is "bors try", you can do things like this: bors try --layout And the commit will come out like: Try #13: --layout Your buil...
27.169048
79
0.611515
dad5db5d5fccbb77fe5f164e9fb89450061ac328
505
ex
Elixir
lib/helpers/tuple.ex
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
1
2021-03-11T23:24:01.000Z
2021-03-11T23:24:01.000Z
lib/helpers/tuple.ex
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
null
null
null
lib/helpers/tuple.ex
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
2
2021-03-11T23:27:39.000Z
2022-03-06T10:09:40.000Z
defmodule Buildex.Common.Helpers.Tuple do @moduledoc """ A set of helper functions for working with `tuples` """ # Implements `Poison.Encoder` for `Tuple` defimpl Poison.Encoder, for: Tuple do @doc """ Converts a key-value `tuple` into a 2 element list for ease of encoding """ def encode({key...
25.25
75
0.667327
dad60dcafba9946b00558c4473f189b2b1f9c358
4,668
ex
Elixir
lib/ex_lock.ex
ndalmia/ex_lock
02dcca2ea2f214952d579ce1b4466ffaadd21bf1
[ "MIT" ]
3
2020-10-28T11:56:29.000Z
2021-07-10T13:04:44.000Z
lib/ex_lock.ex
ndalmia/ex_lock
02dcca2ea2f214952d579ce1b4466ffaadd21bf1
[ "MIT" ]
null
null
null
lib/ex_lock.ex
ndalmia/ex_lock
02dcca2ea2f214952d579ce1b4466ffaadd21bf1
[ "MIT" ]
null
null
null
defmodule ExLock do defmodule Error do defexception message: "" @type t :: %ExLock.Error{} end defmodule Holder do defstruct connection: nil, release_task: nil @type t :: %ExLock.Holder{} end @spec acquire(key :: String.t(), opts :: Keyword.t()) :: {:ok, ExLock.Holder.t()} | {:error, ExLock...
31.540541
163
0.632177
dad61c11a741dbfba388fac190f3a2b97681ca0e
103
ex
Elixir
testData/org/elixir_lang/reference/callable/issue_480/remote.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/reference/callable/issue_480/remote.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/reference/callable/issue_480/remote.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
defmodule AliasedModuleQualifier do import MyNamespace.Referenced %{} |> <caret>changeset() end
14.714286
35
0.747573
dad631cc35f03fe566622094ef58852bf8670949
6,698
exs
Elixir
farmbot_os/test/farmbot_os/lua/ext/data_manipulation_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_os/test/farmbot_os/lua/ext/data_manipulation_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_os/test/farmbot_os/lua/ext/data_manipulation_test.exs
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotOS.Lua.Ext.DataManipulationTest do use ExUnit.Case use Mimic setup :verify_on_exit! alias FarmbotOS.SysCalls.ResourceUpdate alias FarmbotOS.Lua.Ext.DataManipulation # Random tidbits needed for mocks / stubs. defstruct [:key, :value] def lua(test_name, lua_code) do FarmbotOS.Lua.ev...
27.677686
81
0.594207
dad6469189cdeb8b6549fcc2a25bcc2182e53eb5
2,282
ex
Elixir
clients/games/lib/google_api/games/v1/model/turn_based_match_results.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/games/lib/google_api/games/v1/model/turn_based_match_results.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/turn_based_match_results.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 ...
40.75
186
0.72787
dad68598dc7e01af700c2f422ad0487a43a71148
4,998
exs
Elixir
test/changelog_web/controllers/auth_controller_test.exs
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
test/changelog_web/controllers/auth_controller_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
test/changelog_web/controllers/auth_controller_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule ChangelogWeb.AuthControllerTest do use ChangelogWeb.ConnCase use Bamboo.Test alias Changelog.Person test "getting the sign in form", %{conn: conn} do conn = get(conn, Routes.sign_in_path(conn, :new)) assert html_response(conn, 200) =~ "Sign In" end @tag :as_user test "getting the sign...
29.573964
95
0.603641
dad68e25af1fa82d77fb3a062be95b4ea1d37547
2,789
ex
Elixir
clients/docs/lib/google_api/docs/v1/model/inline_object.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/docs/lib/google_api/docs/v1/model/inline_object.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/docs/lib/google_api/docs/v1/model/inline_object.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...
42.257576
240
0.726784
dad69e225094f4bdb88f7a2ddd95453eff14ba5e
4,716
ex
Elixir
lib/workers/send_account_conversation_reminders.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/workers/send_account_conversation_reminders.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/workers/send_account_conversation_reminders.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Workers.SendAccountConversationReminders do @moduledoc false use Oban.Worker, queue: :default alias ChatApi.{Accounts, Conversations, Messages} alias ChatApi.Accounts.{Account, Settings} alias ChatApi.Conversations.Conversation alias ChatApi.Messages.Message require Logger @impl Ob...
31.026316
114
0.639525
dad6d8c5103159c597ece9ca2e7e55bbfc9af378
56
ex
Elixir
lib/membrane/notification.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
lib/membrane/notification.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
lib/membrane/notification.ex
treble37/membrane-core
3f7c7200a80eef370092ef252b5f75dc9eb16cbd
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.Notification do @type t :: any end
14
34
0.75
dad6eaba5b2b1a469904970cd100267dabed4ba4
12,984
ex
Elixir
lib/codes/codes_s03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_s03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_s03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_S03 do alias IcdCode.ICDCode def _S0300XA do %ICDCode{full_code: "S0300XA", category_code: "S03", short_code: "00XA", full_name: "Dislocation of jaw, unspecified side, initial encounter", short_name: "Dislocation of jaw, unspecified side, in...
39.226586
108
0.633703
dad6f55636faa56cfe5e59e4ed326126e1dbe696
7,049
ex
Elixir
lib/want/keyword.ex
wrren/want.erl
32a06e947e87507263ca93dd823437716c9a79a0
[ "MIT" ]
1
2018-08-30T17:47:10.000Z
2018-08-30T17:47:10.000Z
lib/want/keyword.ex
wrren/want.erl
32a06e947e87507263ca93dd823437716c9a79a0
[ "MIT" ]
null
null
null
lib/want/keyword.ex
wrren/want.erl
32a06e947e87507263ca93dd823437716c9a79a0
[ "MIT" ]
null
null
null
defmodule Want.Keyword do @moduledoc """ Manages conversions to and from keyword lists. """ @type input :: Keyword.t() | map() @type schema :: map() @type key :: binary() | atom() @type opts :: Keyword.t() @type result :: {:ok, result :: Keyword.t()} | {:error, reason :: binary()} ...
35.781726
135
0.540502
dad6fe652f4fe1a22ae398ccd8060caaa73edcf3
925
exs
Elixir
3-immutability/simple_tricks.exs
crertel/elixir-book-practice
c82c7f71498f187430e836c812701ee1ddbb8092
[ "Unlicense" ]
1
2016-06-17T01:35:41.000Z
2016-06-17T01:35:41.000Z
3-immutability/simple_tricks.exs
crertel/elixir-book-practice
c82c7f71498f187430e836c812701ee1ddbb8092
[ "Unlicense" ]
null
null
null
3-immutability/simple_tricks.exs
crertel/elixir-book-practice
c82c7f71498f187430e836c812701ee1ddbb8092
[ "Unlicense" ]
null
null
null
""" Simple multiple assignment """ """ So, interesting thing--this will complain about 'warning: variable a is unused'. I'm willing to bet that this is because, behind the scenes, the two assignments to a (which Erlang would, I think, prevent) variable are renamed to (a1, a2) or something similar, and the first (a1) i...
25.694444
324
0.715676
dad71876b9db7ff53482a1dcac1ab4569e9278a3
755
exs
Elixir
sieve/sieve.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
sieve/sieve.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
sieve/sieve.exs
nlhuykhang/elixir-exercism
0462661cc411cb28b4bf800639b16684480a06a7
[ "MIT" ]
null
null
null
defmodule Sieve do @doc """ Generates a list of primes up to a given limit. """ @spec primes_to(non_neg_integer) :: [non_neg_integer] def primes_to(limit) do do_job(2, limit, [], []) end defp do_job(cur, limit, prime_list, _) when cur > limit, do: prime_list defp do_job(cur, limit, prime_list, not...
32.826087
111
0.664901
dad71dbe2ac8cb9cf3e22244574a5353172c3004
1,090
ex
Elixir
lib/type_check/builtin/literal.ex
ktec/elixir-type_check
42bde40b4a67e999653c5336294dc651c98a747a
[ "MIT" ]
null
null
null
lib/type_check/builtin/literal.ex
ktec/elixir-type_check
42bde40b4a67e999653c5336294dc651c98a747a
[ "MIT" ]
null
null
null
lib/type_check/builtin/literal.ex
ktec/elixir-type_check
42bde40b4a67e999653c5336294dc651c98a747a
[ "MIT" ]
null
null
null
defmodule TypeCheck.Builtin.Literal do defstruct [:value] use TypeCheck @type! t :: %__MODULE__{value: term()} @type! problem_tuple :: {t(), :not_same_value, map(), value :: any()} defimpl TypeCheck.Protocols.ToCheck do def to_check(s = %{value: value}, param) do quote location: :keep do c...
24.772727
86
0.590826
dad73fed4288aed9b4e84b8eba769f30db5c76e8
940
exs
Elixir
mix.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
mix.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
mix.exs
wisq/sundog
78ec18a07ad2a21bcb0ff9f069679497096ce916
[ "Apache-2.0" ]
null
null
null
defmodule Sundog.Mixfile do use Mix.Project def project do [ app: :sundog, version: "0.1.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ mod: {Sundog, []...
24.102564
88
0.508511
dad74c2356a95fee5761201b43c0425d9111a049
20,640
ex
Elixir
lib/swoosh/email.ex
nathf/swoosh
9507d32e3c14f52ef37e10996f161898c0c11250
[ "MIT" ]
null
null
null
lib/swoosh/email.ex
nathf/swoosh
9507d32e3c14f52ef37e10996f161898c0c11250
[ "MIT" ]
null
null
null
lib/swoosh/email.ex
nathf/swoosh
9507d32e3c14f52ef37e10996f161898c0c11250
[ "MIT" ]
null
null
null
defmodule Swoosh.Email do @moduledoc """ Defines an Email. This module defines a `Swoosh.Email` struct and the main functions for composing an email. As it is the contract for the public APIs of Swoosh it is a good idea to make use of these functions rather than build the struct yourself. ## Email fields ...
40.233918
175
0.622674
dad75f6f1530ae3919d28a22a0ceae4edde113f3
2,163
ex
Elixir
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/raw_hashes.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/raw_hashes.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/safe_browsing/lib/google_api/safe_browsing/v4/model/raw_hashes.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 ...
36.661017
134
0.732316
dad7b77facefd88f6201724dd630ff54e99a173e
1,861
ex
Elixir
apps/uniflow_web/lib/uniflow_web.ex
andyl/uniflow
049050d2e41b8242bb1e6c543d715caa0d0e7f02
[ "MIT" ]
null
null
null
apps/uniflow_web/lib/uniflow_web.ex
andyl/uniflow
049050d2e41b8242bb1e6c543d715caa0d0e7f02
[ "MIT" ]
9
2021-05-10T18:31:22.000Z
2021-05-27T12:57:20.000Z
apps/uniflow_web/lib/uniflow_web.ex
andyl/uniflow
049050d2e41b8242bb1e6c543d715caa0d0e7f02
[ "MIT" ]
null
null
null
defmodule UniflowWeb 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 UniflowWeb, :controller use UniflowWeb, :view The definitions below will be executed for every view, controller, ...
25.148649
97
0.692638
dad7bde4e2e53d67563e3449d2b4b6b1696305f0
3,943
ex
Elixir
lib/konvex/implementation/riak/ability/to_remove_key_from_map_value.ex
KosyanMedia/konvex
03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a
[ "MIT" ]
1
2022-03-08T08:30:24.000Z
2022-03-08T08:30:24.000Z
lib/konvex/implementation/riak/ability/to_remove_key_from_map_value.ex
KosyanMedia/konvex
03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a
[ "MIT" ]
1
2022-01-28T16:45:57.000Z
2022-01-28T16:56:22.000Z
lib/konvex/implementation/riak/ability/to_remove_key_from_map_value.ex
KosyanMedia/konvex
03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a
[ "MIT" ]
null
null
null
defmodule Konvex.Implementation.Riak.Ability.ToRemoveKeyFromMapValue do @moduledoc """ There is no apriori information about map_key value type in this ability, so to satisfy it's semantics we have to remove map_key of any value type as Riak treats CRDT as an additional namespace (so it can keep different val...
39.828283
131
0.523206
dad7ce28b14bb335e95f710251b2d64ce6f695b1
1,618
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/billing_config.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/billing_config.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/billing_config.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.708333
142
0.758962
dad7e5c746ea99d34c81f416f5cd3a6ab40f7b34
42
ex
Elixir
sample.env.ex
mrzacsmith/new-calendar-be
66f27db35be4b72c9a3ad1190b99aa6cfd3b428a
[ "Unlicense" ]
1
2020-09-26T17:57:15.000Z
2020-09-26T17:57:15.000Z
sample.env.ex
mrzacsmith/new-calendar-be
66f27db35be4b72c9a3ad1190b99aa6cfd3b428a
[ "Unlicense" ]
3
2020-09-11T21:15:30.000Z
2020-10-10T14:04:42.000Z
sample.env.ex
mrzacsmith/new-calendar-be
66f27db35be4b72c9a3ad1190b99aa6cfd3b428a
[ "Unlicense" ]
3
2020-10-06T22:11:03.000Z
2020-10-08T02:55:57.000Z
POST = 5555 MONGO_URI = mongodb+srv://here
21
30
0.738095
dad7fd8dd390ea4db14a7fd06695121846ca7ede
171
exs
Elixir
test/api_heavy_processing_test.exs
joaoeliandro/api-heavy-processing
4073b18e2e3e85f336e9d85d45f9cd8349805d51
[ "MIT" ]
null
null
null
test/api_heavy_processing_test.exs
joaoeliandro/api-heavy-processing
4073b18e2e3e85f336e9d85d45f9cd8349805d51
[ "MIT" ]
null
null
null
test/api_heavy_processing_test.exs
joaoeliandro/api-heavy-processing
4073b18e2e3e85f336e9d85d45f9cd8349805d51
[ "MIT" ]
null
null
null
defmodule ApiHeavyProcessingTest do use ExUnit.Case doctest ApiHeavyProcessing test "greets the world" do assert ApiHeavyProcessing.hello() == :world end end
19
47
0.766082
dad80948dd832912ac37af07542a69c77e8dbff0
557
ex
Elixir
web/views/moment_view.ex
hrobeers/fran-planner
1f049ad65f5d18991a8abeeb6ba7fb583463630a
[ "BSD-2-Clause" ]
3
2015-07-18T22:21:30.000Z
2015-07-19T16:25:35.000Z
web/views/moment_view.ex
hrobeers/fran-planner
1f049ad65f5d18991a8abeeb6ba7fb583463630a
[ "BSD-2-Clause" ]
null
null
null
web/views/moment_view.ex
hrobeers/fran-planner
1f049ad65f5d18991a8abeeb6ba7fb583463630a
[ "BSD-2-Clause" ]
null
null
null
defmodule FranAppBackend.MomentView do use FranAppBackend.Web, :view def render("index.json", %{moments: moments}) do %{moments: render_many(moments, "moment.json")} end def render("show.json", %{moment: moment}) do %{moment: render_one(moment, "moment.json")} end def render("moment.json", %{mome...
24.217391
51
0.628366
dad80a770b0379fbc9de8f74943a39e19d2663c1
756
exs
Elixir
test/_support/test_server.exs
ityonemo/multiverses
24b65367b369cc8122d24836816340ff2072c501
[ "MIT" ]
4
2020-06-27T02:15:42.000Z
2020-12-21T14:24:42.000Z
test/_support/test_server.exs
ityonemo/multiverses
24b65367b369cc8122d24836816340ff2072c501
[ "MIT" ]
4
2020-06-03T16:51:55.000Z
2020-09-08T19:28:55.000Z
test/_support/test_server.exs
ityonemo/multiverses
24b65367b369cc8122d24836816340ff2072c501
[ "MIT" ]
1
2020-12-21T14:24:47.000Z
2020-12-21T14:24:47.000Z
defmodule MultiversesTest.Registry.TestServer do @moduledoc false use Multiverses, with: Registry use GenServer def start_link(reg, name) do link = Multiverses.link() GenServer.start_link(__MODULE__, {reg, name, link}) end def init({reg, name, link}) do Multiverses.port(link) Registry.re...
23.625
73
0.667989
dad81d5946b797a73b1e195d262d90905a6c1500
1,431
ex
Elixir
exercises/practice/all-your-base/.meta/example.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
343
2017-06-22T16:28:28.000Z
2022-03-25T21:33:32.000Z
exercises/practice/all-your-base/.meta/example.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
583
2017-06-19T10:48:40.000Z
2022-03-28T21:43:12.000Z
exercises/practice/all-your-base/.meta/example.ex
devtayls/elixir
67824de8209ff1b6ed2f736deedfb5bd815130ca
[ "MIT" ]
228
2017-07-05T07:09:32.000Z
2022-03-27T08:59:08.000Z
defmodule AllYourBase do @doc """ Given a number in base a, represented as a sequence of digits, converts it to base b, or returns nil if either of the bases are less than 2 """ @spec convert(list, integer, integer) :: {:ok, list} | {:error, String.t()} def convert(_, _, output_base) when output_base < 2 d...
27
89
0.65269
dad82bc3a89b2d554147c3f965438b32ddd60d89
7,692
exs
Elixir
test/ex_co2_mini/reader_test.exs
wisq/ex_co2_mini
b949f6a13abcf27b78ec0cdeee16f746ab4b2360
[ "Apache-2.0" ]
1
2019-02-13T04:07:52.000Z
2019-02-13T04:07:52.000Z
test/ex_co2_mini/reader_test.exs
wisq/ex_co2_mini
b949f6a13abcf27b78ec0cdeee16f746ab4b2360
[ "Apache-2.0" ]
null
null
null
test/ex_co2_mini/reader_test.exs
wisq/ex_co2_mini
b949f6a13abcf27b78ec0cdeee16f746ab4b2360
[ "Apache-2.0" ]
null
null
null
defmodule ExCO2Mini.ReaderTest do use ExUnit.Case doctest ExCO2Mini.Reader alias ExCO2Mini.Reader @sample_data [ {<<95, 228, 102, 32, 142, 70, 191, 186>>, {80, 701}}, {<<64, 228, 95, 32, 215, 70, 191, 66>>, {79, 7130}}, {<<187, 228, 119, 32, 181, 70, 191, 210>>, {82, 10009}}, {<<112, 228, 238, ...
39.649485
74
0.535491
dad86965c9df287b7ef972a2f977c6ea7741ce14
4,090
ex
Elixir
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/google_service_accounts.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/google_service_accounts.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/google_service_accounts.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
45.444444
485
0.708557
dad8709bb3f0c6291df5e9304561edfa199dd193
1,421
ex
Elixir
test/support/data_case.ex
benhayehudi/phoenix_sms_nexmo
df75b17745185a9932b85eedd70d36d19db0c366
[ "MIT" ]
2
2019-02-26T17:33:21.000Z
2019-04-06T21:04:32.000Z
test/support/data_case.ex
benhayehudi/phoenix_sms_nexmo
df75b17745185a9932b85eedd70d36d19db0c366
[ "MIT" ]
null
null
null
test/support/data_case.ex
benhayehudi/phoenix_sms_nexmo
df75b17745185a9932b85eedd70d36d19db0c366
[ "MIT" ]
null
null
null
defmodule SmsWithPhoenix.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, eve...
26.314815
77
0.688248