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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
283bcef94e1044ce151411b5d69e8b7fbdc31e6a | 862 | ex | Elixir | web/views/error_view.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | web/views/error_view.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.ErrorView do
use CanvasAPI.Web, :view
def render("400.json", assigns) do
render("error.json", detail: assigns[:detail] || "Bad request")
end
def render("401.json", _assigns) do
render("error.json", detail: "Unauthorized")
end
def render("403.json", assigns) do
render("erro... | 25.352941 | 70 | 0.669374 |
283c02e79806c3ea37e6f091a1930186966d43fa | 109 | exs | Elixir | 6_modules/7.exs | simaofreitas/elixir_exercises | e1965295941fb8fcf1eba2d73e5a9bd22a1f8619 | [
"MIT"
] | null | null | null | 6_modules/7.exs | simaofreitas/elixir_exercises | e1965295941fb8fcf1eba2d73e5a9bd22a1f8619 | [
"MIT"
] | null | null | null | 6_modules/7.exs | simaofreitas/elixir_exercises | e1965295941fb8fcf1eba2d73e5a9bd22a1f8619 | [
"MIT"
] | null | null | null | defmodule Functions do
def float_to_string(num) do
:erlang.float_to_list(num, [decimals: 2])
end
end
| 18.166667 | 45 | 0.733945 |
283c07b5e56e12d6f77bd55e50ef4414ad579b47 | 126 | exs | Elixir | test/linda_problem_test.exs | xeejp/Linda_Problem | 2d3c75d9900f670d39634fc892744a064bcfd821 | [
"MIT"
] | null | null | null | test/linda_problem_test.exs | xeejp/Linda_Problem | 2d3c75d9900f670d39634fc892744a064bcfd821 | [
"MIT"
] | null | null | null | test/linda_problem_test.exs | xeejp/Linda_Problem | 2d3c75d9900f670d39634fc892744a064bcfd821 | [
"MIT"
] | null | null | null | defmodule LindaProblemTest do
use ExUnit.Case
doctest LindaProblem
test "the truth" do
assert 1 + 1 == 2
end
end
| 14 | 29 | 0.698413 |
283c0abd9139b253824e853c8bced9506970ab3d | 1,869 | exs | Elixir | test/ptr/accounts/account_repo_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | test/ptr/accounts/account_repo_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | test/ptr/accounts/account_repo_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule Ptr.Accounts.AccountRepoTest do
use Ptr.DataCase
alias Ecto.Adapters.SQL
alias Ptr.Repo
describe "account" do
alias Ptr.Accounts.Account
@valid_attrs %{name: "some name", db_prefix: "db_prefix"}
test "converts unique constraint on db prefix to error" do
account = fixture(:seed_ac... | 27.086957 | 94 | 0.674157 |
283c36ca418495d109249f93e9f3f6d0e76838a5 | 2,668 | ex | Elixir | lib/tesla/adapter/ibrowse.ex | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | 1 | 2020-12-21T03:45:23.000Z | 2020-12-21T03:45:23.000Z | lib/tesla/adapter/ibrowse.ex | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | null | null | null | lib/tesla/adapter/ibrowse.ex | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(:ibrowse) do
defmodule Tesla.Adapter.Ibrowse do
@moduledoc """
Adapter for [ibrowse](https://github.com/cmullaparthi/ibrowse)
Remember to add `{:ibrowse, "~> 4.2"}` to dependencies (and `:ibrowse` to applications in `mix.exs`)
Also, you need to recompile tesla after adding `:ib... | 27.22449 | 104 | 0.613943 |
283c395c28c9575e30eb7f031cfc116caaf00046 | 888 | ex | Elixir | test/support/conn_case.ex | mikeonslow/elm-phoenix-example | c6d8ad0cfc40dc9a1af0c4b4490fff0c51386faf | [
"MIT"
] | 4 | 2019-03-08T01:21:29.000Z | 2019-05-23T15:08:35.000Z | test/support/conn_case.ex | mikeonslow/elm-phoenix-example | c6d8ad0cfc40dc9a1af0c4b4490fff0c51386faf | [
"MIT"
] | null | null | null | test/support/conn_case.ex | mikeonslow/elm-phoenix-example | c6d8ad0cfc40dc9a1af0c4b4490fff0c51386faf | [
"MIT"
] | 1 | 2019-05-23T15:08:37.000Z | 2019-05-23T15:08:37.000Z | defmodule ElmfolioWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if t... | 26.909091 | 59 | 0.72973 |
283c3b130838b5f464976c34f85aad509518893c | 1,176 | exs | Elixir | integration_test/cases/element/touch_down_test.exs | braynm/wallaby | bdc7716285ad657dca0847144213ed98fff3a63c | [
"MIT"
] | 926 | 2016-03-28T17:01:54.000Z | 2019-11-05T11:59:58.000Z | integration_test/cases/element/touch_down_test.exs | marcandre/wallaby | d351c46f1a272bbcf8333c8327d154be3bd12c5c | [
"MIT"
] | 377 | 2016-03-17T00:35:56.000Z | 2019-11-03T07:15:24.000Z | integration_test/cases/element/touch_down_test.exs | marcandre/wallaby | d351c46f1a272bbcf8333c8327d154be3bd12c5c | [
"MIT"
] | 144 | 2016-03-29T15:28:28.000Z | 2019-10-31T00:48:42.000Z | defmodule Wallaby.Integration.Element.TouchDownTest do
use Wallaby.Integration.SessionCase, async: true
setup %{session: session} do
page = visit(session, "touch.html")
{:ok, %{page: page}}
end
describe "touch_down/3" do
test "touches and holds given element on its top-left corner", %{page: page}... | 31.783784 | 103 | 0.642007 |
283c5d155e06349731e7057c86537ecc62746292 | 81 | exs | Elixir | test/views/layout_view_test.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | defmodule SocketTest.LayoutViewTest do
use SocketTest.ConnCase, async: true
end | 27 | 38 | 0.839506 |
283c6507114acc3924a60d70cbb673c8abfa4db9 | 1,737 | ex | Elixir | lib/brando/cache/globals.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando/cache/globals.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando/cache/globals.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Cache.Globals do
@moduledoc """
Interaction with globals cache
Globals get stored as a map with a key path
"""
alias Brando.Cache
alias Brando.Sites
@type changeset :: Ecto.Changeset.t()
@doc """
Get globals from cache
"""
@spec get(binary()) :: map()
def get(language), do: M... | 24.464789 | 68 | 0.575705 |
283cb33d5b275ee5a8902d913c0663127a830d06 | 1,378 | ex | Elixir | lib/ecto_searcher/utils/value.ex | vemperor/ecto_searcher | 4e9f368df6dd68623fd63d591abc2544e8a23d19 | [
"MIT"
] | 4 | 2019-08-06T19:31:53.000Z | 2020-11-18T23:49:49.000Z | lib/ecto_searcher/utils/value.ex | ivalentinee/ecto_searcher | 4e9f368df6dd68623fd63d591abc2544e8a23d19 | [
"MIT"
] | null | null | null | lib/ecto_searcher/utils/value.ex | ivalentinee/ecto_searcher | 4e9f368df6dd68623fd63d591abc2544e8a23d19 | [
"MIT"
] | null | null | null | defmodule EctoSearcher.Utils.Value do
@moduledoc false
alias Ecto.Type
alias EctoSearcher.Utils.SearchCondition
def cast(search_query = %SearchCondition{}, schema, mapping) do
type = field_type(schema, search_query.field, mapping)
matcher_aggregate_type = matcher_aggregate_type(search_query.matcher, m... | 26 | 82 | 0.677794 |
283cc1b471de9f7353a79cd8f4a992f17e2ff4d6 | 150 | ex | Elixir | PrivateFunc.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | 4 | 2016-09-22T03:47:56.000Z | 2017-02-02T17:42:57.000Z | PrivateFunc.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | PrivateFunc.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | defmodule AModule do
# Private functions are only visible inside the same module
defp ThisIsAPrivateFucntion(a,b) do
IO.puts a + b
end
end
| 18.75 | 61 | 0.74 |
283d0dc2fe6ff5fdb7d484aefd1cb2333af6b735 | 715 | ex | Elixir | lib/geo_tasks_web/gettext.ex | Jesterovskiy/geo-tasks | 65fbfdc3d1604084aa288fefba9c548e087a387e | [
"MIT"
] | null | null | null | lib/geo_tasks_web/gettext.ex | Jesterovskiy/geo-tasks | 65fbfdc3d1604084aa288fefba9c548e087a387e | [
"MIT"
] | null | null | null | lib/geo_tasks_web/gettext.ex | Jesterovskiy/geo-tasks | 65fbfdc3d1604084aa288fefba9c548e087a387e | [
"MIT"
] | null | null | null | defmodule GeoTasksWeb.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 GeoTasksWeb.Gettext
# Simple translation
gettext("Here is... | 28.6 | 72 | 0.67972 |
283d2546fcf8a7ed508ed3e997e27f5abab9eb79 | 595 | exs | Elixir | config/dev.exs | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | null | null | null | config/dev.exs | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | null | null | null | config/dev.exs | Vincent-Legros/mirego-boilerplate | 20d94568133b6dd67862d864a420296217bd7b81 | [
"BSD-3-Clause"
] | null | null | null | import Config
config :elixir_boilerplate, ElixirBoilerplateWeb.Endpoint,
code_reloader: true,
check_origin: false,
watchers: [
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]}
],
live_reload: [
patterns: [
~r{priv/gettext/.*$},
~r{priv/static/.*(js|css|png|... | 27.045455 | 98 | 0.694118 |
283d2c0f017bfc426c241c004bc2802bb187f2b2 | 79 | ex | Elixir | lib/potionx.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | lib/potionx.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | lib/potionx.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule Potionx do
@moduledoc """
Documentation for `Potionx`.
"""
end
| 13.166667 | 30 | 0.670886 |
283d35cd7467bff796d7f52fd86c688421a1258f | 1,499 | exs | Elixir | test/integration/resiliency_test.exs | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | null | null | null | test/integration/resiliency_test.exs | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | null | null | null | test/integration/resiliency_test.exs | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Integration.ResiliencyTest do
use Oban.Case
@moduletag :integration
defmodule Handler do
def handle([:oban, :circuit, :trip], %{}, meta, pid) do
send(pid, {:tripped, meta})
end
end
setup do
:telemetry.attach("circuit-handler", [:oban, :circuit, :trip], &Handler.handle/4, se... | 23.793651 | 93 | 0.668446 |
283d8f64098e325c6c68097812c6f631a2f76ff8 | 13,944 | exs | Elixir | test/quantum/executor_test.exs | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | test/quantum/executor_test.exs | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | test/quantum/executor_test.exs | ericdude4/quantum-core | faf6522e08a590472301864f2c8be492c60db332 | [
"Apache-2.0"
] | null | null | null | defmodule Quantum.ExecutorTest do
@moduledoc false
use ExUnit.Case, async: true
import ExUnit.CaptureLog
alias Quantum.{Executor, Executor.StartOpts, Job, NodeSelectorBroadcaster.Event}
alias Quantum.TaskRegistry
alias Quantum.TaskRegistry.StartOpts, as: TaskRegistryStartOpts
doctest Executor
defmo... | 28.056338 | 97 | 0.542312 |
283d92f4bf0ed2bba1ad1747f896907f36f9a302 | 4,258 | exs | Elixir | lib/mix/test/mix/tasks/app.tree_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/app.tree_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/app.tree_test.exs | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.App.TreeTest do
use MixTest.Case
defmodule AppDepsSample do
def project do
[app: :test, version: "0.1.0", start_permanent: true]
end
def application do
[applications: [:logger, :app_deps_sample]]
end
end
@tag... | 37.026087 | 95 | 0.622358 |
283d99e664bc56e10384d2457cdec301e9a01a0a | 213 | exs | Elixir | priv/accounts/migrations/20170807140706_add_users_table.exs | minijackson/banquet | d6f9d7ddbc4788ce2fd3fa084f38aee69f8f7413 | [
"MIT"
] | null | null | null | priv/accounts/migrations/20170807140706_add_users_table.exs | minijackson/banquet | d6f9d7ddbc4788ce2fd3fa084f38aee69f8f7413 | [
"MIT"
] | null | null | null | priv/accounts/migrations/20170807140706_add_users_table.exs | minijackson/banquet | d6f9d7ddbc4788ce2fd3fa084f38aee69f8f7413 | [
"MIT"
] | null | null | null | defmodule Banquet.Repos.Accounts.Migrations.AddUsersTable do
use Ecto.Migration
def change do
create table(:users, engine: :set) do
add :name, :string
add :password, :string
end
end
end
| 19.363636 | 60 | 0.690141 |
283dbf589d0e5560048fc478e2cf3003c01c05ac | 306 | ex | Elixir | lib/absinthe_sdl/utils.ex | maartenvanvliet/absinthe_sdl | 85cd152a8601855716d8e1c462a01d3e5a42faea | [
"MIT"
] | 5 | 2019-01-07T08:31:09.000Z | 2020-01-19T02:42:40.000Z | lib/absinthe_sdl/utils.ex | maartenvanvliet/absinthe_sdl | 85cd152a8601855716d8e1c462a01d3e5a42faea | [
"MIT"
] | 82 | 2019-01-31T21:12:25.000Z | 2020-08-15T09:12:26.000Z | lib/absinthe_sdl/utils.ex | maartenvanvliet/absinthe_sdl | 85cd152a8601855716d8e1c462a01d3e5a42faea | [
"MIT"
] | 1 | 2020-10-19T11:16:02.000Z | 2020-10-19T11:16:02.000Z | defmodule AbsintheSdl.Utils do
@moduledoc false
def decorate(string, string_before, string_after) do
string_before <> string <> string_after
end
def map_fields(fields, fun) do
fields
|> Enum.map_join("\n", fn field ->
fun.(field)
end)
|> decorate("{\n", "\n}")
end
end
| 20.4 | 54 | 0.640523 |
283dd29f66f4e05899186b09c5d2a911c69a3f86 | 3,260 | ex | Elixir | lib/ham_radio/bands.ex | hamhub/ham_radio_ex | d813a0e7119f2d990694bd6da95c124d237c435e | [
"MIT"
] | null | null | null | lib/ham_radio/bands.ex | hamhub/ham_radio_ex | d813a0e7119f2d990694bd6da95c124d237c435e | [
"MIT"
] | 5 | 2019-07-29T15:55:41.000Z | 2020-03-19T20:00:54.000Z | lib/ham_radio/bands.ex | hamhub/ham_radio_ex | d813a0e7119f2d990694bd6da95c124d237c435e | [
"MIT"
] | null | null | null | defmodule HamRadio.Bands do
@moduledoc """
Retrieves amateur radio bands.
Band names and ranges have been defined directly from the
[ADIF 3.1.0 specification](http://adif.org/310/ADIF_310.htm#Band_Enumeration).
"""
alias HamRadio.Band
@bands [
%Band{
name: "2190m",
range: 135_700..137_8... | 19.520958 | 80 | 0.548773 |
283ddfe744147639723f35a0b6c70176fcc0a168 | 414 | exs | Elixir | test/common_crawl_test.exs | octoscreen/common_crawl | 08a23b3ac081d6d15236c4039c0336e0210e8479 | [
"MIT"
] | null | null | null | test/common_crawl_test.exs | octoscreen/common_crawl | 08a23b3ac081d6d15236c4039c0336e0210e8479 | [
"MIT"
] | null | null | null | test/common_crawl_test.exs | octoscreen/common_crawl | 08a23b3ac081d6d15236c4039c0336e0210e8479 | [
"MIT"
] | null | null | null | defmodule CommonCrawlTest do
use ExUnit.Case
doctest CommonCrawl
test "returns collinfo" do
assert [
%{
"cdx-api" => "https://index.commoncrawl.org/" <> _,
"id" => "CC-MAIN-" <> _,
"name" => _name,
"timegate" => "https://index.commoncra... | 24.352941 | 66 | 0.463768 |
283e0886fcbb711e507f0051b010afb623af17a1 | 1,764 | ex | Elixir | lib/file_size/ecto/byte.ex | tlux/file_size_ecto | 654fe0c75c151c0ede53e0b9f2928bf412abeedb | [
"MIT"
] | null | null | null | lib/file_size/ecto/byte.ex | tlux/file_size_ecto | 654fe0c75c151c0ede53e0b9f2928bf412abeedb | [
"MIT"
] | null | null | null | lib/file_size/ecto/byte.ex | tlux/file_size_ecto | 654fe0c75c151c0ede53e0b9f2928bf412abeedb | [
"MIT"
] | null | null | null | defmodule FileSize.Ecto.Byte do
@moduledoc """
An Ecto type that represents a file size in bytes. The value is stored as
integer in the database.
## Example
defmodule MySchema do
use Ecto.Schema
schema "my_table" do
field :file_size, FileSize.Ecto.Byte
end
end
... | 18.568421 | 75 | 0.606576 |
283e1a905c27c2a599494a25ac19f4b56bf8934e | 647 | ex | Elixir | lib/philtre/block/cell.ex | begedin/philtre | 3fc92c097875942689aad97997a983c8a83b602f | [
"MIT"
] | 2 | 2022-01-28T13:56:13.000Z | 2022-03-20T12:17:54.000Z | lib/philtre/block/cell.ex | begedin/philtre | 3fc92c097875942689aad97997a983c8a83b602f | [
"MIT"
] | null | null | null | lib/philtre/block/cell.ex | begedin/philtre | 3fc92c097875942689aad97997a983c8a83b602f | [
"MIT"
] | null | null | null | defmodule Editor.Block.Cell do
@moduledoc """
Represents a single cell within a block. Cells are discrete parts of a block,
to which some style (specified by modifiers) is applied.
The logic of a block is such that there is no nesting of cells so everything
is just one level, separated purely to support styl... | 21.566667 | 79 | 0.619784 |
283e35a1456307c537ff190e9adc8e0abf5763ac | 777 | exs | Elixir | mix.exs | nithinbekal/google_books.ex | 1fe98c7d2bbc2f84b1dedcdc7b248a3b85c3030d | [
"Unlicense"
] | 3 | 2016-06-14T06:34:30.000Z | 2017-04-01T18:33:22.000Z | mix.exs | nithinbekal/google_books.ex | 1fe98c7d2bbc2f84b1dedcdc7b248a3b85c3030d | [
"Unlicense"
] | null | null | null | mix.exs | nithinbekal/google_books.ex | 1fe98c7d2bbc2f84b1dedcdc7b248a3b85c3030d | [
"Unlicense"
] | 2 | 2018-09-06T00:14:29.000Z | 2021-05-09T08:58:53.000Z | defmodule GoogleBooks.Mixfile do
use Mix.Project
def project do
[app: :google_books,
version: "0.0.2",
elixir: "~> 1.2",
description: "A simple wrapper for Google Books API",
package: package,
docs: [extras: ["README.md"]],
deps: deps]
end
def application do
[applications... | 21 | 77 | 0.545689 |
283e51217f919067e7d500e04a6beb8a4239b010 | 357 | ex | Elixir | lib/leap_year.ex | DevL/yearleap | eef359176b181b30be129799f4cda3c0c3fcff23 | [
"MIT"
] | null | null | null | lib/leap_year.ex | DevL/yearleap | eef359176b181b30be129799f4cda3c0c3fcff23 | [
"MIT"
] | null | null | null | lib/leap_year.ex | DevL/yearleap | eef359176b181b30be129799f4cda3c0c3fcff23 | [
"MIT"
] | null | null | null | defmodule LeapYear do
import Guardsafe, only: [divisible_by?: 2]
@doc """
Determines whether a year is a leap year or not.
"""
@spec leap_year?(integer) :: boolean
def leap_year?(year) when divisible_by?(year, 400), do: true
def leap_year?(year) when divisible_by?(year, 100), do: false
def leap_year?(y... | 29.75 | 63 | 0.694678 |
283e513b86292847a89090cf9ef1921c09d89643 | 366 | ex | Elixir | web/views/error_view.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | defmodule Web.ErrorView do
use Web.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, assigns... | 20.333333 | 47 | 0.691257 |
283e6b3b62efcb800d4ffb9a5f9d7cb2aff7abcc | 93 | exs | Elixir | config/travis.exs | tongdao/hbasex | 4be1f3950cdfde30b5a2f34508e9b9ea86085c9e | [
"MIT"
] | 2 | 2017-08-26T15:11:46.000Z | 2017-12-20T02:42:57.000Z | config/travis.exs | tongdao/hbasex | 4be1f3950cdfde30b5a2f34508e9b9ea86085c9e | [
"MIT"
] | null | null | null | config/travis.exs | tongdao/hbasex | 4be1f3950cdfde30b5a2f34508e9b9ea86085c9e | [
"MIT"
] | null | null | null | use Mix.Config
config :hbasex,
host: "172.17.0.2",
thrift_port: 9090,
rest_port: 8080
| 13.285714 | 21 | 0.677419 |
283e7804195aec0e7a04933a25742850fd61b755 | 2,234 | ex | Elixir | lib/bodyguard/policy.ex | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | null | null | null | lib/bodyguard/policy.ex | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | null | null | null | lib/bodyguard/policy.ex | annkissam/bodyguard | 601bdc123a56186b76779fd8993d060ccd17c948 | [
"MIT"
] | null | null | null | defmodule Bodyguard.Policy do
@moduledoc """
Where authorization rules live.
Typically the callbacks are designed to be used by `Bodyguard.permit/4` and
are not called directly.
The only requirement is to implement the `c:authorize/3` callback:
defmodule MyApp.MyContext do
@behaviour Bodyguar... | 30.60274 | 215 | 0.657117 |
283e837251b4a612b5f923dcf0f5bb227a2c9f3e | 179 | ex | Elixir | lib/muse_web/views/music_view.ex | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | lib/muse_web/views/music_view.ex | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | lib/muse_web/views/music_view.ex | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | defmodule MuseWeb.MusicView do
use MuseWeb, :view
def render("create.json", %{music: music}) do
%{
message: "Here's your track",
music: music
}
end
end
| 16.272727 | 47 | 0.608939 |
283e8c0d136cd160c278acc35113e62dbe24ef9d | 12,333 | ex | Elixir | lib/aws/generated/lookout_metrics.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/lookout_metrics.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/lookout_metrics.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.LookoutMetrics do
@moduledoc """
This is the *Amazon Lookout for Metrics API Reference*.
For an introduction to the service with tutorials for getting started, visit
[Amazon Lookout for M... | 20.658291 | 102 | 0.598151 |
283e92cc72f5a39f05044942534abca5977ada00 | 8,810 | ex | Elixir | plugins/ucc_chat/lib/ucc_chat_web/channels/user_channel/side_nav/channels.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat_web/channels/user_channel/side_nav/channels.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat_web/channels/user_channel/side_nav/channels.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccChatWeb.UserChannel.SideNav.Channels do
import Rebel.Core
import Phoenix.View, only: [render_to_string: 3]
import UcxUccWeb.Gettext
alias UcxUccWeb.Query
alias UccChat.{Channel, ChannelService}
alias UccChatWeb.{SideNavView, RebelChannel.Client}
alias UcxUcc.Accounts
require Logger
def... | 37.016807 | 112 | 0.660613 |
283e93476b96b37a20fa5ddfeddfd17bc986a1ed | 257 | ex | Elixir | apps/desafio_api/lib/desafio_api.ex | brunobamaral/desafio_api | 90362b0fa6c0c9e3c4d1c212fe84b7ad264a46f6 | [
"Apache-2.0"
] | null | null | null | apps/desafio_api/lib/desafio_api.ex | brunobamaral/desafio_api | 90362b0fa6c0c9e3c4d1c212fe84b7ad264a46f6 | [
"Apache-2.0"
] | null | null | null | apps/desafio_api/lib/desafio_api.ex | brunobamaral/desafio_api | 90362b0fa6c0c9e3c4d1c212fe84b7ad264a46f6 | [
"Apache-2.0"
] | null | null | null | defmodule DesafioApi do
@moduledoc """
DesafioApi 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.7 | 66 | 0.758755 |
283e948affcb022820e0874115e7ca7248ba6431 | 1,606 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_intoto_signature.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_intoto_signature.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/grafeas_v1beta1_intoto_signature.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... | 30.884615 | 98 | 0.731631 |
283eb1e3d480dedd799fed27192ca794aaf5f1ce | 1,398 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_content_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_content_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_content_details.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... | 29.744681 | 97 | 0.737482 |
283eef2e681e9f8f032d68ff76dc40b6895d8c83 | 2,334 | ex | Elixir | apps/server_comms/lib/server_comms/ws/websocket_handler.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/server_comms/lib/server_comms/ws/websocket_handler.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/server_comms/lib/server_comms/ws/websocket_handler.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule ServerComms.Ws.WebsocketHandler do
@moduledoc """
Communicates with the server, primarily sending camera images up to form the MPEG stream.
Uses the traditional Jermy Ong Websocket client but forked [here](https://github.com/paulanthonywilson/websocket_client)
as some of the Erlang is deprecated.
... | 28.814815 | 122 | 0.719794 |
283f169393ca1b2df4330fe0fce4045892b404bf | 1,066 | ex | Elixir | lib/mix/khafra.gen.wordform.ex | praxis-of-nines/khemia-search | 554df16836b8d98e993d72a2a2b17894f1e25454 | [
"MIT"
] | 7 | 2019-02-05T20:58:56.000Z | 2020-05-29T13:34:32.000Z | lib/mix/khafra.gen.wordform.ex | praxis-of-nines/khafra-search | 554df16836b8d98e993d72a2a2b17894f1e25454 | [
"MIT"
] | null | null | null | lib/mix/khafra.gen.wordform.ex | praxis-of-nines/khafra-search | 554df16836b8d98e993d72a2a2b17894f1e25454 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Khafra.Gen.Wordform do
use Mix.Task
@shortdoc "Generate a Sphinx wordform"
@moduledoc """
Wordforms allow you to specify synonym meanings in words so they are indexed as equivalent
See more: http://sphinxsearch.com/docs/manual-2.3.2.html#conf-wordforms
Generating a wordform will add ... | 28.810811 | 97 | 0.710131 |
283f1a4c58f0db4536bc67afc5d0ea6003ab9b5a | 1,315 | exs | Elixir | config/dev (copia).exs | Wilo/mediax | 0f3ceda0662bae5bd13f08cada5e8ad34715dd0a | [
"MIT"
] | null | null | null | config/dev (copia).exs | Wilo/mediax | 0f3ceda0662bae5bd13f08cada5e8ad34715dd0a | [
"MIT"
] | null | null | null | config/dev (copia).exs | Wilo/mediax | 0f3ceda0662bae5bd13f08cada5e8ad34715dd0a | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :mediax, Mediax.Endpoint,
http: [port: 4000],
... | 29.886364 | 95 | 0.690494 |
283f1aa38aee10aaad17a1bce8835581fe1636e9 | 2,160 | ex | Elixir | apps/day16/lib/day16.ex | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | 2 | 2019-12-21T21:21:04.000Z | 2019-12-27T07:00:19.000Z | apps/day16/lib/day16.ex | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | apps/day16/lib/day16.ex | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | defmodule Day16 do
@moduledoc """
AoC 2019, Day 16 - Flawed Frequency Transmission
"""
@doc """
After 100 phases of FFT, what are the first eight digits in the final output list?
"""
def part1 do
Util.priv_file(:day16, "day16_input.txt")
|> File.read!()
|> String.trim()
|> fft(100)
|>... | 20.571429 | 84 | 0.586111 |
283f4237b11a7feda256ea04e7efc7d2d015e0df | 3,360 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | 1 | 2019-10-13T10:56:28.000Z | 2019-10-13T10:56:28.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/account_controller.ex | Eaftos/nerves_hub_web | ac03bd044b97265bf3ba3edd8da249d300fa3668 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWWWWeb.AccountController do
use NervesHubWWWWeb, :controller
alias Ecto.Changeset
alias NervesHubWebCore.Accounts
alias NervesHubWebCore.Accounts.User
alias NervesHubWebCore.Accounts.Email
alias NervesHubWebCore.Mailer
plug(NervesHubWWWWeb.Plugs.AllowUninvitedSignups when action in [:... | 26.666667 | 82 | 0.580655 |
283f46dcf0b9a2f3e3aa4927bf91370b02f3cc12 | 2,279 | ex | Elixir | deps/ecto_sql/lib/ecto/adapter/migration.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/ecto_sql/lib/ecto/adapter/migration.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/ecto_sql/lib/ecto/adapter/migration.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Ecto.Adapter.Migration do
@moduledoc """
Specifies the adapter migrations API.
"""
alias Ecto.Migration.Table
alias Ecto.Migration.Index
alias Ecto.Migration.Reference
@type adapter_meta :: Ecto.Adapter.adapter_meta()
@typedoc "All migration commands"
@type command ::
... | 34.014925 | 94 | 0.602896 |
283f53eccc4f86229def36165b9adf9c14e77260 | 1,232 | exs | Elixir | clients/monitoring/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Monitoring.V3.Mixfile do
use Mix.Project
@version "0.8.0"
def project do
[app: :google_api_monitoring,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
... | 25.666667 | 188 | 0.624188 |
283f670f1a8625afc16762a5f05f5f1626f4ad58 | 2,038 | ex | Elixir | server/lib/echoppe_web/router.ex | d-exclaimation/echoppe | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | 1 | 2021-05-13T00:53:52.000Z | 2021-05-13T00:53:52.000Z | server/lib/echoppe_web/router.ex | d-exclaimation/ez-cart | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | 1 | 2021-06-02T19:18:10.000Z | 2021-06-07T16:44:36.000Z | server/lib/echoppe_web/router.ex | d-exclaimation/ez-cart | d430439a5fff28a15d44ccf9881caced89e7303f | [
"Apache-2.0"
] | null | null | null | defmodule EchoppeWeb.Router do
use EchoppeWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
# Full authentication pipelines from session validation to one time token
pipeline :auth_check do
plug EchoppeWeb.Plug.Auth
plug EchoppeWeb.Plug.OneTimeToken
end
scope "/v1-imposter", Echoppe... | 26.815789 | 75 | 0.664868 |
283f6866f2acd8bef12fe649de05887d74e10a8c | 219 | ex | Elixir | lib/lapin/producer/routing.ex | nTraum/lapin | 02450640e5b1e0b0f2e76af38d41dee170166b18 | [
"MIT"
] | 21 | 2017-10-23T21:18:57.000Z | 2022-02-09T11:58:33.000Z | lib/lapin/producer/routing.ex | nTraum/lapin | 02450640e5b1e0b0f2e76af38d41dee170166b18 | [
"MIT"
] | 37 | 2017-10-23T22:29:43.000Z | 2022-02-22T00:15:52.000Z | lib/lapin/producer/routing.ex | nTraum/lapin | 02450640e5b1e0b0f2e76af38d41dee170166b18 | [
"MIT"
] | 13 | 2017-10-17T15:15:35.000Z | 2022-03-08T14:02:36.000Z | defmodule Lapin.Producer.Routing do
@moduledoc """
`Lapin.Producer` implementation for the
[Routing](http://www.rabbitmq.com/tutorials/tutorial-four-elixir.html)
RabbitMQ pattern.
"""
use Lapin.Producer
end
| 24.333333 | 72 | 0.744292 |
283f92ae428e167125f16de4a3e1e60b2755ca57 | 2,329 | ex | Elixir | apps/resource_manager/lib/identities/commands/get_identity.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/resource_manager/lib/identities/commands/get_identity.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/resource_manager/lib/identities/commands/get_identity.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule ResourceManager.Identities.Commands.GetIdentity do
@moduledoc """
Find out an identity that matches the given parameters
"""
require Logger
alias ResourceManager.Identities.{ClientApplications, Users}
alias ResourceManager.Identities.Commands.Inputs.{GetClientApplication, GetUser}
alias Resour... | 29.1125 | 90 | 0.664234 |
283fa395a6c6aa8391b514e60a59cdd5e6832531 | 740 | exs | Elixir | priv/repo/migrations/20180823163652_licenses.exs | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | 2 | 2018-09-01T17:38:39.000Z | 2018-09-20T13:47:50.000Z | priv/repo/migrations/20180823163652_licenses.exs | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180823163652_licenses.exs | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2018 Andrea Janes <ajanes@unibz.it>, Riccardo Felluga <riccardo.felluga@stud-inf.unibz.it>, Max Schweigkofler <maxelia.schweigkofler@stud-inf.unibz.it>
#
# This file is part of the project reuse-checker which is released under the MIT license.
# See file LICENSE or go to https://github.com/riccardofel... | 32.173913 | 167 | 0.727027 |
283fc5230006c8998b7f97b410b5d28c70b53ed5 | 4,082 | ex | Elixir | lib/recase/cases/generic.ex | brettwise/recase | 1e5c6d466be999b923ce2344c54de3c87a157ff0 | [
"MIT"
] | 1 | 2021-06-12T10:02:44.000Z | 2021-06-12T10:02:44.000Z | lib/recase/cases/generic.ex | brettwise/recase | 1e5c6d466be999b923ce2344c54de3c87a157ff0 | [
"MIT"
] | null | null | null | lib/recase/cases/generic.ex | brettwise/recase | 1e5c6d466be999b923ce2344c54de3c87a157ff0 | [
"MIT"
] | null | null | null | defmodule Recase.Generic do
@moduledoc """
Generic module to split and join strings back.
This module should not be used directly.
"""
@splitters Application.get_env(:recase, :delimiters, [
?\s,
?\n,
?\t,
?_,
?.,
?-,
... | 28.151724 | 86 | 0.503185 |
2840221a4a3c64cf05acd7dd86cff8689fe5a7e4 | 2,287 | ex | Elixir | lib/web_driver_client/w3c_wire_protocol_client/commands/find_element.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/w3c_wire_protocol_client/commands/find_element.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/w3c_wire_protocol_client/commands/find_element.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.W3CWireProtocolClient.Commands.FindElement do
@moduledoc false
import WebDriverClient.W3CWireProtocolClient.Guards
alias WebDriverClient.Config
alias WebDriverClient.ConnectionError
alias WebDriverClient.Element
alias WebDriverClient.HTTPResponse
alias WebDriverClient.Session
... | 37.491803 | 89 | 0.747704 |
284046a20b40673db860247782b22a71a8cc0580 | 872 | ex | Elixir | lib/rocketpay_web/controllers/accounts_controller.ex | Truta446/rocketpay | 7e39f284999a30399a8495b899326e9174dc6544 | [
"MIT"
] | 80 | 2021-02-26T13:26:00.000Z | 2022-01-31T15:13:18.000Z | lib/rocketpay_web/controllers/accounts_controller.ex | Truta446/rocketpay | 7e39f284999a30399a8495b899326e9174dc6544 | [
"MIT"
] | null | null | null | lib/rocketpay_web/controllers/accounts_controller.ex | Truta446/rocketpay | 7e39f284999a30399a8495b899326e9174dc6544 | [
"MIT"
] | 42 | 2021-02-26T13:26:19.000Z | 2021-12-11T16:32:47.000Z | defmodule RocketpayWeb.AccountsController do
use RocketpayWeb, :controller
alias Rocketpay.Account
alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse
action_fallback RocketpayWeb.FallbackController
def deposit(conn, params) do
with {:ok, %Account{} = account} <- Rocketpay.deposit(p... | 26.424242 | 88 | 0.677752 |
2840708dfa5b729c0812b760a04b713cc544f00e | 603 | exs | Elixir | test/authoritex/loc/names_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | 2 | 2020-06-11T10:37:21.000Z | 2020-10-13T18:12:42.000Z | test/authoritex/loc/names_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | 21 | 2020-05-12T21:06:32.000Z | 2022-01-14T14:43:45.000Z | test/authoritex/loc/names_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | null | null | null | defmodule Authoritex.LOC.NamesTest do
use Authoritex.TestCase,
module: Authoritex.LOC.Names,
code: "lcnaf",
description: "Library of Congress Name Authority File",
test_uris: [
"http://id.loc.gov/authorities/names/no2011087251",
"info:lc/authorities/names/no2011087251"
],
bad_uri: ... | 30.15 | 61 | 0.66335 |
284076aca14d80021e6104df0a780270d824637b | 890 | exs | Elixir | config/test.exs | IvanIvanoff/kaffe | ffe4a70657865950aca6cd7642d22f3b55a3ca49 | [
"MIT"
] | null | null | null | config/test.exs | IvanIvanoff/kaffe | ffe4a70657865950aca6cd7642d22f3b55a3ca49 | [
"MIT"
] | null | null | null | config/test.exs | IvanIvanoff/kaffe | ffe4a70657865950aca6cd7642d22f3b55a3ca49 | [
"MIT"
] | 1 | 2019-05-21T14:57:32.000Z | 2019-05-21T14:57:32.000Z | use Mix.Config
config :kaffe,
kafka_mod: TestBrod,
group_subscriber_mod: TestBrodGroupSubscriber,
test_partition_count: 32,
consumer: [
endpoints: [kafka: 9092],
topics: ["kaffe-test"],
consumer_group: "kaffe-test-group",
message_handler: SilentMessage,
async_message_ack: false,
offset_... | 26.176471 | 57 | 0.682022 |
284082a2176e17c587d9fda3399b18b6c77c2feb | 1,351 | exs | Elixir | test/models/tp_stat_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/models/tp_stat_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/models/tp_stat_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpStatTest do
use CgratesWebJsonapi.ModelCase
alias CgratesWebJsonapi.Repo
alias CgratesWebJsonapi.TpStat
import CgratesWebJsonapi.Factory
@valid_attrs %{activation_interval: "some content", filter_ids: "some content", tenant: "some content",
parameters: "some co... | 33.775 | 114 | 0.674315 |
28408a8dbfc7e61835f1e893867bd227ee4e3938 | 524 | ex | Elixir | lib/takso_web/plugs/require_login.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | lib/takso_web/plugs/require_login.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | lib/takso_web/plugs/require_login.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | defmodule Takso.RequireLogin do
import Plug.Conn
import Phoenix.Controller
def init(opts) do
opts
end
def call(conn, _opts) do
cond do
# ignoring rule for test cases
# current_user in session is populated through Plug.Test.init_test_session()
(get_session(conn, :current_user)) ->
... | 20.96 | 82 | 0.608779 |
28408d1f991550e45eac16f3f28a8e376fb88c24 | 1,513 | exs | Elixir | mix.exs | maennchen/polymorphic_embed | e8e64cdb81910983d666076cf42020381f6087af | [
"Apache-2.0"
] | null | null | null | mix.exs | maennchen/polymorphic_embed | e8e64cdb81910983d666076cf42020381f6087af | [
"Apache-2.0"
] | null | null | null | mix.exs | maennchen/polymorphic_embed | e8e64cdb81910983d666076cf42020381f6087af | [
"Apache-2.0"
] | null | null | null | defmodule PolymorphicEmbed.MixProject do
use Mix.Project
@version "1.3.3"
def project do
[
app: :polymorphic_embed,
elixir: "~> 1.9",
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
# Hex
version: @version,
package: package(),
... | 20.173333 | 78 | 0.528751 |
28409388cd9dcb946c97523a5027b8b3388bbd2d | 146 | exs | Elixir | test/test_helper.exs | salemove/opentelemetry_function | 828b227bc1bd6b39f7328fc72d998b7b7bb4742c | [
"MIT"
] | null | null | null | test/test_helper.exs | salemove/opentelemetry_function | 828b227bc1bd6b39f7328fc72d998b7b7bb4742c | [
"MIT"
] | 1 | 2021-10-14T12:32:04.000Z | 2021-10-14T12:32:04.000Z | test/test_helper.exs | salemove/opentelemetry_function | 828b227bc1bd6b39f7328fc72d998b7b7bb4742c | [
"MIT"
] | null | null | null | ExUnit.start(
# OpenTelemetry exporter currently runs asynchronously and default 100 ms
# hasn't been enough.
assert_receive_timeout: 200
)
| 24.333333 | 75 | 0.780822 |
284093c7b0537e68790b3e35f439fc993680efaf | 4,398 | ex | Elixir | lib/naira/event_stream_service.ex | collaboration-planners/naira | c24045c496f780854181b6ed839385d89c6e7fa2 | [
"Apache-2.0"
] | 3 | 2015-01-11T20:15:28.000Z | 2016-12-09T04:22:52.000Z | lib/naira/event_stream_service.ex | collaboration-planners/naira | c24045c496f780854181b6ed839385d89c6e7fa2 | [
"Apache-2.0"
] | null | null | null | lib/naira/event_stream_service.ex | collaboration-planners/naira | c24045c496f780854181b6ed839385d89c6e7fa2 | [
"Apache-2.0"
] | null | null | null | defmodule Naira.EventStreamService do
@moduledoc """
Naira's event stream service. Generates and managed each event report stream as a supervised agent.
"""
use DB
require Logger
# API
@spec start_link(atom, %EventStreamDef{}, %User{}, %EventStream{}) :: {:ok, pid} | {:error, {:already_started, pid} | term}
@... | 44.424242 | 145 | 0.751705 |
2840b86853077d1e1bae72ca1831ffa7b377879e | 105 | ex | Elixir | test/support/repo.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | 1 | 2019-07-24T19:06:57.000Z | 2019-07-24T19:06:57.000Z | test/support/repo.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | null | null | null | test/support/repo.ex | khedaywi/oban | 0b79c53a3c41648f438e112dda435ad79c86f811 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Test.Repo do
use Ecto.Repo,
otp_app: :oban,
adapter: Ecto.Adapters.Postgres
end
| 17.5 | 35 | 0.714286 |
2840c1f731ac4ebe50210f1e9f09599763dda39f | 1,000 | ex | Elixir | web/views/error_helpers.ex | jscheel42/heatbeat | 0f24374546f053bc0ddad6bcc51ce2d75f2b5252 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | jscheel42/heatbeat | 0f24374546f053bc0ddad6bcc51ce2d75f2b5252 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | jscheel42/heatbeat | 0f24374546f053bc0ddad6bcc51ce2d75f2b5252 | [
"MIT"
] | null | null | null | defmodule Heatbeat.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
if error = form.errors[field] do
content_tag :span, translate_error(error),... | 27.777778 | 79 | 0.68 |
2840ef0454ab844cecbe584f38218dd1145f2eda | 3,886 | ex | Elixir | lib/days/13.ex | codebycaleb/advent-2019 | 93307522e31410df7f4bcdaadd79d2a628f09cb2 | [
"Unlicense"
] | null | null | null | lib/days/13.ex | codebycaleb/advent-2019 | 93307522e31410df7f4bcdaadd79d2a628f09cb2 | [
"Unlicense"
] | null | null | null | lib/days/13.ex | codebycaleb/advent-2019 | 93307522e31410df7f4bcdaadd79d2a628f09cb2 | [
"Unlicense"
] | null | null | null | require Utils
require Program
defmodule D13 do
@moduledoc """
--- Day 13: Care Package ---
As you ponder the solitude of space and the ever-increasing three-hour roundtrip for messages between you and Earth, you notice that the Space Mail Indicator Light is blinking. To help keep you sane, the Elves have sent yo... | 39.653061 | 399 | 0.664694 |
284106c64d90085d4df1ed5b9693652b22c879c3 | 1,119 | exs | Elixir | 2017/elixir/day14/config/config.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day14/config/config.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day14/config/config.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | 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.096774 | 73 | 0.75067 |
28410dcbfb65d1386d7b777b225992cf95ac7abe | 1,212 | ex | Elixir | lib/expedia_phx_elm_web/channels/user_socket.ex | saifelokour/expedia_phx_elm | 2112e58821e4bb994654b4a1882997678c0e7f16 | [
"MIT"
] | null | null | null | lib/expedia_phx_elm_web/channels/user_socket.ex | saifelokour/expedia_phx_elm | 2112e58821e4bb994654b4a1882997678c0e7f16 | [
"MIT"
] | null | null | null | lib/expedia_phx_elm_web/channels/user_socket.ex | saifelokour/expedia_phx_elm | 2112e58821e4bb994654b4a1882997678c0e7f16 | [
"MIT"
] | null | null | null | defmodule ExpediaPhxElmWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ExpediaPhxElmWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket,
timeout: 45_000
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client an... | 31.076923 | 88 | 0.706271 |
284126a316c296de82b63ef9413c4ab43756dd5a | 81,279 | exs | Elixir | priv/endpoints.exs | belloq/ex_aws | 5934d5c0b6ace21ec8ecdb6f9f15205615e1bb8a | [
"MIT"
] | null | null | null | priv/endpoints.exs | belloq/ex_aws | 5934d5c0b6ace21ec8ecdb6f9f15205615e1bb8a | [
"MIT"
] | null | null | null | priv/endpoints.exs | belloq/ex_aws | 5934d5c0b6ace21ec8ecdb6f9f15205615e1bb8a | [
"MIT"
] | null | null | null | %{
"partitions" => [
%{
"defaults" => %{
"hostname" => "{service}.{region}.{dnsSuffix}",
"protocols" => ["https"],
"signatureVersions" => ["v4"]
},
"dnsSuffix" => "amazonaws.com",
"partition" => "aws",
"partitionName" => "AWS Standard",
"regionRegex" => ... | 34.15084 | 98 | 0.311618 |
28412ca7b5bc780684ffd145b89d2c9259402eb0 | 2,061 | exs | Elixir | mix.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | mix.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | mix.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | defmodule Phoenix.Mixfile do
use Mix.Project
@version "1.3.0-dev"
def project do
[app: :phoenix,
version: @version,
elixir: "~> 1.3",
deps: deps(),
package: package(),
# Because we define protocols on the fly to test
# Phoenix.Param, we need to disable consolidation
# for... | 31.227273 | 96 | 0.58952 |
28414808c070f624f27e616f7d2a2d3e10685b8f | 1,386 | ex | Elixir | lib/ash/dsl/section.ex | axelson/ash | 5992fc00f7bdc0ba0ebdb476a5191245145ef7c8 | [
"MIT"
] | null | null | null | lib/ash/dsl/section.ex | axelson/ash | 5992fc00f7bdc0ba0ebdb476a5191245145ef7c8 | [
"MIT"
] | null | null | null | lib/ash/dsl/section.ex | axelson/ash | 5992fc00f7bdc0ba0ebdb476a5191245145ef7c8 | [
"MIT"
] | null | null | null | defmodule Ash.Dsl.Section do
@moduledoc """
Declares a DSL section.
A dsl section allows you to organize related configurations. All extensions
configure sections, they cannot add DSL builders to the top level. This
keeps things organized, and concerns separated.
A section may have nested sections, which ... | 32.232558 | 92 | 0.675325 |
2841971f7a4d4ab80d596da1bfb26178c845e908 | 1,311 | ex | Elixir | lib/conform/logger.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 410 | 2015-01-10T13:33:00.000Z | 2022-01-31T20:12:15.000Z | lib/conform/logger.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 140 | 2015-02-05T16:29:32.000Z | 2020-10-22T10:52:33.000Z | lib/conform/logger.ex | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 65 | 2015-02-13T21:02:29.000Z | 2021-06-23T05:49:09.000Z | defmodule Conform.Logger do
@moduledoc false
def debug(message), do: log(:debug, [:cyan], message)
def info(message), do: log(:info, [:bright, :cyan], "==> #{message}")
def success(message), do: log(:success, [:bright, :green], "==> #{message}")
def warn(message) do
if Application.get_env(:conform, ... | 36.416667 | 78 | 0.642258 |
2841ac61ff19b57975e9e99b3872c22b58636f31 | 73,706 | ex | Elixir | lib/elixir/lib/string.ex | gordalina/elixir | 9c99bc28a39ec289dc5602d6022586cdd844c736 | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/lib/string.ex | gordalina/elixir | 9c99bc28a39ec289dc5602d6022586cdd844c736 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/string.ex | gordalina/elixir | 9c99bc28a39ec289dc5602d6022586cdd844c736 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [length: 1]
defmodule String do
@moduledoc ~S"""
Strings in Elixir are UTF-8 encoded binaries.
Strings in Elixir are a sequence of Unicode characters,
typically written between double quoted strings, such
as `"hello"` and `"héllò"`.
In case a string must have a double-quote in itse... | 28.142803 | 102 | 0.647125 |
2841c560b21dec43a46d2ac4cdcf7901b58420f0 | 1,029 | exs | Elixir | test/lint/rules/spelling_test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | null | null | null | test/lint/rules/spelling_test.exs | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | test/lint/rules/spelling_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule AccentTest.Lint.Rules.Spelling do
use ExUnit.Case, async: true
alias Accent.Lint
alias Accent.Lint.Message
alias Accent.Lint.Rules.Spelling.GatewayMock
alias Langue.Entry
import Mox
setup :verify_on_exit!
test "lint valid entry" do
entry = %Entry{value: "foo", master_value: "foo"}
... | 24.5 | 66 | 0.536443 |
2841d8cd0bb2e937af5b096afe3fcf989c85b089 | 121 | ex | Elixir | examples/lib/examples_web/types/sports_type.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 37 | 2018-09-20T03:05:26.000Z | 2022-03-11T07:24:54.000Z | examples/lib/examples_web/types/sports_type.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 6 | 2018-10-17T15:35:11.000Z | 2018-11-01T21:34:43.000Z | examples/lib/examples_web/types/sports_type.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 4 | 2019-12-15T20:39:58.000Z | 2021-08-16T04:08:49.000Z | defmodule ExamplesWeb.SportsType do
use Exnumerator, values: ~w(soccer baseball basketball football hockey tennis)
end
| 30.25 | 80 | 0.826446 |
2841f5abe88955ca5040e44352505548d934ee1f | 634 | ex | Elixir | lib/school_house_web/views/error_view.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 90 | 2021-02-10T23:57:52.000Z | 2022-03-17T18:36:55.000Z | lib/school_house_web/views/error_view.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 120 | 2021-02-11T00:32:44.000Z | 2022-03-23T04:11:59.000Z | lib/school_house_web/views/error_view.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 18 | 2021-04-15T09:57:44.000Z | 2022-03-23T02:55:26.000Z | defmodule SchoolHouseWeb.ErrorView do
use SchoolHouseWeb, :view
def render("404.html", assigns) do
render("error.html",
conn: assigns.conn,
title: "Page not found",
message: "The page you're looking for seems to be missing."
)
end
# By default, Phoenix returns the status message from... | 25.36 | 69 | 0.676656 |
284205a41638c48ae512c261e83242f6f9ac714b | 14,397 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/api/projects.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/api/projects.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/api/projects.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 43.10479 | 196 | 0.635341 |
28421500c79c66517f61925ac9f5eced9aaeda05 | 81 | ex | Elixir | test/examples/basic/char.ex | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | 75 | 2021-11-17T11:55:13.000Z | 2022-03-28T04:35:04.000Z | test/examples/basic/char.ex | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | 48 | 2021-11-15T13:56:14.000Z | 2022-03-31T15:55:47.000Z | test/examples/basic/char.ex | Fl4m3Ph03n1x/gradient | 60d7d3fe2ebdf68747325c1e852959f8b92fdcee | [
"Apache-2.0"
] | 6 | 2021-12-22T20:41:27.000Z | 2022-03-09T09:07:38.000Z | defmodule Basic.Char do
def char, do: ?c
def char_block do
?c
end
end
| 10.125 | 23 | 0.641975 |
284225baedf18ed9b55fe4b73a5982085a1ae649 | 336 | ex | Elixir | lib/supabase_surface/components/icons/icon_info.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_info.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_info.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconInfo do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.info(width: icon_size, height: icon_size)}
</IconContainer>
... | 22.4 | 62 | 0.714286 |
28426de8209d2fff2b5b6c3cf095221e723fea6f | 2,931 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_value.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... | 43.102941 | 372 | 0.696008 |
28428394044e3c2235eb671869d6f5299da57fb7 | 902 | ex | Elixir | lib/attentive/config.ex | malomohq/attentive-elixir | 0bb550b482a1da6e344779aa0d077eacc790f021 | [
"MIT"
] | null | null | null | lib/attentive/config.ex | malomohq/attentive-elixir | 0bb550b482a1da6e344779aa0d077eacc790f021 | [
"MIT"
] | 3 | 2021-08-06T16:50:58.000Z | 2022-02-21T17:18:12.000Z | lib/attentive/config.ex | malomohq/attentive-elixir | 0bb550b482a1da6e344779aa0d077eacc790f021 | [
"MIT"
] | null | null | null | defmodule Attentive.Config do
@type t ::
%__MODULE__{
api_key: String.t(),
http_client: module,
http_client_opts: any,
http_headers: Attentive.http_headers_t(),
http_host: String.t(),
http_path: String.t(),
http_port: pos_in... | 25.055556 | 55 | 0.563193 |
2842cefb210859f1f3850c1850691d814922607b | 8,747 | ex | Elixir | lib/mix/lib/mix.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/mix/lib/mix.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2018-04-18T11:25:33.000Z | 2018-04-18T11:25:33.000Z | defmodule Mix do
@moduledoc ~S"""
Mix is a build tool that provides tasks for creating, compiling,
and testing Elixir projects, managing its dependencies, and more.
## Mix.Project
The foundation of Mix is a project. A project can be defined by using
`Mix.Project` in a module, usually placed in a file name... | 29.650847 | 152 | 0.678633 |
2842f4bea2a12176848d94acb0300483f398d5ec | 3,566 | exs | Elixir | mix.exs | Immortalin/pow | 96e8e2e58a09c98b52967f3e67ebe847ca763dd8 | [
"MIT"
] | null | null | null | mix.exs | Immortalin/pow | 96e8e2e58a09c98b52967f3e67ebe847ca763dd8 | [
"MIT"
] | null | null | null | mix.exs | Immortalin/pow | 96e8e2e58a09c98b52967f3e67ebe847ca763dd8 | [
"MIT"
] | null | null | null | defmodule Pow.MixProject do
use Mix.Project
@version "1.0.12"
def project do
[
app: :pow,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
compilers: [:phoenix] ++ Mix.compilers(),
deps: deps(),
... | 30.741379 | 92 | 0.565339 |
28430429436d41589a3ad92cadf63a3d20871578 | 1,835 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/list_saved_queries_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/list_saved_queries_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/list_saved_queries_response.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... | 36.7 | 187 | 0.735695 |
28430913576eec4615557b1b0d0f5d84f16cf6f5 | 927 | ex | Elixir | lib/onsor_web/controllers/admin/user_controller.ex | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | lib/onsor_web/controllers/admin/user_controller.ex | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | 4 | 2021-03-09T00:47:04.000Z | 2022-02-10T15:15:28.000Z | lib/onsor_web/controllers/admin/user_controller.ex | ashkan18/onsor | 73b75b24f638f1a425de8ebf4454df971040e9f2 | [
"MIT"
] | null | null | null | defmodule OnsorWeb.Admin.UserController do
use OnsorWeb, :controller
alias Onsor.{Accounts, Accounts.User}
alias OnsorWeb.Guardian
def new(conn, _params) do
changeset = Accounts.change_user(%User{})
if Guardian.Plug.current_resource(conn) != nil do
conn
|> redirect(to: Routes.admin_dashboa... | 28.96875 | 96 | 0.652643 |
28430b4ac1d28d205433ca488c45061ef0bc0566 | 7,033 | exs | Elixir | test/components/scroll_bars_test.exs | CVMEventi/scenic_scrollable | d3b134fb27d15482dde2c26e3409cfc64ab07a5a | [
"MIT"
] | 2 | 2021-11-05T01:31:01.000Z | 2022-02-09T19:07:36.000Z | test/components/scroll_bars_test.exs | CVMEventi/scenic_scrollable | d3b134fb27d15482dde2c26e3409cfc64ab07a5a | [
"MIT"
] | null | null | null | test/components/scroll_bars_test.exs | CVMEventi/scenic_scrollable | d3b134fb27d15482dde2c26e3409cfc64ab07a5a | [
"MIT"
] | 2 | 2021-08-03T22:46:24.000Z | 2021-08-03T22:47:41.000Z | defmodule Scenic.Scrollable.ScrollBarsTest do
use ExUnit.Case, async: false
doctest Scenic.Scrollable.ScrollBars
alias Scenic.Scrollable.ScrollBars
alias Scenic.Scrollable.ScrollBar
alias Scenic.Scrollable.Components
alias Scenic.Primitive.Style.Theme
alias Scenic.Graph
alias Scenic.Scrollable.TestParen... | 28.358871 | 95 | 0.633727 |
2843118263e0b63ff1904fa38c7993a7be2c0208 | 979 | ex | Elixir | web/controller/cookie.ex | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 1 | 2018-04-26T08:40:13.000Z | 2018-04-26T08:40:13.000Z | web/controller/cookie.ex | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 14 | 2018-04-02T09:12:03.000Z | 2019-10-08T04:43:39.000Z | web/controller/cookie.ex | access-company/testgear | 6817b5a9f782fd501c5e8c74f12a33617bec4ba8 | [
"Apache-2.0"
] | 2 | 2018-04-26T05:50:06.000Z | 2021-09-01T18:48:43.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
defmodule Testgear.Controller.Cookie do
use Antikythera.Controller
def show(conn) do
body =
case Conn.get_req_query(conn, "key") do
nil -> %{}
key -> %{key => Conn.get_req_cookie(conn, key)}
end
Conn.json(conn, 200,... | 26.459459 | 77 | 0.615935 |
2843212015627c9c15c6de83a87c3d4dbe2ed731 | 408 | exs | Elixir | apps/core/priv/repo/migrations/20190109102412_create_declaration_requests_temp.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/repo/migrations/20190109102412_create_declaration_requests_temp.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/repo/migrations/20190109102412_create_declaration_requests_temp.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Repo.Migrations.CreateDeclarationRequestTempObjects do
use Ecto.Migration
if Code.ensure_loaded?(Core.DeclarationRequests.DeclarationRequestTemp) do
@disable_ddl_transaction true
def change do
create table(:declaration_requests_temp) do
add(:last_inserted_at, :naive_datetime)
... | 25.5 | 76 | 0.757353 |
284325669d0e4d652e2063263dacfcd29d87b7f9 | 403 | ex | Elixir | lib/tesla_statsd/backend/noop.ex | salemove/tesla_statsd | 9bfc49cd28da9f910d092f961bcb0d42626ceab9 | [
"MIT"
] | 1 | 2018-08-24T10:13:55.000Z | 2018-08-24T10:13:55.000Z | lib/tesla_statsd/backend/noop.ex | salemove/tesla_statsd | 9bfc49cd28da9f910d092f961bcb0d42626ceab9 | [
"MIT"
] | 1 | 2019-10-15T08:03:02.000Z | 2019-10-15T08:03:02.000Z | lib/tesla_statsd/backend/noop.ex | salemove/tesla_statsd | 9bfc49cd28da9f910d092f961bcb0d42626ceab9 | [
"MIT"
] | 1 | 2019-10-15T07:27:23.000Z | 2019-10-15T07:27:23.000Z | defmodule Tesla.StatsD.Backend.Noop do
@moduledoc """
Backend that doesn't actually record any statistics. This can be useful in
test environments if you want to disable metrics without actually removing
the middleware.
"""
@behaviour Tesla.StatsD.Backend
@impl true
def gauge(_metric, _amount, _option... | 22.388889 | 76 | 0.744417 |
28432e4d9412c4e56f7986e3ac8c772adab4a56e | 3,317 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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... | 44.824324 | 290 | 0.682243 |
28434c62e9d32a7928a33bd47bae957819eca129 | 181 | ex | Elixir | lib/ja_serializer/formatter/link.ex | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 322 | 2016-11-18T22:58:17.000Z | 2022-01-18T15:07:24.000Z | lib/ja_serializer/formatter/link.ex | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 150 | 2016-11-17T20:14:51.000Z | 2021-03-12T03:56:57.000Z | lib/ja_serializer/formatter/link.ex | strzibny/ja_serializer | 9823ada739ec1f0db9f14bd29f62a701dbd3b094 | [
"Apache-2.0"
] | 104 | 2016-11-17T18:02:36.000Z | 2021-04-06T09:52:16.000Z | defimpl JaSerializer.Formatter, for: JaSerializer.Builder.Link do
alias JaSerializer.Formatter.Utils
def format(link) do
{Utils.format_key(link.type), link.href}
end
end
| 22.625 | 65 | 0.767956 |
28435bc836523cb1330582407a28949bb5fa86fb | 2,048 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filtered_bids_response.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filtered_bids_response.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/list_filtered_bids_response.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... | 37.925926 | 270 | 0.77002 |
28435fe1cea84369689a9ba70928e176ff71be53 | 2,349 | ex | Elixir | lib/zaryn_web/live/page_live.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | 1 | 2020-01-04T11:24:44.000Z | 2020-01-04T11:24:44.000Z | lib/zaryn_web/live/page_live.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | null | null | null | lib/zaryn_web/live/page_live.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | null | null | null | defmodule ZarynWeb.PageLive do
use ZarynWeb, :live_view
alias Zaryn.Uploaders.Avatar
alias Zaryn.Accounts
alias ZarynWeb.UserLive.FollowComponent
alias Zaryn.Posts
alias ZarynWeb.Live.LikeComponent
@impl true
def mount(_params, session, socket) do
socket = assign_defaults(session, socket)
{:... | 25.258065 | 89 | 0.693487 |
284391835a80ca4eb6449f5e9b2c54b73623f250 | 2,851 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/pivot_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/pivot_value.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/pivot_value.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.527027 | 135 | 0.696948 |
28440e84d45ba5d9ebc53a07716e0f1b324a449d | 3,590 | ex | Elixir | lib/jumanpp.ex | kmakita13714/elixir-jumanpp | 55da049e58e2c892b1717faec2522df5d3d0c4c1 | [
"MIT"
] | null | null | null | lib/jumanpp.ex | kmakita13714/elixir-jumanpp | 55da049e58e2c892b1717faec2522df5d3d0c4c1 | [
"MIT"
] | null | null | null | lib/jumanpp.ex | kmakita13714/elixir-jumanpp | 55da049e58e2c892b1717faec2522df5d3d0c4c1 | [
"MIT"
] | null | null | null | defmodule Jumanpp do
@moduledoc """
Documentation for Jumanpp.
"""
defmodule Token do
defstruct [:surface, :reading, :headword, :classification, :classification_id, :subclassification, :subclassification_id, :utilization_type, :utilization_type_id, :usage, :usage_id, :semantic_info]
end
defmodule Toke... | 34.519231 | 211 | 0.674373 |
2844227ffbeb9cd911502cacf250a7bd305af3e2 | 408 | ex | Elixir | lib/farmbot/celery_script/ast/node/emergency_unlock.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/celery_script/ast/node/emergency_unlock.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/celery_script/ast/node/emergency_unlock.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.CeleryScript.AST.Node.EmergencyUnlock do
@moduledoc false
use Farmbot.CeleryScript.AST.Node
allow_args []
use Farmbot.Logger
def execute(_, _, env) do
env = mutate_env(env)
case Farmbot.Firmware.emergency_unlock do
:ok ->
Logger.success 1, "Bot is Successfully unlocked... | 24 | 58 | 0.664216 |
284474b79ce88b8d0459e999eada3ea0ac5888ad | 389 | exs | Elixir | priv/repo/migrations/20151001170322_user_roles.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | priv/repo/migrations/20151001170322_user_roles.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | priv/repo/migrations/20151001170322_user_roles.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Repo.Migrations.UserRoles do
use Ecto.Migration
def change do
create table(:user_roles, primary_key: false) do
add :user_id, references(:users, type: :uuid, on_delete: :delete_all), null: false
add :role_id, references(:roles, type: :uuid, on_delete: :delete_all), null: false
end
... | 32.416667 | 88 | 0.709512 |
2844cecac640b2b5476b6c17f7787dbd90cd34a7 | 395 | ex | Elixir | lib/ua_parser/parsers/operating_system.ex | poplarhq/ua_parser | 9246082a67c11fbcbeb7e409ffdc7ae4aef86612 | [
"Apache-2.0"
] | null | null | null | lib/ua_parser/parsers/operating_system.ex | poplarhq/ua_parser | 9246082a67c11fbcbeb7e409ffdc7ae4aef86612 | [
"Apache-2.0"
] | null | null | null | lib/ua_parser/parsers/operating_system.ex | poplarhq/ua_parser | 9246082a67c11fbcbeb7e409ffdc7ae4aef86612 | [
"Apache-2.0"
] | null | null | null | defmodule UAParser.Parsers.OperatingSystem do
@moduledoc """
A parser module representing the operating system derived
from a user agent.
"""
import UAParser.Parsers.Base
alias UAParser.OperatingSystem
replacement_parser(struct: OperatingSystem, keys: [
:os_replacement,
:os_v1_replacement,
:... | 21.944444 | 59 | 0.746835 |
2844f46c7ded4ff80c4678c85698a42ed94aa8f9 | 896 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/metadata.ex | denispeplin/elixir-google-api | 66c948e91feee521503dd685404ddcfd7c70f2ea | [
"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.185185 | 74 | 0.762277 |
28450597bdd0b7532162753907ddbd5dad135038 | 2,394 | ex | Elixir | lib/logo/ast.ex | princemaple/elixir-logo | e28fa38a6c08fc57f451bc00b8a4b987066bf153 | [
"MIT"
] | null | null | null | lib/logo/ast.ex | princemaple/elixir-logo | e28fa38a6c08fc57f451bc00b8a4b987066bf153 | [
"MIT"
] | null | null | null | lib/logo/ast.ex | princemaple/elixir-logo | e28fa38a6c08fc57f451bc00b8a4b987066bf153 | [
"MIT"
] | null | null | null | defmodule Logo.AST do
def parse(tokens) do
command_ast(tokens)
end
defp command_ast([]), do: []
defp command_ast([{:command, command} | rest])
when command in [:pu, :pd, :sc]
do
[{{:command, command}, []} | command_ast(rest)]
end
defp command_ast([{:command, command} | rest])
when comma... | 37.40625 | 103 | 0.661236 |
28450c058e2110de80e269e2e9917e6c214ae45a | 4,121 | ex | Elixir | lib/segment/analytics/response_formatter.ex | FindHotel/analytics-elixir | 0aaba3d37063f812d2c5681c2755b6d19033ec63 | [
"MIT"
] | 1 | 2019-11-15T20:34:19.000Z | 2019-11-15T20:34:19.000Z | lib/segment/analytics/response_formatter.ex | FindHotel/analytics-elixir | 0aaba3d37063f812d2c5681c2755b6d19033ec63 | [
"MIT"
] | 5 | 2019-01-28T19:55:56.000Z | 2022-03-17T15:55:31.000Z | lib/segment/analytics/response_formatter.ex | FindHotel/analytics-elixir | 0aaba3d37063f812d2c5681c2755b6d19033ec63 | [
"MIT"
] | 1 | 2022-03-13T09:23:21.000Z | 2022-03-13T09:23:21.000Z | defmodule Segment.Analytics.ResponseFormatter do
@moduledoc """
Wrapper around HTTPoisong response which defines `MetaLogger.Formatter` protocol.
"""
use TypedStruct
alias HTTPoison.{Error, Request, Response}
alias MetaLogger.Formatter
@replacement "[FILTERED]"
@filter_patterns [
{~s("email":\s?... | 30.080292 | 93 | 0.560058 |
28454a7a8b4e1b36654d208ac5fa467ed7316d55 | 1,357 | ex | Elixir | lib/credo_check/migrations_safety.ex | ryvasquez/excellent_migrations | cc123c6f34293b84cd47b2ac63098a83d5b7ecbe | [
"MIT"
] | 64 | 2021-11-18T17:54:04.000Z | 2022-03-10T19:37:46.000Z | lib/credo_check/migrations_safety.ex | ryvasquez/excellent_migrations | cc123c6f34293b84cd47b2ac63098a83d5b7ecbe | [
"MIT"
] | 8 | 2021-11-18T19:12:56.000Z | 2022-02-15T15:03:32.000Z | lib/credo_check/migrations_safety.ex | ryvasquez/excellent_migrations | cc123c6f34293b84cd47b2ac63098a83d5b7ecbe | [
"MIT"
] | 5 | 2021-11-22T19:04:33.000Z | 2021-12-15T05:14:42.000Z | if Code.ensure_loaded?(Credo.Check) do
defmodule ExcellentMigrations.CredoCheck.MigrationsSafety do
@moduledoc """
Custom Credo check to be used in `.credo.exs` file.
"""
alias ExcellentMigrations.{
DangersDetector,
FilesFinder,
MessageGenerator
}
use Credo.Check,
bas... | 27.14 | 83 | 0.661754 |
28454d1a6579fc35a79a1e882dc5571b01a0c413 | 250 | ex | Elixir | fibonacci/fib.ex | berlotto/elixir-study | 2e3d2371e2787cb7e579b649125fb044e650c502 | [
"MIT"
] | null | null | null | fibonacci/fib.ex | berlotto/elixir-study | 2e3d2371e2787cb7e579b649125fb044e650c502 | [
"MIT"
] | null | null | null | fibonacci/fib.ex | berlotto/elixir-study | 2e3d2371e2787cb7e579b649125fb044e650c502 | [
"MIT"
] | null | null | null | defmodule Fibonacci do
def fib(n) do
fib([0,1], n)
end
def fib(list, 2) do
list
end
def fib(list, nth) do
rev = Enum.reverse(list)
fib( list ++ [hd(rev) + hd(tl(rev))] , nth - 1 )
end
end
IO.inspect Fibonacci.fib(10)
| 13.157895 | 52 | 0.572 |
2845b84694712f098fd6948b846544eb36c0b2ea | 6,034 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/occurrence.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/occurrence.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/occurrence.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... | 59.742574 | 239 | 0.729698 |
2845cd27b595a00c16bf1b63226e8cf133b03dc8 | 1,712 | ex | Elixir | lib/excommerce_web/views/error_helpers.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | lib/excommerce_web/views/error_helpers.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | lib/excommerce_web/views/error_helpers.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule ExcommerceWeb.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... | 28.065574 | 79 | 0.656542 |
2845e93c84b836a83eacbf10d7c1236815beb591 | 93 | ex | Elixir | lib/plugin_manager/event/reference/on_content_after_save.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-18T14:32:15.000Z | 2022-03-24T06:33:21.000Z | lib/plugin_manager/event/reference/on_content_after_save.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-25T08:30:42.000Z | 2022-03-27T17:13:46.000Z | lib/plugin_manager/event/reference/on_content_after_save.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | null | null | null | defmodule MishkaInstaller.Reference.OnContentAfterSave do
# TODO: it needs html render
end
| 23.25 | 57 | 0.827957 |
2845ea08c778d003cc2a6bdad4b13c9b0a75ecb4 | 2,143 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_bounding_poly.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_bounding_poly.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_bounding_poly.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.963636 | 178 | 0.761083 |
2845fa95dc3477edaf56b8984c1a1d1fb32b2641 | 447 | ex | Elixir | lib/ash/error/changes/no_such_relationship.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | 1 | 2021-12-27T09:43:29.000Z | 2021-12-27T09:43:29.000Z | lib/ash/error/changes/no_such_relationship.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/error/changes/no_such_relationship.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Error.Changes.NoSuchRelationship do
@moduledoc "Used when a change is provided for an relationship that does not exist"
use Ash.Error
def_ash_error([:resource, :name], class: :invalid)
defimpl Ash.ErrorKind do
def id(_), do: Ecto.UUID.generate()
def code(_), do: "no_such_relationship"
... | 26.294118 | 85 | 0.711409 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.