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
38c400f02b4a9404b8e22dd6b562751f95accbe3
3,509
ex
Elixir
lib/monitor.ex
ruffin/scenic_battery
906fc80362a519e1c48b90dd3b26bc6df5b75758
[ "Apache-2.0" ]
3
2018-09-17T02:15:23.000Z
2021-11-09T15:51:04.000Z
lib/monitor.ex
ruffin/scenic_battery
906fc80362a519e1c48b90dd3b26bc6df5b75758
[ "Apache-2.0" ]
null
null
null
lib/monitor.ex
ruffin/scenic_battery
906fc80362a519e1c48b90dd3b26bc6df5b75758
[ "Apache-2.0" ]
null
null
null
defmodule Scenic.Battery.Monitor do @moduledoc """ A component that displays battery charge in four segments, including empty. """ use Scenic.Component, has_children: false alias Scenic.Graph alias Scenic.Primitive.Style.Theme import Scenic.Primitives @default_theme :dark @default_data %{charge_le...
24.538462
88
0.586207
38c40a8175ef54c2cd280eb9a45293e51c75c27f
994
ex
Elixir
web/views/error_helpers.ex
NorifumiKawamoto/ginjyo
8e28438db4675bb55ba090614c6834190adb61b1
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
NorifumiKawamoto/ginjyo
8e28438db4675bb55ba090614c6834190adb61b1
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
NorifumiKawamoto/ginjyo
8e28438db4675bb55ba090614c6834190adb61b1
[ "MIT" ]
null
null
null
defmodule Ginjyo.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error), c...
27.611111
77
0.678068
38c423a880ae8d04ec50820c1e4d6867f2351589
7,423
ex
Elixir
lib/ecto/adapters/exqlite.ex
Eiji7/exqlite
025bba63a2ebf2011d7bdf2c7a300f5782d917ae
[ "MIT" ]
null
null
null
lib/ecto/adapters/exqlite.ex
Eiji7/exqlite
025bba63a2ebf2011d7bdf2c7a300f5782d917ae
[ "MIT" ]
null
null
null
lib/ecto/adapters/exqlite.ex
Eiji7/exqlite
025bba63a2ebf2011d7bdf2c7a300f5782d917ae
[ "MIT" ]
null
null
null
defmodule Ecto.Adapters.Exqlite do use Ecto.Adapters.SQL, driver: :exqlite import String, only: [to_integer: 1] @behaviour Ecto.Adapter.Storage @behaviour Ecto.Adapter.Structure @impl Ecto.Adapter.Storage def storage_down(options) do db_path = Keyword.fetch!(options, :database) with :ok <- F...
24.337705
92
0.631146
38c42898c88925561377e9ad2eab2c8829a85410
2,899
ex
Elixir
lib/elixir_script/passes/translate/clause.ex
beadsland/elixirscript
cb9698ad96075fcbe87b3933009d7ab2a2c939de
[ "MIT" ]
854
2017-02-19T01:50:45.000Z
2022-03-14T18:55:38.000Z
lib/elixir_script/passes/translate/clause.ex
beadsland/elixirscript
cb9698ad96075fcbe87b3933009d7ab2a2c939de
[ "MIT" ]
210
2017-02-20T17:44:39.000Z
2020-08-01T10:18:07.000Z
lib/elixir_script/passes/translate/clause.ex
beadsland/elixirscript
cb9698ad96075fcbe87b3933009d7ab2a2c939de
[ "MIT" ]
56
2017-02-19T14:50:05.000Z
2022-02-25T17:25:30.000Z
defmodule ElixirScript.Translate.Clause do @moduledoc false # Handles translation of all of the clause ASTs alias ESTree.Tools.Builder, as: J alias ElixirScript.Translate.Helpers alias ElixirScript.Translate.Form alias ElixirScript.Translate.Forms.Pattern alias ElixirScript.Translate.Function def com...
23.007937
81
0.637806
38c43fdc70c07c1909a0ef616dd8152961487918
495
ex
Elixir
kousa/lib/routes/me_routes.ex
larsverp/dogehouse
a433d4cd64512c4723cd019957b654ae4dc877b4
[ "MIT" ]
2
2021-03-15T22:53:51.000Z
2021-03-22T09:34:06.000Z
kousa/lib/routes/me_routes.ex
larsverp/dogehouse
a433d4cd64512c4723cd019957b654ae4dc877b4
[ "MIT" ]
2
2021-09-01T19:42:51.000Z
2021-12-09T03:56:38.000Z
kousa/lib/routes/me_routes.ex
larsverp/dogehouse
a433d4cd64512c4723cd019957b654ae4dc877b4
[ "MIT" ]
1
2021-03-13T20:31:49.000Z
2021-03-13T20:31:49.000Z
defmodule Kousa.Routes.Me do import Plug.Conn use Plug.Router # alias Beef.Users plug(Kousa.CheckAuth, %{shouldThrow: false}) plug(:match) plug(:dispatch) get "/" do user = cond do conn.assigns[:user] -> conn.assigns[:user] conn.assigns[:user_id] -> Beef.Users.get_by_id(conn....
19.8
78
0.620202
38c446cfd59474bb7d5cac6e63490de9627193fc
11,813
ex
Elixir
lib/chat_api/emails/email.ex
edgarkanye/papercups
c9652bee03cf5c3f6d7fc5742740fe13875fd40f
[ "MIT" ]
null
null
null
lib/chat_api/emails/email.ex
edgarkanye/papercups
c9652bee03cf5c3f6d7fc5742740fe13875fd40f
[ "MIT" ]
null
null
null
lib/chat_api/emails/email.ex
edgarkanye/papercups
c9652bee03cf5c3f6d7fc5742740fe13875fd40f
[ "MIT" ]
null
null
null
defmodule ChatApi.Emails.Email do import Swoosh.Email import Ecto.Changeset alias ChatApi.Customers.Customer alias ChatApi.Messages.Message alias ChatApi.Users.UserProfile @type t :: Swoosh.Email.t() @from_address System.get_env("FROM_ADDRESS") || "" @backend_url System.get_env("BACKEND_URL", "app.pa...
26.251111
98
0.601625
38c463190aeb62e7b66f9c8437d1f874d7019ed6
1,071
ex
Elixir
apps/omg_watcher_rpc/lib/web/controllers/utxo.ex
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2020-05-01T12:30:09.000Z
2020-05-01T12:30:09.000Z
apps/omg_watcher_rpc/lib/web/controllers/utxo.ex
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
null
null
null
apps/omg_watcher_rpc/lib/web/controllers/utxo.ex
PinkDiamond1/elixir-omg
70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7
[ "Apache-2.0" ]
1
2021-12-04T00:37:46.000Z
2021-12-04T00:37:46.000Z
# Copyright 2019 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 writi...
30.6
74
0.718954
38c48511f0e5b63e84ac1e34b48b0beda3a86699
668
ex
Elixir
lib/print_node/client.ex
Vetspire/ex_printnode
368e3a5189c6422a0581f9bd5e81802a9ec5fcae
[ "MIT" ]
3
2020-10-23T08:55:12.000Z
2021-12-28T17:52:14.000Z
lib/print_node/client.ex
Vetspire/ex_printnode
368e3a5189c6422a0581f9bd5e81802a9ec5fcae
[ "MIT" ]
1
2020-11-08T22:44:39.000Z
2020-11-08T22:44:39.000Z
lib/print_node/client.ex
Vetspire/ex_printnode
368e3a5189c6422a0581f9bd5e81802a9ec5fcae
[ "MIT" ]
1
2020-10-23T10:58:53.000Z
2020-10-23T10:58:53.000Z
defmodule PrintNode.Client do @moduledoc """ Wrapper around HTTPoison for making the actual HTTP requests """ use HTTPoison.Base def process_request_url(url) do "https://api.printnode.com" <> url end def process_response_body(body) do body |> Jason.decode!(keys: :atoms) end def process...
23.857143
94
0.664671
38c49bd9ae9d986a18a05370fe0dc38705f789f3
531
exs
Elixir
test/gat_core_test.exs
SylwBar/gat_core
b37c12e1004e1ee11b3d515f51f02319d0ac3a93
[ "MIT" ]
null
null
null
test/gat_core_test.exs
SylwBar/gat_core
b37c12e1004e1ee11b3d515f51f02319d0ac3a93
[ "MIT" ]
null
null
null
test/gat_core_test.exs
SylwBar/gat_core
b37c12e1004e1ee11b3d515f51f02319d0ac3a93
[ "MIT" ]
null
null
null
defmodule GATCoreTest do use ExUnit.Case doctest GATCore test "APRS check #1" do assert GATCore.APRS.get_source_id( "TEST>OGNSDR,TCPIP*,qAC,GLIDERN1:/161412h1020.30NI01234.56E&/A=000321" ) == {:ogn_station, "TEST"} end test "APRS check #2" do assert GATCore.APRS.get_source_id...
31.235294
139
0.644068
38c4d1458d0861e3de1f2f544a4a127a6643832e
1,370
ex
Elixir
apps/snitch_core/lib/core/data/model/property.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
1
2018-12-01T18:13:55.000Z
2018-12-01T18:13:55.000Z
apps/snitch_core/lib/core/data/model/property.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
apps/snitch_core/lib/core/data/model/property.ex
saurabharch/avia
74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c
[ "MIT" ]
null
null
null
defmodule Snitch.Data.Model.Property do @moduledoc """ Property API """ use Snitch.Data.Model alias Snitch.Data.Schema.Property @doc """ Returns all Property """ @spec get_all() :: [Property.t()] def get_all do Repo.all(Property) end @doc """ Create a Property with supplied params """...
21.746032
87
0.625547
38c4ed3b4eb995e23ada16606cfd8bc0554bfbd3
425
ex
Elixir
web/models/column_vaalue.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/models/column_vaalue.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
web/models/column_vaalue.ex
sahilpaudel/AfterGlow
0859ec14b47c8c5704cc8e5cba86d39aa258fff5
[ "MIT" ]
null
null
null
defmodule AfterGlow.ColumnValue do use AfterGlow.Web, :model schema "column_values" do field :name, :string field :value, :string belongs_to :column, AfterGlow.Column timestamps() end @doc """ Builds a changeset based on the `struct` and `params`. """ def changeset(struct, params \\ %{}...
20.238095
56
0.644706
38c4f8efecaa7e939307b603f80194077283317a
557
exs
Elixir
apps/tai/test/tai/orders/search_transitions_count_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/test/tai/orders/search_transitions_count_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/tai/test/tai/orders/search_transitions_count_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Orders.SearchTransitionsCountTest do use Tai.TestSupport.DataCase, async: false test "returns the count of order transitions matching the search query" do {:ok, order} = create_order() {:ok, _order_transition_1} = create_order_transition(order.client_id, %{}, :cancel) {:ok, _order_transit...
42.846154
87
0.746858
38c55b8ddb9cec3bfba7b09184fbc461f072f443
868
exs
Elixir
mix.exs
izaakschroeder/exjsx
202b2ee1b274511973de60e9fdfed218d3b5eecc
[ "MIT" ]
null
null
null
mix.exs
izaakschroeder/exjsx
202b2ee1b274511973de60e9fdfed218d3b5eecc
[ "MIT" ]
null
null
null
mix.exs
izaakschroeder/exjsx
202b2ee1b274511973de60e9fdfed218d3b5eecc
[ "MIT" ]
null
null
null
defmodule EXJSX.Mixfile do use Mix.Project def project do [ app: :exjsx, version: "3.2.0", elixir: ">= 0.13.3", consolidate_protocols: Mix.env != :test, description: description(), package: package(), deps: deps() ] end # Configuration for the OTP application def ...
18.468085
68
0.534562
38c5769f827cc7bc5044fd139a0af7f19349d13d
14,733
exs
Elixir
test/cachex/options_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
946
2017-06-26T00:36:58.000Z
2022-03-29T19:52:31.000Z
test/cachex/options_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
152
2017-06-28T10:01:24.000Z
2022-03-24T18:46:13.000Z
test/cachex/options_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
84
2017-06-30T05:30:31.000Z
2022-03-01T20:23:16.000Z
defmodule Cachex.OptionsTest do use CachexCase # Bind any required hooks for test execution setup_all do ForwardHook.bind([ options_pre_forward_hook: [ type: :pre ], options_post_forward_hook: [ type: :post ] ]) :ok end # Options parsing should add the cache name to the returned stat...
40.811634
108
0.67264
38c5815629fe28061970e37a89e4badd56b3daee
3,682
exs
Elixir
kousa/test/broth/user/update_test.exs
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
8
2021-06-30T07:02:52.000Z
2021-08-30T18:58:38.000Z
kousa/test/broth/user/update_test.exs
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
12
2021-07-06T12:51:13.000Z
2022-03-16T12:38:18.000Z
kousa/test/broth/user/update_test.exs
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
4
2021-07-15T20:33:50.000Z
2022-03-27T12:46:47.000Z
defmodule BrothTest.User.UpdateTest do use ExUnit.Case, async: true use KousaTest.Support.EctoSandbox alias Beef.Schemas.User alias Beef.Users alias BrothTest.WsClient alias BrothTest.WsClientFactory alias KousaTest.Support.Factory require WsClient setup do user = Factory.create(User) clien...
22.728395
94
0.555133
38c58b2e2d79ea54aa90346669a201a4aa6bb446
10,922
ex
Elixir
lib/absinthe/middleware.ex
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
lib/absinthe/middleware.ex
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
lib/absinthe/middleware.ex
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
defmodule Absinthe.Middleware do @moduledoc """ Middleware enables custom resolution behaviour on a field. All resolution happens through middleware. Even `resolve` functions are middleware, as the `resolve` macro is just ``` quote do middleware Absinthe.Resolution, unquote(function_ast) end ``` ...
33.197568
133
0.709119
38c5dd2b1969aa63af44966bfc32118141ca40a3
884
exs
Elixir
socket_remotedata/config/config.exs
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "MIT" ]
1
2020-02-09T20:20:23.000Z
2020-02-09T20:20:23.000Z
socket_remotedata/config/config.exs
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "MIT" ]
null
null
null
socket_remotedata/config/config.exs
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "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 :socket_remotedata, SocketRemotedata.Endpoint, url...
36.833333
86
0.769231
38c656552b3d2a0859e2c1e0f299b6c928171bf5
1,767
ex
Elixir
lib/freegiving/fundraisers/participant.ex
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
lib/freegiving/fundraisers/participant.ex
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
lib/freegiving/fundraisers/participant.ex
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
defmodule Freegiving.Fundraisers.Participant do use Ecto.Schema import Ecto.Changeset, warn: false import Ecto.Query, warn: false alias Freegiving.Fundraisers.{Fundraiser, GiftCard, Contact} alias Freegiving.Accounts.User alias Freegiving.Repo alias __MODULE__ schema "participants" do field :notify...
27.609375
82
0.675156
38c6674ece7adfad035684e008662ed3679d26c6
6,055
exs
Elixir
test/details/tree_finish_test.exs
roelandvanbatenburg/phoenix_integration
b05007fa987f1a072404ec7727988b7428c07711
[ "Apache-2.0" ]
218
2016-07-29T01:21:45.000Z
2022-02-08T15:19:41.000Z
test/details/tree_finish_test.exs
roelandvanbatenburg/phoenix_integration
b05007fa987f1a072404ec7727988b7428c07711
[ "Apache-2.0" ]
49
2016-08-06T20:57:43.000Z
2022-01-24T23:46:10.000Z
test/details/tree_finish_test.exs
roelandvanbatenburg/phoenix_integration
b05007fa987f1a072404ec7727988b7428c07711
[ "Apache-2.0" ]
29
2016-08-18T07:07:37.000Z
2022-01-11T14:39:52.000Z
defmodule PhoenixIntegration.Details.TreeFinishTest do use ExUnit.Case, async: true import PhoenixIntegration.FormSupport alias PhoenixIntegration.Form.TreeFinish describe "converting the values into a map sent via ConnTest" do test "a scalar" do actual = """ <input type="text" name="top_le...
31.536458
84
0.549794
38c680fa376086ddc9cf05bc68dc3e31c2854cb5
245
ex
Elixir
lib/exql_query.ex
visciang/exql_migration
ce06138410a71b7856b83f9c4233e7ea22a9aaa2
[ "MIT" ]
1
2021-08-09T07:35:07.000Z
2021-08-09T07:35:07.000Z
lib/exql_query.ex
visciang/exql_migration
ce06138410a71b7856b83f9c4233e7ea22a9aaa2
[ "MIT" ]
1
2021-11-24T07:57:17.000Z
2021-11-24T07:57:17.000Z
lib/exql_query.ex
visciang/exql_migration
ce06138410a71b7856b83f9c4233e7ea22a9aaa2
[ "MIT" ]
null
null
null
defmodule Exql.Query do @moduledoc false @spec result(Postgrex.Result.t()) :: [map()] def result(%Postgrex.Result{columns: columns, rows: rows}) do Enum.map(rows, fn row -> Enum.zip(columns, row) |> Map.new() end) end end
22.272727
63
0.640816
38c696dc40d65815b217e568777b0ac16143ff2c
271
ex
Elixir
web/lib/infolab_light_games.ex
simmsb/infolab-lights
1cd685029c50cde0de84176efd65fb0cabc6c820
[ "MIT" ]
5
2021-11-04T08:31:46.000Z
2021-11-07T12:15:57.000Z
web/lib/infolab_light_games.ex
simmsb/infolab-lights
1cd685029c50cde0de84176efd65fb0cabc6c820
[ "MIT" ]
47
2020-08-03T09:30:46.000Z
2021-03-01T08:18:51.000Z
web/lib/infolab_light_games.ex
nitros12/something-secret
1cd685029c50cde0de84176efd65fb0cabc6c820
[ "MIT" ]
2
2021-11-04T10:46:41.000Z
2022-02-22T18:05:44.000Z
defmodule InfolabLightGames do @moduledoc """ InfolabLightGames keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
27.1
66
0.771218
38c6a09f76e0ec25131e29b63a2f366e3d358fea
973
ex
Elixir
lib/pixie/backends/redis/client_gc.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/backends/redis/client_gc.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
lib/pixie/backends/redis/client_gc.ex
rdalin82/pixie
add50e2bd7fbd807c7b82cd10a2123828be4c58f
[ "MIT" ]
null
null
null
defmodule Pixie.Backend.Redis.ClientGC do import Pixie.Backend.Redis.Connection alias Timex.Time use GenServer def start_link do GenServer.start_link __MODULE__, [] end def init [] do {:ok, nil, staggered_timeout} end def handle_info :timeout, nil do {:ok, expired} = query ["ZRANGEBYSCORE...
25.605263
79
0.693731
38c6b9f6a940c3e56679affc454aecfce5b72374
714
ex
Elixir
web/controllers/race_controller.ex
openrowing/raceman2
eee2d51c50bddf63b9c5b9b351424d4c056fa27d
[ "Apache-2.0" ]
null
null
null
web/controllers/race_controller.ex
openrowing/raceman2
eee2d51c50bddf63b9c5b9b351424d4c056fa27d
[ "Apache-2.0" ]
null
null
null
web/controllers/race_controller.ex
openrowing/raceman2
eee2d51c50bddf63b9c5b9b351424d4c056fa27d
[ "Apache-2.0" ]
null
null
null
defmodule Web.RaceController do use Web.Web, :controller import Ecto.Query def show(conn, %{"id" => id}) do race = Web.Race |> Repo.get!(id) |> Repo.preload([:race_type]) rower_boats_query = from r in Web.RowerBoat, order_by: r.position, preload: :rower times_query = from t in Web.Time...
28.56
128
0.658263
38c6d0698f2c902aedd3ec992dfbafbcd3b5d48b
11,936
ex
Elixir
deps/plug/lib/plug/router.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
deps/plug/lib/plug/router.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
deps/plug/lib/plug/router.ex
conorfoley/dota_hero_combos
d75a3f0673fc1f1d0845c9d5c692c0605d3b445d
[ "MIT" ]
null
null
null
defmodule Plug.Router do @moduledoc ~S""" A DSL to define a routing algorithm that works with Plug. It provides a set of macros to generate routes. For example: defmodule AppRouter do use Plug.Router plug :match plug :dispatch get "/hello" do send_resp(conn, 200...
29.691542
106
0.655496
38c706af6b8c9b8e342328c6b0518344a68c4b69
4,109
ex
Elixir
lib/animu/media/anime/episode.ex
elarkham/animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
1
2018-01-02T06:59:08.000Z
2018-01-02T06:59:08.000Z
lib/animu/media/anime/episode.ex
elarkham/Animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
null
null
null
lib/animu/media/anime/episode.ex
elarkham/Animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
null
null
null
defmodule Animu.Media.Anime.Episode do @moduledoc """ Data format for Anime episodes """ use Animu.Ecto.Schema alias Animu.Media alias Animu.Media.Anime alias Animu.Media.Anime.Video alias __MODULE__ schema "episode" do field :name, :string, null: false field :titles, {:map, ...
26.509677
88
0.634461
38c711924f809df150e9efc9b552ecd17417d3a8
611
exs
Elixir
priv/repo/migrations/20180412125329_create_community_editors.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
priv/repo/migrations/20180412125329_create_community_editors.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
priv/repo/migrations/20180412125329_create_community_editors.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Repo.Migrations.CreateCommunityEditors do use Ecto.Migration def change do create table(:communities_editors) do add(:user_id, references(:users, on_delete: :delete_all), null: false) add(:community_id, references(:communities, on_delete: :delete_all), null: false) ad...
32.157895
87
0.720131
38c714512a0b93a29e0e12b7acf75be3d8b24bde
2,595
exs
Elixir
host_core/test/support/constants.exs
protochron/wasmcloud-otp
fd07262074b98b06106a31fd1957dc2319d438a5
[ "Apache-2.0" ]
null
null
null
host_core/test/support/constants.exs
protochron/wasmcloud-otp
fd07262074b98b06106a31fd1957dc2319d438a5
[ "Apache-2.0" ]
null
null
null
host_core/test/support/constants.exs
protochron/wasmcloud-otp
fd07262074b98b06106a31fd1957dc2319d438a5
[ "Apache-2.0" ]
null
null
null
defmodule HostCoreTest.Constants do # Actor related constants @echo_key "MBCFOPM6JW2APJLXJD3Z5O4CN7CPYJ2B4FTKLJUR5YR5MITIU7HD3WD5" @echo_ociref "wasmcloud.azurecr.io/echo:0.3.1" @echo_ociref_updated "wasmcloud.azurecr.io/echo:0.3.1-liveupdate" @echo_path "test/fixtures/actors/echo.wasm" @echo_unpriv_key "MC...
41.854839
82
0.815414
38c75e2d1fbb0b1b118b4b28179b54a80e361d10
6,837
exs
Elixir
test/blogit_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
39
2017-07-03T17:39:18.000Z
2021-05-01T14:17:42.000Z
test/blogit_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
6
2017-11-07T22:00:19.000Z
2020-03-13T18:01:53.000Z
test/blogit_test.exs
9to1url/blogit
a7e424b411460b62b5b2c0a74ff731bb9392de8a
[ "MIT" ]
6
2017-07-06T04:46:49.000Z
2020-03-06T02:39:33.000Z
defmodule BlogitTest do use ExUnit.Case alias Blogit.Settings alias Blogit.RepositoryProviders.Memory defp wait_for_update do updated = Agent.get(Memory, fn data -> Enum.empty?(data.updates) end) case updated do true -> Process.sleep(200) false -> Process.sleep(100) ...
30.118943
101
0.608454
38c760b92b491db57c5509928e8811a046ddb040
310
ex
Elixir
apps/core/lib/core/utils/phone.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/lib/core/utils/phone.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/lib/core/utils/phone.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.Utils.Phone do @moduledoc false def hide_number(number) when is_binary(number), do: do_hide_number(number) def hide_number(number), do: number def do_hide_number(<<code::bytes-size(6), _hidden::bytes-size(5), last_digits::bytes-size(2)>>) do "#{code}*****#{last_digits}" end end
28.181818
100
0.709677
38c765950465e8a4a1b3c0e1cd1825dd2bc4e8c4
9,086
ex
Elixir
lib/romeo/stanza.ex
LaudateCorpus1/romeo
22a7280d0908107ebffefd25d7e051fdb9fab0b2
[ "MIT" ]
7
2018-08-21T15:58:40.000Z
2020-02-29T20:39:42.000Z
lib/romeo/stanza.ex
LaudateCorpus1/romeo
22a7280d0908107ebffefd25d7e051fdb9fab0b2
[ "MIT" ]
null
null
null
lib/romeo/stanza.ex
LaudateCorpus1/romeo
22a7280d0908107ebffefd25d7e051fdb9fab0b2
[ "MIT" ]
5
2020-04-18T15:43:13.000Z
2022-03-17T18:17:38.000Z
defmodule Romeo.Stanza do @moduledoc """ Provides convenience functions for building XMPP stanzas. """ use Romeo.XML @doc """ Converts an `xml` record to an XML binary string. """ def to_xml(record) when Record.is_record(record) do Romeo.XML.encode!(record) end def to_xml(record) when Record....
22.829146
141
0.542923
38c776967b8d19ead54483c7f52186100793228b
1,411
ex
Elixir
web/models/book_metadata.ex
beccanelson/8th-light-library
d0aa70371ca7645abf8609b53202ebb1808ca633
[ "MIT" ]
null
null
null
web/models/book_metadata.ex
beccanelson/8th-light-library
d0aa70371ca7645abf8609b53202ebb1808ca633
[ "MIT" ]
9
2016-09-22T20:30:22.000Z
2016-09-22T21:00:53.000Z
web/models/book_metadata.ex
beccanelson/library
d0aa70371ca7645abf8609b53202ebb1808ca633
[ "MIT" ]
null
null
null
defmodule Bookish.BookMetadata do use Bookish.Web, :model schema "book_metadata" do field :title, :string field :author_firstname, :string field :author_lastname, :string field :year, :integer field :tags_list, :string, virtual: true many_to_many :tags, Bookish.Tag, join_through: Bookish.Bo...
27.666667
134
0.688164
38c77ea8e3a4f9c2bc5932700662be03927c5b66
13,197
ex
Elixir
lib/rummage_ecto/hooks/paginate.ex
sivsushruth/rummage_ecto
641244a4d52b3026c4580cca33394d20305499ad
[ "MIT" ]
null
null
null
lib/rummage_ecto/hooks/paginate.ex
sivsushruth/rummage_ecto
641244a4d52b3026c4580cca33394d20305499ad
[ "MIT" ]
null
null
null
lib/rummage_ecto/hooks/paginate.ex
sivsushruth/rummage_ecto
641244a4d52b3026c4580cca33394d20305499ad
[ "MIT" ]
null
null
null
defmodule Rummage.Ecto.Hook.Paginate do @moduledoc """ `Rummage.Ecto.Hook.Paginate` is the default pagination hook that comes with `Rummage.Ecto`. This module provides a operations that can add pagination functionality to a pipeline of `Ecto` queries. This module works by taking a `per_page`, which it uses...
32.746898
92
0.667349
38c7916c4ba1ba1a31d741cda00e77c693c1f722
960
ex
Elixir
lib/banchan_web/live/live_helpers.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan_web/live/live_helpers.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
lib/banchan_web/live/live_helpers.ex
riamaria/banchan
c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
defmodule BanchanWeb.LiveHelpers do @moduledoc false import Phoenix.LiveView alias Banchan.Accounts alias Banchan.Accounts.User alias BanchanWeb.Router.Helpers, as: Routes alias BanchanWeb.UserAuth def assign_defaults(session, socket, auth \\ true) do # This is important so clients get booted when ...
27.428571
74
0.7
38c798ec00d5bdcfc84021246adce56191963fa3
499
ex
Elixir
lib/conductor/plugs/skip_authorization.ex
MichalDolata/conductor
3d693a7cb210ff68079b2f7ded1f590815628f4d
[ "Apache-2.0" ]
6
2017-09-19T13:02:32.000Z
2021-07-02T08:49:41.000Z
lib/conductor/plugs/skip_authorization.ex
MichalDolata/conductor
3d693a7cb210ff68079b2f7ded1f590815628f4d
[ "Apache-2.0" ]
1
2017-10-23T21:12:56.000Z
2017-10-31T21:51:31.000Z
lib/conductor/plugs/skip_authorization.ex
MichalDolata/conductor
3d693a7cb210ff68079b2f7ded1f590815628f4d
[ "Apache-2.0" ]
3
2017-09-23T03:53:03.000Z
2018-12-20T12:59:46.000Z
defmodule Conductor.Plugs.SkipAuthorization do @moduledoc """ Add this plug wherever you need to disable authorization. ```elixir pipeline :skip_authorization do plug Conductor.Plugs.SkipAuthorization end scope "/public" do pipe_through [:skip_authorization] #... end `...
18.481481
61
0.659319
38c7a101fa46da49781806a8e1bf9e5804fe7982
85
exs
Elixir
test/vinci/config_agent_test.exs
leifg/vinci
9eb8bd37aed3dd19fc6128a2ad39f5077c01815f
[ "MIT" ]
1
2015-11-12T02:54:31.000Z
2015-11-12T02:54:31.000Z
test/vinci/config_agent_test.exs
leifg/vinci
9eb8bd37aed3dd19fc6128a2ad39f5077c01815f
[ "MIT" ]
null
null
null
test/vinci/config_agent_test.exs
leifg/vinci
9eb8bd37aed3dd19fc6128a2ad39f5077c01815f
[ "MIT" ]
null
null
null
defmodule VinciConfigAgentTest do use ExUnit.Case doctest Vinci.ConfigAgent end
14.166667
33
0.823529
38c7b004f2837941a630e1255079ff4f9bba3081
6,521
exs
Elixir
test/passes/translate/form_test.exs
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
1
2021-09-14T14:28:39.000Z
2021-09-14T14:28:39.000Z
test/passes/translate/form_test.exs
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
null
null
null
test/passes/translate/form_test.exs
alex-min/elixirscript
a2bd2327d0b6bbacf98fb555198acf12c0c20916
[ "MIT" ]
null
null
null
defmodule ElixirScript.Translate.Forms.Test do use ExUnit.Case alias ElixirScript.Translate.Form alias ElixirScript.Translate.Helpers alias ESTree.Tools.Builder, as: J use ExUnitProperties setup_all do {:ok, pid} = ElixirScript.State.start_link(%{}) state = %{ pid: pid, vars: %{} }...
28.726872
98
0.545775
38c7b1aeff631e4125d9732bbe45a527a4ab6bac
462
exs
Elixir
priv/repo/migrations/20210314161821_create_transfers.exs
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
1
2021-04-17T20:36:24.000Z
2021-04-17T20:36:24.000Z
priv/repo/migrations/20210314161821_create_transfers.exs
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
3
2021-04-15T19:45:43.000Z
2021-04-16T06:08:24.000Z
priv/repo/migrations/20210314161821_create_transfers.exs
wintermeyer/animina
44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a
[ "MIT" ]
null
null
null
defmodule Animina.Repo.Migrations.CreateTransfers do use Ecto.Migration def change do create table(:transfers) do add :amount, :integer, null: false add :description, :string add :receiver_id, references(:users, on_delete: :nothing), null: false add :sender_id, references(:users, on_del...
25.666667
76
0.686147
38c7bded1c36b5f7b4f81b925d22094fd96c41c2
431
ex
Elixir
lib/mix/tasks/export.attendees.entries.ex
cesium/safira
10dd45357c20e8afc22563f114f49ccb74008114
[ "MIT" ]
40
2018-07-04T19:13:45.000Z
2021-12-16T23:53:43.000Z
lib/mix/tasks/export.attendees.entries.ex
cesium/safira
10dd45357c20e8afc22563f114f49ccb74008114
[ "MIT" ]
94
2018-07-25T13:13:39.000Z
2022-02-15T04:09:42.000Z
lib/mix/tasks/export.attendees.entries.ex
cesium/safira
10dd45357c20e8afc22563f114f49ccb74008114
[ "MIT" ]
5
2018-11-26T17:19:03.000Z
2021-02-23T08:09:37.000Z
defmodule Mix.Tasks.Export.Attendees.Entries do use Mix.Task def run(_) do Mix.Task.run("app.start") Mix.shell().info("uuid,name,email,entries") Safira.Accounts.list_active_attendees() |> Enum.each(fn a -> csv_io(a) |> Mix.shell().info end) end defp csv_io(attendee) do "#{attendee.id},#{...
22.684211
92
0.663573
38c8b0a8087fd6bfbca0b77ba41feee8dd0aeba6
1,777
ex
Elixir
elixir/lib/homework_web/schema.ex
ztoolson/web-homework
09865a5df66fe8f380dfe0d848bbfae8398be1ef
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schema.ex
ztoolson/web-homework
09865a5df66fe8f380dfe0d848bbfae8398be1ef
[ "MIT" ]
null
null
null
elixir/lib/homework_web/schema.ex
ztoolson/web-homework
09865a5df66fe8f380dfe0d848bbfae8398be1ef
[ "MIT" ]
null
null
null
defmodule HomeworkWeb.Schema do @moduledoc """ Defines the graphql schema for this project. """ use Absinthe.Schema alias HomeworkWeb.Resolvers.MerchantsResolver alias HomeworkWeb.Resolvers.TransactionsResolver alias HomeworkWeb.Resolvers.UsersResolver import_types(HomeworkWeb.Schemas.Types) query d...
24.680556
123
0.659539
38c9155a6af05eade3a0769be699cac9d5f0294d
1,216
ex
Elixir
lib/hl7/2.4/segments/peo.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/peo.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.4/segments/peo.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_4.Segments.PEO do @moduledoc false require Logger alias HL7.V2_4.{DataTypes} use HL7.Segment, fields: [ segment: nil, event_identifiers_used: DataTypes.Ce, event_symptom_diagnosis_code: DataTypes.Ce, event_onset_date_time: DataTypes.Ts, event_exacerbation_dat...
32.864865
53
0.739309
38c94938c8af46150d1f6e8156f37993351213f9
2,924
ex
Elixir
lib/fika/compiler/parser/function_def.ex
fika-lang/fika
15bffc30daed744670bb2c0fba3e674055adac47
[ "Apache-2.0" ]
220
2020-09-12T18:16:29.000Z
2022-03-15T14:39:05.000Z
lib/fika/compiler/parser/function_def.ex
fika-lang/fika
15bffc30daed744670bb2c0fba3e674055adac47
[ "Apache-2.0" ]
60
2020-09-23T14:20:36.000Z
2021-03-08T08:55:57.000Z
lib/fika/compiler/parser/function_def.ex
fika-lang/fika
15bffc30daed744670bb2c0fba3e674055adac47
[ "Apache-2.0" ]
25
2020-09-19T09:06:10.000Z
2021-08-24T23:48:39.000Z
defmodule Fika.Compiler.Parser.FunctionDef do import NimbleParsec alias Fika.Compiler.Parser.{ Common, Types, Helper, Expressions } allow_space = parsec({Common, :allow_space}) require_space = parsec({Common, :require_space}) identifier = parsec({Common, :identifier}) parse_type = parsec...
21.820896
59
0.594391
38c9494373e0df8a319c794aa13f25bb1bbda194
801
exs
Elixir
apps/engine/priv/repo/migrations/20200422044422_create_transactions.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
4
2020-11-30T17:38:57.000Z
2021-01-23T21:29:41.000Z
apps/engine/priv/repo/migrations/20200422044422_create_transactions.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
24
2020-11-30T17:32:48.000Z
2021-02-22T06:25:22.000Z
apps/engine/priv/repo/migrations/20200422044422_create_transactions.exs
omgnetwork/omg-childchain-v2
31cc9cf9e42718fc3b9bd6668f24a627cac80b4f
[ "Apache-2.0" ]
null
null
null
defmodule Engine.Repo.Migrations.CreateTransactions do use Ecto.Migration def change do create table(:transactions) do add(:tx_bytes, :binary) add(:tx_hash, :binary) add(:tx_type, :integer) add(:tx_index, :integer) add(:block_id, references(:blocks)) add(:inserted_at, :utc_...
34.826087
83
0.694132
38c952b3ca76badd52e2c112b86435dfedef75ca
1,979
ex
Elixir
lib/glimesh_web/channels/graph_api_socket.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
lib/glimesh_web/channels/graph_api_socket.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
lib/glimesh_web/channels/graph_api_socket.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.GraphApiSocket do @moduledoc """ Allow for connections to the API socket with either an API token or a client id. Client ID is for read API access only. """ use Phoenix.Socket use Absinthe.Phoenix.Socket, schema: Glimesh.Api.Schema @impl true def connect(%{"client_id" => clie...
29.102941
90
0.625568
38c95fae8a16e7667e0d2df28bfb00106cea04ec
361
ex
Elixir
priv/catalogue/spinner/playground.ex
code-shoily/lotus
d14958956103f2376d51974f40bcc7d7c59c2ad9
[ "MIT" ]
3
2021-09-20T10:34:15.000Z
2021-09-20T16:23:07.000Z
priv/catalogue/spinner/playground.ex
code-shoily/lotus
d14958956103f2376d51974f40bcc7d7c59c2ad9
[ "MIT" ]
null
null
null
priv/catalogue/spinner/playground.ex
code-shoily/lotus
d14958956103f2376d51974f40bcc7d7c59c2ad9
[ "MIT" ]
1
2021-11-23T13:10:27.000Z
2021-11-23T13:10:27.000Z
defmodule Lotus.Catalogue.Spinner.Playground do use Surface.Catalogue.Playground, subject: Lotus.Spinner, catalogue: Lotus.Catalogue, height: "110px", container: {:div, class: "uk-container"} data props, :map, default: %{ id: "spinner" } def render(assigns) do ~F""" <Spinne...
19
47
0.614958
38c969bc6066027c303c542cccf6ac11f42e3982
595
exs
Elixir
mix.exs
tera-insights/angularjs-template-migrate
94ba52781417ed375b7b904fc8ca5481caef4fdb
[ "Apache-2.0" ]
null
null
null
mix.exs
tera-insights/angularjs-template-migrate
94ba52781417ed375b7b904fc8ca5481caef4fdb
[ "Apache-2.0" ]
null
null
null
mix.exs
tera-insights/angularjs-template-migrate
94ba52781417ed375b7b904fc8ca5481caef4fdb
[ "Apache-2.0" ]
null
null
null
defmodule Parser.MixProject do use Mix.Project def project do [ app: :parser, version: "0.1.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_appli...
19.833333
87
0.561345
38c99de6015a98a81a1eec1b03ac78f2d7c1e594
4,285
exs
Elixir
lib/mix/test/mix/utils_test.exs
princemaple/elixir
d894dcca3380b2a37a72e940103ae8eeb42e540e
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/utils_test.exs
princemaple/elixir
d894dcca3380b2a37a72e940103ae8eeb42e540e
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/utils_test.exs
princemaple/elixir
d894dcca3380b2a37a72e940103ae8eeb42e540e
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Mix.Tasks.Cheers do end defmodule Mix.UtilsTest do use MixTest.Case doctest Mix.Utils test "command to module" do assert Mix.Utils.command_to_module("cheers", Mix.Tasks) == {:module, Mix.Tasks.Cheers} assert Mix.Utils.command_to_module("unknown...
34.007937
99
0.65811
38c9a5a71fbe44af1bf915ac5f9c11fda8aac2cc
664
exs
Elixir
apps/ld_graph2/test/ld_graph2_test.exs
Chlorophytus/exsemantica
f1c64cb8ae0543e5a2f015a65071d81d57fa3224
[ "Apache-2.0" ]
1
2021-09-11T15:46:04.000Z
2021-09-11T15:46:04.000Z
apps/ld_graph2/test/ld_graph2_test.exs
Chlorophytus/exsemantica
f1c64cb8ae0543e5a2f015a65071d81d57fa3224
[ "Apache-2.0" ]
4
2021-01-18T00:49:02.000Z
2022-02-23T05:18:37.000Z
apps/ld_graph2/test/ld_graph2_test.exs
Chlorophytus/exsemantica
f1c64cb8ae0543e5a2f015a65071d81d57fa3224
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Roland Metivier # # 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 ...
36.888889
74
0.768072
38c9bc9b42e923bde896a8f18242afc4de1a6e6b
745
ex
Elixir
lib/livebook_web/controllers/auth_controller.ex
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
1,846
2021-04-13T14:46:36.000Z
2021-07-14T20:37:40.000Z
lib/livebook_web/controllers/auth_controller.ex
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
411
2021-07-15T07:41:54.000Z
2022-03-31T21:34:22.000Z
lib/livebook_web/controllers/auth_controller.ex
kianmeng/livebook
8fe8d27d3d46b64d22126d1b97157330b87e611c
[ "Apache-2.0" ]
130
2021-04-13T15:43:55.000Z
2021-07-12T16:57:46.000Z
defmodule LivebookWeb.AuthController do use LivebookWeb, :controller plug :require_unauthenticated_password alias LivebookWeb.AuthPlug defp require_unauthenticated_password(conn, _opts) do if Livebook.Config.auth_mode() != :password or AuthPlug.authenticated?(conn, :password) do redirect_home(conn)...
20.694444
94
0.677852
38c9c29ca24b04c34deafca299b7fd6fff0a2f62
11,600
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/service.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/service.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/service.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...
88.549618
730
0.74819
38c9c35b485cd1809d659f0f976f0cd4d84cb070
8,758
ex
Elixir
lib/elixir/unicode/unicode.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
1
2019-04-29T12:35:51.000Z
2019-04-29T12:35:51.000Z
lib/elixir/unicode/unicode.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
lib/elixir/unicode/unicode.ex
kenichi/elixir
8c27da88c70623cbe516d5310c885943395a82a2
[ "Apache-2.0" ]
null
null
null
# How to update the Unicode files # # 1. Update PropList.txt by copying original as is # 2. Update SpecialCasing.txt by copying original and removing conditional mappings # 3. Update GraphemeBreakProperty.txt by copying original as is # 4. Copy Extended_Pictographic from emoji-data at the end of GraphemeBreakProperty.t...
28.527687
93
0.660881
38c9e50850cb76678146a5823905b010638a8eb8
9,211
ex
Elixir
lib/surface/type_handler.ex
capitalist/surface
f1c75f92513b607c98ba578030a647e0f5d6d11c
[ "MIT" ]
null
null
null
lib/surface/type_handler.ex
capitalist/surface
f1c75f92513b607c98ba578030a647e0f5d6d11c
[ "MIT" ]
null
null
null
lib/surface/type_handler.ex
capitalist/surface
f1c75f92513b607c98ba578030a647e0f5d6d11c
[ "MIT" ]
null
null
null
defmodule Surface.TypeHandler do @moduledoc false alias Surface.IOHelper @type clauses :: list(Macro.t()) @type opts :: keyword(Macro.t()) @callback literal_to_ast_node( type :: atom(), name :: atom(), value :: any(), meta :: Surface.AST.Meta.t() ...
28.784375
93
0.609597
38ca0342010284730bc341ab585458157849249f
12,045
exs
Elixir
test/chankins/change_management/change_management_test.exs
no0x9d/chankins
b4fd37d3145a001e4ebbe86eea91742d5a812858
[ "MIT" ]
null
null
null
test/chankins/change_management/change_management_test.exs
no0x9d/chankins
b4fd37d3145a001e4ebbe86eea91742d5a812858
[ "MIT" ]
null
null
null
test/chankins/change_management/change_management_test.exs
no0x9d/chankins
b4fd37d3145a001e4ebbe86eea91742d5a812858
[ "MIT" ]
null
null
null
defmodule Chankins.ChangeManagementTest do use Chankins.DataCase alias Chankins.ChangeManagement describe "projects" do alias Chankins.ChangeManagement.Project @valid_attrs %{name: "some name"} @update_attrs %{name: "some updated name"} @invalid_attrs %{name: nil} def project_fixture(attrs...
38.359873
255
0.695226
38ca218f9cb2003a84cc216b19da8566b1858f3b
480
ex
Elixir
lib/model/event_info/reward.ex
muziyoshiz/admiral_stats_parser_ex
89b1cf470b4ba823ed8902e415e798180023c156
[ "MIT" ]
null
null
null
lib/model/event_info/reward.ex
muziyoshiz/admiral_stats_parser_ex
89b1cf470b4ba823ed8902e415e798180023c156
[ "MIT" ]
null
null
null
lib/model/event_info/reward.ex
muziyoshiz/admiral_stats_parser_ex
89b1cf470b4ba823ed8902e415e798180023c156
[ "MIT" ]
null
null
null
defmodule AdmiralStatsParser.Model.EventInfo.Reward do @moduledoc """ 海域撃破ボーナス """ defstruct [ # 初回攻略時か2回目以降かを表すフラグ # "FIRST": 初回 # "SECOND": 2回目以降 # 未公開状態の場合は、項目なし :reward_type, # 表示順(0 〜) :data_id, # ボーナスの種類 # "NONE": 未公開状態 # "RESULT_POINT": 戦果 # "STRATEGY_POINT"...
16.551724
54
0.591667
38ca4a88e7594dbe63118f758eec25c574cf3697
75
ex
Elixir
lib/zoo.ex
lupinthe14th/codewars
5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7
[ "MIT" ]
null
null
null
lib/zoo.ex
lupinthe14th/codewars
5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7
[ "MIT" ]
70
2020-01-07T01:21:38.000Z
2021-06-18T02:57:39.000Z
lib/zoo.ex
lupinthe14th/codewars
5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7
[ "MIT" ]
null
null
null
defmodule Zoo do def monkey_count(n) do Enum.to_list(1..n) end end
12.5
24
0.68
38ca932fac0787f517d817077a3042a8d9104e8f
2,860
ex
Elixir
lib/gandalf/authentication/basic.ex
pragmaticivan/gandalf
d6f79489104f3b3544247856bb93679f47ec9e0d
[ "Apache-2.0", "MIT" ]
1
2018-05-01T01:34:56.000Z
2018-05-01T01:34:56.000Z
lib/gandalf/authentication/basic.ex
pragmaticivan/gandalf
d6f79489104f3b3544247856bb93679f47ec9e0d
[ "Apache-2.0", "MIT" ]
null
null
null
lib/gandalf/authentication/basic.ex
pragmaticivan/gandalf
d6f79489104f3b3544247856bb93679f47ec9e0d
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule Gandalf.Authentication.Basic do @moduledoc """ Basic authentication helper module, implements Gandalf.Authentication behaviour. """ alias Gandalf.Utils.Crypt, as: CryptUtil @behaviour Gandalf.Authentication @repo Application.get_env(:gandalf, :repo) @resource_owner Application.get_env(:ganda...
33.255814
88
0.669231
38cb2152241cc4111f251a2c82cefd531b5d3e87
2,748
ex
Elixir
lib/verk/job.ex
dpk07/verk
36bfb8b5592e1eb091906a07d6963a45d5caae0c
[ "MIT" ]
746
2015-12-13T09:55:47.000Z
2022-03-29T21:57:55.000Z
lib/verk/job.ex
dpk07/verk
36bfb8b5592e1eb091906a07d6963a45d5caae0c
[ "MIT" ]
176
2015-12-16T08:05:19.000Z
2021-12-21T03:38:55.000Z
lib/verk/job.ex
dpk07/verk
36bfb8b5592e1eb091906a07d6963a45d5caae0c
[ "MIT" ]
78
2015-12-16T09:09:52.000Z
2021-11-05T15:06:03.000Z
defmodule Verk.Job do @moduledoc """ The Job struct. Set `config :verk, max_retry_count: value` on your config file to set the default max amount of retries on all your `Verk.Job` when none is informed. Defaults at `25`. """ @keys [ error_message: nil, failed_at: nil, retry_count: 0, queue...
26.423077
103
0.603712
38cb5de31eca8f1706ba11e3e26b4376bc7dac83
1,347
ex
Elixir
lib/xgit/util/parse_header.ex
scouten/xgit
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
94
2019-05-28T05:29:54.000Z
2022-02-18T20:03:20.000Z
lib/xgit/util/parse_header.ex
scouten/xgit
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
156
2019-05-26T03:27:24.000Z
2020-10-08T05:44:26.000Z
lib/xgit/util/parse_header.ex
scouten/redo
0e2f849c83cdf39a9249b319d63ff3682c482c2f
[ "Apache-2.0" ]
5
2019-05-28T16:35:55.000Z
2021-06-16T14:25:17.000Z
defmodule Xgit.Util.ParseHeader do @moduledoc false # Internal utility for parsing headers from commit and tag objects. import Xgit.Util.ForceCoverage @doc ~S""" Returns the next header that can be parsed from the charlist `b`. As of this writing, will not parse headers that span multiple lines. This ...
31.325581
91
0.685969
38cb647613c1c1097ccf6e253b15e52f14025d41
6,274
exs
Elixir
portfolio/test/portfolio_web/controllers/user_auth_test.exs
JackMaarek/portfolio
4423e67df870b14228edbc9e4ce3f3cdf1bccc2d
[ "MIT" ]
null
null
null
portfolio/test/portfolio_web/controllers/user_auth_test.exs
JackMaarek/portfolio
4423e67df870b14228edbc9e4ce3f3cdf1bccc2d
[ "MIT" ]
11
2020-04-29T10:28:20.000Z
2020-04-29T11:03:13.000Z
portfolio/test/portfolio_web/controllers/user_auth_test.exs
JackMaarek/portfolio
4423e67df870b14228edbc9e4ce3f3cdf1bccc2d
[ "MIT" ]
null
null
null
defmodule PortfolioWeb.UserAuthTest do use PortfolioWeb.ConnCase, async: true alias Portfolio.Accounts alias PortfolioWeb.UserAuth import Portfolio.AccountsFixtures @remember_me_cookie "_portfolio_web_user_remember_me" setup %{conn: conn} do conn = conn |> Map.replace!(:secret_key_base, P...
36.057471
98
0.675486
38cb6477a3ab4433a56fdc5d9ed9bd5172f095ad
3,007
ex
Elixir
lib/benchmarking.ex
rafapaez/til-elixir
4c1c75ba5a9fad41514b10757f865db4c4b68b42
[ "MIT" ]
1
2017-10-14T14:23:28.000Z
2017-10-14T14:23:28.000Z
lib/benchmarking.ex
rafapaez/til-elixir
4c1c75ba5a9fad41514b10757f865db4c4b68b42
[ "MIT" ]
null
null
null
lib/benchmarking.ex
rafapaez/til-elixir
4c1c75ba5a9fad41514b10757f865db4c4b68b42
[ "MIT" ]
null
null
null
defmodule TILEX.Benchmarking do @moduledoc """ Understanding how to benchmark in Elixir with Beenchee: A library for easy and nice (micro) benchmarking in Elixir """ @doc ~S""" Returns the count of `str_char` items in the given `string`. It uses a Regular Expression (`Regex.scan/3`) as the main algorith...
31.322917
72
0.605587
38cb6b248f9a82944ff9efb21847066ab0ba5017
247
ex
Elixir
lib/compiler/compiler.ex
CodeSteak/Bf2nasm
f3b9090133b66c4902a2f6dcee048d911e4a872b
[ "MIT" ]
8
2017-05-26T15:47:52.000Z
2022-01-04T23:13:57.000Z
lib/compiler/compiler.ex
CodeSteak/Bf2nasm
f3b9090133b66c4902a2f6dcee048d911e4a872b
[ "MIT" ]
null
null
null
lib/compiler/compiler.ex
CodeSteak/Bf2nasm
f3b9090133b66c4902a2f6dcee048d911e4a872b
[ "MIT" ]
null
null
null
defmodule Bf2nasm.Compiler do def compile(ast, %{:target => "x86_64"} = options) do Bf2nasm.Compiler.X86_64.compile(ast, options) end def compile(_ast, %{:target => target}) do throw "Target '#{target}' is not supported." end end
24.7
55
0.672065
38cb71fbaf6af7080421bd74a02b07b8b4d82166
1,300
exs
Elixir
installer/templates/new/mix.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
installer/templates/new/mix.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
installer/templates/new/mix.exs
thegrubbsian/phoenix
a8ff809ddd24a2c4277da5cca122d70709313ac8
[ "MIT" ]
null
null
null
defmodule <%= application_module %>.Mixfile do use Mix.Project def project do [app: :<%= application_name %>, version: "0.0.1",<%= if in_umbrella do %> deps_path: "../../deps", lockfile: "../../mix.lock",<% end %> elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers:...
30.952381
79
0.583846
38cba208299f5bf60046fa841cc9e1e3c1811daf
27,073
ex
Elixir
clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
clients/cloud_billing/lib/google_api/cloud_billing/v1/api/billing_accounts.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "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 ...
46.517182
196
0.634876
38cbaf75132e5c50f402de45b861fc17cb82b3b1
440
ex
Elixir
lib/phoenix/transports/serializer.ex
benjamintanweihao/phoenix
eb4ef03852f447d67cd61355753147c39b520e1f
[ "MIT" ]
null
null
null
lib/phoenix/transports/serializer.ex
benjamintanweihao/phoenix
eb4ef03852f447d67cd61355753147c39b520e1f
[ "MIT" ]
null
null
null
lib/phoenix/transports/serializer.ex
benjamintanweihao/phoenix
eb4ef03852f447d67cd61355753147c39b520e1f
[ "MIT" ]
null
null
null
defmodule Phoenix.Transports.Serializer do use Behaviour @moduledoc """ Defines a Behaviour for Transport `Phoenix.Socket.Message` serializiation. """ @doc "Encodes `Phoenix.Socket.Message` struct to iodata." defcallback encode!(Phoenix.Socket.Message.t) :: {:text | :binary, iodata} @doc "Decodes iodat...
31.428571
76
0.734091
38cbb435ac9580439af6e4a4d0b85b7434a4df8c
611
ex
Elixir
service_checker/lib/service_checker.ex
Cleawing/elixir-projects
6562790191536f317aa0b673c265abb604dd2833
[ "Apache-2.0" ]
null
null
null
service_checker/lib/service_checker.ex
Cleawing/elixir-projects
6562790191536f317aa0b673c265abb604dd2833
[ "Apache-2.0" ]
null
null
null
service_checker/lib/service_checker.ex
Cleawing/elixir-projects
6562790191536f317aa0b673c265abb604dd2833
[ "Apache-2.0" ]
null
null
null
defmodule ServiceChecker do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Define workers and child supervisors to be supervised # work...
30.55
68
0.723404
38cbb4b2094f243241d89079dbd5db62793f49df
3,661
ex
Elixir
lib/plantar/accounts/user.ex
pantanal-labs/plantar
8b119874fbddf50fe23d435462fb3238bb1d6e42
[ "MIT" ]
null
null
null
lib/plantar/accounts/user.ex
pantanal-labs/plantar
8b119874fbddf50fe23d435462fb3238bb1d6e42
[ "MIT" ]
23
2020-07-29T21:03:00.000Z
2021-02-01T18:20:35.000Z
lib/plantar/accounts/user.ex
pantanal-labs/plantar
8b119874fbddf50fe23d435462fb3238bb1d6e42
[ "MIT" ]
null
null
null
defmodule Plantar.Accounts.User do use Ecto.Schema import Ecto.Changeset alias Plantar.Plant.Crop @derive {Inspect, except: [:password]} schema "users" do field :name, :string field :email, :string field :password, :string, virtual: true field :hashed_password, :string field :confirmed_at...
28.601563
112
0.680142
38cc3b47b8351b3a3f202163859a3f2d7938f9e7
1,971
exs
Elixir
test/message_pack_proper_test.exs
mururu/msgpack-elixir
4f0063f5e7b010dcd3e8ca8f1b8650f67ea08dea
[ "MIT" ]
63
2015-01-07T09:43:18.000Z
2022-01-31T21:01:03.000Z
test/message_pack_proper_test.exs
mururu/msgpack-elixir
4f0063f5e7b010dcd3e8ca8f1b8650f67ea08dea
[ "MIT" ]
2
2015-03-26T21:13:54.000Z
2016-08-22T10:24:31.000Z
test/message_pack_proper_test.exs
mururu/msgpack-elixir
4f0063f5e7b010dcd3e8ca8f1b8650f67ea08dea
[ "MIT" ]
14
2015-04-12T01:33:12.000Z
2020-08-17T06:02:43.000Z
defmodule MessagePackProperTest do use ExUnit.Case, async: false use ExCheck property :bijective_packing do for_all term in msgpack do { :ok, bin } = MessagePack.pack(term) { :ok, term2 } = MessagePack.unpack(bin) term == term2 end end property :bijective_str_packing do for_all...
22.918605
71
0.636733
38cc6467636ff041fdbc55fc480c43385ff26ed6
6,182
exs
Elixir
lib/mix/test/mix/tasks/compile_test.exs
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/compile_test.exs
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
1
2015-06-09T15:52:43.000Z
2015-06-09T15:52:43.000Z
lib/mix/test/mix/tasks/compile_test.exs
steven-solomon/elixir
ee83248b8dd78ad67ef1282efc791006e8712d9e
[ "Apache-2.0" ]
null
null
null
Code.require_file("../../test_helper.exs", __DIR__) defmodule Mix.Tasks.CompileTest do use MixTest.Case defmodule CustomCompilers do def project do [compilers: [:elixir, :app, :custom]] end end defmodule DepsApp do def project do [app: :deps_app, version: "0.1.0", deps: [{:ok, "0.1.0"...
30.009709
96
0.602556
38cc949b9513bdf6ea2f6fade1beeb1647553fab
771
ex
Elixir
apps/cronitex_web/lib/cronitex_web/controllers/session_controller.ex
alayers2/cronitex
cf8da9553b8e93b9171f5e9a0f0a08a24a324689
[ "MIT" ]
1
2020-11-05T15:38:53.000Z
2020-11-05T15:38:53.000Z
apps/cronitex_web/lib/cronitex_web/controllers/session_controller.ex
alayers2/cronitex
cf8da9553b8e93b9171f5e9a0f0a08a24a324689
[ "MIT" ]
36
2020-10-24T01:28:42.000Z
2022-02-07T11:11:37.000Z
apps/cronitex_web/lib/cronitex_web/controllers/session_controller.ex
alayers2/cronitex
cf8da9553b8e93b9171f5e9a0f0a08a24a324689
[ "MIT" ]
null
null
null
defmodule CronitexWeb.SessionController do use CronitexWeb, :controller def new(conn, _) do render(conn, "new.html") end def create( conn, %{"session" => %{"username" => username, "password" => pass}} ) do case Cronitex.Accounts.authenticate_by_username_and_pass(username, pass) do {:ok...
24.09375
79
0.608301
38cc98fe79ec84dab5bfb8e79ec3e23f07471a73
2,409
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_output_config.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_output_config.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_output_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...
46.326923
584
0.764633
38ccc116333d6a4fc7f04567ef3c758b2c39b60c
5,244
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/model/unsampled_report.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/analytics/lib/google_api/analytics/v3/model/unsampled_report.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics/lib/google_api/analytics/v3/model/unsampled_report.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...
47.243243
346
0.670671
38cce309143fee6f02c8d046e2c3ef3ef1ea0628
399
ex
Elixir
apps/artemis/lib/artemis/drivers/ibm_cloudant/design_document/create_design_document.ex
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis/lib/artemis/drivers/ibm_cloudant/design_document/create_design_document.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/lib/artemis/drivers/ibm_cloudant/design_document/create_design_document.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule Artemis.Drivers.IBMCloudant.CreateDesignDocument do alias Artemis.Drivers.IBMCloudant def call(host, path, document, body \\ %{}) do {:ok, _} = IBMCloudant.Request.call(%{ body: Jason.encode!(body), host: host, method: :put, path: "#{path}/_design/#{document}" ...
24.9375
61
0.634085
38cd08f9b904bae61a1604f6940ff5d8d4cb8dd8
648
exs
Elixir
test/git_test.exs
lee-dohm/pony-factor
09a57ed03985d72c09fb8e001ef2533c437a4ab0
[ "MIT" ]
null
null
null
test/git_test.exs
lee-dohm/pony-factor
09a57ed03985d72c09fb8e001ef2533c437a4ab0
[ "MIT" ]
1
2016-10-16T22:09:03.000Z
2016-10-16T22:15:44.000Z
test/git_test.exs
lee-dohm/pony-factor
09a57ed03985d72c09fb8e001ef2533c437a4ab0
[ "MIT" ]
null
null
null
alias PonyFactor.Git defmodule PonyFactor.Git.Test do use ExUnit.Case doctest PonyFactor.Git test "getting commit list on empty repo returns an error" do assert {:error, _} = Git.commit_list(Helpers.fixture_path("empty-repo.git")) end test "getting commit list on repo with one commit returns a length o...
34.105263
124
0.731481
38cd1e0ed01f11e15a3ad171c456abe4cc7362e0
1,265
exs
Elixir
test/psk_maker_test.exs
fhunleth/psk_maker
cfcb6270badefea373cce0cb7f7c33a87d86fecd
[ "Apache-2.0" ]
1
2019-03-21T04:19:20.000Z
2019-03-21T04:19:20.000Z
test/psk_maker_test.exs
fhunleth/psk_maker
cfcb6270badefea373cce0cb7f7c33a87d86fecd
[ "Apache-2.0" ]
null
null
null
test/psk_maker_test.exs
fhunleth/psk_maker
cfcb6270badefea373cce0cb7f7c33a87d86fecd
[ "Apache-2.0" ]
null
null
null
defmodule PskMakerTest do use ExUnit.Case doctest PskMaker test "returns error on bad passwords" do assert PskMaker.to_psk( "SSID", "1234567890123456789012345678901234567890123456789012345678901234" ) == {:error, :password_too_long} assert PskMaker.to_psk("SSID", <<1...
35.138889
101
0.664822
38cd39c52683ca430aee96cfbe9a88c1133ce0ed
319
ex
Elixir
lib/actions/delete_account.ex
alexfilatov/near_api
85d92f0ad4fae3a1135adba6a48a1c284870bed8
[ "MIT" ]
7
2021-12-27T19:02:30.000Z
2022-03-30T14:08:46.000Z
lib/actions/delete_account.ex
alexfilatov/near_api
85d92f0ad4fae3a1135adba6a48a1c284870bed8
[ "MIT" ]
4
2021-12-29T21:16:02.000Z
2022-01-01T22:07:17.000Z
lib/actions/delete_account.ex
alexfilatov/near_api
85d92f0ad4fae3a1135adba6a48a1c284870bed8
[ "MIT" ]
1
2022-02-21T18:17:36.000Z
2022-02-21T18:17:36.000Z
defmodule NearApi.Actions.DeleteAccount do @moduledoc """ Transaction Actions DeleteAccount """ @type t :: %__MODULE__{action_code: integer, beneficiary_id: String.t()} use Borsh, schema: [ action_code: :u8, beneficiary_id: :string ] defstruct [:beneficiary_id, action_code: 7] end
18.764706
74
0.680251
38cd3e1b2d094d77e9b6c42d226e6028ea2856dc
970
ex
Elixir
test/support/channel_case.ex
mudphone/ReagentDiffusion
fd2db107c03e726944c30aaa69d972c2026e2f98
[ "MIT" ]
6
2016-05-31T17:41:57.000Z
2016-06-17T03:24:20.000Z
test/support/channel_case.ex
mudphone/ReagentDiffusion
fd2db107c03e726944c30aaa69d972c2026e2f98
[ "MIT" ]
null
null
null
test/support/channel_case.ex
mudphone/ReagentDiffusion
fd2db107c03e726944c30aaa69d972c2026e2f98
[ "MIT" ]
null
null
null
defmodule Diffusion.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot b...
23.095238
68
0.703093
38cd60e687a9a396a7e45cb9da5b83289ed126a2
872
ex
Elixir
lib/crawler/parser/guarder.ex
Gauthamiv/crawler
394b09d4e8f4c15abefc6295c1b3e72fb82d5416
[ "MIT" ]
884
2016-08-08T17:07:02.000Z
2022-03-17T10:11:42.000Z
lib/crawler/parser/guarder.ex
rhnonose/crawler
e0ba256cb4f81e6edfa405febcbc5741ac007f27
[ "MIT" ]
28
2017-08-04T14:11:42.000Z
2021-01-02T22:40:20.000Z
lib/crawler/parser/guarder.ex
rhnonose/crawler
e0ba256cb4f81e6edfa405febcbc5741ac007f27
[ "MIT" ]
86
2017-01-12T15:13:49.000Z
2022-01-12T21:24:52.000Z
defmodule Crawler.Parser.Guarder do @moduledoc """ Detects whether a page is parsable. """ @doc """ Detects whether a page is parsable. ## Examples iex> Guarder.pass?( iex> %{html_tag: "link", content_type: "text/css"} iex> ) true iex> Guarder.pass?( iex> %{html_t...
22.358974
81
0.58945
38cd614f41314452499fb8705ee167f7bfe4c289
3,523
ex
Elixir
farmbot_core/lib/farmbot_core/asset_monitor.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/asset_monitor.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/asset_monitor.ex
adamswsk/farmbot_os
d177d3b74888c1e7bcbf8f8595818708ee97f73b
[ "MIT" ]
null
null
null
defmodule FarmbotCore.AssetMonitor do @moduledoc """ Handles starting a process for every Asset in the repo requiring an AssetWorker implementation. """ use GenServer import FarmbotCore.TimeUtils, only: [compare_datetimes: 2] alias FarmbotCore.Asset.{ Repo, Device, FbosConfig, FirmwareCo...
27.1
88
0.641215
38cd7648a2b07d9741de49ee1b3eb822cf43843e
21,581
exs
Elixir
test/cxs_starter/accounts_test.exs
antp/cxs_starter
349cbd61e561f276b552f95e88e24e01397b8519
[ "MIT" ]
null
null
null
test/cxs_starter/accounts_test.exs
antp/cxs_starter
349cbd61e561f276b552f95e88e24e01397b8519
[ "MIT" ]
null
null
null
test/cxs_starter/accounts_test.exs
antp/cxs_starter
349cbd61e561f276b552f95e88e24e01397b8519
[ "MIT" ]
null
null
null
defmodule CxsStarter.AccountsTest do use CxsStarter.DataCase use Bamboo.Test import CxsStarter.AccountsFactory import Mox alias CxsStarter.Accounts import CxsStarter.AccountsFactory alias CxsStarter.Accounts.{User, UserToken} describe "get_user_by_email/1" do test "does not return the user if the...
32.114583
97
0.655438
38cdf34239e63c8f8ba3ac62542a85062809e676
1,432
ex
Elixir
day10/lib/day10.ex
bjorng/advent-of-code-2020
9d2f4b6cb7f6a2c9a39596a90ce2709c7f1df22a
[ "Apache-2.0" ]
2
2020-12-19T00:40:21.000Z
2021-02-16T04:17:05.000Z
day10/lib/day10.ex
bjorng/advent-of-code-2020
9d2f4b6cb7f6a2c9a39596a90ce2709c7f1df22a
[ "Apache-2.0" ]
null
null
null
day10/lib/day10.ex
bjorng/advent-of-code-2020
9d2f4b6cb7f6a2c9a39596a90ce2709c7f1df22a
[ "Apache-2.0" ]
1
2020-12-14T22:37:13.000Z
2020-12-14T22:37:13.000Z
defmodule Day10 do def part1(input) do all = parse(input) |> Enum.sort built_in = List.last(all) + 3 Enum.sort([0, built_in | all]) |> count_differences(0, 0) end def part2(input) do Process.put(:mem, %{}) parse(input) |> Enum.sort |> count_arrangments end defp count_arr...
24.271186
69
0.539804
38cdf37baad6c97bb872889b3fb6153d878a82ab
762
ex
Elixir
lib/framebuffer/nif.ex
livinginthepast/framebuffer
4c8213ee1cadc73e232792cde05f19dd3a52e375
[ "MIT" ]
null
null
null
lib/framebuffer/nif.ex
livinginthepast/framebuffer
4c8213ee1cadc73e232792cde05f19dd3a52e375
[ "MIT" ]
2
2022-02-11T17:48:38.000Z
2022-02-13T22:59:37.000Z
lib/framebuffer/nif.ex
livinginthepast/framebuffer
4c8213ee1cadc73e232792cde05f19dd3a52e375
[ "MIT" ]
null
null
null
defmodule Framebuffer.NIF do @moduledoc false @on_load :init def init do path = Application.app_dir(:framebuffer, "priv/nif") |> String.to_charlist() :ok = :erlang.load_nif(path, 0) end @spec open(Framebuffer.device_t()) :: {:ok, Framebuffer.t()} | {:error, term()} def open(_device), do: :erlang.n...
29.307692
81
0.627297
38cdf8fdbe8931cb4fe37a9410d7b5b5488d025a
32,864
exs
Elixir
lib/elixir/test/elixir/stream_test.exs
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/stream_test.exs
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/stream_test.exs
Joe-noh/elixir
34bf464bc1a035b6015366463e04f1bf9d2065f3
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule StreamTest do use ExUnit.Case, async: true doctest Stream defmodule Pdict do defstruct [] defimpl Collectable do def into(struct) do {struct, fn _, {:cont, x} -> Process.put(:stream_cont, [x | Process.get(:stream_...
34.162162
111
0.545156
38ce153bbaeae98bbd72fb90d4edfb5c48ae611b
7,452
ex
Elixir
interop/lib/interop/client.ex
aroyer/grpc-elixir
7b0b0b075ba96d4a7338bd9002225e6c611d5654
[ "Apache-2.0" ]
null
null
null
interop/lib/interop/client.ex
aroyer/grpc-elixir
7b0b0b075ba96d4a7338bd9002225e6c611d5654
[ "Apache-2.0" ]
null
null
null
interop/lib/interop/client.ex
aroyer/grpc-elixir
7b0b0b075ba96d4a7338bd9002225e6c611d5654
[ "Apache-2.0" ]
null
null
null
defmodule Interop.Client do def connect(host, port, opts \\ []) do {:ok, ch} = GRPC.Stub.connect(host, port, opts) ch end def empty_unary!(ch) do IO.puts("Run empty_unary!") empty = Grpc.Testing.Empty.new() {:ok, ^empty} = Grpc.Testing.TestService.Stub.empty_call(ch, empty) end def cache...
29.571429
97
0.654589
38ce1ca87eb1ff83a80a69a9b8416b2b10a41c2a
1,776
exs
Elixir
components/notifications-service/server/test/formatters/servicenow.compliance_test.exs
fossabot/automate-1
16910c3ebd75ee0aa25e527bfce3e1378306f42d
[ "Apache-2.0" ]
191
2019-04-16T15:04:53.000Z
2022-03-21T14:10:44.000Z
components/notifications-service/server/test/formatters/servicenow.compliance_test.exs
fossabot/automate-1
16910c3ebd75ee0aa25e527bfce3e1378306f42d
[ "Apache-2.0" ]
4,882
2019-04-16T16:16:01.000Z
2022-03-31T15:39:35.000Z
components/notifications-service/server/test/formatters/servicenow.compliance_test.exs
fossabot/automate-1
16910c3ebd75ee0aa25e527bfce3e1378306f42d
[ "Apache-2.0" ]
114
2019-04-16T15:21:27.000Z
2022-03-26T09:50:08.000Z
defmodule Notifications.Formatters.ServiceNow.Compliance.Test do use ExUnit.Case alias Notifications.Formatters.ServiceNow.Compliance doctest Compliance test "One compliance test failure, with end time and timestamp" do notification = %Notifications.ComplianceFailure{ id: "", compliance_url...
44.4
145
0.733671
38ce2762df8c95329dacb3bf9c46fa158cfb382d
1,477
ex
Elixir
lib/dornach_web/views/error_helpers.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
null
null
null
lib/dornach_web/views/error_helpers.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
4
2020-01-28T10:12:25.000Z
2021-05-10T23:05:12.000Z
lib/dornach_web/views/error_helpers.ex
ream88/jw-dornach
0a25deae13fafd832421bde21bc21035a128ac7d
[ "MIT" ]
null
null
null
defmodule DornachWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(...
32.822222
76
0.670278
38ce3e830431ca4d0b6071f4aaa69cbec84ffd7f
328
exs
Elixir
test/aocCommon_test.exs
selfsimilar/aoc2019
5da1bf56d7b62e794a0811283d6b52bb456c0894
[ "Unlicense" ]
null
null
null
test/aocCommon_test.exs
selfsimilar/aoc2019
5da1bf56d7b62e794a0811283d6b52bb456c0894
[ "Unlicense" ]
null
null
null
test/aocCommon_test.exs
selfsimilar/aoc2019
5da1bf56d7b62e794a0811283d6b52bb456c0894
[ "Unlicense" ]
null
null
null
defmodule AocCommonTest do use ExUnit.Case doctest AocCommon test "reads puzzle input" do assert AocCommon.readPuzzleInputFile("test/example.txt") == "1,2,3,4,5,99" end test "make int instruction list from string" do assert AocCommon.createIntInstructionList("1,2,3,4,5,99") == [1, 2, 3, 4, 5, 99] ...
25.230769
84
0.70122
38ce4cddf472c827a37922dd73ab5536cc5513f6
3,742
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_form_field.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_form_field.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_page_form_field.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...
42.522727
243
0.748263
38ce501716ec90ef7d47339d08ede1e0a278259f
1,209
exs
Elixir
address_validator/apps/address_validator_api/config/config.exs
aikssen/address_hackaton
38f608d23705052776ce26f38ba67a6c1ef52ab2
[ "MIT" ]
null
null
null
address_validator/apps/address_validator_api/config/config.exs
aikssen/address_hackaton
38f608d23705052776ce26f38ba67a6c1ef52ab2
[ "MIT" ]
null
null
null
address_validator/apps/address_validator_api/config/config.exs
aikssen/address_hackaton
38f608d23705052776ce26f38ba67a6c1ef52ab2
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
37.78125
73
0.766749
38ceb3153a54fa51707ccf0bfee9d3f43bdec7c3
4,429
exs
Elixir
lib/mix/test/mix/rebar_test.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2015-02-23T00:01:48.000Z
2015-02-23T00:01:48.000Z
lib/mix/test/mix/rebar_test.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/rebar_test.exs
jbcrail/elixir
f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb
[ "Apache-2.0" ]
1
2020-12-07T08:04:16.000Z
2020-12-07T08:04:16.000Z
Code.require_file "../test_helper.exs", __DIR__ defmodule Mix.RebarTest do use MixTest.Case # Have our own path implementation that bypasses some # Path validation checks. We use this just for testing. defmodule MyPath do @behaviour Mix.SCM for {name, arity} <- Mix.SCM.Path.__info__(:functions) do ...
33.300752
98
0.625649
38ceba37bff7a8e2220d0c323e6574f1771cda09
84
exs
Elixir
config/config.exs
hexedpackets/trot_example
c9d7eca2cdc04dc80f7b62109b142d83c4d12ef4
[ "MIT" ]
1
2020-01-12T04:22:13.000Z
2020-01-12T04:22:13.000Z
config/config.exs
hexedpackets/trot_example
c9d7eca2cdc04dc80f7b62109b142d83c4d12ef4
[ "MIT" ]
1
2018-01-25T16:24:54.000Z
2018-02-05T18:55:43.000Z
config/config.exs
hexedpackets/trot_example
c9d7eca2cdc04dc80f7b62109b142d83c4d12ef4
[ "MIT" ]
null
null
null
use Mix.Config config :trot, :port, 4000 config :trot, :router, TrotExample.Router
16.8
41
0.75
38ceda01fe0ba517e0b06b02782e8b18f78aec9f
4,833
ex
Elixir
web/controllers/api/v1/message_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
38
2016-10-21T08:26:15.000Z
2021-03-19T23:10:40.000Z
web/controllers/api/v1/message_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
32
2017-02-19T08:57:35.000Z
2020-02-05T13:15:11.000Z
web/controllers/api/v1/message_controller.ex
zmstone/kastlex
3478bc230f08bde99e768067787b0ef3f8e1c026
[ "Apache-2.0" ]
6
2017-11-24T16:02:20.000Z
2022-02-22T07:44:36.000Z
defmodule Kastlex.API.V1.MessageController do require Logger use Kastlex.Web, :controller plug Kastlex.Plug.EnsurePermissions def produce(conn, %{"topic" => topic, "partition" => partition} = params) do {partition, _} = Integer.parse(partition) key = Map.get(params, "key", "") {value, conn} = rea...
36.613636
113
0.61825
38cf03b3d1417ecf6aeac0e3b4decf0d6ee470cf
82
exs
Elixir
test/views/page_view_test.exs
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
test/views/page_view_test.exs
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
test/views/page_view_test.exs
mfunaro/handiman-api
66357caa55c2b1fb696471c04e602b5546879cf4
[ "Unlicense", "MIT" ]
null
null
null
defmodule HandimanApi.PageViewTest do use HandimanApi.ConnCase, async: true end
20.5
39
0.829268
38cf7b48a90e6c235258344c47fed90fd7d4f099
1,270
exs
Elixir
test/xdr/ledger_entries/liabilities_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
test/xdr/ledger_entries/liabilities_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
test/xdr/ledger_entries/liabilities_test.exs
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
null
null
null
defmodule StellarBase.XDR.LiabilitiesTest do use ExUnit.Case alias StellarBase.XDR.{Int64, Liabilities} describe "Liabilities" do setup do buying = Int64.new(20) selling = Int64.new(10) %{ buying: buying, selling: selling, liabilities: Liabilities.new(buying, selli...
28.863636
89
0.638583
38cfae3bf834a484023a371462dfe1c634ed9c55
1,140
exs
Elixir
priv/template/config/dev.exs
bitgamma/phoenix
c06fc0fa03a95f2c863c49711da58fedfa56c374
[ "MIT" ]
null
null
null
priv/template/config/dev.exs
bitgamma/phoenix
c06fc0fa03a95f2c863c49711da58fedfa56c374
[ "MIT" ]
null
null
null
priv/template/config/dev.exs
bitgamma/phoenix
c06fc0fa03a95f2c863c49711da58fedfa56c374
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :<%= application_name %>, <%= application_module...
39.310345
112
0.705263
38cfc71722900d8015b4a33efec3a43b4812082f
1,367
ex
Elixir
exercism/elixir/protein-translation/lib/protein_translation.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
exercism/elixir/protein-translation/lib/protein_translation.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
exercism/elixir/protein-translation/lib/protein_translation.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
defmodule ProteinTranslation do @codon2protein %{ "UGU" => "Cysteine", "UGC" => "Cysteine", "UUA" => "Leucine", "UUG" => "Leucine", "AUG" => "Methionine", "UUU" => "Phenylalanine", "UUC" => "Phenylalanine", "UCU" => "Serine", "UCC" => "Serine", "UCA" => "Serine", "UCG" => "...
23.982456
79
0.53109
38cfcbfcfd7f39af00d9bd9b1cf5a43827c7eab7
1,102
exs
Elixir
mix.exs
Iluminai/ecto_enum
82c6b730b776a2732980adcaafbdb3f5832c9d28
[ "MIT" ]
null
null
null
mix.exs
Iluminai/ecto_enum
82c6b730b776a2732980adcaafbdb3f5832c9d28
[ "MIT" ]
null
null
null
mix.exs
Iluminai/ecto_enum
82c6b730b776a2732980adcaafbdb3f5832c9d28
[ "MIT" ]
null
null
null
defmodule EctoEnum.Mixfile do use Mix.Project @version "1.5.0" def project do [ app: :ecto_enum, version: @version, elixir: "~> 1.2", deps: deps(), description: "Ecto extension to support enums in models", test_paths: test_paths(Mix.env()), package: package(), ...
23.446809
92
0.549909
38cfdd392460cb3bd043306fcaa00070178edf5c
1,465
ex
Elixir
lib/solana/ix.ex
dcrck/solana-elixir
3ab8531129d303b3951a292ce2813ebcb9ab2cb3
[ "MIT" ]
15
2021-11-16T23:56:03.000Z
2022-02-19T08:48:30.000Z
lib/solana/ix.ex
dcrck/solana-elixir
3ab8531129d303b3951a292ce2813ebcb9ab2cb3
[ "MIT" ]
null
null
null
lib/solana/ix.ex
dcrck/solana-elixir
3ab8531129d303b3951a292ce2813ebcb9ab2cb3
[ "MIT" ]
1
2021-11-29T06:33:51.000Z
2021-11-29T06:33:51.000Z
defmodule Solana.Instruction do @moduledoc """ Functions, types, and structures related to Solana [instructions](https://docs.solana.com/developing/programming-model/transactions#instructions). """ alias Solana.Account @typedoc """ All the details needed to encode an instruction. """ @type t :: %__MO...
30.520833
97
0.663481
38cfe0219a34a75d6a9cbffcda74e09f5737cb7e
3,159
ex
Elixir
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/leaderboard_configuration.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...
38.060241
182
0.710035
38d0269f97d52336b7fb664d9ad10ca3e6365846
196
ex
Elixir
elixir/elixir-otp-primes/lib/primes.ex
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
1
2018-12-11T14:09:14.000Z
2018-12-11T14:09:14.000Z
elixir/elixir-otp-primes/lib/primes.ex
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
elixir/elixir-otp-primes/lib/primes.ex
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
defmodule Primes do @moduledoc """ Documentation for Primes. """ @doc """ Hello world. ## Examples iex> Primes.hello() :world """ def hello do :world end end
10.315789
27
0.556122
38d041e30d0565d7e676e42a105ac258d36cbfb6
1,792
ex
Elixir
lib/animu/kiln/golemdb.ex
elarkham/animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
1
2018-01-02T06:59:08.000Z
2018-01-02T06:59:08.000Z
lib/animu/kiln/golemdb.ex
elarkham/Animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
null
null
null
lib/animu/kiln/golemdb.ex
elarkham/Animu
0f0c7b0b34168e69255943bdede60e03df057a44
[ "MIT" ]
null
null
null
defmodule Animu.Kiln.GolemDB do use Ecto.Schema alias Kiln.Golem alias Animu.Ecto.Type alias Animu.Util.Schema alias __MODULE__ @primary_key {:id, :binary_id, autogenerate: false} schema "golem" do field :label, Type.Any field :status_type, Type.Atom field :status_meta, Type.Any fie...
21.082353
66
0.657924
38d056b7c0209cdc46a9a20a74746f1c11babf97
96
exs
Elixir
test/twitch_discord_connector_test.exs
aeturnum/twitch_discord_connector
b965ba1164540c92a925d2bd08e3fa299dfd457a
[ "MIT" ]
null
null
null
test/twitch_discord_connector_test.exs
aeturnum/twitch_discord_connector
b965ba1164540c92a925d2bd08e3fa299dfd457a
[ "MIT" ]
null
null
null
test/twitch_discord_connector_test.exs
aeturnum/twitch_discord_connector
b965ba1164540c92a925d2bd08e3fa299dfd457a
[ "MIT" ]
null
null
null
defmodule TwitchDiscordConnectorTest do use ExUnit.Case doctest TwitchDiscordConnector end
16
39
0.854167