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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fff0dad9b8096433089616a0ae0545774080760b | 1,552 | ex | Elixir | lib/honeydew_web/views/error_helpers.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | 13 | 2022-02-13T18:43:20.000Z | 2022-03-19T11:53:48.000Z | lib/honeydew_web/views/error_helpers.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | 1 | 2022-02-23T13:57:19.000Z | 2022-02-23T13:57:19.000Z | lib/honeydew_web/views/error_helpers.ex | elixir-cqrs/honeydew | 888f86c829187eaca28ef1af69a40a337e46630a | [
"MIT"
] | 3 | 2022-02-13T19:25:19.000Z | 2022-02-22T17:56:52.000Z | defmodule HoneydewWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag... | 32.333333 | 77 | 0.666237 |
fff0f8bc57b009c6a493dfe87763e25369fc5532 | 196 | exs | Elixir | priv/repo/migrations/20170730220520_add_stats_to_items.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | priv/repo/migrations/20170730220520_add_stats_to_items.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | priv/repo/migrations/20170730220520_add_stats_to_items.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Repo.Migrations.AddStatsToItems do
use Ecto.Migration
def change do
alter table(:items) do
add :stats, :map, default: fragment("'{}'"), null: false
end
end
end
| 19.6 | 62 | 0.673469 |
fff0fe5e515b73f0229746fe58ee7ae21b36fec6 | 3,200 | exs | Elixir | test/behaviour/handle_request_test.exs | elcritch/ExDhcp | 7c2641eaf86b1e1e0cbbaef67908a8e1829c45a8 | [
"MIT"
] | null | null | null | test/behaviour/handle_request_test.exs | elcritch/ExDhcp | 7c2641eaf86b1e1e0cbbaef67908a8e1829c45a8 | [
"MIT"
] | null | null | null | test/behaviour/handle_request_test.exs | elcritch/ExDhcp | 7c2641eaf86b1e1e0cbbaef67908a8e1829c45a8 | [
"MIT"
] | 1 | 2019-12-16T04:53:17.000Z | 2019-12-16T04:53:17.000Z | defmodule DhcpTest.Behaviour.HandleRequestTest do
@moduledoc false
use ExUnit.Case, async: true
alias ExDhcp.Packet
@moduletag [handle_request: true, behaviour: true]
# packet request example taken from wikipedia:
# https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Request
@dhcp_reque... | 32.653061 | 98 | 0.658125 |
fff1061e6fe9e0353adfc8787fc7f3c010e4dcca | 989 | ex | Elixir | apps/core/lib/core/declaration_requests/api/v2/mpi_search.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/declaration_requests/api/v2/mpi_search.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/declaration_requests/api/v2/mpi_search.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.DeclarationRequests.API.V2.MpiSearch do
@moduledoc """
Provides mpi search
"""
@rpc_worker Application.get_env(:core, :rpc_worker)
def search(%{"auth_phone_number" => _} = search_params) do
"mpi"
|> @rpc_worker.run(MPI.Rpc, :search_persons, [search_params])
|> search_result(:all)
... | 31.903226 | 84 | 0.624874 |
fff12bc4be2b088f956ee7dab02e9a4934206319 | 1,953 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_delete_document_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_delete_document_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_delete_document_operation_metadata.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... | 34.263158 | 192 | 0.771121 |
fff1349fc42bb984ef646895df9f4a33448108d7 | 822 | ex | Elixir | lib/webhooks.ex | TheDragonProject/webhooks | 5e0fc3fd53e439321ab65a99f06b31596ddce8ed | [
"MIT"
] | null | null | null | lib/webhooks.ex | TheDragonProject/webhooks | 5e0fc3fd53e439321ab65a99f06b31596ddce8ed | [
"MIT"
] | null | null | null | lib/webhooks.ex | TheDragonProject/webhooks | 5e0fc3fd53e439321ab65a99f06b31596ddce8ed | [
"MIT"
] | null | null | null | defmodule Webhooks.Application do
@moduledoc """
Small application listening for webhooks notifications
You can specify a custom redis url by setting the `REDIS_URL` environment variable.
> Defaults to "redis://localhost:6379"
You can specify the port under which Cowboy will listen to by setting the... | 25.6875 | 106 | 0.654501 |
fff13cad03c4bf537ef3d1ae06a0e4de35e13ddf | 10,624 | ex | Elixir | web/controllers/invoice_controller.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | 1 | 2020-02-09T03:03:04.000Z | 2020-02-09T03:03:04.000Z | web/controllers/invoice_controller.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | null | null | null | web/controllers/invoice_controller.ex | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | null | null | null | defmodule Soroban.InvoiceController do
@moduledoc """
Invoice Controller Route: /invoices
"""
use Soroban.Web, :controller
import Soroban.Authorize
alias Soroban.{Invoice, Job, Client, Email, Mailer, Pdf}
alias Soroban.InvoiceUtils
plug :user_check
plug :load_clients when action in [:new, :edit, :... | 29.675978 | 162 | 0.61474 |
fff179c4b3cd38bbd534f0a2ab32a98b549cb254 | 757 | exs | Elixir | priv/repo/migrations/20211203161255_create_users_auth_tables.exs | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211203161255_create_users_auth_tables.exs | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211203161255_create_users_auth_tables.exs | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | defmodule Outer.Repo.Migrations.CreateUsersAuthTables do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:users) do
add :email, :citext, null: false
add :hashed_password, :string, null: false
add :confirmed_at, :naive_datetime
times... | 27.035714 | 75 | 0.672391 |
fff189755cdcd9892134b59649dbcd4e2ae18808 | 679 | exs | Elixir | test/conceal_test.exs | thiamsantos/conceal | 3d636d3f043314afd6565c2f67ad2781063c87e0 | [
"Apache-2.0"
] | 2 | 2020-03-02T00:48:45.000Z | 2020-03-05T17:58:19.000Z | test/conceal_test.exs | thiamsantos/conceal | 3d636d3f043314afd6565c2f67ad2781063c87e0 | [
"Apache-2.0"
] | null | null | null | test/conceal_test.exs | thiamsantos/conceal | 3d636d3f043314afd6565c2f67ad2781063c87e0 | [
"Apache-2.0"
] | null | null | null | defmodule ConcealTest do
use ExUnit.Case
test "encrypts and decrypts" do
input = "data"
{:ok, result} =
input
|> Conceal.encrypt("key")
|> Conceal.decrypt("key")
assert result == input
end
describe "decrypt/2" do
test "different key" do
input = "data"
digest = ... | 18.351351 | 63 | 0.594993 |
fff1a46566f1dd002402b3d6c5b12efe7f5a74fd | 1,389 | ex | Elixir | lib/resty/serializer.ex | kkvesper/resty | a7680b9b10487b5ffb02bfa2a5c89b67312a2411 | [
"MIT"
] | null | null | null | lib/resty/serializer.ex | kkvesper/resty | a7680b9b10487b5ffb02bfa2a5c89b67312a2411 | [
"MIT"
] | null | null | null | lib/resty/serializer.ex | kkvesper/resty | a7680b9b10487b5ffb02bfa2a5c89b67312a2411 | [
"MIT"
] | 1 | 2019-01-10T13:15:23.000Z | 2019-01-10T13:15:23.000Z | defmodule Resty.Serializer do
alias Resty.Resource
@moduledoc """
This module is used by `Resty.Repo` in order to serialize and deserialize
data sent and received from the web API.
It will use the serializer implementation configured on the resource. By
default it is `Resty.Serializer.Json` but if you wan... | 28.9375 | 78 | 0.737941 |
fff22aabc17581b74d6826c7842f3ed0d5089b04 | 1,747 | ex | Elixir | lib/esi.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | lib/esi.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | lib/esi.ex | johnschultz/esi | 6bc69c39e21baa8655523e71755a65516b68e60c | [
"MIT"
] | null | null | null | defmodule ESI do
@doc """
Execute a request.
## Arguments
- `request` -- the request
- `opts` -- any additional options to set on the request
"""
@spec request!(req :: ESI.Request.t(), opts :: ESI.Request.request_opts()) ::
{:ok, any} | {:error, any}
def request(req, opts \\ []) do
req
... | 25.691176 | 83 | 0.605037 |
fff22b5bdc59f9fc93067933765c4bf24b92f53e | 1,790 | exs | Elixir | clients/vault/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vault/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vault/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.716418 | 96 | 0.648603 |
fff2542923e619550f1ce0fced0423608d403f12 | 2,805 | exs | Elixir | priv/templates/brando.install/config/prod.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | priv/templates/brando.install/config/prod.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | priv/templates/brando.install/config/prod.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | import Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include th... | 33 | 90 | 0.691622 |
fff26b4c8a626ab31ce02e4b7281e4a10de79112 | 3,613 | ex | Elixir | lib/absinthe/type/scalar.ex | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | null | null | null | lib/absinthe/type/scalar.ex | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | 2 | 2019-03-07T00:26:03.000Z | 2019-08-19T17:30:30.000Z | lib/absinthe/type/scalar.ex | podium/absinthe | 7d14fab0282a3987e124f4d5dc3009bc94eb884c | [
"MIT"
] | 1 | 2019-01-18T20:49:03.000Z | 2019-01-18T20:49:03.000Z | defmodule Absinthe.Type.Scalar do
@moduledoc """
Represents a primitive value.
GraphQL responses take the form of a hierarchical tree; the leaves on these
trees are scalars.
Also see `Absinthe.Type.Object`.
## Built-In Scalars
The following built-in scalar types are defined:
* `:boolean` - Represen... | 38.43617 | 343 | 0.68558 |
fff26de8f20cce35915876cf535704b05541275b | 20,871 | ex | Elixir | lib/elixir/lib/task.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule Task do
@moduledoc """
Conveniences for spawning and awaiting tasks.
Tasks are processes meant to execute one particular
action throughout their lifetime, often with little or no
communication with other processes. The most common use case
for tasks is to convert sequential code into concurrent c... | 33.287081 | 101 | 0.671698 |
fff26e3d4b89065f93dd6a8e62e1bbbfbf9fabb0 | 2,002 | exs | Elixir | test/game_scoring_test.exs | Philpenhas/bowlingkata-phil | 7391aa7197bebb59a17ede5d7464caead7db1861 | [
"MIT"
] | null | null | null | test/game_scoring_test.exs | Philpenhas/bowlingkata-phil | 7391aa7197bebb59a17ede5d7464caead7db1861 | [
"MIT"
] | null | null | null | test/game_scoring_test.exs | Philpenhas/bowlingkata-phil | 7391aa7197bebb59a17ede5d7464caead7db1861 | [
"MIT"
] | null | null | null | defmodule GameScoringTest do
use ExUnit.Case
test "it only scores a list of frames" do
assert_raise FunctionClauseError, fn ->
GameScoring.score(%Frame{})
end
end
test "it returns an error tuple if given a partial game" do
assert {:error, :full_game_required} = GameScoring.score([])
end
... | 29.014493 | 86 | 0.639361 |
fff2ad291a13344ce62ac4bf0b4f1d16d17fb885 | 1,707 | ex | Elixir | lib/mix/tasks/ecto.migrate.ex | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.migrate.ex | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.migrate.ex | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Migrate do
use Mix.Task
import Mix.Ecto
@shortdoc "Run migrations up on a repo"
@moduledoc """
Runs the pending migrations for the given repository.
By default, migrations are expected at "priv/YOUR_REPO/migrations"
directory of the current application but it can be configured
... | 27.532258 | 79 | 0.652607 |
fff2b515c3beece25bcdeeef498d48d83d790657 | 2,498 | ex | Elixir | lib/chat_api/conversations/conversation.ex | wmnnd/papercups | 1e6fdfaf343b95b8bd6853d1327d6123180d0ac7 | [
"MIT"
] | null | null | null | lib/chat_api/conversations/conversation.ex | wmnnd/papercups | 1e6fdfaf343b95b8bd6853d1327d6123180d0ac7 | [
"MIT"
] | 1 | 2021-01-17T10:42:34.000Z | 2021-01-17T10:42:34.000Z | lib/chat_api/conversations/conversation.ex | BotCart/papercups | 7e7533ac8a8becc114060ab5033376c6aab4b369 | [
"MIT"
] | null | null | null | defmodule ChatApi.Conversations.Conversation do
use Ecto.Schema
import Ecto.Changeset
alias ChatApi.{
Accounts.Account,
Customers.Customer,
Messages.Message,
Tags.ConversationTag,
Users.User
}
@type t :: %__MODULE__{
status: String.t(),
priority: String.t(),
... | 26.294737 | 94 | 0.609688 |
fff2eaf3af5f2535336080f14997efe65c22848b | 1,910 | exs | Elixir | clients/secret_manager/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/mix.exs | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/mix.exs | 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... | 28.507463 | 155 | 0.663351 |
fff31262ca7120ef282f20fb64364ba39563057d | 860 | ex | Elixir | lib/online_editor_web/views/folder_view.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | lib/online_editor_web/views/folder_view.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | lib/online_editor_web/views/folder_view.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | defmodule OnlineEditorWeb.FolderView do
use OnlineEditorWeb, :view
def render("index.json", %{folders: folders}) do
render_many(folders, __MODULE__, "folder.json")
end
def render("show.json", %{folder: folder}) do
render_one(folder, __MODULE__, "folder.json")
end
def render("folder.json", %{folde... | 23.888889 | 51 | 0.617442 |
fff33550713c5e080829c44b6cefbd04f3d5b2d6 | 541 | exs | Elixir | test/models/sale_detaill_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | test/models/sale_detaill_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | test/models/sale_detaill_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | defmodule Otherpool.SaleDetaillTest do
use Otherpool.ModelCase
alias Otherpool.SaleDetaill
@valid_attrs %{due_date: %{day: 17, month: 4, year: 2010}, order_date: %{day: 17, month: 4, year: 2010}, subtotal: 42}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = SaleDetaill.changese... | 28.473684 | 120 | 0.728281 |
fff345283e71f479907811c0b37148a70b62cf75 | 686 | ex | Elixir | lib/myApi_web/controllers/fallback_controller.ex | njwest/Phoenix_API | 61002c0e5566d0ab68d4a2fd0e93e3b9c20f1beb | [
"MIT"
] | 40 | 2018-05-20T21:30:30.000Z | 2021-09-10T07:25:44.000Z | Elixir-Phoenix-API/lib/myApi_web/controllers/fallback_controller.ex | eibay/React-Native-Elixir-Phoenix-JWT | 1d3c622c7cf19d5a7dbf3c618a291188e33166c4 | [
"MIT"
] | 3 | 2020-09-07T10:53:53.000Z | 2022-02-12T21:45:34.000Z | Elixir-Phoenix-API/lib/myApi_web/controllers/fallback_controller.ex | trinhdinhphuong/React-Native-Elixir-Phoenix-JWT | 4af4900787ea272b0c1dd3ee7ef039b579e162ba | [
"MIT"
] | 15 | 2018-06-07T08:16:20.000Z | 2020-04-12T07:38:05.000Z | defmodule MyApiWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use MyApiWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_status(:u... | 25.407407 | 73 | 0.680758 |
fff36c86151dac2c7d313c747e60f796bde079fd | 6,365 | ex | Elixir | lib/broadway_sqs/ex_aws_client.ex | maartenvanvliet/broadway_sqs | aea664c9de0c0af016fa420a50f7a51f1c0fbcd8 | [
"Apache-2.0"
] | null | null | null | lib/broadway_sqs/ex_aws_client.ex | maartenvanvliet/broadway_sqs | aea664c9de0c0af016fa420a50f7a51f1c0fbcd8 | [
"Apache-2.0"
] | null | null | null | lib/broadway_sqs/ex_aws_client.ex | maartenvanvliet/broadway_sqs | aea664c9de0c0af016fa420a50f7a51f1c0fbcd8 | [
"Apache-2.0"
] | null | null | null | defmodule BroadwaySQS.ExAwsClient do
@moduledoc """
Default SQS client used by `BroadwaySQS.Producer` to communicate with AWS
SQS service. This client uses the `ExAws.SQS` library and implements the
`BroadwaySQS.SQSClient` and `Broadway.Acknowledger` behaviours which define
callbacks for receiving and acknowl... | 32.641026 | 94 | 0.701021 |
fff3704b962d48efa8adbf598908e72b9825606a | 593 | ex | Elixir | server/lib/project_web/views/user_view.ex | lemartin19/cs4550-project | bd7baf279021543db33fe52beb3e0d5413dbe405 | [
"Xnet",
"X11"
] | null | null | null | server/lib/project_web/views/user_view.ex | lemartin19/cs4550-project | bd7baf279021543db33fe52beb3e0d5413dbe405 | [
"Xnet",
"X11"
] | null | null | null | server/lib/project_web/views/user_view.ex | lemartin19/cs4550-project | bd7baf279021543db33fe52beb3e0d5413dbe405 | [
"Xnet",
"X11"
] | null | null | null | defmodule ProjectWeb.UserView do
use ProjectWeb, :view
alias ProjectWeb.UserView
alias ProjectWeb.ChangesetView
def render("index.json", %{users: users}) do
%{data: render_many(users, UserView, "user.json")}
end
def render("show.json", %{user: user}) do
%{data: render_one(user, UserView, "user.jso... | 26.954545 | 89 | 0.689713 |
fff375a081ec8f50193f2372ae2137c67826f495 | 1,700 | ex | Elixir | lib/commodity/request.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity/request.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity/request.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 30.357143 | 77 | 0.670588 |
fff38b5aea89dfeb8a900a7acba6d7bdcf0b9b93 | 131 | ex | Elixir | lib/utils/mock_center.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 5 | 2020-12-10T07:24:18.000Z | 2021-12-15T08:26:05.000Z | lib/utils/mock_center.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 4 | 2021-02-22T08:53:43.000Z | 2021-06-09T09:24:46.000Z | lib/utils/mock_center.ex | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 2 | 2020-12-12T17:06:13.000Z | 2021-04-09T02:12:31.000Z | defmodule MockCenter do
def create_weid_result() do
{:ok, "did:weid:1:0xd497f242b141089e30c59e92d56929e9ad9dbc63"}
end
end
| 21.833333 | 66 | 0.778626 |
fff396352b3305dc6fdbd050ae4c83abe809dfea | 3,767 | ex | Elixir | lib/ambry/media/chapters/utils.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry/media/chapters/utils.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry/media/chapters/utils.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Media.Chapters.Utils do
@moduledoc """
Utility functions for chapter strategies.
"""
alias Ambry.Media.Media
require Logger
def adapt_ffmpeg_chapters(map) do
case map do
%{"chapters" => [_ | _] = chapters} ->
map_chapters(chapters)
%{"chapters" => []} ->
{... | 24.147436 | 95 | 0.551102 |
fff39d08251b4f9361e30484d59e6c061f4c57b6 | 259 | ex | Elixir | lib/media_server.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | 538 | 2022-02-02T21:46:52.000Z | 2022-03-29T20:50:34.000Z | lib/media_server.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | 48 | 2022-02-03T11:46:09.000Z | 2022-03-31T04:44:53.000Z | lib/media_server.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | 15 | 2022-02-03T05:55:14.000Z | 2022-02-28T11:09:03.000Z | defmodule MediaServer do
@moduledoc """
MediaServer 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.9 | 66 | 0.760618 |
fff3a89ce43a45e424cc65274c0e51ba184730f7 | 1,736 | exs | Elixir | apps/blunt_ddd/mix.exs | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | apps/blunt_ddd/mix.exs | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt_ddd/mix.exs | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule CqrsToolsDdd.MixProject do
use Mix.Project
@version "0.1.0-rc1"
def project do
[
version: @version,
app: :blunt_ddd,
elixir: "~> 1.12",
#
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mi... | 24.450704 | 88 | 0.535714 |
fff3b5a6a57bdcdc0a98a62667f8d464cdcb9870 | 1,437 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/property_reference.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/property_reference.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/property_reference.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... | 31.23913 | 147 | 0.751566 |
fff3c80c96060976ec0fbb635d402f3699d3a489 | 1,930 | ex | Elixir | lib/coherence/plugs/authorization/basic.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | lib/coherence/plugs/authorization/basic.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | lib/coherence/plugs/authorization/basic.ex | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | null | null | null | defmodule Coherence.Authentication.Basic do
@moduledoc """
Implements basic HTTP authentication. To use add:
plug Coherence.Authentication.Basic, realm: "Secret world"
to your pipeline.
This module is derived from https://github.com/bitgamma/plug_auth which is derived from https://github.com/lexm... | 32.711864 | 125 | 0.698446 |
fff3c8913435fac31a6da88ab7baafeebf9cfa41 | 134 | exs | Elixir | spec/spec_helper.exs | FabienHenon/jsonapi-deserializer | db6f7201e6b6b04201f9bcbe42888635133e655a | [
"MIT"
] | 1 | 2019-06-05T18:33:31.000Z | 2019-06-05T18:33:31.000Z | spec/spec_helper.exs | FabienHenon/jsonapi-deserializer | db6f7201e6b6b04201f9bcbe42888635133e655a | [
"MIT"
] | null | null | null | spec/spec_helper.exs | FabienHenon/jsonapi-deserializer | db6f7201e6b6b04201f9bcbe42888635133e655a | [
"MIT"
] | null | null | null | ESpec.configure(fn config ->
config.before(fn _tags ->
{:shared, []}
end)
config.finally(fn _shared ->
:ok
end)
end)
| 13.4 | 30 | 0.597015 |
fff4096e8524046298b48d5249c92efff37d436a | 8,699 | ex | Elixir | lib/ditto/cache_strategy/eviction.ex | mogorman/ditto | 6c19a0c3f2bc3cf243ea46d5eae0087850045a82 | [
"MIT"
] | 1 | 2020-08-29T08:29:14.000Z | 2020-08-29T08:29:14.000Z | lib/ditto/cache_strategy/eviction.ex | mogorman/ditto | 6c19a0c3f2bc3cf243ea46d5eae0087850045a82 | [
"MIT"
] | null | null | null | lib/ditto/cache_strategy/eviction.ex | mogorman/ditto | 6c19a0c3f2bc3cf243ea46d5eae0087850045a82 | [
"MIT"
] | null | null | null | if Ditto.CacheStrategy.configured?(Ditto.CacheStrategy.Eviction) do
defmodule Ditto.CacheStrategy.Eviction do
@behaviour Ditto.CacheStrategy
@moduledoc """
The eviction version has tools for removing things from cache based on size
"""
@ets_tab __MODULE__
@read_history_tab Module.concat(__MOD... | 28.615132 | 99 | 0.573859 |
fff41fcd5275bb1a41770e6c0c46c9db583c415f | 1,093 | ex | Elixir | lib/otto/application.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | 1 | 2019-11-05T06:07:56.000Z | 2019-11-05T06:07:56.000Z | lib/otto/application.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | 2 | 2019-01-06T18:32:53.000Z | 2019-01-06T18:47:02.000Z | lib/otto/application.ex | juvet/otto | aee3b34029da0f8c232bc79e0febb5339fd3e22b | [
"MIT"
] | null | null | null | defmodule Otto.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
unless Mix.env() == :prod do
Envy.auto_load()
Envy.reload_config()
end
# Define workers and c... | 29.540541 | 82 | 0.695334 |
fff425888ffd86b2184f867585cb7b291a3c3c84 | 100 | ex | Elixir | apps/gapi/lib/gapi/repo.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | apps/gapi/lib/gapi/repo.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | apps/gapi/lib/gapi/repo.ex | rolandolucio/gapi_umbrella | b1e690804d7d2a79d3ece7ca12edf65197ca7145 | [
"MIT"
] | null | null | null | defmodule Gapi.Repo do
use Ecto.Repo,
otp_app: :gapi,
adapter: Ecto.Adapters.Postgres
end
| 16.666667 | 35 | 0.71 |
fff4537a8ea4534d3440290fbf114000aa932f81 | 3,467 | ex | Elixir | lib/grizzly/zwave/commands/schedule_entry_lock_daily_repeating_set.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/schedule_entry_lock_daily_repeating_set.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/schedule_entry_lock_daily_repeating_set.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ScheduleEntryLockDailyRepeatingSet do
@moduledoc """
This command is used to set or erase a daily repeating schedule for an
identified user who already has valid user access code.
Params:
* `:set_action` - Indicates whether to erase or modify
* `:user_identifier` - The... | 35.020202 | 87 | 0.691664 |
fff46e1dc2496bdb982106d64ac474a53ca8c279 | 1,080 | exs | Elixir | test/json_schema_test_suite/draft7/default_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/draft7/default_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/draft7/default_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule JsonSchemaTestSuite.Draft7.DefaultTest do
use ExUnit.Case
import JsonXema, only: [valid?: 2]
describe ~s|invalid type for default| do
setup do
%{
schema:
JsonXema.new(%{"properties" => %{"foo" => %{"default" => [], "type" => "integer"}}})
}
end
test ~s|valid ... | 24.545455 | 94 | 0.546296 |
fff48f2bb440d8fdfb656b9adf3f83579e75645b | 459 | ex | Elixir | elixir_libs/elixir_example/lib/otp.ex | tyalt1/elixir_example | 043e75039bea992613be88f6a4d26c5032e6b57f | [
"Apache-2.0"
] | 1 | 2018-01-25T11:08:17.000Z | 2018-01-25T11:08:17.000Z | elixir_libs/elixir_example/lib/otp.ex | tyalt1/elixir_rebar_example | 043e75039bea992613be88f6a4d26c5032e6b57f | [
"Apache-2.0"
] | null | null | null | elixir_libs/elixir_example/lib/otp.ex | tyalt1/elixir_rebar_example | 043e75039bea992613be88f6a4d26c5032e6b57f | [
"Apache-2.0"
] | null | null | null | defmodule MyApp do
use Application
@moduledoc """
Example of OTP application starting counter servers from alt_server.ex.
"""
def start(_type, _args) do
import Supervisor.Spec
children = [
worker(AltServer.Server, [], [name: MyApp.Counter.Server]),
worker(AltServer.Agent, [], [name: MyA... | 22.95 | 73 | 0.679739 |
fff49ce0927b12c7106adf5a4b1d0094eeedddb5 | 1,653 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/model/usage_report_entity.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/model/usage_report_entity.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/model/usage_report_entity.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... | 31.788462 | 84 | 0.738052 |
fff49ea9705bee94e0a61137d9d8e4b5f63a5ca5 | 1,191 | ex | Elixir | lib/contraq/endpoint.ex | marnen/contraq-elixir | 69798c1b92a08c76a63e200eadeeb19986d56d91 | [
"MIT"
] | null | null | null | lib/contraq/endpoint.ex | marnen/contraq-elixir | 69798c1b92a08c76a63e200eadeeb19986d56d91 | [
"MIT"
] | 3 | 2016-11-25T20:35:54.000Z | 2016-11-26T19:45:35.000Z | lib/contraq/endpoint.ex | marnen/contraq-elixir | 69798c1b92a08c76a63e200eadeeb19986d56d91 | [
"MIT"
] | null | null | null | defmodule Contraq.Endpoint do
use Phoenix.Endpoint, otp_app: :contraq
socket "/socket", Contraq.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,
... | 27.697674 | 69 | 0.714526 |
fff4a9a293ba09f3a8655e051bf00c45f431e160 | 4,839 | ex | Elixir | lib/cpfcnpj.ex | soteras/Brcpfcnpj | 8d3394ff8a84898d6f403ce2025e934be6af45fe | [
"MIT"
] | 62 | 2016-03-02T12:05:35.000Z | 2022-01-19T00:23:36.000Z | lib/cpfcnpj.ex | soteras/Brcpfcnpj | 8d3394ff8a84898d6f403ce2025e934be6af45fe | [
"MIT"
] | 24 | 2015-03-15T19:30:19.000Z | 2022-03-21T15:31:23.000Z | lib/cpfcnpj.ex | soteras/Brcpfcnpj | 8d3394ff8a84898d6f403ce2025e934be6af45fe | [
"MIT"
] | 20 | 2015-03-09T22:35:42.000Z | 2022-03-21T14:23:19.000Z | defmodule Cpfcnpj do
@moduledoc """
Módulo responsável por realizar todos os cálculos de validação.
## Examples
iex>Cpfcnpj.valid?({:cnpj,"69.103.604/0001-60"})
true
iex>Cpfcnpj.valid?({:cpf,"111.444.777-35"})
true
Com ou sem os caracteres especiais os mesmos serão validados
"""
@... | 26.156757 | 95 | 0.606944 |
fff4ada16f7a2168f8371d16ee8344cac10bd7cb | 925 | exs | Elixir | test/currency_conversion_test.exs | strzibny/currency-conversion | 057ad0f4a6e9169db55ae52a06dc22675644d467 | [
"MIT"
] | null | null | null | test/currency_conversion_test.exs | strzibny/currency-conversion | 057ad0f4a6e9169db55ae52a06dc22675644d467 | [
"MIT"
] | null | null | null | test/currency_conversion_test.exs | strzibny/currency-conversion | 057ad0f4a6e9169db55ae52a06dc22675644d467 | [
"MIT"
] | null | null | null | defmodule CurrencyConversionTest do
use ExUnit.Case, async: true
doctest CurrencyConversion
describe "get_currencies/0" do
test "fetches all currencies" do
assert CurrencyConversion.get_currencies() == [
:EUR,
:AUD,
:BGN,
:BRL,
... | 21.022727 | 53 | 0.296216 |
fff4b7d080d94e94ed9f81f86bd310ea920b82d2 | 175 | exs | Elixir | .formatter.exs | blatyo/injex | 9f28a5897c9ee6bff6c6fddc60110103d608e88e | [
"MIT"
] | 10 | 2016-11-14T23:20:10.000Z | 2022-03-16T13:36:30.000Z | .formatter.exs | blatyo/injex | 9f28a5897c9ee6bff6c6fddc60110103d608e88e | [
"MIT"
] | null | null | null | .formatter.exs | blatyo/injex | 9f28a5897c9ee6bff6c6fddc60110103d608e88e | [
"MIT"
] | 2 | 2016-11-14T23:38:11.000Z | 2016-11-15T15:15:30.000Z | [
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [
inject: 2
],
export: [
locals_without_parens: [
inject: 2
]
]
]
| 14.583333 | 57 | 0.525714 |
fff4b85c10ba088cf320c2a97301079f4311b5d7 | 3,781 | ex | Elixir | lib/phoenix.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | lib/phoenix.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | lib/phoenix.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 1 | 2018-10-01T19:42:35.000Z | 2018-10-01T19:42:35.000Z | defmodule Phoenix do
@moduledoc """
This is the documentation for the Phoenix project.
By default, Phoenix applications depend on the following packages
across these categories.
## General
* [Ecto](https://hexdocs.pm/ecto) - a language integrated query and
database wrapper
* [ExUnit](https:/... | 32.878261 | 95 | 0.714626 |
fff4cd3c2a2b1679149da31b5e23378356bfec6c | 538 | ex | Elixir | tests/dummy/web/models/truck.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/web/models/truck.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | tests/dummy/web/models/truck.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | defmodule Dummy.Truck do
use Dummy.Web, :model
schema "trucks" do
field :name, :string
field :status, :string
belongs_to :dock, Dummy.Dock
timestamps
end
@create_fields ~w()
@update_fields @create_fields
@optional_fields ~w(name status dock_id)
def create_changeset(model, params\\%{}) d... | 19.925926 | 53 | 0.687732 |
fff4ea0bdc8ffc677c4c7a5e0c6104377038f6dd | 1,750 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/composite_filter.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/composite_filter.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/composite_filter.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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 | 167 | 0.725714 |
fff4f55f42684b5e6301f4130e9463473b6b2370 | 3,683 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/interconnect_outage_notification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/interconnect_outage_notification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/interconnect_outage_notification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 50.452055 | 234 | 0.710834 |
fff4fb4b4feb8cd3131d2ff0a51a8fff20fec60a | 5,266 | ex | Elixir | lib/stripe/subscriptions/plan.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/plan.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/plan.ex | mmmries/stripity_stripe | 7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Plan do
@moduledoc """
Work with Stripe plan objects.
You can:
- Create a plan
- Retrieve a plan
- Update a plan
- Delete a plan
Does not yet render lists or take options.
Stripe API reference: https://stripe.com/docs/api#plan
Example:
```
{
"id": "ivory-extended-580",... | 27.715789 | 98 | 0.543107 |
fff5379829cef419c953113183e99c650ce7aaec | 74 | exs | Elixir | test/loom_web/views/page_view_test.exs | simonfraserduncan/my-copy | 03c618035a06a63d8fcf9f6511ef59d3e4cf2da9 | [
"Apache-2.0"
] | 4 | 2021-02-20T02:47:36.000Z | 2021-06-08T18:42:40.000Z | test/loom_web/views/page_view_test.exs | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | null | null | null | test/loom_web/views/page_view_test.exs | DataStax-Examples/astra-loom | 767c55200d08a6c592773d7af7da95873c4c3445 | [
"Apache-2.0"
] | 1 | 2021-02-17T18:28:35.000Z | 2021-02-17T18:28:35.000Z | defmodule LoomWeb.PageViewTest do
use LoomWeb.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
fff5387831f52a54168ca8d5932bb1b0c6bbc046 | 816 | exs | Elixir | mix.exs | evuez/leekbot | f75fa513000dbeab8a340f169dc303327b81d890 | [
"MIT"
] | null | null | null | mix.exs | evuez/leekbot | f75fa513000dbeab8a340f169dc303327b81d890 | [
"MIT"
] | null | null | null | mix.exs | evuez/leekbot | f75fa513000dbeab8a340f169dc303327b81d890 | [
"MIT"
] | null | null | null | defmodule Leekbot.Mixfile do
use Mix.Project
def project do
[app: :leekbot,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more... | 21.473684 | 77 | 0.573529 |
fff54fad19b29dae98caf49c43db2242b4122281 | 2,792 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/candidate.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/candidate.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/candidate.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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 "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.463768 | 274 | 0.703797 |
fff5c3383c1b8ea9a9dcce17eb9ba76f6f05d6b7 | 1,464 | exs | Elixir | mix.exs | Tmw/ecto_ranked | 8791c88b157f09dfba8cfa9556cedaa8a53da9b7 | [
"MIT"
] | null | null | null | mix.exs | Tmw/ecto_ranked | 8791c88b157f09dfba8cfa9556cedaa8a53da9b7 | [
"MIT"
] | null | null | null | mix.exs | Tmw/ecto_ranked | 8791c88b157f09dfba8cfa9556cedaa8a53da9b7 | [
"MIT"
] | null | null | null | defmodule EctoRanked.Mixfile do
use Mix.Project
def project do
[app: :ecto_ranked,
version: "0.4.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
docs: [main: "readme", extras: ["README.md"]],
al... | 26.618182 | 79 | 0.60929 |
fff5c7b86a1b548bbf85f258ba118889dfa5adc0 | 1,078 | ex | Elixir | lib/hl7/2.4/segments/rxa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/rxa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/rxa.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.RXA do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
give_sub_id_counter: nil,
administration_sub_id_counter: nil,
date_time_start_of_administration: DataTypes.Ts,
date_time_end_of_administratio... | 31.705882 | 55 | 0.731911 |
fff5edf5a9518695c52856264eabe6b1e85e9c85 | 26,357 | ex | Elixir | lib/logger/lib/logger.ex | allansson/elixir | 3db086a51eb48d4fef05c7f9b698a7da97128a2d | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger.ex | allansson/elixir | 3db086a51eb48d4fef05c7f9b698a7da97128a2d | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger.ex | allansson/elixir | 3db086a51eb48d4fef05c7f9b698a7da97128a2d | [
"Apache-2.0"
] | null | null | null | defmodule Logger do
@moduledoc ~S"""
A logger for Elixir applications.
It includes many features:
* Provides debug, info, warn, and error levels.
* Supports multiple backends which are automatically
supervised when plugged into `Logger`.
* Formats and truncates messages on the client
t... | 33.661558 | 101 | 0.68202 |
fff6060e7fc9f32b96a9527f551be9dfe12a3b68 | 501 | ex | Elixir | lib/flamelex/fluxus/supervision_tree/fluxus_supervisor_top.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | 1 | 2020-02-09T23:04:33.000Z | 2020-02-09T23:04:33.000Z | lib/flamelex/fluxus/supervision_tree/fluxus_supervisor_top.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | null | null | null | lib/flamelex/fluxus/supervision_tree/fluxus_supervisor_top.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | null | null | null | defmodule Flamelex.Fluxus.TopLevelSupervisor do
@moduledoc false
use Supervisor
require Logger
def start_link(params) do
Supervisor.start_link(__MODULE__, params, name: __MODULE__)
end
def init(_params) do
Logger.debug "#{__MODULE__} initializing..."
children = [
Flamelex.Fluxus.RadixSt... | 22.772727 | 84 | 0.726547 |
fff61643c04b676886f3f957f463eb06a8fe2b0e | 646 | exs | Elixir | components/notifications-service/server/test/config_test.exs | mmci2468/automate | dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf | [
"Apache-2.0"
] | 191 | 2019-04-16T15:04:53.000Z | 2022-03-21T14:10:44.000Z | components/notifications-service/server/test/config_test.exs | mmci2468/automate | dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf | [
"Apache-2.0"
] | 4,882 | 2019-04-16T16:16:01.000Z | 2022-03-31T15:39:35.000Z | components/notifications-service/server/test/config_test.exs | mmci2468/automate | dbe8bfaae91169861f7ea1d2a66cff5c7ca83ddf | [
"Apache-2.0"
] | 114 | 2019-04-16T15:21:27.000Z | 2022-03-26T09:50:08.000Z | defmodule Notifications.Config.Test do
use ExUnit.Case
alias Notifications.Config
@env_var "NOTIF_CONFIG_TEST"
setup do
System.delete_env(@env_var)
end
test "#get/2 returns the value of the env var when present" do
System.put_env(@env_var, "hello")
assert Config.get(@env_var) == {:ok, "hello"}
... | 34 | 89 | 0.701238 |
fff626a34e82e792183e766a1fc30e6596074bf3 | 690 | exs | Elixir | test/webhooks_emitter/emitter/json_safe_encoder_test.exs | davec82/webhooks_emitter | 57cfb2a90c8a6ec17093c36bada88d356fb7ce8a | [
"Apache-2.0"
] | 3 | 2020-03-19T07:37:18.000Z | 2020-03-30T11:45:31.000Z | test/webhooks_emitter/emitter/json_safe_encoder_test.exs | davec82/webhooks_emitter | 57cfb2a90c8a6ec17093c36bada88d356fb7ce8a | [
"Apache-2.0"
] | 2 | 2020-10-06T11:03:37.000Z | 2020-11-17T13:44:50.000Z | test/webhooks_emitter/emitter/json_safe_encoder_test.exs | davec82/webhooks_emitter | 57cfb2a90c8a6ec17093c36bada88d356fb7ce8a | [
"Apache-2.0"
] | 2 | 2020-10-06T10:17:11.000Z | 2020-10-06T12:13:39.000Z | defmodule WebhooksEmitter.Emitter.JsonSafeEncoderTest do
@moduledoc false
use ExUnit.Case
use ExUnitProperties
alias WebhooksEmitter.Emitter.JsonSafeEncoder
property "can encode any term" do
check all(term <- terms()) do
ret =
term
|> JsonSafeEncoder.encode()
|> Jason.encod... | 19.166667 | 56 | 0.626087 |
fff6499e84778eb2e54ff667cd937728a1d4ec89 | 905 | ex | Elixir | lib/ex_oneroster/results/result.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | lib/ex_oneroster/results/result.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | lib/ex_oneroster/results/result.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.Results.Result do
use Ecto.Schema
import Ecto.Changeset
alias ExOneroster.Results.Result
alias ExOneroster.Users.User
alias ExOneroster.Lineitems.Lineitem
schema "results" do
belongs_to :user, User
belongs_to :lineitem, Lineitem
field :comment, :string
field :dateLast... | 29.193548 | 145 | 0.709392 |
fff6b16ab79d7840ef7f72a225af0fc63a7f5f13 | 2,832 | ex | Elixir | lib/secure_random.ex | agatheblues/secure_random.ex | 0b2cda59a7bb0f1a1ff668fa16296e7cc321f010 | [
"Apache-2.0"
] | null | null | null | lib/secure_random.ex | agatheblues/secure_random.ex | 0b2cda59a7bb0f1a1ff668fa16296e7cc321f010 | [
"Apache-2.0"
] | null | null | null | lib/secure_random.ex | agatheblues/secure_random.ex | 0b2cda59a7bb0f1a1ff668fa16296e7cc321f010 | [
"Apache-2.0"
] | 1 | 2022-02-26T10:21:26.000Z | 2022-02-26T10:21:26.000Z | defmodule SecureRandom do
use Bitwise
@moduledoc """
Takes my favorite hits from Ruby's SecureRandom and brings em to elixir.
Mostly a convienance wrapper around Erlangs Crypto library, converting
Crypto.strong_rand_bytes/1 into a string.
## Examples
iex> SecureRandom.base64
"xhTcitKZI8YiLGzU... | 21.784615 | 145 | 0.61935 |
fff6d2d88e476981d774ef66b68b6d038361066b | 2,775 | exs | Elixir | apps/omg_eth/test/omg_eth/application_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_eth/test/omg_eth/application_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_eth/test/omg_eth/application_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... | 37.5 | 120 | 0.670631 |
fff6e30712887b047d59eced4415f0cbc7226d19 | 1,720 | ex | Elixir | apps/core/lib/core/tile.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | 1 | 2020-01-14T23:19:25.000Z | 2020-01-14T23:19:25.000Z | apps/core/lib/core/tile.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | null | null | null | apps/core/lib/core/tile.ex | joshnuss/ornia | 6a4c69a761b41ba0bcfd1c30f54dd2ccc92e5ead | [
"MIT"
] | null | null | null | defmodule Ornia.Core.Tile do
use GenServer
alias Ornia.Core.{Geometry, Grid}
@tile_size Application.get_env(:core, :tile_size)
def start_link(name, coordinates={lat, lng}) do
state = %{
jurisdiction: {coordinates, {lat + @tile_size, lng + @tile_size}},
pids: %{},
}
GenServer.start_li... | 26.461538 | 98 | 0.610465 |
fff6e345abe29a8daf9e01af7da8bafb2e77fde3 | 2,023 | ex | Elixir | lib/ecto_schema_store/factory.ex | onboardingsystems/ecto_schema_store | 120c929faecb686e3da685f411da66c80d7d0127 | [
"Apache-2.0"
] | null | null | null | lib/ecto_schema_store/factory.ex | onboardingsystems/ecto_schema_store | 120c929faecb686e3da685f411da66c80d7d0127 | [
"Apache-2.0"
] | null | null | null | lib/ecto_schema_store/factory.ex | onboardingsystems/ecto_schema_store | 120c929faecb686e3da685f411da66c80d7d0127 | [
"Apache-2.0"
] | null | null | null | defmodule EctoSchemaStore.Factory do
@moduledoc false
defmacro build do
quote do
def generate(keys \\ []) do
generate(keys, %{})
end
def generate(keys, fields) when is_atom(keys) do
generate([keys], fields)
end
def generate(keys, fields) when is_list(keys) do
... | 22.477778 | 81 | 0.544736 |
fff6f0da45f0401e08fef05d53aab03d9be576a0 | 2,150 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/message_part_body.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gmail/lib/google_api/gmail/v1/model/message_part_body.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gmail/lib/google_api/gmail/v1/model/message_part_body.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... | 40.566038 | 325 | 0.723256 |
fff6ff501d4b64f9ee76927e44ad687b9310ff5a | 2,744 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/job.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/job.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/job.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.955224 | 165 | 0.725219 |
fff70ec27d2c6e929ebdfdee11e3296ec270cdfb | 1,636 | ex | Elixir | test/support/conn_case.ex | jeffgrunewald/goose | 6b4f90d7c6e2c83d9967248312b96abde05f4d05 | [
"Apache-2.0"
] | 16 | 2020-11-13T01:01:05.000Z | 2021-09-13T10:38:36.000Z | test/support/conn_case.ex | jeffgrunewald/goose | 6b4f90d7c6e2c83d9967248312b96abde05f4d05 | [
"Apache-2.0"
] | 9 | 2020-11-22T21:26:30.000Z | 2021-11-22T02:15:26.000Z | test/support/conn_case.ex | jeffgrunewald/goose | 6b4f90d7c6e2c83d9967248312b96abde05f4d05 | [
"Apache-2.0"
] | 1 | 2020-11-13T06:43:51.000Z | 2020-11-13T06:43:51.000Z | defmodule Maverick.ConnCase do
use ExUnit.CaseTemplate
using do
quote do
import Maverick.Test.Helpers
end
end
end
defmodule Maverick.Test.Helpers do
require ExUnit.Assertions
def response(%Plug.Conn{status: status, resp_body: body}, given) do
given = Plug.Conn.Status.code(given)
if g... | 23.042254 | 98 | 0.623472 |
fff70fc543a0f7813d9c986bf1f2ae3b3f089629 | 1,672 | ex | Elixir | lib/elixir_groups/signup/signup.ex | moxley/elixir_groups | cb37e0cec44316c17c60a0d12cfb0231d6b11eea | [
"Apache-2.0"
] | 2 | 2018-02-24T18:38:29.000Z | 2018-02-25T22:32:55.000Z | lib/elixir_groups/signup/signup.ex | moxley/elixir_groups | cb37e0cec44316c17c60a0d12cfb0231d6b11eea | [
"Apache-2.0"
] | 2 | 2018-03-25T02:01:08.000Z | 2019-10-23T20:00:57.000Z | lib/elixir_groups/signup/signup.ex | moxley/elixir_groups | cb37e0cec44316c17c60a0d12cfb0231d6b11eea | [
"Apache-2.0"
] | 1 | 2018-03-17T19:07:34.000Z | 2018-03-17T19:07:34.000Z | defmodule ElixirGroups.Signup do
@moduledoc """
The Signup context.
"""
import Ecto.Query, warn: false
alias ElixirGroups.Repo
alias ElixirGroups.Signup.User
@doc """
Returns the list of users.
## Examples
iex> list_users()
[%User{}, ...]
"""
def list_users do
Repo.all(User)
... | 15.92381 | 59 | 0.568182 |
fff746d8a2bf0b98f3b4d2ac9c8f5d3df0c18291 | 4,504 | ex | Elixir | lib/surgex/data_pipe/foreign_data_wrapper.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | lib/surgex/data_pipe/foreign_data_wrapper.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | lib/surgex/data_pipe/foreign_data_wrapper.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | case Code.ensure_loaded(Ecto) do
{:module, _} ->
defmodule Surgex.DataPipe.ForeignDataWrapper do
@moduledoc """
Configures a PostgreSQL Foreign Data Wrapper linkage between two repos.
Specifically, it executes the following steps:
- adds postgres_fdw extension to local repo
- (re)c... | 30.849315 | 101 | 0.578153 |
fff76e7bf953acba101ca8942e490c4ea66c955f | 922 | exs | Elixir | apps/amf0/mix.exs | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/amf0/mix.exs | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | apps/amf0/mix.exs | tiensonqin/elixir-media-libs | 87f17e2b23bf8380e785423652910bfa7d3bb47c | [
"MIT"
] | null | null | null | defmodule Amf0.Mixfile do
use Mix.Project
def project do
[
app: :amf0,
version: "1.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.2",
build_embedded: Mix.env() == :prod,... | 21.952381 | 98 | 0.574837 |
fff77e8b849cdf2e4f86e4d63aef9a44e74752bb | 1,042 | exs | Elixir | config/web/releases.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | config/web/releases.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | config/web/releases.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | import Config
env_int = fn key ->
key
|> System.fetch_env!()
|> String.to_integer()
end
config :mcam_server, :camera_token,
secret: System.fetch_env!("MCAM_CAMERA_SECRET"),
salt: System.fetch_env!("MCAM_CAMERA_SALT")
config :mcam_server, :browser_token,
secret: System.fetch_env!("MCAM_BROWSER_SECRET"),
... | 33.612903 | 75 | 0.752399 |
fff783b3630d7251716ec3c11aee73887895bc42 | 1,947 | exs | Elixir | config/dev.exs | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 2 | 2020-04-22T13:22:25.000Z | 2020-12-01T12:01:30.000Z | config/dev.exs | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 3 | 2019-12-05T01:32:09.000Z | 2019-12-09T01:15:32.000Z | config/dev.exs | ritou/elixir-oauth-xyz-web | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :oauth_xyz, OAuthXYZWeb.Endpoint,
http: [port:... | 29.953846 | 170 | 0.696456 |
fff7952dc22d0e0a6019feb5244ea8a250e734d5 | 3,120 | ex | Elixir | lib/ecto/exceptions.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/exceptions.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/exceptions.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.CompileError do
@moduledoc """
Raised at compilation time when the query cannot be compiled.
"""
defexception [:message]
end
defmodule Ecto.QueryError do
@moduledoc """
Raised at runtime when the query is invalid.
"""
defexception [:message]
def exception(opts) do
message = ... | 22.773723 | 83 | 0.670513 |
fff795f81f753b6cec8658593ab38a495c787b5e | 1,908 | ex | Elixir | lib/erlef/twitter.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | lib/erlef/twitter.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | lib/erlef/twitter.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule Erlef.Twitter do
@moduledoc """
Wrapper around the ExTwitter library
"""
defmodule Tweet do
@moduledoc "Struct for tweets"
@type t :: %__MODULE__{
id: String.t(),
name: String.t(),
screen_name: String.t(),
avatar: String.t(),
posted... | 25.105263 | 98 | 0.591719 |
fff7b553021e5e511e719b3587eded8d32e8e403 | 1,100 | exs | Elixir | mix.exs | theocodes/monetized | bc742c5be8e435681daa35a2edddf55337a2d12f | [
"MIT"
] | 42 | 2015-12-21T00:16:49.000Z | 2019-02-25T10:19:26.000Z | mix.exs | theocodes/monetized | bc742c5be8e435681daa35a2edddf55337a2d12f | [
"MIT"
] | 23 | 2015-12-31T19:36:14.000Z | 2020-08-18T19:25:53.000Z | mix.exs | tfelippe/monetized | bc742c5be8e435681daa35a2edddf55337a2d12f | [
"MIT"
] | 21 | 2016-01-27T17:44:50.000Z | 2020-09-21T16:46:12.000Z | defmodule Monetized.Mixfile do
use Mix.Project
def project do
[app: :monetized,
name: "Monetized",
source_url: "https://github.com/theocodes/monetized",
version: "0.5.1",
elixir: "~> 1.3",
description: description(),
package: package(),
build_embedded: Mix.env == :prod,
... | 21.568627 | 68 | 0.536364 |
fff7d127defd9fa7d98f7d6c57d2b139b79b6c47 | 795 | ex | Elixir | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/endpoints.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.Storage/lib/microsoft/azure/management/storage/model/endpoints.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/endpoints.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.Storage.Model.Endpoints do
@moduledoc """
The URIs that are used to perform a retrieval of a public blob, queue, ta... | 22.083333 | 98 | 0.636478 |
fff7ec1e4224e426f25d3ad4102f777a5cbbff74 | 1,942 | exs | Elixir | lib/elixir/test/elixir/calendar_test.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar_test.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar_test.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule FakeCalendar do
def to_string(_), do: "boom"
end
defmodule DateTest do
use ExUnit.Case, async: true
doctest Date
test "to_string/1" do
assert to_string(~D[2000-01-01]) == "2000-01-01"
date = Map.put(~D[2000-01-01], :calendar, FakeCalendar)
a... | 27.742857 | 97 | 0.639032 |
fff7ed6778db54096913b240d294dfddb63243a9 | 120 | exs | Elixir | test/std_json_io_test.exs | plandela/std_json_io | ade74982dd9edfea2a13e42addb71b68679c241f | [
"MIT"
] | 26 | 2016-01-03T01:30:36.000Z | 2019-06-01T14:30:28.000Z | test/std_json_io_test.exs | plandela/std_json_io | ade74982dd9edfea2a13e42addb71b68679c241f | [
"MIT"
] | 10 | 2016-04-20T06:20:14.000Z | 2017-07-19T17:55:14.000Z | test/std_json_io_test.exs | plandela/std_json_io | ade74982dd9edfea2a13e42addb71b68679c241f | [
"MIT"
] | 26 | 2016-04-26T18:41:02.000Z | 2020-03-03T21:39:29.000Z | defmodule StdJsonIoTest do
use ExUnit.Case
doctest StdJsonIo
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.333333 | 26 | 0.683333 |
fff7f0438f6a559ce912ebb47ac29e13bfcc21c2 | 1,283 | ex | Elixir | lib/changelog_web/controllers/github_controller.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog_web/controllers/github_controller.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/github_controller.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule ChangelogWeb.GithubController do
use ChangelogWeb, :controller
alias Changelog.Github
require Logger
def event(conn, params) do
case get_req_header(conn, "x-github-event") do
["push"] -> push_event(conn, params)
[event] -> unsupported_event(conn, params, event)
end
end
defp... | 28.511111 | 105 | 0.678878 |
fff7f7f73b41aa2c73de2674d8ae6cfde9dfe1c1 | 5,740 | ex | Elixir | lib/glfw.ex | lafilipo/scenic_driver_glfw | 7d61e31c73ea3acc3ead98a9819630e73f47d57c | [
"Apache-2.0"
] | 27 | 2018-09-09T00:25:58.000Z | 2022-03-13T17:01:29.000Z | lib/glfw.ex | lafilipo/scenic_driver_glfw | 7d61e31c73ea3acc3ead98a9819630e73f47d57c | [
"Apache-2.0"
] | 26 | 2018-09-09T09:06:15.000Z | 2022-02-13T08:31:12.000Z | lib/glfw.ex | lafilipo/scenic_driver_glfw | 7d61e31c73ea3acc3ead98a9819630e73f47d57c | [
"Apache-2.0"
] | 22 | 2018-09-08T15:28:47.000Z | 2022-01-14T11:33:17.000Z | #
# Created by Boyd Multerer on 05/31/18.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
# sends data to a Glfw port app
#
defmodule Scenic.Driver.Glfw do
@moduledoc """
"""
use Scenic.ViewPort.Driver
alias Scenic.Cache
alias Scenic.Driver.Glfw
# import IEx
require Logger
@driver_e... | 28.557214 | 91 | 0.56324 |
fff814f5222033e912e41863d5f416fd1e927f75 | 12,870 | ex | Elixir | lib/mix/lib/mix/dep/converger.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep/converger.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/dep/converger.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | # This module is the one responsible for converging
# dependencies in a recursive fashion. This
# module and its functions are private to Mix.
defmodule Mix.Dep.Converger do
@moduledoc false
@doc """
Topologically sorts the given dependencies.
"""
def topological_sort(deps) do
graph = :digraph.new()
... | 33.603133 | 97 | 0.613598 |
fff834e7a5c7667be093df92978b2ecc4b524d22 | 2,036 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__person_detection_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__person_detection_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__person_detection_annotation.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.31746 | 161 | 0.742141 |
fff842285d8982cf60f0e3ffbeacfa8572449ab5 | 589 | exs | Elixir | test/kepler_web/live/page_live_test.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | test/kepler_web/live/page_live_test.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | test/kepler_web/live/page_live_test.exs | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | defmodule KeplerWeb.PageLiveTest do
use KeplerWeb.ConnCase
alias Kepler.Users.User
import Phoenix.LiveViewTest
setup %{conn: conn} do
# Add user to conn so we know we've got some authentication
user = %User{email: "test@example.com"}
conn = Pow.Plug.assign_current_user(conn, user, otp_app: :my_app... | 28.047619 | 69 | 0.697793 |
fff88f4c0ce68de1c58e270db4b11f1992daaa42 | 111,652 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/instances.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/instances.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/instances.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 49.272727 | 1,213 | 0.679549 |
fff8a6da43ddfaf6749ffcbb1fafe95f6312e284 | 987 | ex | Elixir | lib/ingram_marketplace/model/subscription.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | lib/ingram_marketplace/model/subscription.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | lib/ingram_marketplace/model/subscription.ex | fbettag/ingram_marketplace.ex | 1c63d391707058fb8cf58fdefd54e2ade97acf4b | [
"MIT"
] | null | null | null | defmodule Ingram.Marketplace.Model.Subscription do
@moduledoc """
The representation of a subscription created when an order to a product is processed.
"""
@derive [Poison.Encoder]
defstruct [
:id,
:customerId,
:status,
:renewalStatus,
:creationDate,
:renewalDate,
:lastModifiedDat... | 25.973684 | 87 | 0.622087 |
fff8c90b824bae97006c025542d8979ebd3dc9e0 | 523 | ex | Elixir | lib/lakeland/handler/supervisor.ex | nonsense2020/lakeland | f7f928562ef8f81193f07d80e5d5c79cc919422c | [
"MIT"
] | 3 | 2016-04-27T14:42:30.000Z | 2016-05-11T13:05:46.000Z | lib/lakeland/handler/supervisor.ex | lerencao/lakeland | f7f928562ef8f81193f07d80e5d5c79cc919422c | [
"MIT"
] | 5 | 2016-02-28T08:15:40.000Z | 2020-02-10T21:16:52.000Z | lib/lakeland/handler/supervisor.ex | nonsense2020/lakeland | f7f928562ef8f81193f07d80e5d5c79cc919422c | [
"MIT"
] | null | null | null | defmodule Lakeland.Handler.Supervisor do
use Supervisor
def start_link(handler, conn_type) do
Supervisor.start_link(__MODULE__, {handler, conn_type})
end
def init({handler, conn_type}) do
children = [
case conn_type do
:worker ->
worker(handler, [], restart: :temporary)
... | 21.791667 | 59 | 0.640535 |
fff91abf2d10075f16382ddf99b7986d00c38830 | 10,159 | exs | Elixir | lib/elixir/test/elixir/version_test.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/test/elixir/version_test.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/version_test.exs | IvanRublev/elixir | 1ce201aa1ebbfc1666c4e4bde64f706a89629d59 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule VersionTest do
use ExUnit.Case, async: true
doctest Version
alias Version.Parser
test "compare/2 with valid versions" do
assert Version.compare("1.0.1", "1.0.0") == :gt
assert Version.compare("1.1.0", "1.0.1") == :gt
assert Version.compare(... | 35.645614 | 93 | 0.534403 |
fff91af22c79888daf2a9990182e8bc91150b836 | 1,245 | ex | Elixir | lib/splitwise/oauth2/behaviour.ex | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | 3 | 2019-09-29T04:15:29.000Z | 2021-04-02T14:52:04.000Z | lib/splitwise/oauth2/behaviour.ex | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | null | null | null | lib/splitwise/oauth2/behaviour.ex | nathanbegbie/ex_splitwise | 6de8b9f59db9834b342b86dfcd5c41354f349e5d | [
"MIT"
] | 1 | 2022-02-22T15:32:16.000Z | 2022-02-22T15:32:16.000Z | defmodule ExSplitwise.OAuth2.Behaviour do
@moduledoc false
@type authorize_url :: binary
@type body :: any
@type client_id :: binary
@type client_secret :: binary
@type headers :: [{binary, binary}]
@type param :: binary | %{binary => param} | [param]
@type params :: %{binary => param} | Keyword.t()
... | 29.642857 | 54 | 0.608032 |
fff91f8e52e477129fb885912aa80a695a82231d | 1,816 | exs | Elixir | mix.exs | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | mix.exs | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | 8 | 2021-06-04T18:50:28.000Z | 2021-08-08T19:43:46.000Z | mix.exs | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | defmodule HexFlora.MixProject do
use Mix.Project
def project do
[
app: :hex_flora,
version: "0.1.0",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),... | 26.705882 | 84 | 0.57489 |
fff926ebce03856188158dde1ee1e92b29baa021 | 22,596 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/ssl_policies.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/api/ssl_policies.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/ssl_policies.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 "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 ... | 54.711864 | 414 | 0.667242 |
fff97456f4b36099f332147a4c542acfff79d3b0 | 6,528 | ex | Elixir | lib/kinesis_client/stream/shard/lease.ex | knocklabs/kcl_ex | d032744cb037cea351af1fad826923253bced2b4 | [
"Apache-2.0"
] | null | null | null | lib/kinesis_client/stream/shard/lease.ex | knocklabs/kcl_ex | d032744cb037cea351af1fad826923253bced2b4 | [
"Apache-2.0"
] | null | null | null | lib/kinesis_client/stream/shard/lease.ex | knocklabs/kcl_ex | d032744cb037cea351af1fad826923253bced2b4 | [
"Apache-2.0"
] | null | null | null | defmodule KinesisClient.Stream.Shard.Lease do
@moduledoc false
require Logger
use GenServer
alias KinesisClient.Stream.AppState
alias KinesisClient.Stream.AppState.ShardLease
alias KinesisClient.Stream.Shard.Pipeline
@default_renew_interval 30_000
# The amount of time that must have elapsed since the l... | 28.884956 | 101 | 0.643536 |
fff9d59ea07cb258a286dff597ee0e9585f74980 | 204 | exs | Elixir | ros/ros_ui_admin/test/ros_ui_admin_web/controllers/page_controller_test.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_admin/test/ros_ui_admin_web/controllers/page_controller_test.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_admin/test/ros_ui_admin_web/controllers/page_controller_test.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.AdminWeb.PageControllerTest do
use Ros.AdminWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.666667 | 60 | 0.676471 |
fff9d7a948b27ef5799df0028b36936e58d211d4 | 1,731 | ex | Elixir | apps/ui/lib/ui/pin.ex | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | apps/ui/lib/ui/pin.ex | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | apps/ui/lib/ui/pin.ex | joshuawscott/led_control | e7851442b70dfb9940d5bd81463cc05e619b4faa | [
"MIT"
] | null | null | null | defmodule Ui.Pin do
@moduledoc """
A Ui.Pin describes a physical pin on a device. This is mainly for displaying information
about the physical pins, not for controlling them (e.g. in the case of a GPIO pin.
"""
alias Ui.Pin
defmodule GPIO do
@type t :: %GPIO{}
defstruct [:gpio_number]
@spec d... | 23.08 | 90 | 0.647025 |
fff9ed8a62ccc58129297c305d8e62912a4401a5 | 195 | ex | Elixir | lib/pushex/apns.ex | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 69 | 2016-03-29T15:35:29.000Z | 2018-06-27T14:57:23.000Z | lib/pushex/apns.ex | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 9 | 2016-04-29T09:14:49.000Z | 2017-10-31T02:08:14.000Z | lib/pushex/apns.ex | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 6 | 2016-08-26T12:56:05.000Z | 2018-06-21T23:51:00.000Z | defmodule Pushex.APNS do
@moduledoc "This module defines types to work with APNS"
@type response :: {:ok, Pushex.APNS.Response} | {:error, atom}
@type request :: Pushex.APNS.Request.t
end
| 27.857143 | 64 | 0.712821 |
fff9f2ecb0f20a0129aea0f4bc3c022faf4b03e9 | 283 | exs | Elixir | test/tablestore_protos_test.exs | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | test/tablestore_protos_test.exs | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | test/tablestore_protos_test.exs | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | defmodule TablestoreProtosTest do
use ExUnit.Case
alias ExAliyunOts.TableStoreSearch.RowCountSort
test "encode with default enum" do
encoded = RowCountSort.encode!(%RowCountSort{order: :'SORT_ORDER_ASC'}) |> IO.iodata_to_binary()
assert encoded == <<8, 0>>
end
end
| 25.727273 | 100 | 0.742049 |
fff9fc8440983caf3be836f890ba77142451a38f | 1,360 | exs | Elixir | test/still/compiler/error_cache_test.exs | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 202 | 2021-01-13T15:45:17.000Z | 2022-03-22T01:26:27.000Z | test/still/compiler/error_cache_test.exs | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 55 | 2021-01-26T14:11:34.000Z | 2022-03-22T22:34:37.000Z | test/still/compiler/error_cache_test.exs | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 10 | 2021-02-04T21:14:41.000Z | 2022-03-20T10:12:59.000Z | defmodule Still.Compiler.ErrorCacheTest do
use Still.Case, async: true
alias Still.Compiler.{ErrorCache, PreprocessorError}
alias Still.SourceFile
describe "set/1" do
test "set an errors for the given" do
error = %PreprocessorError{
payload: :udnef,
kind: :error,
source_file:... | 24.727273 | 61 | 0.626471 |
fffa2a006f550a993345687d394051436c5aeca8 | 9,102 | ex | Elixir | lib/zaryn/mining/pending_transaction_validation.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/mining/pending_transaction_validation.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/mining/pending_transaction_validation.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.Mining.PendingTransactionValidation do
@moduledoc false
alias Zaryn.Contracts
alias Zaryn.Contracts.Contract
alias Zaryn.Crypto
alias Zaryn.Governance
alias Zaryn.Governance.Code.Proposal, as: CodeProposal
alias Zaryn.OracleChain
alias Zaryn.P2P
alias Zaryn.P2P.Message.FirstPublic... | 28.44375 | 100 | 0.626895 |
fffa2ba351d4d065ea9873a38eadd9b6b3817ff9 | 4,380 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/software_package.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/software_package.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/software_package.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... | 63.478261 | 301 | 0.74863 |
fffa2f26ae63a29aedd96ee513d4ac42d2d91808 | 810 | ex | Elixir | lib/hl7/2.4/datatypes/ppn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/ppn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/datatypes/ppn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.DataTypes.Ppn do
@moduledoc false
alias HL7.V2_4.{DataTypes}
use HL7.DataType,
fields: [
id_number_st: nil,
family_name: DataTypes.Fn,
given_name: nil,
second_and_further_given_names_or_initials_thereof: nil,
suffix_eg_jr_or_iii: nil,
prefix_eg_dr: nil,
... | 28.928571 | 62 | 0.708642 |
fffa3060ea838dfa175fc2f1d56a656b7ef493db | 4,933 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/presentation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/slides/lib/google_api/slides/v1/model/presentation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/slides/lib/google_api/slides/v1/model/presentation.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... | 69.478873 | 775 | 0.727144 |
fffa5c183717e26b9a721bdf161a1e1ee71a96d8 | 1,325 | ex | Elixir | test/support/conn_case.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | test/support/conn_case.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | test/support/conn_case.ex | nunocf/reason-react-exercise | b6e6920a596fe436b02a602282750456a7edbdea | [
"MIT"
] | null | null | null | defmodule ReasonReactExerciseWeb.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.
Fi... | 30.113636 | 81 | 0.741887 |
fffa6a70a8418d6d5c26fbeb0f136ec37dbe5b6f | 5,352 | ex | Elixir | lib/relay/resources/rds.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | lib/relay/resources/rds.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | lib/relay/resources/rds.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | defmodule Relay.Resources.RDS do
use LogWrapper, as: Log
@moduledoc """
Builds Envoy RouteConfiguration values from cluster resources.
"""
alias Relay.Resources.{AppEndpoint, Config}
alias Envoy.Api.V2.RouteConfiguration
alias Envoy.Api.V2.Route.{RedirectAction, Route, RouteAction, RouteMatch, VirtualHo... | 33.242236 | 89 | 0.700673 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.