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
ab314c9cb95147d700e4d84fbe20f3748cb3fb9d
1,754
ex
Elixir
lib/smile_web/controllers/user_controller.ex
reagan-chita/smile
c1c80679b4e14fd77f7fdc00bc7e368c514baedf
[ "MIT" ]
null
null
null
lib/smile_web/controllers/user_controller.ex
reagan-chita/smile
c1c80679b4e14fd77f7fdc00bc7e368c514baedf
[ "MIT" ]
1
2021-05-11T13:24:22.000Z
2021-05-11T13:24:22.000Z
lib/smile_web/controllers/user_controller.ex
reagan-chita/smile
c1c80679b4e14fd77f7fdc00bc7e368c514baedf
[ "MIT" ]
null
null
null
defmodule SmileWeb.UserController do use SmileWeb, :controller alias Smile.Accounts alias Smile.Accounts.User def index(conn, _params) do users = Accounts.list_users() render(conn, "index.html", users: users) end def new(conn, _params) do changeset = Accounts.change_user(%User{}) render(c...
27.40625
67
0.624857
ab314dc0648170390195f82c853e231d478a8482
777
exs
Elixir
test/cadet/assessments/query_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
null
null
null
test/cadet/assessments/query_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
test/cadet/assessments/query_test.exs
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule Cadet.Assessments.QueryTest do use Cadet.DataCase alias Cadet.Assessments.Query test "all_assessments_with_max_grade" do assessment = insert(:assessment) insert_list(5, :question, assessment: assessment, max_grade: 200) result = Query.all_assessments_with_max_grade() |> where(...
24.28125
69
0.689833
ab3157900e640f019a9cc3890dd428ea088ace5c
306
ex
Elixir
lib/sanbase/cache/rehydrating_cache/store.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
lib/sanbase/cache/rehydrating_cache/store.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
1
2021-07-24T16:26:03.000Z
2021-07-24T16:26:03.000Z
lib/sanbase/cache/rehydrating_cache/store.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
null
null
null
defmodule Sanbase.Cache.RehydratingCache.Store do def name(name), do: :"__rehydrating_cache_store_#{name}__" def put(store, key, data, ttl) when is_integer(ttl) and ttl > 0 do Sanbase.Cache.store(store, {key, ttl}, data) end def get(store, key) do Sanbase.Cache.get(store, key) end end
25.5
68
0.705882
ab315c49fa44352c68fdeb0b4dc39e600d548292
1,646
ex
Elixir
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/get_iam_policy_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/get_iam_policy_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/get_iam_policy_request.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.021277
182
0.759417
ab3194afe864ee692320fd9560f8fca2817715f5
1,778
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_normalized_vertex.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_normalized_vertex.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_normalized_vertex.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.327273
144
0.727784
ab3194e94ed20677213069703c36d691e9c1ac8a
43
exs
Elixir
BasicOperators/index.exs
joaodematejr/elixir
63e218270faf2602308aaef10fcce38d9c4c9195
[ "Apache-2.0" ]
null
null
null
BasicOperators/index.exs
joaodematejr/elixir
63e218270faf2602308aaef10fcce38d9c4c9195
[ "Apache-2.0" ]
null
null
null
BasicOperators/index.exs
joaodematejr/elixir
63e218270faf2602308aaef10fcce38d9c4c9195
[ "Apache-2.0" ]
null
null
null
name_var = "foo" <> "bar" IO.puts name_var
14.333333
25
0.651163
ab31c57de97ab52a8129a65f4e2fd2a593c71ec2
1,427
ex
Elixir
apps/reaper/lib/reaper/url_builder.ex
PillarTechnology/smartcitiesdata
9420a26820e38267513cd1bfa82c7f5583222bb1
[ "Apache-2.0" ]
1
2021-04-05T19:17:18.000Z
2021-04-05T19:17:18.000Z
apps/reaper/lib/reaper/url_builder.ex
AWHServiceAccount/smartcitiesdata
6957afac12809288640b6ba6b576c3016e6033d7
[ "Apache-2.0" ]
11
2020-01-07T15:43:42.000Z
2020-12-22T15:23:25.000Z
apps/reaper/lib/reaper/url_builder.ex
jakeprem/smartcitiesdata
da309ac0d2261527278951cbae88604455207589
[ "Apache-2.0" ]
null
null
null
defmodule Reaper.UrlBuilder do alias Reaper.Collections.Extractions @moduledoc """ This module builds a URL to download a source file """ @doc """ Returns a string containing the URL with all query string parameters based on the `Reaper.ReaperConfig` """ @spec build(SmartCity.Dataset.t()) :: String.t(...
27.980392
107
0.702873
ab321d0161bb161f329156376653631313ba7bdf
1,738
ex
Elixir
lib/bitcoin/protocol/types/tx_input.ex
rosettacash/book
2937c90e2c3595984e6f5eee91eb454f03b82ef0
[ "Apache-2.0" ]
null
null
null
lib/bitcoin/protocol/types/tx_input.ex
rosettacash/book
2937c90e2c3595984e6f5eee91eb454f03b82ef0
[ "Apache-2.0" ]
null
null
null
lib/bitcoin/protocol/types/tx_input.ex
rosettacash/book
2937c90e2c3595984e6f5eee91eb454f03b82ef0
[ "Apache-2.0" ]
null
null
null
defmodule Bitcoin.Protocol.Types.TxInput do alias Bitcoin.Protocol.Types.VarString alias Bitcoin.Protocol.Types.Outpoint # The previous output transaction reference, as an OutPoint structure defstruct previous_output: %Outpoint{}, # Computational Script for confirming transaction authorization ...
34.76
161
0.653625
ab326469e144e0da90b4307891c1c2a2ae5eb3ca
3,090
ex
Elixir
lib/tortoise/package/subscribe.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
272
2018-04-22T22:47:35.000Z
2022-03-01T05:22:02.000Z
lib/tortoise/package/subscribe.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
120
2018-04-22T20:42:04.000Z
2022-01-20T23:12:13.000Z
lib/tortoise/package/subscribe.ex
lucaong/tortoise
fd2f83527937ba39b47f58eb8d392a1aa927e28f
[ "Apache-2.0" ]
58
2018-04-24T06:28:36.000Z
2022-02-09T06:55:42.000Z
defmodule Tortoise.Package.Subscribe do @moduledoc false @opcode 8 alias Tortoise.Package @type qos :: 0 | 1 | 2 @type topic :: {binary(), qos} @type topics :: [topic] @opaque t :: %__MODULE__{ __META__: Package.Meta.t(), identifier: Tortoise.package_identifier(), t...
27.837838
85
0.556311
ab326cab4f105edef717cb8c006b6ab7edccc5d7
104
ex
Elixir
lib/rdf/xsd/facets/max_length.ex
pukkamustard/rdf-ex
c459d8e7fa548fdfad82643338b68decf380a296
[ "MIT" ]
53
2017-06-25T22:20:44.000Z
2020-04-27T17:27:51.000Z
lib/rdf/xsd/facets/max_length.ex
pukkamustard/rdf-ex
c459d8e7fa548fdfad82643338b68decf380a296
[ "MIT" ]
7
2017-06-25T00:29:11.000Z
2020-03-11T00:23:47.000Z
lib/rdf/xsd/facets/max_length.ex
pukkamustard/rdf-ex
c459d8e7fa548fdfad82643338b68decf380a296
[ "MIT" ]
3
2020-07-03T13:25:36.000Z
2021-04-04T12:33:51.000Z
defmodule RDF.XSD.Facets.MaxLength do use RDF.XSD.Facet, name: :max_length, type: non_neg_integer end
26
61
0.788462
ab327798b748402192b8fbd2d8eb3cfc2c61d3c4
2,875
ex
Elixir
lib/mongo/id_server.ex
aenglisc/elixir-mongodb-driver
a8a72fbb8690f44ac349e0449616ac2cfbf50640
[ "Apache-2.0" ]
140
2019-04-10T09:23:53.000Z
2022-03-27T12:37:02.000Z
lib/mongo/id_server.ex
aenglisc/elixir-mongodb-driver
a8a72fbb8690f44ac349e0449616ac2cfbf50640
[ "Apache-2.0" ]
99
2019-04-11T07:46:45.000Z
2022-03-31T07:23:28.000Z
lib/mongo/id_server.ex
aenglisc/elixir-mongodb-driver
a8a72fbb8690f44ac349e0449616ac2cfbf50640
[ "Apache-2.0" ]
45
2019-07-15T07:06:21.000Z
2021-11-24T09:23:21.000Z
defmodule Mongo.IdServer do @moduledoc false # An ObjectId consists of a machine id, process id, seconds since unix epoch # and a counter. The counter is used to differentiate between generated # ObjectIds during a single second. # # A counter is generated for each second in an hour, the counter is # ini...
31.944444
80
0.702261
ab3285624823b046796bbf807962bf39cceb3584
6,155
ex
Elixir
lib/conduit/blog/projectors/article.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
null
null
null
lib/conduit/blog/projectors/article.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
null
null
null
lib/conduit/blog/projectors/article.ex
rudyyazdi/conduit
8defa60962482fb81f5093ea5d58b71a160db3c4
[ "MIT" ]
null
null
null
defmodule Conduit.Blog.Projectors.Article do use Commanded.Projections.Ecto, name: "Blog.Projectors.Article", consistency: :strong alias Conduit.Blog.Projections.{Article, Author, Comment, FavoritedArticle, Feed} alias Conduit.Blog.Events.{ ArticleCommented, ArticleFavorited, ArticlePublishe...
29.170616
118
0.668887
ab3295517ad42002ed15063b720352acfad98ce9
1,565
ex
Elixir
lib/graphql/plug.ex
cgiffard/plug_graphql
588fcef49ae429fb12e3241a28bbcc35c73eb5fb
[ "BSD-3-Clause" ]
91
2016-03-02T11:40:21.000Z
2021-08-04T08:42:03.000Z
lib/graphql/plug.ex
cgiffard/plug_graphql
588fcef49ae429fb12e3241a28bbcc35c73eb5fb
[ "BSD-3-Clause" ]
20
2015-11-24T20:52:12.000Z
2016-02-29T17:21:27.000Z
lib/graphql/plug.ex
cgiffard/plug_graphql
588fcef49ae429fb12e3241a28bbcc35c73eb5fb
[ "BSD-3-Clause" ]
9
2015-11-26T00:45:11.000Z
2016-02-26T19:29:50.000Z
defmodule GraphQL.Plug do @moduledoc """ This is the primary plug for mounting a GraphQL server. It includes GraphiQL support and a default pipeline which parses various content-types for POSTs (including `application/graphql`, `application/json`, form and multipart). You mount `GraphQL.Plug` using Plug o...
23.358209
76
0.679872
ab32b1636cd810a930f2c0eefa8b8a7231bd6f0c
1,075
exs
Elixir
test/ex_raft/match_index_test.exs
bajankristof/ex_raft
09c3234355d2792922b17a71e3c32b3e57f0a277
[ "Apache-2.0" ]
1
2021-08-25T10:49:26.000Z
2021-08-25T10:49:26.000Z
test/ex_raft/match_index_test.exs
bajankristof/ex_raft
09c3234355d2792922b17a71e3c32b3e57f0a277
[ "Apache-2.0" ]
null
null
null
test/ex_raft/match_index_test.exs
bajankristof/ex_raft
09c3234355d2792922b17a71e3c32b3e57f0a277
[ "Apache-2.0" ]
null
null
null
defmodule ExRaft.MatchIndexTest do use ExUnit.Case alias ExRaft.MatchIndex test "set/3" do match_index = MatchIndex.new() |> MatchIndex.set(:foo, 2) assert match_index.tree.foo === 2 match_index = MatchIndex.set(match_index, :foo, 1) assert match_index.tree.foo === 1 end test "incr/3" do ...
29.861111
62
0.657674
ab32bead1a7d8608780d39e3efdbb5ec41e9d897
3,216
exs
Elixir
test/espy_web/api_test.exs
wenusch/XRPL-Webhooks
69bce5ea891d5024911f960f4faabe6af3b2bba0
[ "MIT" ]
null
null
null
test/espy_web/api_test.exs
wenusch/XRPL-Webhooks
69bce5ea891d5024911f960f4faabe6af3b2bba0
[ "MIT" ]
null
null
null
test/espy_web/api_test.exs
wenusch/XRPL-Webhooks
69bce5ea891d5024911f960f4faabe6af3b2bba0
[ "MIT" ]
null
null
null
defmodule EspyWeb.ApiTest do use EspyWeb.ConnCase import EspyWeb.Factory setup do Supervisor.terminate_child(Espy.Supervisor, ConCache) Supervisor.restart_child(Espy.Supervisor, ConCache) :ok end test "/api/v1/webhooks", %{conn: conn} do app1 = insert(:app) # CREATE WEBHOOK INVALID URL ...
32.816327
97
0.664801
ab32bf4ba6fb2062eca0d452c93af4cd849a39e6
2,220
ex
Elixir
clients/display_video/lib/google_api/display_video/v1/model/list_partner_assigned_targeting_options_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/display_video/lib/google_api/display_video/v1/model/list_partner_assigned_targeting_options_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/display_video/lib/google_api/display_video/v1/model/list_partner_assigned_targeting_options_response.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...
37
335
0.754054
ab332a444c9b0e130fec7490c9896e9c2194caa5
44,705
ex
Elixir
lib/cachex.ex
adkron/cachex
b972e4ad42d8a6d51cea2831d1d0904291ecab78
[ "MIT" ]
null
null
null
lib/cachex.ex
adkron/cachex
b972e4ad42d8a6d51cea2831d1d0904291ecab78
[ "MIT" ]
null
null
null
lib/cachex.ex
adkron/cachex
b972e4ad42d8a6d51cea2831d1d0904291ecab78
[ "MIT" ]
null
null
null
defmodule Cachex do @moduledoc """ Cachex provides a straightforward interface for in-memory key/value storage. Cachex is an extremely fast, designed for caching but also allowing for more general in-memory storage. The main goal of Cachex is achieve a caching implementation with a wide array of options, wit...
31.683203
91
0.617537
ab333dca680da207379bad4e23998ce14b9657e6
3,384
ex
Elixir
lib/user_manager/create_facebook_profile/create_facebook_profile_repo_update.ex
Alezrik/user_manager
ef30f87587f652842b335b38dd2222873dbcb56b
[ "MIT" ]
3
2017-04-02T11:17:31.000Z
2017-09-08T09:12:11.000Z
lib/user_manager/create_facebook_profile/create_facebook_profile_repo_update.ex
Alezrik/user_manager
ef30f87587f652842b335b38dd2222873dbcb56b
[ "MIT" ]
15
2017-02-11T01:08:54.000Z
2017-02-22T09:45:41.000Z
lib/user_manager/create_facebook_profile/create_facebook_profile_repo_update.ex
Alezrik/user_manager
ef30f87587f652842b335b38dd2222873dbcb56b
[ "MIT" ]
1
2018-06-19T04:10:53.000Z
2018-06-19T04:10:53.000Z
defmodule UserManager.CreateFacebookProfile.CreateFacebookProfileRepoUpdate do @moduledoc false use GenStage alias UserManager.Schemas.UserProfile alias UserManager.Schemas.UserSchema alias UserManager.Repo import Ecto.Query require Logger def start_link(_) do GenStage.start_link(...
54.580645
315
0.713948
ab336bfda23612fb62201c240f59461f3e83604d
90
exs
Elixir
test/kollybistes_web/views/layout_view_test.exs
miketineo/kollybistes
7c3504f7f4a46afdf2e560d240ec6644d0d39c7c
[ "MIT" ]
null
null
null
test/kollybistes_web/views/layout_view_test.exs
miketineo/kollybistes
7c3504f7f4a46afdf2e560d240ec6644d0d39c7c
[ "MIT" ]
null
null
null
test/kollybistes_web/views/layout_view_test.exs
miketineo/kollybistes
7c3504f7f4a46afdf2e560d240ec6644d0d39c7c
[ "MIT" ]
null
null
null
defmodule KollybistesWeb.LayoutViewTest do use KollybistesWeb.ConnCase, async: true end
22.5
42
0.844444
ab336e484b4751ddd1ec7dcf452c2aad474fba4e
776
exs
Elixir
test/supabase_surface/dropdown_test.exs
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
5
2021-06-08T08:02:43.000Z
2022-02-09T23:13:46.000Z
test/supabase_surface/dropdown_test.exs
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
null
null
null
test/supabase_surface/dropdown_test.exs
treebee/supabase-surface
5a184ca92323c085dd81e2fc8aa8c10367f2382e
[ "Apache-2.0" ]
1
2021-07-14T05:20:31.000Z
2021-07-14T05:20:31.000Z
defmodule SupabaseSurface.Components.DropdownTest do use SupabaseSurface.ConnCase, async: true alias SupabaseSurface.Components.{Button, Dropdown, DropdownItem} # TODO tests where we also check the alpine.js functionality (dropdown closed/open) test "renders dropdown with items" do html = render_sur...
27.714286
116
0.606959
ab3383b6278cb30ee110470267895d391782a905
1,126
ex
Elixir
lib/resource.ex
facto/tgdb
35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d
[ "MIT" ]
null
null
null
lib/resource.ex
facto/tgdb
35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d
[ "MIT" ]
null
null
null
lib/resource.ex
facto/tgdb
35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d
[ "MIT" ]
null
null
null
defmodule Tgdb.Resource do @moduledoc """ Representation of resource inside the API """ defmacro __using__(_opts) do quote location: :keep do def get(endpoint, api_version, params, opts) do Tgdb.Api.get(__MODULE__, endpoint, api_version, params, opts) end def supported_endpoints,...
29.631579
99
0.634991
ab33861d36c30fdedb82441a5bf5a07962705994
5,555
ex
Elixir
lib/chat_api/messages.ex
sbacarob/papercups
1a04e9d3a2833b379a3aaaabaae960247c081542
[ "MIT" ]
1
2020-10-02T18:33:47.000Z
2020-10-02T18:33:47.000Z
lib/chat_api/messages.ex
kingshalaby1/papercups
8d59b2ee4a22dd29df42fb771e02db14e14dee68
[ "MIT" ]
null
null
null
lib/chat_api/messages.ex
kingshalaby1/papercups
8d59b2ee4a22dd29df42fb771e02db14e14dee68
[ "MIT" ]
null
null
null
defmodule ChatApi.Messages do @moduledoc """ The Chat context. """ import Ecto.Query, warn: false alias ChatApi.{EventSubscriptions, Repo} alias ChatApi.Messages.Message require Logger @doc """ Returns the list of messages. ## Examples iex> list_messages(account_id) [%Message{}, .....
23.438819
90
0.649865
ab33af34b56ce0bc215ea6fd6ba00c6705ddb408
776
ex
Elixir
algorithms/medium/delete_the_middle_node_of_a_linked_list.ex
stackcats/leetcode
8d50cd92ced2ca991ea9f1e5311f5fda5707d81d
[ "MIT" ]
1
2021-05-30T05:06:06.000Z
2021-05-30T05:06:06.000Z
algorithms/medium/delete_the_middle_node_of_a_linked_list.ex
stackcats/leetcode
8d50cd92ced2ca991ea9f1e5311f5fda5707d81d
[ "MIT" ]
null
null
null
algorithms/medium/delete_the_middle_node_of_a_linked_list.ex
stackcats/leetcode
8d50cd92ced2ca991ea9f1e5311f5fda5707d81d
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # # defmodule ListNode do # @type t :: %__MODULE__{ # val: integer, # next: ListNode.t() | nil # } # defstruct val: 0, next: nil # end defmodule Solution do @spec delete_middle(head :: ListNode.t() | nil) :: ListNode.t() | nil def delete_middle(h...
20.972973
71
0.578608
ab33e855a911625c785abc21bf8dd42adf1cc88b
112
exs
Elixir
test/excat_test.exs
caius/excat
0373142ac1b24d7d5779b090cfafcc649c41ea8c
[ "MIT", "Unlicense" ]
null
null
null
test/excat_test.exs
caius/excat
0373142ac1b24d7d5779b090cfafcc649c41ea8c
[ "MIT", "Unlicense" ]
null
null
null
test/excat_test.exs
caius/excat
0373142ac1b24d7d5779b090cfafcc649c41ea8c
[ "MIT", "Unlicense" ]
null
null
null
defmodule ExcatTest do use ExUnit.Case doctest Excat test "the truth" do assert 1 + 1 == 2 end end
12.444444
22
0.660714
ab33fde1ed4ad700c120e4ef34094d6d639e8eaa
2,340
ex
Elixir
lib/ex_deribit/account_summary.ex
fremantle-capital/ex_derib
666591f7e8987422bc300c9af593798074a97c5a
[ "MIT" ]
2
2020-01-27T07:39:51.000Z
2021-04-27T11:02:03.000Z
lib/ex_deribit/account_summary.ex
fremantle-capital/ex_derib
666591f7e8987422bc300c9af593798074a97c5a
[ "MIT" ]
8
2020-05-25T09:16:43.000Z
2021-03-22T17:12:59.000Z
lib/ex_deribit/account_summary.ex
fremantle-capital/ex_derib
666591f7e8987422bc300c9af593798074a97c5a
[ "MIT" ]
1
2021-04-27T11:02:04.000Z
2021-04-27T11:02:04.000Z
defmodule ExDeribit.AccountSummary do alias __MODULE__ @type t :: %AccountSummary{ available_funds: number, available_withdrawal_funds: number, balance: number, currency: String.t(), delta_total: number, deposit_address: String.t(), email: Strin...
21.666667
47
0.64188
ab3429ad7fae8e144df17f53a01ce73ef8a6678a
138
exs
Elixir
ch05/ex_queue/test/ex_queue_test.exs
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
ch05/ex_queue/test/ex_queue_test.exs
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
ch05/ex_queue/test/ex_queue_test.exs
arilsonsouza/rocketseat-ignite-elixir
93e32d52d589336dfd2d81e755d6dd7f05ee40b8
[ "MIT" ]
null
null
null
defmodule ExQueueTest do use ExUnit.Case doctest ExQueue test "greets the world" do assert ExQueue.hello() == :world end end
15.333333
36
0.710145
ab342e7976ce1f00cedcfed02bc4ba3b9e08d041
1,906
exs
Elixir
gallows/config/dev.exs
jeethridge/elixir-hangman
ff1202fd1f54cad887180c900670306a20fe4339
[ "Unlicense" ]
null
null
null
gallows/config/dev.exs
jeethridge/elixir-hangman
ff1202fd1f54cad887180c900670306a20fe4339
[ "Unlicense" ]
null
null
null
gallows/config/dev.exs
jeethridge/elixir-hangman
ff1202fd1f54cad887180c900670306a20fe4339
[ "Unlicense" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with webpack to recompile .js and .css sources. config :gallows, GallowsWeb.Endpoint, http: [port: 4000...
28.029412
68
0.684155
ab3473a3f0db1f1aea73e1c978c5cc4ccd6899b1
1,148
exs
Elixir
mix.exs
GrappigPanda/u2f_ex
71a3b071282f7d6095c6d291a7b3ce7abffaaa75
[ "BSD-3-Clause" ]
13
2018-10-15T10:39:24.000Z
2019-01-15T06:42:24.000Z
mix.exs
GrappigPanda/u2f_ex
71a3b071282f7d6095c6d291a7b3ce7abffaaa75
[ "BSD-3-Clause" ]
19
2018-08-10T04:33:46.000Z
2018-12-02T04:55:48.000Z
mix.exs
Ianleeclark/u2f_ex
71a3b071282f7d6095c6d291a7b3ce7abffaaa75
[ "BSD-3-Clause" ]
4
2019-07-06T04:38:31.000Z
2021-02-01T10:45:57.000Z
defmodule U2fEx.MixProject do use Mix.Project def project do [ app: :u2f_ex, version: "0.4.2", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps(), description: description(), package: package(), preferred_cli_env: [testa...
20.872727
85
0.533101
ab349cef7550ac67d535305f3707e77c7df6907c
10,633
ex
Elixir
kousa/lib/onion/room_session.ex
linus-jansson/dogehouse
67bd5a80c2ce6b7eb7f8dfa8998ff97f62da4364
[ "MIT" ]
2
2021-04-01T04:21:24.000Z
2021-04-01T04:21:25.000Z
kousa/lib/onion/room_session.ex
linus-jansson/dogehouse
67bd5a80c2ce6b7eb7f8dfa8998ff97f62da4364
[ "MIT" ]
null
null
null
kousa/lib/onion/room_session.ex
linus-jansson/dogehouse
67bd5a80c2ce6b7eb7f8dfa8998ff97f62da4364
[ "MIT" ]
null
null
null
defmodule Onion.RoomSession do use GenServer, restart: :temporary # TODO: change this. Actually, make it an ecto thing. defmodule State do @type t :: %__MODULE__{ room_id: String.t(), voice_server_id: String.t(), users: [String.t()], muteMap: map(), ...
26.649123
99
0.608953
ab34d9f446e05eacdec21af4944570c88316c5c2
358
ex
Elixir
lib/web/views/connection_view.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
null
null
null
lib/web/views/connection_view.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
null
null
null
lib/web/views/connection_view.ex
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
null
null
null
defmodule Web.ConnectionView do use Web, :view def render("show.json", %{connection: connection}) do case connection.type do "telnet" -> Map.take(connection, [:type, :host, :port]) "secure telnet" -> Map.take(connection, [:type, :host, :port]) "web" -> Map.take(connect...
23.866667
55
0.583799
ab35014bc12201a73e303a49cea2b4cb1d04ee5a
2,648
ex
Elixir
lib/formulator/input.ex
praliedutzel/formulator
9eb5708c2e9ebafcf6df795084d849a84c3b535c
[ "MIT" ]
null
null
null
lib/formulator/input.ex
praliedutzel/formulator
9eb5708c2e9ebafcf6df795084d849a84c3b535c
[ "MIT" ]
null
null
null
lib/formulator/input.ex
praliedutzel/formulator
9eb5708c2e9ebafcf6df795084d849a84c3b535c
[ "MIT" ]
null
null
null
defmodule Formulator.Input do use Phoenix.HTML alias Formulator.HtmlError def build_input(form, field, options, error \\ %HtmlError{}) do options = options ++ build_aria_label(field) input_type = options[:as] || :text input_class = options[:class] || "" options = options |> add_valid...
31.52381
125
0.675982
ab3501d8a9f8f6223d63e9c9d7614cfe758f9d71
2,790
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/invideo_promotion.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/invideo_promotion.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/you_tube/lib/google_api/you_tube/v3/model/invideo_promotion.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
44.285714
172
0.734767
ab350afe809fd5f5949372a288987d076c1ef68b
1,246
exs
Elixir
mix.exs
ityonemo/trivial
8db4c85f8c5945354102100eff3e89909fc458ec
[ "MIT" ]
4
2020-01-27T21:26:38.000Z
2021-11-16T22:42:57.000Z
mix.exs
ityonemo/trivial
8db4c85f8c5945354102100eff3e89909fc458ec
[ "MIT" ]
6
2020-01-25T23:43:33.000Z
2020-08-19T19:36:22.000Z
mix.exs
ityonemo/trivial
8db4c85f8c5945354102100eff3e89909fc458ec
[ "MIT" ]
null
null
null
defmodule Trivial.MixProject do use Mix.Project def project do [ app: :trivial, version: "0.1.0", elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], preferred_cli_env: ...
26.510638
121
0.569823
ab351f5d7b27fc101e71e38cfe67cb7d6058222c
403
ex
Elixir
backend/lib/caffe/ordering/commands/mark_items_served.ex
eeng/caffe
d85d0dd56a8204c715052ddaf3d990e47c5df0e9
[ "MIT" ]
7
2020-03-27T08:26:52.000Z
2021-08-29T09:50:31.000Z
backend/lib/caffe/ordering/commands/mark_items_served.ex
eeng/caffe
d85d0dd56a8204c715052ddaf3d990e47c5df0e9
[ "MIT" ]
null
null
null
backend/lib/caffe/ordering/commands/mark_items_served.ex
eeng/caffe
d85d0dd56a8204c715052ddaf3d990e47c5df0e9
[ "MIT" ]
null
null
null
defmodule Caffe.Ordering.Commands.MarkItemsServed do use Caffe.Command embedded_schema do field :order_id, :binary_id field :user_id, :integer field :item_ids, {:array, :integer} end def changeset(schema, params) do schema |> cast(params, [:order_id, :item_ids, :user_id]) |> validate_r...
23.705882
53
0.689826
ab354100ee5c575436d1e6d7d25b0997f51ead81
975
exs
Elixir
mix.exs
kazuwo/course_evaluation_questionnaire
72f01051900b68a0239b3a87e38981bae83aefcb
[ "MIT" ]
null
null
null
mix.exs
kazuwo/course_evaluation_questionnaire
72f01051900b68a0239b3a87e38981bae83aefcb
[ "MIT" ]
null
null
null
mix.exs
kazuwo/course_evaluation_questionnaire
72f01051900b68a0239b3a87e38981bae83aefcb
[ "MIT" ]
null
null
null
defmodule CourseEvaluationQuestionnaire.Mixfile do use Mix.Project def project do [app: :course_evaluation_questionnaire, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.3", ...
23.780488
77
0.611282
ab3589e1db1c96a159000f01ec936cf9c4eda06b
456
exs
Elixir
apps/api_accounts/config/config.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
apps/api_accounts/config/config.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
null
null
null
apps/api_accounts/config/config.exs
lboyarsky/api
7ecad79704d13ae6fa7f21d21bc47836c703ebf9
[ "MIT" ]
1
2019-09-09T20:40:13.000Z
2019-09-09T20:40:13.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :ex_aws, dynamodb: [ port: "8000", scheme: "http://", host: "localhost" ] config :api_accounts, ApiAccounts.Mailer, adapter: Bamboo.MailgunAdapter, api_ke...
22.8
61
0.714912
ab3598b3990747c9620935bacf7317ee1ff6817a
2,254
ex
Elixir
web/emails/coherence/user_email.ex
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
web/emails/coherence/user_email.ex
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
web/emails/coherence/user_email.ex
franknfjr/blog_lca
0711ad6ba6ee878045905ec58a549527ffa5e0a4
[ "MIT" ]
null
null
null
Code.ensure_loaded Phoenix.Swoosh defmodule Login.Coherence.UserEmail do use Phoenix.Swoosh, view: Coherence.EmailView, layout: {Coherence.LayoutView, :email} alias Swoosh.Email require Logger alias Coherence.Config defp site_name, do: Config.site_name(inspect Config.module) def password(user, url) do ...
27.82716
122
0.636202
ab35a5fad9a993266eb3ee3b18d2be6c75007da4
1,304
exs
Elixir
test/assent/strategies/instagram_test.exs
kanes115/assent
d1a2cff4d1dc202bffd566c3c831dba6ca513eb3
[ "MIT" ]
1
2022-02-16T19:57:40.000Z
2022-02-16T19:57:40.000Z
test/assent/strategies/instagram_test.exs
kanes115/assent
d1a2cff4d1dc202bffd566c3c831dba6ca513eb3
[ "MIT" ]
null
null
null
test/assent/strategies/instagram_test.exs
kanes115/assent
d1a2cff4d1dc202bffd566c3c831dba6ca513eb3
[ "MIT" ]
null
null
null
defmodule Assent.Strategy.InstagramTest do use Assent.Test.OAuth2TestCase alias Assent.Strategy.Instagram # From https://www.instagram.com/developer/authentication/ @user_response %{ "id" => "1574083", "username" => "snoopdogg", "full_name" => "Snoop Dogg", "profile_picture" => "..." } @us...
31.047619
154
0.65184
ab35be4f92a3282539cfaec1eeb9a8cae867df13
3,119
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/operation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/operation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/app_engine/lib/google_api/app_engine/v1/model/operation.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 ...
52.864407
525
0.729721
ab35c0487a00335c0b220080c761d04e91252ac7
1,098
ex
Elixir
test/factories/competition/challenge_factory.ex
nimblehq/codewar-web
5038bc09d4fc42f6be0737857a4c053ff42463f1
[ "MIT" ]
2
2021-06-29T02:22:28.000Z
2022-02-15T06:32:15.000Z
test/factories/competition/challenge_factory.ex
nimblehq/codewar-web
5038bc09d4fc42f6be0737857a4c053ff42463f1
[ "MIT" ]
14
2021-05-06T04:27:19.000Z
2021-08-24T11:15:33.000Z
test/factories/competition/challenge_factory.ex
nimblehq/codewar-web
5038bc09d4fc42f6be0737857a4c053ff42463f1
[ "MIT" ]
1
2021-08-20T07:50:19.000Z
2021-08-20T07:50:19.000Z
defmodule Codewar.Competition.ChallengeFactory do alias Faker.Lorem alias Faker.Markdown alias Faker.Team defmacro __using__(_opts) do quote do alias Codewar.Competition.Schemas.Challenge def challenge_factory do %Challenge{ name: Lorem.sentence(3), requirement: Mar...
23.361702
67
0.587432
ab369117aa124612814d8a316f4b18b8dd7a855f
1,123
exs
Elixir
config/config.exs
dreallday/open-cagex
84caf2c421b7272b25d21b469c3441be2cf7ba61
[ "MIT" ]
13
2017-06-20T07:25:20.000Z
2022-01-19T17:44:12.000Z
config/config.exs
winescout/open-cagex
3d1fe2197341b32022d0f9cbab33a4243307b261
[ "MIT" ]
2
2019-11-10T12:19:29.000Z
2020-12-05T02:42:58.000Z
config/config.exs
winescout/open-cagex
3d1fe2197341b32022d0f9cbab33a4243307b261
[ "MIT" ]
6
2017-12-12T20:30:34.000Z
2020-12-02T21:23:56.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.225806
73
0.752449
ab36d5b5fdb47b151cc67823c688b286758923ea
7,587
ex
Elixir
apps/ewallet_db/lib/ewallet_db/global_role.ex
Macavirus/ewallet
ce62177b8bd3f7e72156930d384a1c4c047a3b5b
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/lib/ewallet_db/global_role.ex
Macavirus/ewallet
ce62177b8bd3f7e72156930d384a1c4c047a3b5b
[ "Apache-2.0" ]
null
null
null
apps/ewallet_db/lib/ewallet_db/global_role.ex
Macavirus/ewallet
ce62177b8bd3f7e72156930d384a1c4c047a3b5b
[ "Apache-2.0" ]
null
null
null
# 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 ...
27.48913
95
0.540398
ab3700100318ce1b1ffa4420e152b8598d268603
1,645
exs
Elixir
test/three_reader_test.exs
samWson/three-reader
a9de37bdc9cd9954d43d21fba0fcd61c3ee38567
[ "Unlicense" ]
null
null
null
test/three_reader_test.exs
samWson/three-reader
a9de37bdc9cd9954d43d21fba0fcd61c3ee38567
[ "Unlicense" ]
null
null
null
test/three_reader_test.exs
samWson/three-reader
a9de37bdc9cd9954d43d21fba0fcd61c3ee38567
[ "Unlicense" ]
null
null
null
defmodule ThreeReaderTest do use ExUnit.Case, async: true doctest ThreeReader test "It parses RSS XML" do xml = ~S""" <rss version="2.0"> <channel> <title>Pascal News</title> <link>https://www.pascal-news.org</link> <description>The latest news for the Pascal Programming Lan...
27.881356
112
0.438906
ab3707d787bfdaf0d9ba7a196222bd9a1f234d3a
274
exs
Elixir
test/event_store/subscription_test.exs
xshadowlegendx/commanded-extreme-adapter
a6833aa5763831c28971c18775f75cba66144783
[ "MIT" ]
4
2019-10-16T03:21:22.000Z
2022-02-10T07:58:12.000Z
test/event_store/subscription_test.exs
xshadowlegendx/commanded-extreme-adapter
a6833aa5763831c28971c18775f75cba66144783
[ "MIT" ]
17
2018-02-23T17:13:01.000Z
2021-10-06T13:36:54.000Z
test/event_store/subscription_test.exs
xshadowlegendx/commanded-extreme-adapter
a6833aa5763831c28971c18775f75cba66144783
[ "MIT" ]
10
2018-02-23T14:58:01.000Z
2022-02-23T09:41:35.000Z
defmodule Commanded.EventStore.Adapters.Extreme.SubscriptionTest do alias Commanded.EventStore.Adapters.Extreme use Commanded.ExtremeTestCase use Commanded.EventStore.SubscriptionTestCase, event_store: Extreme defp event_store_wait(_default \\ nil), do: 5_000 end
30.444444
69
0.832117
ab372a807314a2b362a9beaf2ad59f2abcabbd00
312
ex
Elixir
backup.ex
nfalcone/fortinet-scpbackup
15112d3b370040d1718ae61e964d7d71f5630d7e
[ "MIT" ]
null
null
null
backup.ex
nfalcone/fortinet-scpbackup
15112d3b370040d1718ae61e964d7d71f5630d7e
[ "MIT" ]
null
null
null
backup.ex
nfalcone/fortinet-scpbackup
15112d3b370040d1718ae61e964d7d71f5630d7e
[ "MIT" ]
null
null
null
#!/usr/bin/expect set HOST "MyFirewall" set IP "192.168.1.1" set PASS "your-password-here" set USER backup set timeout -1 spawn scp $USER@$IP:sys_config/backup /home/fortinet/[clock format [clock seconds] -format %Y.%m.%d]-$HOST.txt expect { "$USER@$IP's password:" { send "$PASS\n" exp_continue } }
17.333333
110
0.679487
ab372faf0c5970d403f99d857826a25cf197993c
731
exs
Elixir
mix.exs
brexhq/google-protos
7c36b799dbe3cb984d0ac5967b80a13152dd2b1d
[ "MIT" ]
null
null
null
mix.exs
brexhq/google-protos
7c36b799dbe3cb984d0ac5967b80a13152dd2b1d
[ "MIT" ]
null
null
null
mix.exs
brexhq/google-protos
7c36b799dbe3cb984d0ac5967b80a13152dd2b1d
[ "MIT" ]
1
2021-03-26T18:55:34.000Z
2021-03-26T18:55:34.000Z
defmodule GoogleProtos.MixProject do use Mix.Project def project do [ app: :google_protos, name: "Google Protos", version: "0.1.0", elixir: "~> 1.4", start_permanent: Mix.env() == :prod, deps: deps(), description: "Protos by Google", package: package() ] en...
19.756757
73
0.556772
ab3740547c0b880a54ded1f9dc44718a12a5d74e
25,303
exs
Elixir
test/livebook_web/live/session_live_test.exs
chitacan/livebook
f44e34d3d75a59dc0cc0ccc86cf1de9f1924c002
[ "Apache-2.0" ]
null
null
null
test/livebook_web/live/session_live_test.exs
chitacan/livebook
f44e34d3d75a59dc0cc0ccc86cf1de9f1924c002
[ "Apache-2.0" ]
null
null
null
test/livebook_web/live/session_live_test.exs
chitacan/livebook
f44e34d3d75a59dc0cc0ccc86cf1de9f1924c002
[ "Apache-2.0" ]
1
2021-12-10T19:18:37.000Z
2021-12-10T19:18:37.000Z
defmodule LivebookWeb.SessionLiveTest do use LivebookWeb.ConnCase import Phoenix.LiveViewTest alias Livebook.{Sessions, Session, Delta, Runtime, Users, FileSystem} alias Livebook.Notebook.Cell alias Livebook.Users.User setup do {:ok, session} = Sessions.create_session(notebook: Livebook.Notebook.new(...
33.075817
107
0.626606
ab37539c34fad4a240cf3b4ecd8a9fd6d46b473f
1,838
ex
Elixir
lib/game/npc/actions/commands_emote.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
1
2019-02-10T10:22:39.000Z
2019-02-10T10:22:39.000Z
lib/game/npc/actions/commands_emote.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
null
null
null
lib/game/npc/actions/commands_emote.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
null
null
null
defmodule Game.NPC.Actions.CommandsEmote do @moduledoc """ Speak to the room that the NPC is in """ use Game.Environment alias Game.Format alias Game.Message alias Game.NPC.Events alias Game.NPC.Status @doc """ Emote to the room """ def act(state, action) do message = action.options.messa...
21.880952
82
0.612622
ab376a63795a03c9db44eefdfb336ba467343f31
1,337
exs
Elixir
mix.exs
sugar-framework/sugar
90e4b02f3aaea818554e76d76cbd8ce54cea4612
[ "MIT" ]
374
2015-01-03T00:16:25.000Z
2022-02-02T21:08:48.000Z
mix.exs
sugar-framework/sugar
90e4b02f3aaea818554e76d76cbd8ce54cea4612
[ "MIT" ]
44
2015-01-01T11:38:12.000Z
2020-11-18T19:48:01.000Z
mix.exs
sugar-framework/sugar
90e4b02f3aaea818554e76d76cbd8ce54cea4612
[ "MIT" ]
34
2015-01-04T13:42:41.000Z
2020-07-18T17:27:27.000Z
defmodule Sugar.Mixfile do use Mix.Project def project do [ app: :sugar, elixir: "~> 1.2", version: "0.5.0", name: "Sugar", source_url: "https://github.com/sugar-framework/sugar", homepage_url: "https://sugar-framework.github.io", deps: deps(), package: package(), ...
26.74
70
0.516829
ab37d927bdf5e9b2a1a13b6d1d8776548298f196
1,170
ex
Elixir
api_gateway/lib/services/tournaments_service.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
2
2020-04-20T16:31:01.000Z
2020-04-20T16:45:03.000Z
api_gateway/lib/services/tournaments_service.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
null
null
null
api_gateway/lib/services/tournaments_service.ex
lcnascimento/pokerapp
d7928aebc867c49f01546611ed65a5befa3a6429
[ "MIT" ]
null
null
null
defmodule ApiGateway.TournamentsService do alias ApiGateway.Contracts alias ApiGateway.Contracts.TournamentsService @behaviour TournamentsService @spec list() :: {:ok, [map()]} | {:error, Contracts.error()} def list() do {:error, %{reason: "NotImplemented"}} end @spec get(id :: ...
24.893617
50
0.536752
ab37dac613f7b5b848eafdf43fa7893f814c3926
493
ex
Elixir
lib/pfkit/character_creation/feat.ex
sean-clayton/pfkit.com
0324909b07fc3fac1426ea83b2fc6cd607489ac7
[ "Unlicense" ]
null
null
null
lib/pfkit/character_creation/feat.ex
sean-clayton/pfkit.com
0324909b07fc3fac1426ea83b2fc6cd607489ac7
[ "Unlicense" ]
null
null
null
lib/pfkit/character_creation/feat.ex
sean-clayton/pfkit.com
0324909b07fc3fac1426ea83b2fc6cd607489ac7
[ "Unlicense" ]
null
null
null
defmodule Pfkit.CharacterCreation.Feat do use Pfkit.Schema embedded_schema do field :level, :string field :traits, {:array, :string} field :prerequisites, :string field :trigger, :string field :action_type, :string field :description_raw, :string field :description_html, :string fie...
25.947368
41
0.707911
ab37fd33267787c6b62f370e12c4df762a19d162
154
ex
Elixir
lib/git_hooks.ex
celaxodon/elixir_git_hooks
108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad
[ "MIT" ]
null
null
null
lib/git_hooks.ex
celaxodon/elixir_git_hooks
108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad
[ "MIT" ]
null
null
null
lib/git_hooks.ex
celaxodon/elixir_git_hooks
108cf78cfa15a1bbdd9d6d37c3a3cfc514dfd0ad
[ "MIT" ]
null
null
null
defmodule GitHooks do @moduledoc false # credo:disable-for-next-line Credo.Check.Design.AliasUsage Mix.Tasks.GitHooks.Install.run(["--quiet"]) end
22
61
0.753247
ab38138b0456e0761fa702eb46ffd9acd6a7120e
2,829
exs
Elixir
apps/fz_http/test/fz_http_web/live/rule_live/index_test.exs
kaku-io/firezone
685da0064727df27e444fe4da2be20efe96af9cd
[ "Apache-2.0" ]
1,429
2021-07-31T21:25:46.000Z
2022-03-31T16:31:33.000Z
apps/fz_http/test/fz_http_web/live/rule_live/index_test.exs
kaku-io/firezone
685da0064727df27e444fe4da2be20efe96af9cd
[ "Apache-2.0" ]
132
2021-07-10T14:23:36.000Z
2022-03-29T18:36:37.000Z
apps/fz_http/test/fz_http_web/live/rule_live/index_test.exs
CloudFire-LLC/cloudfire
24ea29bda8a8845a0a9c3b0482cc67e314611245
[ "Apache-2.0" ]
48
2021-09-14T02:48:38.000Z
2022-03-24T18:18:50.000Z
defmodule FzHttpWeb.RuleLive.IndexTest do use FzHttpWeb.ConnCase, async: true describe "allowlist" do setup :create_accept_rule @destination "1.2.3.4" @allow_params %{"rule" => %{"action" => "accept", "destination" => @destination}} test "adds to allowlist", %{authed_conn: conn} do path = R...
25.258929
85
0.545422
ab38442f3b9d67b874747b921e7f128aa9a40072
1,168
ex
Elixir
app/lib/hobby_dapp_web/router.ex
irisTa56/hobby_dapp
5738995f4f68202aeb50df7fd23fd5c6b84ee244
[ "MIT" ]
null
null
null
app/lib/hobby_dapp_web/router.ex
irisTa56/hobby_dapp
5738995f4f68202aeb50df7fd23fd5c6b84ee244
[ "MIT" ]
null
null
null
app/lib/hobby_dapp_web/router.ex
irisTa56/hobby_dapp
5738995f4f68202aeb50df7fd23fd5c6b84ee244
[ "MIT" ]
null
null
null
defmodule HobbyDappWeb.Router do use HobbyDappWeb, :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 "/phoenix", HobbyDappWeb...
25.391304
72
0.694349
ab3879c8187f1dda213ff28c9d7fee3e7f0efad5
181
ex
Elixir
examples/poncho2/b/lib/b.ex
kelvinst/poncho
1d52e52f57538a51ce8793fede0afb3f94dca70f
[ "MIT" ]
3
2020-11-06T21:30:44.000Z
2021-04-05T09:21:25.000Z
examples/poncho2/b/lib/b.ex
kelvinst/poncho
1d52e52f57538a51ce8793fede0afb3f94dca70f
[ "MIT" ]
null
null
null
examples/poncho2/b/lib/b.ex
kelvinst/poncho
1d52e52f57538a51ce8793fede0afb3f94dca70f
[ "MIT" ]
null
null
null
defmodule B do @moduledoc """ Documentation for B. """ @doc """ Hello world. ## Examples iex> B.hello() :world """ def hello do :world end end
9.526316
22
0.519337
ab38cf18ccc177e8ba815b0a405faf0914fb0cf5
1,072
exs
Elixir
clients/tool_results/test/test_helper.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/tool_results/test/test_helper.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/tool_results/test/test_helper.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
29.777778
83
0.740672
ab38d239ba44a215c31425e481d4ff06e993fb8c
517
exs
Elixir
test/oli/resources_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
test/oli/resources_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
test/oli/resources_test.exs
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Resources.ResourcesTest do use Oli.DataCase alias Oli.Resources describe "resources" do setup do Seeder.base_project_with_resource2() end test "list_resources/0 returns all resources", _ do assert length(Resources.list_resources()) == 3 end test "get_resource!/1 r...
23.5
81
0.70793
ab38dd3f3be848d65f72eefef85bfdafac03a45a
660
ex
Elixir
lib/brando/content/var/boolean.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
4
2020-10-30T08:40:38.000Z
2022-01-07T22:21:37.000Z
lib/brando/content/var/boolean.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
1,162
2020-07-05T11:20:15.000Z
2022-03-31T06:01:49.000Z
lib/brando/content/var/boolean.ex
brandocms/brando
4198e0c0920031bd909969055064e4e2b7230d21
[ "MIT" ]
null
null
null
defmodule Brando.Content.Var.Boolean do use Brando.Blueprint, application: "Brando", domain: "Content", schema: "VarBoolean", singular: "var_boolean", plural: "var_booleans", gettext_module: Brando.Gettext data_layer :embedded @primary_key false identifier "{{ entry.label }}" attrib...
26.4
62
0.7
ab38e61fca18af2ac685fa59714d061901b32e2d
19,429
ex
Elixir
lib/brando_admin/components/content/list.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
lib/brando_admin/components/content/list.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
lib/brando_admin/components/content/list.ex
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule BrandoAdmin.Components.Content.List do use BrandoAdmin, :live_component use BrandoAdmin.Translator, "listings" import Brando.Gettext alias Brando.Trait.Creator alias Brando.Trait.Sequenced alias Brando.Trait.SoftDelete alias Brando.Trait.Status alias BrandoAdmin.Components.Content.List.Row ...
31.387722
128
0.578105
ab38f72f97b45c4f10047579907b76720f2d940a
12,682
ex
Elixir
lib/paires/game_server.ex
fcapovilla/paires
72a9453d02d7afee11f9457cf342215d075b0c97
[ "BSD-3-Clause" ]
null
null
null
lib/paires/game_server.ex
fcapovilla/paires
72a9453d02d7afee11f9457cf342215d075b0c97
[ "BSD-3-Clause" ]
null
null
null
lib/paires/game_server.ex
fcapovilla/paires
72a9453d02d7afee11f9457cf342215d075b0c97
[ "BSD-3-Clause" ]
null
null
null
defmodule Paires.GameServer do use GenServer alias Paires.PubSub @round_time 90 @min_players 3 # Client Code def start_link(room) do GenServer.start(__MODULE__, room, name: {:via, Registry, {Paires.RoomRegistry, room}}) end def get_pid(room) do GenServer.whereis({:via, Registry, {Paires.Roo...
27.098291
99
0.590207
ab38ff4769c7659ea5495d93a15169e21f6c39f5
2,528
ex
Elixir
lib/client.ex
Eein/twitch-api
cc53145b8425f7f8d474e9f20f083ce6856f9d20
[ "MIT" ]
1
2020-02-04T18:38:59.000Z
2020-02-04T18:38:59.000Z
lib/client.ex
Eein/helix
cc53145b8425f7f8d474e9f20f083ce6856f9d20
[ "MIT" ]
null
null
null
lib/client.ex
Eein/helix
cc53145b8425f7f8d474e9f20f083ce6856f9d20
[ "MIT" ]
null
null
null
defmodule TwitchApi.Client do alias TwitchApi.Util.Params @moduledoc """ Builds the client for the API wrapper """ @typedoc """ Credentials """ @type auth :: %{client_id: String.t(), client_secret: String.t()} @typedoc """ The client struct """ @type t :: %__MODULE__{auth: auth | nil} defs...
26.061856
80
0.619858
ab390ad2ae8af73ca32656c6a9a0f64887ff3408
1,506
exs
Elixir
test/amad_test.exs
junna9a1/elixir-amazon-product-advertising-client
13d470e0236a33dcefcbd0232ebaa74661b3bf65
[ "MIT" ]
null
null
null
test/amad_test.exs
junna9a1/elixir-amazon-product-advertising-client
13d470e0236a33dcefcbd0232ebaa74661b3bf65
[ "MIT" ]
null
null
null
test/amad_test.exs
junna9a1/elixir-amazon-product-advertising-client
13d470e0236a33dcefcbd0232ebaa74661b3bf65
[ "MIT" ]
null
null
null
defmodule AmadTest do use ExUnit.Case, async: true # Taken from the Example REST Requests page of the Product Advertising API documentation: # http://docs.aws.amazon.com/AWSECommerceService/latest/DG/rest-signature.html test "the request is properly signed" do Application.put_env(:amazon_product_advertisin...
53.785714
117
0.782869
ab3918c011b51d47be3b8f26bac81a2359c099a7
490
exs
Elixir
test/integration/timeouts_test.exs
qdentity/oban
d511f5ffd2f3b979afd6af94bc802949654ea410
[ "Apache-2.0" ]
2,219
2019-04-10T01:50:19.000Z
2022-03-30T11:20:01.000Z
test/integration/timeouts_test.exs
qdentity/oban
d511f5ffd2f3b979afd6af94bc802949654ea410
[ "Apache-2.0" ]
532
2019-05-16T00:22:28.000Z
2022-03-31T19:04:02.000Z
test/integration/timeouts_test.exs
qdentity/oban
d511f5ffd2f3b979afd6af94bc802949654ea410
[ "Apache-2.0" ]
230
2019-05-15T14:15:18.000Z
2022-03-23T22:59:43.000Z
defmodule Oban.Integration.TimeoutsTest do use Oban.Case @moduletag :integration test "jobs that exceed the worker's timeout fail" do start_supervised_oban!(queues: [alpha: 5]) job = insert!(ref: 1, sleep: 100, timeout: 20) assert_receive {:started, 1} refute_receive {:ok, 1} assert %Job{...
27.222222
89
0.683673
ab391f32bd3a2037c4ad16d51b3e4a9733022363
1,658
exs
Elixir
test/mastery_test.exs
grekko/mastery
f80dfcb660f23187970442ea237e4128ce3ac262
[ "MIT" ]
null
null
null
test/mastery_test.exs
grekko/mastery
f80dfcb660f23187970442ea237e4128ce3ac262
[ "MIT" ]
null
null
null
test/mastery_test.exs
grekko/mastery
f80dfcb660f23187970442ea237e4128ce3ac262
[ "MIT" ]
null
null
null
defmodule MasteryTest do use ExUnit.Case, async: false use QuizBuilders alias MasteryPersistence.{Repo, Response} alias Mastery.Examples.Math alias Mastery.Boundary.QuizSession setup do enable_persistence() always_add_1_to_2 = [ template_fields(generators: addition_generators([1], [2])) ...
24.746269
84
0.694813
ab3922770c4fd1036431f1ec31f88f57baad251b
1,275
ex
Elixir
examples/example-phx-1_3/lib/example_phx_web/views/error_helpers.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
681
2016-06-21T20:49:21.000Z
2022-02-19T04:08:38.000Z
examples/example-phx-1_3/lib/example_phx_web/views/error_helpers.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
125
2016-06-21T21:14:49.000Z
2020-12-12T20:15:48.000Z
examples/example-phx-1_3/lib/example_phx_web/views/error_helpers.ex
devshane/thesis-phoenix
afe22a25542f91e15cfffb1e93ff8d833a64c25b
[ "MIT" ]
76
2016-09-06T03:40:55.000Z
2022-01-20T21:29:22.000Z
defmodule ExamplePhxWeb.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...
31.097561
79
0.672941
ab3925a4463b216d21e1ac1a89b73b86a9799dd8
3,104
ex
Elixir
clients/content/lib/google_api/content/v2/model/accounts_custom_batch_request_entry.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/content/lib/google_api/content/v2/model/accounts_custom_batch_request_entry.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/accounts_custom_batch_request_entry.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 ...
44.985507
199
0.70683
ab396c61632f64d44bcf35ad72f7b30f5d753c3f
840
ex
Elixir
builder/lib/mix/tasks/compile.quenya.ex
yidaoit/quenya
45fe42c32829a1a2499d325e592553061b876ef8
[ "MIT" ]
143
2020-12-01T06:53:36.000Z
2022-03-24T02:33:01.000Z
builder/lib/mix/tasks/compile.quenya.ex
yidaoit/quenya
45fe42c32829a1a2499d325e592553061b876ef8
[ "MIT" ]
2
2020-11-30T05:30:42.000Z
2020-12-17T06:33:17.000Z
builder/lib/mix/tasks/compile.quenya.ex
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
12
2020-12-07T01:22:17.000Z
2020-12-27T12:49:39.000Z
defmodule Mix.Tasks.Compile.Quenya do @moduledoc """ Generate source code based on OpenAPI v3 sepc for todo. This will create a `/gen` folder and overwrite all files in it. The files are generated based on `operationId` in the spec Todo keeps the contexts that define your domain and business logic. Conte...
28.965517
66
0.69881
ab3970def8e57fafb097833c6cda4fb27f0c5985
3,718
ex
Elixir
lib/changelog_web/views/time_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog_web/views/time_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog_web/views/time_view.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
defmodule ChangelogWeb.TimeView do alias Timex.Duration def closest_monday_to(date) do offset = case Timex.weekday(date) do 1 -> 0 2 -> -1 3 -> -2 4 -> -3 5 -> 3 6 -> 2 7 -> 1 end Timex.shift(date, days: offset) end def duration(seconds) when is_nil(...
27.746269
106
0.632329
ab39738468aebe00853c203e1da77e80d0a7d0e7
574
exs
Elixir
test/regressions/i013_incorrect_rendering_of_numbered_lists_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/regressions/i013_incorrect_rendering_of_numbered_lists_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/regressions/i013_incorrect_rendering_of_numbered_lists_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
1
2020-03-31T19:53:15.000Z
2020-03-31T19:53:15.000Z
defmodule Regressions.I013IncorrectRenderingOfNumberedLists do use ExUnit.Case, async: true @indented_list """ Para 1. l1 2. l2 """ test "Issue https://github.com/pragdave/earmark/issues/13" do result = Earmark.as_html! @indented_list assert result == """ <p> Para</p...
21.259259
63
0.449477
ab39bb616a276a81b2bc158c008144a4d626c778
1,193
ex
Elixir
web/channels/user_socket.ex
jwarwick/class_list
05ac775e7b5d42f258024db361a9de1aeed71c73
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
jwarwick/class_list
05ac775e7b5d42f258024db361a9de1aeed71c73
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
jwarwick/class_list
05ac775e7b5d42f258024db361a9de1aeed71c73
[ "MIT" ]
null
null
null
defmodule ClassList.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", ClassList.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and aut...
29.825
68
0.690696
ab39c92050841320ff5475a52b2f491ad8af835f
55
ex
Elixir
lib/oli_web/views/shared_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli_web/views/shared_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli_web/views/shared_view.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule OliWeb.SharedView do use OliWeb, :view end
13.75
30
0.781818
ab3a310fc1cf07951bdc1ac3e2883b3835e0d0f9
1,985
ex
Elixir
lib/espec/to.ex
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
807
2015-03-25T14:00:19.000Z
2022-03-24T08:08:15.000Z
lib/espec/to.ex
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
254
2015-03-27T10:12:25.000Z
2021-07-12T01:40:15.000Z
lib/espec/to.ex
andrei-mihaila/espec
ffab88aa987bd446e9c44fe38d73cfe6b789f80b
[ "Apache-2.0" ]
85
2015-04-02T10:25:19.000Z
2021-01-30T21:30:43.000Z
defmodule ESpec.To do @moduledoc """ Defines `to`, `to_not` and `not_to` helper functions. The functions implement syntax: 'expect 1 |> to eq 1' These functions wrap arguments for `ESpec.ExpectTo` module. Also defines `to` helper function for mocking without parenthesis: `allow SomeModule |> to accept(:f, ...
32.540984
95
0.688161
ab3a59b508a4d9e79844fe6337f373610c37e7f6
5,376
ex
Elixir
clients/books/lib/google_api/books/v1/model/volume_access_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/books/lib/google_api/books/v1/model/volume_access_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/books/lib/google_api/books/v1/model/volume_access_info.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...
62.511628
429
0.718006
ab3a614a4c5426fea7b4f52014461615d391078c
291
exs
Elixir
basic-types/with-scope-fmt.exs
diningyo/programming-elixir
bc61ee99a56e462129263c6b372eaf1faa9bb3fb
[ "MIT" ]
null
null
null
basic-types/with-scope-fmt.exs
diningyo/programming-elixir
bc61ee99a56e462129263c6b372eaf1faa9bb3fb
[ "MIT" ]
null
null
null
basic-types/with-scope-fmt.exs
diningyo/programming-elixir
bc61ee99a56e462129263c6b372eaf1faa9bb3fb
[ "MIT" ]
null
null
null
content = "Now is the time" lp = with {:ok, file} = File.open("/etc/passwd"), content = IO.read(file, :all), :ok = File.close(file), [_, uid, gid] = Regex.run(~r/^lp:.*?:(\d+):(\d+)/m, content) do "Group: #{gid}, User: #{uid}" end IO.puts(lp) IO.puts(content)
22.384615
70
0.522337
ab3a80f78f0303c5b3043b1f65e37e567821a71a
560
ex
Elixir
Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/ssl_enforcement.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.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/ssl_enforcement.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Database.MySql/lib/microsoft/azure/management/database/my_sql/model/ssl_enforcement.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.Database.MySql.Model.SslEnforcement do @moduledoc """ Enable ssl enforcement or not when connect to server. """ ...
21.538462
94
0.728571
ab3acafb986da11cfee8ac605a9b14e555045a07
2,207
ex
Elixir
lib/glimesh/payment_providers/stripe/process_webhook.ex
TommyTeaVee/glimesh.tv
6ba538f50a463652f14442039b6cdfbc429f10f4
[ "MIT" ]
null
null
null
lib/glimesh/payment_providers/stripe/process_webhook.ex
TommyTeaVee/glimesh.tv
6ba538f50a463652f14442039b6cdfbc429f10f4
[ "MIT" ]
null
null
null
lib/glimesh/payment_providers/stripe/process_webhook.ex
TommyTeaVee/glimesh.tv
6ba538f50a463652f14442039b6cdfbc429f10f4
[ "MIT" ]
null
null
null
defmodule Glimesh.PaymentProviders.StripeProvider.ProcessWebhook do @moduledoc """ Async processor for Stripe Webhooks """ # credo:disable-for-this-file @behaviour Rihanna.Job alias Glimesh.PaymentProviders.StripeProvider alias Glimesh.Payments def perform([type, data]) do case [type, data] do ...
30.232877
92
0.608065
ab3af5a3a720a1ba1034103c93a8c2d5a87bac4e
1,852
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/preserved_state.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/preserved_state.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/preserved_state.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...
35.615385
224
0.720842
ab3afcef2e675a4c3db9e7c7b0de3f3c2fbf95c3
1,135
exs
Elixir
ch10/profile_cache/config/config.exs
fboyer/elixir_in_action
d0acdcfc781020f8737f14900d3e2b5263f6f65e
[ "MIT" ]
null
null
null
ch10/profile_cache/config/config.exs
fboyer/elixir_in_action
d0acdcfc781020f8737f14900d3e2b5263f6f65e
[ "MIT" ]
null
null
null
ch10/profile_cache/config/config.exs
fboyer/elixir_in_action
d0acdcfc781020f8737f14900d3e2b5263f6f65e
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.612903
73
0.754185
ab3b15441c3326f85c8e9ae00d939daa60bae3ca
4,776
exs
Elixir
integration_test/pg/test_helper.exs
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
integration_test/pg/test_helper.exs
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
integration_test/pg/test_helper.exs
scrogson/ecto
fdcf807901683c73c1117d89751e0d5a7a318154
[ "Apache-2.0" ]
null
null
null
ExUnit.start Code.require_file "../../test/support/file_helpers.exs", __DIR__ alias Ecto.Adapters.Postgres alias Ecto.Integration.Postgres.TestRepo defmodule Ecto.Integration.Postgres.CustomAPI do use Ecto.Query.Typespec deft integer defs custom(integer) :: integer end defmodule Ecto.Integration.Postgres.Tes...
25.816216
176
0.713987
ab3b1708274eab47bd51c2dcd8940fddc4762b0f
5,388
ex
Elixir
lib/mongo/auth/scram.ex
Fudoshiki/elixir-mongodb-driver
28273e2e0bb9ef0cf9a4bb48aed17336446257f6
[ "Apache-2.0" ]
140
2019-04-10T09:23:53.000Z
2022-03-27T12:37:02.000Z
lib/mongo/auth/scram.ex
Fudoshiki/elixir-mongodb-driver
28273e2e0bb9ef0cf9a4bb48aed17336446257f6
[ "Apache-2.0" ]
99
2019-04-11T07:46:45.000Z
2022-03-31T07:23:28.000Z
lib/mongo/auth/scram.ex
Fudoshiki/elixir-mongodb-driver
28273e2e0bb9ef0cf9a4bb48aed17336446257f6
[ "Apache-2.0" ]
45
2019-07-15T07:06:21.000Z
2021-11-24T09:23:21.000Z
defmodule Mongo.Auth.SCRAM do @moduledoc false import Mongo.BinaryUtils import Bitwise alias Mongo.MongoDBConnection.Utils def auth({username, password}, db, s) do {mechanism, digest} = select_digest(db, username, s) nonce = nonce() first_bare = first_bare(username, nonce...
37.678322
155
0.641797
ab3b3028e96ee5b685d6d066fabc8d440dc734ce
108
ex
Elixir
lib/bagheera/repo.ex
hansjhoffman/bagheera
a816a38a4dd8a4ac841accb0234dfdc15f1aeec2
[ "MIT" ]
3
2020-02-19T14:57:45.000Z
2020-02-26T03:38:09.000Z
lib/bagheera/repo.ex
hansjhoffman/bagheera
a816a38a4dd8a4ac841accb0234dfdc15f1aeec2
[ "MIT" ]
1
2021-09-30T13:51:51.000Z
2021-09-30T13:51:51.000Z
lib/bagheera/repo.ex
hansjhoffman/bagheera
a816a38a4dd8a4ac841accb0234dfdc15f1aeec2
[ "MIT" ]
null
null
null
defmodule Bagheera.Repo do use Ecto.Repo, otp_app: :bagheera, adapter: Ecto.Adapters.Postgres end
18
35
0.731481
ab3b31014e883223eaa1bc32c2e88b88052b592e
1,910
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/append_cells_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/append_cells_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/append_cells_request.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...
36.730769
287
0.737696
ab3b4e3c3ca3d4eaf38cb1102701534f2df0b309
1,538
ex
Elixir
test/support/data_case.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
2
2020-05-22T15:45:53.000Z
2020-06-07T21:07:03.000Z
test/support/data_case.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
1
2021-03-10T16:36:46.000Z
2021-03-10T16:36:46.000Z
test/support/data_case.ex
AminArria/party_hub
aef6d17500856789c115e1c68fc95b853b220e1f
[ "MIT" ]
null
null
null
defmodule PartyHub.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, we enable the SQL sandbox, so changes done to ...
27.464286
77
0.689857
ab3b70e9dc1a714200c2017431db3505c08bad72
161
exs
Elixir
priv/repo/migrations/20170713151901_rename_orders_first_name.exs
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
196
2019-05-05T15:59:32.000Z
2022-03-15T02:37:19.000Z
priv/repo/migrations/20170713151901_rename_orders_first_name.exs
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
105
2019-05-04T19:04:40.000Z
2021-07-28T11:21:45.000Z
priv/repo/migrations/20170713151901_rename_orders_first_name.exs
gsarwate/shopix
21d0e85294ee92cb7573d1b5a5746af6824b9355
[ "MIT" ]
26
2019-05-05T19:40:52.000Z
2021-11-16T00:32:46.000Z
defmodule Shopix.Repo.Migrations.RenameOrdersFirstName do use Ecto.Migration def change do rename table(:orders), :fist_name, to: :first_name end end
20.125
57
0.763975
ab3b8746b8de3d5a790babf8d83f0a9a66549249
2,602
ex
Elixir
clients/game_services/lib/google_api/game_services/v1beta/model/game_server_deployment.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/game_services/lib/google_api/game_services/v1beta/model/game_server_deployment.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/game_services/lib/google_api/game_services/v1beta/model/game_server_deployment.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...
41.967742
296
0.702537
ab3b9ca3957549e1fbc5c97ad9b75e3c67b5c7b8
569
ex
Elixir
code/control/case.ex
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
null
null
null
code/control/case.ex
alvarocamillont/introdu-o_elixir
1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1
[ "MIT" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
programming-elixir-book/code/control/case.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
#--- # Excerpted from "Programming Elixir ≥ 1.6", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http...
33.470588
85
0.695958
ab3bb81e9e5bfa504c39b17fd3a784de7efe31b7
103
ex
Elixir
lib/top5_2/repo.ex
rpillar/Top5_Elixir2
9f3a9a0315c5dc53cb53aab93deadccdb697a868
[ "MIT" ]
1
2019-11-11T21:48:20.000Z
2019-11-11T21:48:20.000Z
lib/top5_2/repo.ex
rpillar/Top5_Elixir2
9f3a9a0315c5dc53cb53aab93deadccdb697a868
[ "MIT" ]
2
2021-03-09T09:26:25.000Z
2021-05-09T08:58:51.000Z
lib/top5_2/repo.ex
rpillar/Top5_Elixir2
9f3a9a0315c5dc53cb53aab93deadccdb697a868
[ "MIT" ]
null
null
null
defmodule Top52.Repo do use Ecto.Repo, otp_app: :top5_2, adapter: Ecto.Adapters.Postgres end
17.166667
35
0.718447
ab3bccfb7fe54ae4d58f467734ac112a52c1ed2d
1,539
ex
Elixir
test/support/factories.ex
LittleKidogo/Budgetinization
eae6dd62208ec7fb43c8c212f40611f8635205d5
[ "MIT" ]
2
2018-02-27T06:29:59.000Z
2018-06-09T16:53:49.000Z
test/support/factories.ex
LittleKidogo/Budgetinization
eae6dd62208ec7fb43c8c212f40611f8635205d5
[ "MIT" ]
94
2018-02-22T06:03:19.000Z
2018-06-28T14:30:31.000Z
test/support/factories.ex
LittleKidogo/Budgetinization
eae6dd62208ec7fb43c8c212f40611f8635205d5
[ "MIT" ]
1
2020-03-04T19:41:06.000Z
2020-03-04T19:41:06.000Z
defmodule Spender.Factories do @moduledoc """ Ex Machina factories for application entities for testing """ # with Ecto use ExMachina.Ecto, repo: Spender.Repo # Moneylog Factory def moneylog_factory do %Spender.MoneyLogs.Moneylog { name: sequence(:name, &"moneylog-#{&1}"), start_date: Da...
22.632353
59
0.624431
ab3bcd40807f94ea5644deaadc29aae0ea7728dd
4,488
exs
Elixir
test/engine/exclusive_gateway_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
test/engine/exclusive_gateway_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
test/engine/exclusive_gateway_test.exs
cjsuite/bpxe
4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9
[ "Apache-2.0" ]
null
null
null
defmodule BPXETest.Engine.ExclusiveGateway do use ExUnit.Case, async: true alias BPXE.Engine.{Model, Process, SequenceFlow} alias Process.Log doctest BPXE.Engine.ExclusiveGateway @xsi "http://www.w3.org/2001/XMLSchema-instance" test "sequence flow with the first truthful condition proceeds" do {:ok, pi...
35.338583
110
0.646168
ab3bd01a19612d652f7627ce0f21e64d67e32a22
1,596
exs
Elixir
test/grizzly/command_class/zip_nd/inv_node_solicitation_test.exs
ryanwinchester/grizzly
86002e01debe63c18f85270ddc948e3875f25043
[ "Apache-2.0" ]
null
null
null
test/grizzly/command_class/zip_nd/inv_node_solicitation_test.exs
ryanwinchester/grizzly
86002e01debe63c18f85270ddc948e3875f25043
[ "Apache-2.0" ]
null
null
null
test/grizzly/command_class/zip_nd/inv_node_solicitation_test.exs
ryanwinchester/grizzly
86002e01debe63c18f85270ddc948e3875f25043
[ "Apache-2.0" ]
null
null
null
defmodule Grizzly.CommandClass.ZipNd.InvNodeSolicitation.Test do use ExUnit.Case, async: true alias Grizzly.Packet alias Grizzly.CommandClass.ZipNd.InvNodeSolicitation alias Grizzly.Command.EncodeError describe "implements Grizzly.Command behaviour" do test "initializes command state" do assert {:...
31.92
94
0.672306
ab3be326787655b463cf2cc974351c3be267de7c
268
exs
Elixir
config/test.exs
Nagasaki45/gigalixir
8d0d96ddc2eb0d44a25651cfd28c07cc401139c8
[ "MIT" ]
2
2020-05-05T06:07:16.000Z
2020-05-09T02:12:32.000Z
config/test.exs
Nagasaki45/gigalixir
8d0d96ddc2eb0d44a25651cfd28c07cc401139c8
[ "MIT" ]
21
2020-05-05T16:06:57.000Z
2020-07-07T17:25:46.000Z
config/test.exs
Nagasaki45/gigalixir
8d0d96ddc2eb0d44a25651cfd28c07cc401139c8
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :cardigan, CardiganWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
24.363636
56
0.738806
ab3bfacfd3f29bb30aab1fb9aafc41cdd26e35dc
9,265
exs
Elixir
apps/nerves_hub_web_core/test/nerves_hub_web_core/deployments/deployments_test.exs
hassanshaikley/nerves_hub_web
9e187eacc0fbaa848d157b832a9ee6223019f0bd
[ "Apache-2.0" ]
1
2019-10-13T10:56:28.000Z
2019-10-13T10:56:28.000Z
apps/nerves_hub_web_core/test/nerves_hub_web_core/deployments/deployments_test.exs
Eaftos/nerves_hub_web
ac03bd044b97265bf3ba3edd8da249d300fa3668
[ "Apache-2.0" ]
null
null
null
apps/nerves_hub_web_core/test/nerves_hub_web_core/deployments/deployments_test.exs
Eaftos/nerves_hub_web
ac03bd044b97265bf3ba3edd8da249d300fa3668
[ "Apache-2.0" ]
null
null
null
defmodule NervesHubWebCore.DeploymentsTest do use NervesHubWebCore.DataCase, async: false use Phoenix.ChannelTest alias NervesHubWebCore.{AuditLogs.AuditLog, Deployments, Fixtures} alias Ecto.Changeset setup do user = Fixtures.user_fixture() org = Fixtures.org_fixture(user) product = Fixtures.pr...
30.081169
98
0.597733
ab3bfe7044cb735a3d8c49e4c36a43915463129a
27,797
exs
Elixir
test/phoenix_live_view/integrations/live_view_test.exs
haseebeqx/phoenix_live_view
217e0d538b281b829ae50d552b1cdb827c8560e1
[ "MIT" ]
null
null
null
test/phoenix_live_view/integrations/live_view_test.exs
haseebeqx/phoenix_live_view
217e0d538b281b829ae50d552b1cdb827c8560e1
[ "MIT" ]
null
null
null
test/phoenix_live_view/integrations/live_view_test.exs
haseebeqx/phoenix_live_view
217e0d538b281b829ae50d552b1cdb827c8560e1
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView.LiveViewTest do use ExUnit.Case, async: false import Plug.Conn import Phoenix.ConnTest import Phoenix.LiveViewTest alias Phoenix.LiveView alias Phoenix.LiveViewTest.{Endpoint, DOM, ClockLive, ClockControlsLive, LayoutView} @endpoint Endpoint @moduletag :capture_log setup...
35.097222
141
0.60136
ab3c52f04d19de6fc6ad735beea4c0b547273094
3,400
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__word_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__word_info.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__word_info.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...
53.125
437
0.741176
ab3c686110342d5ec97545c2ba64fa4157ffadc9
405
exs
Elixir
test/star_web/views/error_view_test.exs
ModinfinityLLC/star
6d56cea1c08f88b73984f7ad1197e4337139995f
[ "MIT" ]
2
2019-05-27T22:56:48.000Z
2019-06-17T14:42:53.000Z
test/star_web/views/error_view_test.exs
ModinfinityLLC/star
6d56cea1c08f88b73984f7ad1197e4337139995f
[ "MIT" ]
3
2020-07-17T03:13:04.000Z
2021-05-08T22:56:26.000Z
test/star_web/views/error_view_test.exs
ModinfinityLLC/star
6d56cea1c08f88b73984f7ad1197e4337139995f
[ "MIT" ]
null
null
null
defmodule StarWeb.ErrorViewTest do use StarWeb.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(StarWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do assert rend...
27
89
0.725926
ab3c8ec1af91853725a9789d450782957660724b
281
ex
Elixir
lib/history/sources/no_op/candles.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
20
2021-08-06T01:09:48.000Z
2022-03-28T18:44:56.000Z
lib/history/sources/no_op/candles.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
13
2021-08-21T21:17:02.000Z
2022-03-27T06:33:51.000Z
lib/history/sources/no_op/candles.ex
fremantle-industries/history
a8a33744279ff4ca62620785f9a2e9c0c99e4de7
[ "MIT" ]
2
2021-09-23T11:31:59.000Z
2022-01-09T16:19:35.000Z
defmodule History.Sources.NoOp.Candles do @type chunk :: History.Candles.CandleHistoryChunk.t() @spec chunk_range(atom) :: {:error, :not_supported} def chunk_range(_period) do {:error, :not_supported} end def fetch(_chunk) do {:error, :not_supported} end end
21.615385
55
0.708185
ab3cb45ef4c71dad040dd238c5231ebbf11027b4
1,270
exs
Elixir
mix.exs
techgaun/ex_sma
9058cfbf36c987fe9bf805e807e14334c7c393dc
[ "Apache-2.0" ]
3
2016-07-19T15:51:23.000Z
2019-08-13T00:59:47.000Z
mix.exs
techgaun/ex_sma
9058cfbf36c987fe9bf805e807e14334c7c393dc
[ "Apache-2.0" ]
null
null
null
mix.exs
techgaun/ex_sma
9058cfbf36c987fe9bf805e807e14334c7c393dc
[ "Apache-2.0" ]
null
null
null
defmodule Sma.Mixfile do use Mix.Project def project do [app: :sma, version: "0.1.0", elixir: "~> 1.2", source_url: "https://github.com/techgaun/ex_sma", description: "Simple moving average calculator in elixir", package: package(), test_coverage: [tool: ExCoveralls], preferr...
25.4
122
0.595276
ab3cee117d7dcded559f6cae2bcdd9edb01259b5
4,908
ex
Elixir
lib/nebulex/rpc.ex
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
lib/nebulex/rpc.ex
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
lib/nebulex/rpc.ex
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
defmodule Nebulex.RPC do @moduledoc """ RPC utilities for distributed task execution. This module uses supervised tasks underneath `Task.Supervisor`. """ @typedoc "Task callback" @type callback :: {module, atom, [term]} @typedoc "Group entry: node -> callback" @type node_callback :: {node, callback} ...
29.04142
94
0.565403
ab3d0f408fd58daeefaf7829c651ca1483df2f37
1,330
ex
Elixir
lib/tw/http/client/stub.ex
en30/tw
10c705953e9b3bf97abf9b4c221486976eac32d4
[ "MIT" ]
null
null
null
lib/tw/http/client/stub.ex
en30/tw
10c705953e9b3bf97abf9b4c221486976eac32d4
[ "MIT" ]
null
null
null
lib/tw/http/client/stub.ex
en30/tw
10c705953e9b3bf97abf9b4c221486976eac32d4
[ "MIT" ]
null
null
null
defmodule Tw.HTTP.Client.Stub do @moduledoc """ Stub HTTP client adapter mainly for testing. """ @behaviour Tw.HTTP.Client @type stub :: {{atom(), binary(), binary() | Regex.t()} | {atom(), binary()}, Tw.HTTP.Client.response()} @type stubs :: list(stub()) @impl Tw.HTTP.Client def request(method, url,...
21.803279
118
0.588722
ab3d30b6e5a693de3ba853f9340ad4e1a300fc4b
1,368
ex
Elixir
exercise-tracker/lib/exercise_tracker_web/endpoint.ex
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
exercise-tracker/lib/exercise_tracker_web/endpoint.ex
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
exercise-tracker/lib/exercise_tracker_web/endpoint.ex
dalamilla/phoenix-projects
52654fb0d3ff7d5b556569dac5c0863e230e3a00
[ "MIT" ]
null
null
null
defmodule ExerciseTrackerWeb.Endpoint do use Phoenix.Endpoint, otp_app: :exercise_tracker # 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, ...
30.4
99
0.722953