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
7a31917f5f306e69759b7d2426217db40bab628c
787
ex
Elixir
lib/adyen_checkout_ex/model/pay_pal_details.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
1
2021-05-30T20:45:10.000Z
2021-05-30T20:45:10.000Z
lib/adyen_checkout_ex/model/pay_pal_details.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
null
null
null
lib/adyen_checkout_ex/model/pay_pal_details.ex
rsystem-se/adyen_checkout_ex
4210f1c7150152e81f350dc6ca55aeb19665b85b
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule AdyenCheckoutEx.Model.PayPalDetails do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"orderID", :"payerID", :"recur...
21.861111
91
0.64803
7a31948610e8784f3d69d3b8992b3722582b3228
178
exs
Elixir
priv/repo/migrations/20180621234755_add_meta_title_to_products.exs
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
1
2019-04-01T19:14:16.000Z
2019-04-01T19:14:16.000Z
priv/repo/migrations/20180621234755_add_meta_title_to_products.exs
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
null
null
null
priv/repo/migrations/20180621234755_add_meta_title_to_products.exs
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
1
2019-03-24T01:50:48.000Z
2019-03-24T01:50:48.000Z
defmodule Excommerce.Repo.Migrations.AddMetaTitleToProducts do use Ecto.Migration def change do alter table(:products) do add :meta_title, :text end end end
17.8
62
0.730337
7a319ccdda03393028ef41ea8f8bff2f9b15e295
2,998
ex
Elixir
lib/ex_rabbit_m_q/state.ex
dennisxtria/exrabbitmq
50705c5f42daedd6ce465662dd752f8c2f6895b2
[ "MIT" ]
null
null
null
lib/ex_rabbit_m_q/state.ex
dennisxtria/exrabbitmq
50705c5f42daedd6ce465662dd752f8c2f6895b2
[ "MIT" ]
null
null
null
lib/ex_rabbit_m_q/state.ex
dennisxtria/exrabbitmq
50705c5f42daedd6ce465662dd752f8c2f6895b2
[ "MIT" ]
null
null
null
defmodule ExRabbitMQ.State do @moduledoc """ Provides functions for saving or getting the state such as the configuration, connection and channel information of a `ExRabbitMQ.Consumer` or `ExRabbitMQ.Producer` process in its process dictionary. """ alias ExRabbitMQ.Config.Connection, as: ConnectionConfig a...
32.236559
119
0.731821
7a31aedaa0a39a88f5b050ef7f28000ca217eb85
2,584
ex
Elixir
lib/game/channels.ex
the3hm/seraph_mud
c098a22184a0a6bcbd56cacf7b0f176dd173260d
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/game/channels.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/game/channels.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Game.Channels do @moduledoc """ Agent for keeping track of channels in the system """ use GenServer alias Data.Channel alias Data.Repo @key :channels @doc false def start_link() do GenServer.start_link(__MODULE__, [], name: __MODULE__) end def get(channel) do _fetch_from_cac...
18.861314
79
0.591718
7a31bf9312a468ee6c2015d84cbec5466ebee2df
1,104
ex
Elixir
test/support/channel_case.ex
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
test/support/channel_case.ex
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
test/support/channel_case.ex
Baradoy/topshelf
bd3d5f96b3d3840990231cf244cc5f14bd807997
[ "MIT" ]
null
null
null
defmodule TopshelfWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts ...
29.837838
89
0.738225
7a31c2345a19cf63888d511e15925da80c05ec5b
1,212
ex
Elixir
web/views/common_helpers.ex
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
6
2017-05-12T04:20:09.000Z
2020-11-07T02:00:56.000Z
web/views/common_helpers.ex
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
null
null
null
web/views/common_helpers.ex
bagilevi/uptom
50894abb8f7bd052e12c37155b5c33450abcc9bd
[ "MIT" ]
2
2020-05-18T08:06:22.000Z
2020-12-19T14:24:40.000Z
defmodule Uptom.CommonHelpers do use Phoenix.HTML import Uptom.ErrorHelpers def back_button(href, label \\ "Back") do content_tag(:a, href: href, class: "btn btn-flat") do html_escape([back_icon, label]) end end def back_icon do content_tag(:i, "fast_rewind", class: "material-icons left")...
22.867925
97
0.60066
7a31d70b498640d0cfa0a2ff899669e355163b84
2,937
ex
Elixir
lib/app_api/fetchers/cart_fetcher.ex
turbo-play/phoenix-services
9d3318c6b5d5ce6dead441758fc86ec34892b0f6
[ "Apache-2.0" ]
2
2018-07-05T15:13:12.000Z
2021-12-16T08:58:56.000Z
lib/app_api/fetchers/cart_fetcher.ex
turbo-play/phoenix-services
9d3318c6b5d5ce6dead441758fc86ec34892b0f6
[ "Apache-2.0" ]
null
null
null
lib/app_api/fetchers/cart_fetcher.ex
turbo-play/phoenix-services
9d3318c6b5d5ce6dead441758fc86ec34892b0f6
[ "Apache-2.0" ]
2
2018-08-13T21:37:00.000Z
2021-11-10T04:08:26.000Z
defmodule AppApi.CartFetcher do @moduledoc """ Handles the retrieval and formatting of users from the local storage. """ alias AppApi.{User, Repo, Game, Cart, GameFetcher, CartItem, Blockchain} require Logger def get(id) do Cart |> Repo.get(id) end def all() do Cart |> Repo.all end def al...
31.244681
120
0.606401
7a3209d2b711a43b0aa88abd7e156324144ec1d9
1,977
ex
Elixir
clients/blogger/lib/google_api/blogger/v3/model/post_per_user_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/blogger/lib/google_api/blogger/v3/model/post_per_user_info.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/blogger/lib/google_api/blogger/v3/model/post_per_user_info.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...
33.508475
129
0.686394
7a321815586de3278b1a63bfe6fb36c383e997f5
927
ex
Elixir
debian/postrm.ex
axia-wish/ctl
e40a18213431124ddce65baa5b23444776fd5c5d
[ "MIT" ]
25
2019-07-17T20:39:04.000Z
2022-01-29T04:27:14.000Z
debian/postrm.ex
axia-wish/ctl
e40a18213431124ddce65baa5b23444776fd5c5d
[ "MIT" ]
44
2019-07-17T19:27:08.000Z
2021-03-23T23:24:26.000Z
debian/postrm.ex
axia-wish/ctl
e40a18213431124ddce65baa5b23444776fd5c5d
[ "MIT" ]
8
2020-02-06T04:14:35.000Z
2022-02-25T00:52:19.000Z
#!/bin/sh # postrm script for ctl # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install' # ...
24.394737
78
0.626753
7a323b80ab7ad1e520bb5af6b36779d6ce724171
1,886
exs
Elixir
test/urepo/repo_test.exs
ryoung786/urepo
a8d3339fbb978afc031339678c897f48dc1cfd9e
[ "Apache-2.0" ]
null
null
null
test/urepo/repo_test.exs
ryoung786/urepo
a8d3339fbb978afc031339678c897f48dc1cfd9e
[ "Apache-2.0" ]
null
null
null
test/urepo/repo_test.exs
ryoung786/urepo
a8d3339fbb978afc031339678c897f48dc1cfd9e
[ "Apache-2.0" ]
null
null
null
defmodule Urepo.RepoTest do use ExUnit.Case import Urepo.Fixtures alias Urepo.Repo.Release alias Urepo.Store.Memory, as: Store @subject Urepo.Repo doctest @subject setup do start_supervised!(Store) Application.put_env(:urepo, :store, {Store, []}) Application.ensure_all_started(:urepo) ...
29.015385
95
0.636267
7a3266c96a583fefa44a040d7dd4b05e0ac517ac
1,751
ex
Elixir
web/controllers/user_controller.ex
wlodarczykj/yacht
31a4199555a1e5e14b3cbed8a0d960477f4a5bd0
[ "Apache-2.0" ]
null
null
null
web/controllers/user_controller.ex
wlodarczykj/yacht
31a4199555a1e5e14b3cbed8a0d960477f4a5bd0
[ "Apache-2.0" ]
null
null
null
web/controllers/user_controller.ex
wlodarczykj/yacht
31a4199555a1e5e14b3cbed8a0d960477f4a5bd0
[ "Apache-2.0" ]
null
null
null
defmodule Yacht.UserController do use Yacht.Web, :controller alias Yacht.User def index(conn, _params) do users = Repo.all(User) render(conn, "index.json", users: users) end def new(conn, _params) do changeset = User.changeset(%User{}) render(conn, "new.html", changeset: changeset) end ...
26.530303
67
0.608224
7a3273d51829101156a869e7cee24894a2994ef1
361
exs
Elixir
priv/repo/seeds.exs
JacquiManzi/codebeam_metaprogramming_2021
297e944b6436b3247c9a9075061f3454bd084ac4
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
JacquiManzi/codebeam_metaprogramming_2021
297e944b6436b3247c9a9075061f3454bd084ac4
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
JacquiManzi/codebeam_metaprogramming_2021
297e944b6436b3247c9a9075061f3454bd084ac4
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Codebeam2021.Repo.insert!(%Codebeam2021.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as...
30.083333
61
0.714681
7a327821a794f4c503c4c1a36ceea2b8e9e67509
1,064
ex
Elixir
lib/mastani_server/application.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
lib/mastani_server/application.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
lib/mastani_server/application.ex
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Application do use Application # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the Ecto repositor...
33.25
91
0.725564
7a32850ea90fc9e805ebc2b874931d93dbab7097
1,737
ex
Elixir
Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/api/addon_status.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
4
2018-09-29T03:43:15.000Z
2021-04-01T18:30:46.000Z
Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/api/addon_status.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/api/addon_status.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
# NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule Microsoft.Azure.Management.Preview.Addons.Api.AddonStatus do @moduledoc """ API calls for all endpoints tagged `AddonStatus`. """ alias M...
43.425
194
0.754174
7a32bae1637cb58e0f887af09f5b81d7f0f8a1ee
129
ex
Elixir
lib/mockatron_web/views/user_view.ex
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
1
2018-12-13T16:52:22.000Z
2018-12-13T16:52:22.000Z
lib/mockatron_web/views/user_view.ex
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
28
2019-07-04T08:42:33.000Z
2022-03-28T08:24:07.000Z
lib/mockatron_web/views/user_view.ex
rzcastilho/mockatron
237b2bad3e1bf167a6ebac218c7a46b74a9063ee
[ "MIT" ]
null
null
null
defmodule MockatronWeb.UserView do use MockatronWeb, :view def render("jwt.json", %{jwt: jwt}) do %{jwt: jwt} end end
16.125
40
0.666667
7a32dd6fd3f5ced96478d5dbbe09e3a49c7ec198
5,333
ex
Elixir
lib/trie/builder.ex
aeternity/merkle_patricia_tree
375385956f765edbc8899c6dc0cf8ecdfb9ec355
[ "MIT" ]
8
2018-04-25T18:15:53.000Z
2021-02-09T20:42:46.000Z
lib/trie/builder.ex
aeternity/merkle_patricia_tree
375385956f765edbc8899c6dc0cf8ecdfb9ec355
[ "MIT" ]
9
2018-06-19T09:42:46.000Z
2018-12-12T00:13:58.000Z
lib/trie/builder.ex
aeternity/merkle_patricia_tree
375385956f765edbc8899c6dc0cf8ecdfb9ec355
[ "MIT" ]
7
2018-07-30T22:05:19.000Z
2022-03-06T09:22:51.000Z
defmodule MerklePatriciaTree.Trie.Builder do @moduledoc """ Builder is responsible for adding keys to an existing merkle trie. To add a key, we need to make a delta to our trie that ends up as the canonical form of the given tree as defined in http://gavwood.com/Paper.pdf. Note: this algorithm is non-obvio...
34.62987
105
0.657791
7a32e42122893308b6e9a452706b095f6425e456
662
exs
Elixir
bench/encode_fixed_size_binary.exs
xinz/crockford_base32
28e8e231a10db82ba8fd7cb3c93ccd87c739f331
[ "MIT" ]
null
null
null
bench/encode_fixed_size_binary.exs
xinz/crockford_base32
28e8e231a10db82ba8fd7cb3c93ccd87c739f331
[ "MIT" ]
null
null
null
bench/encode_fixed_size_binary.exs
xinz/crockford_base32
28e8e231a10db82ba8fd7cb3c93ccd87c739f331
[ "MIT" ]
null
null
null
defmodule Bench.Bits8 do use CrockfordBase32, bits_size: 8 end defmodule Bench.Bits128 do use CrockfordBase32, bits_size: 128 end Benchee.run( %{ "common encode small string" => fn -> CrockfordBase32.encode("b") end, "fix size to encode small string" => fn -> Bench.Bits8.encode("b") end }, print: [f...
25.461538
101
0.690332
7a32eab91c59152b3b2fc29412c260fda80385c5
3,783
exs
Elixir
test/nz_bank_account_validator_test.exs
fsanggang/nz_bank_account_validator
ad6fb0a654a85a72fc98fa6a00376c290224a9db
[ "MIT" ]
null
null
null
test/nz_bank_account_validator_test.exs
fsanggang/nz_bank_account_validator
ad6fb0a654a85a72fc98fa6a00376c290224a9db
[ "MIT" ]
null
null
null
test/nz_bank_account_validator_test.exs
fsanggang/nz_bank_account_validator
ad6fb0a654a85a72fc98fa6a00376c290224a9db
[ "MIT" ]
null
null
null
defmodule NzBankAccountValidatorTest do use ExUnit.Case doctest NzBankAccountValidator test "identifies valid bank account number (:sum, :a)" do assert NzBankAccountValidator.is_valid?("01-902-0068389-00") == { :ok, true } end test "identifies valid bank account number (:sum, :b)" do assert NzBankAc...
40.677419
109
0.717156
7a32eeed34cd29a79d33a58d514ef7b2119bb89a
68
exs
Elixir
test/test_helper.exs
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
test/test_helper.exs
strofcon/scipse
f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb
[ "Apache-2.0" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(Scipse.Repo, :manual)
13.6
52
0.779412
7a333c1a98ea073ad4449937c67d39bc805cf5d4
2,795
ex
Elixir
lib/backports.ex
leifg/backports
ff1f4a3ed8b99a03f98dce11024611567a3876b6
[ "MIT" ]
3
2017-06-19T12:45:35.000Z
2018-04-02T02:56:56.000Z
lib/backports.ex
leifg/backports
ff1f4a3ed8b99a03f98dce11024611567a3876b6
[ "MIT" ]
null
null
null
lib/backports.ex
leifg/backports
ff1f4a3ed8b99a03f98dce11024611567a3876b6
[ "MIT" ]
null
null
null
defmodule Backports do alias Backports.Functions defmacro __using__(_) do quote do Module.register_attribute __MODULE__, :functions, accumulate: true Module.register_attribute __MODULE__, :backport, accumulate: true @on_definition {Backports, :on_definition} @before_compile {Backports,...
27.673267
116
0.686583
7a334d0126f496da6f9391d5a39acc1881d0f1be
1,194
ex
Elixir
osiris/lib/map.ex
silverp1/osiris
606e1473cac425ac4c74c1b7e2da93bbd79dcf80
[ "MIT" ]
null
null
null
osiris/lib/map.ex
silverp1/osiris
606e1473cac425ac4c74c1b7e2da93bbd79dcf80
[ "MIT" ]
null
null
null
osiris/lib/map.ex
silverp1/osiris
606e1473cac425ac4c74c1b7e2da93bbd79dcf80
[ "MIT" ]
null
null
null
defmodule Osiris.Map do # Module containing a variety of map helpers require Logger def selective_reduce(keys, map) do keys |> Enum.map(fn key -> {key, map[key]} end) |> Enum.into(%{}) end def filter_nil(map) do keys = Map.keys(map) keys |> Enum.map(fn key -> if is_ni...
18.65625
48
0.551089
7a335b96cac14160e5ca4f6928f0cc317acc716b
5,565
exs
Elixir
test/changelog/notifier_test.exs
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
test/changelog/notifier_test.exs
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
test/changelog/notifier_test.exs
theafricanengineer/changelog.com
4954d0df516c0a325667ec6c1fbbf02d68c9b953
[ "MIT" ]
null
null
null
defmodule Changelog.NotifierTest do use Changelog.DataCase use Bamboo.Test import Mock alias Changelog.{Notifier, Slack} alias ChangelogWeb.Email describe "notify with news item comment" do setup_with_mocks([ {Slack.Client, [], [message: fn(_, _) -> true end]} ]) do :ok end t...
37.348993
103
0.695597
7a337bb4fde33f420871e1b58deca42bdea44ffa
2,795
ex
Elixir
lib/cli/cli_timeline.ex
carlogilmar/le_toille_learning_manager
00c5679bed5fb9ecf43a71c5d355610db9792bbf
[ "MIT" ]
1
2020-01-19T01:32:05.000Z
2020-01-19T01:32:05.000Z
lib/cli/cli_timeline.ex
carlogilmar/le_toille_learning_manager
00c5679bed5fb9ecf43a71c5d355610db9792bbf
[ "MIT" ]
17
2018-09-18T04:12:03.000Z
2018-09-21T06:27:45.000Z
lib/cli/cli_timeline.ex
carlogilmar/le_toille_learning_manager
00c5679bed5fb9ecf43a71c5d355610db9792bbf
[ "MIT" ]
1
2018-09-21T01:08:38.000Z
2018-09-21T01:08:38.000Z
defmodule Etoile.Cli.CliTimeline do alias Etoile.Parser alias Etoile.CalendarUtil alias Etoile.TimelineManager alias Etoile.TagManager alias Etoile.Cli.CliWorker def cli( user ), do: execute_command( user ) def display_menu( user ) do Parser.print_with_color "-----------------------------------------...
35.379747
86
0.609302
7a33812849fa6add3c1d2e4110552b11921ff227
1,069
exs
Elixir
clients/elixir/generated/mix.exs
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/mix.exs
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/mix.exs
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
defmodule SwaggyJenkins.Mixfile do use Mix.Project def project do [app: :swaggy_jenkins, version: "1.1.2-pre.0", elixir: "~> 1.6", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, package: package(), description: "Jenkins API clients generated from Swagger / Op...
22.744681
88
0.605239
7a3384b2e7e86646b8de59df5112fdc2771d17ee
171
ex
Elixir
lib/algae/state/applicative.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
191
2016-08-22T17:34:45.000Z
2019-05-28T19:02:39.000Z
lib/algae/state/applicative.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
35
2016-08-30T20:56:22.000Z
2019-05-02T17:32:31.000Z
lib/algae/state/applicative.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
10
2016-08-30T18:41:54.000Z
2019-02-14T14:14:55.000Z
import TypeClass definst Witchcraft.Applicative, for: Algae.State do @force_type_instance true def of(_, value), do: %Algae.State{runner: fn x -> {value, x} end} end
24.428571
68
0.730994
7a338fbfda630e3ee856e1f49306d8bbdaae6357
141
ex
Elixir
lib/squadster/schedules/services/delete_lesson.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/schedules/services/delete_lesson.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/schedules/services/delete_lesson.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
defmodule Squadster.Schedules.Services.DeleteLesson do alias Squadster.Repo def call(lesson) do lesson |> Repo.delete end end
15.666667
54
0.737589
7a33d2c92e1711eaa93bf1f972ea8d53bdedb7e9
1,291
ex
Elixir
apps/ewallet/lib/ewallet/permissions/bouncer/scopes/activity_log_scope.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/ewallet/lib/ewallet/permissions/bouncer/scopes/activity_log_scope.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/ewallet/lib/ewallet/permissions/bouncer/scopes/activity_log_scope.ex
AndonMitev/EWallet
898cde38933d6f134734528b3e594eedf5fa50f3
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
# Copyright 2018-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 ...
32.275
89
0.751356
7a342127599226748d2daa54b251f164233d86c1
2,752
ex
Elixir
lib/interceptor/hook.ex
naramore/janus
90f7324c5ed667b803472dc89ee8e84d82c1d6d2
[ "MIT" ]
null
null
null
lib/interceptor/hook.ex
naramore/janus
90f7324c5ed667b803472dc89ee8e84d82c1d6d2
[ "MIT" ]
null
null
null
lib/interceptor/hook.ex
naramore/janus
90f7324c5ed667b803472dc89ee8e84d82c1d6d2
[ "MIT" ]
null
null
null
defmodule Interceptor.Hook do @moduledoc false alias Interceptor.Invokable @type t :: module | {:pre_hook, hook_fun} | {:post_hook, hook_fun} | %{ optional(:pre_hook) => hook_fun, optional(:post_hook) => hook_fun } @type hook_fun...
32
98
0.654433
7a344ccdf19f2034726dacd2902ae9be738ac3ca
883
exs
Elixir
bench/line_encoder.exs
coder-from-hell/instream
f062e924b74a403e0f41b5374d9ed0e00ae59507
[ "Apache-2.0" ]
204
2015-06-04T06:38:57.000Z
2022-01-30T08:56:33.000Z
bench/line_encoder.exs
coder-from-hell/instream
f062e924b74a403e0f41b5374d9ed0e00ae59507
[ "Apache-2.0" ]
71
2015-05-24T02:08:28.000Z
2022-01-10T17:13:27.000Z
bench/line_encoder.exs
coder-from-hell/instream
f062e924b74a403e0f41b5374d9ed0e00ae59507
[ "Apache-2.0" ]
41
2015-09-05T21:24:04.000Z
2021-11-10T02:52:48.000Z
alias Instream.Encoder.Line point_complete = %{ measurement: "disk_free", fields: %{ value: 442_221_834_240 }, tags: %{ hostname: "server01" }, timestamp: 1_435_362_189_575_692_182 } point_escaping = %{ measurement: ~S|"measurement with quotes"|, tags: %{ "tag key with spaces" => ~S|tag,va...
18.787234
70
0.621744
7a3454b296aa7f8ee55ae6667012b64768cb7d51
1,712
exs
Elixir
integration_test/cases/browser/file_test.exs
activeprospect/wallaby
efe49026813e56242a318eab2f94469c480d4a5d
[ "MIT" ]
null
null
null
integration_test/cases/browser/file_test.exs
activeprospect/wallaby
efe49026813e56242a318eab2f94469c480d4a5d
[ "MIT" ]
null
null
null
integration_test/cases/browser/file_test.exs
activeprospect/wallaby
efe49026813e56242a318eab2f94469c480d4a5d
[ "MIT" ]
null
null
null
defmodule Wallaby.Integration.Browser.FileTest do use Wallaby.Integration.SessionCase, async: true import Wallaby.Query, only: [css: 1, file_field: 1] setup %{session: session} do page = session |> visit("forms.html") {:ok, %{page: page}} end describe "attaching a file to a form" do ...
31.703704
116
0.660631
7a345a4f43169c4252116890dbbeb0c9dbc11dfc
83
exs
Elixir
test/user_test.exs
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
3
2015-06-24T14:58:17.000Z
2019-04-25T23:38:03.000Z
test/user_test.exs
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
1
2018-01-09T04:18:10.000Z
2018-01-09T04:18:10.000Z
test/user_test.exs
rockerBOO/rest_twitch
20815fd135ff5a47a9e23ecd7a55dd00ac952722
[ "MIT" ]
2
2015-08-16T20:30:10.000Z
2016-04-14T11:24:03.000Z
defmodule RestTwitch.UserTest do use ExUnit.Case doctest RestTwitch.Users end
13.833333
32
0.807229
7a34781b3fd0bc072b5c5977977b5d63e43e5fc7
1,642
exs
Elixir
exercises/meetup/example.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
null
null
null
exercises/meetup/example.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
1
2018-06-19T18:59:41.000Z
2018-06-19T18:59:41.000Z
exercises/meetup/example.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
1
2018-07-19T23:43:56.000Z
2018-07-19T23:43:56.000Z
defmodule Meetup do @moduledoc """ Calculate meetup dates. """ @type weekday :: :monday | :tuesday | :wednesday | :thursday | :friday | :saturday | :sunday @type schedule :: :first | :second | :third | :fourth | :last | :teenth @doc ""...
27.830508
79
0.64799
7a34f27f5353af12e21117fbd82173be75a6ee05
345
ex
Elixir
lib/space_sup.ex
lehoff/acquirex
00adfa06aaf6485e263db50fc4d40b1cd4911d79
[ "Apache-2.0" ]
61
2015-06-19T16:12:42.000Z
2021-05-06T07:37:23.000Z
lib/space_sup.ex
lehoff/acquirex
00adfa06aaf6485e263db50fc4d40b1cd4911d79
[ "Apache-2.0" ]
2
2015-07-29T17:24:15.000Z
2015-09-23T21:48:35.000Z
lib/space_sup.ex
lehoff/acquirex
00adfa06aaf6485e263db50fc4d40b1cd4911d79
[ "Apache-2.0" ]
13
2015-06-19T16:15:29.000Z
2020-07-04T20:54:30.000Z
defmodule Acquirex.Space.Supervisor do use Supervisor def start_link() do Supervisor.start_link(__MODULE__, :no_args, name: __MODULE__) end def init(:no_args) do children = for t <- Acquirex.Tiles.extended_all do worker(Acquirex.Space, [t], id: t) end supervise(children, strategy: ...
20.294118
65
0.692754
7a34fef45ef6c66b7a8fe40b0eb18a3146d3f506
1,435
ex
Elixir
lib/vex/validator/skipping.ex
Apelsinka223/vex
dfd399724f7950d91fe6d894bb5a02e3d27bfa24
[ "MIT" ]
null
null
null
lib/vex/validator/skipping.ex
Apelsinka223/vex
dfd399724f7950d91fe6d894bb5a02e3d27bfa24
[ "MIT" ]
null
null
null
lib/vex/validator/skipping.ex
Apelsinka223/vex
dfd399724f7950d91fe6d894bb5a02e3d27bfa24
[ "MIT" ]
null
null
null
defmodule Vex.Validator.Skipping do @doc """ Checks for allowing blank/nil values, skipping validations. """ defmacro unless_skipping(value, options, do: unskipped) do quote do if skip?(unquote(value), unquote(options)) do :ok else unquote(unskipped) end end end @...
28.7
80
0.641115
7a3593b13035d85554b72751a5fc559622877b67
302
ex
Elixir
imaas/lib/imaas/validate_method_plug.ex
Elonsoft/imaas
ba5eca1559d042822ba66786e8db53d2f988fb2f
[ "WTFPL" ]
1
2020-07-27T15:50:30.000Z
2020-07-27T15:50:30.000Z
imaas/lib/imaas/validate_method_plug.ex
Elonsoft/imaas
ba5eca1559d042822ba66786e8db53d2f988fb2f
[ "WTFPL" ]
null
null
null
imaas/lib/imaas/validate_method_plug.ex
Elonsoft/imaas
ba5eca1559d042822ba66786e8db53d2f988fb2f
[ "WTFPL" ]
null
null
null
defmodule Imaas.ValidateMethodPlug do @moduledoc false import Plug.Conn def init(opts), do: opts def call(%{method: "POST"} = conn, _) do conn end def call(conn, _) do conn |> put_resp_content_type("text/plain") |> send_resp(400, "Invalid method") |> halt end end
15.894737
42
0.639073
7a3593d30ed3ccdcab1db22e465b5d6c836b3991
1,415
ex
Elixir
lib/secret_agent/telemetry.ex
ahamez/secrets_watcher
621f345c19dc90cf6fd056bf44c939cbffea4acb
[ "MIT" ]
1
2022-02-03T09:18:09.000Z
2022-02-03T09:18:09.000Z
lib/secret_agent/telemetry.ex
ahamez/secrets_watcher
621f345c19dc90cf6fd056bf44c939cbffea4acb
[ "MIT" ]
8
2022-02-09T04:39:09.000Z
2022-03-24T04:33:29.000Z
lib/secret_agent/telemetry.ex
ahamez/secrets_watcher
621f345c19dc90cf6fd056bf44c939cbffea4acb
[ "MIT" ]
null
null
null
defmodule SecretAgent.Telemetry do @moduledoc """ `secret_agent` emits several [`telemetry`](https://github.com/beam-telemetry/telemetry) events. ## Events * `[:secret_agent, :file_event]` * _metadata_ * `:events` the filesystem events * `:path` path to the file with events * `[:secret_agen...
26.203704
97
0.633216
7a35a19ab18fabd6e3c185f5f951875d75fffff5
494
ex
Elixir
lib/hn_comments_game/scheduler/index.ex
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
5
2020-05-15T17:06:22.000Z
2020-06-20T12:05:46.000Z
lib/hn_comments_game/scheduler/index.ex
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
null
null
null
lib/hn_comments_game/scheduler/index.ex
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
null
null
null
# https://stackoverflow.com/a/32097971/968420 defmodule HnCommentsGame.Scheduler do use GenServer @hour 60 * 60 * 1000 def start_link(default) when is_list(default) do GenServer.start_link(__MODULE__, default) end def init(_) do :timer.send_interval(@hour, :update) {:ok, 1} end def handle_i...
20.583333
50
0.690283
7a35c4786e645fa6b5752cc7061ac834bb29ea81
743
exs
Elixir
mix.exs
raventid/kanrex
0f16cce0db3ac96fae09cbb5a58660a670008ce1
[ "MIT" ]
null
null
null
mix.exs
raventid/kanrex
0f16cce0db3ac96fae09cbb5a58660a670008ce1
[ "MIT" ]
null
null
null
mix.exs
raventid/kanrex
0f16cce0db3ac96fae09cbb5a58660a670008ce1
[ "MIT" ]
null
null
null
defmodule Kanrex.MixProject do use Mix.Project def project do [ app: :kanrex, version: "0.1.0", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps(), preferred_cli_env: [muzak: :test] ] end # Run "mix help compile.app" to learn about applications. ...
22.515152
87
0.550471
7a35cc7709f5246284d89f0294e48915cba47c50
4,318
ex
Elixir
apps/gitrekt/lib/gitrekt/wire_protocol/receive_pack.ex
joshnuss/gitgud
ea32d9d254cfd10a09c988763e03589c401d9875
[ "MIT" ]
null
null
null
apps/gitrekt/lib/gitrekt/wire_protocol/receive_pack.ex
joshnuss/gitgud
ea32d9d254cfd10a09c988763e03589c401d9875
[ "MIT" ]
null
null
null
apps/gitrekt/lib/gitrekt/wire_protocol/receive_pack.ex
joshnuss/gitgud
ea32d9d254cfd10a09c988763e03589c401d9875
[ "MIT" ]
null
null
null
defmodule GitRekt.WireProtocol.ReceivePack do @moduledoc """ Module implementing the `git-receive-pack` command. """ @behaviour GitRekt.WireProtocol.Service alias GitRekt.Git import GitRekt.WireProtocol, only: [reference_discovery: 2] defstruct [:repo, state: :disco, caps: [], cmds: [], pack: []] @...
30.408451
103
0.637332
7a35f3fcfe88b4141be774d692d65ca8c03c2f4a
8,978
ex
Elixir
lib/thousand_island.ex
ewildgoose/thousand_island
2686f86f897a5bd66b9271c42322b13052c3314e
[ "MIT" ]
null
null
null
lib/thousand_island.ex
ewildgoose/thousand_island
2686f86f897a5bd66b9271c42322b13052c3314e
[ "MIT" ]
null
null
null
lib/thousand_island.ex
ewildgoose/thousand_island
2686f86f897a5bd66b9271c42322b13052c3314e
[ "MIT" ]
null
null
null
defmodule ThousandIsland do @moduledoc """ Thousand Island is a modern, pure Elixir socket server, inspired heavily by [ranch](https://github.com/ninenines/ranch). It aims to be easy to understand & reason about, while also being at least as stable and performant as alternatives. Thousand Island is implement...
46.760417
143
0.741145
7a35fe79e7ee46172164ac2aa50399ccae428fdc
2,311
ex
Elixir
clients/people/lib/google_api/people/v1/model/relation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/people/lib/google_api/people/v1/model/relation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/people/lib/google_api/people/v1/model/relation.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...
41.267857
328
0.70013
7a3618de4d9db2f19df9da3748cde65cbcc1cca3
256
exs
Elixir
ui/config/test.exs
wemakerspace/nerves_thermal_camera
1483a4a41ea89567e96fd1250f718058553fbe09
[ "MIT" ]
25
2018-11-03T19:36:12.000Z
2021-11-17T13:09:06.000Z
ui/config/test.exs
wemakerspace/nerves_thermal_camera
1483a4a41ea89567e96fd1250f718058553fbe09
[ "MIT" ]
4
2019-01-16T14:06:47.000Z
2021-09-01T18:59:02.000Z
ui/config/test.exs
wemakerspace/nerves_thermal_camera
1483a4a41ea89567e96fd1250f718058553fbe09
[ "MIT" ]
8
2018-12-25T23:00:51.000Z
2020-12-22T15:10:21.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :ui, UiWeb.Endpoint, http: [port: 4001], server: false # Print only warnings and errors during test config :logger, level: :warn
23.272727
56
0.726563
7a362b287d64f179a07d91adefc781938e510f3c
2,623
ex
Elixir
lib/enum_a.ex
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
8
2020-09-04T19:38:41.000Z
2021-06-05T18:59:49.000Z
lib/enum_a.ex
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
null
null
null
lib/enum_a.ex
marick/flow_assertions
50936d03c7e0d482f13f94c96438627d344592c0
[ "Unlicense" ]
null
null
null
defmodule FlowAssertions.EnumA do use FlowAssertions.Define alias FlowAssertions.Messages alias FlowAssertions.StructA @moduledoc """ Assertions that apply to Enums. """ @doc """ Assert that an Enum has only a single element. ``` [1] |> assert_singleton # passes [ ] |> assert_singleton # fai...
25.466019
85
0.642775
7a364ed7cfe201acbbd5d1ec60479a54f041b618
21,154
ex
Elixir
lib/elixir/lib/task/supervised.ex
dogatuncay/elixir
42875b97f858a31d3cbb8e1090ffb4d6c443ba75
[ "Apache-2.0" ]
1
2021-05-05T02:11:24.000Z
2021-05-05T02:11:24.000Z
lib/elixir/lib/task/supervised.ex
dogatuncay/elixir
42875b97f858a31d3cbb8e1090ffb4d6c443ba75
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/task/supervised.ex
dogatuncay/elixir
42875b97f858a31d3cbb8e1090ffb4d6c443ba75
[ "Apache-2.0" ]
null
null
null
defmodule Task.Supervised do @moduledoc false @ref_timeout 5000 def start(owner, callers, fun) do {:ok, :proc_lib.spawn(__MODULE__, :noreply, [owner, callers, fun])} end def start_link(owner, callers, fun) do {:ok, :proc_lib.spawn_link(__MODULE__, :noreply, [owner, callers, fun])} end def start...
32.74613
95
0.613785
7a367d7ff150dd415fb879bb484c03dd0b092c5f
74
exs
Elixir
machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/31.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/31.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/31.exs
AdityaPrasadMishra/NLP--Project-Group-16
fb62cc6a1db4a494058171f11c14a2be3933a9a1
[ "MIT" ]
null
null
null
**EXAMPLE FILE** SYM pn SYM noun adjective; pn pn noun verb adjective;
14.8
27
0.716216
7a369ae6df5ba7ed9015da04e45eb9f683814b15
712
ex
Elixir
year_2020/lib/day_25.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2020/lib/day_25.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
year_2020/lib/day_25.ex
bschmeck/advent_of_code
cbec98019c6c00444e0f4c7e15e01b1ed9ae6145
[ "MIT" ]
null
null
null
defmodule Day25 do def part_one([door_key, card_key] \\ [2_084_668, 3_704_642]) do door_loops = loop_size(door_key, 7) iterate(1, card_key, door_loops) end def iterate(value, _subject_number, 0), do: value def iterate(value, subject_number, n) do value |> Kernel.*(subject_number) |> rem(20...
27.384615
84
0.692416
7a36b8d07ec44eed79c15453173e19d6d5d65aa7
906
ex
Elixir
lib/ada/time_keeper.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
7
2019-05-11T12:14:48.000Z
2021-04-02T18:42:51.000Z
lib/ada/time_keeper.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
3
2019-05-11T08:01:47.000Z
2019-05-14T12:06:50.000Z
lib/ada/time_keeper.ex
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
1
2021-01-06T14:57:32.000Z
2021-01-06T14:57:32.000Z
defmodule Ada.TimeKeeper do @moduledoc false use GenServer def start_link(_) do GenServer.start_link(__MODULE__, :ignored, name: __MODULE__) end def init(:ignored) do Process.send_after(self(), :tick, 1000) {:ok, :ignored} end def handle_info(:tick, state) do {elapsed, _} = :timer...
23.842105
64
0.583885
7a36be089cce1e60de574696a794d1683e5d9f1b
3,789
ex
Elixir
lib/phoenix/config.ex
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
lib/phoenix/config.ex
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
lib/phoenix/config.ex
fishcakez/phoenix
97fbd73a475ae918ef29a87ad580ab2ab6d967d2
[ "MIT" ]
null
null
null
defmodule Phoenix.Config do @moduledoc """ Handles Mix Config lookup and default values from Application env Uses Mix.Config `:phoenix` settings as configuration with `@defaults` fallback Each Router requires an `:endpoint` mapping with Router specific options. See `@defaults` for a full list of available...
23.388889
84
0.64265
7a36e984efeee4e3552f50ad54d248ee8f8f9c44
102
ex
Elixir
leap_years/lib/not_gregorian_year.ex
dryobates/elixir-kata
f1a913ffbfef9a5e7478ee9206c6db7c32763670
[ "MIT" ]
null
null
null
leap_years/lib/not_gregorian_year.ex
dryobates/elixir-kata
f1a913ffbfef9a5e7478ee9206c6db7c32763670
[ "MIT" ]
null
null
null
leap_years/lib/not_gregorian_year.ex
dryobates/elixir-kata
f1a913ffbfef9a5e7478ee9206c6db7c32763670
[ "MIT" ]
null
null
null
defmodule NotGregorianYear do defexception message: "Not gregorian calendars are not supported" end
25.5
67
0.833333
7a36f414f249a82f283528d796c6885b1b7a46d5
1,487
ex
Elixir
lib/companies_web/views/error_helpers.ex
bglusman/elixir-companies
d6a728cf9136888367e261feb876c5d2a266ed57
[ "MIT" ]
333
2019-05-18T14:01:17.000Z
2022-03-22T05:07:40.000Z
lib/companies_web/views/error_helpers.ex
bglusman/elixir-companies
d6a728cf9136888367e261feb876c5d2a266ed57
[ "MIT" ]
89
2019-05-18T10:01:54.000Z
2021-05-12T15:19:26.000Z
lib/companies_web/views/error_helpers.ex
envato/elixir-companies
7488075d1a372c9ca8fa6603f93e384b73977526
[ "MIT" ]
33
2019-06-07T00:33:53.000Z
2022-03-21T05:38:28.000Z
defmodule CompaniesWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_ta...
33.044444
78
0.671822
7a37386483e4c90b38c2b4a5ddfe145ce9d9f4f3
3,487
ex
Elixir
lib/aws/generated/dynamodb_streams.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
341
2018-04-04T19:06:19.000Z
2022-03-25T21:34:23.000Z
lib/aws/generated/dynamodb_streams.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
82
2018-04-04T17:32:33.000Z
2022-03-24T15:12:04.000Z
lib/aws/generated/dynamodb_streams.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
76
2018-04-10T20:19:44.000Z
2022-03-15T13:49:19.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.DynamoDBStreams do @moduledoc """ Amazon DynamoDB Amazon DynamoDB Streams provides API actions for accessing streams and processing stream records. To learn more about application deve...
36.705263
103
0.733295
7a37546d7163ee781e5048c65e4fb40b8593e5d6
429
exs
Elixir
test/lv_template_web/views/error_view_test.exs
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
test/lv_template_web/views/error_view_test.exs
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
test/lv_template_web/views/error_view_test.exs
ustrajunior/lv_template
633c85d8c5810a130bbf24077845dda49e82ca3f
[ "MIT" ]
null
null
null
defmodule LvTemplateWeb.ErrorViewTest do use LvTemplateWeb.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(LvTemplateWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" ...
28.6
95
0.741259
7a377a351a0a8bb4f8ddbae9563e1efd5d2603f8
3,429
ex
Elixir
apps/ex_chain/lib/ex_chain/port_reserver.ex
b-pmcg/staxx
6cff299620ab4835ceca772357d1925737f2e528
[ "Apache-2.0" ]
null
null
null
apps/ex_chain/lib/ex_chain/port_reserver.ex
b-pmcg/staxx
6cff299620ab4835ceca772357d1925737f2e528
[ "Apache-2.0" ]
null
null
null
apps/ex_chain/lib/ex_chain/port_reserver.ex
b-pmcg/staxx
6cff299620ab4835ceca772357d1925737f2e528
[ "Apache-2.0" ]
null
null
null
defmodule Staxx.ExChain.PortReserver do @moduledoc """ This module will watch chains and reserve resources for them. In case new chain is started and allocated ports/folder it should send message to this module. And module will remember it and will allocate ports/folder under chain PID. In case of chain PID...
28.106557
87
0.655585
7a378aa97c6a18500b1ab005cd9b713087394f9c
31,271
ex
Elixir
lib/elixir/lib/keyword.ex
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
1
2020-09-24T12:37:29.000Z
2020-09-24T12:37:29.000Z
lib/elixir/lib/keyword.ex
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/keyword.ex
lpeppe/elixir
8742096f7792a34472df510da45d189a7780f9fa
[ "Apache-2.0" ]
null
null
null
defmodule Keyword do @moduledoc """ Keyword lists are lists of two-element tuples, where the first element of the tuple is an atom and the second element can be any value, used mostly to work with optional values. ## Examples For example, the following is a keyword list: [{:exit_on_close, true}, {:...
27.995524
98
0.599949
7a37d02289cff52b62c3eefe5e1d4bd87766955b
2,837
ex
Elixir
clients/run/lib/google_api/run/v1/model/configuration.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/run/lib/google_api/run/v1/model/configuration.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/run/lib/google_api/run/v1/model/configuration.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...
48.084746
415
0.727177
7a37de3cf3b5782a55f98dce3cc2cbb0340114aa
1,495
ex
Elixir
lib/ch_web/endpoint.ex
ckampfe/ch
88d1ab3f7b8cf4be63913348610ba78a3e9e2e54
[ "BSD-3-Clause" ]
null
null
null
lib/ch_web/endpoint.ex
ckampfe/ch
88d1ab3f7b8cf4be63913348610ba78a3e9e2e54
[ "BSD-3-Clause" ]
null
null
null
lib/ch_web/endpoint.ex
ckampfe/ch
88d1ab3f7b8cf4be63913348610ba78a3e9e2e54
[ "BSD-3-Clause" ]
null
null
null
defmodule ChWeb.Endpoint do use Phoenix.Endpoint, otp_app: :ch # 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, key: "_ch_key", signin...
29.313725
97
0.715719
7a381da65ebafe099429f772aaaad7c372cd79da
1,651
ex
Elixir
lib/virgo/cache/contest.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
lib/virgo/cache/contest.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
lib/virgo/cache/contest.ex
GinShio/AstraeaVirgo
92804cbae01f67e21b8f421009fa37fddc9054e1
[ "BSD-2-Clause" ]
null
null
null
defmodule AstraeaVirgo.Cache.Contest do @moduledoc """ Implement contest operation for cache ## Contest ID set A collection of contest IDs, used to cache the IDs of existing contests. - key: `Astraea:Contests` - type: set ## Contest Info A key-value mapping the contest information, key is contest ...
27.516667
131
0.644458
7a3868a5b1c3505ab1adc303175c8c1e9e354a94
1,149
ex
Elixir
apps/omg_watcher_rpc/lib/web/controllers/deposit.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher_rpc/lib/web/controllers/deposit.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher_rpc/lib/web/controllers/deposit.ex
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
28.725
74
0.717145
7a38d47b15a06dad0a0d4a58fc8111894005f5d1
2,317
exs
Elixir
test/nudge_web/controllers/site_controller_test.exs
code-mancers/nudge
6237a508203e73fbb0280d6aa428d83cbd347c11
[ "MIT" ]
null
null
null
test/nudge_web/controllers/site_controller_test.exs
code-mancers/nudge
6237a508203e73fbb0280d6aa428d83cbd347c11
[ "MIT" ]
17
2021-08-04T12:44:20.000Z
2021-09-09T07:25:00.000Z
test/nudge_web/controllers/site_controller_test.exs
code-mancers/nudge
6237a508203e73fbb0280d6aa428d83cbd347c11
[ "MIT" ]
null
null
null
defmodule NudgeWeb.SiteControllerTest do use NudgeWeb.ConnCase use Plug.Test import Nudge.Factory @create_attrs %{active: true, tz: "UTC", url: "https://example.com"} @invalid_attrs %{active: nil, tz: nil, url: nil} describe "create/2" do setup [:create_user] test "redirects after creating when d...
28.256098
113
0.625809
7a38fdfae609ff2542759d156ff404aae65a9cd5
1,878
exs
Elixir
test/gmail/payload_test.exs
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
52
2015-02-19T23:23:34.000Z
2020-07-12T12:53:09.000Z
test/gmail/payload_test.exs
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
17
2016-06-01T18:49:09.000Z
2020-11-11T21:26:21.000Z
test/gmail/payload_test.exs
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
26
2016-03-08T09:13:58.000Z
2021-09-27T08:39:22.000Z
ExUnit.start defmodule Gmail.PayloadTest do use ExUnit.Case test "converts a payload with a part ID and parts" do mimeType = "mimeType" filename = "some_file_name" headers = ["header_1", "header_2"] body = %{"data" => "body_data", "size" => 12} parts = [%{ "partId" => "1", "fi...
25.726027
56
0.521299
7a3904e6baf7524a95cdeab22067852c3409c8b9
11,439
exs
Elixir
test/sanbase_web/graphql/clickhouse/historical_balance/historical_balances_test.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
test/sanbase_web/graphql/clickhouse/historical_balance/historical_balances_test.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
test/sanbase_web/graphql/clickhouse/historical_balance/historical_balances_test.exs
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule SanbaseWeb.Graphql.Clickhouse.HistoricalBalancesTest do use SanbaseWeb.ConnCase, async: false import Sanbase.TestHelpers import SanbaseWeb.Graphql.TestHelpers import ExUnit.CaptureLog import Sanbase.Factory @eth_decimals 1_000_000_000_000_000_000 setup do project_without_contract = insert(...
31.86351
94
0.566745
7a390f036a442f2c6833bfd8bad7f39fa7940621
4,487
ex
Elixir
deps/ecto_sql/lib/mix/tasks/ecto.migrate.ex
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
null
null
null
deps/ecto_sql/lib/mix/tasks/ecto.migrate.ex
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
null
null
null
deps/ecto_sql/lib/mix/tasks/ecto.migrate.ex
matin360/TaksoWebApp
4dd8fef625ecc2364fe1d6e18e73c96c59d15349
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Ecto.Migrate do use Mix.Task import Mix.Ecto import Mix.EctoSQL @shortdoc "Runs the repository migrations" @aliases [ n: :step, r: :repo ] @switches [ all: :boolean, step: :integer, to: :integer, quiet: :boolean, prefix: :string, pool_size: :integer, ...
31.598592
100
0.664809
7a392101a16fd8ca3e9b8fab344a4b7726cedb84
467
ex
Elixir
apps/core/lib/core/employees/search.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/employees/search.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/employees/search.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.Employees.Search do @moduledoc false use Ecto.Schema @primary_key false schema "employee_search" do field(:ids, Core.Ecto.CommaParamsUUID) field(:party_id, Ecto.UUID) field(:division_id, Ecto.UUID) field(:legal_entity_id, Ecto.UUID) field(:tax_id, :string) field(:no_tax_...
23.35
42
0.691649
7a395623a745202d603d5ed98b2fc7e9fee44210
1,078
exs
Elixir
test/generate/kicked_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
test/generate/kicked_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
test/generate/kicked_test.exs
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule CWMP.Protocol.Generator.KickedTest do use ExUnit.Case, async: true @sample ~s|<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cwmp="urn:dslforum-org:cwmp-1-4" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:...
37.172414
288
0.684601
7a3957f8e2ee799c4618fd63d3ae7abbaa0a1ac2
1,348
ex
Elixir
questions/string/00030000-substr.ex
zachvalenta/pgexercises
b16d5c28bb5e21732e6fb39090fa5902d0016e78
[ "BSD-2-Clause" ]
335
2015-02-09T09:21:34.000Z
2022-03-30T12:28:18.000Z
questions/string/00030000-substr.ex
zachvalenta/pgexercises
b16d5c28bb5e21732e6fb39090fa5902d0016e78
[ "BSD-2-Clause" ]
58
2015-05-12T03:10:54.000Z
2021-11-27T15:53:36.000Z
questions/string/00030000-substr.ex
zachvalenta/pgexercises
b16d5c28bb5e21732e6fb39090fa5902d0016e78
[ "BSD-2-Clause" ]
63
2015-03-18T18:15:56.000Z
2022-02-23T07:27:46.000Z
|QUESTIONNAME| Count the number of members whose surname starts with each letter of the alphabet |QUESTION| You'd like to produce a count of how many members you have whose surname starts with each letter of the alphabet. Sort by the letter, and don't worry about printing out a letter if the count is 0. |QUERY| select...
64.190476
522
0.760386
7a395f4ddbb0becc38a628d5680f4dc719dd39e0
7,350
ex
Elixir
lib/credo/cli/command/diff/task/get_git_diff.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
lib/credo/cli/command/diff/task/get_git_diff.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
lib/credo/cli/command/diff/task/get_git_diff.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
defmodule Credo.CLI.Command.Diff.Task.GetGitDiff do use Credo.Execution.Task alias Credo.CLI.Command.Diff.DiffCommand alias Credo.CLI.Output.Shell alias Credo.CLI.Output.UI def call(exec, _opts) do case Execution.get_assign(exec, "credo.diff.previous_exec") do %Execution{} -> exec _ -> run_c...
28.378378
123
0.648571
7a39889ad65717a0a7a58476d4e4ee620f274e61
5,496
ex
Elixir
lib/idfk/date_time.ex
amorphid/idfk
9d69f49c761c2f58abe88ceca72f33afa396b872
[ "MIT" ]
null
null
null
lib/idfk/date_time.ex
amorphid/idfk
9d69f49c761c2f58abe88ceca72f33afa396b872
[ "MIT" ]
null
null
null
lib/idfk/date_time.ex
amorphid/idfk
9d69f49c761c2f58abe88ceca72f33afa396b872
[ "MIT" ]
null
null
null
defmodule Idfk.DateTime do use Timex @type datetime :: datetime_second_precision | datetime_millis_precision @type datetime_millis_precision :: {{year, month, day}, {hours, minutes, seconds, milliseconds}} @type datetime_second_precision :: {{year, month, day}, {hours, minutes, seconds}} @type day :: integer...
35.006369
182
0.655022
7a398a8937c2a7560efc9cc856530e2963ec287c
560
exs
Elixir
apps/snitch_core/priv/repo/migrations/20180705190618_remove_order_total_fields.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/priv/repo/migrations/20180705190618_remove_order_total_fields.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/priv/repo/migrations/20180705190618_remove_order_total_fields.exs
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Repo.Migrations.RemoveOrderTotalFields do use Ecto.Migration def up do alter table("snitch_orders") do remove :total remove :item_total remove :promo_total remove :adjustment_total end end def down do alter table("snitch_orders") do add :total, String...
25.454545
66
0.710714
7a399c102e05c9af642f0cb5f80b5fa6819e6ee7
646
exs
Elixir
config/test.exs
seanbreckenridge/glue
60cbe6478be27572de6c6d5276a806b5940ffcbc
[ "Apache-2.0" ]
5
2020-07-04T12:18:58.000Z
2022-01-13T22:35:40.000Z
config/test.exs
seanbreckenridge/glue
60cbe6478be27572de6c6d5276a806b5940ffcbc
[ "Apache-2.0" ]
37
2020-07-20T23:35:56.000Z
2022-03-19T02:13:16.000Z
config/test.exs
seanbreckenridge/glue
60cbe6478be27572de6c6d5276a806b5940ffcbc
[ "Apache-2.0" ]
null
null
null
use Mix.Config # Configure your database # # The MIX_TEST_PARTITION environment variable can be used # to provide built-in test partitioning in CI environment. # Run `mix help test` for more information. config :glue, Glue.Repo, username: "postgres", password: "postgres", database: "glue_test#{System.get_env("MI...
28.086957
63
0.743034
7a39bea2996c462c06425a65ae20bed9dfc11fc6
1,948
ex
Elixir
lib/day_07_amplification_circuit.ex
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
1
2019-12-02T16:27:06.000Z
2019-12-02T16:27:06.000Z
lib/day_07_amplification_circuit.ex
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
null
null
null
lib/day_07_amplification_circuit.ex
scmx/advent-of-code-2019-elixir
f3022efb422e15abead6b882c78855b26b138443
[ "MIT" ]
1
2020-12-10T10:47:21.000Z
2020-12-10T10:47:21.000Z
defmodule Adventofcode.Day07AmplificationCircuit do use Adventofcode alias Adventofcode.IntcodeComputer alias Adventofcode.IntcodeComputer.Program def part_1(input) do input |> IntcodeComputer.parse() |> max_thruster_signal() end def part_2(input) do input |> IntcodeComputer.parse() ...
24.974359
79
0.64271
7a39e66dad242aab97979634f4e61934e71f75f6
1,430
ex
Elixir
lib/cgrates_web_jsonapi/csv_export.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
2
2018-10-03T07:41:32.000Z
2021-03-21T11:27:27.000Z
lib/cgrates_web_jsonapi/csv_export.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
1
2018-10-31T04:55:59.000Z
2018-10-31T04:55:59.000Z
lib/cgrates_web_jsonapi/csv_export.ex
max-konin/cgrates_web_jsonapi
e82690e343d790b0f77dea6699483fcb6fd8a162
[ "MIT" ]
5
2018-09-27T11:30:44.000Z
2021-01-16T08:28:58.000Z
defmodule CgratesWebJsonapi.CsvExport do defmacro __using__(_opts) do quote do use Phoenix.Controller alias CgratesWebJsonapi.Repo import CgratesWebJsonapi.CsvExport def export_to_csv(conn, params) do query = build_query(conn, params) {raw_query, values} = Repo.to_sql(:all...
24.237288
86
0.606294
7a3a2f363b1b5dc4250ba91d9a6b86c7be4fba9f
270
exs
Elixir
ch15/spawn1.exs
rafanoronha/prog_elixir_1_6
5ae2137da4ffdb6de1c9b164812ed6e43c0922d3
[ "MIT" ]
null
null
null
ch15/spawn1.exs
rafanoronha/prog_elixir_1_6
5ae2137da4ffdb6de1c9b164812ed6e43c0922d3
[ "MIT" ]
null
null
null
ch15/spawn1.exs
rafanoronha/prog_elixir_1_6
5ae2137da4ffdb6de1c9b164812ed6e43c0922d3
[ "MIT" ]
null
null
null
defmodule Spawn1 do def greet do receive do {sender, msg} -> send sender, { :ok, "Hello, #{msg}"} end end end # here's a client pid = spawn(Spawn1, :greet, []) send pid, {self(), "World!"} receive do {:ok, message} -> IO.puts message end
15
42
0.574074
7a3a33e4e562771c568d2e3b5ccef3c64cdfce04
1,367
ex
Elixir
lib/cotoami_web/controllers/watch_controller.ex
cruatta/cotoami
29b7ef66c053cf4e381c6ff65d5fd599066ebabe
[ "Apache-2.0" ]
null
null
null
lib/cotoami_web/controllers/watch_controller.ex
cruatta/cotoami
29b7ef66c053cf4e381c6ff65d5fd599066ebabe
[ "Apache-2.0" ]
null
null
null
lib/cotoami_web/controllers/watch_controller.ex
cruatta/cotoami
29b7ef66c053cf4e381c6ff65d5fd599066ebabe
[ "Apache-2.0" ]
null
null
null
defmodule CotoamiWeb.WatchController do use CotoamiWeb, :controller require Logger alias Cotoami.WatchService alias Cotoami.CotonomaService def action(conn, _) do apply(__MODULE__, action_name(conn), [conn, conn.params, conn.assigns.amishi]) end def index(conn, _params, amishi) do render(conn, "...
35.051282
91
0.720556
7a3a5727a3f105564154a4335378b2100010b1e5
1,141
ex
Elixir
deps/phoenix/lib/phoenix/endpoint/server.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
deps/phoenix/lib/phoenix/endpoint/server.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
null
null
null
deps/phoenix/lib/phoenix/endpoint/server.ex
hallebadkapp/rumbl-ms
ae2ef9975658115f8c4d5c49c28d8bde00a74b83
[ "MIT" ]
1
2020-02-08T16:23:00.000Z
2020-02-08T16:23:00.000Z
defmodule Phoenix.Endpoint.Server do # The supervisor for the underlying handlers. @moduledoc false use Supervisor require Logger def start_link(otp_app, endpoint, opts \\ []) do Supervisor.start_link(__MODULE__, {otp_app, endpoint}, opts) end def init({otp_app, endpoint}) do handler = endpoin...
31.694444
114
0.693252
7a3a738f8ece030e07cd4f2aabe46cba8054d271
1,837
ex
Elixir
lib/wobserver/web/router/static.ex
woa-staging/wobserver
13bcda30a87f4f0be1878920a79433ad831eefbe
[ "MIT" ]
1
2021-12-07T12:42:12.000Z
2021-12-07T12:42:12.000Z
lib/wobserver/web/router/static.ex
woa-staging/wobserver
13bcda30a87f4f0be1878920a79433ad831eefbe
[ "MIT" ]
null
null
null
lib/wobserver/web/router/static.ex
woa-staging/wobserver
13bcda30a87f4f0be1878920a79433ad831eefbe
[ "MIT" ]
null
null
null
defmodule Wobserver.Web.Router.Static do @moduledoc ~S""" Static router mostly for the browsers interface. Returns the following resources: - `/`, for the main html page. - `/main.css`, for main css stylesheet. - `/app.js`, for the Javascript code. - `/license`, for the *MIT* license information....
23.857143
74
0.598258
7a3a7c39831a396acad5c0dbbb665fdf4c420c7b
844
ex
Elixir
lib/livebook_web/live/output/vega_lite_dynamic_live.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/output/vega_lite_dynamic_live.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
null
null
null
lib/livebook_web/live/output/vega_lite_dynamic_live.ex
benjreinhart/livebook
0500ad5c6237167ce9769d8cc78fca360834f576
[ "Apache-2.0" ]
1
2021-07-07T06:18:36.000Z
2021-07-07T06:18:36.000Z
defmodule LivebookWeb.Output.VegaLiteDynamicLive do use LivebookWeb, :live_view @impl true def mount(_params, %{"pid" => pid, "id" => id}, socket) do send(pid, {:connect, self()}) {:ok, assign(socket, id: id)} end @impl true def render(assigns) do ~L""" <div id="vega-lite-<%= @id %>" phx-...
25.575758
96
0.592417
7a3a9d37f89ddcdf59d595a22daf9ebf2166a76b
583
exs
Elixir
test/okr_app_web/controllers/api/analytics/okr_view_controller_test.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
12
2019-05-10T21:48:06.000Z
2021-11-07T14:04:30.000Z
test/okr_app_web/controllers/api/analytics/okr_view_controller_test.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
2
2019-05-14T19:07:10.000Z
2019-05-20T21:06:27.000Z
test/okr_app_web/controllers/api/analytics/okr_view_controller_test.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
3
2019-05-19T18:24:20.000Z
2019-10-31T20:29:12.000Z
defmodule OkrAppWeb.Api.Analytics.OkrViewControllerTest do use OkrAppWeb.ConnCase, async: true alias OkrAppWeb.Api.Analytics.OkrViewController, as: Controller describe "show/2" do test "stats are queried and shown", %{conn: conn} do assert conn |> put_private(:current_user, {}) ...
29.15
65
0.557461
7a3abbeb0df86318fe4b8c7d8fd9fec6aa890925
1,304
ex
Elixir
test/helpers/property_helpers.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
1,623
2015-01-03T16:53:19.000Z
2022-03-27T01:25:50.000Z
test/helpers/property_helpers.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
654
2015-01-04T23:59:47.000Z
2022-03-08T01:02:01.000Z
test/helpers/property_helpers.ex
chungwong/timex
bcd2504119f5c11ada7455d19726b5a49254dabf
[ "MIT" ]
428
2015-01-04T19:37:37.000Z
2022-03-31T10:48:44.000Z
defmodule PropertyHelpers do @moduledoc """ Custom data generators to be used in property tests """ def date_time_generator(:struct) do [ date_time_generator(:tuple), microsecond_generator() ] |> StreamData.fixed_list() |> StreamData.map(fn [{{y, m, d}, {h, mm, s}}, {us, p}] -> ...
25.076923
74
0.604294
7a3ac78a7cc54a549dfbac7b53df80d8d3ccf78c
8,869
exs
Elixir
test/phoenix/router/resources_test.exs
misfo/phoenix
04464429d9b958e331b2ffe0f0f5926690ab3b56
[ "MIT" ]
1
2019-06-11T20:22:21.000Z
2019-06-11T20:22:21.000Z
test/phoenix/router/resources_test.exs
misfo/phoenix
04464429d9b958e331b2ffe0f0f5926690ab3b56
[ "MIT" ]
null
null
null
test/phoenix/router/resources_test.exs
misfo/phoenix
04464429d9b958e331b2ffe0f0f5926690ab3b56
[ "MIT" ]
null
null
null
defmodule Phoenix.Router.ResourcesTest do use ExUnit.Case, async: true use RouterHelper defmodule UserController do use Phoenix.Controller def show(conn, _params), do: text(conn, "show users") def index(conn, _params), do: text(conn, "index users") def new(conn, _params), do: text(conn, "new user...
32.848148
98
0.653287
7a3ac9d81c946e53c986ab51c933fbc589cc87f4
1,401
ex
Elixir
lib/brex/operator.ex
kianmeng/brex
f9758e0e8684404d7552597aac9e436aa8063532
[ "MIT" ]
34
2018-04-04T10:27:08.000Z
2019-05-19T15:46:08.000Z
lib/brex/operator.ex
kianmeng/brex
f9758e0e8684404d7552597aac9e436aa8063532
[ "MIT" ]
4
2020-05-04T08:50:21.000Z
2021-12-15T01:25:43.000Z
lib/brex/operator.ex
kianmeng/brex
f9758e0e8684404d7552597aac9e436aa8063532
[ "MIT" ]
3
2020-05-07T13:36:25.000Z
2021-11-04T22:49:16.000Z
defmodule Brex.Operator do @moduledoc """ A struct which represents a rule linking two or more other rules together. It does this by accepting a list of `clauses` and an `aggregator`, being an arity 1 function which reduces a list of booleans into a single boolean. # Custom Operators Creating a custom ope...
26.942308
80
0.663098
7a3af0b67f2531bf387317e212c41eedc6ae9f35
4,190
ex
Elixir
test/support/mocks/log.ex
normalfaults/teslamate
9c61150bd5614728447e21789ab6edc5169b631e
[ "MIT" ]
1
2020-05-17T05:05:22.000Z
2020-05-17T05:05:22.000Z
test/support/mocks/log.ex
normalfaults/teslamate
9c61150bd5614728447e21789ab6edc5169b631e
[ "MIT" ]
null
null
null
test/support/mocks/log.ex
normalfaults/teslamate
9c61150bd5614728447e21789ab6edc5169b631e
[ "MIT" ]
null
null
null
defmodule LogMock do use GenServer defstruct [:pid] alias __MODULE__, as: State alias TeslaMate.Log.{Drive, ChargingProcess, Update, Car} alias TeslaMate.Log # API def start_link(opts) do GenServer.start_link(__MODULE__, opts, name: Keyword.fetch!(opts, :name)) end def start_state(name, car_i...
32.48062
99
0.684487
7a3af29e0104d2dead474b56e450b347b1d2baef
88
ex
Elixir
lib/lyn/repo.ex
lyncms/lyn
ef825e7ff8df049a41f9a10685324079ebe116f9
[ "MIT" ]
96
2016-02-26T20:20:33.000Z
2020-10-02T16:21:00.000Z
lib/lyn/repo.ex
lyncms/lyn
ef825e7ff8df049a41f9a10685324079ebe116f9
[ "MIT" ]
12
2016-02-27T16:23:55.000Z
2017-07-04T13:46:00.000Z
lib/lyn/repo.ex
lyncms/lyn
ef825e7ff8df049a41f9a10685324079ebe116f9
[ "MIT" ]
24
2016-03-10T23:55:33.000Z
2019-06-07T18:32:34.000Z
defmodule Lyn.Repo do use Ecto.Repo, otp_app: :lyn use Scrivener, page_size: 20 end
17.6
30
0.738636
7a3af32b7bb95c912cd91591b7c07b495c9644b3
3,643
exs
Elixir
test/test_adapter.exs
sb8244/ecto_tenancy_enforcer
7dac523d0560ec4a57bcf3800b788d312d70d6e6
[ "MIT" ]
36
2019-12-30T23:02:59.000Z
2022-03-26T14:38:41.000Z
test/test_adapter.exs
sb8244/ecto_tenancy_enforcer
7dac523d0560ec4a57bcf3800b788d312d70d6e6
[ "MIT" ]
1
2021-01-13T05:01:04.000Z
2021-01-13T05:01:04.000Z
test/test_adapter.exs
sb8244/ecto_tenancy_enforcer
7dac523d0560ec4a57bcf3800b788d312d70d6e6
[ "MIT" ]
1
2021-04-25T16:50:16.000Z
2021-04-25T16:50:16.000Z
defmodule Ecto.TestAdapter do @behaviour Ecto.Adapter @behaviour Ecto.Adapter.Queryable @behaviour Ecto.Adapter.Schema @behaviour Ecto.Adapter.Transaction defmacro __before_compile__(_opts), do: :ok def ensure_all_started(_, _) do {:ok, []} end def init(opts) do :ecto_tenancy_enforcer = opts[...
26.985185
95
0.635191
7a3b425c131fc2696bd479a4105da4dff6e3eb34
377
ex
Elixir
lib/my_app.ex
PhillippOhlandt/dynamic_supervision_communication
9632524b9760505734fc12cf66633a5824c5d0d7
[ "MIT" ]
null
null
null
lib/my_app.ex
PhillippOhlandt/dynamic_supervision_communication
9632524b9760505734fc12cf66633a5824c5d0d7
[ "MIT" ]
null
null
null
lib/my_app.ex
PhillippOhlandt/dynamic_supervision_communication
9632524b9760505734fc12cf66633a5824c5d0d7
[ "MIT" ]
null
null
null
defmodule MyApp do @moduledoc """ Documentation for MyApp. """ alias MyApp.UnitSupervisor def add_unit(name) do UnitSupervisor.add_unit(name) end def list_units() do UnitSupervisor.list_units() end def get_unit_state(name) do UnitSupervisor.get_unit_state(name) end def remove_unit...
15.708333
39
0.718833
7a3b447d5c748d7b8e0e609a699e72079efe862e
5,700
ex
Elixir
lib/game/color.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
lib/game/color.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
lib/game/color.ex
NatTuck/ex_venture
7a74d33025a580f1e3e93d3755f22258eb3e9127
[ "MIT" ]
null
null
null
defmodule Game.Color do @moduledoc """ Format colors Replaces "{black}{/black}" with ANSII escape codes for the color """ alias Game.ColorCodes @color_regex ~r/{\/?[\w:-]+}/ def color_regex(), do: @color_regex @doc """ For commands coming in from a player, delink them so they are only color. ""...
30.810811
93
0.624386
7a3bd20c9295776d3e2ddf5a7a48514406957f2a
114
ex
Elixir
apps/game_engine/lib/topics.ex
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
apps/game_engine/lib/topics.ex
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
apps/game_engine/lib/topics.ex
aef-/scatonslack
7f5b01464a48482981f6b74a1013bf82d739b3e1
[ "MIT" ]
null
null
null
defmodule ScatOnSlack.GameEngine.Topics do def generate do ['This is a test', 'And another test'] end end
19
42
0.719298
7a3bd3dc8d65b10e4cdcf7d6f4699e76a79e39e3
1,969
exs
Elixir
test/phoenix_live_view_collection_web/live/collection_live_test.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
4
2021-05-04T13:14:32.000Z
2021-09-04T12:16:44.000Z
test/phoenix_live_view_collection_web/live/collection_live_test.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
null
null
null
test/phoenix_live_view_collection_web/live/collection_live_test.exs
wmnnd/phoenix_live_view_collection
61e0acf0cda8533c185edfc6011457c466ab5e09
[ "MIT" ]
null
null
null
defmodule PhoenixLiveViewCollectionWeb.Live.CollectionLiveTest do use LiveViewCollectionWeb.ConnCase import Phoenix.LiveViewTest alias LiveViewCollection.Collection @entries for i <- 1..21, do: %{"html" => "entry #{i}"} setup do start_supervised!({Collection, override_entries: @entries}, restart: :tempo...
23.164706
84
0.557643
7a3bffd18eae8c4d603f16190cd537e26cc5f567
20,470
ex
Elixir
lib/phoenix/test/conn_test.ex
JWKyle/phoenix-test
87066b7335764f7c3c4d098fdc85bdad2ab2ef54
[ "MIT" ]
null
null
null
lib/phoenix/test/conn_test.ex
JWKyle/phoenix-test
87066b7335764f7c3c4d098fdc85bdad2ab2ef54
[ "MIT" ]
null
null
null
lib/phoenix/test/conn_test.ex
JWKyle/phoenix-test
87066b7335764f7c3c4d098fdc85bdad2ab2ef54
[ "MIT" ]
null
null
null
defmodule Phoenix.ConnTest do @moduledoc """ Conveniences for testing Phoenix endpoints and connection related helpers. You likely want to use this module or make it part of your `ExUnit.CaseTemplate`. Once used, this module automatically imports all functions defined here as well as the functions in `Pl...
31.062215
116
0.673131
7a3c00e5428d6a455945bb86a6eedbfa38ad5404
244
exs
Elixir
priv/repo/migrations/20210916062559_create_states.exs
KalvadTech/kalbu
a814aad1c276b44bc3366b758118795fb590d2df
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20210916062559_create_states.exs
KalvadTech/kalbu
a814aad1c276b44bc3366b758118795fb590d2df
[ "BSD-3-Clause" ]
null
null
null
priv/repo/migrations/20210916062559_create_states.exs
KalvadTech/kalbu
a814aad1c276b44bc3366b758118795fb590d2df
[ "BSD-3-Clause" ]
null
null
null
defmodule Kalbu.Repo.Migrations.CreateStates do use Ecto.Migration def change do create table(:states, primary_key: false) do add :id, :binary_id, primary_key: true add :state, :string timestamps() end end end
18.769231
48
0.680328
7a3c1dac0a6fafebc71bff858eacf5a14a51d54c
494
ex
Elixir
lib/error_handler.ex
Ventup-IT/conekta-elixir
c871f3e4d53272cecb85f7952f931db57f82ec62
[ "MIT" ]
null
null
null
lib/error_handler.ex
Ventup-IT/conekta-elixir
c871f3e4d53272cecb85f7952f931db57f82ec62
[ "MIT" ]
null
null
null
lib/error_handler.ex
Ventup-IT/conekta-elixir
c871f3e4d53272cecb85f7952f931db57f82ec62
[ "MIT" ]
null
null
null
defmodule ConektaError do @moduledoc false defexception message: "default message" end defmodule Conekta.ErrorHandler do @moduledoc false alias Conekta.ErrorResponse def catch_error(content) do {:ok, error} = Poison.decode(content.body, as: %ErrorResponse{}) raise ConektaError, message: hd(error.det...
24.7
68
0.740891
7a3c5a067675d41ad2343f37347e4d9b77319e53
82
exs
Elixir
test/coophub_web/views/layout_view_test.exs
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
49
2019-12-11T16:40:52.000Z
2022-01-14T12:44:14.000Z
test/coophub_web/views/layout_view_test.exs
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
47
2019-12-12T20:03:10.000Z
2021-10-14T14:25:00.000Z
test/coophub_web/views/layout_view_test.exs
peth-yursick/coophub
27ef7ffcdace4eb377535f8f1caa47490b45ef22
[ "MIT" ]
28
2019-12-11T17:15:03.000Z
2021-09-17T09:19:44.000Z
defmodule CoophubWeb.LayoutViewTest do use CoophubWeb.ConnCase, async: true end
20.5
38
0.829268
7a3c86ae72c580d0379f03d2e1bed0a136c196e6
3,407
ex
Elixir
lib/credo/execution/process_definition.ex
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
lib/credo/execution/process_definition.ex
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
lib/credo/execution/process_definition.ex
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
1
2020-09-25T11:48:49.000Z
2020-09-25T11:48:49.000Z
defmodule Credo.Execution.ProcessDefinition do @moduledoc """ A `ProcessDefinition` can be used to define a process which consists of several tasks and can be called with a `Credo.Execution` struct. defmodule Credo.ExampleProcess do use Credo.Execution.ProcessDefinition run Credo.Task.Pars...
26.207692
120
0.691224
7a3d1e8828a05c2c857237ead101de3e84ea5b50
2,297
ex
Elixir
lib/exsolr/indexer.ex
heyorbit/exsolr
88ebd29e17709ea3878cb78d0f228f745877fc29
[ "MIT" ]
null
null
null
lib/exsolr/indexer.ex
heyorbit/exsolr
88ebd29e17709ea3878cb78d0f228f745877fc29
[ "MIT" ]
null
null
null
lib/exsolr/indexer.ex
heyorbit/exsolr
88ebd29e17709ea3878cb78d0f228f745877fc29
[ "MIT" ]
null
null
null
defmodule Exsolr.Indexer do @moduledoc """ Provides functions that write documents to Solr """ alias Exsolr.Config alias Exsolr.HttpResponse def add(document) do json_docs_update_url() |> HTTPoison.post(encode(document), json_headers()) |> HttpResponse.body() end @doc """ Delete the doc...
24.43617
142
0.681323
7a3d3e3c301df66b9efd910d3f95825976f5ed43
706
ex
Elixir
lib/playground/northwind/model/supplier.ex
evadne/ets-playground
de7f2e4d512be4de6510c8978c1f0b25d7720df2
[ "MIT" ]
27
2019-04-10T15:25:21.000Z
2021-11-22T14:28:56.000Z
lib/playground/northwind/model/supplier.ex
evadne/ets-playground
de7f2e4d512be4de6510c8978c1f0b25d7720df2
[ "MIT" ]
null
null
null
lib/playground/northwind/model/supplier.ex
evadne/ets-playground
de7f2e4d512be4de6510c8978c1f0b25d7720df2
[ "MIT" ]
2
2019-05-07T21:45:14.000Z
2020-07-15T11:55:17.000Z
defmodule Playground.Northwind.Model.Supplier do use Playground.Northwind.Model @primary_key {:supplier_id, :id, autogenerate: false} schema "suppliers" do field :company_name, :string field :contact_name, :string field :contact_title, :string # field :supplier_id, :integer embeds_one :addre...
25.214286
55
0.699717
7a3d738518f243330303c49d5cdcd6cc6b49aba9
2,466
ex
Elixir
clients/content/lib/google_api/content/v2/model/orders_reject_return_line_item_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_reject_return_line_item_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v2/model/orders_reject_return_line_item_request.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.774194
203
0.69708
7a3d7af1f5cbe934188c724bef58e5811c7bc24d
1,327
exs
Elixir
test/oban/plugins/pruner_test.exs
nathanl/oban
e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b
[ "Apache-2.0" ]
null
null
null
test/oban/plugins/pruner_test.exs
nathanl/oban
e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b
[ "Apache-2.0" ]
null
null
null
test/oban/plugins/pruner_test.exs
nathanl/oban
e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Plugins.PrunerTest do use Oban.Case import Ecto.Query alias Oban.Plugins.Pruner alias Oban.PluginTelemetryHandler @moduletag :integration test "historic jobs are pruned when they are older than the configured age" do PluginTelemetryHandler.attach_plugin_events("plugin-pruner-handler")...
34.921053
95
0.669932
7a3e11a33d343aa2fe4f6cb5a3319f0caa434d38
4,125
ex
Elixir
lib/tune/spotify/session.ex
nickgnd/tune
7244d2ff318c68b4712d24871ac26b009e0933ae
[ "MIT" ]
206
2020-08-23T17:50:03.000Z
2022-03-28T04:39:01.000Z
lib/tune/spotify/session.ex
nickgnd/tune
7244d2ff318c68b4712d24871ac26b009e0933ae
[ "MIT" ]
112
2020-08-21T08:26:38.000Z
2022-03-31T06:11:06.000Z
lib/tune/spotify/session.ex
mateuszkwiatkowski/tune
9a929e30fa20581349385ac8be0db5eb88036a36
[ "MIT" ]
15
2020-08-25T02:30:23.000Z
2021-12-16T14:19:35.000Z
defmodule Tune.Spotify.Session do @moduledoc """ Defines a behaviour that can be used to model an active user session against the Spotify API. Implementations should be stateful: given an initial session id and authentication credentials, the implementation should perform authentication in `c:setup/2`. If su...
45.32967
95
0.608
7a3e4012ca5ed80ffe3ed36124525fae3584ef93
916
ex
Elixir
lib/crypto_bot/crypto_compare.ex
amrfaissal/crypto_bot
cc6983230c9388572778198f21d426142ed5d793
[ "Unlicense" ]
1
2019-01-07T22:45:54.000Z
2019-01-07T22:45:54.000Z
lib/crypto_bot/crypto_compare.ex
amrfaissal/crypto_bot
cc6983230c9388572778198f21d426142ed5d793
[ "Unlicense" ]
null
null
null
lib/crypto_bot/crypto_compare.ex
amrfaissal/crypto_bot
cc6983230c9388572778198f21d426142ed5d793
[ "Unlicense" ]
null
null
null
defmodule CryptoBot.CryptoCompare do @moduledoc """ Gets the current price of any cryptocurrency in any other currency using CryptoCompare API. More info: https://min-api.cryptocompare.com/documentation """ alias CryptoBot.HTTP @behaviour CryptoBot.Provider @impl true def single_symbol_price(from_sym...
26.941176
93
0.662664
7a3ed18c8dac9129c8ffd4ec748b140adc3a790e
11,167
ex
Elixir
deps/ecto/lib/ecto/query/inspect.ex
carlosviana/blog
1dcf58c3ca40bc3a7105d75de6f51954eb44bca8
[ "MIT" ]
1
2019-11-11T21:48:20.000Z
2019-11-11T21:48:20.000Z
deps/ecto/lib/ecto/query/inspect.ex
carlosviana/blog
1dcf58c3ca40bc3a7105d75de6f51954eb44bca8
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/ecto/lib/ecto/query/inspect.ex
carlosviana/blog
1dcf58c3ca40bc3a7105d75de6f51954eb44bca8
[ "MIT" ]
null
null
null
import Inspect.Algebra import Kernel, except: [to_string: 1] alias Ecto.Query.{DynamicExpr, JoinExpr, QueryExpr, WithExpr} defimpl Inspect, for: Ecto.Query.DynamicExpr do def inspect(%DynamicExpr{binding: binding} = dynamic, opts) do joins = binding |> Enum.drop(1) |> Enum.with_index() |...
27.778607
94
0.596758
7a3f035c50284c264e1b7da6ae4a281a9722dda7
1,589
ex
Elixir
clients/docs/lib/google_api/docs/v1/model/end_of_segment_location.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/docs/lib/google_api/docs/v1/model/end_of_segment_location.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/docs/lib/google_api/docs/v1/model/end_of_segment_location.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...
33.808511
170
0.741347