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
189c333d90d1b7828d112a115ddf62ca2ec40405
1,997
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/audit_log_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/audit_log_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/audit_log_config.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
39.94
316
0.730095
189c3b9a64db652dcf50ed53c3b008a87fb01541
648
exs
Elixir
test/util/map_test.exs
livinginthepast/elixir-gestalt
7082e5b663b9373d3728e7d3538f67f3c9b86bfa
[ "Apache-2.0" ]
5
2020-08-05T19:24:41.000Z
2022-02-09T02:12:20.000Z
test/util/map_test.exs
livinginthepast/elixir-gestalt
7082e5b663b9373d3728e7d3538f67f3c9b86bfa
[ "Apache-2.0" ]
2
2020-07-09T21:53:46.000Z
2020-07-15T23:05:57.000Z
test/util/map_test.exs
livinginthepast/elixir-gestalt
7082e5b663b9373d3728e7d3538f67f3c9b86bfa
[ "Apache-2.0" ]
1
2020-07-09T21:06:18.000Z
2020-07-09T21:06:18.000Z
defmodule Gestalt.Util.MapTest do use ExUnit.Case, async: true alias Gestalt.Util describe "deep_merge/2" do test "merges keys from the second map into the first" do assert Util.Map.deep_merge(%{a: 1, b: 2}, %{c: 3}) == %{a: 1, b: 2, c: 3} end test "merges nested maps" do assert Util.Ma...
27
97
0.550926
189c4b99823c5b857e9380cca41fe9c4fdeabbd6
286
exs
Elixir
learn/common/simple_test.exs
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
learn/common/simple_test.exs
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
learn/common/simple_test.exs
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
defmodule Example do def fun(), do: 1 end case System.argv() do ["--test"] -> ExUnit.start() defmodule ExampleTest do use ExUnit.Case import Example test "my code" do assert fun() == 1 end end _ -> Example.fun() |> IO.puts end
13
28
0.548951
189c5e4862c8d53a2e6031d6b7f2926a747ea2ec
2,369
exs
Elixir
test/level_web/graphql/mutations/revoke_space_access_test.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
928
2018-04-03T16:18:11.000Z
2019-09-09T17:59:55.000Z
test/level_web/graphql/mutations/revoke_space_access_test.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
74
2018-04-03T00:46:50.000Z
2019-03-10T18:57:27.000Z
test/level_web/graphql/mutations/revoke_space_access_test.exs
mindriot101/level
0a2cbae151869c2d9b79b3bfb388f5d00739ae12
[ "Apache-2.0" ]
89
2018-04-03T17:33:20.000Z
2019-08-19T03:40:20.000Z
defmodule LevelWeb.GraphQL.RevokeSpaceAccessTest do use LevelWeb.ConnCase, async: true import LevelWeb.GraphQL.TestHelpers alias Level.Spaces @query """ mutation RevokeSpaceAccess( $space_id: ID!, $space_user_id: ID! ) { revokeSpaceAccess( spaceId: $space_id, spaceUse...
26.617978
88
0.534825
189c6eeaf1df674b81230b77be34ba1a2efeda4c
12,505
ex
Elixir
clients/custom_search/lib/google_api/custom_search/v1/model/search_queries_previous_page.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/custom_search/lib/google_api/custom_search/v1/model/search_queries_previous_page.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/custom_search/lib/google_api/custom_search/v1/model/search_queries_previous_page.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...
82.269737
722
0.686285
189c75224211cd0b193a7f09fecdcfbe52f13b4a
2,908
ex
Elixir
lib/mailchimp/campaign.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2020-07-17T02:52:34.000Z
2020-07-17T02:52:34.000Z
lib/mailchimp/campaign.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2020-01-09T18:59:39.000Z
2020-01-09T18:59:39.000Z
lib/mailchimp/campaign.ex
morgz/mailchimp
77d073e4f7fcb1831257c6636dba8e19a3339cce
[ "MIT" ]
1
2019-09-10T10:19:10.000Z
2019-09-10T10:19:10.000Z
defmodule Mailchimp.Campaign do alias HTTPoison.Response alias Mailchimp.HTTPClient alias Mailchimp.Link alias Mailchimp.Campaign.{Tracking, Content} defstruct [ :id, :web_id, :type, :create_time, :archive_url, :long_archive_url, :status, :emails_sent, :send_time, :con...
26.925926
97
0.643054
189c823c052a4f10cd6959fb0e2d313943f23c84
1,508
ex
Elixir
socket_remotedata/web/web.ex
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "MIT" ]
1
2020-02-09T20:20:23.000Z
2020-02-09T20:20:23.000Z
socket_remotedata/web/web.ex
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "MIT" ]
null
null
null
socket_remotedata/web/web.ex
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "MIT" ]
null
null
null
defmodule SocketRemotedata.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use SocketRemotedata.Web, :controller use SocketRemotedata.Web, :view The definitions below will be executed for every view, contro...
21.542857
88
0.694297
189c8a8611aa17389c4d4cfdfb40192bedaea65e
459
exs
Elixir
test/pta/notifications/email_test.exs
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
test/pta/notifications/email_test.exs
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
test/pta/notifications/email_test.exs
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
defmodule Pta.Notifications.EmailTest do use ExUnit.Case use Bamboo.Test alias Pta.Accounts.User alias Pta.Notifications.Email test "password reset email" do user = %User{name: "John", email: "some@email.com", password_reset_token: "test-token"} email = Email.password_reset(user) assert email....
25.5
91
0.736383
189c8e451c14d48cfc0484f13a727dbacf79bb82
978
exs
Elixir
config/config.exs
Devotu/dmage
54d8e55bf010f2e0beb2bd0c21157366f0375bd3
[ "MIT" ]
null
null
null
config/config.exs
Devotu/dmage
54d8e55bf010f2e0beb2bd0c21157366f0375bd3
[ "MIT" ]
null
null
null
config/config.exs
Devotu/dmage
54d8e55bf010f2e0beb2bd0c21157366f0375bd3
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config # Configures the endpoint config :dmage, DmageWe...
33.724138
86
0.769939
189c9696c2bee35b1bf1769db69008e2faaa1ae4
1,037
ex
Elixir
web/models/workspace.ex
zapnap/asana_status
3b689906a8221573ba5f410d8fa31507d533bcb6
[ "MIT" ]
null
null
null
web/models/workspace.ex
zapnap/asana_status
3b689906a8221573ba5f410d8fa31507d533bcb6
[ "MIT" ]
null
null
null
web/models/workspace.ex
zapnap/asana_status
3b689906a8221573ba5f410d8fa31507d533bcb6
[ "MIT" ]
null
null
null
defmodule AsanaStatus.Workspace do use HTTPoison.Base def projects(workspace_id) do json = fetch("workspaces/#{workspace_id}/projects?archived=false") projects = Poison.decode!(json, as: %{"data" => [AsanaStatus.Project]})["data"] Enum.map(projects, fn(p) -> project(p.id) end) end def project(id) ...
29.628571
84
0.63838
189ca199fb906d4103ec16a254b12f40dc2e8cd1
24,852
exs
Elixir
test/ex_json_schema/validator_test.exs
lenra-io/ex_component_schema
a051ba94057cdd3218c4625e24f56a834a586aa6
[ "MIT" ]
2
2022-03-18T08:52:29.000Z
2022-03-18T08:52:33.000Z
test/ex_json_schema/validator_test.exs
lenra-io/ex_component_schema
a051ba94057cdd3218c4625e24f56a834a586aa6
[ "MIT" ]
8
2021-09-15T11:52:45.000Z
2022-01-10T13:13:53.000Z
test/ex_json_schema/validator_test.exs
lenra-io/ex_component_schema
a051ba94057cdd3218c4625e24f56a834a586aa6
[ "MIT" ]
null
null
null
defmodule ExComponentSchema.ValidatorTest do use ExUnit.Case, async: true import ExComponentSchema.Validator alias ExComponentSchema.Schema alias ExComponentSchema.Validator.Error @schema_with_ref Schema.resolve(%{ "properties" => %{ "foo" => %{"$ref" => "http://...
32.025773
112
0.518228
189cc44e7e9d222ae7bdabb4bfb7af1f34634029
3,196
ex
Elixir
lib/membrane_file/sink_multi.ex
nathanjohnson320/membrane_file_plugin
1011a0a20b79962a84fc6129f96dd598b58c4abb
[ "Apache-2.0" ]
null
null
null
lib/membrane_file/sink_multi.ex
nathanjohnson320/membrane_file_plugin
1011a0a20b79962a84fc6129f96dd598b58c4abb
[ "Apache-2.0" ]
null
null
null
lib/membrane_file/sink_multi.ex
nathanjohnson320/membrane_file_plugin
1011a0a20b79962a84fc6129f96dd598b58c4abb
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.File.Sink.Multi do @moduledoc """ Element that writes buffers to a set of files. File is switched on event. Files are named according to naming_fun passed in options. This function receives sequential number of file and should return string. It defaults to file000, file001, ... The even...
31.643564
91
0.598248
189cfc612d333badd8b7b6b5a50afc6438982c1c
1,246
exs
Elixir
Chapter07/vocial-demo-chapter-7/test/vocial_web/channels/polls_channel_test.exs
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
10
2018-05-13T14:53:05.000Z
2021-11-08T13:10:44.000Z
Chapter07/vocial-demo-chapter-7/test/vocial_web/channels/polls_channel_test.exs
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
null
null
null
Chapter07/vocial-demo-chapter-7/test/vocial_web/channels/polls_channel_test.exs
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
2
2019-04-23T10:54:33.000Z
2019-04-27T15:47:07.000Z
defmodule VocialWeb.PollChannelTest do use VocialWeb.ChannelCase alias VocialWeb.PollsChannel setup do {:ok, user} = Vocial.Accounts.create_user(%{ username: "test", email: "test@test.com", password: "test", password_confirmation: "test" }) {:ok, poll} = Vocial.Votes.create_p...
30.390244
78
0.617978
189d0fe8d8890a260a6fd40bc5f3bf2e30f58c86
1,177
ex
Elixir
lib/surface/components/form/email_input.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
1,161
2019-12-12T02:30:52.000Z
2021-03-11T17:55:44.000Z
lib/surface/components/form/email_input.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
248
2021-03-12T07:39:37.000Z
2022-03-31T13:36:44.000Z
lib/surface/components/form/email_input.ex
RudolfMan/surface
ee8c1546b77c91fe08e7360e64666c613bc5a900
[ "MIT" ]
73
2019-12-12T13:57:41.000Z
2021-03-11T21:46:10.000Z
defmodule Surface.Components.Form.EmailInput do @moduledoc """ An input field that let the user enter one or multiple **e-mails**. Provides a wrapper for Phoenix.HTML.Form's `email_input/3` function. All options passed via `opts` will be sent to `email_input/3`, `value` and `class` can be set directly and w...
26.75
81
0.683093
189d1a7bdc4322cfbd18922aa9edce784a15a03b
1,364
exs
Elixir
test/thematic_break_test.exs
mazz-seven/markdown_elixir
0b78ffa6c69ca67d54befedd4927bb4ba947235e
[ "MIT" ]
1
2020-04-13T09:39:55.000Z
2020-04-13T09:39:55.000Z
test/thematic_break_test.exs
mazz-seven/markdown_elixir
0b78ffa6c69ca67d54befedd4927bb4ba947235e
[ "MIT" ]
null
null
null
test/thematic_break_test.exs
mazz-seven/markdown_elixir
0b78ffa6c69ca67d54befedd4927bb4ba947235e
[ "MIT" ]
null
null
null
defmodule MarkdownElixirTest.ThematicBreak do use ExUnit.Case import MarkdownElixir.Parser.ThematicBreak describe "Thematic Break" do @tag runnable: true test "asterisk break" do markdown = "*******" ast = {:ok, [{"thematicBreak", [], [], %{line: 1}}]} assert parse(markdown) == ast ...
21.3125
58
0.530059
189d4cf2c89f3359f70495ac674773b3fdbef418
144
ex
Elixir
web/controllers/page_controller.ex
codebender/5280elixir
f7dee84b785b70f61b44f4dccacfe0311ad39617
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
codebender/5280elixir
f7dee84b785b70f61b44f4dccacfe0311ad39617
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
codebender/5280elixir
f7dee84b785b70f61b44f4dccacfe0311ad39617
[ "MIT" ]
null
null
null
defmodule Elixir5280.PageController do use Elixir5280.Web, :controller def index(conn, _params) do render conn, "index.html" end end
18
38
0.743056
189d827210aa1db46ad873d4d3730bcfc9170898
455
ex
Elixir
lib/echsx/config.ex
Sebi55/echsx
666d4b67c1bf8dbff608878a49205782cefe2c31
[ "MIT" ]
null
null
null
lib/echsx/config.ex
Sebi55/echsx
666d4b67c1bf8dbff608878a49205782cefe2c31
[ "MIT" ]
null
null
null
lib/echsx/config.ex
Sebi55/echsx
666d4b67c1bf8dbff608878a49205782cefe2c31
[ "MIT" ]
null
null
null
defmodule Echsx.Config do @moduledoc """ Provides application/system environment variable lookup at runtime """ @doc """ Returns the requested variable """ @spec get_env(atom, atom, any) :: any def get_env(application, key, default \\ nil) do application |> Application.get_env(key, default) ...
23.947368
74
0.692308
189d850115e5a1a2c4c979e5ad1a9cb4cec95c40
299
exs
Elixir
sources/Chapter7/ListAndRecursion-3.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
sources/Chapter7/ListAndRecursion-3.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
sources/Chapter7/ListAndRecursion-3.exs
Geroshabu/ProgrammingElixir
979a835fc728f750af50a3ae771ebbac2ab4000f
[ "MIT" ]
null
null
null
defmodule MyList do def caesar([], _), do: [] def caesar([head|tail], n) do [lotate_if_need(head+n) | caesar(tail, n)] end @alphabet_num 26 defp lotate_if_need(n) when [n] > 'z', do: lotate n defp lotate_if_need(n) when [n] >= 'a', do: n defp lotate(n), do: n - @alphabet_num end
24.916667
53
0.625418
189d8e0f82fda279a3d92eca257bf88be12c78db
326
exs
Elixir
priv/repo/migrations/20201203174319_create_user_configurations.exs
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
priv/repo/migrations/20201203174319_create_user_configurations.exs
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
priv/repo/migrations/20201203174319_create_user_configurations.exs
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
defmodule Squadster.Repo.Migrations.CreateUserConfigurations do use Ecto.Migration def change do create table(:user_configurations) do add :speaker, :string add :language, :string add :rate, :string add :enable_voice_messages, :boolean add :user_id, references(:users) end en...
23.285714
63
0.699387
189da94b998250567369bf06607ce6069ef1ca13
2,163
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/delete_paragraph_bullets_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/delete_paragraph_bullets_request.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/delete_paragraph_bullets_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 "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...
40.811321
216
0.760055
189db65010111de8f23270e9d1193f5e4ed18eb8
1,940
ex
Elixir
builder/lib/quenya_builder/generators/config.ex
yidaoit/quenya
45fe42c32829a1a2499d325e592553061b876ef8
[ "MIT" ]
143
2020-12-01T06:53:36.000Z
2022-03-24T02:33:01.000Z
builder/lib/quenya_builder/generators/config.ex
yidaoit/quenya
45fe42c32829a1a2499d325e592553061b876ef8
[ "MIT" ]
2
2020-11-30T05:30:42.000Z
2020-12-17T06:33:17.000Z
builder/lib/quenya_builder/generators/config.ex
tyrchen/quenya
b9e8ef9e71e0e52b010b930eee66942e30c62ddd
[ "MIT" ]
12
2020-12-07T01:22:17.000Z
2020-12-27T12:49:39.000Z
defmodule QuenyaBuilder.Generator.Config do @moduledoc """ Load and save quenya configuration """ @template """ ---<%= for {name, preprocessors, handlers, postprocessors} <- data do %> <%= name %>: preprocessors:<%= for {mod, opts} <- preprocessors do %> - <%= mod %>: <%= opts %><% end %> hand...
28.115942
82
0.575258
189dc76524efb7333316ccb23dcbcd04d0c94a79
758
exs
Elixir
exercise_1.19.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
2
2019-08-26T13:17:27.000Z
2020-09-24T13:16:07.000Z
exercise_1.19.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
null
null
null
exercise_1.19.exs
bschmeck/sicp-elixir
4e6f959f506d0cb4e2692177cbdad1c87779cf7d
[ "MIT" ]
null
null
null
defmodule Fibonacci do def of(n), do: iter(1, 0, 0, 1, n) defp iter(_, b, _, _, 0), do: b defp iter(a, b, p, q, count) when rem(count, 2) == 0 do p_prime = p * p + q * q q_prime = 2 * p * q + q * q iter(a, b, p_prime, q_prime, div(count, 2)) end defp iter(a, b, p, q, count) do new_a = b *...
22.294118
57
0.568602
189e25904e0ddd3b8183836ad57bf1985c6cde01
5,183
ex
Elixir
lib/mongo_ecto/model.ex
yorunoR/mongo_ecto
70309dcf45690154a6979defed69a33d9f87fa3b
[ "MIT" ]
null
null
null
lib/mongo_ecto/model.ex
yorunoR/mongo_ecto
70309dcf45690154a6979defed69a33d9f87fa3b
[ "MIT" ]
null
null
null
lib/mongo_ecto/model.ex
yorunoR/mongo_ecto
70309dcf45690154a6979defed69a33d9f87fa3b
[ "MIT" ]
null
null
null
defmodule MongoEcto.Model do @moduledoc """ Defines boilerplate to use native Mongo models. """ def model do quote do alias MongoEcto.Model.Helpers Module.register_attribute __MODULE__, :collection_name, accumulate: false @before_compile unquote(__MODULE__) ...
35.258503
102
0.565503
189e4acee6e383118918d92055eb923b48f04dec
8,122
exs
Elixir
test/credo/check/design/alias_usage_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
test/credo/check/design/alias_usage_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
test/credo/check/design/alias_usage_test.exs
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
defmodule Credo.Check.Design.AliasUsageTest do use Credo.Test.Case @described_check Credo.Check.Design.AliasUsage # # single alias cases # # # cases NOT raising issues # test "it should NOT report expected code" do """ defmodule CredoSampleModule do alias ExUnit.Case def fun1 ...
22.191257
119
0.607609
189e52dc486e6b9372087b728cdd0332e7ef1885
2,456
ex
Elixir
clients/service_directory/lib/google_api/service_directory/v1beta1/model/endpoint.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/service_directory/lib/google_api/service_directory/v1beta1/model/endpoint.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/service_directory/lib/google_api/service_directory/v1beta1/model/endpoint.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...
35.594203
128
0.687296
189e62f4e1cdb184c23cd2d9b2758a77ad479a2a
228
ex
Elixir
lib/goodreads_twitter.ex
joaothallis/goodreads_twitter2
6e9178c3f7484d4621f1168c582cefd2bdbef36b
[ "MIT" ]
null
null
null
lib/goodreads_twitter.ex
joaothallis/goodreads_twitter2
6e9178c3f7484d4621f1168c582cefd2bdbef36b
[ "MIT" ]
null
null
null
lib/goodreads_twitter.ex
joaothallis/goodreads_twitter2
6e9178c3f7484d4621f1168c582cefd2bdbef36b
[ "MIT" ]
null
null
null
defmodule GoodreadsTwitter do @moduledoc """ Documentation for `GoodreadsTwitter`. """ @doc """ Hello world. ## Examples iex> GoodreadsTwitter.hello() :world """ def hello do :world end end
12
39
0.609649
189e80acefafbc987c2944b5421de608adc0af56
1,387
exs
Elixir
config/config.exs
Q2Worlds/ecto_shortcuts
45e1373d2ade79b909f515314db060f0ca7fd547
[ "MIT" ]
32
2016-09-01T19:09:54.000Z
2021-04-08T21:35:00.000Z
config/config.exs
Q2Worlds/ecto_shortcuts
45e1373d2ade79b909f515314db060f0ca7fd547
[ "MIT" ]
1
2016-09-28T18:06:40.000Z
2016-09-28T18:06:40.000Z
config/config.exs
Q2Worlds/ecto_shortcuts
45e1373d2ade79b909f515314db060f0ca7fd547
[ "MIT" ]
3
2016-09-28T07:14:39.000Z
2017-07-02T14:03:22.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config config :ecto_shortcuts, ecto_repos: [EctoShortcutsTest.Repo] config :ecto_shortcuts, EctoShortcutsTest.Repo, adapter: Ecto.Adapters.MySQL, database: "ecto_shortcuts_test", u...
33.02381
73
0.750541
189e964692d6e6914a82cbb8ecbfd03859d14a54
870
ex
Elixir
apps/eigr_functions/lib/functions/eventsourced/supervisor.ex
sleipnir/permastate-elixir
43cda3a186819c9cfd3ce993907f24251c9ef42b
[ "Apache-2.0" ]
2
2021-07-28T23:02:24.000Z
2021-07-29T00:34:42.000Z
apps/eigr_functions/lib/functions/eventsourced/supervisor.ex
sleipnir/permastate-elixir
43cda3a186819c9cfd3ce993907f24251c9ef42b
[ "Apache-2.0" ]
null
null
null
apps/eigr_functions/lib/functions/eventsourced/supervisor.ex
sleipnir/permastate-elixir
43cda3a186819c9cfd3ce993907f24251c9ef42b
[ "Apache-2.0" ]
1
2021-07-28T21:31:12.000Z
2021-07-28T21:31:12.000Z
defmodule Functions.EventSourced.Supervisor do @moduledoc false use DynamicSupervisor @impl true def init(_opts) do DynamicSupervisor.init(strategy: :one_for_one) end @spec start_link(any) :: :ignore | {:error, any} | {:ok, pid} def start_link(opts) do DynamicSupervisor.start_link(__MODULE__, o...
27.1875
94
0.68046
189ea3cfe73b0999c15911dc5d3df67b913a266b
531
ex
Elixir
lib/ex_onixo/parser/product/descriptive_detail/language_role.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
1
2021-12-11T06:44:18.000Z
2021-12-11T06:44:18.000Z
lib/ex_onixo/parser/product/descriptive_detail/language_role.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
null
null
null
lib/ex_onixo/parser/product/descriptive_detail/language_role.ex
damjack/ex_onixo
5b1f97bc65867dcf1710540264094d147722ee11
[ "MIT" ]
null
null
null
defmodule ExOnixo.Parser.Product.DescriptiveDetail.LanguageRole do import SweetXml alias ExOnixo.Helper.ElementYml def parse_recursive(xml) do SweetXml.xpath(xml, ~x"./Language/LanguageRole"l) |> Enum.map(fn language_role -> %{ code: ElementYml.get_tag(language_role, "/", "LanguageRol...
26.55
73
0.640301
189eb11327e889345f967cbd52e324ae724b94ea
389
exs
Elixir
priv/repo/migrations/20210404152026_create_services.exs
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
priv/repo/migrations/20210404152026_create_services.exs
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
priv/repo/migrations/20210404152026_create_services.exs
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
defmodule TackleBoxCds.Repo.Migrations.CreateServices do use Ecto.Migration def change do create table(:services, primary_key: false) do add :id, :binary_id, primary_key: true add :hook, :string, null: false add :title, :string add :description, :string, null: false add :prefetch,...
21.611111
56
0.652956
189ebdce7eda0cd5f694ff200b4c43a41fc8b512
1,015
ex
Elixir
lib/crater/application.ex
blvdgroup/crater
78d03de2eac73d90148df6c5d2d03e99b9b5ccb7
[ "Apache-2.0" ]
1
2018-03-13T08:15:50.000Z
2018-03-13T08:15:50.000Z
lib/crater/application.ex
blvdgroup/crater
78d03de2eac73d90148df6c5d2d03e99b9b5ccb7
[ "Apache-2.0" ]
1
2018-03-17T15:45:26.000Z
2018-03-17T15:45:26.000Z
lib/crater/application.ex
blvdgroup/crater
78d03de2eac73d90148df6c5d2d03e99b9b5ccb7
[ "Apache-2.0" ]
1
2017-08-30T16:13:09.000Z
2017-08-30T16:13:09.000Z
defmodule Crater.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 ...
31.71875
84
0.712315
189f0b253ecb495065468412bad882775a162eba
1,807
exs
Elixir
test/auto_api/states/vehicle_location_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
4
2018-01-19T16:11:10.000Z
2019-12-13T16:35:10.000Z
test/auto_api/states/vehicle_location_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
5
2020-07-16T07:20:21.000Z
2021-09-22T10:18:04.000Z
test/auto_api/states/vehicle_location_state_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
1
2021-02-17T18:36:13.000Z
2021-02-17T18:36:13.000Z
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
37.645833
79
0.721085
189f32c099025a6f5e3576c32148fd65e6c43b9a
76
exs
Elixir
apps/tanx_web/test/tanx_web/views/layout_view_test.exs
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
112
2016-05-10T17:17:08.000Z
2022-01-25T22:41:29.000Z
apps/tanx_web/test/tanx_web/views/layout_view_test.exs
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
3
2016-05-10T04:39:02.000Z
2019-07-19T12:50:07.000Z
apps/tanx_web/test/tanx_web/views/layout_view_test.exs
4eek/tanx
32750c15966d6272db9d96fa620fb277a61520e4
[ "MIT" ]
22
2016-05-17T01:51:51.000Z
2022-03-15T03:21:02.000Z
defmodule TanxWeb.LayoutViewTest do use TanxWeb.ConnCase, async: true end
19
35
0.815789
189f7e9728a6c9d36d9cc8093ff8862dc61293fc
184
ex
Elixir
lib/mix_machine/utils.ex
axelson/mix_machine
f5d2ee0fb98dd8c939671be1993badd41444cad6
[ "MIT" ]
7
2021-09-28T20:57:33.000Z
2021-11-27T19:46:28.000Z
lib/mix_machine/utils.ex
axelson/mix_machine
f5d2ee0fb98dd8c939671be1993badd41444cad6
[ "MIT" ]
8
2021-09-29T17:55:57.000Z
2022-01-19T11:38:30.000Z
lib/mix_machine/utils.ex
axelson/mix_machine
f5d2ee0fb98dd8c939671be1993badd41444cad6
[ "MIT" ]
2
2021-09-30T09:47:06.000Z
2021-11-27T02:35:12.000Z
defmodule MixMachine.Utils do @moduledoc false def fingerprint(data) do data |> :erlang.term_to_binary() |> :erlang.md5() |> Base.encode16(case: :lower) end end
16.727273
34
0.652174
189fa3639de9586834933ccf6b06f99370c4da1f
822
exs
Elixir
test/json_schema_test_suite/draft6/optional/format/uri_template_test.exs
hrzndhrn/json_xema
955eab7b0919d144b38364164d90275201c89474
[ "MIT" ]
54
2019-03-10T19:51:07.000Z
2021-12-23T07:31:09.000Z
test/json_schema_test_suite/draft6/optional/format/uri_template_test.exs
hrzndhrn/json_xema
955eab7b0919d144b38364164d90275201c89474
[ "MIT" ]
36
2018-05-20T09:13:20.000Z
2021-03-14T15:22:03.000Z
test/json_schema_test_suite/draft6/optional/format/uri_template_test.exs
hrzndhrn/json_xema
955eab7b0919d144b38364164d90275201c89474
[ "MIT" ]
3
2019-04-12T09:08:51.000Z
2019-12-04T01:23:56.000Z
defmodule JsonSchemaTestSuite.Draft6.Optional.Format.UriTemplateTest do use ExUnit.Case import JsonXema, only: [valid?: 2] describe ~s|format: uri-template| do setup do %{schema: JsonXema.new(%{"format" => "uri-template"})} end test ~s|a valid uri-template|, %{schema: schema} do assert ...
29.357143
76
0.656934
18a009db63c0621acc2343216c6392ecc7fef9f9
2,234
exs
Elixir
test/concentrate/group_filter/vehicle_stop_match_test.exs
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
19
2018-01-22T18:39:20.000Z
2022-02-22T16:15:30.000Z
test/concentrate/group_filter/vehicle_stop_match_test.exs
mbta/concentrate
bae6e05713ed079b7da53867a01dd007861fb656
[ "MIT" ]
216
2018-01-22T14:22:39.000Z
2022-03-31T10:30:31.000Z
test/concentrate/group_filter/vehicle_stop_match_test.exs
paulswartz/concentrate
a69aa51c16071f2669932005be810da198f622c8
[ "MIT" ]
5
2018-01-22T14:18:15.000Z
2021-04-26T18:34:19.000Z
defmodule Concentrate.GroupFilter.VehicleStopMatchTest do @moduledoc false use ExUnit.Case, async: true import Concentrate.GroupFilter.VehicleStopMatch alias Concentrate.{StopTimeUpdate, VehiclePosition} alias Concentrate.Filter.GTFS.Stops describe "filter/1" do test "updates the VehiclePosition stop_i...
31.914286
94
0.638317
18a030b92ccf0d9988b420645f23e25381208243
167
ex
Elixir
lib/sthub/http/http_response.ex
Rukenshia/sthub-web
2749e0a08ca71683ca1d44ceecc89310dea70e07
[ "MIT" ]
null
null
null
lib/sthub/http/http_response.ex
Rukenshia/sthub-web
2749e0a08ca71683ca1d44ceecc89310dea70e07
[ "MIT" ]
14
2020-07-17T06:00:03.000Z
2020-10-29T20:28:32.000Z
lib/sthub/http/http_response.ex
Rukenshia/sthub-web
2749e0a08ca71683ca1d44ceecc89310dea70e07
[ "MIT" ]
null
null
null
defmodule StHub.Http.Response do defstruct body: nil, status_code: nil @type t :: %__MODULE__{ status_code: integer, body: term } end
18.555556
39
0.610778
18a099459478d834d3da9e2373b812f081810856
322
exs
Elixir
elixir/samples/window/mix.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
2
2015-12-09T02:16:51.000Z
2021-07-26T22:53:43.000Z
elixir/samples/window/mix.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
null
null
null
elixir/samples/window/mix.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
1
2016-05-08T18:40:31.000Z
2016-05-08T18:40:31.000Z
defmodule Window.Mixfile do use Mix.Project def project do [app: :window, version: "0.1.0", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end def application do [applications: [:logger]] end defp deps do [] end en...
15.333333
39
0.586957
18a09d3327ee673b5cf818e95d1740f9c0deb153
610
ex
Elixir
daniel/almeida/ch5/my_list.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
daniel/almeida/ch5/my_list.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
1
2020-02-26T14:55:23.000Z
2020-02-26T14:55:23.000Z
daniel/almeida/ch5/my_list.ex
jdashton/glowing-succotash
44580c2d4cb300e33156d42e358e8a055948a079
[ "MIT" ]
null
null
null
defmodule MyList do def each([], _function), do: nil def each([head | tail], function) do function.(head) each(tail, function) end def map([], _function), do: [] def map([head | tail], function) do [function.(head) | map(tail, function)] end def reduce([], acc, _function), do: acc def redu...
22.592593
48
0.611475
18a0c03889080d7fa114c2c11713a4848ccf3e38
4,515
ex
Elixir
lib/earmark/context.ex
boudra/earmark
add45b50fbfdd96283e0d5359ffcf43b844337ad
[ "Apache-1.1" ]
null
null
null
lib/earmark/context.ex
boudra/earmark
add45b50fbfdd96283e0d5359ffcf43b844337ad
[ "Apache-1.1" ]
null
null
null
lib/earmark/context.ex
boudra/earmark
add45b50fbfdd96283e0d5359ffcf43b844337ad
[ "Apache-1.1" ]
null
null
null
defmodule Earmark.Context do use Earmark.Types import Earmark.Helpers @type t :: %__MODULE__{ options: Earmark.Options.t(), links: map(), rules: Keyword.t() | nil, footnotes: map(), value: String.t() | [String.t()] } defstruct options: %Earmark.Options...
28.757962
88
0.44474
18a1171a37cd2f0eb923b54564bf3d134279a75d
34,584
ex
Elixir
deps/ecto_sql/lib/ecto/adapters/mysql/connection.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/ecto_sql/lib/ecto/adapters/mysql/connection.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
deps/ecto_sql/lib/ecto/adapters/mysql/connection.ex
rpillar/Top5_Elixir
9c450d2e9b291108ff1465dc066dfe442dbca822
[ "MIT" ]
null
null
null
if Code.ensure_loaded?(Mariaex) do defmodule Ecto.Adapters.MySQL.Connection do @moduledoc false @behaviour Ecto.Adapters.SQL.Connection ## Connection @impl true def child_spec(opts) do opts |> Keyword.put_new(:datetime, :structs) |> Mariaex.child_spec() end ...
36.100209
136
0.581107
18a11cb4cf947c313bab485dac404faf4dda8376
231
exs
Elixir
priv/repo/migrations/20210604163821_add_disable_notifications_user_followers.exs
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
priv/repo/migrations/20210604163821_add_disable_notifications_user_followers.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
priv/repo/migrations/20210604163821_add_disable_notifications_user_followers.exs
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Repo.Migrations.AddisNotificationDisabledUserFollowers do use Ecto.Migration def change do alter table(:user_followers) do add(:is_notification_disabled, :boolean, default: false) end end end
23.1
75
0.770563
18a13eb7b17d0b3c805df1360a3387039f1dfd62
328
ex
Elixir
lib/mix/tasks/list.ex
fremantle-capital/package
8db16e162d61c567d4df27df3688aba1e0efc0c0
[ "MIT" ]
8
2019-07-19T22:44:40.000Z
2021-02-09T19:28:21.000Z
lib/mix/tasks/list.ex
fremantle-capital/package
8db16e162d61c567d4df27df3688aba1e0efc0c0
[ "MIT" ]
25
2020-02-05T21:37:30.000Z
2021-02-22T05:42:06.000Z
lib/mix/tasks/list.ex
fremantle-capital/package
8db16e162d61c567d4df27df3688aba1e0efc0c0
[ "MIT" ]
1
2020-05-11T16:13:10.000Z
2020-05-11T16:13:10.000Z
defmodule Mix.Tasks.Wrap.List do @moduledoc """ List namespaced presents that can be deployed """ use Mix.Task @shortdoc "List presents" @spec run(term) :: no_return def run(_) do Wrap.Mix.Support.setup() "*" |> Wrap.Presents.query() |> Enum.map(& &1.name) |> Enum.map(&IO.puts/1) ...
17.263158
47
0.615854
18a150e81f66935423425f9987c4346720c82902
1,154
exs
Elixir
test/pact_test.exs
BlakeWilliams/pact
bc3da192c9b5fe3ab02a05d43bc3ae3513b8f666
[ "MIT" ]
77
2015-01-06T19:46:45.000Z
2021-11-20T20:04:14.000Z
test/pact_test.exs
BlakeWilliams/pact
bc3da192c9b5fe3ab02a05d43bc3ae3513b8f666
[ "MIT" ]
8
2015-02-26T16:58:40.000Z
2018-09-10T17:44:11.000Z
test/pact_test.exs
BlakeWilliams/pact
bc3da192c9b5fe3ab02a05d43bc3ae3513b8f666
[ "MIT" ]
8
2015-02-25T18:35:33.000Z
2018-09-10T16:34:28.000Z
defmodule FakeApp.Pact do use Pact register "http", HTTPoison end defmodule PactTest do use ExUnit.Case setup_all do FakeApp.Pact.start_link :ok end test "accesses pre-registered modules" do assert FakeApp.Pact.get("http") === HTTPoison end test "registers and accesses modules manually"...
20.245614
59
0.680243
18a154ab605def6adbadc0a19c3fcae76859720a
196
ex
Elixir
lib/phone/ml.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/ml.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
lib/phone/ml.ex
net/phone
18e1356d2f8d32fe3f95638c3c44bceab0164fb2
[ "Apache-2.0" ]
null
null
null
defmodule Phone.ML do @moduledoc false use Helper.Country def regex, do: ~r/^(223)()(.{8})/ def country, do: "Mali" def a2, do: "ML" def a3, do: "MLI" matcher :regex, ["223"] end
15.076923
35
0.591837
18a16f3c9d2d07a7a7015e9e9c0ff8f04ab98d35
6
exs
Elixir
lib/mix/test/fixtures/configs/bad_root.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
4
2015-12-22T02:46:39.000Z
2016-04-26T06:11:09.000Z
lib/mix/test/fixtures/configs/bad_root.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
null
null
null
lib/mix/test/fixtures/configs/bad_root.exs
chulkilee/elixir
699231dcad52916a76f38856cbd7cf7c7bdadc51
[ "Apache-2.0" ]
8
2018-02-20T18:30:53.000Z
2019-06-18T14:23:31.000Z
:oops
3
5
0.666667
18a181de1e84d69cf9daf67587343151b995eaa7
3,288
ex
Elixir
lib/perf/load_generator.ex
juanzapa/distributed-performance-analyzer
d5f0e8cd6051281d76413236076c45fbaf36b6ba
[ "MIT" ]
1
2020-06-07T01:35:24.000Z
2020-06-07T01:35:24.000Z
lib/perf/load_generator.ex
juanzapa/distributed-performance-analyzer
d5f0e8cd6051281d76413236076c45fbaf36b6ba
[ "MIT" ]
null
null
null
lib/perf/load_generator.ex
juanzapa/distributed-performance-analyzer
d5f0e8cd6051281d76413236076c45fbaf36b6ba
[ "MIT" ]
1
2020-02-20T14:19:05.000Z
2020-02-20T14:19:05.000Z
defmodule Perf.LoadGenerator do use Task alias Perf.Model.Request def start(%LoadProcessModel{request: request, step_name: step_name, end_time: end_time}, concurrency) do Task.start(fn -> conn = Perf.ConnectionPool.get_connection() try do results = generate_load(request, [], end_time, c...
30.165138
186
0.618917
18a1912f745f0de096d255760ee958f4208ea788
410
ex
Elixir
lib/codes/codes_j82.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_j82.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_j82.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_J82 do alias IcdCode.ICDCode def _J82 do %ICDCode{full_code: "J82", category_code: "J82", short_code: "", full_name: "Pulmonary eosinophilia, not elsewhere classified", short_name: "Pulmonary eosinophilia, not elsewhere classified", ...
25.625
75
0.668293
18a1978d7388bcfb1b9377d41c40abc108e83e15
3,749
exs
Elixir
apps/flair/test/unit/flair/durations_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
8
2021-10-31T18:45:02.000Z
2022-03-05T18:33:08.000Z
apps/flair/test/unit/flair/durations_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
7
2022-01-14T21:21:23.000Z
2022-03-16T17:23:10.000Z
apps/flair/test/unit/flair/durations_test.exs
UrbanOS-Public/smartcitiesdata
c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd
[ "Apache-2.0" ]
1
2022-03-08T23:45:02.000Z
2022-03-08T23:45:02.000Z
defmodule Flair.DurationsTest do use ExUnit.Case alias SmartCity.Data alias SmartCity.Data.Timing alias Flair.Durations describe "reducer/2" do test "with empty accumulator" do message = make_data_message() |> Data.add_timing(make_timing()) assert %{"some_id" => [%Timing{}]...
26.971223
90
0.530008
18a1a63e1fee32779a7e0b4346ca37ad0989fd05
1,180
ex
Elixir
benchmark/lib/grpc/testing/payloads.pb.ex
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
561
2019-03-18T09:10:57.000Z
2022-03-27T17:34:59.000Z
benchmark/lib/grpc/testing/payloads.pb.ex
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
94
2019-03-20T09:34:38.000Z
2022-02-27T20:44:04.000Z
benchmark/lib/grpc/testing/payloads.pb.ex
braverhealth/grpc
eff8a8828d27ddd7f63a3c1dd5aae86246df215e
[ "Apache-2.0" ]
112
2019-03-25T03:27:26.000Z
2022-03-21T12:43:59.000Z
defmodule Grpc.Testing.ByteBufferParams do @moduledoc false use Protobuf, syntax: :proto3 @type t :: %__MODULE__{ req_size: integer, resp_size: integer } defstruct [:req_size, :resp_size] field :req_size, 1, type: :int32 field :resp_size, 2, type: :int32 end defmodule Grpc.Tes...
23.137255
75
0.682203
18a202ebf0ca8c956c66176b63faab3abbd336fc
538
exs
Elixir
.credo.exs
szTheory/inertia_phoenix
e402057ced14bdd020d4b1c4354b089aee773a75
[ "MIT" ]
82
2020-02-17T16:02:58.000Z
2022-01-25T23:46:17.000Z
.credo.exs
szTheory/inertia_phoenix
e402057ced14bdd020d4b1c4354b089aee773a75
[ "MIT" ]
61
2020-03-09T09:07:26.000Z
2021-08-03T03:28:55.000Z
.credo.exs
bigx333/inertia_phoenix
a7d8e8a8cdd6b5f061932f3575f396eb3cbc30ea
[ "MIT" ]
22
2020-02-17T13:16:32.000Z
2022-02-26T19:04:14.000Z
%{ configs: [ %{ name: "default", files: %{ included: ["lib/"], excluded: [] }, checks: [ {Credo.Check.Consistency.TabsOrSpaces}, {Credo.Check.Design.AliasUsage, priority: :low}, {Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 80}...
25.619048
80
0.561338
18a2264b51d60933bd825a81856a4a9bc1a40086
4,585
exs
Elixir
test/nebulex/caching_test.exs
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
test/nebulex/caching_test.exs
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
test/nebulex/caching_test.exs
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
defmodule Nebulex.CachingTest do use ExUnit.Case, async: true defmodule Cache do use Nebulex.Cache, otp_app: :nebulex, adapter: Nebulex.Adapters.Local end defmodule Meta do defstruct [:id, :count] end import Nebulex.Caching alias Nebulex.CachingTest.{Cache, Meta} setup do {:o...
22.69802
80
0.589967
18a23aa62c9d5aeb43a03dddf8596b58a5178d28
1,427
ex
Elixir
lib/phoenix_trello/board_channel/monitor.ex
gridgentoo/ElixirTrelloKanban
11b91d9d864d2e332a94838d43c7a9b1015e17c6
[ "MIT" ]
2,784
2016-01-06T03:16:07.000Z
2022-03-14T03:52:20.000Z
lib/phoenix_trello/board_channel/monitor.ex
gridgentoo/ElixirTrelloKanban
11b91d9d864d2e332a94838d43c7a9b1015e17c6
[ "MIT" ]
49
2016-01-07T11:48:10.000Z
2020-04-27T16:10:12.000Z
lib/phoenix_trello/board_channel/monitor.ex
gridgentoo/ElixirTrelloKanban
11b91d9d864d2e332a94838d43c7a9b1015e17c6
[ "MIT" ]
586
2016-01-11T17:02:13.000Z
2021-12-01T10:54:47.000Z
defmodule PhoenixTrello.BoardChannel.Monitor do @moduledoc """ Board monitor that keeps track of connected users. """ use GenServer ##### # External API def create(board_id) do case GenServer.whereis(ref(board_id)) do nil -> Supervisor.start_child(PhoenixTrello.BoardChannel.Supervisor...
20.985294
81
0.658024
18a23e7e397c4744104dfe6d5b6bd9e4e53e3f4b
8,016
ex
Elixir
lib/core/registry.ex
jamcito/telemetry_metrics_prometheus_core
8892adde76bf424573baee5ef5873910f4765aaa
[ "Apache-2.0" ]
29
2019-09-20T05:33:26.000Z
2021-11-12T12:09:12.000Z
lib/core/registry.ex
jamcito/telemetry_metrics_prometheus_core
8892adde76bf424573baee5ef5873910f4765aaa
[ "Apache-2.0" ]
33
2019-09-15T04:27:04.000Z
2022-01-30T15:58:59.000Z
lib/core/registry.ex
jamcito/telemetry_metrics_prometheus_core
8892adde76bf424573baee5ef5873910f4765aaa
[ "Apache-2.0" ]
16
2019-10-22T12:53:10.000Z
2022-02-24T11:31:24.000Z
defmodule TelemetryMetricsPrometheus.Core.Registry do @moduledoc false use GenServer require Logger alias Telemetry.Metrics alias TelemetryMetricsPrometheus.Core.{Counter, Distribution, LastValue, Sum} @type name :: atom() @type metric_exists_error() :: {:error, :already_exists, Metrics.t()} @type un...
30.363636
112
0.649701
18a2699298a8c2df8866035c39c1dc6d154634f8
3,945
ex
Elixir
apps/artemis_web/lib/artemis_web/view_helpers/pagination.ex
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis_web/lib/artemis_web/view_helpers/pagination.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis_web/lib/artemis_web/view_helpers/pagination.ex
chrislaskey/atlas_dashboard
9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe
[ "MIT" ]
2
2019-07-05T22:51:47.000Z
2019-08-19T19:56:37.000Z
defmodule ArtemisWeb.ViewHelper.Pagination do use Phoenix.HTML @doc """ Generates pagination """ def render_pagination(conn_or_assigns, data, options \\ []) def render_pagination(%Plug.Conn{} = conn, data, options) do assigns = %{ conn: conn, query_params: conn.query_params, request_...
27.978723
110
0.671736
18a26a6074eb080ddddbea7836280f12672a6bdc
1,559
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/get_orders_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/get_orders_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/get_orders_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...
33.170213
134
0.74984
18a296a44c13c843872ff582638d20458e809d70
6,973
ex
Elixir
lib/aws/generated/sage_maker_a2i_runtime.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/sage_maker_a2i_runtime.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/sage_maker_a2i_runtime.ex
benmmari/aws-elixir
b97477498a9e8ba0d46a09255302d88c6a1c8573
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.SageMakerA2IRuntime do @moduledoc """ <important> Amazon Augmented AI is in preview release and is subject to change. We do not recommend using this product in production environments. </...
36.129534
184
0.686935
18a2c13b52ffa86f3285389e7a50f379f5220bfc
3,149
ex
Elixir
clients/domains/lib/google_api/domains/v1beta1/model/operation.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/domains/lib/google_api/domains/v1beta1/model/operation.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/domains/lib/google_api/domains/v1beta1/model/operation.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
53.372881
543
0.724039
18a2c46fa19a986af628b54e5828304a215df256
1,881
ex
Elixir
web/controllers/token_controller.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/controllers/token_controller.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
web/controllers/token_controller.ex
roryqueue/code-corps-api
f23007e13fed2d7264fd2e2e97b1497488fb54ba
[ "MIT" ]
null
null
null
defmodule CodeCorps.TokenController do use CodeCorps.Web, :controller import Comeonin.Bcrypt, only: [checkpw: 2, dummy_checkpw: 0] alias CodeCorps.GuardianSerializer alias CodeCorps.Repo alias CodeCorps.User @analytics Application.get_env(:code_corps, :analytics) def create(conn, params = %{"username" =...
33
103
0.628921
18a2ff77a63fb1b2269eb34eea2b3b3d021f6e14
291
exs
Elixir
apps/data/priv/repo/migrations/20181006185232_add_user_agents.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/data/priv/repo/migrations/20181006185232_add_user_agents.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/data/priv/repo/migrations/20181006185232_add_user_agents.exs
sb8244/grapevine
effaaa01294d30114090c20f9cc40b8665d834f2
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
defmodule GrapevineData.Repo.Migrations.AddUserAgents do use Ecto.Migration def change do create table(:user_agents) do add :version, :string, null: false add :repo_url, :text timestamps() end create index(:user_agents, :version, unique: true) end end
19.4
56
0.687285
18a34866d7420f98e5ba741738ad0d3a8bd9c28d
1,706
ex
Elixir
backend/lib/edgehog/devices/system_model.ex
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/lib/edgehog/devices/system_model.ex
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/lib/edgehog/devices/system_model.ex
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
# # This file is part of Edgehog. # # Copyright 2021 SECO Mind Srl # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
32.188679
109
0.722743
18a34f1b73257c6a2f6df866315df9e3352bd01b
1,130
ex
Elixir
lib/lib_ten_web/views/error_view.ex
10clouds/10Books
622360ea190421e07d4b207700867be105894218
[ "MIT" ]
11
2018-08-29T15:59:09.000Z
2021-08-25T16:35:13.000Z
lib/lib_ten_web/views/error_view.ex
fram74/10Books
9e4e280032c7f7b9625c831efa9850d999327e53
[ "MIT" ]
16
2018-08-29T15:43:52.000Z
2021-05-09T00:53:56.000Z
lib/lib_ten_web/views/error_view.ex
fram74/10Books
9e4e280032c7f7b9625c831efa9850d999327e53
[ "MIT" ]
3
2019-05-29T14:22:59.000Z
2020-06-06T12:30:54.000Z
defmodule LibTenWeb.ErrorView do use LibTenWeb, :view @error_types %{ not_found: "NOT_FOUND", record_invalid: "RECORD_INVALID" } def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end def render("error.json", %{type: t...
22.6
58
0.630088
18a36d7e5304b7ece4fe4b10c70d3ffb44d3d83d
1,831
ex
Elixir
clients/ad_sense/lib/google_api/ad_sense/v14/model/adsense_reports_generate_response_headers.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_sense/lib/google_api/ad_sense/v14/model/adsense_reports_generate_response_headers.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_sense/lib/google_api/ad_sense/v14/model/adsense_reports_generate_response_headers.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 ...
34.54717
143
0.722556
18a3b77dfcede6f5abab209b11e2ceed7de67659
714
ex
Elixir
lib/live_sup/schemas/group.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
lib/live_sup/schemas/group.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
lib/live_sup/schemas/group.ex
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSup.Schemas.Group do use Ecto.Schema import Ecto.Changeset alias LiveSup.Schemas.{Group, ProjectGroup, Slugs.GroupSlug} @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id @derive {Phoenix.Param, key: :id} schema "groups" do field :internal, :boolean, defaul...
24.62069
62
0.694678
18a3bd1bdc90ea26892aad5dbcd084dcc74aa62e
5,730
ex
Elixir
apps/core/lib/core/employees/employee_updater.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
8
2019-06-14T11:34:49.000Z
2021-08-05T19:14:24.000Z
apps/core/lib/core/employees/employee_updater.ex
edenlabllc/ehealth.api.public
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
1
2019-07-08T15:20:22.000Z
2019-07-08T15:20:22.000Z
apps/core/lib/core/employees/employee_updater.ex
ehealth-ua/ehealth.api
4ffe26a464fe40c95fb841a4aa2e147068f65ca2
[ "Apache-2.0" ]
6
2018-05-11T13:59:32.000Z
2022-01-19T20:15:22.000Z
defmodule Core.Employees.EmployeeUpdater do @moduledoc false import Ecto.Query import Core.API.Helpers.Connection, only: [get_consumer_id: 1, get_client_id: 1] alias Core.Employees alias Core.Employees.Employee alias Core.PartyUsers require Logger @type_admin Employee.type(:admin) @type_doctor Emp...
33.705882
117
0.714834
18a416eb7cae9e91d8b669a869c7ac0e7f46d1f9
70
exs
Elixir
test/test_helper.exs
underhilllabs/big_snips
7f1b59d2be45fe6a488d8e3ce7842e7cc867d676
[ "MIT" ]
3
2016-12-20T17:16:39.000Z
2017-02-22T11:06:56.000Z
test/test_helper.exs
underhilllabs/big_snips
7f1b59d2be45fe6a488d8e3ce7842e7cc867d676
[ "MIT" ]
1
2017-05-31T16:32:41.000Z
2017-05-31T16:32:41.000Z
test/test_helper.exs
underhilllabs/big_snips
7f1b59d2be45fe6a488d8e3ce7842e7cc867d676
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(BigSnips.Repo, :manual)
14
54
0.785714
18a41eabc23c5d8f2230976fbfa488313b158a7b
14,879
exs
Elixir
lib/mix/test/mix/tasks/xref_test.exs
razuf/elixir
a80b6d00738668f5ca2325bfc8c3581af5d531dc
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/xref_test.exs
razuf/elixir
a80b6d00738668f5ca2325bfc8c3581af5d531dc
[ "Apache-2.0" ]
null
null
null
lib/mix/test/mix/tasks/xref_test.exs
razuf/elixir
a80b6d00738668f5ca2325bfc8c3581af5d531dc
[ "Apache-2.0" ]
null
null
null
Code.require_file("../../test_helper.exs", __DIR__) defmodule Mix.Tasks.XrefTest do use MixTest.Case import ExUnit.CaptureIO setup_all do previous = Application.get_env(:elixir, :ansi_enabled, false) Application.put_env(:elixir, :ansi_enabled, false) on_exit(fn -> Application.put_env(:elixir, :ansi...
23.139969
97
0.471671
18a48fca5f0932b8c4f26bddbcf66599c50f717a
96
ex
Elixir
lib/extra_enum.ex
jvantuyl/extra_enum
b5f86fef66b86fea8704852ce5830847ff5bfc11
[ "MIT" ]
null
null
null
lib/extra_enum.ex
jvantuyl/extra_enum
b5f86fef66b86fea8704852ce5830847ff5bfc11
[ "MIT" ]
null
null
null
lib/extra_enum.ex
jvantuyl/extra_enum
b5f86fef66b86fea8704852ce5830847ff5bfc11
[ "MIT" ]
null
null
null
defmodule ExtraEnum do @moduledoc """ Provides extra enumerables that are useful. """ end
16
45
0.71875
18a496b4c7cf23e19848e01a88e2e89efa2a0641
2,022
exs
Elixir
test/controllers/idea_tag_controller_test.exs
cdegroot/clueless
c7f575159a42f55eb843df0e37802e778826c845
[ "MIT" ]
null
null
null
test/controllers/idea_tag_controller_test.exs
cdegroot/clueless
c7f575159a42f55eb843df0e37802e778826c845
[ "MIT" ]
4
2015-12-18T20:35:49.000Z
2015-12-18T20:36:43.000Z
test/controllers/idea_tag_controller_test.exs
cdegroot/clueless
c7f575159a42f55eb843df0e37802e778826c845
[ "MIT" ]
null
null
null
defmodule Clueless.IdeaTagControllerTest do use Clueless.ConnCase alias Clueless.IdeaTag @valid_attrs %{} @invalid_attrs %{} setup do conn = authenticated_conn() {:ok, conn: conn} end test "lists all entries on index", %{conn: conn} do conn = get conn, idea_tag_path(conn, :index) assert...
33.147541
83
0.689911
18a4c549f001bc7c71242e33c338b8a59785a124
1,985
ex
Elixir
lib/console/services/policies.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
lib/console/services/policies.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
lib/console/services/policies.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
defmodule Console.Services.Policies do use Console.Services.Base use Nebulex.Caching alias Console.Schema.{UpgradePolicy, User} alias Console.PubSub @ttl Nebulex.Time.expiry_time(15, :minute) @decorate cacheable(cache: Console.Cache, key: :upgrade_policies, opts: [ttl: @ttl]) def upgrade_policies(), do:...
34.824561
86
0.689169
18a50b1a86ae30ad7ba0f71f2f47f5c6e9e7c17a
346
exs
Elixir
test/lib/monero/config_test.exs
regno-node/ex_monero
bb14065d4b664297aa919a068aa00eb0735eca40
[ "Unlicense", "MIT" ]
7
2017-09-08T18:17:55.000Z
2021-07-11T01:03:40.000Z
test/lib/monero/config_test.exs
regno-node/ex_monero
bb14065d4b664297aa919a068aa00eb0735eca40
[ "Unlicense", "MIT" ]
11
2017-09-08T10:23:34.000Z
2018-08-24T16:10:09.000Z
test/lib/monero/config_test.exs
libra-ventures/ex_monero
9ef72502b8334bb9d9d9f27bd30601adfe3fb301
[ "Unlicense", "MIT" ]
2
2018-11-12T06:42:31.000Z
2021-07-11T01:33:34.000Z
defmodule Monero.ConfigTest do use ExUnit.Case, async: true test "{:system} style configs work" do value = "foo" System.put_env("MoneroConfigTest", value) assert :wallet |> Monero.Config.new(url: {:system, "MoneroConfigTest"}, user: {:system, "MONERO_WALLET_RPC_USER"}) |> Map.get...
26.615385
110
0.644509
18a5526503a86369ecc1e4e50dfbed417af96054
731
ex
Elixir
lib/wechat/api.ex
chat2desk/wechat-elixir
0aa5e43db681bdcde6a206eacb59070fd570f08d
[ "MIT" ]
null
null
null
lib/wechat/api.ex
chat2desk/wechat-elixir
0aa5e43db681bdcde6a206eacb59070fd570f08d
[ "MIT" ]
null
null
null
lib/wechat/api.ex
chat2desk/wechat-elixir
0aa5e43db681bdcde6a206eacb59070fd570f08d
[ "MIT" ]
null
null
null
defmodule Wechat.API do @moduledoc false require Logger alias Wechat.Config use Wechat.HTTP, host: Config.config[:api_host] def access_token do request = %{ grant_type: :client_credential, appid: Config.appid, secret: Config.secret } url = "/token" Logger.debug "[Wechat] url=#{Config.config[:api...
23.580645
94
0.652531
18a556794ec07cf1476d4cbc1dfafe3462dd8d0e
7,665
ex
Elixir
deps/makeup/lib/makeup/styles/html.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/makeup/lib/makeup/styles/html.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
deps/makeup/lib/makeup/styles/html.ex
arduino-man/fona_modern
61845bbbbc46a61a50e59a97c68709f2722078a6
[ "MIT" ]
null
null
null
defmodule Makeup.Styles.HTML do defmodule Style do defstruct long_name: "", short_name: "", background_color: "#ffffff", highlight_color: "#ffffcc", styles: [] alias Makeup.Styles.HTML.TokenStyle require Makeup.Token.Utils alias Makeup...
35.322581
113
0.581474
18a573664ec175c1ae4b420638086603162273c5
173
exs
Elixir
priv/templates/brando.upgrade/migrations/brando_86_upgrade_oban_v11.exs
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
1
2020-04-26T09:53:02.000Z
2020-04-26T09:53:02.000Z
priv/templates/brando.upgrade/migrations/brando_86_upgrade_oban_v11.exs
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
198
2019-08-20T16:16:07.000Z
2020-07-03T15:42:07.000Z
priv/templates/brando.upgrade/migrations/brando_86_upgrade_oban_v11.exs
univers-agency/brando
69c3c52498a3f64518da3522cd9f27294a52cc68
[ "Apache-2.0" ]
null
null
null
defmodule Brando.Migrations.UpdateObanJobsToV11 do use Ecto.Migration def up, do: Oban.Migrations.up(version: 11) def down, do: Oban.Migrations.down(version: 11) end
24.714286
50
0.768786
18a579ebe82325586c5fd2b89a892ef826e6716c
1,037
ex
Elixir
lib/chat_api/issues/conversation_issue.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
4,942
2020-07-20T22:35:28.000Z
2022-03-31T15:38:51.000Z
lib/chat_api/issues/conversation_issue.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
552
2020-07-22T01:39:04.000Z
2022-02-01T00:26:35.000Z
lib/chat_api/issues/conversation_issue.ex
ZmagoD/papercups
dff9a5822b809edc4fd8ecf198566f9b14ab613f
[ "MIT" ]
396
2020-07-22T19:27:48.000Z
2022-03-31T05:25:24.000Z
defmodule ChatApi.Issues.ConversationIssue do use Ecto.Schema import Ecto.Changeset alias ChatApi.{Accounts.Account, Conversations.Conversation, Issues.Issue, Users.User} @type t :: %__MODULE__{ # Foreign keys account_id: Ecto.UUID.t(), conversation_id: Ecto.UUID.t(), i...
28.805556
89
0.665381
18a599ba87e8ec1509276744888ca970b4421b7c
617
exs
Elixir
test/faker/lorem/shakespeare/ru_test.exs
vforvova/faker
9e600d5f3ca0c34e30f7923d415050786d9832cb
[ "MIT" ]
null
null
null
test/faker/lorem/shakespeare/ru_test.exs
vforvova/faker
9e600d5f3ca0c34e30f7923d415050786d9832cb
[ "MIT" ]
null
null
null
test/faker/lorem/shakespeare/ru_test.exs
vforvova/faker
9e600d5f3ca0c34e30f7923d415050786d9832cb
[ "MIT" ]
null
null
null
defmodule Faker.Shakespeare.RuTest do use ExUnit.Case, async: true import Faker.Lorem.Shakespeare.Ru test "hamlet/0" do assert String.length(hamlet) != 0 assert Regex.match?(~r/.+/, hamlet) end test "as_you_like_it/0" do assert String.length(as_you_like_it) != 0 assert Regex.match?(~r/.+/, a...
24.68
49
0.692058
18a5b6f772097e3316e11201eb28510d77214b21
291
ex
Elixir
lib/request.ex
kianmeng/elixir-request-validator
751b3d837267c18292f953fe1b03891f4ee8a163
[ "MIT" ]
null
null
null
lib/request.ex
kianmeng/elixir-request-validator
751b3d837267c18292f953fe1b03891f4ee8a163
[ "MIT" ]
null
null
null
lib/request.ex
kianmeng/elixir-request-validator
751b3d837267c18292f953fe1b03891f4ee8a163
[ "MIT" ]
null
null
null
defmodule Request.Validator do @doc ~S""" Get the validation rules that apply to the request. """ @callback rules(Plug.Conn.t()) :: map()|keyword() @doc ~S""" Determine if the user is authorized to make this request. """ @callback authorize(Plug.Conn.t()) :: boolean() end
22.384615
59
0.659794
18a5cdac5525dbe0ab82efb22fe55c1e48327a9d
3,133
ex
Elixir
lib/tresmid/list.ex
kennethpjdyer/tresmid
220a18b509fc3ce0911e6db3e18c0861cac5b099
[ "BSD-3-Clause" ]
null
null
null
lib/tresmid/list.ex
kennethpjdyer/tresmid
220a18b509fc3ce0911e6db3e18c0861cac5b099
[ "BSD-3-Clause" ]
null
null
null
lib/tresmid/list.ex
kennethpjdyer/tresmid
220a18b509fc3ce0911e6db3e18c0861cac5b099
[ "BSD-3-Clause" ]
null
null
null
defmodule Tresmid.List do require Logger @moduledoc """ Provides functions used in listing the available work trees across some or all of the configured repositories. """ @moduledoc since: "0.1.0" @doc """ Lists the configured repositories and available worktrees to stdout. This function is run fr...
21.756944
94
0.55091
18a5e155818d1a7835a74c3c2b1639e848883456
42,678
exs
Elixir
test/imagineer/image/png/pngsuite/basic/grayscale_alpha_test.exs
ndemonner/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
103
2015-01-28T19:09:42.000Z
2018-10-22T15:05:46.000Z
test/imagineer/image/png/pngsuite/basic/grayscale_alpha_test.exs
tyre/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
12
2015-07-11T05:12:41.000Z
2018-07-21T04:42:47.000Z
test/imagineer/image/png/pngsuite/basic/grayscale_alpha_test.exs
ndemonner/imagineer
a6872296756cde19f8f575a7d1854d0fe7cbcb02
[ "MIT" ]
18
2015-06-16T15:48:34.000Z
2018-06-22T02:34:40.000Z
defmodule Imagineer.Image.PNG.PngSuite.Basic.GrayscaleAlphaTest do use ExUnit.Case, async: true @test_path "test/support/images/pngsuite/basic/" @tmp_path "./tmp/" @actual_pixels [ [ {255, 0}, {255, 8}, {255, 16}, {255, 24}, {255, 32}, {255, 41}, {255, 49}, ...
18.726634
67
0.382445
18a5f828d96fdd2924a3a94f93438749fe17fd4f
1,008
exs
Elixir
config/config.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
config/config.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
config/config.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config # Configures the endpoint config :offliner, Offl...
34.758621
86
0.771825
18a6282d58f247569547916df10bef162558a2dc
116
ex
Elixir
lib/types/schedule_download_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
lib/types/schedule_download_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
lib/types/schedule_download_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defmodule CWMP.Protocol.Messages.ScheduleDownloadResponse do @derive [Poison.Encoder] defstruct naught: nil end
23.2
60
0.818966
18a6377064da85848fe47c6104a2a491bf32ecf3
1,780
ex
Elixir
lib/microsoft/azure/active_directory/device_authenticator_supervisor.ex
chgeuer/ex_microsoft_azure_utils
97eb2ad9776ecc6eb490e3fb06dc35fb5ffb6190
[ "Apache-2.0" ]
null
null
null
lib/microsoft/azure/active_directory/device_authenticator_supervisor.ex
chgeuer/ex_microsoft_azure_utils
97eb2ad9776ecc6eb490e3fb06dc35fb5ffb6190
[ "Apache-2.0" ]
null
null
null
lib/microsoft/azure/active_directory/device_authenticator_supervisor.ex
chgeuer/ex_microsoft_azure_utils
97eb2ad9776ecc6eb490e3fb06dc35fb5ffb6190
[ "Apache-2.0" ]
1
2020-05-31T20:19:39.000Z
2020-05-31T20:19:39.000Z
defmodule Microsoft.Azure.ActiveDirectory.DeviceAuthenticatorSupervisor do alias Microsoft.Azure.AzureEnvironment alias Microsoft.Azure.ActiveDirectory.DeviceAuthenticator, as: Worker alias Microsoft.Azure.ActiveDirectory.DeviceAuthenticator.Model.State use Supervisor def start_azure_management(tenant_id \\...
31.22807
93
0.695506
18a64dfb37426650f6f70c2bcfbc209dda29a99c
659
exs
Elixir
test/priv/test_repo/migrations/20190319220335_add_dog_table.exs
circles-learning-labs/ecto-adapters-dynamodb
6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6
[ "Apache-2.0" ]
50
2017-06-21T00:15:15.000Z
2022-01-18T04:12:24.000Z
test/priv/test_repo/migrations/20190319220335_add_dog_table.exs
circles-learning-labs/ecto-adapters-dynamodb
6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6
[ "Apache-2.0" ]
91
2018-01-10T19:29:25.000Z
2022-02-24T16:12:26.000Z
test/priv/test_repo/migrations/20190319220335_add_dog_table.exs
circles-learning-labs/ecto-adapters-dynamodb
6ee42c68c350786aba3e5dbcbfbc07e70c72b4e6
[ "Apache-2.0" ]
11
2017-11-28T06:22:58.000Z
2022-01-04T18:03:11.000Z
defmodule Ecto.Adapters.DynamoDB.TestRepo.Migrations.AddDogTable do @moduledoc """ Used when testing migrations. Create a dog table, set to pay_per_request (AKA on-demand) billing mode. """ use Ecto.Migration def up do create_if_not_exists table(:dog, primary_key: false, ...
24.407407
74
0.52959
18a6770d0cc22311b7739fb9d57d0188e26f6cf2
523
exs
Elixir
test/test_helper.exs
AnilRedshift/wand-cli
c364cf5397353fd61ba0e5fc33225575eb72ccda
[ "BSD-3-Clause" ]
3
2018-07-01T05:31:02.000Z
2019-08-03T04:11:32.000Z
test/test_helper.exs
AnilRedshift/wand-cli
c364cf5397353fd61ba0e5fc33225575eb72ccda
[ "BSD-3-Clause" ]
8
2018-06-28T07:30:04.000Z
2018-07-13T07:36:56.000Z
test/test_helper.exs
AnilRedshift/wand-cli
c364cf5397353fd61ba0e5fc33225575eb72ccda
[ "BSD-3-Clause" ]
null
null
null
ExUnit.configure(exclude: [external: true]) ExUnit.configure(formatters: [JUnitFormatter, ExUnit.CLIFormatter]) # wand_core is used both for getting dependencies, and within the main wand code during tests # We want the behavior when getting the config to use the real wandcore, but mock it during the tests. # This is ...
47.545455
102
0.789675
18a6aebbcfa304f04df2bd336d53394821f5ca90
428
ex
Elixir
lib/memoize/cache_strategy.ex
davorbadrov/memoize
dd34c313de805e57da18c4e6142247cc8eb1ba6a
[ "MIT" ]
null
null
null
lib/memoize/cache_strategy.ex
davorbadrov/memoize
dd34c313de805e57da18c4e6142247cc8eb1ba6a
[ "MIT" ]
null
null
null
lib/memoize/cache_strategy.ex
davorbadrov/memoize
dd34c313de805e57da18c4e6142247cc8eb1ba6a
[ "MIT" ]
null
null
null
defmodule Memoize.CacheStrategy do @callback init() :: any @callback tab(any) :: atom @callback cache(any, any, Keyword.t()) :: any @callback read(any, any, any) :: :ok | :retry @callback invalidate() :: integer @callback invalidate(any) :: integer @callback garbage_collect() :: integer def configured?...
30.571429
88
0.696262
18a6d845bfae0d512a1b3541b79770f48ca031b8
483
ex
Elixir
lib/jabbax.ex
surgeventures/jabbax
69c90ef620c5a44705015601e5f5a4dd739bd593
[ "MIT" ]
14
2017-03-20T12:43:20.000Z
2021-11-24T13:19:16.000Z
lib/jabbax.ex
surgeventures/jabbax
69c90ef620c5a44705015601e5f5a4dd739bd593
[ "MIT" ]
3
2017-04-27T15:00:33.000Z
2022-02-14T11:45:53.000Z
lib/jabbax.ex
surgeventures/jabbax
69c90ef620c5a44705015601e5f5a4dd739bd593
[ "MIT" ]
1
2019-09-09T13:57:58.000Z
2019-09-09T13:57:58.000Z
defmodule Jabbax do @moduledoc false alias Jabbax.{Deserializer, Serializer} def decode!(input) do input |> Application.get_env(:jabbax, :json_decoder).decode! |> Deserializer.call() end def encode!(input) do input |> Serializer.call() |> Application.get_env(:jabbax, :json_encoder)....
20.125
68
0.681159
18a6fc77a7198e99fd022d9dc4e1ee8f98c6aac5
686
exs
Elixir
.formatter.exs
Comcast/ctex
530be2ca04671dec23a7668a7c51340c3a71d166
[ "Apache-2.0" ]
6
2018-07-11T00:22:08.000Z
2022-02-07T22:11:57.000Z
.formatter.exs
DalavanCloud/ctex
530be2ca04671dec23a7668a7c51340c3a71d166
[ "Apache-2.0" ]
2
2018-07-18T15:53:22.000Z
2018-07-18T16:14:09.000Z
.formatter.exs
DalavanCloud/ctex
530be2ca04671dec23a7668a7c51340c3a71d166
[ "Apache-2.0" ]
2
2019-02-02T05:40:19.000Z
2020-05-12T10:05:10.000Z
# Copyright 2018 Comcast Cable Communications Management, 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...
36.105263
74
0.747813
18a726299d04b0e827ae9c41f9bc6f7fc1580185
1,437
ex
Elixir
farmbot_core/lib/farmbot_core/firmware_resetter.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/firmware_resetter.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
farmbot_core/lib/farmbot_core/firmware_resetter.ex
kant/farmbot_os
f497cc1fde3960dc5507e4da89e85411a8f776f3
[ "MIT" ]
null
null
null
defmodule FarmbotCore.FirmwareResetter do if Code.ensure_compiled?(Circuits.GPIO) do @gpio Circuits.GPIO else @gpio nil end alias FarmbotCore.Asset require FarmbotCore.Logger def reset(package \\ nil) do pkg = package || Asset.fbos_config(:firmware_hardware) FarmbotCore.Logger.debug(3, "Att...
28.176471
82
0.653445
18a745e7bcb54fdf16c1c919bd1dc9af0a75ed9e
3,454
exs
Elixir
apps/omg_watcher/test/omg_watcher/crypto_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
177
2018-08-24T03:51:02.000Z
2020-05-30T13:29:25.000Z
apps/omg_watcher/test/omg_watcher/crypto_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
1,042
2018-08-25T00:52:39.000Z
2020-06-01T05:15:17.000Z
apps/omg_watcher/test/omg_watcher/crypto_test.exs
omisego/elixir-omg
2c68973d8f29033d137f63a6e060f12e2a7dcd59
[ "Apache-2.0" ]
47
2018-08-24T12:06:33.000Z
2020-04-28T11:49:25.000Z
# Copyright 2019-2020 OMG Network Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.357895
140
0.691083
18a7591bd54804bf5e94ba2f5785d95895b445a2
1,662
ex
Elixir
lib/slack_inviter_web.ex
syracuseio/slack_inviter
a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81
[ "MIT" ]
null
null
null
lib/slack_inviter_web.ex
syracuseio/slack_inviter
a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81
[ "MIT" ]
3
2021-03-08T19:58:55.000Z
2021-09-01T03:46:56.000Z
lib/slack_inviter_web.ex
syracuseio/slack_inviter
a2bdf4ffc45b12db95aa74bf7a167ef4996a9b81
[ "MIT" ]
1
2018-08-15T01:52:40.000Z
2018-08-15T01:52:40.000Z
defmodule SlackInviterWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use SlackInviterWeb, :controller use SlackInviterWeb, :view The definitions below will be executed for every view,...
24.441176
69
0.697954
18a77466773517f9788c408d02122a08c8f7cd1f
586
ex
Elixir
lib/aws/util.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
341
2018-04-04T19:06:19.000Z
2022-03-25T21:34:23.000Z
lib/aws/util.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
82
2018-04-04T17:32:33.000Z
2022-03-24T15:12:04.000Z
lib/aws/util.ex
kw7oe/aws-elixir
4ba60502dde270c83143822c9964018c7770bad7
[ "Apache-2.0" ]
76
2018-04-10T20:19:44.000Z
2022-03-15T13:49:19.000Z
defmodule AWS.Util do @moduledoc false @doc """ Encodes URI preserving segments. Segments are separated by a slash - "/". """ def encode_multi_segment_uri(uri) do uri |> String.split("/") |> Enum.map_join("/", &encode_uri/1) end @doc """ Encodes URI keeping unreserved chars untouched. ...
18.903226
51
0.62628
18a79a46e695c30394cd45112d50a962811da5c6
66
ex
Elixir
hello_world/web/views/hello_view.ex
AdilKhn/phoenix-experiments
4c115b4bf94c5265497cbe099b4f650fd3c0298c
[ "MIT" ]
null
null
null
hello_world/web/views/hello_view.ex
AdilKhn/phoenix-experiments
4c115b4bf94c5265497cbe099b4f650fd3c0298c
[ "MIT" ]
null
null
null
hello_world/web/views/hello_view.ex
AdilKhn/phoenix-experiments
4c115b4bf94c5265497cbe099b4f650fd3c0298c
[ "MIT" ]
null
null
null
defmodule HelloWorld.HelloView do use HelloWorld.Web, :view end
16.5
33
0.80303
18a79a6d1d24d8f07cdc893ff23d9c4e1cce1d39
1,181
ex
Elixir
lib/hash/fake.ex
exthereum/ex_crypto
d228ce90c22a68bed54e60721e671ad877a64900
[ "MIT" ]
1
2019-01-05T01:43:06.000Z
2019-01-05T01:43:06.000Z
lib/hash/fake.ex
exthereum/ex_crypto
d228ce90c22a68bed54e60721e671ad877a64900
[ "MIT" ]
null
null
null
lib/hash/fake.ex
exthereum/ex_crypto
d228ce90c22a68bed54e60721e671ad877a64900
[ "MIT" ]
1
2020-09-08T08:09:55.000Z
2020-09-08T08:09:55.000Z
defmodule ExthCrypto.Hash.Fake do @moduledoc """ Simple fake hash that basically just returns its own input. Gasp, that's reversable! """ @type fake_mac :: {:fake_mac, binary()} @doc """ Initializes a new Fake mac stream. ## Examples iex> fake_mac = ExthCrypto.Hash.Fake.init_mac("abc") ...
21.472727
61
0.628281
18a7d4dd4ad7428811190b4fb131c45ce5caade8
333
ex
Elixir
lib/mango_web/controllers/admin/order_controller.ex
nittin-shankar/mango
3d988a494f57b26bddaad9a25e63eb4e7f6f9c12
[ "MIT" ]
121
2017-06-24T10:33:38.000Z
2022-03-17T16:02:16.000Z
lib/mango_web/controllers/admin/order_controller.ex
nittin-shankar/mango
3d988a494f57b26bddaad9a25e63eb4e7f6f9c12
[ "MIT" ]
6
2017-06-24T22:48:21.000Z
2018-03-17T01:20:32.000Z
lib/mango_web/controllers/admin/order_controller.ex
nittin-shankar/mango
3d988a494f57b26bddaad9a25e63eb4e7f6f9c12
[ "MIT" ]
29
2017-07-03T04:09:15.000Z
2022-03-02T15:45:49.000Z
defmodule MangoWeb.Admin.OrderController do use MangoWeb, :controller alias Mango.Sales def index(conn, _params) do orders = Sales.list_orders() render(conn, "index.html", orders: orders) end def show(conn, %{"id" => id}) do order = Sales.get_order!(id) render(conn, "show.html", order: orde...
20.8125
46
0.672673
18a862410b17d816dca2ea49eea9ee83609d0404
2,824
ex
Elixir
lib/conduit_mqtt/handler.ex
conduitframework/conduit_mq
ec16345433f45b79ad61447a19d66cc20ce8afd1
[ "MIT" ]
null
null
null
lib/conduit_mqtt/handler.ex
conduitframework/conduit_mq
ec16345433f45b79ad61447a19d66cc20ce8afd1
[ "MIT" ]
68
2018-10-06T02:44:32.000Z
2021-08-03T05:20:23.000Z
lib/conduit_mqtt/handler.ex
conduitframework/conduit_mq
ec16345433f45b79ad61447a19d66cc20ce8afd1
[ "MIT" ]
1
2019-07-19T06:40:56.000Z
2019-07-19T06:40:56.000Z
defmodule ConduitMQTT.Handler do @moduledoc """ Tortoise.Handler implementation """ use Tortoise.Handler alias Conduit.Message import Conduit.Message require Logger defmodule State do @moduledoc """ State struct for handler """ defstruct [:client_id, :broker, :name, :conn_type, :opts] ...
27.153846
123
0.643059
18a8811c3c2914fcdc9c1622ec5b09fbd0d8a1c3
800
exs
Elixir
test/suite/draft7/exclusive_minimum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
1
2019-06-21T10:55:33.000Z
2019-06-21T10:55:33.000Z
test/suite/draft7/exclusive_minimum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
test/suite/draft7/exclusive_minimum_test.exs
starbelly/json_xema
73ca23f9ce51d450d2f9cf0509ee6bb82f9a8c79
[ "MIT" ]
null
null
null
defmodule Draft7.ExclusiveMinimumTest do use ExUnit.Case, async: true import JsonXema, only: [valid?: 2] describe "exclusiveMinimum validation" do setup do %{schema: ~s( { "exclusiveMinimum": 1.1 } ) |> Jason.decode!() |> JsonXema.new()} end test "above the e...
22.222222
70
0.595
18a8ae5a23065593b070175c190cc3d09b5962f8
3,540
ex
Elixir
clients/speech/lib/google_api/speech/v1/model/phrase.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/speech/lib/google_api/speech/v1/model/phrase.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/speech/lib/google_api/speech/v1/model/phrase.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...
70.8
1,550
0.743503
18a8beff31f4fec0ee3d99357f191fb130f793dd
253
ex
Elixir
lib/extenant.ex
ThinkForge/extenant
70a73aed9a5db42a178919562d60861f9aa09bcb
[ "Apache-2.0" ]
null
null
null
lib/extenant.ex
ThinkForge/extenant
70a73aed9a5db42a178919562d60861f9aa09bcb
[ "Apache-2.0" ]
1
2018-11-24T15:09:30.000Z
2018-11-24T15:09:30.000Z
lib/extenant.ex
ThinkForge/extenant
70a73aed9a5db42a178919562d60861f9aa09bcb
[ "Apache-2.0" ]
null
null
null
defmodule Extenant do @moduledoc """ Extenant 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
18a8c3cdb4aeec80d7ae6feb5cb2e9bb39095c83
1,999
ex
Elixir
lib/iona/template/helper.ex
Zurga/iona
17a28440df4ec843df82dbcda524ecd5c1fc60a1
[ "Apache-2.0" ]
12
2019-11-26T14:52:53.000Z
2022-03-15T07:54:26.000Z
lib/iona/template/helper.ex
Zurga/iona
17a28440df4ec843df82dbcda524ecd5c1fc60a1
[ "Apache-2.0" ]
12
2019-11-25T17:24:35.000Z
2021-07-19T17:50:52.000Z
lib/iona/template/helper.ex
Zurga/iona
17a28440df4ec843df82dbcda524ecd5c1fc60a1
[ "Apache-2.0" ]
7
2019-11-25T17:25:39.000Z
2021-05-22T05:07:24.000Z
defmodule Iona.Template.Helper do @moduledoc """ Provides basic template helper functions. The most important function is `escape`, which is automatically applied to any value in a `<%= %>` concat tag. """ @dialyzer {:no_improper_lists, to_iodata: 4} @dialyzer {:no_improper_lists, to_iodata: 5} escap...
24.378049
80
0.5993
18a8e0189d4b855d6f796ae92f7e635a3377d998
622
ex
Elixir
lib/canvas/resources/enrollment_term.ex
acu-online/canvas
594e435abe8907097a3a66d25627e96cb940b07a
[ "MIT" ]
null
null
null
lib/canvas/resources/enrollment_term.ex
acu-online/canvas
594e435abe8907097a3a66d25627e96cb940b07a
[ "MIT" ]
null
null
null
lib/canvas/resources/enrollment_term.ex
acu-online/canvas
594e435abe8907097a3a66d25627e96cb940b07a
[ "MIT" ]
null
null
null
defmodule Canvas.Resources.EnrollmentTerm do @moduledoc """ Represents an EnrollmentTerm. See: - https://canvas.instructure.com/doc/api/enrollment_terms - https://canvas.instructure.com/doc/api/enrollment_terms#EnrollmentTerm """ @type t :: %__MODULE__{ id: integer, sis_term_id: Stri...
27.043478
91
0.644695