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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
911c133c631c20599d7bf6491fa10fe93ac1e193 | 1,255 | ex | Elixir | lib/simple_form.ex | robinboehm/phoenix_simple_form | 36b42ef9b5c9e233f108dcf5138c6f922edfe353 | [
"MIT"
] | 15 | 2016-02-21T14:58:56.000Z | 2022-03-10T17:38:50.000Z | lib/simple_form.ex | robinboehm/phoenix_simple_form | 36b42ef9b5c9e233f108dcf5138c6f922edfe353 | [
"MIT"
] | 2 | 2016-05-06T21:30:42.000Z | 2019-02-09T14:46:08.000Z | lib/simple_form.ex | robinboehm/phoenix_simple_form | 36b42ef9b5c9e233f108dcf5138c6f922edfe353 | [
"MIT"
] | 9 | 2016-03-31T07:29:10.000Z | 2021-02-21T00:41:00.000Z | defmodule Phoenix.SimpleForm do
@moduledoc """
Documentation for SimpleForm.
"""
alias Phoenix.SimpleForm.FormInput
alias Phoenix.SimpleForm.TypeDetector
def input(form, field, opts \\ []) do
{input_type, opts} = Keyword.pop(opts, :as, TypeDetector.get_input_type(form, field, opts))
{style_module, ... | 34.861111 | 106 | 0.72988 |
911c1719cba9986fc305cfa5723912b6fc4f282f | 1,877 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/api/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/api/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/api/account.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.54 | 112 | 0.755461 |
911c29d65d8261dde5f8002057d17ca4e7a138b6 | 404 | exs | Elixir | clients/spectrum/test/test_helper.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spectrum/test/test_helper.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spectrum/test/test_helper.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | ExUnit.start()
defmodule GoogleApi.Spectrum.V1explorer.TestHelper do
defmacro __using__(opts) do
quote do
use ExUnit.Case, unquote(opts)
import GoogleApi.Spectrum.V1explorer.TestHelper
end
end
def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " "))
def for_scope(... | 21.263158 | 83 | 0.710396 |
911c5e331047bcbdd927b12fcc574a77faea9f43 | 5,940 | ex | Elixir | lib/ueberauth/strategy/vk.ex | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/vk.ex | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/vk.ex | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.VK do
@moduledoc """
VK Strategy for Überauth.
"""
use Ueberauth.Strategy, default_scope: "",
default_display: "page",
default_state: "",
profile_fields: "",
uid_field: :uid,
... | 26.4 | 79 | 0.59798 |
911c81a8a8726fb492233284fba0e546a3ba8f67 | 3,858 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/display_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/display_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/display_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 42.866667 | 129 | 0.675739 |
911cecea3634af6c38a8b2ee21ffdff94b35e066 | 1,120 | exs | Elixir | mix.exs | mingchuno/exbackoff | aa99625c64dd8ceadfafa377f8ba138355054f43 | [
"MIT"
] | 5 | 2016-02-27T21:59:57.000Z | 2022-03-25T19:31:34.000Z | mix.exs | mingchuno/exbackoff | aa99625c64dd8ceadfafa377f8ba138355054f43 | [
"MIT"
] | null | null | null | mix.exs | mingchuno/exbackoff | aa99625c64dd8ceadfafa377f8ba138355054f43 | [
"MIT"
] | 1 | 2017-01-13T06:21:16.000Z | 2017-01-13T06:21:16.000Z | defmodule Exbackoff.MixProject do
use Mix.Project
@version "0.1.0"
@repo_url "https://github.com/mingchuno/exbackoff"
def project do
[
app: :exbackoff,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: de... | 20.740741 | 59 | 0.561607 |
911d0140ba88391847f91063f1d58ed054df1af9 | 1,152 | exs | Elixir | apps/service_acquire/test/service_acquire/query/where/array_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_acquire/test/service_acquire/query/where/array_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_acquire/test/service_acquire/query/where/array_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Acquire.Query.Where.ArrayTest do
use ExUnit.Case
alias Acquire.Query.Where.Array
alias Acquire.Queryable
import Acquire.Query.Where.Functions
describe "Acquire.Queryable" do
test "will return list of parameters" do
array = Array.new!(elements: [parameter("one"), parameter("two")])
... | 30.315789 | 95 | 0.626736 |
911d0163dbeabc0f15760d04e0d367766e18a0be | 1,783 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/update_chart_spec_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_chart_spec_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_chart_spec_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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.960784 | 148 | 0.740886 |
911d04436392a7ca3a2c9e42dedb73ddd2300ff4 | 1,134 | exs | Elixir | 16/part2.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | 3 | 2016-01-18T01:14:45.000Z | 2017-05-11T09:14:49.000Z | 16/part2.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | null | null | null | 16/part2.exs | seantanly/elixir-advent_of_code | 1e39ac46bc01f5c8cffd2d2f79f9af0b71767291 | [
"MIT"
] | null | null | null | detected_specs = %{
children: 3,
cats: 7,
samoyeds: 2,
pomeranians: 3,
akitas: 0,
vizslas: 0,
goldfish: 5,
trees: 3,
cars: 2,
perfumes: 1,
}
aunt_specs_map = Path.join(__DIR__, "input.txt")
|> File.read!
|> String.split("\n", trim: true)
|> Enum.reduce(%{}, fn input, specs->
[person, attrs] = Str... | 23.625 | 76 | 0.60582 |
911d25c8887a77312b88f5ef8c68f3f59242b59e | 343 | exs | Elixir | apps/web/priv/repo/seeds.exs | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | null | null | null | apps/web/priv/repo/seeds.exs | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | 80 | 2020-03-02T20:34:55.000Z | 2022-03-30T12:11:21.000Z | apps/web/priv/repo/seeds.exs | 9renpoto/phx | 06457b5e5630e45e17add8cb5097004dc1ff7e9d | [
"MIT"
] | 1 | 2019-07-28T19:45:59.000Z | 2019-07-28T19:45:59.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:
#
# Web.Repo.insert!(%Web.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if... | 28.583333 | 61 | 0.699708 |
911d2df8147e566ce7df3ef2d69de9eb01be46ec | 1,608 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/pause_proposal_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/pause_proposal_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/pause_proposal_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... | 34.212766 | 205 | 0.751244 |
911d4194fa9e5bbcdfd725698f68d9036a6f00a1 | 302 | ex | Elixir | web/plugs/analytics_identify.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | web/plugs/analytics_identify.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | web/plugs/analytics_identify.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | defmodule CodeCorps.Plug.AnalyticsIdentify do
@analytics Application.get_env(:code_corps, :analytics)
def init(opts), do: opts
def call(conn, _opts) do
if current_user = conn.assigns[:current_user] do
@analytics.identify(current_user)
conn
else
conn
end
end
end
| 20.133333 | 57 | 0.698675 |
911d7261803e1f99c647156f7fdf5a6fcfe345c3 | 536 | exs | Elixir | mix.exs | shymega/starling_ex | 3ffbf93d2d1785ed91bd52f2881b5552092399ee | [
"Apache-2.0"
] | 1 | 2022-03-01T16:08:22.000Z | 2022-03-01T16:08:22.000Z | mix.exs | shymega/starling_ex | 3ffbf93d2d1785ed91bd52f2881b5552092399ee | [
"Apache-2.0"
] | null | null | null | mix.exs | shymega/starling_ex | 3ffbf93d2d1785ed91bd52f2881b5552092399ee | [
"Apache-2.0"
] | null | null | null | defmodule StarlingEx.MixProject do
use Mix.Project
def project do
[
app: :starling_ex,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
e... | 17.290323 | 59 | 0.546642 |
911d89aa7d0b4b5aa293894ac5c73e3d8bced6b8 | 410 | exs | Elixir | priv/repo/migrations/20200518124527_create_users.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | priv/repo/migrations/20200518124527_create_users.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | priv/repo/migrations/20200518124527_create_users.exs | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | defmodule Songmate.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :bio, :text
add :avatar, :string
add :spotify_id, :string
add :fav_track, :string
add :top_tracks, {:array, :string}
add :top_artists, {:ar... | 20.5 | 49 | 0.614634 |
911d95b6133903e5e15479582cfe7c0c03f7787e | 1,269 | ex | Elixir | lib/helmsman_web/views/error_helpers.ex | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 2 | 2017-10-25T14:21:36.000Z | 2018-08-24T17:49:51.000Z | lib/helmsman_web/views/error_helpers.ex | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 4 | 2017-10-18T01:36:16.000Z | 2018-03-20T20:07:41.000Z | lib/helmsman_web/views/error_helpers.ex | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | null | null | null | defmodule HelmsmanWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
content_t... | 30.95122 | 77 | 0.671395 |
911ddbdfe7067f70f9b846f845ecd7d8dfd8de5e | 2,752 | ex | Elixir | lib/surface/live_view.ex | samuelpordeus/surface | 7d69463617a8868662a813ce5ed337b9e9451777 | [
"MIT"
] | null | null | null | lib/surface/live_view.ex | samuelpordeus/surface | 7d69463617a8868662a813ce5ed337b9e9451777 | [
"MIT"
] | null | null | null | lib/surface/live_view.ex | samuelpordeus/surface | 7d69463617a8868662a813ce5ed337b9e9451777 | [
"MIT"
] | null | null | null | defmodule Surface.LiveView do
@moduledoc """
A wrapper component around `Phoenix.LiveView`.
Since this module is just a wrapper around `Phoenix.LiveView`, you
cannot define custom properties for it. Only `:id` and `:session`
are available. However, built-in directives like `:for` and `:if`
can be used norm... | 28.081633 | 95 | 0.575581 |
911e12c9b6f4fe49b4c4b753d179ff272ebc5351 | 98 | exs | Elixir | examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox_web/test/new_relic_sandbox_web/views/layout_view_test.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | null | null | null | examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox_web/test/new_relic_sandbox_web/views/layout_view_test.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | 2 | 2019-09-09T08:26:44.000Z | 2019-11-05T04:31:37.000Z | examples/new_relic_sandbox_umbrella/apps/new_relic_sandbox_web/test/new_relic_sandbox_web/views/layout_view_test.exs | surgeventures/new_relic_integration | 5417f15f7dd17022ee927e0cdd4fca32529ed278 | [
"MIT"
] | 1 | 2019-09-06T09:27:27.000Z | 2019-09-06T09:27:27.000Z | defmodule NewRelicSandboxWeb.LayoutViewTest do
use NewRelicSandboxWeb.ConnCase, async: true
end
| 24.5 | 46 | 0.857143 |
911e374578ae563b6a9bf62876dae1d82b727a1a | 2,872 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 39.342466 | 393 | 0.737465 |
911e771ebd9b2c2835c5a34487b3deb0fa1173ea | 1,516 | ex | Elixir | lib/layers/queries/queries/replace_one.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | 1 | 2020-12-30T18:30:32.000Z | 2020-12-30T18:30:32.000Z | lib/layers/queries/queries/replace_one.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | null | null | null | lib/layers/queries/queries/replace_one.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | null | null | null | defmodule MongoAgile.Queries.ReplaceOne do
@moduledoc false
#Athough the method of Mongo it´s replace_one(...) we can replace many documents.
#BE CAREFUL
use MapSchema,
atomize: true,
schema: %{
:base => "<query_base>",
:selector => :map,
:doc => :map,
:opts => :keyword
},
custom... | 23.323077 | 83 | 0.649077 |
911e82a99a265b14aae677656561b953a8fd857d | 900 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.333333 | 74 | 0.763333 |
911e9978d2738c4400cf6204a6f2d1c2de147c11 | 1,826 | exs | Elixir | clients/page_speed_online/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/mix.exs | 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... | 27.253731 | 108 | 0.657722 |
911eb3c7d2a84cb391501ea200bed43f042f7bef | 17 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Associativity.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Associativity.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Associativity.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | One = Two = Three | 17 | 17 | 0.647059 |
911ed303af5f0a2f655635df32489e655f56fabe | 2,212 | ex | Elixir | homedir/.Xdefaults.ex | HoverHell/dotfiles | f2652165606fac17bac081159a2d3aa8f32526ee | [
"Apache-2.0"
] | null | null | null | homedir/.Xdefaults.ex | HoverHell/dotfiles | f2652165606fac17bac081159a2d3aa8f32526ee | [
"Apache-2.0"
] | null | null | null | homedir/.Xdefaults.ex | HoverHell/dotfiles | f2652165606fac17bac081159a2d3aa8f32526ee | [
"Apache-2.0"
] | null | null | null | !# Use `#include ".Xdefaults.ex"` and customize whatever.
!### URxvt 256colortermhacks.
URxvt*termName: xterm-256color
!## Probably a fix for home/end:
!# #1
!# https://wiki.archlinux.org/index.php/Home_and_End_keys_not_working#URxvt.2FRxvt
URxvt*keysym.Home: \033[1~
URxvt*keysym.End: \033[4~
!# xterm-like... probabl... | 32.057971 | 82 | 0.731917 |
911edb8db43568d5c266b8d82fca732d2e7a4525 | 1,819 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_run_continuous_test_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_run_continuous_test_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_run_continuous_test_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.320755 | 136 | 0.761957 |
911ef70bf93f197749fcf28054173e0fad066eb7 | 1,850 | ex | Elixir | apps/app/lib/app_web/views/layout_view.ex | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | apps/app/lib/app_web/views/layout_view.ex | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | apps/app/lib/app_web/views/layout_view.ex | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | defmodule AppWeb.LayoutView do
use AppWeb, :view
alias Legendary.ContentWeb.Uploaders.SocialMediaPreview
def title(conn, assigns), do: title(view_module(conn), view_template(conn), assigns)
def title(view, template, %{post: post}), do: "#{post.title} | #{title(view, template, nil)}"
def title(_, _, _) do
... | 25 | 101 | 0.659459 |
911f0e20f9239e53e86cb888c5e752d670e2e884 | 1,115 | exs | Elixir | mix.exs | ScrimpyCat/ResxDropbox | 3816cc90cd43bebd33bf5b173503b0a7d552da08 | [
"BSD-2-Clause"
] | null | null | null | mix.exs | ScrimpyCat/ResxDropbox | 3816cc90cd43bebd33bf5b173503b0a7d552da08 | [
"BSD-2-Clause"
] | null | null | null | mix.exs | ScrimpyCat/ResxDropbox | 3816cc90cd43bebd33bf5b173503b0a7d552da08 | [
"BSD-2-Clause"
] | null | null | null | defmodule ResxDropbox.MixProject do
use Mix.Project
def project do
[
app: :resx_dropbox,
description: "Dropbox producer for the resx library",
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
... | 27.195122 | 79 | 0.467265 |
911f3371d9b8198566fab27a3c97d6f1f78d5afd | 135 | ex | Elixir | lib/rclex/msg_prot.ex | HiroiImanishi/rclex | 34bc6e344d6069a53e6c4c30de8d964a0e867706 | [
"Apache-2.0"
] | null | null | null | lib/rclex/msg_prot.ex | HiroiImanishi/rclex | 34bc6e344d6069a53e6c4c30de8d964a0e867706 | [
"Apache-2.0"
] | null | null | null | lib/rclex/msg_prot.ex | HiroiImanishi/rclex | 34bc6e344d6069a53e6c4c30de8d964a0e867706 | [
"Apache-2.0"
] | null | null | null | defprotocol Rclex.MsgProt do
def typesupport(msg_type)
def initialize(msg_type)
def set(data, msg)
def read(msg_type, msg)
end
| 19.285714 | 28 | 0.755556 |
911f385d92111751728a6773e1de4b11c639c30c | 26,815 | ex | Elixir | lib/mix/lib/mix/tasks/test.ex | LaudateCorpus1/elixir | b131f874640775fdf08707d5b2fbbc1e91722cd0 | [
"Apache-2.0"
] | 2 | 2021-11-10T01:18:14.000Z | 2021-11-10T01:35:54.000Z | lib/mix/lib/mix/tasks/test.ex | LaudateCorpus1/elixir | b131f874640775fdf08707d5b2fbbc1e91722cd0 | [
"Apache-2.0"
] | 1 | 2021-10-21T08:22:30.000Z | 2021-10-21T08:22:30.000Z | lib/mix/lib/mix/tasks/test.ex | LaudateCorpus1/elixir | b131f874640775fdf08707d5b2fbbc1e91722cd0 | [
"Apache-2.0"
] | 1 | 2020-12-18T19:20:35.000Z | 2020-12-18T19:20:35.000Z | defmodule Mix.Tasks.Test do
use Mix.Task
alias Mix.Compilers.Test, as: CT
@compile {:no_warn_undefined, [ExUnit, ExUnit.Filters]}
@shortdoc "Runs a project's tests"
@recursive true
@preferred_cli_env :test
@moduledoc ~S"""
Runs the tests for a project.
This task starts the current application, loa... | 33.393524 | 113 | 0.679023 |
911f3cbf07f2ed2e88e627cfaa59886ea6c1ae55 | 3,476 | ex | Elixir | lib/liquex/parser/tag/iteration.ex | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 19 | 2020-02-29T01:37:11.000Z | 2022-03-15T06:45:20.000Z | lib/liquex/parser/tag/iteration.ex | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 19 | 2020-09-02T19:35:08.000Z | 2022-03-31T21:42:16.000Z | lib/liquex/parser/tag/iteration.ex | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 4 | 2020-10-20T08:22:43.000Z | 2022-01-19T17:21:32.000Z | defmodule Liquex.Parser.Tag.Iteration do
@moduledoc false
import NimbleParsec
alias Liquex.Parser.Argument
alias Liquex.Parser.Field
alias Liquex.Parser.Literal
alias Liquex.Parser.Tag
alias Liquex.Parser.Tag.ControlFlow
@spec for_expression(NimbleParsec.t()) :: NimbleParsec.t()
def for_expression(... | 26.945736 | 69 | 0.639816 |
911f3d707d43cfbe8b288a8c351e4c65b223f1f5 | 2,310 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_transformations.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_transformations.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_record_transformations.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "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.258065 | 226 | 0.762338 |
911f3e1e593fa26d32090e0df6dfb9e38a7cf39c | 1,025 | exs | Elixir | test/models/reading_test.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | test/models/reading_test.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | test/models/reading_test.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | defmodule BioMonitor.ReadingTest do
use BioMonitor.ModelCase
alias BioMonitor.Reading
alias BioMonitor.Routine
@routine_valid_attrs %{title: Faker.File.file_name(), estimated_time_seconds: "#{Faker.Commerce.price()}", extra_notes: Faker.File.file_name(), medium: Faker.Beer.name(), strain: Faker.Beer.malt(), t... | 42.708333 | 367 | 0.708293 |
911f573619547964565a9fe4be3f110db63b907e | 2,995 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/accounts/email.ex | hassanshaikley/nerves_hub_web | 9e187eacc0fbaa848d157b832a9ee6223019f0bd | [
"Apache-2.0"
] | 1 | 2019-10-13T10:56:28.000Z | 2019-10-13T10:56:28.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/accounts/email.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_web_core/lib/nerves_hub_web_core/accounts/email.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWebCore.Accounts.Email do
use Bamboo.Phoenix, view: NervesHubWebCore.EmailView
alias NervesHubWebCore.Accounts.{Invite, Org, User, OrgUser}
@from {"NervesHub", "no-reply@nerves-hub.org"}
def invite(%Invite{} = invite, %Org{} = org) do
new_email()
|> from(@from)
|> to(invite.ema... | 35.654762 | 98 | 0.676127 |
911f752a4724fb7a37e5254f4b66277af8c674a2 | 98 | ex | Elixir | lib/shopix_web/views/admin/home_view.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | lib/shopix_web/views/admin/home_view.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | lib/shopix_web/views/admin/home_view.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule ShopixWeb.Admin.HomeView do
use ShopixWeb, :view
import Shopix.Admin.Statistics
end
| 19.6 | 37 | 0.806122 |
911f7acf8e0646c122bafe4018fed6cf2c8e31a4 | 602 | ex | Elixir | lib/tx/delegate.ex | sgessa/dpos-ex | b2b3407fd120224b800fe755e3966556fd609e20 | [
"MIT"
] | 4 | 2018-07-10T09:39:01.000Z | 2020-09-11T22:46:45.000Z | lib/tx/delegate.ex | lwfcoin/dpos-ex | b2b3407fd120224b800fe755e3966556fd609e20 | [
"MIT"
] | null | null | null | lib/tx/delegate.ex | lwfcoin/dpos-ex | b2b3407fd120224b800fe755e3966556fd609e20 | [
"MIT"
] | null | null | null | defmodule Dpos.Tx.Delegate do
use Dpos.Tx, type: 2
@doc """
Sets the delegate username to be registered.
"""
@spec set_delegate(Dpos.Tx.t(), String.t()) :: Dpos.Tx.t()
def set_delegate(%Dpos.Tx{} = tx, username) when is_binary(username) do
username = username |> String.downcase() |> String.trim()
M... | 31.684211 | 94 | 0.677741 |
911fb6a8d268ea2d3021ad321cd8ac897d0b75ac | 1,544 | exs | Elixir | elixir/scrabble-score/scrabble_score_test.exs | bwheel/exercism | 6648252bf61f0782ff0a0469ce0df6bf483b3d4d | [
"MIT"
] | null | null | null | elixir/scrabble-score/scrabble_score_test.exs | bwheel/exercism | 6648252bf61f0782ff0a0469ce0df6bf483b3d4d | [
"MIT"
] | null | null | null | elixir/scrabble-score/scrabble_score_test.exs | bwheel/exercism | 6648252bf61f0782ff0a0469ce0df6bf483b3d4d | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("scrabble.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule ScrabbleScoreTest do
use ExUnit.Case
# @tag :pending
test "empty word scores zero" do
assert Scrabble.score("") == 0
end
# @tag :pendi... | 28.072727 | 441 | 0.75 |
911fc7857d06a11439d82642f906785694abf550 | 899 | exs | Elixir | apps/util/.formatter.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | apps/util/.formatter.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | apps/util/.formatter.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 37.458333 | 62 | 0.749722 |
911fcd951db1da93214ebc77591632411a015dfc | 2,029 | exs | Elixir | config/dev.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | config/dev.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | config/dev.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :shopix, ShopixWeb.Endpoint,
http: [port: 4000... | 29.838235 | 170 | 0.698374 |
911fd0c9739c3c0b1460a26670391d7824fe831e | 3,542 | ex | Elixir | lib/ex_aws/transcribe.ex | Mersecha/ex_aws_transcribe | adb276a0df2f473fc12d9f467199fa10250e3b8b | [
"MIT"
] | 1 | 2020-05-01T00:00:20.000Z | 2020-05-01T00:00:20.000Z | lib/ex_aws/transcribe.ex | Mersecha/ex_aws_transcribe | adb276a0df2f473fc12d9f467199fa10250e3b8b | [
"MIT"
] | 2 | 2019-12-01T08:12:29.000Z | 2020-05-22T18:28:20.000Z | lib/ex_aws/transcribe.ex | Mersecha/ex_aws_transcribe | adb276a0df2f473fc12d9f467199fa10250e3b8b | [
"MIT"
] | 2 | 2020-05-22T06:02:42.000Z | 2021-04-29T23:17:09.000Z | defmodule ExAws.Transcribe do
@moduledoc """
Operations for AWS Transcribe
"""
import ExAws.Utils, only: [camelize_keys: 2]
@version "2017-10-26"
@doc """
Starts an asynchronous job to transcribe speech to text.
Doc: <https://docs.aws.amazon.com/transcribe/latest/dg/API_StartTranscriptionJob.h... | 28.111111 | 130 | 0.640316 |
9120009b774cfd79ffb2f31161cdcda594c8112d | 577 | exs | Elixir | apps/ewallet_api/test/ewallet_api/v1/serializers/json/settings_serializer_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_api/test/ewallet_api/v1/serializers/json/settings_serializer_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/test/ewallet_api/v1/serializers/json/settings_serializer_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletAPI.V1.SettingsSerializerTest do
use EWalletAPI.SerializerCase, :v1
alias EWalletAPI.V1.JSON.SettingsSerializer
describe "V1.JSON.SettingsSerializer" do
test "serialized data contains a list of minted_tokens" do
settings = %{minted_tokens: build_list(3, :minted_token)}
serialized... | 33.941176 | 63 | 0.750433 |
91200e85aaa875c22ae36f91159f688c1ebfee12 | 748 | exs | Elixir | mix.exs | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | null | null | null | mix.exs | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | null | null | null | mix.exs | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | null | null | null | defmodule Redbird.Mixfile do
use Mix.Project
def project do
[
app: :redbird,
build_embedded: Mix.env() == :prod,
deps: deps(),
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
version: "0.4.0",
package: [
maintainers: ["anellis", "drapergeek"],
li... | 20.216216 | 69 | 0.498663 |
912031010e976c9980dbc90e5de5e09903db2479 | 7,810 | exs | Elixir | test/base_test.exs | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 3 | 2020-01-12T03:16:38.000Z | 2020-09-06T03:37:03.000Z | test/base_test.exs | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 7 | 2019-10-14T14:27:31.000Z | 2020-05-01T22:27:52.000Z | test/base_test.exs | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 1 | 2020-02-06T23:19:24.000Z | 2020-02-06T23:19:24.000Z | defmodule XDR.BaseTest do
@moduledoc """
Tests for `XDR.Base`. See `test/support/custom_xdr.ex` for the custom type definitions
"""
use ExUnit.Case
# run the doctests inherited from XDR.Base
doctest CustomXDR
@address_value [
nick_name: "Home",
street: "4200 Canal St",
city: "New Orleans",
... | 30.992063 | 97 | 0.636236 |
912043cd83d7282160746cd645ac1f91196e4b81 | 90 | ex | Elixir | community/betterdev/lib/betterdev/web/views/page_view.ex | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 79 | 2017-07-03T13:04:08.000Z | 2022-02-11T13:59:37.000Z | community/betterdev/lib/betterdev/web/views/page_view.ex | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 16 | 2017-07-09T03:16:27.000Z | 2022-01-14T14:29:57.000Z | community/betterdev/lib/betterdev/web/views/page_view.ex | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 10 | 2017-07-09T02:58:59.000Z | 2021-09-14T08:01:02.000Z | defmodule Betterdev.Web.PageView do
use Betterdev.Web, :view
import Kerosene.HTML
end
| 18 | 35 | 0.788889 |
91205c14ae217d4d8686f24f7a02ba9506c43dd4 | 619 | ex | Elixir | lib/bitcoin/protocol/messages/pong.ex | justinlynn/bitcoin-ex | 42a10731484fa486cfa9001bd7ec7dfec85da237 | [
"Apache-2.0"
] | 59 | 2015-06-08T12:17:12.000Z | 2021-02-08T20:04:34.000Z | lib/bitcoin/protocol/messages/pong.ex | justinlynn/bitcoin-ex | 42a10731484fa486cfa9001bd7ec7dfec85da237 | [
"Apache-2.0"
] | 4 | 2017-03-26T12:56:59.000Z | 2021-05-29T01:26:57.000Z | lib/bitcoin/protocol/messages/pong.ex | justinlynn/bitcoin-ex | 42a10731484fa486cfa9001bd7ec7dfec85da237 | [
"Apache-2.0"
] | 18 | 2015-06-08T06:53:45.000Z | 2020-12-25T00:53:40.000Z | defmodule Bitcoin.Protocol.Messages.Pong do
@moduledoc """
The pong message is sent in response to a ping message. In modern protocol versions, a pong response is generated
using a nonce included in the ping.
https://en.bitcoin.it/wiki/Protocol_specification#pong
"""
defstruct nonce: 0 # nonce from... | 19.34375 | 117 | 0.667205 |
91206c0517485a1cfee843b4500609f06a0afe40 | 304 | exs | Elixir | priv/repo/migrations/20200726172104_create_owners.exs | kamiyuzu/neko_caffe | 84afd6559c89521ce95d27d65d2f0c3a88a92d11 | [
"MIT"
] | 2 | 2020-07-30T18:40:58.000Z | 2020-08-01T00:14:05.000Z | priv/repo/migrations/20200726172104_create_owners.exs | kamiyuzu/neko_caffe | 84afd6559c89521ce95d27d65d2f0c3a88a92d11 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200726172104_create_owners.exs | kamiyuzu/neko_caffe | 84afd6559c89521ce95d27d65d2f0c3a88a92d11 | [
"MIT"
] | 1 | 2021-09-23T17:24:45.000Z | 2021-09-23T17:24:45.000Z | defmodule NekoCaffe.Repo.Migrations.CreateOwners do
use Ecto.Migration
def change do
create table(:owners) do
add :name, :string
add :email, :string
add :cat_id, references(:cats, on_delete: :nothing)
timestamps()
end
create index(:owners, [:cat_id])
end
end
| 19 | 57 | 0.657895 |
91207046a43631f8edd7e74c084f816bc02a7997 | 1,930 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/posture_detail.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_management/lib/google_api/android_management/v1/model/posture_detail.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_management/lib/google_api/android_management/v1/model/posture_detail.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... | 38.6 | 222 | 0.748705 |
9120ce32e29859cc0b781a020c011bf3b92b89b0 | 1,799 | ex | Elixir | lib/schema/MenuBar.ex | mpotra/ex_sni | ff2187da7208348a315eda03fe086a3ce5ded27c | [
"MIT"
] | null | null | null | lib/schema/MenuBar.ex | mpotra/ex_sni | ff2187da7208348a315eda03fe086a3ce5ded27c | [
"MIT"
] | 1 | 2022-01-14T10:43:25.000Z | 2022-01-14T10:43:25.000Z | lib/schema/MenuBar.ex | elixir-desktop/ex_sni | 9bbd4f18e271ddd66db54afd6409149fc6bebe4f | [
"MIT"
] | null | null | null | defmodule ExSni.Schema.MenuBar do
use ExDBus.Schema
node do
interface "com.canonical.dbusmenu" do
annotation("org.gtk.GDBus.C.Name", "Xml")
property("Version", "u", :read)
property("Status", "s", :read)
property("TextDirection", "s", :read)
property("IconThemePath", "as", :read)
... | 24.643836 | 65 | 0.502501 |
9120d7b4b5d86282f2d7effd66a5b74fdd2c7e8a | 4,861 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/products.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/products.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/products.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.173554 | 170 | 0.693684 |
9120e3fed274099c7035aac3e29c88a651765fec | 1,503 | ex | Elixir | lib/inmana_web/endpoint.ex | alvaroico/NLW5Elixir | 0f62119c422fc40a9ec0b4f700742fa4b6f1271e | [
"MIT"
] | 1 | 2021-10-18T21:31:58.000Z | 2021-10-18T21:31:58.000Z | lib/inmana_web/endpoint.ex | alvaroico/NLW5Elixir | 0f62119c422fc40a9ec0b4f700742fa4b6f1271e | [
"MIT"
] | null | null | null | lib/inmana_web/endpoint.ex | alvaroico/NLW5Elixir | 0f62119c422fc40a9ec0b4f700742fa4b6f1271e | [
"MIT"
] | null | null | null | defmodule InmanaWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :inmana
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_inmana_key"... | 28.358491 | 97 | 0.71324 |
91210accd959d3565e81574d53da271e78ef0120 | 2,551 | ex | Elixir | test/support/adapter.ex | chaodhib/spandex | 58674c5440c7800658a52d199532a620406dcdd2 | [
"MIT"
] | null | null | null | test/support/adapter.ex | chaodhib/spandex | 58674c5440c7800658a52d199532a620406dcdd2 | [
"MIT"
] | 1 | 2018-10-04T13:29:32.000Z | 2018-10-04T13:29:32.000Z | test/support/adapter.ex | chaodhib/spandex | 58674c5440c7800658a52d199532a620406dcdd2 | [
"MIT"
] | 1 | 2019-08-08T16:40:10.000Z | 2019-08-08T16:40:10.000Z | defmodule Spandex.TestAdapter do
@moduledoc false
@behaviour Spandex.Adapter
require Logger
alias Spandex.SpanContext
@max_id 9_223_372_036_854_775_807
@impl Spandex.Adapter
def trace_id(), do: :rand.uniform(@max_id)
@impl Spandex.Adapter
def span_id(), do: trace_id()
@impl Spandex.Adapter
de... | 28.344444 | 109 | 0.684045 |
91210c403afc2eb3575bd8460b65a7d55872036c | 272 | exs | Elixir | config/test.exs | bcentinaro/cors-proxy | 19ae9524f392914990fabbb4042f80cae4262982 | [
"MIT"
] | 1 | 2020-11-05T07:02:41.000Z | 2020-11-05T07:02:41.000Z | config/test.exs | bcentinaro/cors-proxy | 19ae9524f392914990fabbb4042f80cae4262982 | [
"MIT"
] | null | null | null | config/test.exs | bcentinaro/cors-proxy | 19ae9524f392914990fabbb4042f80cae4262982 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :cors_proxy, CorsProxy.Web.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.727273 | 56 | 0.738971 |
91210f0a06d7f0cfb0e94eb26e3a432c2066e942 | 546 | ex | Elixir | lib/sobelow/sql/stream.ex | samhstn/sobelow | c699e62509c137fbaaeb79213e9f1c68969ede21 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/sql/stream.ex | samhstn/sobelow | c699e62509c137fbaaeb79213e9f1c68969ede21 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/sql/stream.ex | samhstn/sobelow | c699e62509c137fbaaeb79213e9f1c68969ede21 | [
"Apache-2.0"
] | null | null | null | defmodule Sobelow.SQL.Stream do
use Sobelow.Finding
@finding_type "SQL.Stream: SQL injection"
def run(fun, meta_file) do
confidence = if !meta_file.is_controller?, do: :low
Finding.init(@finding_type, meta_file.filename, confidence)
|> Finding.multi_from_def(fun, parse_sql_def(fun))
|> Enum.each... | 24.818182 | 63 | 0.686813 |
912112ac433d8b3425f123bbea5d86e432c4b37a | 3,533 | exs | Elixir | config/config.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | null | null | null | config/config.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 2 | 2019-12-13T23:55:50.000Z | 2019-12-17T05:49:58.000Z | config/config.exs | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :core,
ecto_repos: [Core.Repo],
broker: Core.Conduit.Broker
config :piazza_core,
repos: [Core.Repo]
config :piazza_core,
shutdown_delay: 60 * 1000
config :api, ApiWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "1rkd5+lxJbdTadyxW7qF/n1fNzKPV010PKf8SEGmUrXwMw0iAZyoyZgWEwr6n... | 24.534722 | 86 | 0.730541 |
91212ffe61a80d47b3d246ed641fc39ae44a72e4 | 1,418 | ex | Elixir | web/calculators/shipping_calculator.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/calculators/shipping_calculator.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/calculators/shipping_calculator.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.ShippingCalculator do
use GenServer
alias __MODULE__
alias Nectar.Order
alias Nectar.ShippingMethod
# generate all possible shippings
def calculate_applicable_shippings(%Order{} = order, available_shipping_methods) do
# let it crash in any situation where data is not preloaded.
ca... | 34.585366 | 175 | 0.754584 |
9121478bab74a2a7f85fd82e2b193e4d48b78b87 | 1,799 | ex | Elixir | chromoid_web/lib/chromoid/devices/nfc/actions/color_action.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/lib/chromoid/devices/nfc/actions/color_action.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/lib/chromoid/devices/nfc/actions/color_action.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chromoid.Devices.NFC.ColorAction do
@moduledoc """
Changes the color of one a ble_link by it's `address`
* `address` format can be like A4:C1:38:F0:BA:29 or A4C138F0BA29
* `color` format can be one of the html common color names or #rrggbb
"""
require Logger
alias Chromoid.Devices.NFC.Action
... | 33.314815 | 100 | 0.71373 |
91214ce84867b314f456e9dcc751a4ac694d7ccf | 4,922 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/file_image_media_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/drive/lib/google_api/drive/v3/model/file_image_media_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/file_image_media_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 46 | 159 | 0.653393 |
91216c0d45961ee33ced326dba106a4fbac72235 | 1,117 | ex | Elixir | lib/custom.ex | vinceurag/smart_tracer | ee0cd831038e7b3c4b7c92b9796f225e8a35ee78 | [
"MIT"
] | 1 | 2020-02-03T09:46:21.000Z | 2020-02-03T09:46:21.000Z | lib/custom.ex | vinceurag/smart_tracer | ee0cd831038e7b3c4b7c92b9796f225e8a35ee78 | [
"MIT"
] | null | null | null | lib/custom.ex | vinceurag/smart_tracer | ee0cd831038e7b3c4b7c92b9796f225e8a35ee78 | [
"MIT"
] | null | null | null | defmodule SmartTracer.Custom do
@moduledoc ~S"""
With SmartTracer, you can also specify how you would want to present the traces.
Here's an example.
defmodule SmartTracer.Examples.CustomTracer do
use SmartTracer.Custom
def handle(:call, {module, fun, args}) do
IO.puts("#... | 29.394737 | 98 | 0.587287 |
912182a8f6c3092666dc1300932db8d1c96e08a3 | 334 | exs | Elixir | test/live_view_web/live/page_live_test.exs | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | null | null | null | test/live_view_web/live/page_live_test.exs | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | 4 | 2021-07-19T22:03:03.000Z | 2021-07-22T16:38:34.000Z | test/live_view_web/live/page_live_test.exs | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | null | null | null | defmodule LiveViewWeb.PageLiveTest do
use LiveViewWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Welcome to Phoenix!"
assert render(page_live) =~ "Welcome to Phoeni... | 27.833333 | 60 | 0.727545 |
912183d9add4dc7d04e339da570751f46cf726c8 | 1,539 | exs | Elixir | test/ironman/checks/credo_config_test.exs | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 39 | 2019-02-19T21:59:35.000Z | 2021-03-31T21:43:58.000Z | test/ironman/checks/credo_config_test.exs | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 17 | 2019-03-13T15:02:52.000Z | 2020-11-09T20:33:44.000Z | test/ironman/checks/credo_config_test.exs | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 5 | 2020-01-30T13:51:15.000Z | 2020-10-25T18:27:59.000Z | defmodule Ironman.Checks.CredoConfigTest do
use ExUnit.Case
alias Ironman.Checks.CredoConfig
alias Ironman.Config
alias Ironman.Test.Helpers.{ConfigFactory, MoxHelpers}
describe "run" do
test "skips when credo not present" do
config = ConfigFactory.with_deps()
{:skip, config2} = CredoConfig.... | 35.790698 | 91 | 0.673164 |
91218414b00a2a8e1c29d5fef7e540b723ccde9f | 574 | ex | Elixir | lib/live_sup/core/widgets/weather/handler.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup/core/widgets/weather/handler.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup/core/widgets/weather/handler.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Core.Widgets.Weather.Handler do
alias LiveSup.Core.Datasources.WeatherApiDatasource
import Logger
def get_data(%{"key" => _key, "location" => location} = args) do
debug("Handler: #{location}")
args
|> WeatherApiDatasource.get_current_weather()
|> process_response()
end
def... | 30.210526 | 89 | 0.663763 |
91219d7949f304b021f0a5ea5213b62afa5155c5 | 1,994 | exs | Elixir | config/prod.exs | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | config/prod.exs | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | config/prod.exs | MattFerraro/Axon | 9c41c617ffd4a8dac89319d2f26f5736d9f96ca4 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.607143 | 66 | 0.712136 |
9121b516f7295fa11380db4674ec79d93b83d9d3 | 6,526 | ex | Elixir | lib/bow.ex | Iluminai/bow | b3ccefb1aaac9fb55e4f9f81832a9f1b7141c2b4 | [
"MIT"
] | null | null | null | lib/bow.ex | Iluminai/bow | b3ccefb1aaac9fb55e4f9f81832a9f1b7141c2b4 | [
"MIT"
] | 2 | 2021-06-28T23:04:53.000Z | 2021-06-29T18:31:07.000Z | lib/bow.ex | Iluminai/bow | b3ccefb1aaac9fb55e4f9f81832a9f1b7141c2b4 | [
"MIT"
] | null | null | null | defmodule Bow do
@moduledoc """
Bow - the file uploader
## Global Configuration
config :bow,
storage: Bow.Storage.Local, # storage adapter; Bow.Storage.Local or Bow.Storage.S3
storage_prefix: "priv/static/uploads", # storage directory prefix
serve_from_path: "/public/"... | 26 | 137 | 0.571407 |
91220404708addc0dd4325457b7ffc3fa4b62c6f | 1,214 | exs | Elixir | test/fly_postgres_test.exs | Kloenk/fly_postgres_elixir | 1291512b23718066a909758425da92fd8c4fdee4 | [
"Apache-2.0"
] | null | null | null | test/fly_postgres_test.exs | Kloenk/fly_postgres_elixir | 1291512b23718066a909758425da92fd8c4fdee4 | [
"Apache-2.0"
] | null | null | null | test/fly_postgres_test.exs | Kloenk/fly_postgres_elixir | 1291512b23718066a909758425da92fd8c4fdee4 | [
"Apache-2.0"
] | null | null | null | defmodule Fly.PostgresTest do
# uses async false because we mess with the DATABASE_ENV value
use ExUnit.Case, async: false
doctest Fly.Postgres
setup do
System.put_env([{"FLY_REGION", "abc"}])
System.put_env([{"PRIMARY_REGION", "xyz"}])
System.put_env([
{"DATABASE_URL",
"postgres://s... | 28.232558 | 100 | 0.675453 |
91221d718d3ef4b5c6a3c0bb6a81dd4d8f848f4b | 2,721 | ex | Elixir | lib/chat_api/application.ex | 8otco/papercups | f07fe51e6161fdd772fe7cef59e7777951cddc41 | [
"MIT"
] | 1 | 2021-06-17T03:17:24.000Z | 2021-06-17T03:17:24.000Z | lib/chat_api/application.ex | 8otco/papercups | f07fe51e6161fdd772fe7cef59e7777951cddc41 | [
"MIT"
] | null | null | null | lib/chat_api/application.ex | 8otco/papercups | f07fe51e6161fdd772fe7cef59e7777951cddc41 | [
"MIT"
] | null | null | null | defmodule ChatApi.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
pub_sub_opts =
case System.get_env("REDIS_URL") do
"rediss://" <> _url ->
[
name: C... | 30.920455 | 116 | 0.633958 |
9122236484481ecc975a71a4e96ac5b0d4e27780 | 2,626 | ex | Elixir | lib/frame_parser.ex | raphaelahrens/elixir_beep | 4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d | [
"BSD-2-Clause"
] | null | null | null | lib/frame_parser.ex | raphaelahrens/elixir_beep | 4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d | [
"BSD-2-Clause"
] | null | null | null | lib/frame_parser.ex | raphaelahrens/elixir_beep | 4e94a2aaccb6f2c6b38d3d57bb9e8af4b9392f2d | [
"BSD-2-Clause"
] | null | null | null | defmodule Frame do
defmodule Header do
defstruct channel: 0,
msgno: 0,
more: false,
seqno: 0,
size: 0
end
defmodule AnsHeader do
defstruct channel: 0,
msgno: 0,
more: false,
seqno: 0,
size:... | 27.642105 | 104 | 0.597867 |
912258b1318989057e753090f6be37aed4079eaa | 40 | exs | Elixir | apps/platform_runner/test/test_helper.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/platform_runner/test/test_helper.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/platform_runner/test/test_helper.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | ExUnit.start(seed: 0, exclude: [:skip])
| 20 | 39 | 0.675 |
9122c53b4a4e5fb17da69f03651238786d6b1c00 | 1,854 | ex | Elixir | lib/ash/resource/aggregate.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/resource/aggregate.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/resource/aggregate.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Aggregate do
@moduledoc "Represents a named aggregate on the resource that can be loaded"
defstruct [:name, :relationship_path, :filter, :kind, :description, :private?, :field, :sort]
@schema [
name: [
type: :atom,
doc: "The field to place the aggregate in",
required:... | 26.112676 | 128 | 0.579288 |
9122feef3d59d81d21ab334f348006b775f8cd91 | 17,416 | exs | Elixir | test/mix/tasks/hex.publish_test.exs | Benjamin-Philip/hex | 19860cfb33fee0a80c49d38ef1d5f407baa72148 | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | test/mix/tasks/hex.publish_test.exs | Benjamin-Philip/hex | 19860cfb33fee0a80c49d38ef1d5f407baa72148 | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | test/mix/tasks/hex.publish_test.exs | Benjamin-Philip/hex | 19860cfb33fee0a80c49d38ef1d5f407baa72148 | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Mix.Tasks.Docs do
def run(_) do
File.mkdir_p!("doc")
File.write!("doc/index.html", "the index")
end
end
defmodule Mix.Tasks.Hex.PublishTest do
use HexTest.IntegrationCase
defmodule DocsSimple.MixProject do
def project do
[app: :ex_doc, version: "0.1.0", aliases: [docs: [&docs/1]]]
... | 32.675422 | 101 | 0.626321 |
91231a66dd35c92b9542d89816f2e64061e6cd4f | 348 | exs | Elixir | priv/repo/migrations/20170419192307_create_main_option.exs | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | priv/repo/migrations/20170419192307_create_main_option.exs | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | priv/repo/migrations/20170419192307_create_main_option.exs | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | defmodule Quest.Repo.Migrations.CreateQuest.Main.Option do
use Ecto.Migration
def change do
create table(:main_options) do
add :title, :string
add :order, :integer
add :question_id, references(:main_questions, on_delete: :delete_all)
timestamps()
end
create index(:main_options... | 21.75 | 75 | 0.695402 |
91233034fe1b7874c81cec3481327816c5c7ac5c | 4,581 | exs | Elixir | mix.exs | krushi123/livebook | 112b47908d2d0a51bf8ed4ffcf38fbf77b26fc9e | [
"Apache-2.0"
] | null | null | null | mix.exs | krushi123/livebook | 112b47908d2d0a51bf8ed4ffcf38fbf77b26fc9e | [
"Apache-2.0"
] | null | null | null | mix.exs | krushi123/livebook | 112b47908d2d0a51bf8ed4ffcf38fbf77b26fc9e | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.MixProject do
use Mix.Project
@version "0.5.0"
@description "Interactive and collaborative code notebooks - made with Phoenix LiveView"
def project do
[
app: :livebook,
version: @version,
elixir: "~> 1.13",
name: "Livebook",
description: @description,
... | 27.267857 | 98 | 0.576075 |
91239370d93c040c92210edadaf4e4ce1a7cbf05 | 2,662 | ex | Elixir | lib/ratatouille/runtime/subscription.ex | krgn/ratatouille | b5ed610c7e8fe64f6be372144c1d3a670b6fabed | [
"MIT"
] | null | null | null | lib/ratatouille/runtime/subscription.ex | krgn/ratatouille | b5ed610c7e8fe64f6be372144c1d3a670b6fabed | [
"MIT"
] | null | null | null | lib/ratatouille/runtime/subscription.ex | krgn/ratatouille | b5ed610c7e8fe64f6be372144c1d3a670b6fabed | [
"MIT"
] | null | null | null | defmodule Ratatouille.Runtime.Subscription do
@moduledoc """
Subscriptions provide a way for the app to be notified via
`c:Ratatouille.App.update/2` when something interesting happens.
Subscriptions should be constructed via the functions below and not via the
struct directly, as this is internal and subject... | 39.731343 | 80 | 0.73441 |
912397158a03df987719256ca20b32a5c3d30418 | 1,134 | exs | Elixir | samples/client/petstore/elixir/config/config.exs | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/config/config.exs | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | 1 | 2022-01-06T22:28:02.000Z | 2022-01-06T22:28:02.000Z | samples/client/petstore/elixir/config/config.exs | lob/swagger-codegen | cd4aaa272342b473f940576913d38378f0392991 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
import 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 parent... | 36.580645 | 73 | 0.755732 |
9123bfd4eb7040f8136d3246eae448a8ff5352b7 | 3,344 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/operation.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/operation.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/operation.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... | 55.733333 | 661 | 0.727871 |
9123c645f217010b3580238ad16e3d9c4d963001 | 367 | exs | Elixir | priv/repo/migrations/20170903111544_create_lines.exs | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 40 | 2017-04-19T15:35:42.000Z | 2020-02-14T11:07:44.000Z | priv/repo/migrations/20170903111544_create_lines.exs | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 43 | 2017-01-17T23:03:47.000Z | 2018-08-16T01:25:24.000Z | priv/repo/migrations/20170903111544_create_lines.exs | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 6 | 2018-02-15T09:43:15.000Z | 2018-04-10T21:08:36.000Z | defmodule Docdog.Repo.Migrations.CreateLines do
use Ecto.Migration
def change do
create table(:lines) do
add(:original_text, :text)
add(:translated_text, :text)
add(:document_id, references(:documents, on_delete: :nothing))
add(:index_number, :integer)
timestamps()
end
c... | 21.588235 | 68 | 0.6703 |
9123d979ceb58c8a2efabdefa4a419ba28f964d3 | 731 | ex | Elixir | lib/rand_nif.ex | gyson/rand_nif | 2f087b9081766fdffd7bc6a383017930c412dc05 | [
"MIT"
] | 3 | 2019-02-24T21:33:45.000Z | 2021-09-03T16:21:21.000Z | lib/rand_nif.ex | gyson/rand_nif | 2f087b9081766fdffd7bc6a383017930c412dc05 | [
"MIT"
] | null | null | null | lib/rand_nif.ex | gyson/rand_nif | 2f087b9081766fdffd7bc6a383017930c412dc05 | [
"MIT"
] | null | null | null | defmodule RandNif do
@moduledoc """
RandNif is a native implementation (NIF) in Rust for random number generator, similar to `:rand` module.
"""
use Bitwise
use Rustler, otp_app: :rand_nif, crate: :randnif
@doc """
Return a random float distributed in range between 0.0 (inclusive) and 1.0 (exclusive), s... | 27.074074 | 120 | 0.677155 |
91240568fb0a461fb4ad9edcb6f5815ada3f0dec | 7,882 | ex | Elixir | apps/re/lib/exporters/vivareal.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/lib/exporters/vivareal.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/lib/exporters/vivareal.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Exporters.Vivareal do
@moduledoc """
Listing XML exporters for vivareal
"""
@exported_attributes ~w(id title transaction_type highlight inserted_at updated_at detail_url
images details location contact_info)a
@listing_types ~w(Apartment Home Penthouse)
@frontend_url ... | 32.570248 | 97 | 0.627506 |
912409a1365ead8a71cf28f60d6732d72b7be9d8 | 1,826 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/node_group_affinity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/node_group_affinity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/node_group_affinity.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... | 38.851064 | 469 | 0.751369 |
91243681ea82288cd97e1b84109de5feea859ae5 | 1,826 | exs | Elixir | bank-account/bank_account_test.exs | elasticdog/xelixir | ad6b006b0d492bf5b2abee0eb757246d8cd580cd | [
"MIT"
] | null | null | null | bank-account/bank_account_test.exs | elasticdog/xelixir | ad6b006b0d492bf5b2abee0eb757246d8cd580cd | [
"MIT"
] | null | null | null | bank-account/bank_account_test.exs | elasticdog/xelixir | ad6b006b0d492bf5b2abee0eb757246d8cd580cd | [
"MIT"
] | null | null | null | if System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("example.exs")
else
Code.load_file("account.exs")
end
ExUnit.start
# The BankAccount module should support four calls:
#
# open_bank()
# Called at the start of each test. Returns an account handle.
#
# close_bank(account)
# Called at the end of eac... | 26.852941 | 97 | 0.694962 |
9124414be68865180f3d2a504fe99d255399adda | 947 | exs | Elixir | config/config.exs | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | null | null | null | config/config.exs | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | null | null | null | config/config.exs | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"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... | 45.095238 | 73 | 0.762408 |
9124436da689b190877bb12d1c5f8ad4a45445da | 2,539 | ex | Elixir | lib/tube_streamer/metrics.ex | surik/tube_streamer | c353e8512ec6b7521c18e8bdad927d8abad0d346 | [
"MIT"
] | 1 | 2018-02-06T17:28:51.000Z | 2018-02-06T17:28:51.000Z | lib/tube_streamer/metrics.ex | surik/tube_streamer | c353e8512ec6b7521c18e8bdad927d8abad0d346 | [
"MIT"
] | null | null | null | lib/tube_streamer/metrics.ex | surik/tube_streamer | c353e8512ec6b7521c18e8bdad927d8abad0d346 | [
"MIT"
] | null | null | null | defmodule TubeStreamer.Metrics do
require Logger
alias :exometer, as: Exometer
def subscribe([:erlang, :beam, :star_time], _), do: []
def subscribe([:api, :request, :counter, _status] = metric, :counter), do:
{metric, :value, get_interval(), [series_name: "api.request.counter",
... | 32.974026 | 98 | 0.639228 |
91244a3efa3f1da926c1b6072a3cd3a85255f901 | 906 | ex | Elixir | lib/listentothis_web/router.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | lib/listentothis_web/router.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | lib/listentothis_web/router.ex | IamTheLime/listentothis | cc2b4ca3a11623e68f5657d8538a586fddeba85b | [
"Apache-2.0"
] | null | null | null | defmodule ListentothisWeb.Router do
use ListentothisWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Listentothis.Auth, repo: Listentothis.Repo
end
pipeline :api do
plug ... | 27.454545 | 76 | 0.688742 |
912450170d5e46dc7cb254e5d1ac37c00698f8b6 | 2,012 | exs | Elixir | test/decryptor_test.exs | jgaviria/symmetric_encryption | f9790a3df02795a50af0975635390e5284e9c5b1 | [
"Apache-2.0"
] | 2 | 2020-08-20T20:01:07.000Z | 2020-08-21T01:47:08.000Z | test/decryptor_test.exs | jgaviria/symmetric_encryption | f9790a3df02795a50af0975635390e5284e9c5b1 | [
"Apache-2.0"
] | 2 | 2020-09-28T14:46:21.000Z | 2020-10-12T22:04:56.000Z | test/decryptor_test.exs | jgaviria/symmetric_encryption | f9790a3df02795a50af0975635390e5284e9c5b1 | [
"Apache-2.0"
] | 2 | 2020-09-24T14:37:03.000Z | 2020-10-11T11:15:19.000Z | defmodule DecryptorTest do
use ExUnit.Case
doctest SymmetricEncryption.Decryptor
@long_string "This is a really long string for testing compression that needs to span more than one AES block."
test "decrypts" do
encrypted = SymmetricEncryption.Encryptor.encrypt("Hello World")
decrypted = SymmetricEncr... | 41.061224 | 117 | 0.763419 |
9124588b3fb034df96347e24c8fca132e90dfd38 | 19,379 | ex | Elixir | lib/funcio/enum/value_at/value_at.ex | ianrumford/plymio_funcio | 87fddc0a21e70ba8916961ea3bc22ee3cda0cd2b | [
"MIT"
] | null | null | null | lib/funcio/enum/value_at/value_at.ex | ianrumford/plymio_funcio | 87fddc0a21e70ba8916961ea3bc22ee3cda0cd2b | [
"MIT"
] | null | null | null | lib/funcio/enum/value_at/value_at.ex | ianrumford/plymio_funcio | 87fddc0a21e70ba8916961ea3bc22ee3cda0cd2b | [
"MIT"
] | null | null | null | defmodule Plymio.Funcio.Enum.ValueAt do
@moduledoc ~S"""
Functions for Specific Values in an Enum.
See `Plymio.Funcio` for overview and other documentation terms.
## Documentation Terms
In the documentation below these terms, usually in *italics*, are used to mean the same thing.
### *index*, *indices* ... | 28.967115 | 155 | 0.546158 |
9124953241258540bd7e7b47f328ad11ca3e0b94 | 1,975 | ex | Elixir | lib/pact_elixir/mock_server/rust_pact_mock_server_facade.ex | elitau/pact-elixir | 9b75e868b71901c5755d438ec3fceb08efd545e0 | [
"MIT"
] | null | null | null | lib/pact_elixir/mock_server/rust_pact_mock_server_facade.ex | elitau/pact-elixir | 9b75e868b71901c5755d438ec3fceb08efd545e0 | [
"MIT"
] | null | null | null | lib/pact_elixir/mock_server/rust_pact_mock_server_facade.ex | elitau/pact-elixir | 9b75e868b71901c5755d438ec3fceb08efd545e0 | [
"MIT"
] | null | null | null | defmodule PactElixir.RustPactMockServerFacade do
@moduledoc """
Adapter for the wrapped rust [pact mock server](https://github.com/pact-foundation/pact-reference).
Functions in this file are replaced by Rustler with their Rust calling
counterpart. See native/pactmockserver/src/lib.rs for the concrete Rust
imp... | 36.574074 | 258 | 0.68962 |
91249ecc4282323b12813d688b47269cf494c693 | 1,435 | exs | Elixir | test/vintage_net/connectivity/lan_checker_test.exs | nerves-networking/vintage_net | 8d4251a0ec995babf8f4d7aa7cc1d74b70646c72 | [
"Apache-2.0"
] | 85 | 2019-05-09T14:54:38.000Z | 2022-02-08T16:52:04.000Z | test/vintage_net/connectivity/lan_checker_test.exs | fhunleth/vintage_net | 215495533cb642eeb172daba08208a454f19b36f | [
"Apache-2.0"
] | 132 | 2019-05-09T15:57:59.000Z | 2022-02-28T16:31:22.000Z | test/vintage_net/connectivity/lan_checker_test.exs | fhunleth/vintage_net | 215495533cb642eeb172daba08208a454f19b36f | [
"Apache-2.0"
] | 14 | 2019-07-08T19:18:23.000Z | 2022-02-08T16:52:05.000Z | defmodule VintageNet.Connectivity.LANCheckerTest do
use ExUnit.Case, async: true
import ExUnit.CaptureLog
alias VintageNet.Connectivity.LANChecker
alias VintageNetTest.Utils
test "disconnected interface" do
property = ["interface", "disconnected_interface2", "connection"]
VintageNet.subscribe(propert... | 31.195652 | 100 | 0.73101 |
9124acce30ea04351d7709fea0a472ba2c86d1a0 | 4,054 | ex | Elixir | lib/ex_oauth2_provider/access_tokens/access_tokens.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/access_tokens/access_tokens.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | lib/ex_oauth2_provider/access_tokens/access_tokens.ex | loopsocial/ex_oauth2_provider | 59d177f1c7581e1d794823279067022b1598f5f2 | [
"MIT"
] | null | null | null | defmodule ExOauth2Provider.AccessTokens do
@moduledoc """
Defines a behaviour for interacting with an access_token.
"""
alias Ecto.Schema
alias ExOauth2Provider.Config
alias ExOauth2Provider.AccessTokens.AccessToken
alias ExOauth2Provider.Applications.Application
@callback revoke(AccessToken.t(), keyw... | 50.049383 | 98 | 0.712876 |
9124dc60a0644fc885920ee79f2ba21fc13c6158 | 724 | exs | Elixir | test/test_helper.exs | BennyHallett/anubis | 33bbe0edc83f377479e2d16c9dfde848fff874b2 | [
"MIT"
] | 134 | 2015-01-10T13:33:24.000Z | 2022-03-05T15:07:30.000Z | test/test_helper.exs | BennyHallett/anubis | 33bbe0edc83f377479e2d16c9dfde848fff874b2 | [
"MIT"
] | 3 | 2016-03-15T10:54:42.000Z | 2018-02-12T19:51:10.000Z | test/test_helper.exs | BennyHallett/anubis | 33bbe0edc83f377479e2d16c9dfde848fff874b2 | [
"MIT"
] | 12 | 2015-02-11T06:16:24.000Z | 2018-01-18T09:33:47.000Z | ExUnit.start()
defmodule ExampleModule do
def go({_args, _opts, _rc}) do
true
end
def print({_args, _opts, rc}) do
rc
end
end
defmodule TestHelperTask do
use Anubis
banner """
This is the test helper
======================
"""
rc_file %{
a: "A",
b: false,
c: 1,
d: 2.3
... | 13.923077 | 69 | 0.598066 |
9124ede9c84ed119468f217e29d49d14d084773e | 3,252 | ex | Elixir | apps/ex_wire/lib/ex_wire/message/neighbours.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/ex_wire/lib/ex_wire/message/neighbours.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/ex_wire/lib/ex_wire/message/neighbours.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExWire.Message.Neighbours do
@moduledoc """
A wrapper for ExWire's `Neighbours` message.
"""
alias ExWire.Struct.Neighbour
@behaviour ExWire.Message
@message_id 0x04
defstruct nodes: [],
timestamp: []
@type t :: %__MODULE__{
nodes: [Neighbour.t()],
timestamp... | 30.392523 | 136 | 0.556581 |
9124f10c604ae98f0f53d80383ca760fb54b326a | 1,764 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/browsers_list_response.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/browsers_list_response.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/browsers_list_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.28 | 156 | 0.735261 |
9124f6e7e9befda2770cbc68bc8f3c1a510358b9 | 9,317 | ex | Elixir | lib/core/account.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 19 | 2019-04-16T07:27:53.000Z | 2022-01-22T21:35:02.000Z | lib/core/account.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 131 | 2019-04-05T13:01:37.000Z | 2020-07-09T14:53:34.000Z | lib/core/account.ex | aeternity/aepp-sdk-elixir | a001b0eb264665623c9b05de25a71d1f13990679 | [
"0BSD"
] | 5 | 2019-04-11T19:21:42.000Z | 2022-03-06T09:08:34.000Z | defmodule AeppSDK.Account do
@moduledoc """
High-level module for Account-related activities.
In order for its functions to be used, a client must be defined first.
Client example can be found at: `AeppSDK.Client.new/4`
"""
alias AeppSDK.{AENS, Client, Middleware}
alias AeppSDK.Utils.Account, as: Account... | 30.850993 | 98 | 0.616293 |
9124fcc466c10c16b76677b2331ad918cc0dd558 | 1,083 | ex | Elixir | lib/Supervisor.ex | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | 1 | 2020-01-26T23:28:44.000Z | 2020-01-26T23:28:44.000Z | lib/Supervisor.ex | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | 1 | 2018-12-02T05:35:28.000Z | 2019-03-14T22:42:30.000Z | lib/Supervisor.ex | mithereal/elixir-softbank | 2e63b72c4f25d651f4aee654ee41c25ac938fda3 | [
"MIT"
] | null | null | null | defmodule SoftBank.Accountant.Supervisor do
use DynamicSupervisor
@registry_name :soft_bank_accountants
@name __MODULE__
alias SoftBank.Config
def child_spec([args]) do
%{
id: __MODULE__,
start: {__MODULE__, :start_link, args},
type: :supervisor
}
end
def start_child(args \\ ... | 19.690909 | 63 | 0.620499 |
9124fcefb625150941de6bc0651c74f57dc4232c | 3,947 | ex | Elixir | lib/exgencode/validator.ex | flrnglbd/exgencode | 1312cd0f07297ccd5e6dcb136f041783c63244aa | [
"MIT"
] | null | null | null | lib/exgencode/validator.ex | flrnglbd/exgencode | 1312cd0f07297ccd5e6dcb136f041783c63244aa | [
"MIT"
] | null | null | null | lib/exgencode/validator.ex | flrnglbd/exgencode | 1312cd0f07297ccd5e6dcb136f041783c63244aa | [
"MIT"
] | null | null | null | defmodule Exgencode.Validator do
@moduledoc """
Helper functions for field validation
"""
def validate_field(pdu_name, field_name, props, all_fields) do
validate_custom_encode_decode(pdu_name, field_name, props, all_fields)
validate_conditional(pdu_name, field_name, props, all_fields)
validate_offs... | 25.464516 | 106 | 0.568533 |
91250084aafe3043629a04b666a059b799eb426b | 1,666 | exs | Elixir | mix.exs | evadne/ueberauth | 96542d1bc3b498f458803630f7967484b9c1238d | [
"MIT"
] | null | null | null | mix.exs | evadne/ueberauth | 96542d1bc3b498f458803630f7967484b9c1238d | [
"MIT"
] | null | null | null | mix.exs | evadne/ueberauth | 96542d1bc3b498f458803630f7967484b9c1238d | [
"MIT"
] | null | null | null | defmodule Ueberauth.Mixfile do
use Mix.Project
@version "0.6.0"
def project do
[
app: :ueberauth,
name: "Überauth",
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
build_embedded: Mix.env() == :prod,
start_perm... | 25.242424 | 72 | 0.570828 |
9125560097a85756a634cfe874e348dddcef61e6 | 1,252 | ex | Elixir | apps/artemis/lib/artemis/contexts/system_task/create_system_task.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/contexts/system_task/create_system_task.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/system_task/create_system_task.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.CreateSystemTask do
use Artemis.Context
alias Artemis.SystemTask
def call!(params, user) do
case call(params, user) do
{:error, _} -> raise(Artemis.Context.Error, "Error creating system task")
{:ok, result} -> result
end
end
def call(params, user) do
params
|> ... | 29.809524 | 91 | 0.664537 |
9125b1dc0261f0a3cf0b080125728181b1c86e53 | 1,121 | exs | Elixir | Community Samples/Elixir/config/config.exs | mschellenger96/OMF-Samples | 7eb3c5be77e66f4360227dc14def28f688037873 | [
"Apache-2.0"
] | null | null | null | Community Samples/Elixir/config/config.exs | mschellenger96/OMF-Samples | 7eb3c5be77e66f4360227dc14def28f688037873 | [
"Apache-2.0"
] | null | null | null | Community Samples/Elixir/config/config.exs | mschellenger96/OMF-Samples | 7eb3c5be77e66f4360227dc14def28f688037873 | [
"Apache-2.0"
] | 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... | 36.16129 | 73 | 0.751115 |
9125b849a2e0e9ea9537b125b8e90e2e30f39eae | 254 | ex | Elixir | lib/utils/request_options.ex | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | 6 | 2015-11-16T08:13:08.000Z | 2016-05-26T04:00:58.000Z | lib/utils/request_options.ex | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | null | null | null | lib/utils/request_options.ex | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | null | null | null | defmodule PinElixir.Utils.RequestOptions do
@moduledoc false
@api_key Application.get_env(:pin_elixir, :api_key)
def with_auth do
[basic_auth: {@api_key, ""}]
end
def with_auth(options) do
List.flatten(with_auth, options)
end
end
| 16.933333 | 53 | 0.720472 |
9125c591669dc8243e1b3e5aa3b6300391577ac0 | 1,650 | exs | Elixir | test/level_web/graphql/mutations/create_reply_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | test/level_web/graphql/mutations/create_reply_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | test/level_web/graphql/mutations/create_reply_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule LevelWeb.GraphQL.CreateReplyTest do
use LevelWeb.ConnCase, async: true
import LevelWeb.GraphQL.TestHelpers
@query """
mutation CreateReply(
$space_id: ID!,
$post_id: ID!,
$body: String!
) {
createReply(
spaceId: $space_id,
postId: $post_id,
body: ... | 22.916667 | 65 | 0.469697 |
9125cc01df67f32b9ee8670ed8c003369132cfa2 | 475 | ex | Elixir | lib/bitpal_schemas/currency.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal_schemas/currency.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal_schemas/currency.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPalSchemas.Currency do
use TypedEctoSchema
alias BitPalSchemas.Address
alias BitPalSchemas.Invoice
@type id :: atom
@primary_key false
typed_schema "currencies" do
field(:id, Ecto.Atom, primary_key: true) :: id
field(:block_height, :integer) :: non_neg_integer | nil
has_many(:addr... | 27.941176 | 61 | 0.726316 |
9125f4f7957f9a10b6aaf6c36d3b22a3c6a7ba36 | 595 | ex | Elixir | lib/adoptoposs_web/live/sharing_live.ex | Adsidera/adoptoposs | e06da0855fe8f06f4774f89a977201fb78d9dafb | [
"MIT"
] | null | null | null | lib/adoptoposs_web/live/sharing_live.ex | Adsidera/adoptoposs | e06da0855fe8f06f4774f89a977201fb78d9dafb | [
"MIT"
] | null | null | null | lib/adoptoposs_web/live/sharing_live.ex | Adsidera/adoptoposs | e06da0855fe8f06f4774f89a977201fb78d9dafb | [
"MIT"
] | null | null | null | defmodule AdoptopossWeb.SharingLive do
use AdoptopossWeb, :live_view
alias Adoptoposs.Submissions
alias AdoptopossWeb.SharingView
def render(assigns) do
Phoenix.View.render(SharingView, "project.html", assigns)
end
def mount(%{"uuid" => uuid}, session, socket) do
{:ok,
socket
|> assign_... | 24.791667 | 70 | 0.709244 |
9125f9bebe23a58bed6be14625b960e8bc59a017 | 4,743 | ex | Elixir | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/ExclamationPointQualifiedNoParenthesesCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/ExclamationPointQualifiedNoParenthesesCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/ExclamationPointQualifiedNoParenthesesCallBlock.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | !One.Two[three].four key: value do end
!One.Two[three].four five six, key: value do end
!One.Two[three].four five, key: value do end
!One.Two[three].four five, six do end
!One.Two[three].four five + six do end
!One.Two.three key: value do end
!One.Two.three four five, key: value do end
!One.Two.three four, key: value ... | 27.575581 | 55 | 0.665191 |
91263435e5122577bb156951d97136a48e9db6fc | 2,217 | ex | Elixir | lib/glimesh_web/channels/graph_api_socket.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | lib/glimesh_web/channels/graph_api_socket.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | lib/glimesh_web/channels/graph_api_socket.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.GraphApiSocket do
@moduledoc """
Allow for connections to the API socket with either an API token or a client id.
Client ID is for read API access only.
"""
use Phoenix.Socket
use Absinthe.Phoenix.Socket,
schema: Glimesh.Api.Schema
# Disabled for now
# def connect(%{"client_i... | 28.792208 | 83 | 0.587731 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.