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
7ab56e17d3347a42c0620a7396bb627742ad232f
375
ex
Elixir
lib/web/controllers/project_controller.ex
yknx4/opencov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
8
2021-08-22T10:37:57.000Z
2022-01-10T11:27:06.000Z
lib/web/controllers/project_controller.ex
yknx4/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
109
2021-08-20T04:08:04.000Z
2022-01-03T07:39:18.000Z
lib/web/controllers/project_controller.ex
Librecov/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
null
null
null
defmodule Librecov.ProjectController do use Librecov.Web, :controller alias Librecov.Project def badge(conn, %{"project_id" => id, "format" => format}) do project = Repo.get!(Project, id) {:ok, badge} = Librecov.BadgeManager.get_or_create(project, format) conn |> put_resp_content_type(MIME.type...
25
71
0.696
7ab578be1977f305abbdb7d4e070fa42d7036a54
1,736
ex
Elixir
lib/zaryn/bootstrap/transaction_handler.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
1
2021-07-06T19:47:14.000Z
2021-07-06T19:47:14.000Z
lib/zaryn/bootstrap/transaction_handler.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
lib/zaryn/bootstrap/transaction_handler.ex
ambareesha7/node-zaryn
136e542801bf9b6fa4a015d3464609fdf3dacee8
[ "Apache-2.0" ]
null
null
null
defmodule Zaryn.Bootstrap.TransactionHandler do @moduledoc false use Retry alias Zaryn.Crypto alias Zaryn.P2P alias Zaryn.P2P.Message.Error alias Zaryn.P2P.Message.NewTransaction alias Zaryn.P2P.Message.Ok alias Zaryn.P2P.Node alias Zaryn.P2P.Transport alias Zaryn.TransactionChain.Transaction ...
28.933333
97
0.6803
7ab5b03ebdba76ad4bcb473a094e1c261388ea8c
1,425
ex
Elixir
apps/web/lib/web/live/home_live.ex
Lgdev07/branchpage
302731d35446292ca7b9ec67c46db67cd0393849
[ "MIT" ]
null
null
null
apps/web/lib/web/live/home_live.ex
Lgdev07/branchpage
302731d35446292ca7b9ec67c46db67cd0393849
[ "MIT" ]
null
null
null
apps/web/lib/web/live/home_live.ex
Lgdev07/branchpage
302731d35446292ca7b9ec67c46db67cd0393849
[ "MIT" ]
null
null
null
defmodule Web.HomeLive do @moduledoc false use Phoenix.LiveView alias Publishing.Manage alias Web.NewLive alias Web.Router.Helpers, as: Routes import Publishing.Helper, only: [format_date: 1] @meta %{ title: "Branchpage", description: "Branchpage is an open source blogging platform where...
22.983871
112
0.642105
7ab5b3b781946451f9394f066938f2196e54aaa0
1,207
exs
Elixir
bullion/test/table_test.exs
ttymck/bullion
d15babe80d30f9775e45f2a143b88a66b539d318
[ "MIT" ]
null
null
null
bullion/test/table_test.exs
ttymck/bullion
d15babe80d30f9775e45f2a143b88a66b539d318
[ "MIT" ]
8
2021-03-10T20:53:42.000Z
2021-07-30T06:52:16.000Z
bullion/test/table_test.exs
ttymck/bullion
d15babe80d30f9775e45f2a143b88a66b539d318
[ "MIT" ]
null
null
null
defmodule TableTest do use ExUnit.Case alias Bullion.Table alias Bullion.Table.Game test "set up a game" do g = Game.new(%{name: "my great game", buyin_dollars: 20, buyin_chips: 100}) assert length(g.players) == 0 {_plid, g} = Table.add_player(g, "Tyler") assert length(g.players) == 1 [p] ...
32.621622
87
0.653687
7ab5b7a95f5797f47aab0afc52c408d760e19e4e
491
ex
Elixir
example/data/user.ex
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
example/data/user.ex
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
example/data/user.ex
mojidabckuu/ex_audit
6c74b65a28edd80076bad3f7e56e55e9c3218e6a
[ "MIT" ]
null
null
null
defmodule ExAudit.Test.User do use Ecto.Schema import Ecto.Changeset @derive {ExAudit.Tracker, except: [:transient_field]} schema "users" do field(:email, :string) field(:name, :string) field(:transient_field, :integer) embeds_many(:avatars, ExAudit.Test.Avatar) has_many(:groups, ExAudi...
18.884615
55
0.663951
7ab5fb282ae085bd63b682b832c7ae339ea37f78
937
exs
Elixir
config/config.exs
schwarz/clipstamp
1cda56679e371c1d091b3879577467d51efa0d01
[ "MIT" ]
null
null
null
config/config.exs
schwarz/clipstamp
1cda56679e371c1d091b3879577467d51efa0d01
[ "MIT" ]
null
null
null
config/config.exs
schwarz/clipstamp
1cda56679e371c1d091b3879577467d51efa0d01
[ "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. use Mix.Config # Configures the endpoint config :clipstamp, Clipstamp.Web.Endpoint, url: [host: "l...
36.038462
86
0.766275
7ab6640e1afba918104998ed7051022fe2c31db3
1,102
exs
Elixir
test/canonical_locale_test.exs
KineticCafe/cldr
7b84cd85564bca4a2c4e01c02ee0aa284bf07367
[ "Apache-2.0" ]
179
2019-06-16T09:16:00.000Z
2022-03-30T04:04:55.000Z
test/canonical_locale_test.exs
KineticCafe/cldr
7b84cd85564bca4a2c4e01c02ee0aa284bf07367
[ "Apache-2.0" ]
46
2019-06-09T02:35:58.000Z
2022-03-08T10:39:08.000Z
test/canonical_locale_test.exs
KineticCafe/cldr
7b84cd85564bca4a2c4e01c02ee0aa284bf07367
[ "Apache-2.0" ]
14
2020-03-03T16:35:50.000Z
2022-02-27T14:01:40.000Z
defmodule Cldr.CanonicalLocaleTest do use ExUnit.Case, async: true # Explicit locales: 26..41 # From aliases 45..777 # Decanonicalized 781..838 # With irrelevants 842..1647 for [line, from, to] <- Cldr.CanonicalLocaleGenerator.data() do test "##{line} Locale #{inspect(from)} becomes #{inspect(to)}" do...
36.733333
94
0.707804
7ab667c92017adaab2780ddc39c9ea4c5932f2de
950
exs
Elixir
config/config.exs
viveks-accionlabs/phoenix_api
34265c72ea6dd870bf1f445f3a58c00c0c7950b8
[ "MIT" ]
null
null
null
config/config.exs
viveks-accionlabs/phoenix_api
34265c72ea6dd870bf1f445f3a58c00c0c7950b8
[ "MIT" ]
null
null
null
config/config.exs
viveks-accionlabs/phoenix_api
34265c72ea6dd870bf1f445f3a58c00c0c7950b8
[ "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. use Mix.Config # General application configuration config :phoenix_api, ecto_repos: [PhoenixApi.Re...
33.928571
86
0.767368
7ab66e8c9e6a313ebc5003bfd23a34d8580aaccf
2,109
exs
Elixir
test/spacesaving_test.exs
rozap/spacesaving
abb3a783c14501021f090cd27b8151abfe1a29c7
[ "MIT" ]
2
2016-02-22T09:22:58.000Z
2016-04-09T21:33:45.000Z
test/spacesaving_test.exs
rozap/spacesaving
abb3a783c14501021f090cd27b8151abfe1a29c7
[ "MIT" ]
null
null
null
test/spacesaving_test.exs
rozap/spacesaving
abb3a783c14501021f090cd27b8151abfe1a29c7
[ "MIT" ]
null
null
null
defmodule SpacesavingTest do use ExUnit.Case doctest Spacesaving test "can count some numbers" do state = Spacesaving.init(3) state = Enum.reduce(1..16, state, fn _, state -> state |> Spacesaving.push(:foo) |> Spacesaving.push(:foo) |> Spacesaving.push(:foo) |> Spacesaving....
23.965909
59
0.578473
7ab6a27be228fee5e9363dd81f0748f236e14059
1,980
exs
Elixir
config/prod.exs
PeerRails/phkite
aeb46305e57ed42513e165d10048b3044c43e3cf
[ "MIT" ]
null
null
null
config/prod.exs
PeerRails/phkite
aeb46305e57ed42513e165d10048b3044c43e3cf
[ "MIT" ]
null
null
null
config/prod.exs
PeerRails/phkite
aeb46305e57ed42513e165d10048b3044c43e3cf
[ "MIT" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
31.935484
67
0.712121
7ab6d03fc20b2a6e1f87a44029a501af940eda59
21,304
ex
Elixir
api/deps/gettext/lib/gettext/compiler.ex
makao95/scrumpoker
de235a049a360612cde23ae5992375cb01a7feba
[ "MIT" ]
110
2019-09-23T18:58:00.000Z
2022-03-07T00:27:34.000Z
api/deps/gettext/lib/gettext/compiler.ex
makao95/scrumpoker
de235a049a360612cde23ae5992375cb01a7feba
[ "MIT" ]
93
2019-09-08T18:28:28.000Z
2022-03-31T20:38:59.000Z
api/deps/gettext/lib/gettext/compiler.ex
makao95/scrumpoker
de235a049a360612cde23ae5992375cb01a7feba
[ "MIT" ]
41
2019-09-16T14:17:49.000Z
2022-03-03T15:11:59.000Z
defmodule Gettext.Compiler do @moduledoc false alias Gettext.{ PO, PO.Translation, PO.PluralTranslation } require Logger @default_priv "priv/gettext" @default_domain "default" @po_wildcard "*/LC_MESSAGES/*.po" @doc false defmacro __before_compile__(env) do opts = Module.get_attribu...
30.875362
101
0.618147
7ab6e45c5bdbd32905e7d2f9523f7b13668517b6
1,588
ex
Elixir
lib/cadet/assessments/question.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
lib/cadet/assessments/question.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
lib/cadet/assessments/question.ex
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule Cadet.Assessments.Question do @moduledoc """ Questions model contains domain logic for questions management including programming and multiple choice questions. """ use Cadet, :model alias Cadet.Assessments.{Assessment, Library, QuestionType} alias Cadet.Assessments.QuestionTypes.{MCQQuestion, ...
33.083333
90
0.738035
7ab71ffe7b98c9629f145c6d5f72731d64759f97
1,546
exs
Elixir
apps/fz_http/test/fz_http_web/live/device_live/admin/index_test.exs
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
null
null
null
apps/fz_http/test/fz_http_web/live/device_live/admin/index_test.exs
bhardwajRahul/firezone
836bfda9e28350443f2093f810872f2bee7c6cdc
[ "Apache-2.0" ]
1
2022-03-30T03:57:41.000Z
2022-03-30T03:57:41.000Z
apps/fz_http/test/fz_http_web/live/device_live/admin/index_test.exs
CloudFire-LLC/cloudfire-ce
416ea0d9c9528790fdf70c432aa4eb507d7b2074
[ "Apache-2.0" ]
null
null
null
defmodule FzHttpWeb.DeviceLive.Admin.IndexTest do use FzHttpWeb.ConnCase, async: false describe "authenticated/device list" do setup :create_devices test "includes the device details in the list", %{admin_conn: conn, devices: devices} do path = Routes.device_admin_index_path(conn, :index) {:ok...
30.92
92
0.656533
7ab7213bd973130ed2fa212bf5f0617d634eac49
1,457
exs
Elixir
mix.exs
dip-m-shimotori/forcex
0be38dbfc294dcdb8e2e2bef9bb848049c74e3aa
[ "MIT" ]
null
null
null
mix.exs
dip-m-shimotori/forcex
0be38dbfc294dcdb8e2e2bef9bb848049c74e3aa
[ "MIT" ]
null
null
null
mix.exs
dip-m-shimotori/forcex
0be38dbfc294dcdb8e2e2bef9bb848049c74e3aa
[ "MIT" ]
1
2021-08-20T08:16:03.000Z
2021-08-20T08:16:03.000Z
defmodule Forcex.Mixfile do use Mix.Project @description """ Elixir library for the Force.com / SalesForce / SFDC REST API """ def project do [ app: :forcex, version: "0.4.2", elixir: "~> 1.0", name: "Forcex", description: @description, package: package, # com...
23.126984
77
0.544955
7ab794cae3969195f0272ee3e0d92e6993f59731
4,439
exs
Elixir
test/phoenix_live_view/heex_extension_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
4,659
2019-03-14T20:22:43.000Z
2022-03-31T20:13:30.000Z
test/phoenix_live_view/heex_extension_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
1,745
2019-03-14T22:04:38.000Z
2022-03-31T17:26:25.000Z
test/phoenix_live_view/heex_extension_test.exs
feliperenan/phoenix_live_view
af65bb51fe12ea88e7c66808d2b1118e1c491ddd
[ "MIT" ]
744
2019-03-14T20:48:05.000Z
2022-03-25T14:35:04.000Z
defmodule Phoenix.LiveView.HEExExtensionTest do use ExUnit.Case, async: true alias Phoenix.LiveView.{HTMLEngine, Rendered, Component} defmodule View do use Phoenix.View, root: "test/support/templates/heex", path: "" end defmodule SampleComponent do use Phoenix.LiveComponent def render(assigns),...
33.37594
111
0.567921
7ab7a929705fd9d1e2cd1753d837fac84813e20f
582
ex
Elixir
lib/built_with_elixir_web/views/changeset_view.ex
ospaarmann/built_with_elixir
5919107c79f200b2035352c7ef9714f8a8f6ff4c
[ "MIT" ]
8
2018-04-15T19:01:14.000Z
2018-11-19T16:13:56.000Z
lib/built_with_elixir_web/views/changeset_view.ex
ospaarmann/built_with_elixir
5919107c79f200b2035352c7ef9714f8a8f6ff4c
[ "MIT" ]
8
2018-04-14T03:32:12.000Z
2018-05-15T04:28:27.000Z
lib/built_with_elixir_web/views/changeset_view.ex
ospaarmann/built_with_elixir
5919107c79f200b2035352c7ef9714f8a8f6ff4c
[ "MIT" ]
2
2021-09-22T13:44:09.000Z
2021-12-21T14:26:03.000Z
defmodule BuiltWithElixirWeb.ChangesetView do use BuiltWithElixirWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `BuiltWithElixirWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.trave...
29.1
71
0.749141
7ab7c869942e756fdae9e259db3b4cafe00385d3
588
exs
Elixir
test/views/error_view_test.exs
bitriot/phoenix_base
15ec83a9acf46202102f2b006d577972f5564b2f
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
bitriot/phoenix_base
15ec83a9acf46202102f2b006d577972f5564b2f
[ "MIT" ]
null
null
null
test/views/error_view_test.exs
bitriot/phoenix_base
15ec83a9acf46202102f2b006d577972f5564b2f
[ "MIT" ]
null
null
null
defmodule PhoenixBase.ErrorViewTest do use PhoenixBase.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(PhoenixBase.ErrorView, "404.html", []) == "Page not found" end test "render 5...
26.727273
69
0.687075
7ab8244f3490d8cf05cbd9385739256e971a5d45
1,745
ex
Elixir
lib/policr_mini_bot/plugs/init_user_joined_action_plug.ex
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
487
2020-06-08T03:04:21.000Z
2022-03-31T14:51:36.000Z
lib/policr_mini_bot/plugs/init_user_joined_action_plug.ex
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
141
2020-06-11T01:03:29.000Z
2022-03-30T20:23:32.000Z
lib/policr_mini_bot/plugs/init_user_joined_action_plug.ex
WOCyo/policr-mini
23e5e9f927d083cba5993f39e9f122e3a0ad1be2
[ "MIT" ]
61
2020-06-10T05:25:03.000Z
2022-03-23T15:54:26.000Z
defmodule PolicrMiniBot.InitUserJoinedActionPlug do @moduledoc """ 初始化状态中可能的动作:用户加入群组。 """ # TODO: 弃用此模块。由于 TG 上游的变动,加群已放弃对 `message` 的处理。因此 `telegex_plug` 库的预制的抽象模块已无法适应此需求,需改进库设计。 # !注意! 此模块功能依赖对 `chat_member` 更新的接收。 use PolicrMiniBot, plug: :preheater alias PolicrMiniBot.State @doc """ 根据更新消息中...
25.661765
94
0.667049
7ab837dca6917fc99953a40fff6e22a64e9f42c7
75
exs
Elixir
test/views/layout_view_test.exs
jeredm/guitars
7e0e1d58220c5220b3b8abae2a2edca928f2db36
[ "Apache-2.0" ]
null
null
null
test/views/layout_view_test.exs
jeredm/guitars
7e0e1d58220c5220b3b8abae2a2edca928f2db36
[ "Apache-2.0" ]
null
null
null
test/views/layout_view_test.exs
jeredm/guitars
7e0e1d58220c5220b3b8abae2a2edca928f2db36
[ "Apache-2.0" ]
null
null
null
defmodule Guitars.LayoutViewTest do use Guitars.ConnCase, async: true end
25
35
0.826667
7ab86ace1a3acbb7b5035e37804025df0774a3cb
1,886
ex
Elixir
clients/recommender/lib/google_api/recommender/v1/model/google_cloud_recommender_v1_operation_group.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/recommender/lib/google_api/recommender/v1/model/google_cloud_recommender_v1_operation_group.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/recommender/lib/google_api/recommender/v1/model/google_cloud_recommender_v1_operation_group.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.980392
273
0.763521
7ab8726cb9cd8e2b2dd02adafc4b0684cde7d6e7
2,017
exs
Elixir
apps/data/test/grapevine_data/blogs_test.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/data/test/grapevine_data/blogs_test.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/data/test/grapevine_data/blogs_test.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule GrapevineData.BlogsTest do use Grapevine.DataCase alias GrapevineData.Blogs doctest Blogs describe "creating a blog post" do test "creates a new blog post" do user = create_user() {:ok, blog_post} = Blogs.create(user, %{ title: "Updates for my Game", body: "Some _ma...
22.662921
61
0.59643
7ab87270769cef1e911c0a2582c3f8ab08d77bf5
1,559
ex
Elixir
clients/composer/lib/google_api/composer/v1beta1/model/empty.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1beta1/model/empty.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/composer/lib/google_api/composer/v1beta1/model/empty.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...
31.18
76
0.744708
7ab885089b3f38ac2813dab25e6b125051dd6571
3,128
exs
Elixir
apps/tai/test/tai/venues/adapters/amend_bulk_order_test.exs
CalebOts/tai
1603bfefa390eac89085ba18fd259b2e9fcac6c0
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/test/tai/venues/adapters/amend_bulk_order_test.exs
CalebOts/tai
1603bfefa390eac89085ba18fd259b2e9fcac6c0
[ "MIT" ]
null
null
null
apps/tai/test/tai/venues/adapters/amend_bulk_order_test.exs
CalebOts/tai
1603bfefa390eac89085ba18fd259b2e9fcac6c0
[ "MIT" ]
null
null
null
defmodule Tai.Venues.Adapters.AmendBulkOrderTest do use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney setup_all do on_exit(fn -> Application.stop(:tai) end) {:ok, _} = Application.ensure_all_started(:tai) start_supervised!(Tai.TestSupport.Mocks.Server) HTTPoi...
33.276596
95
0.682545
7ab8858acc688ed3d2e687b890daac71fadbf754
2,400
ex
Elixir
web/controllers/catalog_controller.ex
emanchado/cataloger
4ecd08e26017fd19b1a26196e87604b3d973b6be
[ "BSD-3-Clause" ]
2
2016-08-07T12:27:07.000Z
2017-07-19T22:28:36.000Z
web/controllers/catalog_controller.ex
emanchado/cataloger
4ecd08e26017fd19b1a26196e87604b3d973b6be
[ "BSD-3-Clause" ]
null
null
null
web/controllers/catalog_controller.ex
emanchado/cataloger
4ecd08e26017fd19b1a26196e87604b3d973b6be
[ "BSD-3-Clause" ]
1
2018-11-22T03:08:25.000Z
2018-11-22T03:08:25.000Z
defmodule Cataloger.CatalogController do use Cataloger.Web, :controller alias Cataloger.Catalog plug :scrub_params, "catalog" when action in [:create, :update] def index(conn, _params) do catalogs = Repo.all(Catalog) render(conn, "index.html", catalogs: catalogs) end def new(conn, _params) do ...
29.62963
73
0.64625
7ab8876e5557edb825523a26cf139b2699e8a689
2,247
exs
Elixir
test/calcinator_test.exs
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
null
null
null
test/calcinator_test.exs
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
1
2018-09-24T21:48:46.000Z
2018-09-24T21:48:46.000Z
test/calcinator_test.exs
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
null
null
null
defmodule CalcinatorTest do alias Calcinator.Resources.{TestAuthor, TestPost} use ExUnit.Case, async: true # Tests doctest Calcinator describe "Default authorization_module" do setup :default_authorization_module test "can?(subject, :create, module)", %{ default_authorization_module: defaul...
31.208333
123
0.70672
7ab8bfa51a61ea5c2d475206576bcc8a742b0b9a
19,744
ex
Elixir
deps/phoenix_pubsub/lib/phoenix/tracker/state.ex
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
2
2020-05-06T14:51:56.000Z
2020-05-06T14:52:21.000Z
deps/phoenix_pubsub/lib/phoenix/tracker/state.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
4
2021-03-04T13:00:52.000Z
2021-03-12T12:42:09.000Z
deps/phoenix_pubsub/lib/phoenix/tracker/state.ex
adrianomota/blog
ef3b2d2ed54f038368ead8234d76c18983caa75b
[ "MIT" ]
1
2020-05-16T22:44:14.000Z
2020-05-16T22:44:14.000Z
defmodule Phoenix.Tracker.State do @moduledoc """ Provides an ORSWOT CRDT. """ alias Phoenix.Tracker.{State, Clock} @type name :: term @type topic :: String.t @type key :: term @type meta :: map @type ets_id :: :ets.tid @type clock :: pos_integer @type tag ...
33.692833
114
0.602563
7ab8c6dcc9b91a9f1318efbd813854991136715e
1,867
ex
Elixir
apps/fz_http/lib/fz_http_web/router.ex
kaku-io/firezone
685da0064727df27e444fe4da2be20efe96af9cd
[ "Apache-2.0" ]
null
null
null
apps/fz_http/lib/fz_http_web/router.ex
kaku-io/firezone
685da0064727df27e444fe4da2be20efe96af9cd
[ "Apache-2.0" ]
null
null
null
apps/fz_http/lib/fz_http_web/router.ex
kaku-io/firezone
685da0064727df27e444fe4da2be20efe96af9cd
[ "Apache-2.0" ]
null
null
null
defmodule FzHttpWeb.Router do @moduledoc """ Main Application Router """ use FzHttpWeb, :router @root_rate_limit [rate_limit: {"root", 10_000, 50}, by: :ip] pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {FzHttpWeb.LayoutView...
30.606557
92
0.692555
7ab904e128a68bdef11aa491ad6a94794f03432f
5,114
ex
Elixir
lib/jsonapi/utils/string.ex
bmrsny/jsonapi
d7b446ef91ae5b90b614465d58270954c66f58cb
[ "MIT" ]
null
null
null
lib/jsonapi/utils/string.ex
bmrsny/jsonapi
d7b446ef91ae5b90b614465d58270954c66f58cb
[ "MIT" ]
null
null
null
lib/jsonapi/utils/string.ex
bmrsny/jsonapi
d7b446ef91ae5b90b614465d58270954c66f58cb
[ "MIT" ]
null
null
null
defmodule JSONAPI.Utils.String do @moduledoc """ String manipulation helpers. """ @allowed_transformations [:camelize, :dasherize, :underscore] @doc """ Replace dashes between words in `value` with underscores Ignores dashes that are not between letters/numbers ## Examples iex> underscore("to...
24.122642
96
0.599922
7ab9191a82c46a35cfb6f0473fc5af5992011e6b
1,125
exs
Elixir
arrow-functions-odd/config/config.exs
crsanti/codewars-elixir
7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0
[ "MIT" ]
2
2021-08-18T11:31:31.000Z
2021-08-24T00:25:08.000Z
arrow-functions-odd/config/config.exs
crsanti/codewars-elixir
7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0
[ "MIT" ]
null
null
null
arrow-functions-odd/config/config.exs
crsanti/codewars-elixir
7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.290323
73
0.752
7ab92374b8985725f5e23a0f345948bcd8d44738
5,354
exs
Elixir
lib/iex/test/iex/autocomplete_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/iex/test/iex/autocomplete_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
lib/iex/test/iex/autocomplete_test.exs
diogovk/elixir
7b8213affaad38b50afaa3dfc3a43717f35ba4e7
[ "Apache-2.0" ]
null
null
null
Code.require_file "../test_helper.exs", __DIR__ defmodule IEx.AutocompleteTest do use ExUnit.Case, async: true def expand(expr) do IEx.Autocomplete.expand(Enum.reverse expr) end test "erlang module completion" do assert expand(':zl') == {:yes, 'ib.', []} end test "erlang module no completion" do...
29.256831
104
0.583863
7ab931768b31ffb898dde347c6c2c79531485ea0
3,144
ex
Elixir
packages/sim/apps/crowd/lib/crowd/systems/movement_system.ex
TNOCS/popsim
a25cca22de42161ef3bc4848c6c20bfdc85f7647
[ "MIT" ]
1
2017-09-23T09:41:44.000Z
2017-09-23T09:41:44.000Z
packages/sim/apps/crowd/lib/crowd/systems/movement_system.ex
TNOCS/popsim
a25cca22de42161ef3bc4848c6c20bfdc85f7647
[ "MIT" ]
8
2017-06-21T07:57:47.000Z
2017-06-22T13:09:32.000Z
packages/sim/apps/crowd/lib/crowd/systems/movement_system.ex
TNOCS/popsim
a25cca22de42161ef3bc4848c6c20bfdc85f7647
[ "MIT" ]
1
2021-02-14T16:50:16.000Z
2021-02-14T16:50:16.000Z
defmodule Crowd.Systems.MovementSystem do @behaviour ECS.System alias Crowd.Components.MoveableComponent alias Crowd.Components.PositionComponent alias Crowd.Components.AgendaComponent alias Crowd.Services.ActivitiesRegistry @mask Crowd.Utils.create_mask( MoveableComponent.new |> Map.merge(PositionCompone...
36.55814
125
0.597328
7ab946b08357a1fe8a6dda86d507008c7d9a309f
1,547
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1/model/hash.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/hash.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/hash.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.94
116
0.710407
7ab95c185c62fb07a0f64444e69ba2c24c75a4cf
3,846
ex
Elixir
apps/mishka_html/lib/mishka_html_web/live/components/client/home/banner_block_component.ex
mojtaba-naserei/mishka-cms
1f31f61347bab1aae6ba0d47c5515a61815db6c9
[ "Apache-2.0" ]
3
2021-06-27T10:26:51.000Z
2022-01-10T13:56:08.000Z
apps/mishka_html/lib/mishka_html_web/live/components/client/home/banner_block_component.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
apps/mishka_html/lib/mishka_html_web/live/components/client/home/banner_block_component.ex
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
null
null
null
defmodule MishkaHtmlWeb.Client.Home.BannerBlockComponent do use MishkaHtmlWeb, :live_component def render(assigns) do ~H""" <article class="col-sm-6 rtl client-home-header-post-article"> <article class="container-fluid home-image-post"> <%= live_redirect to: Routes.live_path(@socket, ...
75.411765
718
0.51196
7ab95cd86e6540d735998dc9eb13c1671b7c06cc
14,639
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/zone_operations.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/zone_operations.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/zone_operations.ex
kaaboaye/elixir-google-api
1896784c4342151fd25becd089a5beb323eff567
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
46.769968
414
0.642257
7ab9637bf958d4c6bea29c66c55c07b1b71b0d16
128
exs
Elixir
test/n26_test.exs
zilverline/ex_n26
407ac7ab60a6a35c8b0807fad04eeb89d01f71dd
[ "MIT" ]
null
null
null
test/n26_test.exs
zilverline/ex_n26
407ac7ab60a6a35c8b0807fad04eeb89d01f71dd
[ "MIT" ]
null
null
null
test/n26_test.exs
zilverline/ex_n26
407ac7ab60a6a35c8b0807fad04eeb89d01f71dd
[ "MIT" ]
null
null
null
defmodule N26Test do use ExUnit.Case doctest N26 test "greets the world" do # assert N26.hello() == :world end end
14.222222
34
0.671875
7ab98035261b48dcf7d27ba04342ce7f5463b935
173
exs
Elixir
test/fixtures/parser/drop_two_tables_if_exists.exs
maximemenager/strong_migrations
b7e091d2cfed73098d3bf683c7ce5c8ceee3159b
[ "MIT" ]
23
2021-10-29T19:58:35.000Z
2021-11-13T21:42:45.000Z
test/fixtures/parser/drop_two_tables_if_exists.exs
maximemenager/strong_migrations
b7e091d2cfed73098d3bf683c7ce5c8ceee3159b
[ "MIT" ]
1
2021-10-31T03:57:47.000Z
2021-10-31T14:33:45.000Z
test/fixtures/parser/drop_two_tables_if_exists.exs
surgeventures/strong_migrations
3c82e34a6e7a372c6de17ba7a0b07da7664baa26
[ "MIT" ]
3
2021-10-31T02:14:10.000Z
2021-11-09T08:07:22.000Z
defmodule DropTwoTablesIfExists do @moduledoc false use Ecto.Migration def change do drop_if_exists(table("posts")) drop_if_exists(table("users")) end end
15.727273
34
0.734104
7ab997ed27071966869de3dee33336b1b2f80d31
25,270
ex
Elixir
clients/compute/lib/google_api/compute/v1/api/target_https_proxies.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/target_https_proxies.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/api/target_https_proxies.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
52.536383
1,213
0.703205
7ab9c19b628f60dea5b56c8d8a895417943ce882
2,609
ex
Elixir
lib/oban/plugins/gossip.ex
sushant12/oban
158cc6f05699fe7c67a0502c12cb8a01ed4d33ca
[ "Apache-2.0" ]
null
null
null
lib/oban/plugins/gossip.ex
sushant12/oban
158cc6f05699fe7c67a0502c12cb8a01ed4d33ca
[ "Apache-2.0" ]
null
null
null
lib/oban/plugins/gossip.ex
sushant12/oban
158cc6f05699fe7c67a0502c12cb8a01ed4d33ca
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Plugins.Gossip do @moduledoc """ Periodically broadcast queue activity to the gossip notification channel. ## Using the Plugin The following example demonstrates using the plugin without any configuration, which will broadcast the state of each local queue every 1 second: config :my_ap...
25.330097
102
0.648141
7ab9cb97d1aee214f8a762f52b4d59bca68bfadb
1,634
ex
Elixir
clients/cloud_search/lib/google_api/cloud_search/v1/model/get_search_application_session_stats_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/cloud_search/lib/google_api/cloud_search/v1/model/get_search_application_session_stats_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/cloud_search/lib/google_api/cloud_search/v1/model/get_search_application_session_stats_response.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...
33.346939
115
0.76377
7aba110fb35f984b964ab90ea3743d1f5a5cb040
190
ex
Elixir
test-project/lib/test.ex
mijailr/setup-elixir
ca25180aa600122a7c1273f4b78995a8dd3925ba
[ "MIT" ]
175
2019-08-29T02:00:49.000Z
2022-02-24T21:12:56.000Z
test-project/lib/test.ex
mijailr/setup-elixir
ca25180aa600122a7c1273f4b78995a8dd3925ba
[ "MIT" ]
37
2019-09-02T16:06:49.000Z
2021-01-19T20:55:14.000Z
test-project/lib/test.ex
mijailr/setup-elixir
ca25180aa600122a7c1273f4b78995a8dd3925ba
[ "MIT" ]
56
2019-09-05T02:00:37.000Z
2021-12-14T03:51:05.000Z
defmodule Test do @moduledoc """ Documentation for Test. """ @doc """ Hello world. ## Examples iex> Test.hello() :world """ def hello do :world end end
10
25
0.542105
7aba3b3680cca2551986df59beb3b2bac69b9ad4
25
ex
Elixir
learning/programming_elixir/issues/lib/issues.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
2
2020-01-20T20:15:20.000Z
2020-02-27T11:08:42.000Z
learning/programming_elixir/issues/lib/issues.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
learning/programming_elixir/issues/lib/issues.ex
Mdlkxzmcp/various_elixir
c87527b7118a0c74a042073c04d2228025888ddf
[ "MIT" ]
null
null
null
defmodule Issues do end
6.25
19
0.8
7aba6802ea6e875a6e34efd0bf903c1f83e3b1f0
985
ex
Elixir
apps/definition_presto/lib/presto/table.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/definition_presto/lib/presto/table.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/definition_presto/lib/presto/table.ex
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
defmodule Presto.Table do use Definition, schema: Presto.Table.V1 @type t :: %__MODULE__{ version: integer, url: String.t(), schema: String.t(), name: String.t(), pid: pid } defstruct version: 1, url: nil, schema: "default", ...
24.02439
72
0.616244
7aba7fe4807dd6f589fb0bc8b82cfbe71bd7fd4b
1,371
ex
Elixir
lib/functions/create_seed.ex
guibbv2011/ritcoinex
82fe1a31fcf3dde7facbacd04c5dcb46ba53430b
[ "MIT" ]
null
null
null
lib/functions/create_seed.ex
guibbv2011/ritcoinex
82fe1a31fcf3dde7facbacd04c5dcb46ba53430b
[ "MIT" ]
10
2021-06-09T23:24:29.000Z
2022-02-26T15:06:58.000Z
lib/functions/create_seed.ex
guibbv2011/ritcoinex
82fe1a31fcf3dde7facbacd04c5dcb46ba53430b
[ "MIT" ]
null
null
null
defmodule Seed do @moduledoc """ ## The module Seed is a principal function to get the Seed and Hash. """ @doc """ The seed12/0 inherid anothers functions first is a Dictionary.get_words_to_seed(:list12) that apply the atom :list12, then |> list to string and |> into Hash.hash_to_wallets. the return o...
25.867925
124
0.700948
7aba89ecdc4f57c1b8866537c65080419c0c4adc
147
ex
Elixir
lib/randomuser_ex/name.ex
dreamingechoes/randomuser_ex
cfc72e015d2b110d2a4589bf6abb90793905c98c
[ "MIT" ]
4
2017-08-16T18:14:29.000Z
2020-01-14T03:19:54.000Z
lib/randomuser_ex/name.ex
dreamingechoes/randomuser_ex
cfc72e015d2b110d2a4589bf6abb90793905c98c
[ "MIT" ]
null
null
null
lib/randomuser_ex/name.ex
dreamingechoes/randomuser_ex
cfc72e015d2b110d2a4589bf6abb90793905c98c
[ "MIT" ]
null
null
null
defmodule RandomuserEx.Name do @moduledoc false @derive [Poison.Encoder] @type t :: %__MODULE__{} defstruct [:first, :last, :title] end
14.7
35
0.687075
7aba90471ea038d609720b4c37e5e397cf5c04a5
1,626
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/model/metadata.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/model/metadata.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/model/metadata.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...
31.882353
94
0.731857
7abadf2dc97a8cf5ab8f2c78e52694556a8339fb
269
ex
Elixir
lib/osm_points/repo.ex
OSM-Browser/points-api
7022d4e61318fc8da507809302a57bf38223207a
[ "MIT" ]
2
2018-01-18T20:38:08.000Z
2020-01-19T17:44:20.000Z
lib/osm_points/repo.ex
OSM-Browser/points-api
7022d4e61318fc8da507809302a57bf38223207a
[ "MIT" ]
85
2018-02-26T05:30:01.000Z
2021-07-26T06:22:02.000Z
lib/osm_points/repo.ex
OSM-Browser/points-api
7022d4e61318fc8da507809302a57bf38223207a
[ "MIT" ]
1
2018-10-07T06:57:34.000Z
2018-10-07T06:57:34.000Z
defmodule OsmPoints.Repo do use Ecto.Repo, otp_app: :osm_points @doc """ Dynamically loads the repository url from the DATABASE_URL environment variable. """ def init(_, opts) do {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))} end end
22.416667
66
0.702602
7abb1f039c13b51b19ff478fd2f29876340a07a0
3,842
ex
Elixir
test/support/configuration_helper.ex
blakedietz/courtbot
b18d7eb84fd1405b359c8da980e1175bb1738841
[ "ISC" ]
6
2018-07-25T18:35:57.000Z
2018-11-03T17:01:02.000Z
test/support/configuration_helper.ex
blakedietz/courtbot
b18d7eb84fd1405b359c8da980e1175bb1738841
[ "ISC" ]
19
2018-11-12T05:29:44.000Z
2020-04-12T01:04:41.000Z
test/support/configuration_helper.ex
blakedietz/courtbot
b18d7eb84fd1405b359c8da980e1175bb1738841
[ "ISC" ]
1
2020-04-12T00:36:50.000Z
2020-04-12T00:36:50.000Z
defmodule CourtbotTest.Helper.Configuration do @moduledoc false alias Courtbot.Configuration def idaho(), do: Configuration.changeset(%Configuration{}, %{ importer: %{ kind: "csv", origin: "file", source: "#{File.cwd!()}/test/data/idaho.csv", delimiter: "...
24.163522
76
0.347475
7abb5c8568c9bf8b318d37471f234237fd02f50c
2,085
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/content_outstream_position_assigned_targeting_option_details.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/content_outstream_position_assigned_targeting_option_details.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/content_outstream_position_assigned_targeting_option_details.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.629032
118
0.760671
7abb7a9e093feedd4012411fc2813a26bc84157b
1,853
ex
Elixir
lib/elixir/lib/io/stream.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/io/stream.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/io/stream.ex
davidsulc/elixir
dd4fd6ab742acd75862e34e26dbdb86e0cf6453f
[ "Apache-2.0" ]
null
null
null
defmodule IO.StreamError do defexception [:reason, :message] def exception(opts) do reason = opts[:reason] formatted = IO.iodata_to_binary(:file.format_error(reason)) %IO.StreamError{message: "error during streaming: #{formatted}", reason: reason} end end defmodule IO.Stream do @moduledoc """ ...
26.098592
86
0.625472
7abb8a8127a4bd6237a7dd9c5c3118751e129eef
693
ex
Elixir
lib/ex_oauth2_provider/oauth_access_grants/oauth_access_grant.ex
gozego/ex_oauth2_provider
d3a7658d28233dda2dfdef7ed397b5b440a2f737
[ "Unlicense", "MIT" ]
2
2021-04-25T20:59:53.000Z
2021-07-13T22:49:20.000Z
lib/ex_oauth2_provider/oauth_access_grants/oauth_access_grant.ex
gozego/ex_oauth2_provider
d3a7658d28233dda2dfdef7ed397b5b440a2f737
[ "Unlicense", "MIT" ]
null
null
null
lib/ex_oauth2_provider/oauth_access_grants/oauth_access_grant.ex
gozego/ex_oauth2_provider
d3a7658d28233dda2dfdef7ed397b5b440a2f737
[ "Unlicense", "MIT" ]
null
null
null
defmodule ExOauth2Provider.OauthAccessGrants.OauthAccessGrant do @moduledoc false use Ecto.Schema alias ExOauth2Provider.Config alias ExOauth2Provider.OauthApplications.OauthApplication @timestamps_opts [type: :naive_datetime_usec] schema "oauth_access_grants" do belongs_to :resource_owner, Config.re...
30.130435
92
0.744589
7abba07ef570c5858a5850cdc99cea8ab7e85bee
943
ex
Elixir
test/elixir/lib/ex_unit.ex
wanghenshui/couchdb
0a5b11f832722c33dd30c4150f4c02414edd85d4
[ "Apache-2.0" ]
null
null
null
test/elixir/lib/ex_unit.ex
wanghenshui/couchdb
0a5b11f832722c33dd30c4150f4c02414edd85d4
[ "Apache-2.0" ]
null
null
null
test/elixir/lib/ex_unit.ex
wanghenshui/couchdb
0a5b11f832722c33dd30c4150f4c02414edd85d4
[ "Apache-2.0" ]
null
null
null
defmodule Couch.Test.ExUnit.Case do @moduledoc """ Template for ExUnit test case. It can be used as follows: ``` defmodule Couch.Test.CRUD do use Couch.Test.ExUnit.Case ... def with_db(context, setup) do setup = setup |> Step.Start.new(:start, extra_apps: [:chttpd]) |> Setup.ru...
21.431818
72
0.598091
7abba1a1c15f51a89222a2183919c4ccc79726e3
1,803
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/modify_template_version_label_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/modify_template_version_label_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/dataflow/lib/google_api/dataflow/v1b3/model/modify_template_version_label_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.018868
131
0.720466
7abba83a43f8cc17ba9e4e165f00b1428c8cd281
1,226
ex
Elixir
apps/jobex_data/lib/jobex_data/scheduler.ex
andyl/jobex
a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2
[ "MIT" ]
10
2019-10-24T01:23:07.000Z
2020-02-23T00:27:32.000Z
apps/jobex_data/lib/jobex_data/scheduler.ex
andyl/crow
a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2
[ "MIT" ]
6
2021-03-09T18:41:09.000Z
2021-05-27T13:02:42.000Z
apps/jobex_data/lib/jobex_data/scheduler.ex
andyl/crow
a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2
[ "MIT" ]
1
2019-10-24T01:23:08.000Z
2019-10-24T01:23:08.000Z
defmodule JobexData.Scheduler do use Quantum.Scheduler, otp_app: :jobex_data alias NimbleCSV.RFC4180, as: CSV def priv_dir do if Application.get_env(:jobex_data, :env) == :dev do "apps/jobex_data/priv" else :code.priv_dir(:jobex_data) |> to_string() end end def load_csv(path) ...
21.137931
78
0.623165
7abba9bb4deabf0e923e1ea608e2b06d9199b9b4
1,088
ex
Elixir
lib/fen_gen_web/channels/user_socket.ex
imsekun/fengen
d24e6583c9aa662a27f8d884b261ec24d4a85807
[ "MIT" ]
2
2021-05-28T19:33:52.000Z
2021-05-28T21:10:19.000Z
lib/fen_gen_web/channels/user_socket.ex
hsek/fen_gen
d24e6583c9aa662a27f8d884b261ec24d4a85807
[ "MIT" ]
20
2021-05-12T15:26:50.000Z
2021-05-29T14:42:47.000Z
lib/fen_gen_web/channels/user_socket.ex
imsekun/fengen
d24e6583c9aa662a27f8d884b261ec24d4a85807
[ "MIT" ]
null
null
null
defmodule FenGenWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", FenGenWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channels...
30.222222
83
0.693934
7abbce4f6ba426bbdd790075eeb7aa4b0630c604
839
ex
Elixir
apps/astarte_pairing/lib/astarte_pairing_web/router.ex
atsetilam/astarte
7131f7c270c028801f476b7e3c86eb111d852737
[ "Apache-2.0" ]
null
null
null
apps/astarte_pairing/lib/astarte_pairing_web/router.ex
atsetilam/astarte
7131f7c270c028801f476b7e3c86eb111d852737
[ "Apache-2.0" ]
null
null
null
apps/astarte_pairing/lib/astarte_pairing_web/router.ex
atsetilam/astarte
7131f7c270c028801f476b7e3c86eb111d852737
[ "Apache-2.0" ]
null
null
null
# # This file is part of Astarte. # # Copyright 2020 Ispirata Srl # # 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 appl...
25.424242
74
0.749702
7abbdc4a5ada76d5cff036edb3805f473a75f9a1
2,310
ex
Elixir
clients/calendar/lib/google_api/calendar/v3/model/settings.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/calendar/lib/google_api/calendar/v3/model/settings.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/calendar/lib/google_api/calendar/v3/model/settings.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...
39.152542
260
0.703463
7abbeaea9da8326461d78330ea11ff7c469c105b
1,300
ex
Elixir
source/backend/api_app/lib/api_app_web/endpoint.ex
edwinvautier/aio-group3-proj01
2ca3d834f358a38692e8ae4d6266bbea130a6cb5
[ "MIT" ]
3
2020-04-05T15:26:55.000Z
2020-06-17T15:01:33.000Z
source/backend/api_app/lib/api_app_web/endpoint.ex
edwinvautier/aio-group3-proj01
2ca3d834f358a38692e8ae4d6266bbea130a6cb5
[ "MIT" ]
48
2020-04-01T16:00:47.000Z
2020-04-28T16:22:12.000Z
source/backend/api_app/lib/api_app_web/endpoint.ex
edwinvautier/aio-group3-proj01
2ca3d834f358a38692e8ae4d6266bbea130a6cb5
[ "MIT" ]
4
2020-03-30T15:36:55.000Z
2020-06-17T15:01:36.000Z
defmodule ApiAppWeb.Endpoint do use Phoenix.Endpoint, otp_app: :api_app plug CORSPlug # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, ...
26
63
0.705385
7abc0b1f925da9cbadcf36520e873b62f5c75f74
1,907
ex
Elixir
lib/koans/06_lists.ex
rShetty/elixir-koans
d76369c5cf4418b8172e0efc9bb96ccbd7308b2f
[ "MIT" ]
1
2018-08-09T17:29:02.000Z
2018-08-09T17:29:02.000Z
lib/koans/06_lists.ex
rShetty/elixir-koans
d76369c5cf4418b8172e0efc9bb96ccbd7308b2f
[ "MIT" ]
null
null
null
lib/koans/06_lists.ex
rShetty/elixir-koans
d76369c5cf4418b8172e0efc9bb96ccbd7308b2f
[ "MIT" ]
1
2019-03-24T23:56:21.000Z
2019-03-24T23:56:21.000Z
defmodule Lists do use Koans @intro "Lists" koan "We can see what is ahead" do assert List.first([1, 2, 3]) == 1 end koan "Checking what's trailing is also simple" do assert List.last([1, 2, 3]) == 3 end koan "Lists can store anything you throw at them" do assert [1, 2] ++ [:a, "b"] == [1,...
25.77027
73
0.599895
7abc3367658991dfea5f079216891b85fba46729
2,254
exs
Elixir
test/integration/use_test.exs
lexmag/xandra
eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d
[ "0BSD" ]
null
null
null
test/integration/use_test.exs
lexmag/xandra
eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d
[ "0BSD" ]
null
null
null
test/integration/use_test.exs
lexmag/xandra
eadd1be7fa36a0973c2b7fe525fe5aaba2ce264d
[ "0BSD" ]
null
null
null
defmodule UseTest do use XandraTest.IntegrationCase, async: true setup_all %{keyspace: keyspace, setup_conn: setup_conn, start_options: start_options} do other_keyspace = keyspace <> "_2" Xandra.execute!(setup_conn, "DROP KEYSPACE IF EXISTS #{other_keyspace}") statement = """ CREATE KEYSPACE #{oth...
32.666667
96
0.673913
7abc5b820536b38e1e0437ac19fe5a4159b84a48
7,721
ex
Elixir
lib/phoenix/logger.ex
bhicks/phoenix
2c43d798c184f6085cd2765d6cb2b463c87edac7
[ "MIT" ]
null
null
null
lib/phoenix/logger.ex
bhicks/phoenix
2c43d798c184f6085cd2765d6cb2b463c87edac7
[ "MIT" ]
null
null
null
lib/phoenix/logger.ex
bhicks/phoenix
2c43d798c184f6085cd2765d6cb2b463c87edac7
[ "MIT" ]
null
null
null
defmodule Phoenix.Logger do @moduledoc """ Instrumenter to handle logging of various instrumentation events. ## Parameter filtering When logging parameters, Phoenix can filter out sensitive parameters such as passwords and tokens. Parameters to be filtered can be added via the `:filter_parameters` option:...
28.702602
100
0.627639
7abc606de099f3c4a1eb5679ea6aff517a7b6dda
1,546
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_response_message_end_interaction.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_response_message_end_interaction.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_response_message_end_interaction.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.893617
154
0.778784
7abc7ea32478fe673434f20e72415258fb3ebb23
184
exs
Elixir
.formatter.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
null
null
null
.formatter.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
21
2021-03-12T17:05:30.000Z
2022-02-16T21:48:35.000Z
.formatter.exs
mbta/alerts_concierge
d8e643445ef06f80ca273f2914c6959daea146f6
[ "MIT" ]
1
2021-12-09T15:09:53.000Z
2021-12-09T15:09:53.000Z
[ inputs: [ "mix.exs", "apps/*/mix.exs", "apps/*/{config,lib,test}/**/*.{ex,exs}", "config/**/*.{ex,exs}", "rel/**/*.{ex,exs}", "scripts/**/*.{ex,exs}" ] ]
16.727273
45
0.407609
7abc9fe8416d58aa90a35ab45285b3b7786c555c
874
exs
Elixir
examples/typed_gen_server/mix.exs
esl/gradient
822da399872a38b77440858971f4147694e85fac
[ "Apache-2.0" ]
75
2021-11-17T11:55:13.000Z
2022-03-28T04:35:04.000Z
examples/typed_gen_server/mix.exs
esl/gradient
822da399872a38b77440858971f4147694e85fac
[ "Apache-2.0" ]
48
2021-11-15T13:56:14.000Z
2022-03-31T15:55:47.000Z
examples/typed_gen_server/mix.exs
esl/gradient
822da399872a38b77440858971f4147694e85fac
[ "Apache-2.0" ]
6
2021-12-22T20:41:27.000Z
2022-03-09T09:07:38.000Z
defmodule TypedGenServer.MixProject do use Mix.Project def project do [ app: :typed_gen_server, version: "0.1.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps(), dialyzer: dialyzer() ] end # Run "mix help compile.app" to learn about application...
19.863636
64
0.573227
7abcd97e76951b5721aa2b66a61344fb8bb470a0
27
ex
Elixir
lib/recursion.ex
ElixirCourse/lists-recursion-live-coding
57c3d2dca0495451b9155de0c11db0d46fcf5031
[ "MIT" ]
null
null
null
lib/recursion.ex
ElixirCourse/lists-recursion-live-coding
57c3d2dca0495451b9155de0c11db0d46fcf5031
[ "MIT" ]
null
null
null
lib/recursion.ex
ElixirCourse/lists-recursion-live-coding
57c3d2dca0495451b9155de0c11db0d46fcf5031
[ "MIT" ]
null
null
null
defmodule Recursion do end
9
22
0.851852
7abce7c334146b2911e8124c1b91ee5f923ed819
1,062
ex
Elixir
test/support/factory.ex
sobolevn/docdog-engine
5f7ad60465063fac3d56574f2bf27a4a52d0a91e
[ "MIT" ]
null
null
null
test/support/factory.ex
sobolevn/docdog-engine
5f7ad60465063fac3d56574f2bf27a4a52d0a91e
[ "MIT" ]
null
null
null
test/support/factory.ex
sobolevn/docdog-engine
5f7ad60465063fac3d56574f2bf27a4a52d0a91e
[ "MIT" ]
null
null
null
defmodule Docdog.Factory do use ExMachina.Ecto, repo: Docdog.Repo def user_factory do %Docdog.Accounts.User{ username: "ivan_ivanov", email: sequence(:email, &"ivanov-#{&1}@example.com"), avatar: "foo.bar" } end def project_factory do %Docdog.Editor.Project{ name: "Elixir D...
21.24
92
0.641243
7abd0cb7a93e323ef8a2ed45cf2ac451136b638e
3,367
ex
Elixir
clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_device_check_config.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_device_check_config.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_device_check_config.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
52.609375
528
0.739234
7abd25b4bb0753ce03d0baf8a71e103b748bd6a6
230
ex
Elixir
lib/phone/nanp/mp.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
97
2016-04-05T13:08:41.000Z
2021-12-25T13:08:34.000Z
lib/phone/nanp/mp.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
70
2016-06-14T00:56:00.000Z
2022-02-10T19:43:14.000Z
lib/phone/nanp/mp.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
31
2016-04-21T22:26:12.000Z
2022-01-24T21:40:00.000Z
defmodule Phone.NANP.MP do @moduledoc false use Helper.Country def regex, do: ~r/^(1)(670)([2-9].{6})$/ def country, do: "Northern Mariana Islands" def a2, do: "MP" def a3, do: "MNP" matcher(:regex, ["1670"]) end
17.692308
45
0.617391
7abd27e5e51b05ed9e04fc12b51d3e35f29be91f
1,821
ex
Elixir
farmbot_ext/lib/farmbot_ext/mqtt/log_handler.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
1
2021-08-23T13:36:14.000Z
2021-08-23T13:36:14.000Z
farmbot_ext/lib/farmbot_ext/mqtt/log_handler.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_ext/lib/farmbot_ext/mqtt/log_handler.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotExt.MQTT.LogHandler do @moduledoc """ Publishes JSON encoded bot state updates onto an MQTT channel """ use GenServer require FarmbotCore.Logger require FarmbotTelemetry require Logger alias FarmbotCore.BotState alias FarmbotExt.MQTT.LogHandlerSupport alias __MODULE__, as: State ...
25.647887
74
0.70346
7abd3c059fa8fb53ac1c7b7a50488cd5f070144a
1,090
ex
Elixir
lib/animina/application.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
1
2021-04-17T20:36:24.000Z
2021-04-17T20:36:24.000Z
lib/animina/application.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
3
2021-04-15T19:45:43.000Z
2021-04-16T06:08:24.000Z
lib/animina/application.ex
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
null
null
null
defmodule Animina.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository Animina.Repo, # Start the Telemetry supervisor Animina...
28.684211
65
0.698165
7abd9c2668f0e2980a3bb1d67bfe4bfcbf90d3a6
277
exs
Elixir
config/test.exs
groma84/daily-mnmlist-elixir
81e7184c42c34025b50cf074f29b162c39b19673
[ "Unlicense" ]
null
null
null
config/test.exs
groma84/daily-mnmlist-elixir
81e7184c42c34025b50cf074f29b162c39b19673
[ "Unlicense" ]
null
null
null
config/test.exs
groma84/daily-mnmlist-elixir
81e7184c42c34025b50cf074f29b162c39b19673
[ "Unlicense" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :daily_mnmlist, DailyMnmlistWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
25.181818
56
0.747292
7abdde5e74cc20a6cc35863fc97f3e2bb037a4e9
1,235
exs
Elixir
2019/08/08.exs
joshfinnie/advent-of-code
4baab3836638cf974d72e2af4cab30ad67a1450a
[ "MIT" ]
null
null
null
2019/08/08.exs
joshfinnie/advent-of-code
4baab3836638cf974d72e2af4cab30ad67a1450a
[ "MIT" ]
null
null
null
2019/08/08.exs
joshfinnie/advent-of-code
4baab3836638cf974d72e2af4cab30ad67a1450a
[ "MIT" ]
null
null
null
defmodule Part08 do def part1(input, {w, h}) do IO.puts least_corrupted_layer(input, {w, h}) end def part2(input, {w, h}) do IO.puts render_pixels(input, {w, h}) end defp least_corrupted_layer(input, {w, h}) do input |> Enum.chunk_every(w * h) |> Enum.min_by(&count(&1, 0)) |> g...
22.87037
51
0.613765
7abdf3fb0b14c58301da36a92deb1e6c9b14205b
3,226
ex
Elixir
lib/bearings_web/live/dailies_live/edit.ex
tmecklem/bearings
98efda7baba7a4170c46da6a4ccb4f954b0ddc5a
[ "MIT" ]
3
2018-05-29T12:16:14.000Z
2019-09-25T21:12:36.000Z
lib/bearings_web/live/dailies_live/edit.ex
tmecklem/bearings
98efda7baba7a4170c46da6a4ccb4f954b0ddc5a
[ "MIT" ]
23
2018-05-25T21:09:43.000Z
2021-12-16T05:45:25.000Z
lib/bearings_web/live/dailies_live/edit.ex
tmecklem/bearings
98efda7baba7a4170c46da6a4ccb4f954b0ddc5a
[ "MIT" ]
null
null
null
defmodule BearingsWeb.DailiesLive.Edit do @moduledoc """ This module is responsible to handle editing a daily """ use BearingsWeb, :live_view alias Bearings.Account alias Bearings.Dailies alias Bearings.Dailies.Daily alias BearingsWeb.Router.Helpers, as: Routes alias Ecto.Changeset def mount(%{"id...
26.016129
96
0.592064
7abdf49a261e881a403bdff5c6349e9651222fc7
3,730
ex
Elixir
lib/adoptoposs_web/live/repo_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
120
2020-03-30T13:58:40.000Z
2022-03-30T10:17:50.000Z
lib/adoptoposs_web/live/repo_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
34
2020-04-01T23:11:59.000Z
2022-03-13T08:14:37.000Z
lib/adoptoposs_web/live/repo_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
16
2020-04-24T17:14:23.000Z
2022-03-27T22:32:48.000Z
defmodule AdoptopossWeb.RepoLive do use AdoptopossWeb, :live_view alias AdoptopossWeb.{Endpoint, RepoView} alias Adoptoposs.{Accounts, Network, Submissions} alias Adoptoposs.Network.Organization @orga_limit 25 @repo_limit 10 @impl true def render(assigns) do Phoenix.View.render(RepoView, "index.h...
28.045113
91
0.665952
7abe0ea1f323d299736a41412d0806561ba1ba1b
400
ex
Elixir
stackdelivery/lib/stackdelivery/application.ex
codecakes/elixir_days
66fab751eef5bceff1ddf895f77464f3a9284bdf
[ "MIT" ]
null
null
null
stackdelivery/lib/stackdelivery/application.ex
codecakes/elixir_days
66fab751eef5bceff1ddf895f77464f3a9284bdf
[ "MIT" ]
null
null
null
stackdelivery/lib/stackdelivery/application.ex
codecakes/elixir_days
66fab751eef5bceff1ddf895f77464f3a9284bdf
[ "MIT" ]
null
null
null
defmodule Stackdelivery.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec, warn: true children = [ supervisor(Stackdelivery.StackGen.Supervisor, []), supervisor(Stackdelivery.StoreGen.Supervisor, []) ] opts = [strategy: :one_for_one, nam...
28.571429
67
0.7225
7abe1a02147bacec5575400f0cf64d4cb4f60cb3
718
exs
Elixir
test/utils_test.exs
c4xpgwt/kvstore
d8008b99afc17fef7045fa4480b0a6db5d0f73e8
[ "MIT" ]
null
null
null
test/utils_test.exs
c4xpgwt/kvstore
d8008b99afc17fef7045fa4480b0a6db5d0f73e8
[ "MIT" ]
null
null
null
test/utils_test.exs
c4xpgwt/kvstore
d8008b99afc17fef7045fa4480b0a6db5d0f73e8
[ "MIT" ]
null
null
null
defmodule UtilsTest do use ExUnit.Case, async: true import Utils test "Utils.is_valid?/3" do refute is_valid?(1, "10", 100) refute is_valid?("1", "10", -100) refute is_valid?("1", "10", 0) refute is_valid?("a", "10", "1") refute is_valid?("a", 10, 1) refute is_valid?(:ok, "a", 1) ass...
23.16129
37
0.625348
7abe1bbac466e83f7a12d15ce7dc0572f39fd33a
3,109
ex
Elixir
examples/gc_lns.ex
mbta/solverl
3d972db4fa173e9453357814884bd37f52a9713d
[ "MIT" ]
30
2020-07-30T19:22:34.000Z
2022-03-28T02:06:55.000Z
examples/gc_lns.ex
mbta/solverl
3d972db4fa173e9453357814884bd37f52a9713d
[ "MIT" ]
1
2022-02-14T22:56:02.000Z
2022-02-15T14:13:53.000Z
examples/gc_lns.ex
mbta/solverl
3d972db4fa173e9453357814884bd37f52a9713d
[ "MIT" ]
4
2020-08-18T04:31:38.000Z
2022-03-19T19:33:26.000Z
defmodule LNS.GraphColoring do @moduledoc false require Logger import MinizincSearch import MinizincUtils @gc_model resource_file("mzn/graph_coloring.mzn") ## Find optimal solution for Graph Coloring instance using Randomized LNS. ## 'destruction_rate' is a fraction of the vertex coloring (represented...
31.09
110
0.667417
7abe22260ead268942b7f2c6e815058043ac5c37
5,899
ex
Elixir
lib/absinthe/language/render.ex
arturs678/absinthe
0d842c46e5d21399d66919cdaadfa8927fbca74d
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
lib/absinthe/language/render.ex
arturs678/absinthe
0d842c46e5d21399d66919cdaadfa8927fbca74d
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
lib/absinthe/language/render.ex
arturs678/absinthe
0d842c46e5d21399d66919cdaadfa8927fbca74d
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Language.Render do @moduledoc false import Inspect.Algebra import Absinthe.Utils.Render @line_width 120 def inspect(term, %{pretty: true}) do term |> render() |> concat(line()) |> format(@line_width) |> to_string end def inspect(term, options) do Inspect.Any.i...
21.067857
97
0.60078
7abe8f683fd55a8dca1578ee6e8c7024c4eb26cf
693
exs
Elixir
config/host.exs
takasehideki/nerves_livebook
0bb7e5311408ab41964b955afc591f8fea6c8a65
[ "Apache-2.0" ]
3
2021-06-01T01:37:12.000Z
2021-07-19T07:23:28.000Z
config/host.exs
takasehideki/nerves_livebook
0bb7e5311408ab41964b955afc591f8fea6c8a65
[ "Apache-2.0" ]
16
2021-09-10T21:35:13.000Z
2022-03-18T13:41:54.000Z
config/host.exs
takasehideki/nerves_livebook
0bb7e5311408ab41964b955afc591f8fea6c8a65
[ "Apache-2.0" ]
1
2021-12-10T05:15:19.000Z
2021-12-10T05:15:19.000Z
import Config # Configure Livebook config :livebook, LivebookWeb.Endpoint, url: [host: "localhost"], http: [ip: {127, 0, 0, 1}, port: 8080], code_reloader: false, server: true, secret_key_base: "9hHHeOiAA8wrivUfuS//jQMurHxoMYUtF788BQMx2KO7mYUE8rVrGGG09djBNQq7" config :livebook, root_path: "priv" config :...
25.666667
94
0.733045
7abec26eb80b6decba8b1f72bf3e14667cefa1e1
1,849
ex
Elixir
clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/iam/lib/google_api/iam/v1/model/query_testable_permissions_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...
36.98
158
0.743645
7abee4b7f27f1cd6bba7fa6358ed2a9be2e81847
1,210
ex
Elixir
test/support/pages/login_page.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
1
2022-03-17T20:35:47.000Z
2022-03-17T20:35:47.000Z
test/support/pages/login_page.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
9
2021-11-02T16:52:09.000Z
2022-03-25T15:14:01.000Z
test/support/pages/login_page.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
null
null
null
defmodule LoginPage do use Hound.Helpers alias OliWeb.Router.Helpers, as: Routes def open do navigate_to("#{Application.get_env(:hound, :torus_base_url)}/") end def close_cookie_prompt do # Make sure the dialog & button are there # Then click the accept button with {:ok, _} <- search_element...
31.842105
154
0.675207
7abef50dcaa69afd59e8ab548c2f5714a5f0eccc
2,105
ex
Elixir
elixir/lib/homework/users.ex
MilioFrankie/transactions-app
5299526824393d2de3c4d6435286d665829991c5
[ "MIT" ]
null
null
null
elixir/lib/homework/users.ex
MilioFrankie/transactions-app
5299526824393d2de3c4d6435286d665829991c5
[ "MIT" ]
3
2021-09-02T19:01:31.000Z
2022-02-27T11:09:27.000Z
elixir/lib/homework/users.ex
MilioFrankie/transactions-app
5299526824393d2de3c4d6435286d665829991c5
[ "MIT" ]
null
null
null
defmodule Homework.Users do @moduledoc """ The Users context. """ import Ecto.Query, warn: false alias Homework.Repo alias Homework.Users.User alias Ecto.Changeset @doc """ Returns the list of users. ## Examples iex> list_users([]) [%User{}, ...] """ def list_users(_args) do ...
16.84
83
0.578622
7abf361c7622d9086232d7c30bc3c98394849fe2
7,591
ex
Elixir
lib/rabbit/producer/server.ex
suitepad-gmbh/rabbit
c6ba3cbca6b49362c3a9dd32d3af001a1de750ad
[ "MIT" ]
null
null
null
lib/rabbit/producer/server.ex
suitepad-gmbh/rabbit
c6ba3cbca6b49362c3a9dd32d3af001a1de750ad
[ "MIT" ]
null
null
null
lib/rabbit/producer/server.ex
suitepad-gmbh/rabbit
c6ba3cbca6b49362c3a9dd32d3af001a1de750ad
[ "MIT" ]
1
2021-01-14T10:22:35.000Z
2021-01-14T10:22:35.000Z
defmodule Rabbit.Producer.Server do @moduledoc false use GenServer require Logger import Rabbit.Utilities @opts_schema %{ connection: [type: [:tuple, :pid, :atom], required: true], sync_start: [type: :boolean, required: true, default: true], sync_start_delay: [type: :integer, required: true, d...
26.541958
96
0.62416
7abf451422a23aa548a37e28f6f2135f4c5e09c8
81
ex
Elixir
web/views/layout_view.ex
tommcgurl/phoenix_elm_jukebox
de522b700f484e9b7f9f73a826695c0cf06472b5
[ "MIT" ]
null
null
null
web/views/layout_view.ex
tommcgurl/phoenix_elm_jukebox
de522b700f484e9b7f9f73a826695c0cf06472b5
[ "MIT" ]
null
null
null
web/views/layout_view.ex
tommcgurl/phoenix_elm_jukebox
de522b700f484e9b7f9f73a826695c0cf06472b5
[ "MIT" ]
null
null
null
defmodule PhoenixElmJukebox.LayoutView do use PhoenixElmJukebox.Web, :view end
20.25
41
0.839506
7abf517beee6024aba8633c88189921161e8806d
1,316
ex
Elixir
lib/phoenix_client_ssl/plug/extract_common_name.ex
Prato/phoenix-client-ssl
510c2381e6d95c9baa6de9985d86d0a5dfe27b29
[ "MIT" ]
17
2017-12-01T09:12:41.000Z
2021-04-16T07:53:37.000Z
lib/phoenix_client_ssl/plug/extract_common_name.ex
Prato/phoenix-client-ssl
510c2381e6d95c9baa6de9985d86d0a5dfe27b29
[ "MIT" ]
2
2018-01-29T13:04:26.000Z
2018-05-24T11:03:55.000Z
lib/phoenix_client_ssl/plug/extract_common_name.ex
Prato/phoenix-client-ssl
510c2381e6d95c9baa6de9985d86d0a5dfe27b29
[ "MIT" ]
6
2018-05-24T07:42:22.000Z
2020-11-14T17:41:35.000Z
defmodule PhoenixClientSsl.Plug.ExtractCommonName do @moduledoc """ This Plug extracts the Common Name of a certificate in eligible connections. Best used together with `PhoenixClientSsl.Plug.ExtractClientCertificate`. ### Installation The plug can be installed in any `pipeline` of the Phoenix Router. It t...
25.803922
97
0.680091
7abf5655fbea079da0544cca3ebbc10d6158e3ea
1,472
exs
Elixir
test/lib/timber/eventable_test.exs
girishramnani/timber-elixir
7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5
[ "ISC" ]
null
null
null
test/lib/timber/eventable_test.exs
girishramnani/timber-elixir
7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5
[ "ISC" ]
null
null
null
test/lib/timber/eventable_test.exs
girishramnani/timber-elixir
7fda5c3cb5e765a34524d2ec21cfbd5b30240bd5
[ "ISC" ]
null
null
null
defmodule Timber.EventableTest do use Timber.TestCase alias Timber.Events alias Timber.Eventable describe "Timber.Eventable.to_event/1" do # # Events # test "Timber.Events.ChannelJoinEvent" do base_event = %Events.ChannelJoinEvent{channel: "channel", topic: "topic"} event = Eventa...
27.259259
98
0.637908
7abf663cd3c57ec2b6fc5cff78d77f1ca64da10a
2,922
exs
Elixir
test/graphql/plug/parameter_test.exs
cgiffard/plug_graphql
588fcef49ae429fb12e3241a28bbcc35c73eb5fb
[ "BSD-3-Clause" ]
91
2016-03-02T11:40:21.000Z
2021-08-04T08:42:03.000Z
test/graphql/plug/parameter_test.exs
cgiffard/plug_graphql
588fcef49ae429fb12e3241a28bbcc35c73eb5fb
[ "BSD-3-Clause" ]
20
2015-11-24T20:52:12.000Z
2016-02-29T17:21:27.000Z
test/graphql/plug/parameter_test.exs
cgiffard/plug_graphql
588fcef49ae429fb12e3241a28bbcc35c73eb5fb
[ "BSD-3-Clause" ]
9
2015-11-26T00:45:11.000Z
2016-02-26T19:29:50.000Z
defmodule GraphQL.Plug.ParameterTest do use ExUnit.Case, async: true use Plug.Test alias GraphQL.Plug.Parameter doctest GraphQL.Plug.Parameter # Parameter.operation test "retrieves operation as the operation_name parameter" do operation = conn(:GET, "/graphql", operation_name: "foo") |...
24.974359
67
0.612252
7abf9c012eb2ff17f83810d7a96bcea070983fc2
1,900
ex
Elixir
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_block_device_user_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_block_device_user_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_identity/lib/google_api/cloud_identity/v1/model/google_apps_cloudidentity_devices_v1_block_device_user_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.538462
377
0.76
7abfca17dab226e99bb4b61dd102260264baa16a
918
exs
Elixir
chapter11/StringsAndBinaries-7/mystring.exs
raufb/programming-elixir
6692ecef7d28571fb612c908c36d2e59d76c80fc
[ "MIT" ]
null
null
null
chapter11/StringsAndBinaries-7/mystring.exs
raufb/programming-elixir
6692ecef7d28571fb612c908c36d2e59d76c80fc
[ "MIT" ]
null
null
null
chapter11/StringsAndBinaries-7/mystring.exs
raufb/programming-elixir
6692ecef7d28571fb612c908c36d2e59d76c80fc
[ "MIT" ]
null
null
null
defmodule MyString do def calculate_total(file) do tax_rates = [ NC: 0.075, TX: 0.08 ] parse(file) |> _calculate_total(tax_rates) end def _calculate_total(orders, tax_rates) do tax_rates = [ NC: 0.075, TX: 0.08 ] for order <- orders, state = order[:ship_to], tax_rate = if(is_nil(tax_ra...
30.6
145
0.617647
7abfe1bb4ae79df152ec4e8d14645c0f746d461f
11,786
ex
Elixir
lib/teiserver/game/servers/queue_server.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
null
null
null
lib/teiserver/game/servers/queue_server.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
null
null
null
lib/teiserver/game/servers/queue_server.ex
icexuick/teiserver
22f2e255e7e21f977e6b262acf439803626a506c
[ "MIT" ]
null
null
null
defmodule Teiserver.Game.QueueServer do use GenServer require Logger alias Teiserver.Battle.Lobby alias Phoenix.PubSub alias Teiserver.Coordinator # @default_tick_interval 5_000 @default_tick_interval 1_000 @ready_wait_time 15 # TODO - Convert this into a system where each match is a new process an...
32.738889
152
0.617767
7abff2b5fa68137aa456b61dc3de6d2af83c6ec5
2,947
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/audit_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/big_query/lib/google_api/big_query/v2/model/audit_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/big_query/lib/google_api/big_query/v2/model/audit_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
58.94
1,106
0.744486
7ac018cce0cdc7f8b966e2582219c6929f17f022
1,478
ex
Elixir
lib/backbone/settings.ex
oestrich/gossip-backbone
0bd926a6ad759486d4b14216d60c2653240be7da
[ "MIT" ]
1
2018-10-23T04:13:39.000Z
2018-10-23T04:13:39.000Z
lib/backbone/settings.ex
oestrich/gossip-backbone
0bd926a6ad759486d4b14216d60c2653240be7da
[ "MIT" ]
null
null
null
lib/backbone/settings.ex
oestrich/gossip-backbone
0bd926a6ad759486d4b14216d60c2653240be7da
[ "MIT" ]
null
null
null
defmodule Backbone.Settings do @moduledoc """ Track backbone settings """ alias Backbone.Settings.Setting @repo Application.get_env(:backbone, :repo) @last_synced_at "last_synced_at" @doc """ Retrieve the highest seen event timestamp """ def last_synced_at() do case @repo.get_by(Setting, nam...
22.738462
93
0.599459
7ac026fd0f0fe1eab8d00ec5854d33acc3ff691f
1,062
ex
Elixir
lib/live_md_web/channels/user_socket.ex
RobertDober/life_md
e6eabe13de0f3752db90371c3deae64144718aa0
[ "Apache-2.0" ]
null
null
null
lib/live_md_web/channels/user_socket.ex
RobertDober/life_md
e6eabe13de0f3752db90371c3deae64144718aa0
[ "Apache-2.0" ]
null
null
null
lib/live_md_web/channels/user_socket.ex
RobertDober/life_md
e6eabe13de0f3752db90371c3deae64144718aa0
[ "Apache-2.0" ]
null
null
null
defmodule LiveMdWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", LiveMdWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channels...
31.235294
83
0.695857
7ac0f8b0d92002d78ff15a0f8e0ea5c9ca7b9584
2,338
ex
Elixir
lib/til/posts/posts.ex
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
null
null
null
lib/til/posts/posts.ex
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
2
2020-04-26T14:03:27.000Z
2020-12-12T17:14:02.000Z
lib/til/posts/posts.ex
kw7oe/til
5ecaa3d199c06d535d1bbbfa05e2dc88e86ad815
[ "MIT" ]
null
null
null
defmodule Til.Posts do @moduledoc """ The Posts context. """ import Ecto.Query, warn: false alias Til.Repo alias Til.Accounts alias Til.Posts.{Post, Tag, PostTag} def tag_count_for(user_id) do user_id |> PostTag.involved_by() |> Repo.aggregate(:count, :tag_id) end def count_for(user_...
19.163934
71
0.617622
7ac11d04a53750aa85242c104c52cc933ab9b689
12,008
exs
Elixir
test/c_backend_tests/cli_data_io_test.exs
DisruptiveAngels/snapex7
db76780cb7dec52c2d8640e05d2efd81183bd396
[ "MIT" ]
12
2019-03-02T00:02:32.000Z
2021-09-17T08:22:33.000Z
test/c_backend_tests/cli_data_io_test.exs
DisruptiveAngels/snapex7
db76780cb7dec52c2d8640e05d2efd81183bd396
[ "MIT" ]
1
2018-11-29T05:01:27.000Z
2018-11-29T05:01:27.000Z
test/c_backend_tests/cli_data_io_test.exs
DisruptiveAngels/snapex7
db76780cb7dec52c2d8640e05d2efd81183bd396
[ "MIT" ]
3
2020-05-07T12:23:37.000Z
2021-06-18T19:23:18.000Z
defmodule CliDataIoTest do use ExUnit.Case, async: false doctest Snapex7 # We need to implement S7 Server behavior in order to make a proper tests. # these tests are done connected to a real PLC setup do snap7_dir = :code.priv_dir(:snapex7) |> List.to_string() System.put_env("LD_LIBRARY_PATH", snap7...
25.548936
84
0.458944
7ac1223a079b9dfce07c4b614514a940dbd05da2
2,062
ex
Elixir
lib/task_bunny/supervisor.ex
sviik/task_bunny
373836828289107b8ed917bd7dc5aeb5428af335
[ "MIT" ]
207
2017-02-03T12:23:24.000Z
2022-03-22T17:03:23.000Z
lib/task_bunny/supervisor.ex
sviik/task_bunny
373836828289107b8ed917bd7dc5aeb5428af335
[ "MIT" ]
45
2017-02-06T09:48:43.000Z
2021-11-10T09:28:38.000Z
lib/task_bunny/supervisor.ex
sviik/task_bunny
373836828289107b8ed917bd7dc5aeb5428af335
[ "MIT" ]
33
2017-02-06T08:16:37.000Z
2021-09-13T00:38:16.000Z
defmodule TaskBunny.Supervisor do @moduledoc """ Main supervisor for TaskBunny. It supervises Connection and WorkerSupervisor with one_for_all strategy. When Connection crashes it restarts all Worker processes through WorkerSupervisor so workers can always use a re-established connection. You don't have t...
29.457143
92
0.654704
7ac12541f31e70d026e40c2e9652ef199ca5302e
2,422
exs
Elixir
mix.exs
Awlexus/nostrum
bbbff7e211592660854576fef5a66506983e4fcf
[ "MIT" ]
null
null
null
mix.exs
Awlexus/nostrum
bbbff7e211592660854576fef5a66506983e4fcf
[ "MIT" ]
null
null
null
mix.exs
Awlexus/nostrum
bbbff7e211592660854576fef5a66506983e4fcf
[ "MIT" ]
null
null
null
defmodule Nostrum.Mixfile do @moduledoc false use Mix.Project def project do [ app: :nostrum, version: "0.4.7", elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: "An elixir...
21.625
61
0.53014
7ac136e5457d24861f09b474f4afe5f0499abc13
339
ex
Elixir
services/fc_identity/test/support/dummy_command_with_effective_keys.ex
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
services/fc_identity/test/support/dummy_command_with_effective_keys.ex
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
services/fc_identity/test/support/dummy_command_with_effective_keys.ex
dclausen/freshcom
7e1d6397c8ab222cfd03830232cee0718f050490
[ "BSD-3-Clause" ]
null
null
null
defmodule FCIdentity.DummyCommandWithEffectiveKeys do use TypedStruct use Vex.Struct typedstruct do field :effective_keys, [atom], default: [] field :a, String.t() field :b, String.t() field :c, String.t() validates :a, presence: true validates :b, presence: true validates :c, prese...
21.1875
53
0.678466
7ac14aa904aa55abe8e46bfab439a239dbf1512f
3,307
exs
Elixir
test/lcd_display/driver/hd44780_pcf8574_test.exs
philipgiuliani/lcd_display
41ec73eb554d97c02d7ff16489fa4bec88618f3e
[ "MIT" ]
8
2021-01-18T21:24:56.000Z
2022-02-04T08:14:31.000Z
test/lcd_display/driver/hd44780_pcf8574_test.exs
philipgiuliani/lcd_display
41ec73eb554d97c02d7ff16489fa4bec88618f3e
[ "MIT" ]
null
null
null
test/lcd_display/driver/hd44780_pcf8574_test.exs
philipgiuliani/lcd_display
41ec73eb554d97c02d7ff16489fa4bec88618f3e
[ "MIT" ]
1
2021-01-06T15:39:56.000Z
2021-01-06T15:39:56.000Z
defmodule LcdDisplay.HD44780.PCF8574Test do use ExUnit.Case, async: true # https://hexdocs.pm/mox/Mox.html import Mox alias LcdDisplay.HD44780 # Make sure mocks are verified when the test exits setup :verify_on_exit! setup do Mox.stub_with(LcdDisplay.MockI2C, LcdDisplay.I2C.Stub) :ok end ...
37.579545
102
0.613849
7ac15d6565a1f85b2aaa7e08e18bf0f0a1263ff3
8,042
ex
Elixir
lib/scenic/component.ex
bruceme/scenic
bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43
[ "Apache-2.0" ]
null
null
null
lib/scenic/component.ex
bruceme/scenic
bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43
[ "Apache-2.0" ]
null
null
null
lib/scenic/component.ex
bruceme/scenic
bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43
[ "Apache-2.0" ]
null
null
null
# # Created by Boyd Multerer on 2018-03-26. # Copyright © 2018-2021 Kry10 Limited. All rights reserved. # defmodule Scenic.Component do @moduledoc """ A Component is Scene that is optimized to be used as a child of another scene. These are typically controls that you want to define once and use in multiple pl...
32.168
130
0.654066
7ac185eed10acd7a8ef384a4da5c8b2da53320ff
1,908
exs
Elixir
test/xdr/transactions/operations/liquidity_pool_withdraw_result_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
3
2021-08-17T20:32:45.000Z
2022-03-13T20:26:02.000Z
test/xdr/transactions/operations/liquidity_pool_withdraw_result_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
45
2021-08-12T20:19:41.000Z
2022-03-27T21:00:10.000Z
test/xdr/transactions/operations/liquidity_pool_withdraw_result_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
2
2021-09-22T23:11:13.000Z
2022-01-23T03:19:11.000Z
defmodule StellarBase.XDR.Operations.LiquidityPoolWithdrawResultTest do use ExUnit.Case alias StellarBase.XDR.Void alias StellarBase.XDR.Operations.{LiquidityPoolWithdrawResult, LiquidityPoolWithdrawResultCode} describe "LiquidityPoolWithdrawResult" do setup do code = LiquidityPoolWithdrawResultCode...
34.071429
97
0.691824