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
971a4460a29af207f45beee7273702004ad57e0e
979
exs
Elixir
mix.exs
sn3p/phoenix-active-link
bc7b373dca1f2c936ff2a5602ce16a1ae52a035a
[ "MIT" ]
null
null
null
mix.exs
sn3p/phoenix-active-link
bc7b373dca1f2c936ff2a5602ce16a1ae52a035a
[ "MIT" ]
null
null
null
mix.exs
sn3p/phoenix-active-link
bc7b373dca1f2c936ff2a5602ce16a1ae52a035a
[ "MIT" ]
null
null
null
defmodule PhoenixActiveLink.Mixfile do use Mix.Project @version "0.3.0" def project do [app: :phoenix_active_link, version: @version, name: "phoenix_active_link", source_url: "http://github.com/tuvistavie/phoenix-active-link", homepage_url: "http://github.com/tuvistavie/phoenix-active-li...
28.794118
79
0.60572
971a45cfdf3a821d6ac2b2ea6eeac71e0dba224b
1,109
ex
Elixir
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/upgrade_policy.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.Compute/lib/microsoft/azure/management/compute/model/upgrade_policy.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/upgrade_policy.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.Compute.Model.UpgradePolicy do @moduledoc """ Describes an upgrade policy - automatic, manual, or rolling. """ ...
31.685714
124
0.738503
971a6485edf937e9ed470c9d6fa29864e464f15a
8,611
ex
Elixir
clients/webmaster/lib/google_api/webmaster/v3/api/sites.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/webmaster/lib/google_api/webmaster/v3/api/sites.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/webmaster/lib/google_api/webmaster/v3/api/sites.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# 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.617925
242
0.677506
971a65907ea1a42f9c0e5f94ae39ab36f3cf753a
1,236
ex
Elixir
otp-applications/sequence/lib/sequence/server.ex
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
1
2019-02-17T11:54:17.000Z
2019-02-17T11:54:17.000Z
otp-applications/sequence/lib/sequence/server.ex
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
otp-applications/sequence/lib/sequence/server.ex
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
defmodule Sequence.Server do use GenServer require Logger @vsn "1" defmodule State do defstruct(current_number: 0, delta: 1) end ####### # External API def start_link(_) do GenServer.start_link(__MODULE__, nil, name: __MODULE__) end def next_number do with number = GenServ...
21.310345
71
0.652104
971a775c8981dbd79a82e3bb3839c88120e4e9dd
1,047
ex
Elixir
web/views/layout_view.ex
tinenbruno/verk_web
70911a77ba12efcafca495bb43e3074c6cad3cfb
[ "MIT" ]
null
null
null
web/views/layout_view.ex
tinenbruno/verk_web
70911a77ba12efcafca495bb43e3074c6cad3cfb
[ "MIT" ]
null
null
null
web/views/layout_view.ex
tinenbruno/verk_web
70911a77ba12efcafca495bb43e3074c6cad3cfb
[ "MIT" ]
1
2018-06-24T04:11:11.000Z
2018-06-24T04:11:11.000Z
defmodule VerkWeb.LayoutView do use VerkWeb.Web, :view def menu_item(conn, path, item) do class = if path == conn.request_path, do: "active", else: "" content_tag(:li, link(item, to: path), class: class) end # From: https://blog.diacode.com/page-specific-javascript-in-phoenix-framework-pt-1 @doc """...
26.846154
85
0.673352
971a7d278b82dc7579ad9b6d42b54fb9999b0c88
3,952
ex
Elixir
lib/ringbuffer.ex
brandonhamilton/elixir-ringbuffer
6fbdb0d119eebee5280aa921e67e43948c6e6ee5
[ "MIT" ]
1
2017-07-23T07:59:11.000Z
2017-07-23T07:59:11.000Z
lib/ringbuffer.ex
brandonhamilton/elixir-ringbuffer
6fbdb0d119eebee5280aa921e67e43948c6e6ee5
[ "MIT" ]
null
null
null
lib/ringbuffer.ex
brandonhamilton/elixir-ringbuffer
6fbdb0d119eebee5280aa921e67e43948c6e6ee5
[ "MIT" ]
2
2017-07-23T17:45:09.000Z
2018-08-15T14:53:03.000Z
defmodule RingBuffer do @moduledoc ~S""" [Circular Buffer](https://en.wikipedia.org/wiki/Circular_buffer) data structure """ alias RingBuffer.Internals @opaque t :: %__MODULE__{ size: non_neg_integer, default: any, internal: Internals.t } defstruct size: 0, internal: nil, default: :undefined...
28.028369
117
0.592611
971a916f53cedf1059df467198bcf32bcad0f7ed
35,610
ex
Elixir
apps/language_server/lib/language_server/server.ex
sabiwara/elixir-ls
55d9081f9cbbd2e1ab14386b56dfd0c79b480860
[ "Apache-2.0" ]
null
null
null
apps/language_server/lib/language_server/server.ex
sabiwara/elixir-ls
55d9081f9cbbd2e1ab14386b56dfd0c79b480860
[ "Apache-2.0" ]
null
null
null
apps/language_server/lib/language_server/server.ex
sabiwara/elixir-ls
55d9081f9cbbd2e1ab14386b56dfd0c79b480860
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.Server do @moduledoc """ Language Server Protocol server This server tracks open files, attempts to rebuild the project when a file changes, and handles requests from the IDE (for things like autocompletion, hover, etc.) Notifications from the IDE are handled synchronously,...
28.625402
133
0.636254
971a9a946ba8ad3d53ec9308e74301c12c85d559
304
ex
Elixir
lib/ambry_web/live/components/modal.ex
doughsay/ambry
c04e855bf06a6b00b8053c6eacb2eac14a56a37c
[ "MIT" ]
12
2021-09-30T20:51:49.000Z
2022-01-27T04:09:32.000Z
lib/ambry_web/live/components/modal.ex
doughsay/ambry
c04e855bf06a6b00b8053c6eacb2eac14a56a37c
[ "MIT" ]
76
2021-10-01T05:45:11.000Z
2022-03-28T04:12:39.000Z
lib/ambry_web/live/components/modal.ex
doughsay/ambry
c04e855bf06a6b00b8053c6eacb2eac14a56a37c
[ "MIT" ]
2
2021-10-04T19:27:28.000Z
2022-01-13T22:36:38.000Z
defmodule AmbryWeb.Components.Modal do @moduledoc """ Modal component with close button and return_to url. """ use AmbryWeb, :live_component @impl Phoenix.LiveComponent def handle_event("close", _params, socket) do {:noreply, push_patch(socket, to: socket.assigns.return_to)} end end
23.384615
64
0.736842
971acf3069d57a57e00a3982a11b3a1f2f933db2
411
ex
Elixir
lib/pmj/source/rubyjobs_ru/client.ex
Mehonoshin/pmj
d16e6af7f136cb69c9008e55886ef4619974fc1e
[ "MIT" ]
1
2020-01-12T20:08:37.000Z
2020-01-12T20:08:37.000Z
lib/pmj/source/rubyjobs_ru/client.ex
Mehonoshin/pmj
d16e6af7f136cb69c9008e55886ef4619974fc1e
[ "MIT" ]
null
null
null
lib/pmj/source/rubyjobs_ru/client.ex
Mehonoshin/pmj
d16e6af7f136cb69c9008e55886ef4619974fc1e
[ "MIT" ]
null
null
null
defmodule Pmj.Source.RubyjobsRu.Client do @moduledoc """ Implements Source interface Allows to crawl through rubyjobs.ru website """ use HTTPoison.Base @site_url "https://www.rubyjobs.ru" def get_vacancy(id) do {:ok, page_url(id), get!(page_url(id)).body} end @spec page_url(String.t) :: String....
21.631579
55
0.686131
971b14e60d66379c8f8824915629b31eacdba6cf
2,099
exs
Elixir
hangman/b1/config/dev.exs
neal-bpm/TinyHangman
c2b9bcfe9b3c6d918e83271dc943f09706693b4e
[ "MIT" ]
null
null
null
hangman/b1/config/dev.exs
neal-bpm/TinyHangman
c2b9bcfe9b3c6d918e83271dc943f09706693b4e
[ "MIT" ]
null
null
null
hangman/b1/config/dev.exs
neal-bpm/TinyHangman
c2b9bcfe9b3c6d918e83271dc943f09706693b4e
[ "MIT" ]
null
null
null
import 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 esbuild to bundle .js and .css sources. config :b1, B1Web.Endpoint, # Binding to loopback ipv4 addr...
32.292308
86
0.707956
971b1d2200b040be4928857cc102ddf4182f55d7
2,211
exs
Elixir
apps/chex/test/chex/chexers/chexers_test.exs
chrisfishwood/chex
04d3446f3d25c8c3c0badd282b50abccc59cc41d
[ "MIT" ]
null
null
null
apps/chex/test/chex/chexers/chexers_test.exs
chrisfishwood/chex
04d3446f3d25c8c3c0badd282b50abccc59cc41d
[ "MIT" ]
null
null
null
apps/chex/test/chex/chexers/chexers_test.exs
chrisfishwood/chex
04d3446f3d25c8c3c0badd282b50abccc59cc41d
[ "MIT" ]
null
null
null
defmodule Chex.ChexersTest do use Chex.DataCase alias Chex.Chexers describe "slackchex" do alias Chex.Chexers.SlackChex @valid_attrs %{user: "csteinmeyer"} @update_attrs %{user: "some updated user"} @invalid_attrs %{user: nil} def slack_chex_fixture(attrs \\ %{}) do {:ok, slack_chex}...
33.5
96
0.701945
971b1de142142716c83ec44ab47e200f6509d694
1,307
ex
Elixir
clients/data_migration/lib/google_api/data_migration/v1/model/cancel_operation_request.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/data_migration/lib/google_api/data_migration/v1/model/cancel_operation_request.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/data_migration/lib/google_api/data_migration/v1/model/cancel_operation_request.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...
31.119048
87
0.770467
971b27e9b91cea4dd464b71b71ad49b29f801d4e
1,643
ex
Elixir
lib/oli/activities/state/part_state.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli/activities/state/part_state.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli/activities/state/part_state.ex
chrislawson/oli-torus
94165b211ab74fac3e7c8a14110a394fa9a6f320
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule Oli.Activities.State.PartState do alias Oli.Delivery.Attempts.Core.PartAttempt alias Oli.Activities.Model.Part alias Oli.Activities.ParseUtils @enforce_keys [ :attemptGuid, :attemptNumber, :dateEvaluated, :score, :outOf, :response, :feedback, :hints, :hasMoreHints,...
25.276923
99
0.653682
971b2a287311bd226a4ca89cc2f4671693dfbaea
1,513
ex
Elixir
lib/layers/utils/object_id/object_id_type.ex
haskric/mongo_agile
393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb
[ "MIT" ]
1
2020-12-30T18:30:32.000Z
2020-12-30T18:30:32.000Z
lib/layers/utils/object_id/object_id_type.ex
haskric/mongo_agile
393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb
[ "MIT" ]
null
null
null
lib/layers/utils/object_id/object_id_type.ex
haskric/mongo_agile
393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb
[ "MIT" ]
null
null
null
defmodule MongoAgile.MapSchema.IdObjectType do @moduledoc """ You can use this customtype of MapSchema for can use BSON_ID, and parse to json easily. """ @behaviour MapSchema.CustomType def name, do: :mongo_id def nested?, do: false @doc """ Cast string id to bson_id object. ## Example: iex>...
23.640625
86
0.665565
971b30a209abbd30f718c30b1cc9c9336ae93d19
75
ex
Elixir
lib/find_my_personal_web/views/page_view.ex
romenigld/find_my_personal
d3545d29cdf80c6e2a90b0bb784579bbd488120c
[ "MIT" ]
null
null
null
lib/find_my_personal_web/views/page_view.ex
romenigld/find_my_personal
d3545d29cdf80c6e2a90b0bb784579bbd488120c
[ "MIT" ]
11
2022-01-12T02:39:42.000Z
2022-02-09T02:17:04.000Z
lib/find_my_personal_web/views/page_view.ex
gissandrogama/find_my_personal
12f23b37e967949af9f3e511cf1ce684452d8f66
[ "MIT" ]
null
null
null
defmodule FindMyPersonalWeb.PageView do use FindMyPersonalWeb, :view end
18.75
39
0.84
971b45609db77400a835b781def7b2ee8de0b044
1,691
ex
Elixir
lib/crew_web/live/person_live/tag_form_component.ex
anamba/crew
c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1
[ "BSL-1.0" ]
null
null
null
lib/crew_web/live/person_live/tag_form_component.ex
anamba/crew
c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1
[ "BSL-1.0" ]
5
2020-07-20T01:49:01.000Z
2021-09-08T00:17:04.000Z
lib/crew_web/live/person_live/tag_form_component.ex
anamba/crew
c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1
[ "BSL-1.0" ]
null
null
null
defmodule CrewWeb.PersonLive.TagFormComponent do use CrewWeb, :live_component alias Crew.Persons alias Crew.Persons.PersonTagging @impl true def update(assigns, socket) do changeset = Persons.change_person_tagging(%PersonTagging{}) {:ok, socket |> assign(assigns) |> assign_new(:perso...
30.745455
94
0.663513
971b6cfe1140dcf6ff340ab7d87515d229b44754
310
ex
Elixir
test/support/tcp/helpers.ex
desoulter/smppex
1c8dbd9673291431b2d329a2cb20134c91857af2
[ "MIT" ]
49
2019-11-27T00:20:59.000Z
2022-02-18T17:07:14.000Z
test/support/tcp/helpers.ex
desoulter/smppex
1c8dbd9673291431b2d329a2cb20134c91857af2
[ "MIT" ]
62
2016-05-19T17:11:02.000Z
2019-11-21T16:47:15.000Z
test/support/tcp/helpers.ex
desoulter/smppex
1c8dbd9673291431b2d329a2cb20134c91857af2
[ "MIT" ]
25
2016-05-20T14:44:43.000Z
2019-11-15T14:50:24.000Z
defmodule Support.TCP.Helpers do @moduledoc false alias :gen_tcp, as: GenTCP alias :inet, as: INET def find_free_port do {:ok, socket} = GenTCP.listen(0, []) {:ok, port} = INET.port(socket) :ok = GenTCP.close(socket) # assume no one will immediately take this port port end end
20.666667
51
0.658065
971b7c87b6c60bfa95500b7833cd0c234d616ca6
1,675
ex
Elixir
lib/credo/check/consistency/multi_alias_import_require_use.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
4,590
2015-09-28T06:01:43.000Z
2022-03-29T08:48:57.000Z
lib/credo/check/consistency/multi_alias_import_require_use.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
890
2015-11-16T21:07:07.000Z
2022-03-29T08:52:07.000Z
lib/credo/check/consistency/multi_alias_import_require_use.ex
hrzndhrn/credo
71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593
[ "MIT" ]
479
2015-11-17T19:42:40.000Z
2022-03-29T00:09:21.000Z
defmodule Credo.Check.Consistency.MultiAliasImportRequireUse do use Credo.Check, run_on_all: true, base_priority: :high, tags: [:controversial], explanations: [ check: """ When using alias, import, require or use for multiple names from the same namespace, you have two options: ...
32.211538
162
0.723582
971b88e6606cdfba177c954de511c403ce2eb0d9
607
ex
Elixir
web/controllers/service_controller.ex
holandes22/rotterdam
d8b56079638c15a8492c08a6859ed14413163e62
[ "MIT" ]
null
null
null
web/controllers/service_controller.ex
holandes22/rotterdam
d8b56079638c15a8492c08a6859ed14413163e62
[ "MIT" ]
null
null
null
web/controllers/service_controller.ex
holandes22/rotterdam
d8b56079638c15a8492c08a6859ed14413163e62
[ "MIT" ]
null
null
null
defmodule Rotterdam.ServiceController do use Rotterdam.Web, :controller alias Rotterdam.ClusterManager def index(conn, _params) do render(conn, "index.html") end def show(conn, %{"id" => id}) do {:ok, service} = ClusterManager.services(id) render(conn, "show.json", service: service) end de...
22.481481
58
0.655684
971bb27111cd61a7d522f0d700f21a286ef9c052
425
ex
Elixir
lib/shipstation/structs/international_option.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
4
2017-03-28T19:21:48.000Z
2022-02-11T05:12:07.000Z
lib/shipstation/structs/international_option.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
1
2018-10-05T14:55:55.000Z
2018-10-05T14:55:55.000Z
lib/shipstation/structs/international_option.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
3
2018-10-05T14:04:02.000Z
2021-11-11T10:22:46.000Z
defmodule Shipstation.Structs.InternationalOption do @moduledoc ~s""" This struct is used to define international options which may be required on an order. """ @type t :: %Shipstation.Structs.InternationalOption{ contents: String.t, customsItems: [Shipstation.Structs.CustomsItem.t], nonDelivery:...
25
78
0.694118
971bced30d8b746e9b72bedf431d56459545aae8
328
ex
Elixir
apps/buzzcms_web/lib/guardian/error_handler.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
apps/buzzcms_web/lib/guardian/error_handler.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
41
2020-02-12T07:53:14.000Z
2020-03-30T02:18:14.000Z
apps/buzzcms_web/lib/guardian/error_handler.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
defmodule BuzzcmsWeb.Auth.ErrorHandler do import Plug.Conn @behaviour Guardian.Plug.ErrorHandler @impl Guardian.Plug.ErrorHandler def auth_error(conn, {type, reason}, _opts) do IO.inspect(reason) body = to_string(type) conn |> put_resp_content_type("text/plain") |> send_resp(401, body) ...
20.5
48
0.713415
971c3a6a4b0f4373f39d65dd851f22aba15e8300
1,094
ex
Elixir
lib/mix/tasks/todo.ex
TecnoSigma/elixir-todo
9621028f79c9415ee2be15c9d0b635736b873d38
[ "MIT" ]
null
null
null
lib/mix/tasks/todo.ex
TecnoSigma/elixir-todo
9621028f79c9415ee2be15c9d0b635736b873d38
[ "MIT" ]
null
null
null
lib/mix/tasks/todo.ex
TecnoSigma/elixir-todo
9621028f79c9415ee2be15c9d0b635736b873d38
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.Todo do use Mix.Task alias Mix.Shell.IO, as: Shell @shortdoc "List all todos items for the current project" def run(argv) do Mix.Task.run("compile") config = Mix.Project.config() app = config[:app] appfile = Application.app_dir(app) <> "/ebin/#{app}.app" print_conf = ...
27.35
76
0.635283
971c3bfb29f81214f6d93980866651b1a99b93a4
641
exs
Elixir
test/web/plugs/ensure_user_test.exs
smartlogic/smartnote
2a87df6dfe0a9810f646fcaf9472d831028af6c5
[ "MIT" ]
1
2021-07-12T14:27:11.000Z
2021-07-12T14:27:11.000Z
test/web/plugs/ensure_user_test.exs
smartlogic/smartnote
2a87df6dfe0a9810f646fcaf9472d831028af6c5
[ "MIT" ]
20
2020-07-01T14:54:13.000Z
2021-08-02T15:35:31.000Z
test/web/plugs/ensure_user_test.exs
smartlogic/smartnote
2a87df6dfe0a9810f646fcaf9472d831028af6c5
[ "MIT" ]
2
2020-06-20T00:48:34.000Z
2021-01-22T02:04:38.000Z
defmodule Web.Plugs.EnsureUserTest do use Web.ConnCase alias Web.Plugs.EnsureUser describe "verifies the user is signed in" do test "user is present", %{conn: conn} do user = TestHelpers.create_user() conn = conn |> assign(:current_user, user) |> bypass_through() ...
20.677419
49
0.574103
971c44203ca0532464c4b0e3958dec9d538453ad
1,569
ex
Elixir
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/source.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/source.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/source.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...
33.382979
146
0.734863
971c5c36609e04f72a9b0e4add1c4b899fb1754d
1,324
ex
Elixir
lib/opencov/exgravatar.ex
yknx4/opencov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
8
2021-08-22T10:37:57.000Z
2022-01-10T11:27:06.000Z
lib/opencov/exgravatar.ex
yknx4/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
109
2021-08-20T04:08:04.000Z
2022-01-03T07:39:18.000Z
lib/opencov/exgravatar.ex
Librecov/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
null
null
null
defmodule Librecov.Exgravatar do @moduledoc """ An Elixir module for generating [Gravatar](http://gravatar.com) urls. """ @domain "gravatar.com" @doc """ Generates a gravatar url for the given email address. ## Examples iex> Exgravatar.gravatar_url("jdoe@example.com", secure: false) "http:...
30.790698
84
0.666918
971c6a862dbb0d36af811f6736504f8a3133cc97
1,389
ex
Elixir
test/support/github/failure_api.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/support/github/failure_api.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/support/github/failure_api.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorps.GitHub.FailureAPI do @moduledoc ~S""" A basic GitHub API mock which returns a 401 forbidden for all requests. Should be good enough for any tests that simply assert a piece of code is able to recover from a generic request error. For any tests that cover handling of specific errors, a no...
37.540541
115
0.706983
971c6ede65c39dac022d6c3c893d1888c42b09b4
1,337
exs
Elixir
mix.exs
iboard/timewrap
0d61032cb5fea2d3d0731d1a5e4001325bb7e863
[ "MIT" ]
1
2019-02-11T10:40:06.000Z
2019-02-11T10:40:06.000Z
mix.exs
iboard/timewrap
0d61032cb5fea2d3d0731d1a5e4001325bb7e863
[ "MIT" ]
3
2019-02-11T09:31:33.000Z
2019-02-24T22:15:08.000Z
mix.exs
iboard/timewrap
0d61032cb5fea2d3d0731d1a5e4001325bb7e863
[ "MIT" ]
null
null
null
defmodule Timewrap.MixProject do use Mix.Project def project do [ app: :timewrap, version: "0.1.4", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package(), # The main page in the docs docs: [ ...
23.45614
69
0.566193
971c8e1bd754e0b94e29f785f0bd3ce6f4fcb9b1
2,007
ex
Elixir
clients/classroom/lib/google_api/classroom/v1/model/teacher.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/teacher.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/classroom/lib/google_api/classroom/v1/model/teacher.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
37.166667
310
0.727952
971c955cd93d663eeae1e9215598dd3c4d07ca72
3,216
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/expr.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/expr.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/expr.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...
57.428571
1,092
0.732276
971d337fad369bcf911b4db9158ccde10930efaf
1,141
exs
Elixir
config/config.exs
filipevarjao/ex_docker_build
a263de4dda38cc849de9496e1c2f47781024996f
[ "MIT" ]
18
2019-01-15T10:54:05.000Z
2022-03-29T22:15:06.000Z
config/config.exs
filipevarjao/ex_docker_build
a263de4dda38cc849de9496e1c2f47781024996f
[ "MIT" ]
28
2019-01-30T12:52:04.000Z
2021-08-03T05:46:17.000Z
config/config.exs
filipevarjao/ex_docker_build
a263de4dda38cc849de9496e1c2f47781024996f
[ "MIT" ]
3
2020-02-03T06:45:03.000Z
2022-03-06T10:05:18.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.806452
73
0.753725
971d43ca24a7e6fdb8b1f1d11e89b76463983c8f
2,012
exs
Elixir
apps/ello_serve/test/controllers/webapp/artist_invite_index_controller_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_serve/test/controllers/webapp/artist_invite_index_controller_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_serve/test/controllers/webapp/artist_invite_index_controller_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Serve.Webapp.ArtistInviteControllerTest do use Ello.Serve.ConnCase setup %{conn: conn} do Ecto.Adapters.SQL.Sandbox.mode(Repo, {:shared, self()}) a_inv1 = Factory.insert(:artist_invite, %{created_at: DateTime.from_unix!(5_000_000)}) Factory.insert(:artist_invite, %{status: "closed", crea...
41.061224
110
0.649602
971d45a87e8d1526e891f3ee430e1f67c79d5e22
2,108
ex
Elixir
web/controllers/dashboard_badge_status_controller.ex
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
2
2019-03-05T16:29:10.000Z
2020-01-17T14:11:48.000Z
web/controllers/dashboard_badge_status_controller.ex
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
3
2019-03-18T20:26:48.000Z
2020-06-25T14:31:13.000Z
web/controllers/dashboard_badge_status_controller.ex
crosscloudci/ci_status_repository
335e8b89bbf59e6cf63e49541ce3ea6b60167e52
[ "Apache-2.0" ]
1
2018-06-16T15:32:25.000Z
2018-06-16T15:32:25.000Z
defmodule CncfDashboardApi.DashboardBadgeStatusController do use CncfDashboardApi.Web, :controller alias CncfDashboardApi.DashboardBadgeStatus def index(conn, _params) do dashboard_badge_status = Repo.all(DashboardBadgeStatus) render(conn, "index.json", dashboard_badge_status: dashboard_badge_status) ...
37.642857
104
0.722011
971d750c1624952a252f0c6499fc276387cec675
894
ex
Elixir
clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_functions/lib/google_api/cloud_functions/v1/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.111111
74
0.761745
971d80bf11ee02fad37b4f05bfc991b594df887f
648
ex
Elixir
lib/flow_kata.ex
hh-ex/flow-kata
00501d91442e260424dfb90e557ddabe16e999e4
[ "MIT" ]
null
null
null
lib/flow_kata.ex
hh-ex/flow-kata
00501d91442e260424dfb90e557ddabe16e999e4
[ "MIT" ]
null
null
null
lib/flow_kata.ex
hh-ex/flow-kata
00501d91442e260424dfb90e557ddabe16e999e4
[ "MIT" ]
null
null
null
defmodule FlowKata do @filename "demo_set.csv" @doc """ Returns a flow that reads from #{@filename}, parses the CSV table into a stream of events where each element has this structure: {city_name::binary, temperature::float} """ def get_flow do end @doc """ Returns a list with all city name...
18
83
0.683642
971d9a28bba91e763a9a181920fd0ba62e68fa23
2,123
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/table_data_list.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/table_data_list.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/table_data_list.ex
hauptbenutzer/elixir-google-api
7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.383333
211
0.714555
971d9e4e086f653b4b9a5e8410727792267fda8c
683
ex
Elixir
deps/absinthe/lib/absinthe/language/directive.ex
JoakimEskils/elixir-absinthe
d81e24ec7c7b1164e6d152101dd50422f192d7e9
[ "MIT" ]
3
2017-06-22T16:33:58.000Z
2021-07-07T15:21:09.000Z
lib/absinthe/language/directive.ex
bruce/absinthe
19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91
[ "MIT" ]
null
null
null
lib/absinthe/language/directive.ex
bruce/absinthe
19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91
[ "MIT" ]
null
null
null
defmodule Absinthe.Language.Directive do @moduledoc false alias Absinthe.{Blueprint, Language} defstruct [ name: nil, arguments: [], loc: nil ] @type t :: %__MODULE__{ name: String.t, arguments: [Language.Argument], loc: Language.loc_t } defimpl Blueprint.Draft do def conv...
21.34375
95
0.658858
971dd74cb3f176b7f81522fab7f200ad2182b184
10
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_type_operation_parsing_test_case/HexadecimalWholeNumber.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_type_operation_parsing_test_case/HexadecimalWholeNumber.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_type_operation_parsing_test_case/HexadecimalWholeNumber.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
0x0 :: 0x1
10
10
0.6
971e04870abe6ab9435c4634d97ee63b4d41e9db
1,875
exs
Elixir
apps/snitch_core/priv/repo/migrations/20180222125936_create_payment_tables.exs
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
1
2021-04-08T22:29:19.000Z
2021-04-08T22:29:19.000Z
apps/snitch_core/priv/repo/migrations/20180222125936_create_payment_tables.exs
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
null
null
null
apps/snitch_core/priv/repo/migrations/20180222125936_create_payment_tables.exs
VeryBigThings/avia
7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9
[ "MIT" ]
null
null
null
defmodule Core.Repo.Migrations.CreatePaymentTables do use Ecto.Migration def change do create table("snitch_payment_methods") do add :name, :string, null: :false add :code, :char, size: 3 add :active?, :boolean, default: true, null: :false timestamps() end create unique_index("s...
33.482143
100
0.6528
971e346ee1fa0b82b7523a34aa1e3a0c8f8f8f66
1,554
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/instances_set_machine_type_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/instances_set_machine_type_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/compute/lib/google_api/compute/v1/model/instances_set_machine_type_request.ex
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...
33.06383
222
0.750322
971e5cd182bef341a576bab85df875d4cbe15a52
1,816
exs
Elixir
test/state_machine/validation_test.exs
youroff/state_machine
37ff18fa5dfc33d628b5409d721cc06087cdd56d
[ "MIT" ]
16
2020-08-07T15:04:33.000Z
2021-05-17T16:33:51.000Z
test/state_machine/validation_test.exs
youroff/state_machine
37ff18fa5dfc33d628b5409d721cc06087cdd56d
[ "MIT" ]
4
2020-08-30T20:42:54.000Z
2020-09-09T12:17:25.000Z
test/state_machine/validation_test.exs
youroff/state_machine
37ff18fa5dfc33d628b5409d721cc06087cdd56d
[ "MIT" ]
null
null
null
defmodule StateMachineValidationTest do use ExUnit.Case, async: true alias StateMachine.{Validation, State, Event, Transition, Guard} test "validate_states_in_transitions" do sm = %StateMachine{ states: %{ created: %State{name: :created}, done: %State{name: :done} }, events:...
33.62963
136
0.617841
971e70a8bb28d3adcdc621c94d398d4e4f819b96
317
ex
Elixir
lib/codes/codes_d45.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_d45.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_d45.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_D45 do alias IcdCode.ICDCode def _D45 do %ICDCode{full_code: "D45", category_code: "D45", short_code: "", full_name: "Polycythemia vera", short_name: "Polycythemia vera", category_name: "Polycythemia vera" } end end
19.8125
44
0.608833
971e72c0eed236e82a1ed0663a4a450f46c289f2
368
ex
Elixir
lib/ex_queue_bus_client/behaviours/sns_client_behaviour.ex
lets-talk/ex-queue-bus-client
64de7faa0d6d3f88df6fa185d7a664404b90cab5
[ "MIT" ]
3
2019-08-03T14:01:07.000Z
2020-08-28T14:33:43.000Z
lib/ex_queue_bus_client/behaviours/sns_client_behaviour.ex
lets-talk/ex-queue-bus-client
64de7faa0d6d3f88df6fa185d7a664404b90cab5
[ "MIT" ]
10
2019-05-07T19:30:14.000Z
2020-03-04T19:24:14.000Z
lib/ex_queue_bus_client/behaviours/sns_client_behaviour.ex
lets-talk/ex-queue-bus-client
64de7faa0d6d3f88df6fa185d7a664404b90cab5
[ "MIT" ]
null
null
null
defmodule ExQueueBusClient.SNSClientBehaviour do @moduledoc """ This is a communication interface between ExQueueBusClient and AWS SNS service. We implement this behaviour to establish a contract and to easiely test it with mocks. """ @callback publish(message :: binary(), opts :: ExAws.SNS.publish_opts())...
33.454545
77
0.728261
971e81e4e19741df8bc0ab3c0083f036c7b8c874
7,342
ex
Elixir
lib/ex_ussd/executer.ex
beamkenya/ex_ussd
66cbf7a75cf461a995a143b11180bb75b8f68925
[ "Apache-2.0" ]
10
2020-10-16T05:15:21.000Z
2021-10-04T19:38:59.000Z
lib/ex_ussd/executer.ex
beamkenya/ex_ussd
66cbf7a75cf461a995a143b11180bb75b8f68925
[ "Apache-2.0" ]
12
2020-10-15T09:14:26.000Z
2021-10-02T12:45:11.000Z
lib/ex_ussd/executer.ex
beamkenya/ex_ussd
66cbf7a75cf461a995a143b11180bb75b8f68925
[ "Apache-2.0" ]
4
2021-05-07T20:46:17.000Z
2021-09-28T05:49:42.000Z
defmodule ExUssd.Executer do @moduledoc false @doc """ 'execute_navigate/2' function It invoke's anonymous function set on navigate field. """ alias ExUssd.Utils @spec execute_navigate(ExUssd.t(), map()) :: ExUssd.t() def execute_navigate(menu, payload) def execute_navigate(%ExUssd{navigate: navig...
30.090164
97
0.592754
971e821a8201f04865d601a6e99ad8c88c40ff9b
7,449
ex
Elixir
lib/ex_twilio/capability.ex
antoinereyt/ex_twilio
00276cb855574f2dfd89f72f260a1d56136d48aa
[ "MIT" ]
null
null
null
lib/ex_twilio/capability.ex
antoinereyt/ex_twilio
00276cb855574f2dfd89f72f260a1d56136d48aa
[ "MIT" ]
null
null
null
lib/ex_twilio/capability.ex
antoinereyt/ex_twilio
00276cb855574f2dfd89f72f260a1d56136d48aa
[ "MIT" ]
2
2022-03-08T22:05:17.000Z
2022-03-09T05:29:46.000Z
defmodule ExTwilio.Capability do @moduledoc """ Capability tokens are used to sign communications from devices to Twilio. You create a token on your server, specify what capabilities you would like your device to have, then pass the token to your client to use. The tokens generated are JSON Web Tokens (JWT...
27.898876
115
0.699825
971e8d25a9794186e3cb8b3a8be9a847ed759dd6
1,857
exs
Elixir
test/messenger_bot/web/plugs/app_authentication_test.exs
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
16
2018-04-19T23:50:47.000Z
2020-07-18T08:28:07.000Z
test/messenger_bot/web/plugs/app_authentication_test.exs
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
62
2018-11-05T08:21:23.000Z
2021-08-02T13:15:16.000Z
test/messenger_bot/web/plugs/app_authentication_test.exs
mustafaturan/messenger_bot
c6c634ace2b2df02acf4a06c9b24790893d88d60
[ "Unlicense" ]
4
2019-04-25T13:30:45.000Z
2020-07-12T15:39:23.000Z
defmodule MessengerBot.Web.Plug.AppAuthenticationTest do use ExUnit.Case, async: false alias Plug.Conn alias MessengerBot.Config alias MessengerBot.ConnHelper alias MessengerBot.Web.Plug.AppAuthentication doctest AppAuthentication @opts AppAuthentication.init([]) setup do conn = ConnHelpe...
29.015625
77
0.682283
971e8fe22121e4419f84c83b2adfc9f2469a833a
210
exs
Elixir
.formatter.exs
shiryel/rayex
20cbffe788ef9df66d3e8ff918fe16a040aff737
[ "Apache-2.0" ]
8
2021-08-06T16:12:53.000Z
2022-02-07T21:23:00.000Z
.formatter.exs
shiryel/rayex
20cbffe788ef9df66d3e8ff918fe16a040aff737
[ "Apache-2.0" ]
3
2021-07-31T20:04:29.000Z
2021-12-17T19:52:41.000Z
.formatter.exs
shiryel/rayex
20cbffe788ef9df66d3e8ff918fe16a040aff737
[ "Apache-2.0" ]
3
2021-07-30T06:20:00.000Z
2022-02-23T22:33:31.000Z
# Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,c_src,test}/**/*.{ex,exs}"], locals_without_parens: [ # unifex module: :*, interface: :*, spec: :*, type: :* ] ]
17.5
76
0.519048
971e9baf9aceac8b6d07cbeef42f95daca8e7ef1
3,662
exs
Elixir
test/live_sup_web/controllers/api/user_controller_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
test/live_sup_web/controllers/api/user_controller_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
3
2022-02-23T15:51:48.000Z
2022-03-14T22:52:43.000Z
test/live_sup_web/controllers/api/user_controller_test.exs
livesup-dev/livesup
eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446
[ "Apache-2.0", "MIT" ]
null
null
null
defmodule LiveSupWeb.Api.UserControllerTest do use LiveSupWeb.ConnCase import LiveSup.Test.AccountsFixtures alias LiveSup.Schemas.User @create_attrs %{ avatar_url: "http://www.images.com/another.jpg", confirmed_at: ~N[2022-03-10 09:00:00], email: "my@notcoolemail.com", first_name: "some first...
30.516667
88
0.579192
971e9cd20aed0c2a174e2e045f318e8cb7d41887
4,579
ex
Elixir
lib/web_spell.ex
langalex/web_spell
e501ba9936b2b2771fedadbea6a0417fb1d1feea
[ "MIT" ]
7
2017-07-28T21:56:28.000Z
2021-04-07T15:58:56.000Z
lib/web_spell.ex
langalex/web_spell
e501ba9936b2b2771fedadbea6a0417fb1d1feea
[ "MIT" ]
3
2017-07-29T17:03:16.000Z
2017-07-29T17:04:09.000Z
lib/web_spell.ex
langalex/web_spell
e501ba9936b2b2771fedadbea6a0417fb1d1feea
[ "MIT" ]
null
null
null
defmodule WebSpell do @moduledoc """ For a tutorial on how to use WebSpell, see the [README on Github](https://github.com/langalex/web_spell/blob/master/README.md). """ @doc """ Add WebSpell to your http client stub module by calling `use WebSpell`. This adds the following methods to your module: ...
30.939189
131
0.606028
971ed6724f7ef25ab2122ab270cf339749489d8e
279
ex
Elixir
lib/code_corps_web/views/organization_invite_view.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
lib/code_corps_web/views/organization_invite_view.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
lib/code_corps_web/views/organization_invite_view.ex
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorpsWeb.OrganizationInviteView do @moduledoc false use CodeCorpsWeb, :view use JaSerializer.PhoenixView attributes [ :email, :inserted_at, :organization_name, :updated_at ] has_one :organization, type: "organization", field: :organization_id end
23.25
70
0.770609
971edf1fb0774071a3db6ea2960a57e397daa362
1,085
ex
Elixir
server/test/support/conn_case.ex
BlueHotDog/buff
0403f68867e950945a47cce2d7442974d12583b2
[ "MIT" ]
1
2020-03-18T17:29:32.000Z
2020-03-18T17:29:32.000Z
server/test/support/conn_case.ex
BlueHotDog/buff
0403f68867e950945a47cce2d7442974d12583b2
[ "MIT" ]
26
2019-06-09T18:35:45.000Z
2020-07-30T17:05:58.000Z
server/test/support/conn_case.ex
BlueHotDog/buff
0403f68867e950945a47cce2d7442974d12583b2
[ "MIT" ]
null
null
null
defmodule BuffServerWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if...
27.125
59
0.722581
971ee0d8395d13f12c77aac3ddddf07147b1ad63
2,851
exs
Elixir
test/formatters_test.exs
ericgroom/space_mongers
e9f979318dca2e8ee4f685014bae585db15cd117
[ "MIT" ]
2
2021-03-18T02:00:29.000Z
2021-04-18T06:11:07.000Z
test/formatters_test.exs
ericgroom/space_mongers
e9f979318dca2e8ee4f685014bae585db15cd117
[ "MIT" ]
null
null
null
test/formatters_test.exs
ericgroom/space_mongers
e9f979318dca2e8ee4f685014bae585db15cd117
[ "MIT" ]
null
null
null
defmodule SpaceMongers.FormattersTest do use ExUnit.Case, async: true import SpaceMongers.Formatters alias SpaceMongers.FullResponse @success {:ok, %FullResponse{ status: 200, body: %{success: true} }} @failure {:error, %FullResponse{ ...
30.98913
96
0.549281
971f00e3ac947ea534d19af6c4f7798a718bc069
1,141
ex
Elixir
apps/fz_http/lib/fz_http/oidc.ex
CloudFire-LLC/cloudfire-ce
416ea0d9c9528790fdf70c432aa4eb507d7b2074
[ "Apache-2.0" ]
null
null
null
apps/fz_http/lib/fz_http/oidc.ex
CloudFire-LLC/cloudfire-ce
416ea0d9c9528790fdf70c432aa4eb507d7b2074
[ "Apache-2.0" ]
1
2020-04-24T01:53:41.000Z
2020-04-24T01:53:41.000Z
apps/fz_http/lib/fz_http/oidc.ex
CloudFire-LLC/cloudfire-ce
416ea0d9c9528790fdf70c432aa4eb507d7b2074
[ "Apache-2.0" ]
null
null
null
defmodule FzHttp.OIDC do @moduledoc """ The OIDC context. """ import Ecto.Query, warn: false alias FzHttp.{OIDC.Connection, Repo, Users.User} def list_connections(%User{id: id}) do Repo.all(from(Connection, where: [user_id: ^id])) end def get_connection(id) do Repo.get(Connection, id) end ...
23.285714
80
0.695881
971f185ff832280c998955046c2581aa36fafd8f
69
exs
Elixir
test/pow_assent_test.exs
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
193
2019-10-30T00:58:21.000Z
2022-03-09T20:26:37.000Z
test/pow_assent_test.exs
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
82
2019-10-29T20:19:38.000Z
2022-03-22T04:09:27.000Z
test/pow_assent_test.exs
mitcheaton1/pow_assent
f3e9e6cc7dd16a3f2d9add885bd160d227abb713
[ "MIT" ]
28
2019-10-31T12:38:10.000Z
2021-11-01T18:05:23.000Z
defmodule PowAssentTest do use ExUnit.Case doctest PowAssent end
13.8
26
0.811594
971f4861cafeb8b21328a7223e916e1722b8784c
3,943
ex
Elixir
lib/axon/shared.ex
MortadaAK/axon
42fb2f0d49d0e842653bc18951c5e4e0414e6462
[ "Apache-2.0" ]
null
null
null
lib/axon/shared.ex
MortadaAK/axon
42fb2f0d49d0e842653bc18951c5e4e0414e6462
[ "Apache-2.0" ]
null
null
null
lib/axon/shared.ex
MortadaAK/axon
42fb2f0d49d0e842653bc18951c5e4e0414e6462
[ "Apache-2.0" ]
null
null
null
defmodule Axon.Shared do @moduledoc false # Collection of private helper functions and # macros for enforcing shape/type constraints, # doing shape calculations, and even some # helper numerical definitions. import Nx.Defn @doc """ Asserts `lhs` has same shape as `rhs`. """ defn assert_shape!(lhs...
24.190184
98
0.57266
971f93b52f2972e78c822da1433ce394b4e28dac
11,890
exs
Elixir
test/breaker_box_test.exs
BobbyMcWho/breaker_box
bb5c2c6f676251cb658293e9eb7452bd22a94f4e
[ "MIT" ]
3
2019-09-24T22:11:57.000Z
2022-01-19T22:34:21.000Z
test/breaker_box_test.exs
BobbyMcWho/breaker_box
bb5c2c6f676251cb658293e9eb7452bd22a94f4e
[ "MIT" ]
1
2021-05-18T01:47:02.000Z
2021-05-18T01:47:02.000Z
test/breaker_box_test.exs
BobbyMcWho/breaker_box
bb5c2c6f676251cb658293e9eb7452bd22a94f4e
[ "MIT" ]
3
2021-01-08T02:46:14.000Z
2022-01-13T15:30:52.000Z
defmodule BreakerBoxTest do use ExUnit.Case import ExUnit.CaptureLog alias BreakerBox.BreakerConfiguration doctest BreakerBox @test_breaker_name "TestBreaker" @test_breaker_config %BreakerConfiguration{} @non_existent_breaker "NonExistentBreaker" setup_all do {:ok, _} = BreakerBox.start_link([]...
33.027778
95
0.693776
971fa58d395731be52a14e40342cb4d421d39259
281
ex
Elixir
programming_elixir/chapter11/nextcodepoint.ex
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
programming_elixir/chapter11/nextcodepoint.ex
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
programming_elixir/chapter11/nextcodepoint.ex
hectoregm/elixir
c4dc9cd327c6d935de93337e5c52d58b82c4d339
[ "MIT" ]
null
null
null
defmodule MyString do def each(str, func), do: _each(String.next_codepoint(str), func) defp _each({codepoint, rest}, func) do func.(codepoint) _each(String.next_codepoint(rest), func) end defp _each(nil, _), do: [] end MyString.each "∂og", fn c -> IO.puts c end
21.615385
66
0.672598
971fecbdf4a2e19bf1642138373482992d264871
1,556
exs
Elixir
mix.exs
stoicAlchemist/amqp
42d2075a9a88a94e493b97106c14dde6c5f204c3
[ "MIT" ]
null
null
null
mix.exs
stoicAlchemist/amqp
42d2075a9a88a94e493b97106c14dde6c5f204c3
[ "MIT" ]
null
null
null
mix.exs
stoicAlchemist/amqp
42d2075a9a88a94e493b97106c14dde6c5f204c3
[ "MIT" ]
1
2020-04-27T18:06:52.000Z
2020-04-27T18:06:52.000Z
defmodule AMQP.Mixfile do use Mix.Project @version "1.0.3" def project do [app: :amqp, version: @version, elixir: "~> 1.3", description: description(), package: package(), source_url: "https://github.com/pma/amqp", deps: deps(), dialyzer: [ ignore_warnings: "dialyze...
24.698413
74
0.53856
97203002844dff561a4f5509bb21aaf3a3e46583
283
ex
Elixir
tests/dummy/web/controllers/history_relationship_controller.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
null
null
null
tests/dummy/web/controllers/history_relationship_controller.ex
autoxjs/autox-phoenix
6446f4487e3af28955f6560973cff6add34be4d4
[ "MIT" ]
20
2016-04-05T06:28:58.000Z
2016-05-12T15:45:37.000Z
tests/dummy/web/controllers/history_relationship_controller.ex
foxnewsnetwork/autox
66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a
[ "MIT" ]
null
null
null
defmodule Dummy.HistoryRelationshipController do use Dummy.Web, :controller plug :scrub_params, "data" when action in [:create, :update, :delete] plug Autox.AutoParentPlug, Dummy plug Autox.AutoPaginatePlug when action in [:index] use Autox.RelationshipController end
31.444444
71
0.773852
972058b7e120e4c237f24a89a2b20fdb627779ee
412
ex
Elixir
projects/sequence/lib/sequence.ex
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
8
2018-08-26T08:10:08.000Z
2021-04-05T16:05:05.000Z
projects/sequence/lib/sequence.ex
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
null
null
null
projects/sequence/lib/sequence.ex
renanlage/programming-elixir-book
71e58398269cde2b76a377d28cc906fb528c4134
[ "MIT" ]
1
2019-10-08T09:56:43.000Z
2019-10-08T09:56:43.000Z
defmodule Sequence do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do initial_number = Application.get_env(:sequence, :initial_number) initial_delta = Application.get_env(:sequence, :initial_delta...
29.428571
79
0.759709
9720627999d4a2ac62f919ca0c6462dfe4061bdb
2,793
ex
Elixir
lib/auto_api/states/chassis_settings_state.ex
highmobility/hm-auto-api-elixir
026c3f50871c56877a4acd5f39a8887118a87bb5
[ "MIT" ]
4
2018-01-19T16:11:10.000Z
2019-12-13T16:35:10.000Z
lib/auto_api/states/chassis_settings_state.ex
highmobility/hm-auto-api-elixir
026c3f50871c56877a4acd5f39a8887118a87bb5
[ "MIT" ]
5
2018-11-29T09:48:29.000Z
2019-11-06T12:11:35.000Z
lib/auto_api/states/chassis_settings_state.ex
highmobility/hm-auto-api-elixir
026c3f50871c56877a4acd5f39a8887118a87bb5
[ "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...
38.791667
95
0.723237
97207b98da11d05ace851ab8b176a1b6cc64d817
3,395
ex
Elixir
core/handler/cowboy_req.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
144
2018-04-27T07:24:49.000Z
2022-03-15T05:19:37.000Z
core/handler/cowboy_req.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
123
2018-05-01T02:54:43.000Z
2022-01-28T01:30:52.000Z
core/handler/cowboy_req.ex
sylph01/antikythera
47a93f3d4c70975f7296725c9bde2ea823867436
[ "Apache-2.0" ]
14
2018-05-01T02:30:47.000Z
2022-02-21T04:38:56.000Z
# Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved. use Croma defmodule AntikytheraCore.Handler.CowboyReq do alias Croma.Result, as: R alias Antikythera.{Time, GearName, PathInfo, Conn, Context} alias Antikythera.Http.{Method, QueryParams, Body} alias Antikythera.Request.PathMatches alias Antikyt...
31.435185
101
0.607658
97209410b906cba108afd76bd36b3a7409a862df
972
exs
Elixir
mix.exs
gamache/ets_deque
dbd949b0f461d70d19e47c3d910f9bb029c7369e
[ "MIT" ]
2
2020-01-27T16:15:45.000Z
2020-01-29T18:14:04.000Z
mix.exs
gamache/ets_deque
dbd949b0f461d70d19e47c3d910f9bb029c7369e
[ "MIT" ]
null
null
null
mix.exs
gamache/ets_deque
dbd949b0f461d70d19e47c3d910f9bb029c7369e
[ "MIT" ]
1
2021-03-18T10:33:30.000Z
2021-03-18T10:33:30.000Z
defmodule EtsDeque.MixProject do use Mix.Project @version "0.2.0" @repo_url "https://github.com/gamache/ets_deque" def project do [ app: :ets_deque, description: "A high-performance double-ended queue (deque) based on ETS", version: @version, elixir: "~> 1.8", start_permanent...
21.130435
80
0.553498
9721451cc7c6dbff82169ee696320c4db8251c53
1,583
ex
Elixir
lib/elrondex/sc/router_sc.ex
victorflx/elrondex
a90521ce5e39ad37453dcb53f527b8311ae1ae4f
[ "MIT" ]
8
2021-10-02T16:25:19.000Z
2022-02-03T17:50:34.000Z
lib/elrondex/sc/router_sc.ex
victorflx/elrondex
a90521ce5e39ad37453dcb53f527b8311ae1ae4f
[ "MIT" ]
1
2022-01-19T12:10:49.000Z
2022-01-19T12:10:49.000Z
lib/elrondex/sc/router_sc.ex
victorflx/elrondex
a90521ce5e39ad37453dcb53f527b8311ae1ae4f
[ "MIT" ]
2
2022-01-10T07:48:16.000Z
2022-02-06T17:05:57.000Z
defmodule Elrondex.Sc.RouterSc do alias Elrondex.{Sc, Account, Transaction, Network, REST, ESDT, Pair} alias Elrondex.Sc.{PairSc} @deprecated "Use get_all_pairs_managed_addresses/3 instead" def get_all_pairs_addresses(router_address, %Network{} = network, opts \\ []) do get_all_pairs_managed_addresses(rout...
34.413043
92
0.683512
97215e8181506b9cc329809b3251daeca9dd51cc
156
ex
Elixir
web/controllers/page_controller.ex
andrewbredow/artprize-vote-phoenix
01f597e85d935da114d48527b8bf1e32e4a3ad0a
[ "MIT" ]
2
2015-11-18T16:44:19.000Z
2018-04-04T16:54:42.000Z
web/controllers/page_controller.ex
andrewbredow/artprize-vote-phoenix
01f597e85d935da114d48527b8bf1e32e4a3ad0a
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
andrewbredow/artprize-vote-phoenix
01f597e85d935da114d48527b8bf1e32e4a3ad0a
[ "MIT" ]
null
null
null
defmodule Artprize.PageController do use Artprize.Web, :controller plug :action def index(conn, _params) do render conn, "index.html" end end
15.6
36
0.724359
97217eb20c07b1e926260d2b322b42f99ed0854b
11,640
ex
Elixir
lib/elixir/lib/module/parallel_checker.ex
Apelsinka223/elixir
7c62eb61935b474f53ee23fe5a02ff3f23b1a65e
[ "Apache-2.0" ]
243
2020-02-03T03:48:51.000Z
2021-11-08T12:56:25.000Z
lib/elixir/lib/module/parallel_checker.ex
Apelsinka223/elixir
7c62eb61935b474f53ee23fe5a02ff3f23b1a65e
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/module/parallel_checker.ex
Apelsinka223/elixir
7c62eb61935b474f53ee23fe5a02ff3f23b1a65e
[ "Apache-2.0" ]
null
null
null
defmodule Module.ParallelChecker do @moduledoc false @type cache() :: {pid(), :ets.tid()} @type warning() :: term() @type kind() :: :def | :defmacro @type mode() :: :elixir | :erlang @doc """ Receives pairs of module maps and BEAM binaries. In parallel it verifies the modules and adds the ExCk chunk t...
28.115942
97
0.626976
9721966b3b1c86919c3bbde023fa7127903adf8a
2,852
ex
Elixir
lib/earmark/line.ex
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
lib/earmark/line.ex
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
lib/earmark/line.ex
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
defmodule Earmark.Line do @moduledoc false defmodule Blank do @moduledoc false defstruct(lnb: 0, line: "", content: "", inside_code: false) end defmodule Ruler do @moduledoc false defstruct(lnb: 0, line: "", type: "- or * or _", inside_code: false) end defmodule Heading do @moduled...
23.766667
115
0.591515
9721a7849304ad66c1468a0c71e01a29cef73cde
1,262
ex
Elixir
lib/crawly/loggers/send_to_ui_backend.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
486
2019-05-30T09:19:59.000Z
2021-04-28T07:51:31.000Z
lib/crawly/loggers/send_to_ui_backend.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
131
2019-06-29T12:43:24.000Z
2021-04-24T19:40:07.000Z
lib/crawly/loggers/send_to_ui_backend.ex
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
52
2019-06-24T10:13:41.000Z
2021-03-28T07:36:42.000Z
defmodule Crawly.Loggers.SendToUiBackend do # TODO: Write doc # Initialize the configuration def init({__MODULE__, name}) do {:ok, configure(name, [])} end def handle_call({:configure, opts}, %{name: name} = state) do {:ok, :ok, configure(name, opts, state)} end # Handle the flush event def ha...
24.269231
77
0.610143
9721ae4da66942a284421ec722ad04f9d43554cd
744
exs
Elixir
test/mazes/maze_generation/binary_tree_algorithm_test.exs
angelikatyborska/mazes
cba3b1d6aaaa896f4ca505b477cf03b67523ebf0
[ "MIT" ]
116
2020-12-26T20:56:01.000Z
2022-03-12T15:12:37.000Z
test/mazes/maze_generation/binary_tree_algorithm_test.exs
lohayon/mazes
98a6276ea7440af938edfb14476a5877fdc295e1
[ "MIT" ]
null
null
null
test/mazes/maze_generation/binary_tree_algorithm_test.exs
lohayon/mazes
98a6276ea7440af938edfb14476a5877fdc295e1
[ "MIT" ]
10
2020-12-29T05:11:43.000Z
2022-01-02T00:57:12.000Z
defmodule Mazes.MazeGeneration.BinaryTreeAlgorithmTest do alias Mazes.MazeGeneration.BinaryTreeAlgorithm alias Mazes.MazeDistances use ExUnit.Case test "finishes" do assert BinaryTreeAlgorithm.generate(width: 3, height: 3) end test "produces a maze that can be solved" do maze = BinaryTreeAlgorith...
32.347826
86
0.732527
9721eafba626dddcf033c0585cea2af80c40b811
96
ex
Elixir
web/queries/product_category.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
356
2016-03-16T12:37:28.000Z
2021-12-18T03:22:39.000Z
web/queries/product_category.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
30
2016-03-16T09:19:10.000Z
2021-01-12T08:10:52.000Z
web/queries/product_category.ex
harry-gao/ex-cart
573e7f977bb3b710d11618dd215d4ddd8f819fb3
[ "Apache-2.0" ]
72
2016-03-16T13:32:14.000Z
2021-03-23T11:27:43.000Z
defmodule Nectar.Query.ProductCategory do use Nectar.Query, model: Nectar.ProductCategory end
24
49
0.833333
9721f6d3664e4f13993836d1e8cc3f0f7f7123b0
1,179
ex
Elixir
lib/myapp/endpoint.ex
appdojolabs/myapp
41887a60f7ea86db3c70470631b703455c865042
[ "MIT" ]
41
2017-05-21T14:33:28.000Z
2022-03-28T22:29:56.000Z
lib/myapp/endpoint.ex
appdojolabs/myapp
41887a60f7ea86db3c70470631b703455c865042
[ "MIT" ]
2
2017-07-23T07:06:38.000Z
2018-07-16T23:53:12.000Z
lib/myapp/endpoint.ex
appdojolabs/myapp
41887a60f7ea86db3c70470631b703455c865042
[ "MIT" ]
16
2017-05-21T22:35:10.000Z
2022-03-28T22:30:04.000Z
defmodule Myapp.Endpoint do use Phoenix.Endpoint, otp_app: :myapp socket "/socket", Myapp.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug Plug.Static, at:...
27.418605
69
0.71162
972205bf700b63f3d41e4f6d32130d2bd53771bd
132
exs
Elixir
agents/named_agent.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
4
2016-09-22T03:47:56.000Z
2017-02-02T17:42:57.000Z
agents/named_agent.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
agents/named_agent.exs
hectorip/ErlangExercises
4a1aa5de0504da1bfe5a6c31c1d20277524ab363
[ "MIT" ]
null
null
null
Agent.start(fn -> 1 end, name: Mult) IO.puts Agent.get(Mult, &(&1)) Agent.update(Mult, &(&1 * 2)) IO.puts Agent.get(Mult, &(&1))
16.5
36
0.598485
97221782f41ab14037864ae18d12f72fb79abdc5
2,200
exs
Elixir
example_applications/web_app/mix.exs
pallix/prom_ex
8bcbb162dbd5cd1475941b296463b88f6c1803ba
[ "MIT" ]
null
null
null
example_applications/web_app/mix.exs
pallix/prom_ex
8bcbb162dbd5cd1475941b296463b88f6c1803ba
[ "MIT" ]
null
null
null
example_applications/web_app/mix.exs
pallix/prom_ex
8bcbb162dbd5cd1475941b296463b88f6c1803ba
[ "MIT" ]
null
null
null
defmodule WebApp.MixProject do use Mix.Project def project do [ app: :web_app, version: "0.1.0", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), ...
29.333333
84
0.556818
972231f879facff7b88ee5983c38072845b9784f
4,647
exs
Elixir
.credo.exs
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
52
2015-02-19T23:23:34.000Z
2020-07-12T12:53:09.000Z
.credo.exs
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
17
2016-06-01T18:49:09.000Z
2020-11-11T21:26:21.000Z
.credo.exs
philwade/elixir-gmail
4c44fbc63b194dc4f6f02caec7c6ee6164a3a9a3
[ "MIT" ]
26
2016-03-08T09:13:58.000Z
2021-09-27T08:39:22.000Z
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
40.763158
81
0.656768
97223b5bcef2e1590f45d365dd14df2eced89b07
935
ex
Elixir
lib/daguex/processor/persist_image.ex
secretworry/daguex
323e9eb6dfe29cb94783937e89244b6de8de7d0c
[ "Apache-2.0" ]
null
null
null
lib/daguex/processor/persist_image.ex
secretworry/daguex
323e9eb6dfe29cb94783937e89244b6de8de7d0c
[ "Apache-2.0" ]
null
null
null
lib/daguex/processor/persist_image.ex
secretworry/daguex
323e9eb6dfe29cb94783937e89244b6de8de7d0c
[ "Apache-2.0" ]
null
null
null
defmodule Daguex.Processor.PersistImage do use Daguex.Processor alias Daguex.Image def init(opts) do %{repo: required_option(:repo)} end def process(context, opts) do applied_image = context.image |> apply_image_modifications do_dump(applied_image, context, opts) end defp do_dump(applied_i...
25.972222
87
0.720856
9722521e71f74efdaee3638f28e313f1c898637d
36,078
ex
Elixir
apps/language_server/lib/language_server/server.ex
vacarsu/elixir-ls
7db4c01ec2855cbda3e7e08fd0be5921b7c51127
[ "Apache-2.0" ]
null
null
null
apps/language_server/lib/language_server/server.ex
vacarsu/elixir-ls
7db4c01ec2855cbda3e7e08fd0be5921b7c51127
[ "Apache-2.0" ]
null
null
null
apps/language_server/lib/language_server/server.ex
vacarsu/elixir-ls
7db4c01ec2855cbda3e7e08fd0be5921b7c51127
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.Server do @moduledoc """ Language Server Protocol server This server tracks open files, attempts to rebuild the project when a file changes, and handles requests from the IDE (for things like autocompletion, hover, etc.) Notifications from the IDE are handled synchronously,...
28.633333
133
0.636926
9722585405b2793b618e69365be29377d794e7cd
310
ex
Elixir
lib/githubist_web/schema/scalars.ex
alpcanaydin/githubist-api
6481f8177c5b8573da2d5df52ffaff41340b25d0
[ "MIT" ]
33
2018-10-13T16:40:36.000Z
2021-05-23T14:13:34.000Z
lib/githubist_web/schema/scalars.ex
5l1v3r1/githubist-api
6481f8177c5b8573da2d5df52ffaff41340b25d0
[ "MIT" ]
1
2018-12-23T19:59:05.000Z
2018-12-24T18:08:00.000Z
lib/githubist_web/schema/scalars.ex
5l1v3r1/githubist-api
6481f8177c5b8573da2d5df52ffaff41340b25d0
[ "MIT" ]
3
2018-10-13T22:18:38.000Z
2020-03-29T23:41:23.000Z
defmodule GithubistWeb.Schema.Scalars do @moduledoc false use Absinthe.Schema.Notation @desc """ This scalar type represents date and time as ISO 8601 format """ scalar :time do parse(&Timex.parse(&1.value, "{ISO:Extended:Z}")) serialize(&Timex.format!(&1, "{ISO:Extended:Z}")) end end
22.142857
62
0.687097
9722a80843e43372fdbe1184130d36ba642f89dd
566
ex
Elixir
local/mix/prepare_core.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:11.000Z
2020-08-27T18:43:11.000Z
local/mix/prepare_core.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
null
null
null
local/mix/prepare_core.ex
IvanPereyra-23/PaaS
0179c7b57645473308b0a295a70b6284ed220fbf
[ "Apache-2.0" ]
1
2020-08-27T18:43:21.000Z
2020-08-27T18:43:21.000Z
# Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved. defmodule Mix.Tasks.AntikytheraLocal.PrepareCore do @shortdoc "Builds an OTP release for an antikythera instance" use Mix.Task def run(args) do do_upgrade = case args do [] -> true ["noupgrade"] -> false end versi...
31.444444
89
0.706714
9722a80bc7aae11cbc2880ed774eb309a522543b
1,179
ex
Elixir
lib/queerlink_web/channels/user_socket.ex
Queertoo/Queerlink
0a7726460cda63fc4ab342a2fe1d1155caa3d6d4
[ "MIT" ]
38
2015-11-07T23:54:26.000Z
2021-04-09T04:14:25.000Z
lib/queerlink_web/channels/user_socket.ex
Queertoo/Queerlink
0a7726460cda63fc4ab342a2fe1d1155caa3d6d4
[ "MIT" ]
2
2015-11-23T15:00:34.000Z
2015-11-26T09:59:26.000Z
lib/queerlink_web/channels/user_socket.ex
Queertoo/Queerlink
0a7726460cda63fc4ab342a2fe1d1155caa3d6d4
[ "MIT" ]
6
2015-11-26T00:25:22.000Z
2020-03-04T22:13:59.000Z
defmodule QueerlinkWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", QueerlinkWeb.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 a...
31.026316
84
0.704835
972320e0ec59c1dadfa7562018020fa90f32d558
1,151
exs
Elixir
config/config.exs
quinlanjager/elixir-launchdarkly
1dc7f2180ed075082c68d0f570cbc4d56d8001e1
[ "Apache-2.0" ]
2
2019-08-16T19:28:56.000Z
2020-02-26T08:34:06.000Z
config/config.exs
quinlanjager/elixir-launchdarkly
1dc7f2180ed075082c68d0f570cbc4d56d8001e1
[ "Apache-2.0" ]
7
2021-11-10T03:21:01.000Z
2022-03-31T03:25:11.000Z
config/config.exs
pixelunion-apps/elixir-launchdarkly
e15daa77fd625f17fa9a6253d29f28239b24b32b
[ "Apache-2.0" ]
2
2020-02-26T09:50:57.000Z
2020-02-27T19:24:32.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...
37.129032
73
0.755864
97235ba3fb3e63dcd4e76ef6b4bb49ce8206c5e9
96
exs
Elixir
apps/core/test/core_web/views/layout_view_test.exs
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/test/core_web/views/layout_view_test.exs
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
apps/core/test/core_web/views/layout_view_test.exs
votiakov/petal
ec03551da6dadc0c3482b25a5f5dcd400c36db43
[ "MIT" ]
null
null
null
defmodule Legendary.CoreWeb.LayoutViewTest do use Legendary.CoreWeb.ConnCase, async: true end
24
45
0.833333
97239fc35228bb79bcc71b7390b726b0933630f4
1,255
ex
Elixir
lib/ash/api/dsl.ex
alexfreska/ash
b7ffc5495fd6d956199fb74cfc1f72f58bf8505a
[ "MIT" ]
null
null
null
lib/ash/api/dsl.ex
alexfreska/ash
b7ffc5495fd6d956199fb74cfc1f72f58bf8505a
[ "MIT" ]
null
null
null
lib/ash/api/dsl.ex
alexfreska/ash
b7ffc5495fd6d956199fb74cfc1f72f58bf8505a
[ "MIT" ]
null
null
null
defmodule Ash.Api.Dsl do @resource %Ash.Dsl.Entity{ name: :resource, describe: "A reference to a resource", target: Ash.Api.ResourceReference, args: [:resource], examples: [ "resource MyApp.User" ], schema: [ resource: [ type: :atom, required: true, doc:...
21.637931
73
0.643028
9723c2da2ccaffcc27049a017b7875c2160149e3
496
ex
Elixir
lib/salty/random.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
23
2017-07-04T19:29:43.000Z
2021-02-16T19:44:38.000Z
lib/salty/random.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
16
2017-08-13T15:31:25.000Z
2019-06-19T14:44:13.000Z
lib/salty/random.ex
benknowles/libsalty
38a10812865cb855bfa46cf266bb68d51a296f39
[ "Apache-2.0" ]
19
2017-08-10T19:01:49.000Z
2021-06-20T01:34:59.000Z
defmodule Salty.Random do alias Salty.Nif, as: C def seedbytes do C.randombytes_SEEDBYTES() end def random do C.randombytes_random() end def stir do C.randombytes_stir() end def uniform(upper) do C.randombytes_uniform(upper) end def buf(size) when size > 0 do C.randombytes_b...
15.030303
52
0.689516
9723d4b9695856f236ce7941f6807358fa2a675a
5,660
exs
Elixir
test/streaming_metrics/prometheus_collector_test.exs
smartcitiesdata/streaming-metrics
deada3f52d9763e5b257199a6c2ec0a098515616
[ "Apache-2.0" ]
1
2019-07-09T15:49:02.000Z
2019-07-09T15:49:02.000Z
test/streaming_metrics/prometheus_collector_test.exs
smartcitiesdata/streaming-metrics
deada3f52d9763e5b257199a6c2ec0a098515616
[ "Apache-2.0" ]
1
2021-05-28T16:43:38.000Z
2021-05-28T16:43:38.000Z
test/streaming_metrics/prometheus_collector_test.exs
Datastillery/streaming_metrics
deada3f52d9763e5b257199a6c2ec0a098515616
[ "Apache-2.0" ]
null
null
null
defmodule PrometheusMetricCollectorTest do use ExUnit.Case require Logger use Prometheus.Metric alias StreamingMetrics.PrometheusMetricCollector, as: MetricCollector setup do namespace = "some_namespace" metric_name = "MetricName" metric_dimensions = [foo: "bar"] prometheus_metric_name = nam...
33.491124
97
0.679859
9723f1732729a878386feff7b29cf3951d576b5a
699
exs
Elixir
test/format/v_0_1/decoder/json_test.exs
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
7
2020-03-17T22:54:51.000Z
2021-09-10T17:33:03.000Z
test/format/v_0_1/decoder/json_test.exs
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
2
2020-07-13T23:01:52.000Z
2020-07-16T17:05:56.000Z
test/format/v_0_1/decoder/json_test.exs
mmacai/cloudevents-ex
ef7ab9e39019112e0bec2058c3611ebcd04db605
[ "Apache-2.0" ]
1
2020-07-07T19:49:25.000Z
2020-07-07T19:49:25.000Z
defmodule Cloudevents.Format.V_0_1.Decoder.JSONTest do @moduledoc false use ExUnit.Case doctest Cloudevents.Format.V_0_1.Decoder.JSON alias Cloudevents.Format.V_0_1.Decoder.JSON test "cloudEventsVersion, eventType, source and eventID are the required fields." do {:error, _} = JSON.decode(""" ...
24.103448
86
0.542203
9723fd6358841298e3ad2b650551082226243c8e
10,531
exs
Elixir
test/validation/polygon_polygon_precision_test.exs
otherchris/topo
228c2c371c5e89cd1297662da7701c52c5d8b167
[ "MIT" ]
null
null
null
test/validation/polygon_polygon_precision_test.exs
otherchris/topo
228c2c371c5e89cd1297662da7701c52c5d8b167
[ "MIT" ]
null
null
null
test/validation/polygon_polygon_precision_test.exs
otherchris/topo
228c2c371c5e89cd1297662da7701c52c5d8b167
[ "MIT" ]
null
null
null
defmodule Intersect.Validation.PolygonPolygonPrecisionTest do use ExUnit.Case @tag :validation test "18-001 - AA - sliver triangle, cut by polygon" do a = "POLYGON ((10 10, 100 10, 10 11, 10 10))" |> Geo.WKT.decode() b = "POLYGON ((90 0, 200 0, 200 200, 90 200, 90 0))" |> Geo.WKT.decode() assert Top...
36.821678
164
0.581331
97242e0134fa1536a353bee917d853c154f519de
1,332
ex
Elixir
test/support/conn_case.ex
aslakjohansen/dde-iotserver-liveview
eaf063c366105da7ca30b55c6a7a7dd4505b0916
[ "BSD-3-Clause" ]
null
null
null
test/support/conn_case.ex
aslakjohansen/dde-iotserver-liveview
eaf063c366105da7ca30b55c6a7a7dd4505b0916
[ "BSD-3-Clause" ]
null
null
null
test/support/conn_case.ex
aslakjohansen/dde-iotserver-liveview
eaf063c366105da7ca30b55c6a7a7dd4505b0916
[ "BSD-3-Clause" ]
null
null
null
defmodule DdeIotserverLiveviewWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. F...
30.272727
82
0.743243
9724420280fbefe8668722a66fca6d82221f644b
4,906
exs
Elixir
test/integration/discovery_api/stats/completeness_test.exs
PillarTechnology/discovery_api
ee4b91ff492af72cb1d7867775d6cc41c12a43f3
[ "Apache-2.0" ]
null
null
null
test/integration/discovery_api/stats/completeness_test.exs
PillarTechnology/discovery_api
ee4b91ff492af72cb1d7867775d6cc41c12a43f3
[ "Apache-2.0" ]
null
null
null
test/integration/discovery_api/stats/completeness_test.exs
PillarTechnology/discovery_api
ee4b91ff492af72cb1d7867775d6cc41c12a43f3
[ "Apache-2.0" ]
null
null
null
defmodule DiscoveryApi.Stats.CompletenessTest do use ExUnit.Case use Divo use DiscoveryApi.DataCase alias SmartCity.Registry.Dataset import SmartCity.TestHelper alias DiscoveryApi.TestDataGenerator, as: TDG alias DiscoveryApi.Data.Persistence alias DiscoveryApi.Stats.StatsCalculator alias DiscoveryApi...
29.377246
100
0.595393
972443cc68f1363a7f8e9227d34e817b0372295f
777
exs
Elixir
day04/el_b.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
1
2019-12-13T22:44:09.000Z
2019-12-13T22:44:09.000Z
day04/el_b.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
null
null
null
day04/el_b.exs
mason-bially/aoc-2019
f1cefa455b967d9d23dcd092be6242f8ff539c7a
[ "MIT" ]
1
2019-12-05T21:06:06.000Z
2019-12-05T21:06:06.000Z
Code.require_file("el.ex", __DIR__) defmodule Day04.B do def label_digits(digits) do digits |> Enum.with_index |> Enum.map(fn {elem, idx} -> with left <- (if idx == 0, do: nil, else: Enum.at(digits, idx - 1)), right <- Enum.at(digits, idx + 1) do cond do left == right -> :...
25.9
95
0.56242
972462624e80667fe3ef546291f4cc0bb3ec65c4
642
ex
Elixir
.env.ex
erikdstock/lumen_rest_api
d25909bf9639a9cd5d81c69647764a885ad8607e
[ "Unlicense", "MIT" ]
null
null
null
.env.ex
erikdstock/lumen_rest_api
d25909bf9639a9cd5d81c69647764a885ad8607e
[ "Unlicense", "MIT" ]
null
null
null
.env.ex
erikdstock/lumen_rest_api
d25909bf9639a9cd5d81c69647764a885ad8607e
[ "Unlicense", "MIT" ]
null
null
null
APP_ENV=local APP_DEBUG=true APP_KEY=SomeRandomKey!!! APP_LOCALE=en APP_FALLBACK_LOCALE=en DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret CACHE_DRIVER=memcached SESSION_DRIVER=memcached QUEUE_DRIVER=database # MAIL_DRIVER=smtp # MAIL_HOST=mailtrap.i...
16.461538
26
0.833333
97246ac744f00b084d801a3f34b6bab6b909a33c
174
exs
Elixir
elixir/container/apps/application_two/test/application_two_test.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
elixir/container/apps/application_two/test/application_two_test.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
elixir/container/apps/application_two/test/application_two_test.exs
merxer/kata
5dbbca8b4173029f9311398148de9437a329cf9a
[ "MIT" ]
null
null
null
defmodule ApplicationTwoTest do use ExUnit.Case doctest ApplicationTwo test "the truth" do IO.puts "Running Application Two tests" assert 1 + 1 == 2 end end
17.4
43
0.712644
9724d7e27cfe544af68db65dd58aac27717526d6
300
ex
Elixir
ex/examples/echo_server/lib/echo_server.ex
NorthIsUp/loqui
8d394a7951fd3a82d109becc1aebbd9e7ccc894a
[ "MIT" ]
147
2017-10-02T18:16:52.000Z
2020-03-16T03:26:40.000Z
ex/examples/echo_server/lib/echo_server.ex
NorthIsUp/loqui
8d394a7951fd3a82d109becc1aebbd9e7ccc894a
[ "MIT" ]
14
2017-09-19T16:13:32.000Z
2019-06-25T21:18:47.000Z
ex/examples/echo_server/lib/echo_server.ex
NorthIsUp/loqui
8d394a7951fd3a82d109becc1aebbd9e7ccc894a
[ "MIT" ]
25
2017-10-01T20:10:31.000Z
2020-03-19T14:00:20.000Z
defmodule EchoServer do use Application def start(_type, _args) do import Supervisor.Spec, warn: false children = [ worker(Loqui.Server, [8080, "/_rpc", EchoServer.Handler]), ] Supervisor.start_link(children, strategy: :one_for_one, name: EchoServer.Supervisor) end end
23.076923
88
0.703333
9724e78b376516e0376bbaf7936abd6787a185ee
634
ex
Elixir
lib/models/user/config.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
15
2015-09-23T16:03:28.000Z
2018-12-04T21:48:04.000Z
lib/models/user/config.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
27
2016-01-12T16:44:31.000Z
2017-10-13T16:09:36.000Z
lib/models/user/config.ex
mgwidmann/slack_coder
3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf
[ "MIT" ]
4
2016-09-01T12:08:24.000Z
2017-09-21T15:07:57.000Z
defmodule SlackCoder.Models.User.Config do use SlackCoder.Web, :model embedded_schema do for {config, value} <- SlackCoder.Users.Help.default_config do field String.to_atom(config), SlackCoder.Models.Types.Boolean, default: value end end @required_fields ~w() @optional_fields SlackCoder.Users....
26.416667
83
0.72082
972507775979d3635a86e441e8e9474ad6f7f025
2,258
exs
Elixir
apps/quiz_server/test/core/template_test.exs
chargio/revision
28831e6608409de6ef46ac4619c56ad3b0fa90bd
[ "Apache-2.0" ]
1
2022-02-06T11:29:56.000Z
2022-02-06T11:29:56.000Z
apps/quiz_server/test/core/template_test.exs
chargio/revision
28831e6608409de6ef46ac4619c56ad3b0fa90bd
[ "Apache-2.0" ]
null
null
null
apps/quiz_server/test/core/template_test.exs
chargio/revision
28831e6608409de6ef46ac4619c56ad3b0fa90bd
[ "Apache-2.0" ]
null
null
null
defmodule QuizServer.TemplateTest do @moduledoc false use ExUnit.Case alias QuizServer.Examples.Multiplication alias QuizServer.Core.Template test "A new Template reflects the parameters used" do fields = Multiplication.template_fields() template = Template.new(fields) assert fields[:name] == ...
32.724638
93
0.740921
9725551aaf220b7e244c22127391a78fbbd37591
1,360
ex
Elixir
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/analyze_iam_policy_longrunning_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/analyze_iam_policy_longrunning_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_asset/lib/google_api/cloud_asset/v1/model/analyze_iam_policy_longrunning_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...
32.380952
97
0.779412
9725876a55cdab6df63991817f93ece30a891279
669
ex
Elixir
lib/level/mentions/user_mention.ex
pradyumna2905/level
186878a128521074923edd7171eda2f1b181b4f4
[ "Apache-2.0" ]
null
null
null
lib/level/mentions/user_mention.ex
pradyumna2905/level
186878a128521074923edd7171eda2f1b181b4f4
[ "Apache-2.0" ]
null
null
null
lib/level/mentions/user_mention.ex
pradyumna2905/level
186878a128521074923edd7171eda2f1b181b4f4
[ "Apache-2.0" ]
null
null
null
defmodule Level.Mentions.UserMention do @moduledoc """ The UserMention schema. """ use Ecto.Schema alias Level.Posts.Post alias Level.Posts.Reply alias Level.Spaces.Space alias Level.Spaces.SpaceUser @type t :: %__MODULE__{} @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :...
23.068966
64
0.732436
9725f1558339714b51467315c551fdb3237af9dc
4,399
ex
Elixir
host_core/lib/host_core/jetstream/client.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/jetstream/client.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
host_core/lib/host_core/jetstream/client.ex
sleipnir/wasmcloud-otp
aef10f2f07257e65c527be6030006aaed2b85ff9
[ "Apache-2.0" ]
null
null
null
defmodule HostCore.Jetstream.Client do use GenServer require Logger def start_link(config) do GenServer.start_link(__MODULE__, config) end @impl true def init(config) do state = %{ lattice_prefix: config.lattice_prefix, deliver_subject: config.cache_deliver_inbox } {:ok, state...
27.666667
103
0.618322
9725f7cbbf72b251066540d409ed65dcccb916ec
2,352
exs
Elixir
test/file_uploader/storage/storage_test.exs
mazz/Phoenix-File-Upload
7ab9438bce9c3839ce8129cccb60b40dff2cc538
[ "MIT" ]
3
2019-04-19T15:55:58.000Z
2021-06-04T14:02:34.000Z
test/file_uploader/storage/storage_test.exs
mazz/Phoenix-File-Upload
7ab9438bce9c3839ce8129cccb60b40dff2cc538
[ "MIT" ]
null
null
null
test/file_uploader/storage/storage_test.exs
mazz/Phoenix-File-Upload
7ab9438bce9c3839ce8129cccb60b40dff2cc538
[ "MIT" ]
2
2019-04-19T15:56:02.000Z
2020-11-15T06:13:49.000Z
defmodule FileUploader.StorageTest do use FileUploader.DataCase alias FileUploader.Storage describe "pictures" do alias FileUploader.Storage.Picture @valid_attrs %{title: "some title", image: %Plug.Upload{path: "test/fixtures/image.png", filenam...
33.6
90
0.650085
97260f178bb0174c1276785fe949f8838ffd4c97
166
exs
Elixir
lists-and-recursion/reduce.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
1
2019-02-17T11:54:17.000Z
2019-02-17T11:54:17.000Z
lists-and-recursion/reduce.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
lists-and-recursion/reduce.exs
sfat/programming-elixir-exercises
19e62e3f3344ec044e1eb1b39b195f4dad3dff1c
[ "Apache-2.0" ]
null
null
null
defmodule MyList do def reduce([], value, _), do: value def reduce([head | tail ], value, func) do reduce(tail, func.(head, value), func) end end
23.714286
46
0.60241
9726170e9c7b9272fabac679ec32d5bad0f3d8bd
627
ex
Elixir
lib/attendance_web/resolvers/members.ex
hex337/attendance-phoenix
aaade35897b5910d00f2c047cc29bfe2d213f786
[ "MIT" ]
null
null
null
lib/attendance_web/resolvers/members.ex
hex337/attendance-phoenix
aaade35897b5910d00f2c047cc29bfe2d213f786
[ "MIT" ]
null
null
null
lib/attendance_web/resolvers/members.ex
hex337/attendance-phoenix
aaade35897b5910d00f2c047cc29bfe2d213f786
[ "MIT" ]
null
null
null
defmodule AttendanceWeb.Resolvers.Members do import Ecto.Query alias Attendance.Repo def find_members(_parent, %{id: id}, _resolution) do {:ok, Repo.get_by(Attendance.Member, id: id)} end def find_members(_parent, %{query_string: query_string}, _resolution) do q_string = "%#{query_string}%" q = ...
29.857143
74
0.665072
972623ce419fdd1e4a8e78e34bfbc6cc7555bd59
73,877
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1/api/projects.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/api/projects.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/api/projects.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...
45.518792
387
0.61555