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
5aca8098277d6ce679a045b122f943e7495cd471
6,501
ex
Elixir
lib/state_server/state_graph.ex
bnns/state_server
d62dcd7c8d261e057764c39370b6ac5a63f11aa4
[ "MIT" ]
8
2019-08-31T00:31:58.000Z
2021-06-11T22:12:05.000Z
lib/state_server/state_graph.ex
bnns/state_server
d62dcd7c8d261e057764c39370b6ac5a63f11aa4
[ "MIT" ]
39
2019-09-07T21:29:09.000Z
2020-05-05T15:01:30.000Z
lib/state_server/state_graph.ex
bnns/state_server
d62dcd7c8d261e057764c39370b6ac5a63f11aa4
[ "MIT" ]
2
2020-01-04T05:44:25.000Z
2020-01-19T21:44:41.000Z
defmodule StateServer.StateGraph do @moduledoc """ tools for dealing with stategraphs. State graphs take the form of a keyword list of keyword lists, wherein the outer list is a comprehensive list of the states, and the inner lists are keywords list of all the transitions, with the values of the keyword list...
29.821101
117
0.645285
5acaacf2ae5f44a0c39edf3e03466842e5e9bf25
1,087
ex
Elixir
chatter/web/router.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chatter/web/router.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chatter/web/router.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
defmodule Chatter.Router do use Chatter.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers plug Guardian.Plug.VerifySession plug Guardian.Plug.LoadResource end pipeline :browser...
25.27907
77
0.694572
5acac83cfc29715fd4b5e6d0c09ddaacff473c4b
1,351
exs
Elixir
mix.exs
tierralibre/geo_postgis
8721611be2b47484a968228311b6bde5db8027c4
[ "MIT" ]
null
null
null
mix.exs
tierralibre/geo_postgis
8721611be2b47484a968228311b6bde5db8027c4
[ "MIT" ]
null
null
null
mix.exs
tierralibre/geo_postgis
8721611be2b47484a968228311b6bde5db8027c4
[ "MIT" ]
null
null
null
defmodule GeoPostgis.Mixfile do use Mix.Project def project do [ app: :geo_postgis, version: "3.3.1", elixir: "~> 1.7", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package(), na...
23.293103
76
0.564027
5acae118d1a8e5aabead5baf88972b4c384ec0c3
193
exs
Elixir
lang/elixir/math.exs
friendlyantz/learning
c8beb342688f1c84d676125a91cc6cdb82c0166c
[ "Unlicense" ]
1
2021-11-19T10:01:04.000Z
2021-11-19T10:01:04.000Z
lang/elixir/math.exs
friendlyantz/learning
c8beb342688f1c84d676125a91cc6cdb82c0166c
[ "Unlicense" ]
59
2019-12-21T02:45:18.000Z
2022-03-30T22:53:46.000Z
lang/elixir/math.exs
friendlyantz/learning
c8beb342688f1c84d676125a91cc6cdb82c0166c
[ "Unlicense" ]
1
2021-11-19T09:26:03.000Z
2021-11-19T09:26:03.000Z
defmodule Math do def zero?(0), do: true def zero?(x) when is_integer(x), do: false end IO.puts Math.zero?(0) IO.puts Math.zero?(1) #IO.puts Math.zero?([1, 2, 3]) #IO.puts Math.zero?(0.0)
19.3
44
0.647668
5acb01e1cbd2306e9ffde12fd8407402389bfd00
1,053
ex
Elixir
lib/codes/codes_y00.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_y00.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_y00.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_Y00 do alias IcdCode.ICDCode def _Y00XXXA do %ICDCode{full_code: "Y00XXXA", category_code: "Y00", short_code: "XXXA", full_name: "Assault by blunt object, initial encounter", short_name: "Assault by blunt object, initial encounter", ...
30.970588
72
0.631529
5acb14913f96feaa581397841669002bdc5b0b9c
1,456
ex
Elixir
lib/ex_binance/private.ex
qbereau/ex_binance
42d110f209ffdd98da0d2b25910521b2403305cf
[ "MIT" ]
null
null
null
lib/ex_binance/private.ex
qbereau/ex_binance
42d110f209ffdd98da0d2b25910521b2403305cf
[ "MIT" ]
16
2021-08-01T16:08:00.000Z
2022-03-01T16:02:42.000Z
lib/ex_binance/private.ex
qbereau/ex_binance
42d110f209ffdd98da0d2b25910521b2403305cf
[ "MIT" ]
null
null
null
defmodule ExBinance.Private do import ExBinance.Rest.HTTPClient, only: [get: 3] @type credentials :: ExBinance.Credentials.t() @type shared_errors :: ExBinance.Rest.HTTPClient.shared_errors() @spec account(credentials) :: {:ok, term} | {:error, shared_errors} def account(credentials) do with {:ok, data}...
31.652174
113
0.620192
5acb1ca6b3e70b5e9ed3fd0d8259b06cfd6fc053
1,949
exs
Elixir
test/gor_project/rooms/rooms_test.exs
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
2
2018-09-03T05:42:54.000Z
2018-09-18T05:48:17.000Z
test/gor_project/rooms/rooms_test.exs
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
2
2018-09-17T16:06:06.000Z
2018-09-24T18:06:19.000Z
test/gor_project/rooms/rooms_test.exs
Shenrak/GORProject-API
1b3355ae5955d78b5a2f02177f20a599f0680604
[ "MIT" ]
1
2018-09-17T14:57:20.000Z
2018-09-17T14:57:20.000Z
defmodule GORproject.RoomsTest do use GORproject.DataCase alias GORproject.Rooms describe "rooms" do alias GORproject.Rooms.Room @valid_attrs %{depth: 42, name: "some name"} @update_attrs %{depth: 43, name: "some updated name"} @invalid_attrs %{depth: nil, name: nil} def room_fixture(attrs...
28.661765
82
0.641355
5acb6717bc8c18dcfb242dd5d6ad26caa01857ad
3,572
ex
Elixir
lib/level10/state_handoff.ex
dnsbty/level10
e5b9cddc18f3b174fb32022123527dcdfc3a8d7a
[ "MIT" ]
37
2020-05-05T22:02:51.000Z
2022-02-08T20:44:06.000Z
lib/level10/state_handoff.ex
dnsbty/level10
e5b9cddc18f3b174fb32022123527dcdfc3a8d7a
[ "MIT" ]
65
2020-03-18T01:11:58.000Z
2021-01-31T03:19:48.000Z
lib/level10/state_handoff.ex
dnsbty/level10
e5b9cddc18f3b174fb32022123527dcdfc3a8d7a
[ "MIT" ]
1
2020-05-05T22:02:57.000Z
2020-05-05T22:02:57.000Z
defmodule Level10.StateHandoff do @moduledoc """ Whenever a SIGTERM is received, this GenServer is used to store the state of the games on the local node across the entire cluster so that it can be replicated in new nodes once this one goes down. """ use GenServer require Logger alias Level10.StateHan...
25.15493
101
0.671053
5acb9e85bff5a1cf204d1a732d78ab4e02c1371f
6,453
exs
Elixir
solutions/.credo.exs
cgerling/ninety-nine-elixir-problems
45c1702a654d24e53c4010658c246185d1a04aa0
[ "Unlicense" ]
7
2019-12-06T13:36:19.000Z
2022-03-02T19:38:37.000Z
solutions/.credo.exs
cgerling/ninety-nine-elixir-problems
45c1702a654d24e53c4010658c246185d1a04aa0
[ "Unlicense" ]
null
null
null
solutions/.credo.exs
cgerling/ninety-nine-elixir-problems
45c1702a654d24e53c4010658c246185d1a04aa0
[ "Unlicense" ]
1
2021-06-27T16:53:49.000Z
2021-06-27T16:53:49.000Z
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
39.109091
88
0.615373
5acbb1088761c0fbbf80e54110e9294b036f3b45
1,275
exs
Elixir
test/checkers/postgres_test.exs
Betterez/btrz-ex-health-checker
040dd4f712268f0269cc8abef6f818b368591c5c
[ "MIT" ]
null
null
null
test/checkers/postgres_test.exs
Betterez/btrz-ex-health-checker
040dd4f712268f0269cc8abef6f818b368591c5c
[ "MIT" ]
null
null
null
test/checkers/postgres_test.exs
Betterez/btrz-ex-health-checker
040dd4f712268f0269cc8abef6f818b368591c5c
[ "MIT" ]
null
null
null
defmodule BtrzHealthchecker.Checkers.PostgresTest do use ExUnit.Case import Mox setup :set_mox_from_context test "returns 200 if postgres server responds ok" do BtrzHealthchecker.PostgresMock |> stub(:start_link, fn _opts -> {:ok, self()} end) |> stub(:query!, fn _, _, _, _ -> %Postgrex.Result{} ...
24.519231
72
0.63451
5acbfa9e9086dbf877c0e6aeaec7512730f90576
1,383
ex
Elixir
test/support/data_case.ex
HackathonSupport/auxilio
7afc7372d0fbd902580a567be4cd106ece0d5b9b
[ "MIT" ]
null
null
null
test/support/data_case.ex
HackathonSupport/auxilio
7afc7372d0fbd902580a567be4cd106ece0d5b9b
[ "MIT" ]
1
2018-02-04T02:33:55.000Z
2018-12-07T11:22:13.000Z
test/support/data_case.ex
HackathonSupport/auxilio
7afc7372d0fbd902580a567be4cd106ece0d5b9b
[ "MIT" ]
null
null
null
defmodule Auxilio.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every test...
25.611111
77
0.679682
5acbfe7f73f4bfb9b46c32b1e458098ff5042c24
298
exs
Elixir
test/cards_test.exs
leomindez/Elixir-Cards
f6cd96c2d7872055fa683ccfd344d40929c56a16
[ "MIT" ]
1
2020-09-03T18:06:25.000Z
2020-09-03T18:06:25.000Z
test/cards_test.exs
leomindez/Elixir-Cards
f6cd96c2d7872055fa683ccfd344d40929c56a16
[ "MIT" ]
null
null
null
test/cards_test.exs
leomindez/Elixir-Cards
f6cd96c2d7872055fa683ccfd344d40929c56a16
[ "MIT" ]
null
null
null
defmodule CardsTest do use ExUnit.Case doctest Cards test "create deck makes 20 cards" do deck_length = length(Cards.create_deck) assert deck_length == 20 end test "shuffling a deck randomizes it" do deck = Cards.create_deck refute deck == Cards.shuffle(deck) end end
19.866667
43
0.711409
5acc1319df888a20f7fdc27256850c460227d458
629
ex
Elixir
lib/blog_web/channels/comments_channel.ex
allefgomes/exblog
a991d2c4e6428d21b6a5bdddbbe5d39582280cb3
[ "MIT" ]
null
null
null
lib/blog_web/channels/comments_channel.ex
allefgomes/exblog
a991d2c4e6428d21b6a5bdddbbe5d39582280cb3
[ "MIT" ]
5
2021-06-19T16:43:22.000Z
2021-06-30T10:52:13.000Z
lib/blog_web/channels/comments_channel.ex
allefgomes/exblog
a991d2c4e6428d21b6a5bdddbbe5d39582280cb3
[ "MIT" ]
null
null
null
defmodule BlogWeb.CommentsChannel do use BlogWeb, :channel def join("comments:" <> post_id, _payload, socket) do comments = Blog.list_comments(post_id) {:ok, %{comments: comments}, assign(socket, :post_id, post_id)} end def handle_in(_name, attrs, socket) do response = socket.assigns.post_i...
25.16
89
0.63275
5acc16c02729f8e3e065f3d49c7bc1f4f128cb84
3,830
exs
Elixir
lib/mix/test/mix_test.exs
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
1
2021-05-05T02:11:24.000Z
2021-05-05T02:11:24.000Z
lib/mix/test/mix_test.exs
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
6
2021-03-19T12:33:21.000Z
2021-04-02T17:52:45.000Z
lib/mix/test/mix_test.exs
jwarwick/elixir
de103c0f4e3240aa38967298ccb5f483a9e40c16
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) defmodule MixTest do use MixTest.Case test "shell" do assert Mix.shell() == Mix.Shell.Process end test "env" do assert Mix.env() == :dev Mix.env(:prod) assert Mix.env() == :prod end test "debug" do refute Mix.debug?() Mix.debug(true) ...
25.03268
94
0.586162
5acc5e89cb7f54322a6bb446e3e130ce97f4aaf1
5,448
exs
Elixir
test/mailchimp/list_test.exs
pcarvsilva/mailchimp
3e15a6c0612581045f7e611b6d3e680185b9bff4
[ "MIT" ]
null
null
null
test/mailchimp/list_test.exs
pcarvsilva/mailchimp
3e15a6c0612581045f7e611b6d3e680185b9bff4
[ "MIT" ]
null
null
null
test/mailchimp/list_test.exs
pcarvsilva/mailchimp
3e15a6c0612581045f7e611b6d3e680185b9bff4
[ "MIT" ]
null
null
null
defmodule Mailchimp.ListTest do use ExUnit.Case, async: true use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney alias Mailchimp.{Account, List, Member} alias Mailchimp.List.InterestCategory setup_all do HTTPoison.start() end describe "create_or_update_member/5" do test "creates or updates member" d...
27.104478
105
0.504956
5acc95f824327c112ebefe5177c33ab42d571c00
1,028
ex
Elixir
test/support/channel_case.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
17
2017-01-02T10:38:28.000Z
2021-02-28T22:16:54.000Z
test/support/channel_case.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
null
null
null
test/support/channel_case.ex
Symbolk/social_network
11df1ba9bc19fd140b630ac2abbd4b13b42def92
[ "MIT" ]
2
2017-01-09T13:02:13.000Z
2018-06-16T22:01:53.000Z
defmodule SocialNetwork.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 and query models. Finally, if the test case interacts with the database, it canno...
23.363636
75
0.709144
5accc7f042051aee0dd1986774b8009cc30baffa
4,170
ex
Elixir
lib/cors_plug.ex
gabrielpra1/cors_plug
184f4f8464e82b0f20d7998a1f0e385fa9e2aafc
[ "Apache-2.0" ]
null
null
null
lib/cors_plug.ex
gabrielpra1/cors_plug
184f4f8464e82b0f20d7998a1f0e385fa9e2aafc
[ "Apache-2.0" ]
null
null
null
lib/cors_plug.ex
gabrielpra1/cors_plug
184f4f8464e82b0f20d7998a1f0e385fa9e2aafc
[ "Apache-2.0" ]
null
null
null
defmodule CORSPlug do import Plug.Conn def defaults do [ origin: "*", credentials: true, max_age: 1_728_000, headers: [ "Authorization", "Content-Type", "Accept", "Origin", "User-Agent", "DNT", "Cache-Control", "X-Mx-ReqTok...
25.426829
83
0.626139
5accc80810fcd6b115c0c10d8af9b8ce9b664eaa
238
ex
Elixir
apps/janus/lib/janus/utilities.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
apps/janus/lib/janus/utilities.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
apps/janus/lib/janus/utilities.ex
bornmeyer/janus_signaling
cbab905aaa844a2762d4647f9363370cecd3db22
[ "Apache-2.0" ]
null
null
null
defmodule Janus.Utilities do @spec generate_random_string(non_neg_integer) :: binary def generate_random_string(length \\ 12) do :crypto.strong_rand_bytes(length) |> Base.url_encode64 |> binary_part(0, length) end end
34
88
0.739496
5accd2137c9c823752059995c4944d14b3c7af5a
431
ex
Elixir
test/support/fixtures/activities_fixtures.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
test/support/fixtures/activities_fixtures.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
test/support/fixtures/activities_fixtures.ex
knoebber/petaller
3532db5a3688459127d2427af42e32ca0f494d44
[ "MIT" ]
null
null
null
defmodule Purple.ActivitiesFixtures do @moduledoc """ This module defines test helpers for creating entities via the `Purple.Activities` context. """ @doc """ Generate a run. """ def run_fixture(attrs \\ %{}) do {:ok, run} = attrs |> Enum.into(%{ description: "some description",...
18.73913
47
0.587007
5accd57beaf262b0d64854c8ef6ba7fea033a072
596
ex
Elixir
lib/harald/hci/commands/command.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
59
2019-02-16T00:09:58.000Z
2020-03-29T23:37:36.000Z
lib/harald/hci/commands/command.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
19
2019-02-15T22:41:43.000Z
2020-02-15T19:20:57.000Z
lib/harald/hci/commands/command.ex
RicardoTrindade/harald
3f56003265c29af0780730eb538183b50e55df2f
[ "MIT" ]
9
2020-05-07T00:02:36.000Z
2021-09-17T18:17:46.000Z
defmodule Harald.HCI.Commands.Command do @type ogf() :: non_neg_integer() @type ocf() :: non_neg_integer() @enforce_keys [ :command_op_code, :parameters ] defstruct [ :command_op_code, :parameters ] @callback encode(Command.t()) :: {:ok, binary()} | {:error, any()} @callback decode(b...
27.090909
80
0.60906
5accd8cb19cc2cb93bfc5286742dc2a25746071e
3,570
ex
Elixir
lib/wallaby/phantom/server/start_task.ex
carl-al/wallaby
a4c9811902370b15db17fc62d451035ee7464eea
[ "MIT" ]
1
2019-01-30T12:08:17.000Z
2019-01-30T12:08:17.000Z
lib/wallaby/phantom/server/start_task.ex
carl-al/wallaby
a4c9811902370b15db17fc62d451035ee7464eea
[ "MIT" ]
2
2019-04-10T08:23:27.000Z
2021-01-25T16:37:23.000Z
lib/wallaby/phantom/server/start_task.ex
carl-al/wallaby
a4c9811902370b15db17fc62d451035ee7464eea
[ "MIT" ]
1
2019-01-29T16:03:55.000Z
2019-01-29T16:03:55.000Z
defmodule Wallaby.Phantom.Server.StartTask do @moduledoc false # # Task used to completely start phantomjs during the # Wallaby.Phantom.Server.init/1 callback. That way, when the init callback # finishes, the server is ready to use. # alias Wallaby.Driver.ExternalCommand alias Wallaby.Phantom.Server.S...
30
117
0.669188
5acce106585f933a7028fa3059a4f3e041046b91
19,531
ex
Elixir
lib/myxql.ex
adrianomitre/myxql
96d098d4d6b2ccfc04a77e5da55094ea4e787c5e
[ "Apache-2.0" ]
null
null
null
lib/myxql.ex
adrianomitre/myxql
96d098d4d6b2ccfc04a77e5da55094ea4e787c5e
[ "Apache-2.0" ]
null
null
null
lib/myxql.ex
adrianomitre/myxql
96d098d4d6b2ccfc04a77e5da55094ea4e787c5e
[ "Apache-2.0" ]
null
null
null
defmodule MyXQL do @moduledoc """ MySQL driver for Elixir. """ @type conn() :: DBConnection.conn() @type start_option() :: {:protocol, :socket | :tcp} | {:socket, Path.t()} | {:socket_options, [:gen_tcp.connect_option()]} | {:hostname, String.t()} | {:port, ...
34.876786
125
0.662178
5acceb6abf29e93a36bec1302e864cf4ef6d408c
10,601
ex
Elixir
lib/rube/chainlink/event_factory.ex
fremantle-industries/rube
ceb0c6d09e8b9c029a71115710265d8b6b31cc49
[ "MIT" ]
22
2021-06-23T06:25:41.000Z
2022-02-16T19:08:33.000Z
lib/rube/chainlink/event_factory.ex
fremantle-industries/rube
ceb0c6d09e8b9c029a71115710265d8b6b31cc49
[ "MIT" ]
16
2021-06-21T17:02:13.000Z
2022-03-21T15:04:14.000Z
lib/rube/chainlink/event_factory.ex
fremantle-industries/rube
ceb0c6d09e8b9c029a71115710265d8b6b31cc49
[ "MIT" ]
2
2021-06-23T13:40:52.000Z
2021-09-17T07:25:34.000Z
defmodule Rube.Chainlink.EventFactory do @type event_signature :: String.t() @type log_subscription_config :: %{ enabled: boolean, struct: module, handler: mfa, abi: [map] } @type log_subscription_config_tuple :: {event_signature, [log_subscription_config]} @type opt :: {:added_access_enabled,...
26.046683
99
0.547401
5accf2c81b31726516210ea229c705ad6e9c58ba
2,271
ex
Elixir
apps/blunt_absinthe/lib/blunt/absinthe/type.ex
blunt-elixir/blunt
a88b88984022db7ba2110204248fdb541121e3a0
[ "MIT" ]
1
2022-03-07T11:54:47.000Z
2022-03-07T11:54:47.000Z
apps/blunt_absinthe/lib/blunt/absinthe/type.ex
elixir-cqrs/cqrs_tools
afbf82da522a10d2413547a46f316ed3aadebba5
[ "MIT" ]
null
null
null
apps/blunt_absinthe/lib/blunt/absinthe/type.ex
elixir-cqrs/cqrs_tools
afbf82da522a10d2413547a46f316ed3aadebba5
[ "MIT" ]
null
null
null
defmodule Blunt.Absinthe.Type do @moduledoc false def from_message_field(message_module, {name, :map, _field_opts}, opts) do operation = Keyword.fetch!(opts, :operation) field_name = Keyword.fetch!(opts, :field_name) error_message = "#{operation} field `#{field_name}` -- from module `#{inspect(m...
36.047619
146
0.709379
5acd214e238662f8364bf8736bb308b634edd6a5
1,928
ex
Elixir
clients/vm_migration/lib/google_api/vm_migration/v1/model/appliance_version.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/vm_migration/lib/google_api/vm_migration/v1/model/appliance_version.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/vm_migration/lib/google_api/vm_migration/v1/model/appliance_version.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "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...
34.428571
132
0.702282
5acd3e2fd38a6e84998be192878a501e1c8ea9b2
2,548
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_parameter.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_parameter.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_parameter.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...
43.931034
352
0.729984
5acd593e813721f4ab99d636e0d2c4eeb44f229f
2,535
ex
Elixir
lib/tp_link/cloud.ex
balexand/tp_link
1005822b7b2a4d4194a8d166b808d99c0542b987
[ "MIT" ]
null
null
null
lib/tp_link/cloud.ex
balexand/tp_link
1005822b7b2a4d4194a8d166b808d99c0542b987
[ "MIT" ]
3
2022-02-12T19:08:50.000Z
2022-03-23T13:21:39.000Z
lib/tp_link/cloud.ex
balexand/tp_link
1005822b7b2a4d4194a8d166b808d99c0542b987
[ "MIT" ]
null
null
null
defmodule TpLink.Cloud do @moduledoc """ For working with devices via [tplinkcloud.com](https://www.tplinkcloud.com/). """ alias TpLink.Cloud.Session @url "https://wap.tplinkcloud.com" # Call this via `TpLink.call/2` @doc false def call(%Session{} = session, device_id, command) when is_binary(device_...
23.915094
97
0.576726
5acd726481c90e2f3cdc10523497e5e331f9e2fa
1,284
exs
Elixir
test/challenge/account_test.exs
emerayo/challenge
93d41a667bf32aa4982cc0e19dbf0b7b2d9ec800
[ "MIT" ]
null
null
null
test/challenge/account_test.exs
emerayo/challenge
93d41a667bf32aa4982cc0e19dbf0b7b2d9ec800
[ "MIT" ]
3
2019-01-20T23:17:20.000Z
2019-01-21T11:46:09.000Z
test/challenge/account_test.exs
emerayo/challenge
93d41a667bf32aa4982cc0e19dbf0b7b2d9ec800
[ "MIT" ]
null
null
null
defmodule Challenge.AccountTest do use ExUnit.Case, async: true use Plug.Test alias Challenge.Account alias Challenge.Repo test "insert the account in database" do hash = %{email: "new_email@email.com", encrypted_password: "1234"} # Create the account {result, record} = Account.sign_up(hash) ...
29.860465
109
0.692368
5acd84df27e9901b97c273b55f47562f78cae9df
57,977
ex
Elixir
lib/playwright/locator.ex
kianmeng/playwright-elixir
a6b1386ecca96b1105c9e40c829cc0935c6c4fb3
[ "MIT" ]
null
null
null
lib/playwright/locator.ex
kianmeng/playwright-elixir
a6b1386ecca96b1105c9e40c829cc0935c6c4fb3
[ "MIT" ]
null
null
null
lib/playwright/locator.ex
kianmeng/playwright-elixir
a6b1386ecca96b1105c9e40c829cc0935c6c4fb3
[ "MIT" ]
null
null
null
defmodule Playwright.Locator do @moduledoc """ `Playwright.Locator` represents a view to the element(s) on the page. It captures the logic sufficient to retrieve the element at any given moment. `Locator` can be created with the `Playwright.Locator.new/2` function. See also `Playwright.Page.locator/2`. ##...
47.40556
347
0.644997
5acd857d495e5410762cd0577cb34683620a448b
2,291
ex
Elixir
deps/postgrex/lib/postgrex/scram.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/postgrex/lib/postgrex/scram.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/postgrex/lib/postgrex/scram.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
defmodule Postgrex.SCRAM do @moduledoc false @hash_length 32 @nonce_length 24 @nonce_rand_bytes div(@nonce_length * 6, 8) @nonce_prefix "n,,n=,r=" @nonce_encoded_size <<byte_size(@nonce_prefix) + @nonce_length :: signed-size(32)>> def challenge do nonce = @nonce_rand_bytes |> :crypto.stron...
35.246154
99
0.643824
5acd9dc45c6bd8be18211bb17e6cf34f41d31696
5,546
ex
Elixir
lib/storeHall/users/action.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
null
null
null
lib/storeHall/users/action.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
4
2019-07-16T06:24:42.000Z
2021-05-07T22:26:14.000Z
lib/storeHall/users/action.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
1
2018-11-23T21:13:31.000Z
2018-11-23T21:13:31.000Z
defmodule StoreHall.Users.Action do @moduledoc """ The Ratings context. """ import Ecto.Query, warn: false alias Ecto.Multi alias StoreHall.Repo alias StoreHall.Items alias StoreHall.Users.Relation alias StoreHall.Ratings alias StoreHall.Reaction alias StoreHall.Users.Label alias StoreHall.Use...
30.141304
123
0.575911
5ace5b390f11ee58032349e61c48c034b2419393
3,543
exs
Elixir
test/instream/series/validator_test.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
204
2015-06-04T06:38:57.000Z
2022-01-30T08:56:33.000Z
test/instream/series/validator_test.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
71
2015-05-24T02:08:28.000Z
2022-01-10T17:13:27.000Z
test/instream/series/validator_test.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
41
2015-09-05T21:24:04.000Z
2021-11-10T02:52:48.000Z
defmodule Instream.Series.ValidatorTest do use ExUnit.Case, async: true test "field and tag with same name raises" do assert_raise ArgumentError, ~r/same name.+conflicting_name/, fn -> defmodule FieldTagSameName do use Instream.Series series do measurement "satisfy_definition_r...
22.711538
83
0.60175
5ace747dd43ad8b48a697463a5585e56d428859c
4,668
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/advertiser.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/advertiser.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
clients/display_video/lib/google_api/display_video/v1/model/advertiser.ex
EVLedger/elixir-google-api
61edef19a5e2c7c63848f7030c6d8d651e4593d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
52.449438
180
0.727078
5acee050f082e5c3659346a37af901f27bb2549e
11,692
ex
Elixir
lib/ecto/repo.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
1
2015-08-27T13:17:10.000Z
2015-08-27T13:17:10.000Z
lib/ecto/repo.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo.ex
TanYewWei/ecto
916c6467d5f7368fa10ecd7cfcfd2d4a9924a282
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Repo do @moduledoc """ This module is used to define a repository. A repository maps to a data store, for example an SQL database. A repository must implement `conf/0` and set an adapter (see `Ecto.Adapter`) to be used for the repository. When used, the following options are allowed: * `:ad...
30.447917
87
0.6448
5acee294044618a48c2d938b9bb8671542a21c9e
680
ex
Elixir
test/support/extensions/reset_password/repo_mock.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
4
2018-05-07T16:37:15.000Z
2018-07-14T00:44:12.000Z
test/support/extensions/reset_password/repo_mock.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
test/support/extensions/reset_password/repo_mock.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
defmodule PowResetPassword.Test.RepoMock do @moduledoc false alias PowResetPassword.Test.Users.User @user %User{id: 1} def get_by(User, [id: 1], _opts), do: Process.get({:user, 1}) def get_by(User, [email: "test@example.com"], _opts), do: @user def get_by(User, [email: "invalid@example.com"], _opts), do: ...
32.380952
95
0.672059
5acee4e8c01236961aad4b8cd6a1ff26a4456513
1,842
ex
Elixir
lib/iana_data_dir.ex
aptinio/tz
8b6a243c58c451e92f8d1b56f62c3ad6885f8eae
[ "Apache-2.0" ]
null
null
null
lib/iana_data_dir.ex
aptinio/tz
8b6a243c58c451e92f8d1b56f62c3ad6885f8eae
[ "Apache-2.0" ]
null
null
null
lib/iana_data_dir.ex
aptinio/tz
8b6a243c58c451e92f8d1b56f62c3ad6885f8eae
[ "Apache-2.0" ]
null
null
null
defmodule Tz.IanaDataDir do @dir Application.get_env(:tz, :data_dir, :code.priv_dir(:tz)) @regex_tzdata_dir_name ~r/^tzdata20[0-9]{2}[a-z]$/ def dir_path(), do: @dir def tzdata_dir_name(parent_dir \\ @dir) do tz_data_dirs = File.ls!(parent_dir) |> Enum.filter(&Regex.match?(@regex_tzdata_dir_na...
22.740741
89
0.605863
5acef3c04e25a8509a79b4b1b624ee7c8adb083f
352
ex
Elixir
lib/grizzly/zwave/command_classes/version.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
lib/grizzly/zwave/command_classes/version.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
lib/grizzly/zwave/command_classes/version.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.CommandClasses.Version do @moduledoc """ Version Command Class This command class is used to get version information about the Z-Wave protocol, command classes, and vendor specific versions """ @behaviour Grizzly.ZWave.CommandClass @impl true def byte(), do: 0x86 @impl true...
20.705882
72
0.732955
5acf1f6cd4ae743ab18c5d6be5f8d63cf265642e
354
ex
Elixir
host_core/lib/host_core/oci.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/oci.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/oci.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
defmodule HostCore.Oci do def allow_latest() do case :ets.lookup(:config_table, :config) do [config: config_map] -> config_map[:allow_latest] _ -> false end end def allowed_insecure() do case :ets.lookup(:config_table, :config) do [config: config_map] -> config_map[:allowed_insecure...
22.125
59
0.644068
5acf34be2c351abcfa3af401beb92b062ca15291
253
ex
Elixir
lib/cardigan.ex
Nagasaki45/gigalixir
8d0d96ddc2eb0d44a25651cfd28c07cc401139c8
[ "MIT" ]
2
2020-05-05T06:07:16.000Z
2020-05-09T02:12:32.000Z
lib/cardigan.ex
Nagasaki45/gigalixir
8d0d96ddc2eb0d44a25651cfd28c07cc401139c8
[ "MIT" ]
21
2020-05-05T16:06:57.000Z
2020-07-07T17:25:46.000Z
lib/cardigan.ex
Nagasaki45/gigalixir
8d0d96ddc2eb0d44a25651cfd28c07cc401139c8
[ "MIT" ]
null
null
null
defmodule Cardigan do @moduledoc """ Cardigan 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
25.3
66
0.754941
5acf568af7bbbabb30e64e91237a1d3347d39d98
4,600
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/security_context.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/security_context.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/security_context.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...
66.666667
474
0.769565
5acfa47ceea491bc4eba98ead46715334ce93b36
1,965
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/model/search_read_group_sets_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/genomics/lib/google_api/genomics/v1/model/search_read_group_sets_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/search_read_group_sets_response.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.529412
271
0.754198
5acfc9bce7618a49a0733d57d7952972bd9694aa
1,047
ex
Elixir
apps/snitch_core/test/support/factory/zone.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
456
2018-09-20T02:40:59.000Z
2022-03-07T08:53:48.000Z
apps/snitch_core/test/support/factory/zone.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
273
2018-09-19T06:43:43.000Z
2021-08-07T12:58:26.000Z
apps/snitch_core/test/support/factory/zone.ex
Acrecio/avia
54d264fc179b5b5f17d174854bdca063e1d935e9
[ "MIT" ]
122
2018-09-26T16:32:46.000Z
2022-03-13T11:44:19.000Z
defmodule Snitch.Factory.Zone do @moduledoc false defmacro __using__(_opts) do quote do alias Snitch.Data.Schema.{CountryZone, StateZone, Zone, StateZoneMember, CountryZoneMember} def zone_factory do %Zone{ name: sequence(:area, fn area_code -> "area-#{area_code + 51}" end), ...
24.928571
97
0.575931
5acfd7067e213518e3b737049dc532ea18ebf51f
1,118
ex
Elixir
lib/devcontainer_example/application.ex
bruce/phoenix-devcontainer-example
1f4ec42c0c59f309057123dbb394a3ec233174f2
[ "MIT" ]
4
2021-02-24T06:14:11.000Z
2021-05-01T09:20:16.000Z
lib/devcontainer_example/application.ex
bruce/phoenix-devcontainer-example
1f4ec42c0c59f309057123dbb394a3ec233174f2
[ "MIT" ]
null
null
null
lib/devcontainer_example/application.ex
bruce/phoenix-devcontainer-example
1f4ec42c0c59f309057123dbb394a3ec233174f2
[ "MIT" ]
3
2021-02-24T20:11:56.000Z
2022-02-05T01:36:38.000Z
defmodule DevcontainerExample.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Ecto repository DevcontainerExample.Repo, # Start the Telemetry ...
31.942857
77
0.730769
5ad041e6a7465657408fbe7445dd46a1b0310933
3,955
ex
Elixir
lib/astro_ex/unit/arcsec.ex
NickHurst/astro_ex
e5ea2c587fa0d7d673d903af04f4ca1de5e87f67
[ "MIT" ]
null
null
null
lib/astro_ex/unit/arcsec.ex
NickHurst/astro_ex
e5ea2c587fa0d7d673d903af04f4ca1de5e87f67
[ "MIT" ]
null
null
null
lib/astro_ex/unit/arcsec.ex
NickHurst/astro_ex
e5ea2c587fa0d7d673d903af04f4ca1de5e87f67
[ "MIT" ]
null
null
null
defmodule AstroEx.Unit.Arcsec do @moduledoc """ Arcsec """ alias AstroEx.Unit.{Arcmin, Degrees, DMS, HMS, Radian} @enforce_keys [:value] defstruct [:value] @type t :: %__MODULE__{value: integer() | float()} @doc """ ## Examples iex> AstroEx.Unit.Arcsec.new(60) #AstroEx.Unit.Arcsec<6...
22.994186
73
0.594185
5ad08d621fee63bcf94ed03bcff56273c75d62fc
632
ex
Elixir
samples/client/petstore/elixir/lib/openapi_petstore/model/_foo_get_default_response.ex
Laurens-W/openapi-generator
bcc77d4ac4d233759278b77f1d034d7e8088fe36
[ "Apache-2.0" ]
1
2022-01-11T15:49:34.000Z
2022-01-11T15:49:34.000Z
samples/client/petstore/elixir/lib/openapi_petstore/model/_foo_get_default_response.ex
Laurens-W/openapi-generator
bcc77d4ac4d233759278b77f1d034d7e8088fe36
[ "Apache-2.0" ]
9
2021-11-01T08:59:31.000Z
2022-03-31T08:31:57.000Z
samples/client/petstore/elixir/lib/openapi_petstore/model/_foo_get_default_response.ex
Laurens-W/openapi-generator
bcc77d4ac4d233759278b77f1d034d7e8088fe36
[ "Apache-2.0" ]
1
2022-03-20T14:46:48.000Z
2022-03-20T14:46:48.000Z
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule OpenapiPetstore.Model.FooGetDefaultResponse do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"string" ] @type t :: %__...
22.571429
91
0.716772
5ad09b002941a1232b4d385427395f6d044832eb
23,591
ex
Elixir
lib/ecto/migrator.ex
jvantuyl/ecto_sql
a3432619b2837594c674215316d5f39d4a381741
[ "Apache-2.0" ]
null
null
null
lib/ecto/migrator.ex
jvantuyl/ecto_sql
a3432619b2837594c674215316d5f39d4a381741
[ "Apache-2.0" ]
null
null
null
lib/ecto/migrator.ex
jvantuyl/ecto_sql
a3432619b2837594c674215316d5f39d4a381741
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Migrator do @moduledoc """ Lower level API for managing migrations. EctoSQL provides three mix tasks for running and managing migrations: * `mix ecto.migrate` - migrates a repository * `mix ecto.rollback` - rolls back a particular migration * `mix ecto.migrations` - shows all migratio...
32.449794
109
0.660209
5ad09fbc01581aa2028930fc549f3b41a08b9a0e
3,008
ex
Elixir
lib/http_date/formatter.ex
ScrimpyCat/HTTPDate
ec579103ea149dda9719b8c792c0eac5e70e9700
[ "BSD-2-Clause" ]
null
null
null
lib/http_date/formatter.ex
ScrimpyCat/HTTPDate
ec579103ea149dda9719b8c792c0eac5e70e9700
[ "BSD-2-Clause" ]
1
2021-08-28T10:21:14.000Z
2021-08-28T10:21:14.000Z
lib/http_date/formatter.ex
ScrimpyCat/HTTPDate
ec579103ea149dda9719b8c792c0eac5e70e9700
[ "BSD-2-Clause" ]
null
null
null
defmodule HTTPDate.Formatter do @moduledoc false defp integer_to_month(1), do: "Jan" defp integer_to_month(2), do: "Feb" defp integer_to_month(3), do: "Mar" defp integer_to_month(4), do: "Apr" defp integer_to_month(5), do: "May" defp integer_to_month(6), do: "Jun" defp integer_to_month(...
32.695652
147
0.546875
5ad0bec99fad152620b3681f003c90669c15f71c
758
ex
Elixir
lib/blockfrost/response/cardano/network/network_information_response.ex
blockfrost/blockfrost-elixir
b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec
[ "Apache-2.0" ]
13
2021-08-31T03:54:37.000Z
2022-01-30T17:39:40.000Z
lib/blockfrost/response/cardano/network/network_information_response.ex
blockfrost/blockfrost-elixir
b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec
[ "Apache-2.0" ]
6
2021-08-30T04:45:52.000Z
2021-09-23T09:15:08.000Z
lib/blockfrost/response/cardano/network/network_information_response.ex
blockfrost/blockfrost-elixir
b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec
[ "Apache-2.0" ]
null
null
null
defmodule Blockfrost.Response.NetworkInformationResponse do use Blockfrost.Response.BaseSchema defmodule Supply do use Blockfrost.Response.BaseSchema @type t :: %__MODULE__{max: String.t(), total: String.t(), circulating: String.t()} embedded_schema do field(:max, :string) field(:total, :...
22.294118
87
0.671504
5ad14e43a04cddad781ea71c25c538d48da4c02b
1,117
exs
Elixir
config/config.exs
superruzafa/gotham
41139d95e0684d84bc0b9fcb2f3b19b98e3b0f26
[ "Apache-2.0" ]
1
2021-04-05T11:38:45.000Z
2021-04-05T11:38:45.000Z
config/config.exs
superruzafa/gotham
41139d95e0684d84bc0b9fcb2f3b19b98e3b0f26
[ "Apache-2.0" ]
2
2019-06-27T07:10:19.000Z
2019-06-29T09:06:54.000Z
config/config.exs
superruzafa/gotham
41139d95e0684d84bc0b9fcb2f3b19b98e3b0f26
[ "Apache-2.0" ]
1
2021-07-05T21:26:21.000Z
2021-07-05T21:26:21.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.032258
73
0.753805
5ad15fbfb1e5ab24249ccdac019e1c3c2156e005
990
ex
Elixir
lib/critter4us.ex
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
lib/critter4us.ex
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
lib/critter4us.ex
marick/elixir-critter4us
eeea901c1debf6c77969d80a55320daf909df053
[ "MIT" ]
null
null
null
defmodule Critter4us 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 = [ # Start the endpoint when the application starts supervisor(Critte...
31.935484
71
0.715152
5ad17460e855b373291d23f01fe3cff9e79593d4
14,244
ex
Elixir
lib/nostrum/struct/embed.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
637
2017-03-07T11:25:35.000Z
2022-03-31T13:37:51.000Z
lib/nostrum/struct/embed.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
372
2017-03-07T20:42:03.000Z
2022-03-30T22:46:46.000Z
lib/nostrum/struct/embed.ex
phereford/nostrum
3d273671f51d839eedac4d6e52ba9cf70720ac01
[ "MIT" ]
149
2017-03-07T12:11:58.000Z
2022-03-19T22:11:51.000Z
defmodule Nostrum.Struct.Embed do @moduledoc ~S""" Functions that work on Discord embeds. ## Building Embeds `Nostrum.Struct.Embed`s can be built using this module's builder functions or standard `Map` syntax: ```Elixir iex> import Nostrum.Struct.Embed ...> embed = ...> %Nostrum.Struct.Embed{} ...
26.377778
130
0.615277
5ad1861aafd4c3e384904c17225e3d4cdedca8ad
1,397
ex
Elixir
lib/rayray/triangle.ex
ckampfe/rayray
933f5fc095c8e959adf2f685ead4e780f766e451
[ "MIT" ]
null
null
null
lib/rayray/triangle.ex
ckampfe/rayray
933f5fc095c8e959adf2f685ead4e780f766e451
[ "MIT" ]
null
null
null
lib/rayray/triangle.ex
ckampfe/rayray
933f5fc095c8e959adf2f685ead4e780f766e451
[ "MIT" ]
null
null
null
defmodule Rayray.Triangle do alias Rayray.Material alias Rayray.Matrix alias Rayray.Tuple defstruct [ :p1, :p2, :p3, :e1, :e2, :normal, transform: Matrix.identity(), material: Material.new() ] def new(p1, p2, p3) do e1 = Tuple.subtract(p2, p1) e2 = Tuple.subtract(p3...
22.174603
71
0.614889
5ad1af5242f68dde34a94561a7347f949de8dc0b
256
ex
Elixir
test/support/inpect_protocol.ex
htdc/pinxs
809112cf16d007e58902b70272549076675d6c23
[ "MIT" ]
1
2019-06-03T06:46:02.000Z
2019-06-03T06:46:02.000Z
test/support/inpect_protocol.ex
htdc/pinxs
809112cf16d007e58902b70272549076675d6c23
[ "MIT" ]
7
2018-05-23T11:10:10.000Z
2021-12-08T00:49:23.000Z
test/support/inpect_protocol.ex
htdc/pinxs
809112cf16d007e58902b70272549076675d6c23
[ "MIT" ]
1
2018-07-02T03:09:51.000Z
2018-07-02T03:09:51.000Z
defimpl Inspect, for: Tesla.Client do @moduledoc """ Used to prevent the basic authorization headers from leaking into the logs """ def inspect(incoming, opts) do Map.put(incoming, :pre, "[FILTERED]") |> Inspect.Any.inspect(opts) end end
25.6
76
0.695313
5ad1cda94d96712c6a6df03d2e6436ae7c79177c
803
ex
Elixir
lib/transforms/de_ascii.ex
elixir-cldr/unicode_transform
c95e844e7c1bf26577ff73e1fc03746766ab8b8a
[ "Apache-2.0" ]
null
null
null
lib/transforms/de_ascii.ex
elixir-cldr/unicode_transform
c95e844e7c1bf26577ff73e1fc03746766ab8b8a
[ "Apache-2.0" ]
null
null
null
lib/transforms/de_ascii.ex
elixir-cldr/unicode_transform
c95e844e7c1bf26577ff73e1fc03746766ab8b8a
[ "Apache-2.0" ]
null
null
null
defmodule Unicode.Transform.DeAscii do use Unicode.Transform # This file is generated. Manual changes are not recommended # Source: de # Target: ASCII # Transform direction: forward # Transform alias: de-t-de-d0-ascii # define("$AE", "[Ä {A u0308}]") define("$OE", "[Ö {O u0308}]") define("$UE", "[...
25.09375
62
0.590286
5ad1dc44bbde02a4640d01dd46a9c7ed946252ba
4,429
ex
Elixir
lib/asciinema_web/router.ex
zubairshokh/asciinema-server
b882f285a84054e94e70def8f9777cc2fc3551b1
[ "Apache-2.0" ]
null
null
null
lib/asciinema_web/router.ex
zubairshokh/asciinema-server
b882f285a84054e94e70def8f9777cc2fc3551b1
[ "Apache-2.0" ]
null
null
null
lib/asciinema_web/router.ex
zubairshokh/asciinema-server
b882f285a84054e94e70def8f9777cc2fc3551b1
[ "Apache-2.0" ]
null
null
null
defmodule AsciinemaWeb.Router do use AsciinemaWeb, :router use Plug.ErrorHandler defp handle_errors(_conn, %{reason: %Ecto.NoResultsError{}}), do: nil defp handle_errors(_conn, %{reason: %Phoenix.NotAcceptableError{}}), do: nil use Sentry.Plug import AsciinemaWeb.Auth, only: [require_current_user: 2, requir...
27.509317
93
0.673967
5ad1df8fa98de557f29b290711ade1f70fd61476
118
exs
Elixir
test/darkskyx_test.exs
adherr/darkskyx
f1bc895893c97c858228f8e658ccc8b485661b31
[ "Apache-2.0" ]
16
2016-10-03T23:04:33.000Z
2020-03-04T17:54:43.000Z
test/darkskyx_test.exs
adherr/darkskyx
f1bc895893c97c858228f8e658ccc8b485661b31
[ "Apache-2.0" ]
9
2018-01-07T12:13:42.000Z
2020-04-12T23:38:26.000Z
test/darkskyx_test.exs
adherr/darkskyx
f1bc895893c97c858228f8e658ccc8b485661b31
[ "Apache-2.0" ]
3
2018-01-07T11:20:42.000Z
2018-08-22T20:05:38.000Z
defmodule DarkskyxTest do use ExUnit.Case doctest Darkskyx test "the truth" do assert 1 + 1 == 2 end end
13.111111
25
0.677966
5ad1fa8c193203907b3ccaddf2cf2068a0d1cd20
2,115
ex
Elixir
clients/script/lib/google_api/script/v1/model/version.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/script/lib/google_api/script/v1/model/version.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/script/lib/google_api/script/v1/model/version.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...
37.767857
210
0.710638
5ad1fb78933cc6ad731de813c5a3a4df69682421
1,694
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/shared_drive_file.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/classroom/lib/google_api/classroom/v1/model/shared_drive_file.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/classroom/lib/google_api/classroom/v1/model/shared_drive_file.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.88
110
0.729634
5ad2397709afb3c9ed6ff704485991a54ba1125f
424
exs
Elixir
priv/repo/migrations/20180405165331_create_module_workers.exs
nliechti/termDirectory
267b3025c14e26575c7a9483692e94a7bf29e5fe
[ "MIT" ]
1
2019-03-15T15:40:24.000Z
2019-03-15T15:40:24.000Z
priv/repo/migrations/20180405165331_create_module_workers.exs
nliechti/termDirectory
267b3025c14e26575c7a9483692e94a7bf29e5fe
[ "MIT" ]
null
null
null
priv/repo/migrations/20180405165331_create_module_workers.exs
nliechti/termDirectory
267b3025c14e26575c7a9483692e94a7bf29e5fe
[ "MIT" ]
null
null
null
defmodule TermDirectory.Repo.Migrations.CreateModuleWorkers do use Ecto.Migration def change do create table(:module_workers, primary_key: false) do add :teacher_id, references(:teachers, on_delete: :nothing) add :module_id, references(:modules, on_delete: :nothing) timestamps() end ...
26.5
65
0.724057
5ad23a1ae8c810667dd91294ca01af9717794532
904
ex
Elixir
clients/binary_authorization/lib/google_api/binary_authorization/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/binary_authorization/lib/google_api/binary_authorization/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/binary_authorization/lib/google_api/binary_authorization/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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.481481
74
0.764381
5ad252e02c775fcdc048a27839b785cd78af9da8
7,687
exs
Elixir
test/appsignal_js_plug_test.exs
tombruijn/appsignal_js_plug
e8b122549e3a91dbae7207b893708283913bb337
[ "MIT" ]
7
2017-09-25T12:13:42.000Z
2019-04-24T06:15:08.000Z
test/appsignal_js_plug_test.exs
tombruijn/appsignal_js_plug
e8b122549e3a91dbae7207b893708283913bb337
[ "MIT" ]
5
2018-04-14T14:43:58.000Z
2019-10-28T14:21:04.000Z
test/appsignal_js_plug_test.exs
tombruijn/appsignal_js_plug
e8b122549e3a91dbae7207b893708283913bb337
[ "MIT" ]
2
2018-04-13T21:07:36.000Z
2019-04-24T05:48:05.000Z
defmodule Appsignal.JSPlugTest do use ExUnit.Case use Plug.Test import ExUnit.CaptureLog require Logger doctest Appsignal.JSPlug alias Appsignal.FakeTransaction setup do FakeTransaction.start_link :ok end @default_opts [ store: :cookie, key: "foobar", encryption_salt: "encrypt...
24.877023
92
0.531026
5ad26881c9d62353ee3d55996d991f9dc11a5b03
1,058
ex
Elixir
lib/helloPhoenix/application.ex
herrkessler/helloPhoenix
be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa
[ "MIT" ]
null
null
null
lib/helloPhoenix/application.ex
herrkessler/helloPhoenix
be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa
[ "MIT" ]
null
null
null
lib/helloPhoenix/application.ex
herrkessler/helloPhoenix
be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa
[ "MIT" ]
null
null
null
defmodule HelloPhoenix.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 repository...
33.0625
90
0.723062
5ad26e67822f3e1734f8415d50228d79cef2feba
932
ex
Elixir
lib/bolt/usw/rules/burst.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
31
2018-12-06T23:12:33.000Z
2022-03-29T18:34:25.000Z
lib/bolt/usw/rules/burst.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
18
2021-06-14T19:03:26.000Z
2022-03-15T17:46:22.000Z
lib/bolt/usw/rules/burst.ex
CyberFlameGO/bolt
225e6276983bec646e7f13519df066e8e1e770ed
[ "ISC" ]
4
2018-11-07T18:52:28.000Z
2022-03-16T00:14:38.000Z
defmodule Bolt.USW.Rules.Burst do @moduledoc "Filters messages sent in quick succession." @behaviour Bolt.USW.Rule alias Bolt.USW alias Nosedrum.MessageCache.Agent, as: MessageCache alias Nostrum.Struct.{Message, Snowflake} @impl true @spec apply(Message.t(), non_neg_integer(), non_neg_integer(), Snowfl...
27.411765
82
0.656652
5ad284312dcd2a576fdedf77660629bee55ca351
1,844
ex
Elixir
kousa/lib/broth/routes/bot_auth_routes.ex
HakobiDev/dogehouse
dad9fb669f9d0c53c4b0f1cc9d5ec6d99e380d6b
[ "MIT" ]
1
2021-05-03T17:10:36.000Z
2021-05-03T17:10:36.000Z
kousa/lib/broth/routes/bot_auth_routes.ex
32Bites/dogehouse
ac70ced30a7f967979715a98a47ea2ac92f3344d
[ "MIT" ]
null
null
null
kousa/lib/broth/routes/bot_auth_routes.ex
32Bites/dogehouse
ac70ced30a7f967979715a98a47ea2ac92f3344d
[ "MIT" ]
null
null
null
defmodule Broth.Routes.BotAuth do import Plug.Conn use Plug.Router plug(Broth.Plugs.Cors) plug(Plug.Parsers, parsers: [:json], pass: ["text/*"], json_decoder: Poison ) plug(:match) plug(:dispatch) alias Onion.BotAuthRateLimit alias Beef.Users post "/auth" do with %{"apiKey" => ...
24.918919
88
0.528742
5ad29f2351a666d491ed8398de85416578b3e440
538
ex
Elixir
elixir/rocketpay/lib/rocketpay/users/sign_in.ex
HRsniper/Next-Level-Week-4
e8a4e33311513e354b6dc4efd79daa22feae1633
[ "MIT" ]
null
null
null
elixir/rocketpay/lib/rocketpay/users/sign_in.ex
HRsniper/Next-Level-Week-4
e8a4e33311513e354b6dc4efd79daa22feae1633
[ "MIT" ]
null
null
null
elixir/rocketpay/lib/rocketpay/users/sign_in.ex
HRsniper/Next-Level-Week-4
e8a4e33311513e354b6dc4efd79daa22feae1633
[ "MIT" ]
null
null
null
defmodule Rocketpay.Users.SignIn do alias Ecto.Multi alias Rocketpay.{Account, Repo, User} def run(email, password) do case Repo.get_by(User, email: email) do %User{} = user -> verify_password(user, password) # Unauthorized se nao achar o email nil -> {:error, :unauthorized} end end ...
24.454545
58
0.663569
5ad34f9de27eefd92696301d486186a62473f3ac
399
ex
Elixir
lib/notion/relation_filter.ex
dunyakirkali/notion.ex
4b03de3f0a41577672c722ac2b71c7c8d559a504
[ "Apache-2.0" ]
2
2021-05-14T07:42:14.000Z
2021-05-14T07:46:21.000Z
lib/notion/relation_filter.ex
dunyakirkali/notion.ex
4b03de3f0a41577672c722ac2b71c7c8d559a504
[ "Apache-2.0" ]
5
2021-11-22T04:11:48.000Z
2022-03-24T04:07:59.000Z
lib/notion/relation_filter.ex
dunyakirkali/notion.ex
4b03de3f0a41577672c722ac2b71c7c8d559a504
[ "Apache-2.0" ]
null
null
null
defmodule Notion.RelationFilter do @moduledoc """ RelationFilter """ @derive Jason.Encoder defstruct contains: nil, does_not_contain: nil, is_empty: nil, is_not_empty: nil @type t() :: %__MODULE__{ contains: String.t(), does_not_contain: String.t(), ...
21
39
0.568922
5ad363f2f818104403f7ab2026abf18268944c07
834
ex
Elixir
lib/distillery_packager/debian/package.ex
k-cross/distillery_packager
ac2b30e5d609d6e374247b2bc8941fcd2678a539
[ "MIT" ]
23
2017-03-23T00:40:49.000Z
2020-09-02T11:02:46.000Z
lib/distillery_packager/debian/package.ex
k-cross/distillery_packager
ac2b30e5d609d6e374247b2bc8941fcd2678a539
[ "MIT" ]
15
2017-05-09T04:22:02.000Z
2021-07-15T10:15:45.000Z
lib/distillery_packager/debian/package.ex
k-cross/distillery_packager
ac2b30e5d609d6e374247b2bc8941fcd2678a539
[ "MIT" ]
9
2017-06-27T20:02:37.000Z
2021-01-13T19:04:22.000Z
defmodule DistilleryPackager.Debian.Package do @moduledoc """ This module is used to produce the final debian package file, using the "ar" compression tool. """ alias DistilleryPackager.Utils.Config, as: ConfigUtil import Distillery.Releases.Shell, only: [debug: 1] def build(dir, config) do debug "B...
20.85
78
0.621103
5ad3752949c401563b4f97224ec08c743d053e87
505
ex
Elixir
lib/docker_test2_web/router.ex
JohnB/docker_test2
ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2
[ "Apache-2.0" ]
null
null
null
lib/docker_test2_web/router.ex
JohnB/docker_test2
ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2
[ "Apache-2.0" ]
null
null
null
lib/docker_test2_web/router.ex
JohnB/docker_test2
ea7fb76f51b5052b76cb4f9fbb164be1d966e2e2
[ "Apache-2.0" ]
null
null
null
defmodule DockerTest2Web.Router do use DockerTest2Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", DockerTest2Web ...
18.703704
39
0.683168
5ad381d52b208c7d27bb1762d72c15a1cb448225
624
ex
Elixir
lib/chat_api/files.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api/files.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api/files.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Files do @moduledoc """ The Files context. """ import Ecto.Query, warn: false alias ChatApi.Repo alias ChatApi.Files.FileUpload @spec get_file!(binary()) :: FileUpload.t() def get_file!(id), do: Repo.get!(FileUpload, id) @spec create_file(map()) :: {:ok, FileUpload.t()} | {:error,...
24.96
91
0.645833
5ad381fe9ef6c8341c52fa35041a00fa1d89eb30
1,487
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_disapproval_reasons.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_disapproval_reasons.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_disapproval_reasons.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.979167
101
0.757902
5ad3834764aa6f5109cf78ac0ca131d99a4fc119
5,532
exs
Elixir
test/postoffice_web/controllers/api/publisher_controller_test.exs
lonamiaec/postoffice
3a6f28ea0db94887faf427bf06df2b1504c00d02
[ "Apache-2.0" ]
15
2020-01-24T10:33:57.000Z
2020-10-24T07:57:14.000Z
test/postoffice_web/controllers/api/publisher_controller_test.exs
lonamiaec/postoffice
3a6f28ea0db94887faf427bf06df2b1504c00d02
[ "Apache-2.0" ]
24
2020-01-24T09:52:56.000Z
2021-02-19T09:15:12.000Z
test/postoffice_web/controllers/api/publisher_controller_test.exs
mercadona/postoffice
3a6f28ea0db94887faf427bf06df2b1504c00d02
[ "Apache-2.0" ]
5
2020-01-25T18:03:44.000Z
2021-02-23T10:07:03.000Z
defmodule PostofficeWeb.Api.PublisherControllerTest do use PostofficeWeb.ConnCase, async: true import Ecto.Query, warn: false alias Postoffice.Fixtures alias Postoffice.Messaging alias Postoffice.Messaging.Publisher alias Postoffice.Repo alias Phoenix.PubSub @valid_http_publisher_payload %{ activ...
30.395604
98
0.665944
5ad38eb1cb429c6aa92117f09a7bb0fb67597bde
2,235
ex
Elixir
lib/ecto/query/builder/distinct.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/builder/distinct.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/builder/distinct.ex
dgvncsz0f/ecto
bae06fe650328cc1060c09fe889a2de9a10edb1b
[ "Apache-2.0" ]
1
2018-09-21T16:05:29.000Z
2018-09-21T16:05:29.000Z
import Kernel, except: [apply: 2] defmodule Ecto.Query.Builder.Distinct do @moduledoc false alias Ecto.Query.Builder @doc """ Escapes a list of quoted expressions. iex> escape(quote do true end, [], __ENV__) {true, %{}} iex> escape(quote do [x.x, 13] end, [x: 0], __ENV__) {[asc: {:{...
28.653846
86
0.604474
5ad3ef09e604cef4b9f1e29d2200790e65b696ad
1,422
ex
Elixir
lib/budget_app/operations/update_record_by_id.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
lib/budget_app/operations/update_record_by_id.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
lib/budget_app/operations/update_record_by_id.ex
djordje/budget_app.backend
3febe64892e700f3174b8eddbc4b96260c444308
[ "MIT" ]
null
null
null
defmodule BudgetApp.Operations.UpdateRecordById do defmacro __using__(opts) do alias BudgetApp.Repo alias BudgetApp.Components.FilterFields unless opts[:model] do raise "`:model` must be defined!" end model = opts[:model] updatable_fields = opts[:updatable_fields] ...
33.857143
101
0.630098
5ad421fa8be653d81c8348ffbc3e2084b5ecd2fb
1,302
ex
Elixir
lib/bamboo/adapter.ex
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
1,845
2016-03-29T23:36:36.000Z
2022-03-31T19:23:38.000Z
lib/bamboo/adapter.ex
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
407
2016-03-29T14:55:19.000Z
2022-02-02T13:53:50.000Z
lib/bamboo/adapter.ex
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
361
2016-03-31T13:33:22.000Z
2022-02-25T12:38:43.000Z
defmodule Bamboo.Adapter do @moduledoc ~S""" Behaviour for creating Bamboo adapters All recipients in the `Bamboo.Email` struct will be normalized to a two item tuple of `{name, address}` when delivered through your mailer. For example, `elem(email.from, 0)` would return the name and `elem(email.from, 1)` wo...
29.590909
93
0.654378
5ad42283123cb8cbd1baa2f3ac5e0abcc1c0adb0
1,191
exs
Elixir
test/lib/openflow/ofp_table_stats_test.exs
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
5
2019-05-25T02:25:13.000Z
2020-10-06T17:00:03.000Z
test/lib/openflow/ofp_table_stats_test.exs
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
5
2018-03-29T14:42:10.000Z
2019-11-19T07:03:09.000Z
test/lib/openflow/ofp_table_stats_test.exs
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
1
2019-03-30T20:48:27.000Z
2019-03-30T20:48:27.000Z
defmodule OfpTableStatsTest do use ExUnit.Case describe "Openflow.Multipart.Table.Request" do test "with default values" do table_stats = %Openflow.Multipart.Table.Request{} |> Map.to_list() |> Openflow.Multipart.Table.Request.new() |> Openflow.to_binary() |> Openf...
23.82
60
0.542401
5ad4613c5094a82f8804436cf40de11d4bb9db2a
205
exs
Elixir
priv/repo/migrations/20180816030333_add_groups_table.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
12
2019-05-10T21:48:06.000Z
2021-11-07T14:04:30.000Z
priv/repo/migrations/20180816030333_add_groups_table.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
2
2019-05-14T19:07:10.000Z
2019-05-20T21:06:27.000Z
priv/repo/migrations/20180816030333_add_groups_table.exs
sb8244/okr_app_pub
933872107bd13390a0a5ea119d7997d4cb5ea7db
[ "MIT" ]
3
2019-05-19T18:24:20.000Z
2019-10-31T20:29:12.000Z
defmodule OkrApp.Repo.Migrations.AddGroupsTable do use Ecto.Migration def change do create table("groups") do add(:name, :text, null: false) timestamps(null: false) end end end
17.083333
50
0.678049
5ad466bd2a248fa7b6d865b54d2e3ad5eab1d37b
62
exs
Elixir
apps/day15/test/day15_test.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
2
2019-12-21T21:21:04.000Z
2019-12-27T07:00:19.000Z
apps/day15/test/day15_test.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
null
null
null
apps/day15/test/day15_test.exs
jwarwick/aoc_2019
04229b86829b72323498b57a6649fcc6f7c96406
[ "MIT" ]
null
null
null
defmodule Day15Test do use ExUnit.Case doctest Day15 end
10.333333
22
0.774194
5ad4691e5dd7e4ea6c4c14958e4295170b6acdd5
107
ex
Elixir
lib/consensus/validator.ex
dowlandaiello/excash
0cc183643389b70eb85d6ac3cab32ded66fe5814
[ "MIT" ]
null
null
null
lib/consensus/validator.ex
dowlandaiello/excash
0cc183643389b70eb85d6ac3cab32ded66fe5814
[ "MIT" ]
null
null
null
lib/consensus/validator.ex
dowlandaiello/excash
0cc183643389b70eb85d6ac3cab32ded66fe5814
[ "MIT" ]
null
null
null
defmodule Consensus.Validator do @moduledoc """ Implements logic for verifying transactions. """ end
17.833333
46
0.747664
5ad482cb5ede179772953a1536e2a937b0c9acd1
311
exs
Elixir
priv/repo/migrations/20151019020854_create_comments.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
priv/repo/migrations/20151019020854_create_comments.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
priv/repo/migrations/20151019020854_create_comments.exs
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Accent.Repo.Migrations.CreateComments do use Ecto.Migration def change do create table(:comments, primary_key: false) do add(:id, :uuid, primary_key: true) add(:text, :text) add(:translation_id, references(:translations, type: :uuid)) timestamps() end end end
20.733333
66
0.675241
5ad491ee74ef99eb79081641010c2a491bc1e547
405
exs
Elixir
priv/repo/migrations/20180123000925_create_communities_posts.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
priv/repo/migrations/20180123000925_create_communities_posts.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
priv/repo/migrations/20180123000925_create_communities_posts.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.CreateCommunitiesPosts do use Ecto.Migration def change do create table(:communities_posts) do add(:community_id, references(:communities, on_delete: :delete_all), null: false) add(:post_id, references(:cms_posts, on_delete: :delete_all), null: false) en...
31.153846
87
0.745679
5ad4a2abe8e6d7b1f75f26e810b4c0426e3bf072
3,039
ex
Elixir
lib/adoptoposs_web/live/project_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
120
2020-03-30T13:58:40.000Z
2022-03-30T10:17:50.000Z
lib/adoptoposs_web/live/project_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
34
2020-04-01T23:11:59.000Z
2022-03-13T08:14:37.000Z
lib/adoptoposs_web/live/project_live.ex
paulgoetze/adoptoposs
1a143917ac5a192f12054fff4410a1ee18935353
[ "MIT" ]
16
2020-04-24T17:14:23.000Z
2022-03-27T22:32:48.000Z
defmodule AdoptopossWeb.ProjectLive do use AdoptopossWeb, :live_view alias Adoptoposs.{Submissions, Accounts} alias AdoptopossWeb.ProjectView @impl true def render(assigns) do Phoenix.View.render(ProjectView, "index.html", assigns) end @impl true def mount_logged_in(_params, session, socket) do ...
28.138889
88
0.664363
5ad4cf4bde16e57ac2931dac5f2f577127a0b877
525
ex
Elixir
lib/tlotc/services/auto_reaction_add.ex
JM4ier/tlotc
14a6514c2607194a98c42c174751efdd5657f333
[ "MIT" ]
null
null
null
lib/tlotc/services/auto_reaction_add.ex
JM4ier/tlotc
14a6514c2607194a98c42c174751efdd5657f333
[ "MIT" ]
null
null
null
lib/tlotc/services/auto_reaction_add.ex
JM4ier/tlotc
14a6514c2607194a98c42c174751efdd5657f333
[ "MIT" ]
null
null
null
defmodule TLotC.Services.AutoReactionAdd do alias Nostrum.Api alias TLotC.EventManager use Agent def start_link(_opts) do EventManager.register(:MESSAGE_CREATE, __MODULE__, :handle) Agent.start_link(fn -> {} end, name: __MODULE__) end def handle(msg) do if msg.channel_id == 867101188205707274...
26.25
78
0.721905
5ad51f37f15170833a45bdeb529c8c50666f1cfe
20,446
ex
Elixir
lib/mix/lib/mix/utils.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
19,291
2015-01-01T02:42:49.000Z
2022-03-31T21:01:40.000Z
lib/mix/lib/mix/utils.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
8,082
2015-01-01T04:16:23.000Z
2022-03-31T22:08:02.000Z
lib/mix/lib/mix/utils.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
3,472
2015-01-03T04:11:56.000Z
2022-03-29T02:07:30.000Z
defmodule Mix.Utils do @moduledoc false # For bootstrapping purposes @compile {:no_warn_undefined, Logger} @doc """ Gets the Mix home. It uses the the locations `MIX_HOME`, `XDG_DATA_HOME/mix`, `~/.mix` with decreasing priority. Developers should only store entries in the `MIX_HOME` directory whic...
26.657106
103
0.613421
5ad540b5e6572ef9515da8f605f81cdeb7bbb881
375
exs
Elixir
config/config.exs
olafura/ecto_ip_range
44c06ca26aafc942a8173941a907c138ae2213bc
[ "Apache-2.0" ]
null
null
null
config/config.exs
olafura/ecto_ip_range
44c06ca26aafc942a8173941a907c138ae2213bc
[ "Apache-2.0" ]
null
null
null
config/config.exs
olafura/ecto_ip_range
44c06ca26aafc942a8173941a907c138ae2213bc
[ "Apache-2.0" ]
null
null
null
use Mix.Config if Mix.env() == :test do alias EctoIPRange.TestRepo config :ecto_ip_range, ecto_repos: [TestRepo] config :ecto_ip_range, TestRepo, username: "postgres", password: "postgres", database: "ecto_ip_range", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox, types: EctoIPR...
20.833333
47
0.701333
5ad5988d5f457b1fc2d9245fe2ad80db96c78951
1,350
ex
Elixir
lib/asciinema_web/views/error_helpers.ex
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
893
2017-09-14T14:18:29.000Z
2022-03-31T21:45:08.000Z
lib/asciinema_web/views/error_helpers.ex
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
103
2017-09-29T22:15:33.000Z
2022-03-27T21:47:43.000Z
lib/asciinema_web/views/error_helpers.ex
remerle/asciinema-server
895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57
[ "Apache-2.0" ]
152
2017-09-07T12:43:15.000Z
2022-03-10T18:47:47.000Z
defmodule AsciinemaWeb.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(:small, translate_error(er...
28.723404
81
0.667407
5ad5eaca1205fe3e23887e3648c8b7fa162000f8
261
ex
Elixir
lib/swoosh.ex
craigp/swoosh
83364b3e9029988e585d4cc0c4d5ec1ccfb4930a
[ "MIT" ]
null
null
null
lib/swoosh.ex
craigp/swoosh
83364b3e9029988e585d4cc0c4d5ec1ccfb4930a
[ "MIT" ]
null
null
null
lib/swoosh.ex
craigp/swoosh
83364b3e9029988e585d4cc0c4d5ec1ccfb4930a
[ "MIT" ]
null
null
null
defmodule Swoosh do @moduledoc File.read!("README.md") |> String.replace("# Swoosh\n\n", "", global: false) @version "1.3.0" @doc false def version, do: @version @doc false def json_library, do: Application.fetch_env!(:swoosh, :json_library) end
21.75
89
0.678161
5ad60e1a8de72494fcee2f48b3f3f01db1269001
1,915
exs
Elixir
playground_application/config/prod.exs
ajsharma/phoenix_playground
695f6fbd8d309615e389a76f0bd8ad22eab58304
[ "MIT" ]
null
null
null
playground_application/config/prod.exs
ajsharma/phoenix_playground
695f6fbd8d309615e389a76f0bd8ad22eab58304
[ "MIT" ]
null
null
null
playground_application/config/prod.exs
ajsharma/phoenix_playground
695f6fbd8d309615e389a76f0bd8ad22eab58304
[ "MIT" ]
null
null
null
import Config # For production, don't forget to configure the url host # to something meaningful, Phoenix uses this information # when generating URLs. # # Note we also include the path to a cache manifest # containing the digested version of static files. This # manifest is generated by the `mix phx.digest` task, # w...
36.826923
72
0.717493
5ad62d87a1924e13fe221632825fdfc63d57be92
847
ex
Elixir
lib/ex_football/client.ex
thienlhh/ex_football
2bfac55b762854b0c85530123eae24a397709820
[ "MIT" ]
1
2019-02-11T20:50:35.000Z
2019-02-11T20:50:35.000Z
lib/ex_football/client.ex
thienlhh/ex_football
2bfac55b762854b0c85530123eae24a397709820
[ "MIT" ]
null
null
null
lib/ex_football/client.ex
thienlhh/ex_football
2bfac55b762854b0c85530123eae24a397709820
[ "MIT" ]
null
null
null
defmodule ExFootball.Client do @moduledoc """ Struct which represents the ExFootball client """ defstruct api_token: nil @end_point "http://api.football-data.org/v2" @doc """ Create new Exfootball client ## Examples: ``` iex> client = ExFootball.Client.new("api_token") %ExFootball.Client{api_to...
18.822222
55
0.659976
5ad63c7944fef4d3762fbed95a21152a6e7c9871
1,161
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/connection.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.181818
77
0.74677
5ad64cd906a86780992495f3943975bdc041d533
1,052
ex
Elixir
lib/interfaces/i_inventory_service.ex
kouwasi/steam_ex
b06469ad5bce8da60b4436f842b57287cb1db18f
[ "MIT" ]
2
2018-08-25T10:50:04.000Z
2018-10-02T02:05:01.000Z
lib/interfaces/i_inventory_service.ex
kouwasi/steam_ex
b06469ad5bce8da60b4436f842b57287cb1db18f
[ "MIT" ]
null
null
null
lib/interfaces/i_inventory_service.ex
kouwasi/steam_ex
b06469ad5bce8da60b4436f842b57287cb1db18f
[ "MIT" ]
1
2018-10-02T02:05:04.000Z
2018-10-02T02:05:04.000Z
defmodule SteamEx.IInventoryService do @moduledoc """ This is the interface used to access the [Steam Inventory Service](https://partner.steamgames.com/doc/features/inventory). **NOTE:** This is a Service interface, methods in this interface should be called with the `input_json` parameter. For more info on h...
40.461538
163
0.707224
5ad6d4c247d984528172540753d5e965a07a45b0
445
exs
Elixir
mix.exs
functional-bitcoin/library
58ae7717d473baca3408bc6f920904db78dd9eaf
[ "MIT" ]
6
2019-02-13T21:58:50.000Z
2019-08-07T12:05:20.000Z
mix.exs
operate-bsv/op_library
58ae7717d473baca3408bc6f920904db78dd9eaf
[ "MIT" ]
null
null
null
mix.exs
operate-bsv/op_library
58ae7717d473baca3408bc6f920904db78dd9eaf
[ "MIT" ]
null
null
null
defmodule Operate.Library do use Mix.Project def project do [ app: :op_library, version: "0.0.1", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:operate, "~> 0.1.0-b...
19.347826
76
0.541573
5ad6e1667804ccf9d0e5b86b5e97e863f4b11128
1,237
ex
Elixir
lib/cassandra_graphql_web/views/error_helpers.ex
sgeos/cassandra-graphql
9d566c23d6499ff7a3a6f05fec3eef2dce54bc0d
[ "BSD-3-Clause" ]
null
null
null
lib/cassandra_graphql_web/views/error_helpers.ex
sgeos/cassandra-graphql
9d566c23d6499ff7a3a6f05fec3eef2dce54bc0d
[ "BSD-3-Clause" ]
null
null
null
lib/cassandra_graphql_web/views/error_helpers.ex
sgeos/cassandra-graphql
9d566c23d6499ff7a3a6f05fec3eef2dce54bc0d
[ "BSD-3-Clause" ]
null
null
null
defmodule CassandraGraphqlWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # When using gettext, we typically pass the strings we want # to translate as a st...
36.382353
85
0.678254
5ad726fe2ded981ec3735c4eed2b16252f62e1b3
2,998
ex
Elixir
clients/health_care/lib/google_api/health_care/v1/model/attribute_definition.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/health_care/lib/google_api/health_care/v1/model/attribute_definition.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1/model/attribute_definition.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "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...
48.354839
293
0.720814
5ad75d843cc90fc27899470f627fa127411af199
209
ex
Elixir
lib/falco/compressor/gzip.ex
sleipnir/grpc
5d4a2e3e721af4be64ad64fe473de4e584c2c0da
[ "Apache-2.0" ]
5
2022-02-08T13:51:08.000Z
2022-02-09T14:12:47.000Z
lib/falco/compressor/gzip.ex
sleipnir/grpc
5d4a2e3e721af4be64ad64fe473de4e584c2c0da
[ "Apache-2.0" ]
1
2022-02-08T15:46:07.000Z
2022-02-08T15:46:07.000Z
lib/falco/compressor/gzip.ex
sleipnir/grpc
5d4a2e3e721af4be64ad64fe473de4e584c2c0da
[ "Apache-2.0" ]
null
null
null
defmodule Falco.Compressor.Gzip do @behaviour Falco.Compressor def name do "gzip" end def compress(data) do :zlib.gzip(data) end def decompress(data) do :zlib.gunzip(data) end end
13.0625
34
0.674641
5ad761173413baac627ff30d75760bd12c8cee03
2,721
exs
Elixir
test/groupher_server_web/query/cms/articles/post_test.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
2
2018-03-26T08:56:21.000Z
2018-07-02T22:34:51.000Z
test/groupher_server_web/query/cms/articles/post_test.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2018-03-21T03:40:50.000Z
2018-07-10T06:33:10.000Z
test/groupher_server_web/query/cms/articles/post_test.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
null
null
null
defmodule GroupherServer.Test.Query.Articles.Post do use GroupherServer.TestTools alias GroupherServer.CMS setup do {:ok, user} = db_insert(:user) {:ok, post} = db_insert(:post) {:ok, community} = db_insert(:community) guest_conn = simu_conn(:guest) user_conn = simu_conn(:user, user) p...
29.576087
93
0.612275
5ad7b3dbd89f7c8eec5c0617e27bbceb2563dc90
207
ex
Elixir
lib/phone/sl.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
97
2016-04-05T13:08:41.000Z
2021-12-25T13:08:34.000Z
lib/phone/sl.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
70
2016-06-14T00:56:00.000Z
2022-02-10T19:43:14.000Z
lib/phone/sl.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
31
2016-04-21T22:26:12.000Z
2022-01-24T21:40:00.000Z
defmodule Phone.SL do @moduledoc false use Helper.Country def regex, do: ~r/^(232)(..)(.{6})/ def country, do: "Sierra Leone" def a2, do: "SL" def a3, do: "SLE" matcher(:regex, ["232"]) end
15.923077
37
0.594203
5ad7ba43087bc7d8438ba53d56834e295e564a5b
232
ex
Elixir
gherkin/elixir/lib/gherkin/table_cell.ex
endersstocker/cucumber
5ad94a9ab5f87bca6ee23a6b4212705cdc58753d
[ "MIT" ]
null
null
null
gherkin/elixir/lib/gherkin/table_cell.ex
endersstocker/cucumber
5ad94a9ab5f87bca6ee23a6b4212705cdc58753d
[ "MIT" ]
null
null
null
gherkin/elixir/lib/gherkin/table_cell.ex
endersstocker/cucumber
5ad94a9ab5f87bca6ee23a6b4212705cdc58753d
[ "MIT" ]
null
null
null
defmodule Gherkin.TableCell do alias Gherkin.Location @type t :: %__MODULE__{location: Location.t(), type: :TableCell, value: String.t()} @enforce_keys [:location, :value] defstruct @enforce_keys ++ [type: :TableCell] end
25.777778
85
0.715517
5ad7e7aedc8a22897d70cf74121475a0cf44c64a
1,362
exs
Elixir
test/dynamo/http/cookies_test.exs
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
415
2015-01-04T15:59:47.000Z
2022-02-02T21:12:46.000Z
test/dynamo/http/cookies_test.exs
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
9
2015-02-06T16:09:46.000Z
2018-08-08T06:33:50.000Z
test/dynamo/http/cookies_test.exs
aforward-oss/dynamo
c8d47dab7de3ce730d4ec314d23e171051d5eff7
[ "Apache-2.0" ]
44
2015-02-01T15:49:50.000Z
2021-11-29T09:08:37.000Z
defmodule Dynamo.HTTP.CookiesTest do use ExUnit.Case, async: true use Dynamo.HTTP.Case import Dynamo.HTTP.Cookies test :get_cookie do conn = conn(:GET, "/").put_req_cookie(:foo, "bar") .put_req_cookie(:baz, "bat").fetch(:cookies) assert get_cookie(conn, :foo) == "bar" assert get_cookie...
28.978723
73
0.604993
5ad7f670b385edd9b3981919bbf1669eb9b1eda9
2,804
ex
Elixir
lib/course_planner_web/controllers/volunteer_controller.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
38
2017-04-11T13:37:38.000Z
2021-05-22T19:35:36.000Z
lib/course_planner_web/controllers/volunteer_controller.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
226
2017-04-07T13:14:14.000Z
2018-03-08T16:50:11.000Z
lib/course_planner_web/controllers/volunteer_controller.ex
digitalnatives/course_planner
27b1c8067edc262685e9c4dcbfcf82633bc8b8dc
[ "MIT" ]
7
2017-08-30T23:58:13.000Z
2021-03-28T11:50:45.000Z
defmodule CoursePlannerWeb.VolunteerController do @moduledoc false use CoursePlannerWeb, :controller alias CoursePlanner.{Accounts.Users, Accounts.User, Accounts.Volunteers, Auth.Helper} alias CoursePlannerWeb.{Router.Helpers, Auth.UserEmail} import Canary.Plugs ...
32.229885
98
0.616976
5ad7faa75f6c5f214cab4865a6019fdf64fa0596
2,532
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/metro.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/metro.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/metro.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.953846
174
0.67891