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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6506c4e070f1373a44d165daad8738ec5c1e64ab | 5,136 | ex | Elixir | test/support/celery_script/test_sys_calls.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | test/support/celery_script/test_sys_calls.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | test/support/celery_script/test_sys_calls.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | defmodule Farmbot.TestSupport.CeleryScript.TestSysCalls do
@moduledoc """
Stub implementation of CeleryScript SysCalls
"""
@behaviour FarmbotCeleryScript.SysCalls
use GenServer
def checkout do
case GenServer.start_link(__MODULE__, [], name: __MODULE__) do
{:error, {:already_started, pid}} ->
... | 18.084507 | 75 | 0.630646 |
6506db4769e3cfc11b5c94d97a99f4b2c2251895 | 929 | ex | Elixir | lib/parallel.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | lib/parallel.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | lib/parallel.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule Parallel do
@spec map(Enumerable.t(), (Enum.element() -> any())) :: list()
def map(enum, fun) do
Task.async_stream(
enum,
fun,
timeout: :infinity
)
|> Enum.map(&elem(&1, 1))
end
@spec flat_map(Enumerable.t(), (Enum.element() -> Enumerable.t())) :: list()
def flat_map(e... | 21.604651 | 78 | 0.565124 |
6506db7c026dd8e427594a69b987d8a8f3c3714d | 351 | exs | Elixir | priv/repo/migrations/20200818163835_create_authors.exs | noahjames404/elixir-pheonix-framework | c1587709d67ef7c9bad247d4fe4ec80e23e4041b | [
"MIT"
] | null | null | null | priv/repo/migrations/20200818163835_create_authors.exs | noahjames404/elixir-pheonix-framework | c1587709d67ef7c9bad247d4fe4ec80e23e4041b | [
"MIT"
] | null | null | null | priv/repo/migrations/20200818163835_create_authors.exs | noahjames404/elixir-pheonix-framework | c1587709d67ef7c9bad247d4fe4ec80e23e4041b | [
"MIT"
] | null | null | null | defmodule Hello.Repo.Migrations.CreateAuthors do
use Ecto.Migration
def change do
create table(:authors) do
add :bio, :text
add :role, :string
add :genre, :string
add :user_id, references(:users, on_delete: :delete_all), null: false
timestamps()
end
create unique_index(:... | 20.647059 | 75 | 0.65812 |
6506eab8f47b129b8c13302265597d440c73968a | 3,455 | exs | Elixir | test/central/helpers/schema_helper_test.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | test/central/helpers/schema_helper_test.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | test/central/helpers/schema_helper_test.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Central.Helpers.SchemaHelperTest do
use Central.DataCase, async: true
alias Central.Helpers.SchemaHelper
# test "test currency" do
# params = %{"a" => "132.34"}
# names = [:a]
# result = SchemaHelper.parse_currency(params, names)
# assert result == %{"a" => Decimal.new("132.34")}
# ... | 25.977444 | 98 | 0.444573 |
6506fcec7ce8c5c8b6dd68364ef536ac8ee82300 | 8,310 | ex | Elixir | lib/finch.ex | mrjoelkemp/finch | 2a6fd203dc5b3d2b93d92cd4d3c23bd3ba7d3b85 | [
"MIT"
] | null | null | null | lib/finch.ex | mrjoelkemp/finch | 2a6fd203dc5b3d2b93d92cd4d3c23bd3ba7d3b85 | [
"MIT"
] | null | null | null | lib/finch.ex | mrjoelkemp/finch | 2a6fd203dc5b3d2b93d92cd4d3c23bd3ba7d3b85 | [
"MIT"
] | null | null | null | defmodule Finch do
@external_resource "README.md"
@moduledoc "README.md"
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
alias Finch.{PoolManager, Request, Response}
use Supervisor
@default_pool_size 10
@default_pool_count 1
@pool_config_schem... | 32.84585 | 259 | 0.648496 |
65070f244119a090321d3bbca87e3dac424b8ee1 | 2,661 | ex | Elixir | lib/thesis/api_controller.ex | werkzeugh/thesis-phoenix | 0292a46d5e2f1e49f60d2770d0813fa79b225e22 | [
"MIT"
] | null | null | null | lib/thesis/api_controller.ex | werkzeugh/thesis-phoenix | 0292a46d5e2f1e49f60d2770d0813fa79b225e22 | [
"MIT"
] | null | null | null | lib/thesis/api_controller.ex | werkzeugh/thesis-phoenix | 0292a46d5e2f1e49f60d2770d0813fa79b225e22 | [
"MIT"
] | null | null | null | defmodule Thesis.ApiController do
@moduledoc false
use Phoenix.Controller
import Thesis.Config
alias Thesis.{Utilities, Backup}
plug(:ensure_authorized! when not (action in [:show_file]))
def assets(conn, _params), do: conn
def update(conn, %{"contents" => contents, "page" => page}) do
page = page... | 26.088235 | 78 | 0.608042 |
65073d08034324df7b916ab6bdf0eed10e8aed04 | 1,017 | ex | Elixir | lib/dialyxir/warnings/pattern_match.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/pattern_match.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/pattern_match.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | defmodule Dialyxir.Warnings.PatternMatch do
@behaviour Dialyxir.Warning
@impl Dialyxir.Warning
@spec warning() :: :pattern_match
def warning(), do: :pattern_match
@impl Dialyxir.Warning
@spec format_short([String.t()]) :: String.t()
def format_short(_) do
"The pattern can never match the type."
en... | 19.941176 | 69 | 0.647984 |
65078e856b1fb3ef725a0e8550dc07746bb1cae0 | 205 | exs | Elixir | config/dev.exs | silathdiir/rat_error | eff3b46db28071814b91c623729bbd951bbf6cfa | [
"MIT"
] | 3 | 2017-10-10T10:38:38.000Z | 2018-03-15T01:57:34.000Z | config/dev.exs | silathdiir/rat_error | eff3b46db28071814b91c623729bbd951bbf6cfa | [
"MIT"
] | null | null | null | config/dev.exs | silathdiir/rat_error | eff3b46db28071814b91c623729bbd951bbf6cfa | [
"MIT"
] | 1 | 2017-10-10T10:39:17.000Z | 2017-10-10T10:39:17.000Z | use Mix.Config
config :rat_error, RatError.Structure,
node: :error,
keys: %{
code: :code,
file: :file,
function: :function,
line: :line,
message: :message,
module: :module
}
| 15.769231 | 38 | 0.6 |
6507a16e2a26c4fb00f2c18e3b8d9c96dc67852c | 5,129 | ex | Elixir | apps/graphql/lib/graphql/schema/reimbursement/innm_dosage_types.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/lib/graphql/schema/reimbursement/innm_dosage_types.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/lib/graphql/schema/reimbursement/innm_dosage_types.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.Schema.INNMDosageTypes do
@moduledoc false
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
import Absinthe.Resolution.Helpers, only: [dataloader: 1]
import GraphQL.Resolvers.Helpers.Load, only: [load_by_args: 2]
alias Absinthe.Relay.Node.ParseIDs
alias Core.Me... | 30.170588 | 95 | 0.700526 |
6507a668bf1b2861240d5abd0bf4176f0151b062 | 1,795 | ex | Elixir | apps/asf_bo_web/lib/asf_bo_web/telemetry.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | apps/asf_bo_web/lib/asf_bo_web/telemetry.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | apps/asf_bo_web/lib/asf_bo_web/telemetry.ex | LazarRistic/asf | 2c557f06839a129b35174142c91f60696be2fa89 | [
"MIT"
] | null | null | null | defmodule AsfBOWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn mo... | 32.053571 | 86 | 0.667409 |
6507a9445ab00a6acfc25dd59c8d237d15faaffc | 242 | exs | Elixir | config/config.exs | utrustdev/ex_uphold | 6d871cbb148c93baf544a299766d7152d39a22eb | [
"MIT"
] | 2 | 2020-06-15T18:23:40.000Z | 2020-06-15T18:23:53.000Z | config/config.exs | utrustdev/ex_uphold | 6d871cbb148c93baf544a299766d7152d39a22eb | [
"MIT"
] | null | null | null | config/config.exs | utrustdev/ex_uphold | 6d871cbb148c93baf544a299766d7152d39a22eb | [
"MIT"
] | 1 | 2020-10-24T21:23:12.000Z | 2020-10-24T21:23:12.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :tesla, adapter: {Tesla.Adapter.Hackney, recv_timeout: 30_000}
import_config "#{Mix.env()}.exs"
| 30.25 | 69 | 0.772727 |
6507d07b5f138fb30abc855625d7149e720375ee | 171 | exs | Elixir | priv/repo/migrations/20160509171951_remove_enforcing_from_commands.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | priv/repo/migrations/20160509171951_remove_enforcing_from_commands.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | priv/repo/migrations/20160509171951_remove_enforcing_from_commands.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Repo.Migrations.RemoveEnforcingFromCommands do
use Ecto.Migration
def change do
alter table(:commands) do
remove :enforcing
end
end
end
| 17.1 | 60 | 0.736842 |
6507ed0c1c77315e5650b8621124da34e20537b6 | 977 | exs | Elixir | test/wechat/datacube_test.exs | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | test/wechat/datacube_test.exs | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | test/wechat/datacube_test.exs | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | defmodule Wechat.DatacubeTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias Wechat.Datacube
test "all function was defined" do
funcs = ~W(
get_user_summary
get_user_cumulate
get_article_summary
get_article_total
get_user_read
get_user_read_hour... | 23.261905 | 71 | 0.712385 |
6507ee1a5f4e75bdcd350068d36054c62609a129 | 303 | ex | Elixir | lib/hl7/2.3/segments/rxr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/rxr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/rxr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.Segments.RXR do
@moduledoc false
require Logger
alias HL7.V2_3.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
route: DataTypes.Ce,
site: DataTypes.Ce,
administration_device: DataTypes.Ce,
administration_method: DataTypes.Ce
]
end
| 18.9375 | 42 | 0.673267 |
6507f4e65a1778037520d5fc9baf69f736120a90 | 1,763 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/update_chart_spec_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_chart_spec_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_chart_spec_request.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... | 33.903846 | 123 | 0.730006 |
650830fb9c2965113567bbdeb4db63957fa719b0 | 3,970 | ex | Elixir | apps/tfcon/lib/tfcon/services/accounts.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | null | null | null | apps/tfcon/lib/tfcon/services/accounts.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | 2 | 2021-03-10T02:00:57.000Z | 2021-05-10T21:22:39.000Z | apps/tfcon/lib/tfcon/services/accounts.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | null | null | null | defmodule Tfcon.Accounts do
@moduledoc """
The Accounts context is used for performing most of user operations and
preparing changesets for other service operations
"""
import Ecto.Query, warn: false
alias Tfcon.Repo
alias Tfcon.Accounts.User
@doc """
Returns the list of users.
## Examples
... | 20.152284 | 81 | 0.615869 |
65083491e004e574e6f3c7265c25621166204a37 | 2,777 | ex | Elixir | apps/gitgud_web/lib/gitgud_web/live/maintainer_search_form_live.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud_web/lib/gitgud_web/live/maintainer_search_form_live.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud_web/lib/gitgud_web/live/maintainer_search_form_live.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.Web.MaintainerSearchFormLive do
@moduledoc """
Live view responsible for rendering forms to add repository maintainers.
"""
use GitGud.Web, :live_view
alias GitGud.UserQuery
alias GitGud.RepoQuery
import Ecto.Changeset
#
# Callbacks
#
@impl true
def mount(_params, %{"repo_i... | 34.283951 | 126 | 0.689233 |
65085699301cdf3de8dc08edf5f1435cc9eeb444 | 2,454 | exs | Elixir | apps/tai/test/tai/iex/commands/accounts_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/iex/commands/accounts_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/iex/commands/accounts_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.IEx.Commands.AccountsTest do
use Tai.TestSupport.DataCase, async: false
import ExUnit.CaptureIO
test "shows each account" do
mock_account(:test_exchange_a, :main, :btc, 0.1, 1.81227740)
mock_account(
:test_exchange_a,
:main,
:eth,
"0.000000000000000000",
"0.00... | 45.444444 | 122 | 0.406275 |
65086bd22c4ddd8f7d0f39ddf3e8cfca257b1b56 | 123 | exs | Elixir | config/test.exs | Qqwy/elixir-blocked | d9a01354cb3dfce80b75993c95501db88c0b9e85 | [
"MIT"
] | 27 | 2020-06-17T18:42:12.000Z | 2021-02-15T04:56:51.000Z | config/test.exs | Qqwy/elixir-blocked | d9a01354cb3dfce80b75993c95501db88c0b9e85 | [
"MIT"
] | 5 | 2020-06-16T19:51:51.000Z | 2020-06-18T12:19:38.000Z | config/test.exs | Qqwy/elixir-blocked | d9a01354cb3dfce80b75993c95501db88c0b9e85 | [
"MIT"
] | null | null | null | use Mix.Config
# Run Blocked in the test-environment,
# even though we're not in a CI.
config :blocked, [
warn: true,
]
| 15.375 | 38 | 0.691057 |
65086d60e2829147a4d6b76f8739295e1097be93 | 137 | ex | Elixir | web/views/me_view.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 3 | 2015-01-29T19:11:05.000Z | 2015-10-19T02:12:02.000Z | web/views/me_view.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 43 | 2015-05-31T00:28:45.000Z | 2017-02-06T20:06:19.000Z | web/views/me_view.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 2 | 2015-07-11T14:48:04.000Z | 2015-07-13T06:51:37.000Z | defmodule ParticipateApi.MeView do
use ParticipateApi.Web, :view
def type(_post,_conn), do: "participant"
attributes [:name]
end
| 17.125 | 42 | 0.744526 |
65086e3353ee9dcaed5d8491aa9d5ce6dc242a74 | 468 | ex | Elixir | contrib/examples/elixir/lib/brod_sample/crete_topic.ex | dmrlawson/brod | 97df93926d6f72d5d474d13e0a00361472ff1bd4 | [
"Apache-2.0"
] | 529 | 2015-03-18T15:36:44.000Z | 2021-02-19T18:29:22.000Z | contrib/examples/elixir/lib/brod_sample/crete_topic.ex | dmrlawson/brod | 97df93926d6f72d5d474d13e0a00361472ff1bd4 | [
"Apache-2.0"
] | 356 | 2015-06-11T06:20:27.000Z | 2021-02-26T08:30:26.000Z | contrib/examples/elixir/lib/brod_sample/crete_topic.ex | dmrlawson/brod | 97df93926d6f72d5d474d13e0a00361472ff1bd4 | [
"Apache-2.0"
] | 178 | 2015-03-02T20:15:13.000Z | 2021-02-18T10:04:52.000Z | defmodule BrodSample.TopicManagment do
def create(name) do
topic_config = [
%{
config_entries: [],
num_partitions: 6,
replica_assignment: [],
replication_factor: 1,
topic: name
}
]
:brod.create_topics(
["localhost": 9092],
topic_config,
... | 16.714286 | 38 | 0.544872 |
6508766bb0f0658fffa1ccc6321a4e998d408fa1 | 508 | ex | Elixir | lib/web_driver_client/http_response.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/http_response.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/http_response.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.HTTPResponse do
@moduledoc false
alias Tesla.Env
@type status :: non_neg_integer()
@type body :: binary()
@type headers :: [{String.t(), String.t()}]
@type t :: %__MODULE__{
headers: headers,
status: status,
body: body
}
defstruct [:statu... | 22.086957 | 66 | 0.620079 |
65087cb246f1b374ab3ccd6fa1f27c2b3b6c2ae1 | 374 | ex | Elixir | lib/flix_web/graphql/resolvers/user_resolver.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 3 | 2021-03-21T23:52:16.000Z | 2021-06-02T03:47:00.000Z | lib/flix_web/graphql/resolvers/user_resolver.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 44 | 2021-04-09T04:04:13.000Z | 2022-03-29T06:29:37.000Z | lib/flix_web/graphql/resolvers/user_resolver.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | null | null | null | defmodule FlixWeb.Graphql.Resolvers.UserResolver do
alias Flix.Accounts
alias Flix.Accounts.User
alias Flix.Repo
def get_user(_root, %{id: id}, _info) do
case User |> Repo.get(id) do
nil -> {:error, "User id \"#{id}\" not found"}
user -> {:ok, user}
end
end
def list_users(_root, _args,... | 22 | 52 | 0.639037 |
6508e03d3247044b72f3863a640e8c3325da2909 | 1,759 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/decrypt_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/decrypt_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/decrypt_request.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... | 33.826923 | 148 | 0.740762 |
6508fde93dadaa464abc420c785273881b25d56c | 9,927 | exs | Elixir | lib/elixir/test/elixir/module_test.exs | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module_test.exs | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module_test.exs | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule ModuleTest.ToBeUsed do
def value, do: 1
defmacro __using__(_) do
target = __CALLER__.module
Module.put_attribute(target, :has_callback, true)
Module.put_attribute(target, :before_compile, __MODULE__)
Module.put_attribute(target, :after_compil... | 25.32398 | 98 | 0.64652 |
65090a5ff71ba3bec5dd750cee8b3bf36e07cad9 | 24,914 | ex | Elixir | deps/ecto/lib/ecto/migration.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/migration.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/migration.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | defmodule Ecto.Migration do
@moduledoc """
Migrations are used to modify your database schema over time.
This module provides many helpers for migrating the database,
allowing developers to use Elixir to alter their storage in
a way that is database independent.
Here is an example:
defmodule MyRepo... | 30.016867 | 144 | 0.665048 |
650918e852899219896b5fdd45f7d0e5d71672a0 | 643 | exs | Elixir | test/scale/ggity_scale_y_continuous_test.exs | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 47 | 2020-06-21T15:23:54.000Z | 2022-03-13T01:24:19.000Z | test/scale/ggity_scale_y_continuous_test.exs | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 3 | 2020-11-28T11:00:59.000Z | 2020-11-30T18:20:37.000Z | test/scale/ggity_scale_y_continuous_test.exs | srowley/ggity | e49f40141ea7b56e07cf9e00a20c04ed4d42df2f | [
"MIT"
] | 2 | 2020-11-28T10:40:10.000Z | 2021-05-28T06:44:47.000Z | defmodule GGityScaleYContinuousTest do
use ExUnit.Case
alias GGity.Scale.Y
describe "new/3" do
test "creates a correct transformation function" do
min_max = {1, 5}
scale = Y.Continuous.new() |> Y.Continuous.train(min_max)
assert scale.transform.(1) == 0
assert scale.transform.(3) == ... | 27.956522 | 66 | 0.645412 |
650921a4c83565febc1dd567543527e98d7386c9 | 3,313 | ex | Elixir | lib/andy/utils.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | 7 | 2019-05-29T22:55:25.000Z | 2021-08-22T18:38:29.000Z | lib/andy/utils.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | null | null | null | lib/andy/utils.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | 1 | 2020-01-25T20:46:43.000Z | 2020-01-25T20:46:43.000Z | defmodule Andy.Utils do
@moduledoc "Utility functions"
alias Andy.GM.PubSub
alias Andy.Clock
require Logger
@brickpi_port_pattern ~r/spi0.1:(.+)/
def listen_to_events(pid, module, name \\ nil) do
spawn(fn ->
Agent.get(
pid,
fn state ->
PubSub.register(module)
... | 20.078788 | 97 | 0.578026 |
65092a999df39b5c24bffc7080a437b42de85806 | 1,886 | exs | Elixir | test/pqueue_test.exs | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | test/pqueue_test.exs | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | test/pqueue_test.exs | lafka/cicadabus | d40a9d8456dff80f81706a4425833b877abdcf36 | [
"BSD-3-Clause"
] | null | null | null | defmodule Tnest.Edge.Bus.PqueueTest do
use ExUnit.Case
# Simple queue functionality, all on same priority
test "member" do
queue = Enum.reduce(1..10, :pqueue.new(), fn v, acc -> :pqueue.in(v, acc) end)
assert :pqueue.member(1, queue)
assert :pqueue.member(2, queue)
refute :pqueue.member(100, que... | 24.815789 | 94 | 0.517497 |
6509625c806db9fe99fcf71e2ac2bc9afe146166 | 128 | ex | Elixir | lib/postoffice/repo.ex | lonamiaec/postoffice | 3a6f28ea0db94887faf427bf06df2b1504c00d02 | [
"Apache-2.0"
] | 15 | 2020-01-24T10:33:57.000Z | 2020-10-24T07:57:14.000Z | lib/postoffice/repo.ex | lonamiaec/postoffice | 3a6f28ea0db94887faf427bf06df2b1504c00d02 | [
"Apache-2.0"
] | 24 | 2020-01-24T09:52:56.000Z | 2021-02-19T09:15:12.000Z | lib/postoffice/repo.ex | mercadona/postoffice | 3a6f28ea0db94887faf427bf06df2b1504c00d02 | [
"Apache-2.0"
] | 5 | 2020-01-25T18:03:44.000Z | 2021-02-23T10:07:03.000Z | defmodule Postoffice.Repo do
use Ecto.Repo,
otp_app: :postoffice,
adapter: Ecto.Adapters.Postgres
use Scrivener
end
| 18.285714 | 35 | 0.742188 |
65096b9207ef9b80ffae64eb221089f79ec461a6 | 1,228 | exs | Elixir | priv/repo/seeds.exs | monisapp/api | 4096d50da23e0b562a309b9d0ccf6b211f431d25 | [
"MIT"
] | 1 | 2020-04-24T19:40:46.000Z | 2020-04-24T19:40:46.000Z | priv/repo/seeds.exs | monisapp/api | 4096d50da23e0b562a309b9d0ccf6b211f431d25 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | monisapp/api | 4096d50da23e0b562a309b9d0ccf6b211f431d25 | [
"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:
#
# MonisApp.Repo.insert!(%MonisApp.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they wi... | 20.466667 | 61 | 0.673453 |
65097273514e4b2b38e349f6e2a6475af9fd0e1e | 2,286 | ex | Elixir | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/source_location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/source_location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/source_location.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.745763 | 122 | 0.730534 |
650973a4a572ee085ca7b388d2fa085883f95a01 | 1,139 | exs | Elixir | test/lib/code_corps/policy/comment_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/policy/comment_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/policy/comment_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Policy.CommentTest do
use CodeCorps.PolicyCase
alias CodeCorps.{Comment, Policy, User}
describe "create?" do
test "returns true if own record" do
user = insert(:user)
params = %{"user_id" => user.id}
assert Policy.Comment.create?(user, params)
end
test "returns... | 27.119048 | 58 | 0.651449 |
6509979a9a09f12a02a0639f586ab5f8f6a927d2 | 482 | ex | Elixir | lib/ex_raft/key_value_store.ex | bajankristof/ex_raft | 09c3234355d2792922b17a71e3c32b3e57f0a277 | [
"Apache-2.0"
] | 1 | 2021-08-25T10:49:26.000Z | 2021-08-25T10:49:26.000Z | lib/ex_raft/key_value_store.ex | bajankristof/ex_raft | 09c3234355d2792922b17a71e3c32b3e57f0a277 | [
"Apache-2.0"
] | null | null | null | lib/ex_raft/key_value_store.ex | bajankristof/ex_raft | 09c3234355d2792922b17a71e3c32b3e57f0a277 | [
"Apache-2.0"
] | null | null | null | defmodule ExRaft.KeyValueStore do
@moduledoc false
def new(),
do: :ets.new(__MODULE__, [:set, :public])
def put(storage, key, value),
do: :ets.insert(storage, {key, value})
def put_new(storage, key, value),
do: :ets.insert_new(storage, {key, value})
def get(storage, key, value \\ nil) do
c... | 20.956522 | 46 | 0.618257 |
6509a9b28b5a700abaf206c964eafe7af3e43c76 | 1,137 | exs | Elixir | test/integration/whitespace_control_cases/case_tag_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 117 | 2016-09-04T03:56:08.000Z | 2022-03-28T18:51:56.000Z | test/integration/whitespace_control_cases/case_tag_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 73 | 2017-03-21T09:22:45.000Z | 2022-03-01T20:48:22.000Z | test/integration/whitespace_control_cases/case_tag_test.exs | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | 25 | 2017-04-02T02:23:01.000Z | 2022-02-27T20:42:13.000Z | import WhitespaceTrimHelper
test_permutations "case tag evaluated to when body",
~s({ "shipping_method" : { "title" : "Local Pick-Up" } }) do
"""
########################
{% case shipping_method.title %}
{% when 'Local Pick-Up' %}
Your order will be ready for pick-up tomorrow.
{% el... | 18.639344 | 79 | 0.497801 |
6509c1ec168b55e82403d6416c4a0663a3113e71 | 1,631 | ex | Elixir | lib/data/sample_row_keys.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | null | null | null | lib/data/sample_row_keys.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | null | null | null | lib/data/sample_row_keys.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | null | null | null | defmodule Bigtable.SampleRowKeys do
@moduledoc """
Provides functions to build `Google.Bigtable.V2.SampleRowKeysRequest` and submit them to Bigtable.
"""
alias Bigtable.Utils
alias Google.Bigtable.V2
alias V2.Bigtable.Stub
@doc """
Builds a `Google.Bigtable.V2.SampleRowKeysRequest` given a row_key and ... | 31.365385 | 100 | 0.692826 |
6509dc342872d1c2357109bc0303c3eb00bad0e2 | 863 | exs | Elixir | apps/ping_monitor/mix.exs | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"MIT"
] | null | null | null | apps/ping_monitor/mix.exs | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"MIT"
] | null | null | null | apps/ping_monitor/mix.exs | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"MIT"
] | null | null | null | defmodule Ping.Monitor.MixProject do
use Mix.Project
def project do
[
app: :ping_monitor,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.7",
start_permanent:... | 23.972222 | 88 | 0.573581 |
6509de357268b380cb65489de2a6a962568743b7 | 822 | ex | Elixir | web/router.ex | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | web/router.ex | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | web/router.ex | ramonh/rumbl | c22ac66fc8c32bc75f4982ea88f6874c874fab4d | [
"MIT"
] | null | null | null | defmodule Rumbl.Router do
use Rumbl.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Rumbl.Auth, repo: Rumbl.Repo
end
pipeline :api do
plug :accepts, ["json"]
end
sc... | 22.833333 | 76 | 0.672749 |
6509e06c8f2fb05fd9d36fa8695594fa08b6b254 | 14,228 | ex | Elixir | lib/banchan/accounts/accounts.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan/accounts/accounts.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan/accounts/accounts.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule Banchan.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Banchan.Accounts.{User, UserNotifier, UserToken}
alias Banchan.Repo
alias Banchan.Uploads
alias BanchanWeb.UserAuth
## Database getters
@doc """
Gets a single user.
Raises `Ecto.NoRes... | 24.615917 | 116 | 0.639232 |
650a06681336fd4fa5f91df3b15ba0596b96b5cd | 495 | exs | Elixir | session-ii/exercise_3.exs | dreamingechoes/elixir-introduction-workshop | 274ef0c9222107c4761a29f6a7953763467148cc | [
"MIT"
] | 4 | 2019-04-04T13:08:06.000Z | 2021-11-16T11:19:45.000Z | session-ii/exercise_3.exs | dreamingechoes/elixir-introduction-workshop | 274ef0c9222107c4761a29f6a7953763467148cc | [
"MIT"
] | null | null | null | session-ii/exercise_3.exs | dreamingechoes/elixir-introduction-workshop | 274ef0c9222107c4761a29f6a7953763467148cc | [
"MIT"
] | null | null | null | defmodule Calculator do
def sum(argument) when is_list(argument), do: Enum.sum(argument)
def sum(num1, num2), do: num1 + num2
def sub(num1, num2), do: num1 - num2
def mult(num1, num2), do: num1 * num2
def div(_num1, 0), do: "ERROR!"
def div(num1, num2), do: num1 / num2
end
IO.inspect(Calculator.sum([1, 2, ... | 30.9375 | 66 | 0.682828 |
650a0a87232233a40018dab7fd4dbc83274c6f64 | 3,174 | exs | Elixir | test/blogit/components/posts_test.exs | 9to1url/blogit | a7e424b411460b62b5b2c0a74ff731bb9392de8a | [
"MIT"
] | 39 | 2017-07-03T17:39:18.000Z | 2021-05-01T14:17:42.000Z | test/blogit/components/posts_test.exs | 9to1url/blogit | a7e424b411460b62b5b2c0a74ff731bb9392de8a | [
"MIT"
] | 6 | 2017-11-07T22:00:19.000Z | 2020-03-13T18:01:53.000Z | test/blogit/components/posts_test.exs | 9to1url/blogit | a7e424b411460b62b5b2c0a74ff731bb9392de8a | [
"MIT"
] | 6 | 2017-07-06T04:46:49.000Z | 2020-03-06T02:39:33.000Z | defmodule Blogit.Components.PostsTest do
alias Blogit.Components.Posts
use ComponentTestCase, setup_posts: true, module: Posts
setup %{posts_pid: pid}, do: %{pid: pid}
test "`posts` state is calculated from the posts_provider", %{pid: pid} do
%{language: language, posts: posts} = :sys.get_state(pid)
... | 31.117647 | 92 | 0.612791 |
650a5452b1dc70af0b094beb8e1ab9a788482228 | 761 | exs | Elixir | test/grizzly/zwave/commands/indicator_supported_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/indicator_supported_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/indicator_supported_get_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.IndicatorSupportedGetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.IndicatorSupportedGet
test "creates the command and validates params" do
params = [indicator_id: :armed]
{:ok, _command} = IndicatorSupportedGet.new(params)
end
test "encodes para... | 31.708333 | 81 | 0.745072 |
650a5fdb7f8501450da72845b66a74e4ce012079 | 186 | ex | Elixir | lib/nio_eligible/parser.ex | maxneuvians/nio_eligible | 66b2a805367a8a7fe86dd84bf4645b553e428c1f | [
"MIT"
] | null | null | null | lib/nio_eligible/parser.ex | maxneuvians/nio_eligible | 66b2a805367a8a7fe86dd84bf4645b553e428c1f | [
"MIT"
] | null | null | null | lib/nio_eligible/parser.ex | maxneuvians/nio_eligible | 66b2a805367a8a7fe86dd84bf4645b553e428c1f | [
"MIT"
] | null | null | null | defmodule NioEligible.Parser do
def parse_coverage(object), do: struct(NioEligible.Model.Coverage, object)
def parse_payer(object), do: struct(NioEligible.Model.Payer, object)
end
| 26.571429 | 76 | 0.790323 |
650a741f18e001382307610d6071d349d88e4647 | 1,609 | exs | Elixir | mix.exs | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | mix.exs | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | mix.exs | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | defmodule MemoApi.Mixfile do
use Mix.Project
def project do
[app: :memo_api,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
alias... | 29.254545 | 78 | 0.59913 |
650acea3029d85bdfa6db6479b0adc5a78bf57e5 | 1,884 | ex | Elixir | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive.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... | 35.54717 | 148 | 0.711783 |
650b1183a893a22ba3a0c1371b71c707caa6b3bf | 11,020 | ex | Elixir | install/packaging/armoreconfig/configs/debian/manpage.xml.ex | GridProtectionAlliance/ARMORE | 0e5a73b0343873114b897365976bd956bd9948bb | [
"MIT"
] | 8 | 2016-08-31T20:50:57.000Z | 2021-10-04T01:48:37.000Z | install/packaging/armoreconfig/configs/debian/manpage.xml.ex | GridProtectionAlliance/ARMORE | 0e5a73b0343873114b897365976bd956bd9948bb | [
"MIT"
] | null | null | null | install/packaging/armoreconfig/configs/debian/manpage.xml.ex | GridProtectionAlliance/ARMORE | 0e5a73b0343873114b897365976bd956bd9948bb | [
"MIT"
] | 6 | 2016-12-26T05:03:16.000Z | 2020-04-08T04:30:24.000Z | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!--
`xsltproc -''-nonet \
-''-param man.charmap.use.subset "0" \
-''-param make.year.ranges "1" \
-''-param make.single.year.r... | 37.739726 | 84 | 0.632759 |
650b12da15548817ae54333bc6f5d7a1332ac8b9 | 247 | ex | Elixir | lib/jeopardy/fsm/final_jeopardy/revealing_final_scores.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | lib/jeopardy/fsm/final_jeopardy/revealing_final_scores.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | lib/jeopardy/fsm/final_jeopardy/revealing_final_scores.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule Jeopardy.FSM.FinalJeopardy.RevealingFinalScores do
use Jeopardy.FSM
@impl true
def handle(:reveal_complete, _, %State{} = state) do
Jeopardy.Stats.update(state.game)
{:ok, State.update_round(state, "game_over")}
end
end
| 24.7 | 60 | 0.732794 |
650b3808614bc5704cce262715703fdb47ad914a | 259 | ex | Elixir | elixir/phoenix_demo/lib/phoenix_demo.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/phoenix_demo/lib/phoenix_demo.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/phoenix_demo/lib/phoenix_demo.ex | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | defmodule PhoenixDemo do
@moduledoc """
PhoenixDemo 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 |
650b477b8f1b5b5c60d1a7d6720f10dcbc3963e0 | 2,812 | exs | Elixir | test/resources/purchase_order_contracts_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-01T01:34:16.000Z | 2020-08-31T15:15:08.000Z | test/resources/purchase_order_contracts_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-03T03:01:48.000Z | 2021-06-08T18:39:40.000Z | test/resources/purchase_order_contracts_test.exs | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 3 | 2018-08-12T03:51:52.000Z | 2020-02-27T14:29:14.000Z | defmodule Procore.Resources.PurchaseOrderContractsTest do
use ExUnit.Case
alias Procore.ResponseResult
alias Procore.Resources.PurchaseOrderContracts
test "list/1 with default API version" do
client = Procore.client()
params = %{"project_id" => 1}
assert %ResponseResult{reply: :ok, status_code: 20... | 36.051282 | 94 | 0.664651 |
650b77065b991e1599d32ee1c777870f7a472bec | 1,387 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/photo_id.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/photo_id.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/photo_id.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... | 29.510638 | 94 | 0.730353 |
650b7c01e4964ddda303cf5ccd790385ec69fd21 | 2,160 | ex | Elixir | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_list_structures_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_list_structures_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_list_structures_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.409836 | 178 | 0.752778 |
650b98b54ea32d48e2623523a05fd0a26c123ce6 | 22,477 | ex | Elixir | lib/blockchain/account.ex | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | lib/blockchain/account.ex | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | lib/blockchain/account.ex | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | defmodule Blockchain.Account do
@moduledoc """
Represents the state of an account, as defined in Section 4
of the Yellow Paper.
"""
alias MerklePatriciaTree.Trie
@empty_keccak BitHelper.kec(<<>>)
@empty_trie MerklePatriciaTree.Trie.empty_trie_root_hash
# State defined in Section 4.1 of the Yellow Pap... | 40.64557 | 355 | 0.649197 |
650b994199d75395dbcd707a806a4d4dfe1c1209 | 1,438 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/model/surveys_start_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/model/surveys_start_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/model/surveys_start_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.26087 | 190 | 0.760083 |
650bb882a04cfaeb412e5c2d8ba9f2ae50487e51 | 62 | exs | Elixir | .formatter.exs | akaKuruma/power_dnsex | a7c9a6bb86dfac8cb196e6b623ed33abfee42762 | [
"MIT"
] | 6 | 2019-05-28T16:42:19.000Z | 2021-11-06T17:44:38.000Z | .formatter.exs | akaKuruma/power_dnsex | a7c9a6bb86dfac8cb196e6b623ed33abfee42762 | [
"MIT"
] | 5 | 2020-04-24T18:42:13.000Z | 2021-10-01T13:34:16.000Z | .formatter.exs | akaKuruma/power_dnsex | a7c9a6bb86dfac8cb196e6b623ed33abfee42762 | [
"MIT"
] | 6 | 2019-11-17T21:30:05.000Z | 2021-10-01T13:11:45.000Z | [
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
| 12.4 | 56 | 0.483871 |
650bca264f99ed7c25eed9aa22c109d6bd960eca | 199 | exs | Elixir | test/faker/address_test.exs | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | test/faker/address_test.exs | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | test/faker/address_test.exs | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | defmodule Faker.AddressTest do
use ExUnit.Case, async: true
doctest Faker.Address
doctest Faker.Address.En
doctest Faker.Address.Es
doctest Faker.Address.Hy
doctest Faker.Address.It
end
| 19.9 | 30 | 0.778894 |
650c055650e0acabca294eafd7090270d9a9aed7 | 204 | ex | Elixir | api/lib/api_web/router.ex | andrewvmail/momoirc | 15cd76dc8b5f99f72e4a8e05a35dca9bf293bfca | [
"MIT"
] | null | null | null | api/lib/api_web/router.ex | andrewvmail/momoirc | 15cd76dc8b5f99f72e4a8e05a35dca9bf293bfca | [
"MIT"
] | null | null | null | api/lib/api_web/router.ex | andrewvmail/momoirc | 15cd76dc8b5f99f72e4a8e05a35dca9bf293bfca | [
"MIT"
] | null | null | null | defmodule ApiWeb.Router do
use ApiWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", ApiWeb do
pipe_through :api
post "/auth", AuthController, :index
end
end
| 14.571429 | 40 | 0.651961 |
650c14f2a75d6e6abe4ffdb3ba021356e8e43e6e | 2,366 | exs | Elixir | mix.exs | trarbr/nerves_system_x86_64 | a1c45284a97200bd7cc26f7ef72fa186385052bf | [
"Apache-2.0"
] | null | null | null | mix.exs | trarbr/nerves_system_x86_64 | a1c45284a97200bd7cc26f7ef72fa186385052bf | [
"Apache-2.0"
] | null | null | null | mix.exs | trarbr/nerves_system_x86_64 | a1c45284a97200bd7cc26f7ef72fa186385052bf | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemX8664.MixProject do
use Mix.Project
@app :nerves_system_x86_64
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: Mix.compilers() ++ [:nerves... | 21.509091 | 77 | 0.571006 |
650c1cc99a136473b82752ab3731ed97f577cc36 | 2,566 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/banded_range.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/banded_range.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/banded_range.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.821429 | 301 | 0.735776 |
650c21f2ecdcc3fd093eb8fb7c7519e8e686f1e2 | 4,633 | ex | Elixir | packaging/deb/libroadrunner-deps/debian/init.d.ex | sys-bio/Archive_roadRunner | 611bd5338bf842fb5708a9ad75a316bbcc44c902 | [
"Apache-2.0"
] | null | null | null | packaging/deb/libroadrunner-deps/debian/init.d.ex | sys-bio/Archive_roadRunner | 611bd5338bf842fb5708a9ad75a316bbcc44c902 | [
"Apache-2.0"
] | null | null | null | packaging/deb/libroadrunner-deps/debian/init.d.ex | sys-bio/Archive_roadRunner | 611bd5338bf842fb5708a9ad75a316bbcc44c902 | [
"Apache-2.0"
] | null | null | null | #!/bin/sh
### BEGIN INIT INFO
# Provides: libroadrunner-deps
# Required-Start: $local_fs $network $remote_fs $syslog
# Required-Stop: $local_fs $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <Enter a short description of the software>
# Descripti... | 27.742515 | 89 | 0.662422 |
650c2c956dae801b41d93dbfef61d147c260548a | 8,487 | ex | Elixir | lib/mix/tasks/phx.gen.context.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.context.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.context.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Context do
@shortdoc "Generates a context with functions around an Ecto schema"
@moduledoc """
Generates a context with functions around an Ecto schema.
mix phx.gen.context Accounts User users name:string age:integer
The first argument is the context module followed by the s... | 29.778947 | 96 | 0.698009 |
650c5459a885bcd4e0e5c0f35b0aec165283a288 | 4,240 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_asset_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_asset_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_asset_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... | 65.230769 | 789 | 0.740094 |
650c5649df210463f1360d67602d33af22fb11da | 1,682 | ex | Elixir | lib/slackex.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 30 | 2016-01-12T18:05:37.000Z | 2020-06-19T19:54:11.000Z | lib/slackex.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 7 | 2016-01-12T18:23:35.000Z | 2020-11-30T13:26:47.000Z | lib/slackex.ex | soriyath/slackex | ee972bb4ef61d6f0876f7da7cb9b944491681d26 | [
"MIT"
] | 5 | 2016-11-01T17:17:38.000Z | 2019-10-29T16:08:45.000Z | defmodule Slackex do
@moduledoc """
An HTTP client for Slack.
"""
# Let's build on top of HTTPoison
use Application
use HTTPoison.Base
def start(_type, _args) do
Slackex.Supervisor.start_link
end
@doc """
Creates the URL for our endpoint.
Args:
* endpoint - part of the API we're hitting... | 19.788235 | 70 | 0.641498 |
650c6140682f1fe20c4e265909126be5c46fe9ed | 2,290 | ex | Elixir | clients/run/lib/google_api/run/v1/model/location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/location.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... | 35.78125 | 129 | 0.684279 |
650c6b0798cd789d859d8ab26ec1e3ed89a46d1f | 80 | exs | Elixir | test/test_helper.exs | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 6 | 2018-12-13T16:33:09.000Z | 2022-03-02T08:57:20.000Z | test/test_helper.exs | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 10 | 2019-01-30T19:33:48.000Z | 2022-03-03T21:07:37.000Z | test/test_helper.exs | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 9 | 2019-08-22T06:26:45.000Z | 2022-03-01T18:05:01.000Z | ExUnit.start()
Mox.defmock(ATECC508A.Transport.Mock, for: ATECC508A.Transport)
| 20 | 63 | 0.8 |
650c7bbc7e113c59fbb8cfdcc34f4f73e9b62a5d | 295 | ex | Elixir | kousa/lib/kousa/discord.ex | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/lib/kousa/discord.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/lib/kousa/discord.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Kousa.Discord do
def get_avatar_url(user) do
if is_nil(user["avatar"]),
do: "https://cdn.discordapp.com/embed/avatars/" <> rem(user["discriminator"], 5) <> ".png",
else: "https://cdn.discordapp.com/avatars/" <> user["id"] <> "/" <> user["avatar"] <> ".png"
end
end
| 36.875 | 98 | 0.610169 |
650c9f1a5d98735b23c89c88a26f491b2224f1fa | 275 | ex | Elixir | test/fixtures/elixir/post_escaped_double_quotes_in_single_quotes.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 536 | 2021-10-06T17:21:25.000Z | 2022-03-31T13:05:48.000Z | test/fixtures/elixir/post_escaped_double_quotes_in_single_quotes.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 74 | 2021-10-08T13:57:14.000Z | 2022-03-31T06:55:39.000Z | test/fixtures/elixir/post_escaped_double_quotes_in_single_quotes.ex | csperando/curlconverter | 733f110e5621375701f4424299ccd72e669876f6 | [
"MIT"
] | 104 | 2021-10-06T19:36:15.000Z | 2022-03-31T07:34:04.000Z | request = %HTTPoison.Request{
method: :post,
url: "http://localhost:28139/",
options: [],
headers: [
{~s|Content-Type|, ~s|application/x-www-form-urlencoded|},
],
params: [],
body: [
{~s|foo|, ~s|\\"bar\\"|}
]
}
response = HTTPoison.request(request)
| 18.333333 | 62 | 0.578182 |
650cab1de5cc51140927bf541988b51d1c2c00fe | 7,041 | ex | Elixir | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.255034 | 270 | 0.647493 |
650cdd28e09a60cef087ec6c840ef677696e0247 | 2,870 | exs | Elixir | token_registry/test/token_registry_web/controllers/blockchain_controller_test.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | 1 | 2021-12-18T16:17:19.000Z | 2021-12-18T16:17:19.000Z | token_registry/test/token_registry_web/controllers/blockchain_controller_test.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | token_registry/test/token_registry_web/controllers/blockchain_controller_test.exs | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | defmodule TokenRegistryWeb.BlockchainControllerTest do
use TokenRegistryWeb.ConnCase
alias TokenRegistry.Registry
alias TokenRegistry.Registry.Blockchain
@create_attrs %{
name: "some name",
symbol: "some symbol"
}
@update_attrs %{
name: "some updated name",
symbol: "some updated symbol"
... | 30.860215 | 112 | 0.637631 |
650cf88e517a03b8c1c780d43dcd4dc11c0a3807 | 8,739 | ex | Elixir | lib/json_api_client/request.ex | markglenn/json_api_client | 68a0cb0abb6a5f71d633128ce70658965ad39cbb | [
"MIT"
] | null | null | null | lib/json_api_client/request.ex | markglenn/json_api_client | 68a0cb0abb6a5f71d633128ce70658965ad39cbb | [
"MIT"
] | null | null | null | lib/json_api_client/request.ex | markglenn/json_api_client | 68a0cb0abb6a5f71d633128ce70658965ad39cbb | [
"MIT"
] | null | null | null | defmodule JsonApiClient.Request do
@moduledoc """
Describes a JSON API HTTP Request
"""
alias __MODULE__
alias JsonApiClient.Resource
alias JsonApiClient.Document
@type http_methods ::
:get | :post | :update | :delete | :put | :head | :options | :connect | :trace | :patch
@type t :: %__MODULE... | 32.853383 | 282 | 0.63085 |
650d04233965b4c76eb1c75509cd5b7475ff67c0 | 583 | ex | Elixir | lib/rustler_mixin.ex | discord/jemalloc_info | 6d64be835206567cab26d0e243a47abda7e837e5 | [
"MIT"
] | null | null | null | lib/rustler_mixin.ex | discord/jemalloc_info | 6d64be835206567cab26d0e243a47abda7e837e5 | [
"MIT"
] | 1 | 2021-08-21T07:42:32.000Z | 2021-08-21T07:42:32.000Z | lib/rustler_mixin.ex | LaudateCorpus1/jemalloc_info | 6d64be835206567cab26d0e243a47abda7e837e5 | [
"MIT"
] | 2 | 2021-08-21T07:41:00.000Z | 2022-03-17T09:52:42.000Z | defmodule JemallocInfo.RustlerMixin do
defmacro __using__(_) do
quote do
@type jemalloc_allocation_data :: %{
:epoch => integer,
:active => integer,
:allocated => integer,
:mapped => integer,
:metadata => integer,
:resident ... | 27.761905 | 89 | 0.5506 |
650d25b0edc0cdf6be69209b4b7741e1a59b5b33 | 2,842 | ex | Elixir | lib/brady.ex | dbernheisel/brady | cb5abe4bdfd33ca8a9de2987c5b5d69ba2a83b71 | [
"MIT"
] | null | null | null | lib/brady.ex | dbernheisel/brady | cb5abe4bdfd33ca8a9de2987c5b5d69ba2a83b71 | [
"MIT"
] | null | null | null | lib/brady.ex | dbernheisel/brady | cb5abe4bdfd33ca8a9de2987c5b5d69ba2a83b71 | [
"MIT"
] | null | null | null | defmodule Brady do
alias Phoenix.Controller
@doc """
Returns the controller name and controller-action name as a lowercase,
dasherized string.
For example, when the `conn` came from CoolWidgetsController#show:
Brady.body_class(conn) => 'cool-widgets cool-widgets-show'"
"""
@spec body_class(%Plug... | 28.707071 | 208 | 0.64708 |
650d3a3a36bf0dfa3ebb2348b4be0d2d4fdf0df5 | 2,404 | ex | Elixir | lib/console/events.ex | kianmeng/artificery | 6322217f8c028d77254a4cefc8a06c8a0864c736 | [
"Apache-2.0"
] | null | null | null | lib/console/events.ex | kianmeng/artificery | 6322217f8c028d77254a4cefc8a06c8a0864c736 | [
"Apache-2.0"
] | null | null | null | lib/console/events.ex | kianmeng/artificery | 6322217f8c028d77254a4cefc8a06c8a0864c736 | [
"Apache-2.0"
] | null | null | null | defmodule Artificery.Console.Events do
@moduledoc false
@behaviour :gen_event
@doc """
Start listening for console events
"""
def start do
:gen_event.add_handler(:erl_signal_server, __MODULE__, [])
end
@doc """
Stop listening for console events
"""
def stop do
:gen_event.delete_handler(... | 26.130435 | 88 | 0.673045 |
650d3bb60399e67a384efb4acd40d3a15658fb62 | 88 | exs | Elixir | apps/bob_versions_web/test/bob_versions_web/views/page_view_test.exs | LostKobrakai/hex-bobs-list | 2b42111d70b8c3b19624496d3a3e6708d7139c29 | [
"Apache-2.0"
] | 8 | 2020-01-27T12:01:20.000Z | 2020-12-14T20:30:44.000Z | apps/bob_versions_web/test/bob_versions_web/views/page_view_test.exs | LostKobrakai/hex-bobs-list | 2b42111d70b8c3b19624496d3a3e6708d7139c29 | [
"Apache-2.0"
] | 7 | 2020-01-08T10:33:59.000Z | 2021-05-27T12:47:41.000Z | apps/bob_versions_web/test/bob_versions_web/views/page_view_test.exs | LostKobrakai/hex-bobs-list | 2b42111d70b8c3b19624496d3a3e6708d7139c29 | [
"Apache-2.0"
] | null | null | null | defmodule BobVersionsWeb.PageViewTest do
use BobVersionsWeb.ConnCase, async: true
end
| 22 | 42 | 0.840909 |
650d6aa4aeb3a763e495cc28fb12cff26c544393 | 334 | ex | Elixir | lib/hush/transformer/apply.ex | gordalina/hush | 5fd9826bc7df6a7754c74a062756d1c7d5651f09 | [
"Apache-2.0"
] | 86 | 2020-08-12T17:24:19.000Z | 2022-03-09T09:48:08.000Z | lib/hush/transformer/apply.ex | gordalina/hush | 5fd9826bc7df6a7754c74a062756d1c7d5651f09 | [
"Apache-2.0"
] | 6 | 2020-12-13T05:24:10.000Z | 2022-01-25T19:49:00.000Z | lib/hush/transformer/apply.ex | gordalina/hush | 5fd9826bc7df6a7754c74a062756d1c7d5651f09 | [
"Apache-2.0"
] | null | null | null | defmodule Hush.Transformer.Apply do
@moduledoc """
Apply function transformer
"""
@behaviour Hush.Transformer
@impl true
@spec key() :: :apply
def key(), do: :apply
@impl true
@spec transform(config :: any(), value :: any()) :: {:ok, any()} | {:error, String.t()}
def transform(fun, value), do: fu... | 20.875 | 89 | 0.625749 |
650da103b59c993220cc73d58564e6b4ef3e0a13 | 1,126 | exs | Elixir | test_app/mix.exs | valiot/simple_graphql_client | 455be8c7f1fdbf2f7ffc71a0402f8604ec8243b6 | [
"MIT"
] | 15 | 2018-10-14T23:30:56.000Z | 2021-02-20T21:49:42.000Z | test_app/mix.exs | valiot/simple_graphql_client | 455be8c7f1fdbf2f7ffc71a0402f8604ec8243b6 | [
"MIT"
] | 1 | 2019-04-29T06:29:30.000Z | 2019-08-05T20:26:52.000Z | test_app/mix.exs | valiot/simple_graphql_client | 455be8c7f1fdbf2f7ffc71a0402f8604ec8243b6 | [
"MIT"
] | 4 | 2019-03-14T23:07:49.000Z | 2019-08-05T18:34:37.000Z | defmodule AbsintheTestApp.Mixfile do
use Mix.Project
def project do
[
app: :absinthe_test_app,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: de... | 24.478261 | 57 | 0.581705 |
650db90ffcf84449d041874acba9070defc0ed97 | 1,089 | ex | Elixir | elixir-to-java/elixir_api_server/lib/elixir_api_server_web/channels/user_socket.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | elixir-to-java/elixir_api_server/lib/elixir_api_server_web/channels/user_socket.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | 64 | 2021-08-30T23:54:04.000Z | 2022-03-14T21:06:11.000Z | elixir-to-java/elixir_api_server/lib/elixir_api_server_web/channels/user_socket.ex | poad/grpc-example | d1b775f6d2e89279cd29191d5d4dbec265bf0bf0 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirApiServerWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ElixirApiServerWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be se... | 32.029412 | 90 | 0.703398 |
650dc5c06e21a29a92434b3185e1f7796c9ae219 | 1,204 | ex | Elixir | lib/canon_web/views/error_helpers.ex | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | lib/canon_web/views/error_helpers.ex | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | lib/canon_web/views/error_helpers.ex | megalithic/canon | 8178207cdaf1f137fcdf1f42481636e0209dcbeb | [
"MIT"
] | null | null | null | defmodule CanonWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static argume... | 35.411765 | 74 | 0.669435 |
650dd7ab3e0fd7b88565fed47625dc23785725ef | 1,090 | ex | Elixir | lib/weather_mirror/application.ex | X-Plane/weather-mirror | 7db39c342ef33fa9688751ce661ab5ff8e6ebb6c | [
"MIT"
] | 6 | 2019-09-08T15:45:52.000Z | 2022-03-18T07:08:03.000Z | lib/weather_mirror/application.ex | X-Plane/weather-mirror | 7db39c342ef33fa9688751ce661ab5ff8e6ebb6c | [
"MIT"
] | null | null | null | lib/weather_mirror/application.ex | X-Plane/weather-mirror | 7db39c342ef33fa9688751ce661ab5ff8e6ebb6c | [
"MIT"
] | 1 | 2019-12-12T13:29:52.000Z | 2019-12-12T13:29:52.000Z | defmodule WeatherMirror.Application do
@moduledoc """
Starts monitored endpoints for caching specific NOAA data
"""
use Application
@default_port 4001
def start(_type, _args) do
HTTPoison.start()
children = [
{Registry, keys: :unique, name: WeatherMirror.AutoUpdatingUrlCache},
cache_s... | 28.684211 | 91 | 0.669725 |
650de5370f66a599f5d5d2c18ecb1bc340437bcc | 5,108 | ex | Elixir | lib/teiserver/protocols/tachyon/tachyon.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver/protocols/tachyon/tachyon.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | null | null | null | lib/teiserver/protocols/tachyon/tachyon.ex | Teifion/teiserver | 131e002160e1e948cb55e56d62370ba66a972cba | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Teiserver.Protocols.Tachyon do
require Logger
alias Teiserver.Client
alias Teiserver.Battle.Lobby
alias Phoenix.PubSub
alias Teiserver.Protocols.TachyonIn
alias Teiserver.Protocols.TachyonOut
def format_log(s) do
Kernel.inspect(s)
end
def reply(namespace, reply_cmd, data, state),
d... | 36.22695 | 123 | 0.643109 |
650df01e18f6bb8b347027b9420e34af8ba62ce5 | 4,215 | ex | Elixir | lib/jpmarc/sigil.ex | zuki/jpmarc | 4b64fa7dd1f90451b33fdeb8056dbb6e9f21e171 | [
"MIT"
] | null | null | null | lib/jpmarc/sigil.ex | zuki/jpmarc | 4b64fa7dd1f90451b33fdeb8056dbb6e9f21e171 | [
"MIT"
] | null | null | null | lib/jpmarc/sigil.ex | zuki/jpmarc | 4b64fa7dd1f90451b33fdeb8056dbb6e9f21e171 | [
"MIT"
] | null | null | null | defmodule JPMarc.MarcSigil do
@moduledoc """
Implement the "~M" sigil, which takes a string containig
representation of JPMARC elements and return its corresponding JPMarc struct.
"""
alias JPMarc.Record
alias JPMarc.Leader
alias JPMarc.ControlField, as: CF
alias JPMarc.DataField, as: DF
alias JPMarc... | 29.683099 | 117 | 0.560617 |
650df92ed3e2153ed78e65dd5d8f2748c1556060 | 2,192 | exs | Elixir | config/test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | config/test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | config/test.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | use Mix.Config
# Configure autoclustering
config :skycluster,
strategy: {:system, :module, "SKYCLUSTER_STRATEGY", Cluster.Strategy.Epmd}
config :annon_api,
sql_sandbox: true,
enable_ssl?: false
config :annon_api, Annon.Configuration.Repo,
database: "annon_api_configs_test",
pool: Ecto.Adapters.SQL.Sandbox
... | 28.467532 | 105 | 0.71396 |
650e1dc76d8de82dcfa45c936654f422497d0f64 | 1,554 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/crop_hints_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/crop_hints_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/crop_hints_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.06383 | 111 | 0.741956 |
650e513ae450ef9f2a63b3f47973f74cc0127a42 | 151 | exs | Elixir | .formatter.exs | membraneframework/membrane-element-shout | e546725ec65a9726c9503ebd23c01581e8b9388b | [
"Apache-2.0"
] | null | null | null | .formatter.exs | membraneframework/membrane-element-shout | e546725ec65a9726c9503ebd23c01581e8b9388b | [
"Apache-2.0"
] | 1 | 2019-09-18T13:11:17.000Z | 2019-10-23T02:29:01.000Z | .formatter.exs | membraneframework/membrane-element-shout | e546725ec65a9726c9503ebd23c01581e8b9388b | [
"Apache-2.0"
] | null | null | null | [
inputs: [
"{lib,test,config,c_src}/**/*.{ex,exs}",
"*.exs",
".formatter.exs"
],
import_deps: [:membrane_core, :bundlex, :unifex]
]
| 16.777778 | 50 | 0.536424 |
650e53f95117bd1c293a390149922023bd986431 | 1,130 | exs | Elixir | mix.exs | dashbitco/broadway_sqs | 7c45c54f566881c125fce81a174e4d12563c2d37 | [
"Apache-2.0"
] | 27 | 2020-01-20T16:26:06.000Z | 2022-02-17T18:54:01.000Z | mix.exs | dashbitco/broadway_sqs | 7c45c54f566881c125fce81a174e4d12563c2d37 | [
"Apache-2.0"
] | 24 | 2020-01-28T11:37:57.000Z | 2022-03-27T18:35:54.000Z | mix.exs | dashbitco/broadway_sqs | 7c45c54f566881c125fce81a174e4d12563c2d37 | [
"Apache-2.0"
] | 13 | 2020-04-12T20:30:29.000Z | 2022-03-25T17:40:50.000Z | defmodule BroadwaySqs.MixProject do
use Mix.Project
@version "0.7.0"
@description "A SQS connector for Broadway"
def project do
[
app: :broadway_sqs,
version: @version,
elixir: "~> 1.7",
name: "BroadwaySQS",
description: @description,
start_permanent: Mix.env() == :prod... | 20.545455 | 71 | 0.523009 |
650e74e46191b6b28184865d50109c9dca8667dc | 353 | ex | Elixir | lib/nats_ex/connection_sup.ex | iamd3vil/nats_ex | 601be15b75680876cb8b29859f5bf6aeeb8dc1e9 | [
"MIT"
] | 10 | 2016-07-27T03:50:47.000Z | 2021-06-15T07:53:56.000Z | lib/nats_ex/connection_sup.ex | iamd3vil/nats_ex | 601be15b75680876cb8b29859f5bf6aeeb8dc1e9 | [
"MIT"
] | 4 | 2018-07-10T05:37:04.000Z | 2021-12-01T18:22:43.000Z | lib/nats_ex/connection_sup.ex | iamd3vil/nats_ex | 601be15b75680876cb8b29859f5bf6aeeb8dc1e9 | [
"MIT"
] | 4 | 2016-07-26T11:21:40.000Z | 2021-11-26T13:44:59.000Z | defmodule NatsEx.ConnectionSup do
@moduledoc false
use DynamicSupervisor
@spec start_link(term()) :: Supervisor.on_start()
def start_link(init_arg) do
DynamicSupervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
@impl DynamicSupervisor
def init(_init_arg) do
DynamicSupervisor.init(s... | 22.0625 | 72 | 0.764873 |
650e82fa7e71b2b873ded6e0a0bc15d53d879798 | 1,176 | exs | Elixir | test/shikoba_web/graphql/accounts/user_schema/query_current_user_test.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 3 | 2021-11-23T23:07:34.000Z | 2021-11-24T01:40:01.000Z | test/shikoba_web/graphql/accounts/user_schema/query_current_user_test.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | null | null | null | test/shikoba_web/graphql/accounts/user_schema/query_current_user_test.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 1 | 2021-07-19T11:48:30.000Z | 2021-07-19T11:48:30.000Z | defmodule ShikobaWeb.Graphql.Accounts.UserSchema.QueryCurrentUserTest do
use ShikobaWeb.ConnCase, async: true
describe "when token in request is valid" do
setup [:log_user_in, :set_normal_role_to_current_user]
test "should return user", %{conn: conn, current_user: user} do
assert %{
"data" =... | 25.565217 | 95 | 0.620748 |
650ebcf079fe3fc1a40df063a44488a585a56a32 | 176 | ex | Elixir | lib/hologram/compiler/call_graph_builder/string_type.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/call_graph_builder/string_type.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/call_graph_builder/string_type.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | # TODO: test
alias Hologram.Compiler.CallGraphBuilder
alias Hologram.Compiler.IR.StringType
defimpl CallGraphBuilder, for: StringType do
def build(_, _, _, _), do: nil
end
| 19.555556 | 44 | 0.772727 |
650ec26f35a48db8450d50a2df9f466a9422bd45 | 128 | exs | Elixir | test/exselenidephp_test.exs | Enapiuz/ExSelenidePHP | c388057953ea4e8eb459ef04bd8870b56ad1823d | [
"MIT"
] | null | null | null | test/exselenidephp_test.exs | Enapiuz/ExSelenidePHP | c388057953ea4e8eb459ef04bd8870b56ad1823d | [
"MIT"
] | null | null | null | test/exselenidephp_test.exs | Enapiuz/ExSelenidePHP | c388057953ea4e8eb459ef04bd8870b56ad1823d | [
"MIT"
] | null | null | null | defmodule ExSelenidePHPTest do
use ExUnit.Case
doctest ExSelenidePHP
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.222222 | 30 | 0.703125 |
650ee7ae2760c2be0bdcbece43a8f6ff17778ee1 | 699 | ex | Elixir | backend/lib/salvadanaio_web/plugs/authenticate.ex | tommyblue/salvadanaio | 74723f4875b14f6ae93ced1168c090d891399e01 | [
"MIT"
] | 2 | 2018-07-12T05:05:10.000Z | 2019-02-09T21:55:37.000Z | backend/lib/salvadanaio_web/plugs/authenticate.ex | tommyblue/salvadanaio | 74723f4875b14f6ae93ced1168c090d891399e01 | [
"MIT"
] | null | null | null | backend/lib/salvadanaio_web/plugs/authenticate.ex | tommyblue/salvadanaio | 74723f4875b14f6ae93ced1168c090d891399e01 | [
"MIT"
] | null | null | null | defmodule SalvadanaioWeb.Plugs.Authenticate do
import Plug.Conn
alias Salvadanaio.Services.Authenticator
alias Salvadanaio.Repo
alias Salvadanaio.AuthToken
def init(default), do: default
def call(conn, _default) do
case Authenticator.get_auth_token(conn) do
{:ok, token} ->
case AuthToken... | 23.3 | 57 | 0.67382 |
650f177d6c8b544758e00ae54c478ff2e8a1681d | 9,469 | ex | Elixir | lib/nostrum/util.ex | chakrit/nostrum | f0ce383d06bb3bb1786ff0464c95cbd757d38f1f | [
"MIT"
] | null | null | null | lib/nostrum/util.ex | chakrit/nostrum | f0ce383d06bb3bb1786ff0464c95cbd757d38f1f | [
"MIT"
] | null | null | null | lib/nostrum/util.ex | chakrit/nostrum | f0ce383d06bb3bb1786ff0464c95cbd757d38f1f | [
"MIT"
] | null | null | null | defmodule Nostrum.Util do
@moduledoc """
Utility functions
"""
alias Nostrum.{Api, Constants, Snowflake}
alias Nostrum.Shard.Session
alias Nostrum.Struct.WSState
require Logger
@doc """
Helper for defining all the methods used for struct and encoding transformations.
## Example
``` Elixir
No... | 27.526163 | 99 | 0.635864 |
650f2b878b41b57136c805dfd9eeaeab3a29da8d | 1,972 | exs | Elixir | config/prod.exs | joshnuss/xuber | a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff | [
"MIT"
] | 3 | 2017-06-14T15:27:29.000Z | 2017-09-13T12:54:30.000Z | config/prod.exs | joshnuss/xuber | a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff | [
"MIT"
] | null | null | null | config/prod.exs | joshnuss/xuber | a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff | [
"MIT"
] | 2 | 2019-07-22T04:04:38.000Z | 2020-08-15T14:50:18.000Z | use Mix.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 t... | 31.806452 | 67 | 0.710953 |
650f3a4de7fa0ada30177b67b03f2bb80cb78df7 | 478 | ex | Elixir | lib/crit/users/unique_id.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | lib/crit/users/unique_id.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit/users/unique_id.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.Users.UniqueId do
@moduledoc """
Any given `conn` represents a request for a particular user. The same
`User.id` may appear in more than one institution, so uniqueness requires
that the institution's shortname accompany the user_id wherever it goes.
"""
defstruct user_id: nil, institution: n... | 34.142857 | 84 | 0.761506 |
650f8e660fc8747081c74c3b4dcb1255d76f1081 | 529 | ex | Elixir | apps/customer/lib/customer/web/commands/job_title.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/web/commands/job_title.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/web/commands/job_title.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.Command.JobTitle do
use Customer.Command, model: Customer.Web.JobTitle
alias Customer.Web.{JobTitle, JobTitleAlias}
def insert_job_title_and_alias(name), do: insert_job_title_and_alias(Multi.new, name)
def insert_job_title_and_alias(multi, name) do
Multi.insert(multi, :job_title, Jo... | 37.785714 | 111 | 0.750473 |
650f94a9bb183152cca1983279c657deb8e2daf8 | 4,698 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/api/v2.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/api/v2.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/api/v2.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... | 45.173077 | 409 | 0.667518 |
650fcb3f3a613b093654159285574e32d7f4c46b | 743 | ex | Elixir | integration_test/wallaby_example_app/lib/wallaby_example_app_web/gettext.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 1 | 2021-08-16T18:52:45.000Z | 2021-08-16T18:52:45.000Z | integration_test/wallaby_example_app/lib/wallaby_example_app_web/gettext.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 16 | 2021-03-09T19:39:31.000Z | 2022-03-15T15:20:24.000Z | integration_test/wallaby_example_app/lib/wallaby_example_app_web/gettext.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | null | null | null | defmodule WallabyExampleAppWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import WallabyExampleAppWeb.Gettext
# Simple translation
... | 29.72 | 72 | 0.69179 |
650fdbe22df61d7ee037214bc6fea25a01e70907 | 2,518 | ex | Elixir | lib/ex338_web/views/input_helpers.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | lib/ex338_web/views/input_helpers.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | lib/ex338_web/views/input_helpers.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338Web.InputHelpers do
use Phoenix.HTML
def input(form, field, opts \\ []) do
type = opts[:using] || Phoenix.HTML.Form.input_type(form, field)
wrapper_class = opts[:wrapper_class] || ""
label_class = opts[:label_class] || ""
input_wrapper_class = opts[:input_wrapper_class] || ""
in... | 28.613636 | 229 | 0.660048 |
650fe50b145694d99cd9a72a7b20a8c278420660 | 2,071 | exs | Elixir | test/subscriptions/distributed_subscription_test.exs | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | test/subscriptions/distributed_subscription_test.exs | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | test/subscriptions/distributed_subscription_test.exs | MainShayne233/eventstore | fc46db3c890f083a1a050e33e98bd15cf42bb8b0 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(LocalCluster) do
defmodule EventStore.Subscriptions.DistributedSubscriptionTest do
use ExUnit.Case
@moduletag :distributed
setup do
:ok = LocalCluster.start()
on_exit(fn ->
LocalCluster.stop()
end)
end
describe "distributed subscription" do
... | 24.654762 | 83 | 0.562047 |
65100c72a4c0127afc707f535c80cd9e5a4676b1 | 4,694 | ex | Elixir | lib/bike_brigade/riders/rider.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade/riders/rider.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade/riders/rider.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Riders.Rider do
use BikeBrigade.Schema
import Ecto.Changeset
import Ecto.Query, warn: false
import EctoEnum
alias BikeBrigade.Locations.Location
alias BikeBrigade.Repo
alias BikeBrigade.Riders.{Tag, RidersTag, RiderLatestCampaign}
alias BikeBrigade.Delivery.{Task, CampaignRider}
... | 27.775148 | 97 | 0.676821 |
65104ece76cb31fdfc9b8def4e167561e12ed440 | 71 | ex | Elixir | microservice/web/views/layout_view.ex | eduardobarbiero/microservice-contacts | 330d1855c8b9296e030bfe62cabc3a1c20cef500 | [
"MIT"
] | null | null | null | microservice/web/views/layout_view.ex | eduardobarbiero/microservice-contacts | 330d1855c8b9296e030bfe62cabc3a1c20cef500 | [
"MIT"
] | null | null | null | microservice/web/views/layout_view.ex | eduardobarbiero/microservice-contacts | 330d1855c8b9296e030bfe62cabc3a1c20cef500 | [
"MIT"
] | null | null | null | defmodule Microservice.LayoutView do
use Microservice.Web, :view
end
| 17.75 | 36 | 0.816901 |
65106def5acc8b6abebaa3accf8aa32bfcba7933 | 1,329 | ex | Elixir | web/channels/device_socket.ex | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | 6 | 2016-03-31T21:23:21.000Z | 2020-09-15T01:36:17.000Z | web/channels/device_socket.ex | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | null | null | null | web/channels/device_socket.ex | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | null | null | null | defmodule Livex.DeviceSocket do
use Phoenix.Socket
require Logger
## Channels
channel "fader:*", Livex.FaderChannel
# channel "xy:*", Livex.XYChannel
channel "monitor", Livex.MonitorChannel
channel "rotor:*", Livex.RotorChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket #Livex.O... | 34.076923 | 83 | 0.705041 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.