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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74d7ece4d8db6f6bc921d35c9ce4de5a7e54ffad | 230 | ex | Elixir | lib/heroicons/solid.ex | bmalum/heroicons_elixir | d104591f006e70aae0b6f99b9ca0f6a03629412f | [
"MIT"
] | 1 | 2021-04-11T15:12:10.000Z | 2021-04-11T15:12:10.000Z | lib/heroicons/solid.ex | bmalum/heroicons_elixir | d104591f006e70aae0b6f99b9ca0f6a03629412f | [
"MIT"
] | null | null | null | lib/heroicons/solid.ex | bmalum/heroicons_elixir | d104591f006e70aae0b6f99b9ca0f6a03629412f | [
"MIT"
] | null | null | null | defmodule Heroicons.Solid do
@moduledoc """
Solid style icons drawn with fills.
For buttons, form elements, and to support text, designed to be rendered at 20x20.
"""
@icon_dir "solid/"
@before_compile Heroicons
end
| 20.909091 | 84 | 0.726087 |
74d803fa30b8cb0f60be159107192e078e82775a | 96 | exs | Elixir | basictypes/isfloat.exs | ezkemboi/elixir | 5641c8c9cc24b5e51546328b7fbba04d3b28e3b2 | [
"Apache-2.0"
] | 1 | 2020-01-21T19:58:41.000Z | 2020-01-21T19:58:41.000Z | basictypes/isfloat.exs | ezkemboi/elixir | 5641c8c9cc24b5e51546328b7fbba04d3b28e3b2 | [
"Apache-2.0"
] | null | null | null | basictypes/isfloat.exs | ezkemboi/elixir | 5641c8c9cc24b5e51546328b7fbba04d3b28e3b2 | [
"Apache-2.0"
] | null | null | null | # check is it is a float
IO.puts is_float(1.0) # return true
IO.puts is_float(01) # return false | 32 | 35 | 0.729167 |
74d81431641cafb939d2032f2e9bb91db9167c15 | 374 | ex | Elixir | web/views/error_view.ex | napcs/realtime_phoenix | 7aa5c5c6f9b474459d9550f3e80f5a1e5d5c07af | [
"MIT"
] | 3 | 2015-09-13T02:54:15.000Z | 2016-11-22T02:15:18.000Z | web/views/error_view.ex | napcs/realtime_phoenix | 7aa5c5c6f9b474459d9550f3e80f5a1e5d5c07af | [
"MIT"
] | null | null | null | web/views/error_view.ex | napcs/realtime_phoenix | 7aa5c5c6f9b474459d9550f3e80f5a1e5d5c07af | [
"MIT"
] | null | null | null | defmodule Typepad.ErrorView do
use Typepad.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template,... | 20.777778 | 47 | 0.697861 |
74d81608fa99f74e885674d1bbbe6ff21f3562b0 | 3,386 | exs | Elixir | test/chat_api_web/controllers/user_invitation_controller_test.exs | ezhao/papercups | c65333e479b4959c4c59bb7b66ab8cc2c5a8e268 | [
"MIT"
] | null | null | null | test/chat_api_web/controllers/user_invitation_controller_test.exs | ezhao/papercups | c65333e479b4959c4c59bb7b66ab8cc2c5a8e268 | [
"MIT"
] | null | null | null | test/chat_api_web/controllers/user_invitation_controller_test.exs | ezhao/papercups | c65333e479b4959c4c59bb7b66ab8cc2c5a8e268 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.UserInvitationControllerTest do
use ChatApiWeb.ConnCase
alias ChatApi.UserInvitations
alias ChatApi.UserInvitations.UserInvitation
alias ChatApi.Accounts
@invalid_attrs %{account_id: nil, expires_at: nil}
def fixture(:account) do
{:ok, account} = Accounts.create_account(%{company... | 35.642105 | 145 | 0.678086 |
74d8457e14d959d6837a1c5e935fbbad96abfdd4 | 3,248 | ex | Elixir | lib/mix/tasks/ecto.migrate.arango.ex | bodbdigr/arangox_ecto | 4c34c0b32a8f84a2fb9bb182f1e5571a4f436efb | [
"Apache-2.0"
] | 21 | 2020-09-04T07:52:29.000Z | 2022-03-30T11:21:20.000Z | lib/mix/tasks/ecto.migrate.arango.ex | bodbdigr/arangox_ecto | 4c34c0b32a8f84a2fb9bb182f1e5571a4f436efb | [
"Apache-2.0"
] | 13 | 2020-10-13T01:53:47.000Z | 2022-01-20T11:20:59.000Z | lib/mix/tasks/ecto.migrate.arango.ex | bodbdigr/arangox_ecto | 4c34c0b32a8f84a2fb9bb182f1e5571a4f436efb | [
"Apache-2.0"
] | 8 | 2020-10-12T12:57:01.000Z | 2022-01-19T21:25:02.000Z | defmodule Mix.Tasks.Ecto.Migrate.Arango do
@moduledoc """
Runs Migration/Rollback functions from migration modules
"""
use Mix.Task
import Mix.ArangoXEcto
@shortdoc "Runs Migration/Rollback functions from migration modules"
@aliases [
d: :dir
]
@switches [
dir: :string
]
@impl true
... | 21.090909 | 82 | 0.576047 |
74d84a239a42b8713bf39a09ed051d6c58b597a5 | 1,859 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | # 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 :<%= @web_app_name %>, <%= @endpoint_module %>,
# Binding to loopba... | 34.425926 | 84 | 0.648198 |
74d850b45ff10f85328af4ff28027cb401ecdbce | 1,461 | ex | Elixir | oidc_example/rp3/conf_heart.py.ex | kschu91/pyoidc | ae5702a8b2f13d5e7af173a58355cd738ec79a31 | [
"Apache-2.0"
] | 373 | 2017-03-08T21:37:03.000Z | 2022-03-24T13:37:23.000Z | oidc_example/rp3/conf_heart.py.ex | peppelinux/pyoidc | 2e751ed84039259a2b138148eae204c877518950 | [
"Apache-2.0"
] | 523 | 2017-03-02T17:03:12.000Z | 2022-03-24T18:34:51.000Z | oidc_example/rp3/conf_heart.py.ex | peppelinux/pyoidc | 2e751ed84039259a2b138148eae204c877518950 | [
"Apache-2.0"
] | 165 | 2017-03-02T16:54:42.000Z | 2022-02-26T18:34:00.000Z | BASE = "https://localhost"
#BASE = "https://130.239.200.165"
# If BASE is https these has to be specified
SERVER_CERT = "certs/server.crt"
SERVER_KEY = "certs/server.key"
CA_BUNDLE = None
CERT_CHAIN = None
VERIFY_SSL = False
# information used when registering the client, this may be the same for all OPs
ME = {
... | 24.762712 | 80 | 0.614648 |
74d85141ef4c439b3a989aa65a1a7f548d23f262 | 4,813 | ex | Elixir | lib/nerves/erlinit.ex | amclain/nerves | 054e9b378d33280a4cf2eb30937d6137e95d6acf | [
"Apache-2.0"
] | 1,944 | 2016-01-25T14:04:50.000Z | 2022-03-30T13:25:53.000Z | lib/nerves/erlinit.ex | amclain/nerves | 054e9b378d33280a4cf2eb30937d6137e95d6acf | [
"Apache-2.0"
] | 397 | 2016-05-19T21:17:51.000Z | 2022-03-30T18:02:49.000Z | lib/nerves/erlinit.ex | LaudateCorpus1/nerves | 2028efffc184cefb2616c49446828ef93c92db58 | [
"Apache-2.0"
] | 191 | 2016-01-30T01:56:25.000Z | 2022-03-30T17:58:57.000Z | defmodule Nerves.Erlinit do
@moduledoc """
Decode and encode erlinit.config files
This module is used to decode, merge, and encode multiple erlinit.config
files.
"""
@switches [
boot: :string,
ctty: :string,
uniqueid_exec: :string,
env: :keep,
gid: :integer,
graceful_shutdown_timeo... | 25.067708 | 88 | 0.586121 |
74d851cac79dda8c1cb3e23d96e610ff719f08d2 | 3,636 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/model/customer.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/model/customer.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/model/customer.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... | 52.695652 | 357 | 0.737899 |
74d8613c34d7b78a83aa7b4f46970ba6fc1abe12 | 364 | exs | Elixir | priv/repo/migrations/20180610174353_add_note.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180610174353_add_note.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180610174353_add_note.exs | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.Repo.Migrations.AddNote do
use Ecto.Migration
def change do
create table(:notes) do
add(:content, :string, null: false)
add(:dashboard_id, references(:dashboards, on_delete: :delete_all, on_replace: :delete))
timestamps()
end
alter table(:dashboards) do
add... | 21.411765 | 94 | 0.678571 |
74d8635f706fa4c67b740a09098b1bb07a9d7504 | 1,728 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/composite_filter.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/composite_filter.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1/model/composite_filter.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.56 | 157 | 0.728009 |
74d8641893f09f2136caf0a9914eaa99053e076e | 1,654 | ex | Elixir | lib/identity_oidc_web.ex | 18F/identity-oidc-phoenix | 36d8e12db31a38308d72b8095f135f48fc6a1eed | [
"CC0-1.0"
] | 7 | 2018-10-02T13:00:03.000Z | 2021-04-16T23:58:23.000Z | lib/identity_oidc_web.ex | 18F/identity-oidc-phoenix | 36d8e12db31a38308d72b8095f135f48fc6a1eed | [
"CC0-1.0"
] | null | null | null | lib/identity_oidc_web.ex | 18F/identity-oidc-phoenix | 36d8e12db31a38308d72b8095f135f48fc6a1eed | [
"CC0-1.0"
] | 1 | 2021-02-04T11:13:42.000Z | 2021-02-04T11:13:42.000Z | defmodule IdentityOidcWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use IdentityOidcWeb, :controller
use IdentityOidcWeb, :view
The definitions below will be executed for every view,... | 23.971014 | 69 | 0.70133 |
74d8960c512e1d1d688a5924dca4027bf23de4cd | 1,182 | ex | Elixir | mindcrunch/phoenix/lib/mindcrunch_web/channels/user_socket.ex | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | null | null | null | mindcrunch/phoenix/lib/mindcrunch_web/channels/user_socket.ex | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | null | null | null | mindcrunch/phoenix/lib/mindcrunch_web/channels/user_socket.ex | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | null | null | null | defmodule MindcrunchWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", MindcrunchWeb.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... | 31.105263 | 85 | 0.705584 |
74d8b7def0e06cf9c0649240303c082b666ef099 | 3,363 | ex | Elixir | lib/surface/macro_component.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | lib/surface/macro_component.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | lib/surface/macro_component.ex | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | defmodule Surface.MacroComponent do
@moduledoc """
A low-level component which is responsible for translating its own
content at compile time.
"""
alias Surface.Translator.IOHelper
defmacro __using__(_) do
quote do
use Surface.BaseComponent, translator: __MODULE__
use Surface.API, include:... | 28.74359 | 98 | 0.656259 |
74d8bd66517eb8006af24749cb04b367e28e4e6c | 1,068 | ex | Elixir | lib/credo/check/readability/trailing_white_space.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/check/readability/trailing_white_space.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/check/readability/trailing_white_space.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Readability.TrailingWhiteSpace do
@moduledoc """
There should be no white-space (i.e. tabs, spaces) at the end of a line.
"""
@explanation [check: @moduledoc]
use Credo.Check, base_priority: :low
def run(%SourceFile{lines: lines} = source_file, params \\ []) do
issue_meta = Issu... | 30.514286 | 79 | 0.668539 |
74d8d653c8189b53c6391c3c4d48db3e3acb8ea8 | 4,813 | exs | Elixir | apps/local_ledger/test/local_ledger/transaction_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/test/local_ledger/transaction_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/test/local_ledger/transaction_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | defmodule LocalLedger.TransactionTest do
use ExUnit.Case
import LocalLedgerDB.Factory
alias Ecto.Adapters.SQL.Sandbox
alias LocalLedger.Transaction
alias LocalLedgerDB.{Repo, Entry, Errors.InsufficientFundsError}
alias Ecto.UUID
setup do
:ok = Sandbox.checkout(Repo)
end
describe "#build_all" do
... | 32.965753 | 96 | 0.624143 |
74d8dc03e4f37ec6cdcd9021ed7944b160a79d78 | 6,396 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_query_result.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_query_result.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_query_result.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... | 63.326733 | 531 | 0.743746 |
74d904076a136bf4a38f5011173dd7cb2e6a1631 | 1,772 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/teardown_tag.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/teardown_tag.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/teardown_tag.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 34.745098 | 208 | 0.742099 |
74d91d64c09f4465f1715dac4983958cad9ebcc6 | 242 | ex | Elixir | lib/club/empty/supervisor.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | lib/club/empty/supervisor.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | lib/club/empty/supervisor.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.Empty.Supervisor do
use Supervisor
def start_link(_opts \\ []) do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init(_arg) do
Supervisor.init([],
strategy: :one_for_one
)
end
end
| 17.285714 | 59 | 0.669421 |
74d94a93948cfe0bbe4f0690bc4af4a219595a85 | 819 | exs | Elixir | samples/client/petstore/elixir/mix.exs | chowmean/openapi-generator | b67318ef218fd2cbd80dcc194223c6d6e39feb55 | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/mix.exs | chowmean/openapi-generator | b67318ef218fd2cbd80dcc194223c6d6e39feb55 | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/mix.exs | chowmean/openapi-generator | b67318ef218fd2cbd80dcc194223c6d6e39feb55 | [
"Apache-2.0"
] | null | null | null | defmodule OpenapiPetstore.Mixfile do
use Mix.Project
def project do
[app: :openapi_petstore,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help co... | 22.135135 | 79 | 0.606838 |
74d952a219b45bbe541dfa7f260db4136a0e2c3d | 166 | exs | Elixir | priv/repo/migrations/20160523040927_add_color_to_guitars.exs | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20160523040927_add_color_to_guitars.exs | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20160523040927_add_color_to_guitars.exs | jeredm/guitars | 7e0e1d58220c5220b3b8abae2a2edca928f2db36 | [
"Apache-2.0"
] | null | null | null | defmodule Guitars.Repo.Migrations.AddColorToGuitars do
use Ecto.Migration
def change do
alter table(:guitars) do
add :color, :string
end
end
end
| 16.6 | 54 | 0.710843 |
74d982e439413cea2671feea0898a6f72091241e | 6,942 | exs | Elixir | lib/mix/test/mix/tasks/app.start_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/app.start_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/app.start_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.App.StartTest do
use MixTest.Case
defmodule AppStartSample do
def project do
[app: :app_start_sample, version: "0.1.0", start_permanent: true]
end
def application do
[applications: [:logger]]
end
end
defmodule... | 29.415254 | 145 | 0.638289 |
74d9a239e58885ec1902f81a2204e9d3abeb551f | 631 | exs | Elixir | lib/ch01/math.exs | rzcastilho/book_metaprogramming_elixir | d1d4d35cda0608baed1625364b61c2ed880927d6 | [
"MIT"
] | null | null | null | lib/ch01/math.exs | rzcastilho/book_metaprogramming_elixir | d1d4d35cda0608baed1625364b61c2ed880927d6 | [
"MIT"
] | null | null | null | lib/ch01/math.exs | rzcastilho/book_metaprogramming_elixir | d1d4d35cda0608baed1625364b61c2ed880927d6 | [
"MIT"
] | null | null | null | defmodule Math do
@moduledoc """
Macros receive the AST representation of the arguments we pass to them
"""
# {:+, [context: Elixir, import: Kernel], [5, 2]}
defmacro say({:+, _, [lhs, rhs]}) do
quote do
lhs = unquote(lhs)
rhs = unquote(rhs)
result = lhs + rhs
IO.puts "#{lhs} plus... | 22.535714 | 72 | 0.543582 |
74d9b13c22e66c3576a7cc0f525574c1002cb577 | 1,222 | exs | Elixir | mix.exs | vinsol/worldly | 4be21c31526946197405388543e70d06c172315d | [
"Apache-2.0"
] | 7 | 2016-07-05T01:08:38.000Z | 2021-02-04T00:20:08.000Z | mix.exs | vinsol/worldly | 4be21c31526946197405388543e70d06c172315d | [
"Apache-2.0"
] | 2 | 2016-07-19T10:13:55.000Z | 2017-06-26T04:33:16.000Z | mix.exs | vinsol/worldly | 4be21c31526946197405388543e70d06c172315d | [
"Apache-2.0"
] | 4 | 2016-07-05T01:13:53.000Z | 2017-06-02T15:19:07.000Z | defmodule Worldly.Mixfile do
use Mix.Project
def project do
[app: :worldly,
version: "0.1.2",
description: description(),
package: package(),
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the ... | 24.938776 | 83 | 0.60802 |
74d9c38df092e185ad6a22c91bf56ab63eb1040c | 72 | exs | Elixir | test/views/page_view_test.exs | mskog/Upfeed | 34fad85cbf7c0c7b0a7d0238c312b29edb61b1d1 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | mskog/Upfeed | 34fad85cbf7c0c7b0a7d0238c312b29edb61b1d1 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | mskog/Upfeed | 34fad85cbf7c0c7b0a7d0238c312b29edb61b1d1 | [
"MIT"
] | null | null | null | defmodule Upfeed.PageViewTest do
use Upfeed.ConnCase, async: true
end
| 18 | 34 | 0.805556 |
74d9d0938ce1ab006e276ed1d9c684caf9e6f654 | 20,794 | exs | Elixir | test/dnsimple/domains_test.exs | patmaddox/dnsimple-elixir | 99e7d178493e7900c3a89dd4d99d81597ed58020 | [
"MIT"
] | null | null | null | test/dnsimple/domains_test.exs | patmaddox/dnsimple-elixir | 99e7d178493e7900c3a89dd4d99d81597ed58020 | [
"MIT"
] | null | null | null | test/dnsimple/domains_test.exs | patmaddox/dnsimple-elixir | 99e7d178493e7900c3a89dd4d99d81597ed58020 | [
"MIT"
] | null | null | null | defmodule Dnsimple.DomainsTest do
use TestCase, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
@module Dnsimple.Domains
@client %Dnsimple.Client{access_token: "i-am-a-token", base_url: "https://api.dnsimple.test"}
@account_id 1010
setup do
ExVCR.Config.cassette_library_dir("test/fixtures/... | 40.220503 | 147 | 0.665192 |
74d9dc7a301a00dfb5c3818e0112d5397aca3f7b | 422 | exs | Elixir | mix.exs | swalker90/elixir-io_tty | a77807d0b0f42e7d74db882b533c9c62bf82eca3 | [
"Apache-2.0"
] | 3 | 2017-07-09T12:36:06.000Z | 2020-03-24T22:20:45.000Z | mix.exs | swalker90/elixir-io_tty | a77807d0b0f42e7d74db882b533c9c62bf82eca3 | [
"Apache-2.0"
] | null | null | null | mix.exs | swalker90/elixir-io_tty | a77807d0b0f42e7d74db882b533c9c62bf82eca3 | [
"Apache-2.0"
] | null | null | null | defmodule IOTty.Mixfile do
use Mix.Project
def project do
[app: :io_tty,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test],
deps: deps()]
end
... | 18.347826 | 43 | 0.590047 |
74da18447fb651aa856a6f2f41fc24df4d1b458e | 1,480 | exs | Elixir | apps/re/test/units/units_test.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/test/units/units_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/test/units/units_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.UnitsTest do
@moduledoc false
use Re.ModelCase
alias Re.{
Developments.JobQueue,
Unit,
Units
}
import Re.CustomAssertion
import Re.Factory
@unit_attrs %{
complement: "201",
price: 500_000,
property_tax: 5_000.0,
maintenance_fee: 500.0,
floor: "2",
rooms... | 22.424242 | 81 | 0.665541 |
74da2ebdb5c87474420a38100e9071e4e240f58e | 786 | exs | Elixir | test/channels/my_time_channel_test.exs | wsmoak/elm_time | 1f12d8d3267c88a1323a8e5fbae722e1fb392e81 | [
"MIT"
] | 2 | 2016-03-08T05:26:58.000Z | 2016-05-03T15:54:19.000Z | test/channels/my_time_channel_test.exs | wsmoak/elm_time | 1f12d8d3267c88a1323a8e5fbae722e1fb392e81 | [
"MIT"
] | null | null | null | test/channels/my_time_channel_test.exs | wsmoak/elm_time | 1f12d8d3267c88a1323a8e5fbae722e1fb392e81 | [
"MIT"
] | null | null | null | defmodule ElmTime.MyTimeChannelTest do
use ElmTime.ChannelCase
alias ElmTime.MyTimeChannel
setup do
{:ok, _, socket} =
socket("user_id", %{some: :assign})
|> subscribe_and_join(MyTimeChannel, "times:lobby")
{:ok, socket: socket}
end
test "ping replies with status ok", %{socket: socket}... | 27.103448 | 66 | 0.629771 |
74da3b5d6f4549de8d2812154882bdd5a6cda4e6 | 1,678 | ex | Elixir | apps/interface/lib/interface_web/endpoint.ex | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"MIT"
] | null | null | null | apps/interface/lib/interface_web/endpoint.ex | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"MIT"
] | null | null | null | apps/interface/lib/interface_web/endpoint.ex | jeremy-miller/life-elixir | 5c9396b187279110dc8da38a5070023d1ed02955 | [
"MIT"
] | null | null | null | defmodule InterfaceWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :interface
socket "/socket", InterfaceWeb.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 Pl... | 28.931034 | 95 | 0.709774 |
74da3c3eef5bd339016f4b48361f5d64b6f966b5 | 739 | exs | Elixir | mix.exs | elasticdog/lexibomb-elixir | e69ebf571b7021af8b03d00e1099b07b3d6b2a42 | [
"0BSD"
] | 2 | 2016-03-10T23:41:02.000Z | 2021-01-20T04:40:39.000Z | mix.exs | elasticdog/lexibomb-elixir | e69ebf571b7021af8b03d00e1099b07b3d6b2a42 | [
"0BSD"
] | 1 | 2015-07-19T06:27:44.000Z | 2015-07-19T06:27:44.000Z | mix.exs | elasticdog/lexibomb-elixir | e69ebf571b7021af8b03d00e1099b07b3d6b2a42 | [
"0BSD"
] | 1 | 2016-09-28T18:09:56.000Z | 2016-09-28T18:09:56.000Z | defmodule Lexibomb.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: ... | 23.83871 | 77 | 0.592693 |
74da536857609ca506bc8981a07d12d9d52e471a | 3,412 | exs | Elixir | test/integration/querying_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 3 | 2020-03-09T14:28:52.000Z | 2021-06-27T13:29:27.000Z | test/integration/querying_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 15 | 2019-12-25T23:31:02.000Z | 2020-02-21T16:45:11.000Z | test/integration/querying_test.exs | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | null | null | null | defmodule Integration.QueryingTest do
use ExUnit.Case, async: false
import ExCypher
alias ExCypher.Support.Server
setup_all do
Server.start_link()
end
setup do
Server.query("MATCH (n) DETACH DELETE n")
:ok
end
@moduletag integration: true
describe "querying stuff in neo4j" do
test... | 28.672269 | 95 | 0.502638 |
74da5458532c59c601a3aeedbef5eeb1a1fa6022 | 1,116 | exs | Elixir | mix.exs | qstream/cloudfront-signer | 515dafb4408a85439aa56a5deccd6cf17def2e11 | [
"MIT"
] | null | null | null | mix.exs | qstream/cloudfront-signer | 515dafb4408a85439aa56a5deccd6cf17def2e11 | [
"MIT"
] | 1 | 2022-01-31T15:05:07.000Z | 2022-01-31T15:05:07.000Z | mix.exs | qstream/cloudfront-signer | 515dafb4408a85439aa56a5deccd6cf17def2e11 | [
"MIT"
] | null | null | null | defmodule CloudfrontSigner.MixProject do
use Mix.Project
def project do
[
app: :cloudfront_signer,
version: "0.3.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
package: package(),
description: description(),
deps: deps(),
elixirc_paths: elixirc_paths... | 22.77551 | 76 | 0.59767 |
74da86cfeb0cdb503e57d86694d4c327745a63ab | 2,917 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/folder.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/folder.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/folder.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... | 38.381579 | 123 | 0.677751 |
74dab82c306d3ad2f79ec94193c565b353e7060a | 15,035 | exs | Elixir | lib/iex/test/iex/autocomplete_test.exs | gsarwate/elixir | df65074a8143cebec810dfb91cafa43f19dcdbaf | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/autocomplete_test.exs | gsarwate/elixir | df65074a8143cebec810dfb91cafa43f19dcdbaf | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/autocomplete_test.exs | gsarwate/elixir | df65074a8143cebec810dfb91cafa43f19dcdbaf | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule IEx.AutocompleteTest do
use ExUnit.Case, async: true
setup do
evaluator = IEx.Server.start_evaluator([])
Process.put(:evaluator, evaluator)
:ok
end
defp eval(line) do
ExUnit.CaptureIO.capture_io(fn ->
evaluator = Process.get(:ev... | 34.248292 | 95 | 0.572398 |
74dabde1251db6d5d99c8d20e6aa8561e27aab3b | 643 | exs | Elixir | test/email_checker/check/format_test.exs | hippware/email_checker | 4c09ef76cc5194b209b86e46f88a0cdaa955d61a | [
"MIT"
] | null | null | null | test/email_checker/check/format_test.exs | hippware/email_checker | 4c09ef76cc5194b209b86e46f88a0cdaa955d61a | [
"MIT"
] | null | null | null | test/email_checker/check/format_test.exs | hippware/email_checker | 4c09ef76cc5194b209b86e46f88a0cdaa955d61a | [
"MIT"
] | 1 | 2021-07-02T21:40:14.000Z | 2021-07-02T21:40:14.000Z | defmodule EmailChecker.Check.FormatTest do
use ExUnit.Case
doctest EmailChecker.Check.Format
describe "valid?" do
test "a valid email format returns true" do
assert true == EmailChecker.Check.Format.valid?("user@domain.com")
assert true == EmailChecker.Check.Format.valid?("user+addition@domain.co... | 35.722222 | 86 | 0.716952 |
74dabf40ce3b5690e39e00f5497219356dc1b17e | 1,662 | ex | Elixir | lib/loggex/logger_backend.ex | IanLuites/loggex | 95f67812006bd3fe248f785987c9fed00cbd11ed | [
"MIT"
] | 1 | 2020-01-12T03:40:43.000Z | 2020-01-12T03:40:43.000Z | lib/loggex/logger_backend.ex | IanLuites/loggex | 95f67812006bd3fe248f785987c9fed00cbd11ed | [
"MIT"
] | null | null | null | lib/loggex/logger_backend.ex | IanLuites/loggex | 95f67812006bd3fe248f785987c9fed00cbd11ed | [
"MIT"
] | null | null | null | defmodule Loggex.LoggerBackend do
@moduledoc ~S"""
Hook to pickup events from logger backend.
"""
@meta ~w(pid file line module function application)a
@behaviour :gen_event
@impl :gen_event
def init(__MODULE__) do
{:ok, :no_state}
end
@impl :gen_event
def handle_event(:flush, state), do: {:ok,... | 22.767123 | 90 | 0.606498 |
74dafca6a6993a108434c4ec1eb73fd512740ee7 | 1,066 | ex | Elixir | test/support/conn_case.ex | lulabad/murky | 8cf7b24c7d36c3b035da05cc289dac957e95e3d7 | [
"MIT"
] | 6 | 2020-08-17T18:49:15.000Z | 2021-11-21T08:22:06.000Z | test/support/conn_case.ex | lulabad/murky | 8cf7b24c7d36c3b035da05cc289dac957e95e3d7 | [
"MIT"
] | 5 | 2020-09-22T16:46:38.000Z | 2021-12-19T18:04:19.000Z | test/support/conn_case.ex | lulabad/murky | 8cf7b24c7d36c3b035da05cc289dac957e95e3d7 | [
"MIT"
] | 2 | 2021-11-22T20:12:11.000Z | 2021-12-19T18:12:01.000Z | defmodule MurkyWeb.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 the ... | 28.052632 | 60 | 0.731707 |
74db30c1d72e2dda75d58b90b77cadd74d97ce82 | 968 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 37.230769 | 77 | 0.765496 |
74db345e31f5365980379ccaeb3fc63bb7cfbfe0 | 2,898 | ex | Elixir | lib/brando/blueprint/migrations/operations/relation/add.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/blueprint/migrations/operations/relation/add.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/blueprint/migrations/operations/relation/add.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Blueprint.Migrations.Operations.Relation.Add do
# import Brando.Blueprint.Migrations.Types
defstruct relation: nil,
module: nil,
opts: nil
def up(%{
relation: %{type: :belongs_to, name: name, opts: %{module: referenced_module} = opts}
}) do
referenced_t... | 20.7 | 110 | 0.544168 |
74db66263297857deda11875605eb2ddb7cb6da4 | 620 | exs | Elixir | config/test.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | null | null | null | config/test.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | config/test.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | use Mix.Config
# Configure your database
config :rumbl, Rumbl.Repo,
username: "postgres",
password: "postgres",
database: "rumbl_test",
hostname: "pgsql-db",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :rumbl, Rumb... | 21.37931 | 56 | 0.724194 |
74db7299dd295438545724225ff0d2ada67093e9 | 587 | ex | Elixir | lib/survey_api_web/controllers/fallback_controller.ex | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 6 | 2020-02-04T16:18:30.000Z | 2020-10-31T06:00:03.000Z | lib/survey_api_web/controllers/fallback_controller.ex | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 114 | 2019-11-14T03:48:17.000Z | 2022-03-17T12:38:14.000Z | lib/survey_api_web/controllers/fallback_controller.ex | kamidev/survey_ap | 483314842cf2e8279e1224e83b57d61a5da143ad | [
"MIT"
] | 1 | 2021-07-08T01:48:56.000Z | 2021-07-08T01:48:56.000Z | defmodule SurveyAPIWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use SurveyAPIWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_s... | 26.681818 | 72 | 0.703578 |
74db74dfc183104ee5358d3b73e2cc665d4add00 | 3,086 | exs | Elixir | test/controllers/auth_controller_test.exs | notactuallypagemcconnell/remote_retro | 972e24ee3d7132a1646473ebb3b6b2fda4d6bf2e | [
"MIT"
] | null | null | null | test/controllers/auth_controller_test.exs | notactuallypagemcconnell/remote_retro | 972e24ee3d7132a1646473ebb3b6b2fda4d6bf2e | [
"MIT"
] | null | null | null | test/controllers/auth_controller_test.exs | notactuallypagemcconnell/remote_retro | 972e24ee3d7132a1646473ebb3b6b2fda4d6bf2e | [
"MIT"
] | null | null | null | defmodule RemoteRetro.AuthControllerTest do
use RemoteRetroWeb.ConnCase, async: true
alias RemoteRetro.User
import ShorterMaps
setup context do
if desired_endpoint = context[:desired_endpoint_on_session] do
%{conn: get(context[:conn], desired_endpoint)}
else
context
end
end
test "... | 31.814433 | 118 | 0.686973 |
74db8295286d64775a7de6e559be73915782e5b2 | 1,630 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_localization.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_localization.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_localization.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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.960784 | 102 | 0.73865 |
74dba5f71d4048d4706c3ec7beab7df812433745 | 332 | ex | Elixir | lib/surface/type_handler/atom.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 1,161 | 2019-12-12T02:30:52.000Z | 2021-03-11T17:55:44.000Z | lib/surface/type_handler/atom.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 248 | 2021-03-12T07:39:37.000Z | 2022-03-31T13:36:44.000Z | lib/surface/type_handler/atom.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 73 | 2019-12-12T13:57:41.000Z | 2021-03-11T21:46:10.000Z | defmodule Surface.TypeHandler.Atom do
@moduledoc false
use Surface.TypeHandler
def literal_to_ast_node(_name, _type, _value, _meta) do
:error
end
@impl true
def expr_to_value([value], []) when is_atom(value) do
{:ok, value}
end
def expr_to_value(clauses, opts) do
{:error, clauses ++ opts... | 17.473684 | 57 | 0.689759 |
74dbc6280fd25de20831d06754cdbccda7503e7f | 1,989 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.78 | 282 | 0.744595 |
74dc0f044602ebf79b137b227e084ade3bba8df8 | 1,710 | ex | Elixir | plain-planner/elixir/lib/plain_web/controllers/goal_controller.ex | danielmarreirosdeoliveira/prototypes | 047a7d0cae84b31213c06b45304e41a18e0678cb | [
"Apache-2.0"
] | null | null | null | plain-planner/elixir/lib/plain_web/controllers/goal_controller.ex | danielmarreirosdeoliveira/prototypes | 047a7d0cae84b31213c06b45304e41a18e0678cb | [
"Apache-2.0"
] | 1 | 2020-05-10T13:37:43.000Z | 2020-05-10T13:37:43.000Z | plain-planner/elixir/lib/plain_web/controllers/goal_controller.ex | danielmarreirosdeoliveira/prototypes | 047a7d0cae84b31213c06b45304e41a18e0678cb | [
"Apache-2.0"
] | null | null | null | defmodule PlainWeb.GoalController do
use PlainWeb, :controller
alias Plain.Planning
alias Plain.Planning.Goal
def index(conn, _params) do
goals = Planning.list_goals()
render(conn, "index.html", goals: goals)
end
def new(conn, _params) do
changeset = Planning.change_goal(%Goal{})
render(c... | 27.142857 | 67 | 0.625146 |
74dc135eb98b6cab622c4ee33b200a5debc387a1 | 7,396 | ex | Elixir | clients/games/lib/google_api/games/v1/api/events.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/events.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/events.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 42.022727 | 224 | 0.689697 |
74dc2a0c86b87c9bf0b5b0b4653bc7a25a64e486 | 664 | ex | Elixir | lib/rest/static.ex | aeturnum/syslogreader | c7d602db93e6b2c435860403c63b2e181dc4f3c5 | [
"MIT"
] | null | null | null | lib/rest/static.ex | aeturnum/syslogreader | c7d602db93e6b2c435860403c63b2e181dc4f3c5 | [
"MIT"
] | null | null | null | lib/rest/static.ex | aeturnum/syslogreader | c7d602db93e6b2c435860403c63b2e181dc4f3c5 | [
"MIT"
] | null | null | null | defmodule Syslogreader.REST.Static do
@moduledoc """
Helper methods to serve static files.
"""
alias Syslogreader.REST.Headers
@static_root [File.cwd!(), "priv"]
def static(conn, path: []) do
resp_static(conn, Path.join(@static_root ++ ["index.html"]))
end
def static(conn, path: paths) do
res... | 22.896552 | 64 | 0.635542 |
74dc3c4bba0c38df0a5c4ccee2fe8c0dc11e8189 | 277 | ex | Elixir | test/support/templates.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | test/support/templates.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | test/support/templates.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContacts.TestTemplates do
@moduledoc """
Renders test fixture templates allowing for interpolation of test data
"""
use Phoenix.Template, root: "test/fixtures/templates"
def render(template, assigns) do
render_template(template, assigns)
end
end
| 23.083333 | 72 | 0.758123 |
74dc3ccd17225f404a315336119bb49640020dd6 | 925 | ex | Elixir | test/support/channel_case.ex | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | frpaulas/welp | 377c244bd5dd219bfdf3724c5706a3a328817dc4 | [
"MIT"
] | null | null | null | defmodule WelpWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts with ... | 24.342105 | 66 | 0.712432 |
74dc4c2dada42fd1c1be9ef46c93928c459fd323 | 3,835 | ex | Elixir | lib/cometoid_web/issue_live/person/forms/form_component.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | lib/cometoid_web/issue_live/person/forms/form_component.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | lib/cometoid_web/issue_live/person/forms/form_component.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | defmodule CometoidWeb.IssueLive.Person.Modals.FormComponent do
use CometoidWeb, :live_component
alias Cometoid.Repo.Tracker
alias Cometoid.Repo.People
import CometoidWeb.DateHelpers
import CometoidWeb.DateFormHelpers
@impl true
def update %{ person: person } = assigns, socket do
changeset = People.... | 28.407407 | 95 | 0.66884 |
74dc6260abbf0b79b9313fc57e824f8f12968bb5 | 626 | ex | Elixir | lib/amrita_web/router.ex | u3paka/Amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | null | null | null | lib/amrita_web/router.ex | u3paka/Amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | 2 | 2020-07-17T08:34:44.000Z | 2021-03-09T08:33:47.000Z | lib/amrita_web/router.ex | u3paka/amrita | de2c566d856fd75925a4dfec58c28c2484c29d5d | [
"Apache-2.0"
] | null | null | null | defmodule AmritaWeb.Router do
use AmritaWeb, :router
import Phoenix.LiveView.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug Phoenix.LiveView.Flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug... | 20.193548 | 47 | 0.672524 |
74dc77547a5230700de47c4c92af5deba480d4a8 | 1,312 | ex | Elixir | lib/mbanking/accounts/services/create_user_account.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | lib/mbanking/accounts/services/create_user_account.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | lib/mbanking/accounts/services/create_user_account.ex | kadmohardy/mbanking | 42a45f78956eac95597e72ade10cb0291ed5aa76 | [
"MIT"
] | null | null | null | defmodule Mbanking.Accounts.Services.CreateUserAccount do
@moduledoc false
alias Mbanking.Accounts.Repositories.AccountRepository
alias Mbanking.Accounts.Services.Shared.ParamsParse
def execute(user_params) do
referral_code = user_params["referral_code"]
cpf = user_params["cpf"]
user = AccountRepo... | 28.521739 | 79 | 0.686738 |
74dc8c9d174211e12a6adbc972ac9e3fc3c408f4 | 2,904 | ex | Elixir | test/support/live_views/components.ex | jonatanklosko/phoenix_live_view | 95d5c7ccd0ac66e04b15c7b6128d44b60767e682 | [
"MIT"
] | 1 | 2021-04-22T16:40:32.000Z | 2021-04-22T16:40:32.000Z | test/support/live_views/components.ex | jonatanklosko/phoenix_live_view | 95d5c7ccd0ac66e04b15c7b6128d44b60767e682 | [
"MIT"
] | null | null | null | test/support/live_views/components.ex | jonatanklosko/phoenix_live_view | 95d5c7ccd0ac66e04b15c7b6128d44b60767e682 | [
"MIT"
] | 1 | 2021-01-14T12:58:22.000Z | 2021-01-14T12:58:22.000Z | defmodule Phoenix.LiveViewTest.StatefulComponent do
use Phoenix.LiveComponent
def mount(socket) do
{:ok, assign(socket, name: "unknown", dup_name: nil)}
end
def update(assigns, socket) do
if from = assigns[:from] do
send(from, {:updated, assigns})
end
{:ok, assign(socket, assigns)}
en... | 26.162162 | 98 | 0.599518 |
74dc9787e23f7d6c6a439749de7cb236351e24c0 | 884 | ex | Elixir | clients/translate/lib/google_api/translate/v3/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/translate/lib/google_api/translate/v3/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/translate/lib/google_api/translate/v3/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # 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... | 32.740741 | 74 | 0.75905 |
74dcc6346209e5bcd6dd1c65b1a401e09ff23c3e | 9,203 | exs | Elixir | components/notifications-service/server/test/service_test.exs | oscar123mendoza/automate | b4c8f4e636bf82e453f684fff88fdc5d9253c0c5 | [
"Apache-2.0"
] | 4 | 2019-10-24T05:59:51.000Z | 2021-08-16T15:17:27.000Z | components/notifications-service/server/test/service_test.exs | oscar123mendoza/automate | b4c8f4e636bf82e453f684fff88fdc5d9253c0c5 | [
"Apache-2.0"
] | null | null | null | components/notifications-service/server/test/service_test.exs | oscar123mendoza/automate | b4c8f4e636bf82e453f684fff88fdc5d9253c0c5 | [
"Apache-2.0"
] | null | null | null | defmodule ServiceTest do
use ExUnit.Case
import Mock
alias Notifications.{Service, Dispatcher, CCRFailure, Event, Rule, Data,
URLValidationRequest, URLValidationResponse, UsernamePassword,
SecretId, Empty}
alias Notifications.{RuleListResponse, RuleAddResponse, Rul... | 37.872428 | 108 | 0.621971 |
74dcd76f60c524a049c107d68acfd1fcb1f97519 | 5,737 | exs | Elixir | live_view_studio/priv/repo/seeds.exs | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | live_view_studio/priv/repo/seeds.exs | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | live_view_studio/priv/repo/seeds.exs | herminiotorres/pragmaticstudio | 273647694519fd4149716abf190eb8d97102f488 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# LiveViewStudio.Repo.insert!(%LiveViewStudio.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on... | 18.506452 | 63 | 0.624542 |
74dd0fd91b545e992814cb24e6c9b48b29fe2b72 | 605 | ex | Elixir | lib/anchore_engine_api_server/model/vulnerability_reference.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/vulnerability_reference.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/vulnerability_reference.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | 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 AnchoreEngineAPIServer.Model.VulnerabilityReference do
@moduledoc """
An external link/reference
"""
@derive [Poison.Encoder]
defstruct... | 20.166667 | 83 | 0.694215 |
74dd18711e50cb4f6e3b06b339cd4d478954016e | 1,890 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/person_urls.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/person_urls.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/person_urls.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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... | 35 | 384 | 0.706878 |
74dd1ffbff10863ba255fda742896c6f6e015de3 | 1,987 | ex | Elixir | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_structure_parent_relation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_structure_parent_relation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_structure_parent_relation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.127273 | 189 | 0.743332 |
74dd2a57411c6e3e738d63af8a9f05fd329c9381 | 62 | exs | Elixir | config/test.exs | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | config/test.exs | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | config/test.exs | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | use Mix.Config
config :visa_checkout_elixir,
sandbox: true
| 12.4 | 29 | 0.790323 |
74dd2ee3f629936e3b82e920d3836f661a22dd1a | 1,386 | exs | Elixir | mix.exs | appodeal/clickhouse_ecto | bc963d3f53bf4264e6fa2b7345c7e3c3dc49d6ee | [
"Apache-2.0"
] | 35 | 2018-04-02T07:00:30.000Z | 2020-08-30T19:23:40.000Z | mix.exs | appodeal/clickhouse_ecto | bc963d3f53bf4264e6fa2b7345c7e3c3dc49d6ee | [
"Apache-2.0"
] | 13 | 2018-04-13T11:14:07.000Z | 2020-07-23T10:06:02.000Z | mix.exs | appodeal/clickhouse_ecto | bc963d3f53bf4264e6fa2b7345c7e3c3dc49d6ee | [
"Apache-2.0"
] | 18 | 2018-04-12T09:40:49.000Z | 2020-08-03T07:58:22.000Z | defmodule ClickhouseEcto.Mixfile do
use Mix.Project
def project do
[
app: :clickhouse_ecto,
version: "0.3.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/clic... | 23.1 | 82 | 0.574315 |
74dd378bd249293cfe61c9e6fc2144f85f6ebcd1 | 2,697 | ex | Elixir | lib/stripe/connect/fee_refund.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | lib/stripe/connect/fee_refund.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | lib/stripe/connect/fee_refund.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.FeeRefund do
@moduledoc """
Work with Stripe Connect application fees refund.
Stripe API reference: https://stripe.com/docs/api#fee_refunds
"""
use Stripe.Entity
import Stripe.Request
@type t :: %__MODULE__{
id: Stripe.id(),
object: String.t(),
amount: int... | 26.97 | 98 | 0.556544 |
74dd795c10df30d0ab069a7cfb3ace4d3d9b8f0c | 345 | exs | Elixir | priv/repo/seeds.exs | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 4 | 2020-03-22T22:12:29.000Z | 2020-07-01T22:32:01.000Z | priv/repo/seeds.exs | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2021-03-10T11:53:41.000Z | 2021-10-17T11:18:54.000Z | priv/repo/seeds.exs | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2020-03-30T19:03:23.000Z | 2022-01-17T20:21:42.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Vega.Repo.insert!(%Vega.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail ... | 28.75 | 61 | 0.701449 |
74dd99ce55acfd0475f7c8a27bd04d141e857b65 | 32,852 | exs | Elixir | lib/elixir/test/elixir/kernel/warning_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.WarningTest do
use ExUnit.Case
import ExUnit.CaptureIO
defp capture_err(fun) do
capture_io(:stderr, fun)
end
test "outdented heredoc" do
output =
capture_err(fn ->
Code.eval_string("""
'''
outdented
... | 26.260592 | 120 | 0.483106 |
74dda997b3414c6d59a429b97cf3fb65e4ec0cb0 | 454 | exs | Elixir | test/watermelon_test.exs | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | null | null | null | test/watermelon_test.exs | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | 70 | 2020-01-07T01:21:38.000Z | 2021-06-18T02:57:39.000Z | test/watermelon_test.exs | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | null | null | null | defmodule TestWatermelon do
use ExUnit.Case
import Watermelon, only: [divide: 1]
test "simple cases" do
assert divide(4) == true
assert divide(1) == false
assert divide(2) == false
assert divide(5) == false
assert divide(88) == true
assert divide(100) == true
assert divide(67) == fal... | 22.7 | 38 | 0.634361 |
74ddb96072c7a3ff5cda7e6081a393c2d4d405e2 | 4,097 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/import_product_sets_gcs_source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/import_product_sets_gcs_source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/import_product_sets_gcs_source.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... | 37.935185 | 111 | 0.707103 |
74ddbce9d04874c9bb3775fbef3671174e1b8f49 | 595 | ex | Elixir | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/repo.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 54 | 2018-01-24T00:22:57.000Z | 2019-01-15T20:03:52.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/repo.ex | infinitered/mithril | 0bbad29f86c63d9a827dcaaf6fed78a176ab90d7 | [
"MIT"
] | 3 | 2018-02-05T18:00:39.000Z | 2018-05-04T00:05:20.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/lib/$PROJECT_NAME$/repo.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 3 | 2019-07-12T11:16:42.000Z | 2020-06-08T15:03:36.000Z | <% MixTemplates.ignore_file_unless(assigns[:ecto] != nil) %>
defmodule <%= @project_name_camel_case %>.Repo do
# This Repo is private to <%= @project_name_camel_case %> and MUST NOT be used
# outside this application. (Including in tests) Use the public
# API of the domains instead.
@moduledoc false
use Ect... | 31.315789 | 80 | 0.705882 |
74ddc5f936571ca2b086355af705ccec29f127d4 | 19,764 | exs | Elixir | test/ex_doc/language/elixir_test.exs | Qizot/ex_doc | 69b589d1011ee0ed5ed7890e170cab1480181bf0 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,206 | 2015-01-02T02:05:12.000Z | 2022-03-29T17:18:10.000Z | test/ex_doc/language/elixir_test.exs | Qizot/ex_doc | 69b589d1011ee0ed5ed7890e170cab1480181bf0 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,266 | 2015-01-03T03:26:04.000Z | 2022-03-31T09:43:53.000Z | test/ex_doc/language/elixir_test.exs | Qizot/ex_doc | 69b589d1011ee0ed5ed7890e170cab1480181bf0 | [
"Apache-2.0",
"CC-BY-4.0"
] | 300 | 2015-01-03T04:07:24.000Z | 2022-03-29T08:10:56.000Z | defmodule ExDoc.Language.ElixirTest do
use ExUnit.Case, async: true
doctest ExDoc.Autolink
import ExUnit.CaptureIO
defp sigil_m(text, []) do
[{:p, _, [ast], _}] = ExDoc.Markdown.to_ast(text, [])
ast
end
setup do
ExDoc.Refs.clear()
:ok
end
describe "autolink_doc/2" do
test "elixir ... | 37.150376 | 260 | 0.565473 |
74ddcbd9f23a80afd331f745d9266ddeb01db14f | 1,888 | exs | Elixir | mix.exs | des75/opentelemetry_phoenix | 704c53a8894e1a66a9f20eac20997a39deebfb34 | [
"Apache-2.0"
] | null | null | null | mix.exs | des75/opentelemetry_phoenix | 704c53a8894e1a66a9f20eac20997a39deebfb34 | [
"Apache-2.0"
] | null | null | null | mix.exs | des75/opentelemetry_phoenix | 704c53a8894e1a66a9f20eac20997a39deebfb34 | [
"Apache-2.0"
] | null | null | null | defmodule OpentelemetryPhoenix.MixProject do
use Mix.Project
def project do
[
app: :opentelemetry_phoenix,
description: description(),
version: "0.2.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
dialyzer: [
plt_add_apps: [:ex_unit, :mix],
plt_co... | 27.764706 | 121 | 0.595869 |
74ddd6fd457de9a95904ee1a769b8b9cd4e4c4ec | 726 | ex | Elixir | lib/chat_api_web/controllers/reporting_controller.ex | sbacarob/papercups | 1a04e9d3a2833b379a3aaaabaae960247c081542 | [
"MIT"
] | 1 | 2020-10-02T18:33:47.000Z | 2020-10-02T18:33:47.000Z | lib/chat_api_web/controllers/reporting_controller.ex | kingshalaby1/papercups | 8d59b2ee4a22dd29df42fb771e02db14e14dee68 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/reporting_controller.ex | kingshalaby1/papercups | 8d59b2ee4a22dd29df42fb771e02db14e14dee68 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.ReportingController do
use ChatApiWeb, :controller
require Logger
alias ChatApi.Reporting
action_fallback ChatApiWeb.FallbackController
@spec index(Plug.Conn.t(), map()) :: Plug.Conn.t()
def index(%{assigns: %{current_user: %{account_id: account_id}}} = conn, %{
"from_date" ... | 27.923077 | 80 | 0.674931 |
74dddd20b127e9e7baad83dceac13fdcdff0783d | 1,278 | ex | Elixir | src/elixir/irc/lib/storage.ex | fmi-unibuc/iclp | 771541a768ddbfba15fa083df2f128e87a84b567 | [
"MIT"
] | null | null | null | src/elixir/irc/lib/storage.ex | fmi-unibuc/iclp | 771541a768ddbfba15fa083df2f128e87a84b567 | [
"MIT"
] | null | null | null | src/elixir/irc/lib/storage.ex | fmi-unibuc/iclp | 771541a768ddbfba15fa083df2f128e87a84b567 | [
"MIT"
] | null | null | null | defmodule Storage do
@moduledoc """
An actor wraping a map
"""
@doc """
Main loop for Storage
"""
use Agent
@doc """
Starts a new Storage service
"""
def start_link(opts \\ []) do
Agent.start_link(fn -> %{} end, opts)
end
@doc """
Assigns a value to key; returns :not_ok if key alread... | 20.285714 | 64 | 0.612676 |
74de00fc6eac17d65cd53bdeaa5e8dd680c23df7 | 2,475 | ex | Elixir | server/lib/events_app/users.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | null | null | null | server/lib/events_app/users.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | null | null | null | server/lib/events_app/users.ex | kylesmith-1/blazeneu | 83cb68b8112bac8d51c9f92e709720d7e7ba1472 | [
"MIT"
] | 1 | 2021-04-10T18:37:30.000Z | 2021-04-10T18:37:30.000Z | defmodule CompanyTest.Users do
@moduledoc """
The Users context.
"""
import Ecto.Query, warn: false
alias CompanyTest.Repo
alias CompanyTest.Users.User
@doc """
Returns the list of users.
## Examples
iex> list_users()
[%User{}, ...]
"""
def list_users do
Repo.all(User)
|>... | 17.934783 | 163 | 0.577778 |
74de0f1af1df83ada17fc43ea994f87963ee3649 | 1,115 | exs | Elixir | tooling/pbt/config/config.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | tooling/pbt/config/config.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | tooling/pbt/config/config.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.749776 |
74de2f7096f20673946e245b7a5cb0bd5917c0b6 | 7,231 | ex | Elixir | lib/oli_web/live/products/payments/discounts/show_view.ex | argos-education/oli-torus | cff73a277f80c8071217a074d9d8b650a9c068e5 | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/live/products/payments/discounts/show_view.ex | argos-education/oli-torus | cff73a277f80c8071217a074d9d8b650a9c068e5 | [
"MIT"
] | 1 | 2022-03-25T13:46:08.000Z | 2022-03-25T16:06:44.000Z | lib/oli_web/live/products/payments/discounts/show_view.ex | marc-hughes/oli-torus-1 | aa3c9bb2d91b678a365be839761eaf86c60ee35c | [
"MIT"
] | null | null | null | defmodule OliWeb.Products.Payments.Discounts.ShowView do
use Surface.LiveView, layout: {OliWeb.LayoutView, "live.html"}
alias Oli.Delivery.{Paywall, Sections}
alias Oli.Delivery.Paywall.Discount
alias Oli.Delivery.Sections.Section
alias Oli.Institutions
alias Oli.Institutions.Institution
alias OliWeb.Com... | 35.79703 | 157 | 0.647352 |
74de32ba928ddd315d13519d53ac4f8e7ae3b7f9 | 3,331 | ex | Elixir | app/test/noodl_web/views/session_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/test/noodl_web/views/session_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/test/noodl_web/views/session_view.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.SessionViewTest do
use NoodlWeb.ConnCase, async: true
import Noodl.Factory
alias Noodl.Events
alias Noodl.Repo
alias NoodlWeb.SessionView
describe "too_early?/2" do
test "false if it's not 30 minutes before current time" do
now = Timex.now()
session = insert(:session, s... | 32.028846 | 97 | 0.673071 |
74de60cb7fd74a08c83980350ec1a43c955a0d30 | 248 | ex | Elixir | lib/hl7/2.5/datatypes/osp.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/datatypes/osp.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/datatypes/osp.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.DataTypes.Osp do
@moduledoc false
alias HL7.V2_5.{DataTypes}
use HL7.DataType,
fields: [
occurrence_span_code: DataTypes.Cne,
occurrence_span_start_date: nil,
occurrence_span_stop_date: nil
]
end
| 20.666667 | 42 | 0.71371 |
74de6aa791787c3305d54a8cd97d40bb1ed17d03 | 15,181 | ex | Elixir | lib/grpc/stub.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | lib/grpc/stub.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | lib/grpc/stub.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | defmodule GRPC.Stub do
@moduledoc """
A module acting as the interface for gRPC client.
You can do everything in the client side via `GRPC.Stub`, including connecting,
sending/receiving steaming or non-steaming requests, canceling calls and so on.
A service is needed to define a stub:
defmodule Greet... | 30.301397 | 99 | 0.6271 |
74de710f8a5b88c88212b1ccef4e300b8d72c34f | 1,674 | ex | Elixir | lib/packets/basic_stat.ex | JayPeet/McQueryEx | 0beee833de53e2e8b1f41cc8af69124bb4a97edc | [
"MIT"
] | null | null | null | lib/packets/basic_stat.ex | JayPeet/McQueryEx | 0beee833de53e2e8b1f41cc8af69124bb4a97edc | [
"MIT"
] | null | null | null | lib/packets/basic_stat.ex | JayPeet/McQueryEx | 0beee833de53e2e8b1f41cc8af69124bb4a97edc | [
"MIT"
] | null | null | null | defmodule McQueryEx.BasicStat do
@moduledoc """
McQueryEx.BasicStat creates BasicStat requests, and decodes BasicStat responses into a struct.
"""
defstruct(
motd: "",
game_type: "SMP",
map: "",
num_players: 0,
max_players: 20,
host_port: 0,
host_ip: ""
)
@typedoc """
Encapsul... | 24.617647 | 114 | 0.610514 |
74de7a262665d64124da62f793d2befd3fe4848a | 810 | exs | Elixir | test/type/fetch_spec/atoms_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/fetch_spec/atoms_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/fetch_spec/atoms_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | defmodule TypeTest.Type.FetchSpec.AtomsTest do
use ExUnit.Case, async: true
import Type, only: :macros
import Type.Operators
import TypeTest.SpecCase
@moduletag :fetch
@source TypeTest.SpecExample.Atoms
test "literal atoms" do
assert {:ok, identity_for(:literal)} == Type.fetch_spec(@source, :liter... | 25.3125 | 93 | 0.688889 |
74de9db0c845159192517e8f03337159c9b99752 | 3,015 | ex | Elixir | lib/spotify/models/albums/albums.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/albums/albums.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/albums/albums.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | defmodule Spotify.Albums do
@moduledoc """
For manipulating albums.
[Spotify Docs](https://beta.developer.spotify.com/documentation/web-api/reference/albums/)
"""
alias Spotify.Albums.AlbumFull
alias Spotify.Artists.ArtistSimple
alias Spotify.Tracks.TrackSimple
alias Spotify.Pagings.Paging
alias... | 25.550847 | 119 | 0.656716 |
74deb97e724bd4df9f4b3fca01faacee0905c828 | 2,457 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/claim_device_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/claim_device_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/claim_device_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.875 | 186 | 0.749288 |
74dec36865f7c9580f79f0034b1bc08c3d8ce9dc | 2,237 | ex | Elixir | lib/console/api_keys/api_key.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console/api_keys/api_key.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console/api_keys/api_key.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.ApiKeys.ApiKey do
use Ecto.Schema
import Ecto.Changeset
alias Console.Helpers
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "api_keys" do
field :role, :string
field :name, :string
field :key, :binary
field :token, :string
field ... | 29.434211 | 140 | 0.650425 |
74dec64c2ad99035705e24b6ce0e52db7d7d6d81 | 150 | exs | Elixir | test/mpesa_elixir_test.exs | johninvictus/mpesa_elixir | 1c4715c247ae05805cd4aae2497af5e7c2eea289 | [
"Apache-2.0"
] | 11 | 2018-04-10T15:27:54.000Z | 2020-12-04T07:48:52.000Z | test/mpesa_elixir_test.exs | johninvictus/mpesa_elixir | 1c4715c247ae05805cd4aae2497af5e7c2eea289 | [
"Apache-2.0"
] | 1 | 2020-05-22T05:13:25.000Z | 2020-05-22T05:13:39.000Z | test/mpesa_elixir_test.exs | johninvictus/mpesa_elixir | 1c4715c247ae05805cd4aae2497af5e7c2eea289 | [
"Apache-2.0"
] | 7 | 2018-05-09T20:31:44.000Z | 2020-11-08T15:21:27.000Z | defmodule MpesaElixirTest do
use ExUnit.Case
doctest MpesaElixir
test "greets the world" do
assert MpesaElixir.hello() == :world
end
end
| 16.666667 | 40 | 0.733333 |
74ded5a02f9c8644c9cf0c69b6e571309e03c86e | 4,054 | ex | Elixir | clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/file/lib/google_api/file/v1/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.316456 | 868 | 0.76221 |
74deec04cc9d6771e2afb9e62c367408a40efdaa | 2,762 | ex | Elixir | clients/people/lib/google_api/people/v1/model/im_client.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/im_client.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/im_client.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... | 34.525 | 143 | 0.666908 |
74df0ab441dd73b328a8da60f4d7e9235bea4a0e | 2,676 | ex | Elixir | lib/game/npc/actions.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/npc/actions.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/npc/actions.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.NPC.Actions do
@moduledoc """
Handles processing actions for an event, including delaying them
"""
alias Data.Events
alias Game.NPC.Actions
alias Game.Skills
@doc """
Delay a batch of actions from an event
"""
def delay([]), do: :ok
def delay([action | actions]) do
Process.se... | 26.235294 | 95 | 0.683483 |
74df380b3127b97c6709131e608edbdb2c5954b2 | 7,194 | ex | Elixir | lib/mnesia_versioning/tasks/install.ex | kimidesu/MnesiaVersioning | fa7b01c9117e448b0cf9d38b5245c27a87e25c7d | [
"MIT"
] | 1 | 2020-06-10T05:44:08.000Z | 2020-06-10T05:44:08.000Z | lib/mnesia_versioning/tasks/install.ex | kimidesu/MnesiaVersioning | fa7b01c9117e448b0cf9d38b5245c27a87e25c7d | [
"MIT"
] | null | null | null | lib/mnesia_versioning/tasks/install.ex | kimidesu/MnesiaVersioning | fa7b01c9117e448b0cf9d38b5245c27a87e25c7d | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings <keith.brings@noizu.com>
# Copyright (C) 2017 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.MnesiaVersioning.Tasks.Install do
... | 44.134969 | 237 | 0.626911 |
74df777536bd5fc0502e4a8026cc7a3f6e9f3ec8 | 953 | ex | Elixir | test/support/channel_case.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | test/support/channel_case.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | test/support/channel_case.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | defmodule SquarestoreWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interact... | 25.078947 | 73 | 0.720881 |
74df8b9ce3fc5884b20df3514005622958679d5d | 851 | ex | Elixir | lib/prismic/types/prismic/text.ex | SolaceClub/prismic | 29841a3c76a20f444d7cf576ac0f39bf7096afa4 | [
"Apache-2.0"
] | null | null | null | lib/prismic/types/prismic/text.ex | SolaceClub/prismic | 29841a3c76a20f444d7cf576ac0f39bf7096afa4 | [
"Apache-2.0"
] | null | null | null | lib/prismic/types/prismic/text.ex | SolaceClub/prismic | 29841a3c76a20f444d7cf576ac0f39bf7096afa4 | [
"Apache-2.0"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings <keith.brings@noizu.com>
# Copyright (C) 2016 Solace Club, LLC. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Solace.Prismic.Types.Prismic.Text do
... | 25.787879 | 80 | 0.551116 |
74df974772981b53029cc859e86179044d5acd06 | 1,400 | exs | Elixir | exercises/queen-attack/example.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | exercises/queen-attack/example.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | exercises/queen-attack/example.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | defmodule Queens do
@type t :: %Queens{ white: {integer, integer}, black: {integer, integer} }
defstruct white: {0, 3}, black: {7, 3}
@doc """
Creates a new set of Queens
"""
@spec new() :: Queens.t()
@spec new({integer, integer}, {integer, integer}) :: Queens.t()
def new(same, same), do: raise Argumen... | 25.454545 | 76 | 0.611429 |
74df9f3844a632249af8cc974ef54fda39c22c81 | 2,416 | ex | Elixir | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/date.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/date.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/date.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... | 45.584906 | 590 | 0.710679 |
74dfacebedba172af122a2b8116067c85fc8d352 | 2,820 | ex | Elixir | lib/socket/presence.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/socket/presence.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/socket/presence.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | defmodule Socket.Presence do
@moduledoc """
Track online presence of games
"""
use GenServer
alias GrapevineData.Games.Game
alias Socket.Presence.Client
alias Socket.Presence.Notices
alias Socket.Presence.Server
@ets_key :grapevine_presence
@record_statistics_tick 15 * 60 * 1000
@type support... | 24.310345 | 89 | 0.671277 |
74e029705bdd94ae2c681e7a1388182fe79eb959 | 3,048 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_browse_carousel_card_browse_carousel_card_item.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_v2_intent_message_browse_carousel_card_browse_carousel_card_item.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_v2_intent_message_browse_carousel_card_browse_carousel_card_item.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... | 41.189189 | 216 | 0.745079 |
74e02afbdf8ab489ac7d95132800905c922f9d19 | 727 | ex | Elixir | lib/automata/core/control/composite_supervisor.ex | pcmarks/automata | 2872c4ded9200e7cbf78a360517511be1375fb0b | [
"Apache-2.0"
] | null | null | null | lib/automata/core/control/composite_supervisor.ex | pcmarks/automata | 2872c4ded9200e7cbf78a360517511be1375fb0b | [
"Apache-2.0"
] | null | null | null | lib/automata/core/control/composite_supervisor.ex | pcmarks/automata | 2872c4ded9200e7cbf78a360517511be1375fb0b | [
"Apache-2.0"
] | null | null | null | defmodule Automaton.CompositeSupervisor do
use DynamicSupervisor
def start_link([composite_server, {_, _, _} = mfa, name]) do
DynamicSupervisor.start_link(__MODULE__, [composite_server, mfa, name],
name: :"#{name}CompositeSupervisor"
)
end
def init([composite_server, {m, _f, a}, name]) do
Pr... | 22.71875 | 75 | 0.646492 |
74e03558146e50dcc0929537fc5cac33070265d6 | 980 | ex | Elixir | Chapter08/apps/elixir_drip_web/lib/elixir_drip_web/notifications/notifications.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter08/apps/elixir_drip_web/lib/elixir_drip_web/notifications/notifications.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter08/apps/elixir_drip_web/lib/elixir_drip_web/notifications/notifications.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDripWeb.Notifications do
use GenServer
import ElixirDripWeb.Router.Helpers, only: [file_path: 3]
alias ElixirDripWeb.Endpoint
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
{:ok, []}
end
def notify(:upload, file_name, user_id) do... | 28.823529 | 132 | 0.687755 |
74e0565b8b780bee981886d832af621c959af02d | 5,205 | ex | Elixir | lib/elixir_google_spreadsheets/client.ex | rmalecki/elixir_google_spreadsheets | baf0033fd5cb0937bc3e655a66a710f0122b913e | [
"MIT"
] | null | null | null | lib/elixir_google_spreadsheets/client.ex | rmalecki/elixir_google_spreadsheets | baf0033fd5cb0937bc3e655a66a710f0122b913e | [
"MIT"
] | null | null | null | lib/elixir_google_spreadsheets/client.ex | rmalecki/elixir_google_spreadsheets | baf0033fd5cb0937bc3e655a66a710f0122b913e | [
"MIT"
] | null | null | null | defmodule GSS.Client do
@moduledoc """
Model of Client abstraction
This process is a Producer for this GenStage pipeline.
"""
use GenStage
require Logger
defmodule RequestParams do
@type t :: %__MODULE__{
method: atom(),
url: binary(),
body: HTTP... | 35.168919 | 139 | 0.607685 |
74e066f729f2ded2c695380219f5d186247408c2 | 2,389 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/date.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/date.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/date.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... | 45.075472 | 567 | 0.712851 |
74e06d5a289ea7495aad485c76bf21ec842faa49 | 2,217 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_response_message_mixed_audio_segment.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_response_message_mixed_audio_segment.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_response_message_mixed_audio_segment.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.224138 | 231 | 0.741092 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.