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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03dafab613ae90adfa1678c8a19b30c34655c82a | 1,236 | ex | Elixir | lib/datum/ellipsoid.ex | danielzfranklin/coord | bf2fd85302128698367f4781d78baac9e534f071 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/datum/ellipsoid.ex | danielzfranklin/coord | bf2fd85302128698367f4781d78baac9e534f071 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/datum/ellipsoid.ex | danielzfranklin/coord | bf2fd85302128698367f4781d78baac9e534f071 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Coord.Datum.Ellipsoid do
@moduledoc """
Specified the shape of the surface of a `Coord.Datum`. See the typedoc for
`t:Coord.Datum.Ellipsoid.t/0` for the specifics of how to create an instance.
## Concept
An ellipsoid is a surface that approximates the shape of the earth. It is
constructed by fla... | 30.9 | 99 | 0.687702 |
03db1dd0cabb6ad1322da23f8b785b1c8ecf2193 | 342 | ex | Elixir | apps/language_server/lib/language_server/protocol/document_symbol.ex | wingyplus/elixir-ls | b3f00a5332d7886816df8056a3a8297c4eb447b2 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/protocol/document_symbol.ex | wingyplus/elixir-ls | b3f00a5332d7886816df8056a3a8297c4eb447b2 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/protocol/document_symbol.ex | wingyplus/elixir-ls | b3f00a5332d7886816df8056a3a8297c4eb447b2 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Protocol.DocumentSymbol do
@moduledoc """
Corresponds to the LSP interface of the same name.
For details see https://microsoft.github.io/language-server-protocol/specification#textDocument_documentSymbol
"""
@derive Jason.Encoder
defstruct [:name, :kind, :range, :selection... | 34.2 | 112 | 0.780702 |
03db3198a1fd82ef86eaacb98529a7afd5283a2d | 90 | exs | Elixir | misc_util_math.exs | sebmaldo/Getting-Started-with-Elixir | 87754e36e39f7e375aeb2c038339a111f23cb3b9 | [
"MIT"
] | null | null | null | misc_util_math.exs | sebmaldo/Getting-Started-with-Elixir | 87754e36e39f7e375aeb2c038339a111f23cb3b9 | [
"MIT"
] | null | null | null | misc_util_math.exs | sebmaldo/Getting-Started-with-Elixir | 87754e36e39f7e375aeb2c038339a111f23cb3b9 | [
"MIT"
] | null | null | null | defmodule ModulePlayground.Misc.Util.Math do
def add(a,b) do
a + b
end
end | 18 | 44 | 0.633333 |
03db49cb798ecb085afaeca1b9e321372ce5f0ec | 326 | ex | Elixir | ping/lib/ping.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | ping/lib/ping.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | ping/lib/ping.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule Ping do
def main do
{:ok, %HTTPoison.Response{body: body}} = HTTPoison.get "http://www.imdb.com/title/tt3219604/?ref_=tt_rec_tti"
body
|> Floki.find("#title_recs a")
|> Floki.attribute("href")
|> Enum.filter(fn(x) -> String.starts_with?(x, "/title/") end )
|> List.first
en... | 27.166667 | 113 | 0.616564 |
03db6ea58387b99747c9ba3232e7dfbfbe259086 | 3,442 | exs | Elixir | config/runtime.exs | ricardopadua/introduction_phoenix_liveview | 3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed | [
"Apache-2.0"
] | null | null | null | config/runtime.exs | ricardopadua/introduction_phoenix_liveview | 3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed | [
"Apache-2.0"
] | null | null | null | config/runtime.exs | ricardopadua/introduction_phoenix_liveview | 3e320b4ea7f80b079dfcd9ac2d5714b1204ce4ed | [
"Apache-2.0"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 40.023256 | 100 | 0.717025 |
03db75aab594f97b0ed81166e02cc8f1f111dc63 | 95 | ex | Elixir | Elixir/HelloWorld.ex | godslayer201/Hello-World | 0b0dec4f8d18d2db348ee4fd0fad8233dd9074a4 | [
"MIT"
] | null | null | null | Elixir/HelloWorld.ex | godslayer201/Hello-World | 0b0dec4f8d18d2db348ee4fd0fad8233dd9074a4 | [
"MIT"
] | null | null | null | Elixir/HelloWorld.ex | godslayer201/Hello-World | 0b0dec4f8d18d2db348ee4fd0fad8233dd9074a4 | [
"MIT"
] | null | null | null | # Hello World
defmodule ModuleName do
def hello do
IO.puts "Hello World"
end
end
| 13.571429 | 26 | 0.663158 |
03db789745b7f11f0d4bdffb1b9d6b674b091c4b | 1,465 | exs | Elixir | test/configuration_test.exs | niccolox/publicsuffix-elixir | 34adba7a6f6accc6c3fe95db7b169367b0bfd56e | [
"MIT"
] | 42 | 2016-04-21T21:14:04.000Z | 2021-07-18T11:00:25.000Z | test/configuration_test.exs | niccolox/publicsuffix-elixir | 34adba7a6f6accc6c3fe95db7b169367b0bfd56e | [
"MIT"
] | 21 | 2016-05-11T23:27:55.000Z | 2021-07-08T01:46:54.000Z | test/configuration_test.exs | niccolox/publicsuffix-elixir | 34adba7a6f6accc6c3fe95db7b169367b0bfd56e | [
"MIT"
] | 18 | 2016-05-19T20:19:59.000Z | 2021-07-07T23:17:32.000Z | defmodule PublicSuffix.ConfigurationTest do
use ExUnit.Case
@data_file_name "public_suffix_list.dat"
@cached_data_dir Path.expand("../data", __DIR__)
setup do
temp_dir = "tmp/#{:test_server.temp_name('public_suffix-test')}"
File.mkdir_p!(temp_dir)
cached_file_name = Path.join(@cached_data_dir, @da... | 31.170213 | 82 | 0.69215 |
03db9b5d6c67ab9241d0f759b04b1385fae9c9b0 | 1,884 | ex | Elixir | lib/hexpm_web/views/blog_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm_web/views/blog_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm_web/views/blog_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.BlogView do
use HexpmWeb, :view
alias Hexpm.Utils
skip_slugs = ~w()
all_templates =
Phoenix.Template.find_all(@phoenix_root)
|> Enum.map(&Phoenix.Template.template_path_to_name(&1, @phoenix_root))
|> Enum.flat_map(fn
<<n1, n2, n3, "-", slug::binary>> = template
when... | 23.259259 | 75 | 0.610403 |
03dbb9afe18d4b4993ea516b0d43f643b05f25d2 | 446 | exs | Elixir | elixir/sublist/sublist.exs | dtcristo/exercism-solutions | 312922ff1bedc51e9273f746eb90af71644cb971 | [
"MIT"
] | 1 | 2017-08-24T07:34:14.000Z | 2017-08-24T07:34:14.000Z | elixir/sublist/sublist.exs | dtcristo/exercism-solutions | 312922ff1bedc51e9273f746eb90af71644cb971 | [
"MIT"
] | null | null | null | elixir/sublist/sublist.exs | dtcristo/exercism-solutions | 312922ff1bedc51e9273f746eb90af71644cb971 | [
"MIT"
] | null | null | null | defmodule Sublist do
@doc """
Returns whether the first list is a sublist or a superlist of the second list
and if not whether it is equal or unequal to the second list.
"""
def compare(l, l), do: :equal
def compare([], _), do: :sublist
def compare(_, []), do: :superlist
def compare(a, b), do: :une... | 21.238095 | 79 | 0.607623 |
03dbd10a409f5b6b699a2cc826f318c4ae5ce9fb | 4,476 | exs | Elixir | test/absinthe/middleware/dataloader_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-10-10T02:57:52.000Z | 2019-10-10T02:57:52.000Z | test/absinthe/middleware/dataloader_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | test/absinthe/middleware/dataloader_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Middleware.DataloaderTest do
use Absinthe.Case, async: true
defmodule Schema do
use Absinthe.Schema
import Absinthe.Resolution.Helpers
@organizations 1..3
|> Map.new(
&{&1,
%{
id: &1,
... | 24.326087 | 97 | 0.514969 |
03dbfdf0db0aa06dea06e3835b7c2fa979b0ad4c | 1,759 | exs | Elixir | mix.exs | sidharth-shridhar/Bitcoin-Miner-Simulation | 2789dc8fe5f65269789540f675fac682e431e518 | [
"MIT"
] | 1 | 2021-12-16T08:31:24.000Z | 2021-12-16T08:31:24.000Z | mix.exs | hojason117/BitcoinSimulator | f85e623eec1923a2c0d418388f440cc06b6a5283 | [
"MIT"
] | null | null | null | mix.exs | hojason117/BitcoinSimulator | f85e623eec1923a2c0d418388f440cc06b6a5283 | [
"MIT"
] | null | null | null | defmodule BitcoinSimulator.MixProject do
use Mix.Project
def project do
[
app: :bitcoin_simulator,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
alia... | 27.061538 | 81 | 0.571916 |
03dc3cb26aa72fbff6ef901dc0a492230aee06a6 | 8,153 | ex | Elixir | web/router.ex | aman-io/exq_ui | 28a02575481a5ddf77a0ea302d711c55c7420bab | [
"Apache-2.0"
] | null | null | null | web/router.ex | aman-io/exq_ui | 28a02575481a5ddf77a0ea302d711c55c7420bab | [
"Apache-2.0"
] | null | null | null | web/router.ex | aman-io/exq_ui | 28a02575481a5ddf77a0ea302d711c55c7420bab | [
"Apache-2.0"
] | null | null | null | defmodule ExqUi.RouterPlug do
require Logger
require EEx
alias ExqUi.RouterPlug.Router
def init(options) do
enq_opts =
if options[:exq_opts] do
options[:exq_opts]
else
[name: Exq.Api.Server.server_name(ExqUi)]
end
Keyword.put(options, :exq_opts, enq_opts)
end
def... | 28.211073 | 89 | 0.583589 |
03dc442dd3c19b9e39e3eb26108ae02bd7a01600 | 1,791 | ex | Elixir | lib/nostrum/shard/intents.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/shard/intents.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/shard/intents.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Shard.Intents do
@moduledoc false
import Bitwise
@privileged_intents [
:guild_members,
:guild_presences
]
@spec intent_values :: [{atom, integer()}, ...]
def intent_values do
[
guilds: 1 <<< 0,
guild_members: 1 <<< 1,
guild_bans: 1 <<< 2,
guild_emojis... | 26.731343 | 85 | 0.644891 |
03dc49785f241ddb5f634e775e9ddddb65e47b5e | 60 | exs | Elixir | test/logger_graylog_backend_test.exs | rranelli/logger_graylog_backend | d2b0abae68190a0a95ef219fda8282ef02608605 | [
"Apache-2.0"
] | 4 | 2019-08-20T15:02:09.000Z | 2021-04-19T09:47:45.000Z | test/logger_graylog_backend_test.exs | rranelli/logger_graylog_backend | d2b0abae68190a0a95ef219fda8282ef02608605 | [
"Apache-2.0"
] | 1 | 2019-03-29T06:51:50.000Z | 2019-03-29T20:52:05.000Z | test/logger_graylog_backend_test.exs | rranelli/logger_graylog_backend | d2b0abae68190a0a95ef219fda8282ef02608605 | [
"Apache-2.0"
] | 5 | 2019-03-28T19:32:39.000Z | 2022-03-06T10:03:27.000Z | defmodule LoggerGraylogBackendTest do
use ExUnit.Case
end
| 15 | 37 | 0.85 |
03dc4fd01a76b84ecb674a2eaba412e48ec9dbf2 | 683 | ex | Elixir | lib/types/primitive_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 3 | 2019-01-07T20:11:40.000Z | 2021-02-03T22:24:07.000Z | lib/types/primitive_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 13 | 2018-07-27T12:39:01.000Z | 2022-03-28T20:16:15.000Z | lib/types/primitive_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | null | null | null | defmodule JsonSchema.Types.PrimitiveType do
@moduledoc """
Represents a custom `primitive` type definition in a JSON schema.
JSON Schema:
"name": {
"description": "A name",
"type": "string"
}
Resulting in the Elixir representation:
%PrimitiveType{name: "name",
... | 23.551724 | 67 | 0.573939 |
03dc7c5a0e8ee4e5d383db3b762da24283131602 | 522 | ex | Elixir | lib/fake_server/agents/env_agent.ex | JacksonIsaac/fake_server | a646287b252d1ce4da4b61eac50e897a6423b7ed | [
"Apache-2.0"
] | null | null | null | lib/fake_server/agents/env_agent.ex | JacksonIsaac/fake_server | a646287b252d1ce4da4b61eac50e897a6423b7ed | [
"Apache-2.0"
] | null | null | null | lib/fake_server/agents/env_agent.ex | JacksonIsaac/fake_server | a646287b252d1ce4da4b61eac50e897a6423b7ed | [
"Apache-2.0"
] | null | null | null | defmodule FakeServer.Agents.EnvAgent do
@moduledoc false
alias FakeServer.Env
def start_link do
Agent.start_link(fn -> [] end, name: __MODULE__)
end
def stop do
Agent.stop(__MODULE__)
end
def save_env(server_id, %Env{} = env) do
Agent.update(__MODULE__, &Keyword.put(&1, server_id, env))
... | 19.333333 | 62 | 0.691571 |
03dcce40ec7fa0ba507700554577b3b6c9f16322 | 1,773 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/device_identifier.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/device_identifier.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/device_identifier.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.096154 | 217 | 0.751833 |
03dd04f815718e58330207bea154cb2d25b38e60 | 1,201 | ex | Elixir | lib/changelog_web/views/admin/person_view.ex | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | lib/changelog_web/views/admin/person_view.ex | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | lib/changelog_web/views/admin/person_view.ex | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.PersonView do
use ChangelogWeb, :admin_view
alias Changelog.Person
alias ChangelogWeb.PersonView
alias ChangelogWeb.Admin.{EpisodeView, NewsItemView}
def avatar_url(person), do: PersonView.avatar_url(person)
def episode_count(person), do: Person.episode_count(person)
def li... | 30.025 | 102 | 0.637802 |
03dd079c6d9c069f7d651505f806c722f44549b5 | 6,348 | exs | Elixir | packages/elixir/.credo.exs | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 11 | 2020-01-20T16:42:00.000Z | 2021-09-18T11:36:45.000Z | packages/elixir/.credo.exs | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 16 | 2020-04-05T19:26:14.000Z | 2020-05-21T14:50:59.000Z | packages/elixir/.credo.exs | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 2 | 2020-10-16T11:01:57.000Z | 2021-01-20T21:11:52.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.185185 | 93 | 0.614052 |
03dd18ddcbb4b11984ac56c6723fa372393f57d9 | 703 | exs | Elixir | apps/alert_processor/priv/repo/migrations/20170726172307_add_versions.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/priv/repo/migrations/20170726172307_add_versions.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/priv/repo/migrations/20170726172307_add_versions.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule Repo.Migrations.AddVersions do
use Ecto.Migration
def change do
create table(:versions) do
add :event, :string, null: false, size: 10
add :item_type, :string, null: false
add :item_id, :binary_id
add :item_changes, :map, null: false
add :originator_id, ref... | 30.565217 | 62 | 0.631579 |
03dd26665d0e5da03ee07abfcd0bfe0f04332d9b | 2,645 | exs | Elixir | priv/repo/migrations/20200920134049_change_owner_for_followers_chat.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | priv/repo/migrations/20200920134049_change_owner_for_followers_chat.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | priv/repo/migrations/20200920134049_change_owner_for_followers_chat.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.Repo.Migrations.ChangeOwnerForFollowersChat do
use Ecto.Migration
import Ecto.Query
def up do
rename table(:user_moderators), to: table(:channel_moderators)
rename table(:user_moderation_log), to: table(:channel_moderation_log)
alter table(:chat_messages) do
add :channel_id, ... | 24.266055 | 74 | 0.650284 |
03dd58ddcc09b2202b4a96565d7c49905ff5564e | 2,141 | exs | Elixir | test/changelog_web/controllers/home_controller_test.exs | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | test/changelog_web/controllers/home_controller_test.exs | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | test/changelog_web/controllers/home_controller_test.exs | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.HomeControllerTest do
use ChangelogWeb.ConnCase
alias Changelog.Person
@tag :as_user
test "renders the home page", %{conn: conn} do
conn = get(conn, home_path(conn, :show))
assert html_response(conn, 200)
end
@tag :as_user
test "renders the account form", %{conn: conn} do... | 32.439394 | 92 | 0.67305 |
03dd70b86b8536be4b87f9f27e98f6703abbcf7d | 416 | ex | Elixir | lib/thin_notion_api/types/search_params.ex | CodingZeal/thin_notion_api | e1f4081348300ab6c48adae8ebb4b2995cde59d1 | [
"MIT"
] | 1 | 2022-01-15T00:50:09.000Z | 2022-01-15T00:50:09.000Z | lib/thin_notion_api/types/search_params.ex | CodingZeal/thin_notion_api | e1f4081348300ab6c48adae8ebb4b2995cde59d1 | [
"MIT"
] | null | null | null | lib/thin_notion_api/types/search_params.ex | CodingZeal/thin_notion_api | e1f4081348300ab6c48adae8ebb4b2995cde59d1 | [
"MIT"
] | null | null | null | defmodule ThinNotionApi.Types.SearchParams do
@typedoc """
Parameters for using the search API.
"""
@type t :: %__MODULE__{
query: String.t(),
sort: ThinNotionApi.Types.SearchSortParams.t(),
filter: ThinNotionApi.Types.SearchFilterParams.t(),
start_cursor: String.t(),
page_size: integer()
... | 24.470588 | 63 | 0.692308 |
03dd8333819e9ab191e422ab9562df7c4614bcaf | 2,508 | ex | Elixir | ch4/todo_list/lib/todo_list.ex | TheEndIsNear/ElixirInAction | 9b18ebd4845723935e03ec2a0c3cf869aa955541 | [
"MIT"
] | null | null | null | ch4/todo_list/lib/todo_list.ex | TheEndIsNear/ElixirInAction | 9b18ebd4845723935e03ec2a0c3cf869aa955541 | [
"MIT"
] | null | null | null | ch4/todo_list/lib/todo_list.ex | TheEndIsNear/ElixirInAction | 9b18ebd4845723935e03ec2a0c3cf869aa955541 | [
"MIT"
] | null | null | null | defmodule TodoList do
@moduledoc """
"""
defstruct auto_id: 1, entries: %{}
@doc """
Creates a new TodoList
"""
def new(), do: %TodoList{}
@doc """
Add a new entry to a todo list
"""
def add_entry(todo_list, entry) do
entry = Map.put(entry, :id, todo_list.auto_id)
new_entries =
Ma... | 23.439252 | 79 | 0.627592 |
03dd8cfaa81ae2f0767cb0eab3f6ead64ef47e94 | 1,544 | ex | Elixir | test/support/data_case.ex | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | test/support/data_case.ex | CableClub/cable-club-core | 70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb | [
"Apache-2.0"
] | null | null | null | defmodule CableClub.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to... | 27.571429 | 77 | 0.691062 |
03dd8db30a11e5589bb4d19638085f05dfd42d3b | 1,775 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_property.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_property.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_property.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... | 32.87037 | 92 | 0.731268 |
03dd905d67a25a0f8f7a1ff5f86c8c744588fde2 | 1,407 | ex | Elixir | lib/brando_admin/components/children_button.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando_admin/components/children_button.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando_admin/components/children_button.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule BrandoAdmin.Components.ChildrenButton do
use Surface.LiveComponent
prop entry, :any, required: true
prop fields, :list, required: true
data count, :integer
data active, :boolean
def mount(socket) do
{:ok, assign(socket, :active, false)}
end
def update(assigns, socket) do
entry = as... | 21.984375 | 90 | 0.585643 |
03ddacc8b38009604932120f7ef1a7647c949824 | 2,945 | ex | Elixir | apps/core/lib/core/api/helpers/microservice_base.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/api/helpers/microservice_base.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/api/helpers/microservice_base.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.API.Helpers.MicroserviceBase do
@moduledoc false
defmacro __using__(_) do
quote do
use Confex, otp_app: :core
use HTTPoison.Base
alias Core.API.Helpers.ResponseDecoder
require Logger
def process_request_url(url), do: config()[:endpoint] <> url
def process_r... | 29.158416 | 116 | 0.550764 |
03ddc21208b48921d4ba7b4457a3abeb9fc63675 | 1,099 | exs | Elixir | clients/dataproc/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataproc/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | defmodule GoogleApi.Dataproc.V1.Mixfile do
use Mix.Project
def project do
[app: :google_api_dataproc,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
so... | 23.382979 | 108 | 0.585987 |
03ddc71bdc353dbb413bb8ef5d8ed70b5a318f5c | 4,519 | exs | Elixir | apps/definition_kafka/test/kafka/topic/destination_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/definition_kafka/test/kafka/topic/destination_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/definition_kafka/test/kafka/topic/destination_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Kafka.Topic.DestinationTest do
use ExUnit.Case
use Divo
require Temp.Env
import AssertAsync
@endpoints [localhost: 9092]
@moduletag integration: true, divo: true
setup do
test = self()
handler = fn event, measurements, metadata, config ->
send(test, {:telemetry_event, event, me... | 29.535948 | 91 | 0.614295 |
03ddf9fe0f2b898da731dcdd9d979f5d02e9d526 | 1,415 | exs | Elixir | mix.exs | joakimk/exqueue | bc2c4fdf311174ea92ff1cf3c0a1860137132ed7 | [
"MIT",
"Unlicense"
] | 366 | 2015-07-04T22:05:44.000Z | 2021-11-15T10:13:46.000Z | mix.exs | joakimk/exqueue | bc2c4fdf311174ea92ff1cf3c0a1860137132ed7 | [
"MIT",
"Unlicense"
] | 47 | 2015-07-05T13:40:56.000Z | 2019-10-04T03:16:56.000Z | mix.exs | joakimk/exqueue | bc2c4fdf311174ea92ff1cf3c0a1860137132ed7 | [
"MIT",
"Unlicense"
] | 33 | 2015-07-05T12:50:55.000Z | 2021-01-28T03:42:41.000Z | defmodule Toniq.Mixfile do
use Mix.Project
def project do
[
app: :toniq,
version: "1.2.3",
elixir: "~> 1.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
end
# Con... | 23.583333 | 104 | 0.571025 |
03de5258ee5513d7a52b92825de738015f4f66c9 | 1,448 | ex | Elixir | lib/json_api_query_builder/include.ex | mbuhot/json_api_query_builder | c67bc3bf81c27c6ccb69278d09eba337aa81589c | [
"MIT"
] | 8 | 2017-12-13T14:37:37.000Z | 2020-05-22T13:50:45.000Z | lib/json_api_query_builder/include.ex | mbuhot/json_api_query_builder | c67bc3bf81c27c6ccb69278d09eba337aa81589c | [
"MIT"
] | null | null | null | lib/json_api_query_builder/include.ex | mbuhot/json_api_query_builder | c67bc3bf81c27c6ccb69278d09eba337aa81589c | [
"MIT"
] | null | null | null | defmodule JsonApiQueryBuilder.Include do
@moduledoc """
Related resource include operations for JsonApiQueryBuilder
"""
@doc """
Applies related resource inclusion from a parsed JSON-API request to an `Ecto.Queryable.t` as preloads.
The given callback will be invoked for each included relationship with a ... | 33.674419 | 105 | 0.635359 |
03de67e084b8e0b75105d5929cca5701eb60e039 | 2,255 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/resource_policy_snapshot_schedule_policy_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/resource_policy_snapshot_schedule_policy_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/resource_policy_snapshot_schedule_policy_schedule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41 | 110 | 0.759645 |
03defd0074dd2e7eaa4fbbd6b64776a8fa226ae5 | 7,003 | exs | Elixir | test/nerves_new_test.exs | TORIFUKUKaiou/nerves_bootstrap | 8d4142779fa5f2a3719118490c8cd3401c6eb374 | [
"Apache-2.0"
] | null | null | null | test/nerves_new_test.exs | TORIFUKUKaiou/nerves_bootstrap | 8d4142779fa5f2a3719118490c8cd3401c6eb374 | [
"Apache-2.0"
] | null | null | null | test/nerves_new_test.exs | TORIFUKUKaiou/nerves_bootstrap | 8d4142779fa5f2a3719118490c8cd3401c6eb374 | [
"Apache-2.0"
] | null | null | null | Code.require_file("mix_helper.exs", __DIR__)
defmodule Nerves.NewTest do
use ExUnit.Case
import MixHelper
@app_name "my_device"
setup do
# The shell asks to install deps.
# We will politely say not to.
send(self(), {:mix_shell_input, :yes?, false})
:ok
end
test "new project default targe... | 29.92735 | 94 | 0.600885 |
03df20560d4256c1ba5ce5073b2367b9f3c8df37 | 112 | exs | Elixir | ps/servy/test/servy_test.exs | mdeilman/ElixirCode | d0560c7b135b4cb146dccb8202b9e4dede199a1b | [
"Apache-2.0"
] | null | null | null | ps/servy/test/servy_test.exs | mdeilman/ElixirCode | d0560c7b135b4cb146dccb8202b9e4dede199a1b | [
"Apache-2.0"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | ps/servy/test/servy_test.exs | mdeilman/ElixirCode | d0560c7b135b4cb146dccb8202b9e4dede199a1b | [
"Apache-2.0"
] | null | null | null | defmodule ServyTest do
use ExUnit.Case
doctest Servy
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.444444 | 22 | 0.660714 |
03df49793ee3e653bbe585c6ae80be87db19fb2e | 1,789 | ex | Elixir | lib/blue_heron/hci/commands/controller_and_baseband/write_scan_enable.ex | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 45 | 2020-10-17T13:34:15.000Z | 2022-03-08T09:40:43.000Z | lib/blue_heron/hci/commands/controller_and_baseband/write_scan_enable.ex | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 20 | 2020-10-15T15:05:54.000Z | 2022-03-27T15:54:36.000Z | lib/blue_heron/hci/commands/controller_and_baseband/write_scan_enable.ex | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 11 | 2020-10-23T17:18:57.000Z | 2022-03-15T20:01:49.000Z | defmodule BlueHeron.HCI.Command.ControllerAndBaseband.WriteScanEnable do
use BlueHeron.HCI.Command.ControllerAndBaseband, ocf: 0x001A
@moduledoc """
This command writes the value for the Scan_Enable configuration parameter.
* OGF: `#{inspect(@ogf, base: :hex)}`
* OCF: `#{inspect(@ocf, base: :hex)}`
* Opco... | 32.527273 | 79 | 0.723309 |
03df7848a3016f7fadf64556f4169db9366a737f | 689 | exs | Elixir | patterns/content-based-router/elixir/contentBasedRouter/mix.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | patterns/content-based-router/elixir/contentBasedRouter/mix.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | patterns/content-based-router/elixir/contentBasedRouter/mix.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | defmodule ContentBasedRouter.Mixfile do
use Mix.Project
def project do
[app: :contentBasedRouter,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help... | 20.878788 | 77 | 0.62119 |
03df80bb598a3b2a0e1a9182eab8f7c5337029c7 | 1,733 | ex | Elixir | lib/shopix_web.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | lib/shopix_web.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | lib/shopix_web.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule ShopixWeb do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use ShopixWeb, :controller
use ShopixWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and... | 23.106667 | 88 | 0.688979 |
03df9fb4b1b2c1ca461eb1de8c59e0b353f4f9c1 | 2,332 | ex | Elixir | lib/toolshed/log.ex | fhunleth/toolbag | 6eda196a2c0506ccad01fb437aa30b81def55eda | [
"Apache-2.0"
] | 51 | 2018-10-20T00:48:39.000Z | 2021-02-26T13:42:03.000Z | lib/toolshed/log.ex | fhunleth/toolbag | 6eda196a2c0506ccad01fb437aa30b81def55eda | [
"Apache-2.0"
] | 27 | 2021-02-27T15:57:22.000Z | 2022-03-18T03:12:59.000Z | lib/toolshed/log.ex | fhunleth/toolbag | 6eda196a2c0506ccad01fb437aa30b81def55eda | [
"Apache-2.0"
] | 11 | 2018-11-02T00:00:57.000Z | 2021-02-24T19:03:34.000Z | defmodule Toolshed.Log do
@moduledoc """
Utilities for attaching and detaching to the log
These utilities configure Elixir's console backend to attach
to the current group leader. This makes it work over `ssh` sessions
and play well with the IEx prompt.
"""
@doc """
Attach the current session to the E... | 29.518987 | 93 | 0.675815 |
03dfe5900828c8b1c40e8ada03ccf19e1b8b18fe | 557 | ex | Elixir | lib/lle_cymraeg_web/views/person_view.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/views/person_view.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/views/person_view.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | defmodule LleCymraegWeb.PersonView do
use LleCymraegWeb, :view
alias LleCymraegWeb.PersonView
def render("index.json", %{people: people}) do
%{data: render_many(people, PersonView, "person.json")}
end
def render("show.json", %{person: person}) do
%{data: render_one(person, PersonView, "person.json")... | 25.318182 | 59 | 0.666068 |
03e014103f7419659e9d52d1282d9da5f854e9ea | 803 | exs | Elixir | test/ex_raja_ongkir/request_test.exs | giraphme/ex_raja_ongkir | 6c7e7a811879d0adfd7eb574d0bbc665f1b7084d | [
"MIT"
] | null | null | null | test/ex_raja_ongkir/request_test.exs | giraphme/ex_raja_ongkir | 6c7e7a811879d0adfd7eb574d0bbc665f1b7084d | [
"MIT"
] | 1 | 2018-04-24T08:27:20.000Z | 2018-04-24T08:27:20.000Z | test/ex_raja_ongkir/request_test.exs | giraphme/ex_raja_ongkir | 6c7e7a811879d0adfd7eb574d0bbc665f1b7084d | [
"MIT"
] | null | null | null | defmodule ExRajaOngkir.RequestTest do
use ExUnit.Case
describe "ExRajaOngkir.Request.take_result/1" do
test "It get the result from RajaOngkir response" do
expected_result = "This is result"
mock_response = %HTTPotion.Response{
body: %{"rajaongkir" => %{"results" => expected_result, "statu... | 30.884615 | 94 | 0.656289 |
03e05653da8f6756686fadf1d3c8c5724e91afe1 | 3,022 | exs | Elixir | test/ex_doc/cli_test.exs | henrik/ex_doc | f09796782121f935e70cc51405d4773130fd70ca | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-03-13T14:49:36.000Z | 2021-03-13T14:49:36.000Z | test/ex_doc/cli_test.exs | henrik/ex_doc | f09796782121f935e70cc51405d4773130fd70ca | [
"Apache-2.0",
"CC-BY-4.0"
] | 25 | 2015-02-03T02:21:01.000Z | 2021-04-01T13:13:56.000Z | test/ex_doc/cli_test.exs | henrik/ex_doc | f09796782121f935e70cc51405d4773130fd70ca | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.CLITest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
@ebin "_build/test/lib/ex_doc/ebin"
defp run(args) do
ExDoc.CLI.main(args, &{&1, &2, &3})
end
test "minimum command-line options" do
assert {"ExDoc", "1.2.3", [app: :ex_doc, source_beam: @ebin]} ==
run(["... | 25.394958 | 85 | 0.50728 |
03e067ec264145fba5993a0c645564976993eed5 | 129 | ex | Elixir | lib/rain_machine/zone.ex | unsilo/rain_machine | a1acf1b7ed54021699c137cabb5ed127d0aa30a3 | [
"MIT"
] | null | null | null | lib/rain_machine/zone.ex | unsilo/rain_machine | a1acf1b7ed54021699c137cabb5ed127d0aa30a3 | [
"MIT"
] | null | null | null | lib/rain_machine/zone.ex | unsilo/rain_machine | a1acf1b7ed54021699c137cabb5ed127d0aa30a3 | [
"MIT"
] | null | null | null | defmodule RainMachine.Zone do
defstruct name: nil, last_water: nil, next_water: nil, total_water: nil, uid: nil, state: 0
end
| 25.8 | 93 | 0.751938 |
03e0aefb56a0c4582ef911c3c4d53d05a3b0e781 | 7,949 | exs | Elixir | test/invoices/invoice_creation_test.exs | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | test/invoices/invoice_creation_test.exs | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | test/invoices/invoice_creation_test.exs | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | defmodule InvoiceCreationTest do
use BitPal.IntegrationCase, db: true, async: false
alias BitPal.Addresses
alias BitPal.ExchangeRate
alias BitPal.Invoices
alias BitPalSchemas.Address
test "invoice registration" do
# we don't have to provide fiat_amount
assert {:ok, invoice} =
Invoices.... | 33.682203 | 98 | 0.561203 |
03e0b8f58c8f7075fcc683da3483e404f30507e0 | 1,023 | ex | Elixir | lib/origami/application.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | lib/origami/application.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | lib/origami/application.ex | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | defmodule Origami.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 31.96875 | 85 | 0.713587 |
03e0ca7028755bbe160a0a2d0265886939fd13a9 | 3,208 | ex | Elixir | lib/day06.ex | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | 1 | 2022-01-10T02:34:18.000Z | 2022-01-10T02:34:18.000Z | lib/day06.ex | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | null | null | null | lib/day06.ex | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | 1 | 2019-12-02T09:42:17.000Z | 2019-12-02T09:42:17.000Z | defmodule Day06 do
def hello() do
:hello
end
def manhattan_distance({x1, y1}, {x2, y2}) do
abs(x1 - x2) + abs(y1 - y2)
end
def string_to_coordinate(string) do
string
|> String.split("\n", trim: true)
|> Enum.map(&String.trim/1)
|> Enum.map(fn s -> String.split(s, ", ") end)
|> En... | 27.895652 | 96 | 0.601621 |
03e0d7ffd543a1d4997199adecdaf8f43adc6f45 | 1,717 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/data_source_refresh_daily_schedule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/data_source_refresh_daily_schedule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/data_source_refresh_daily_schedule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.531915 | 255 | 0.75364 |
03e0fb0c3928f18a1d0e99174fbc1d63199525c9 | 428 | ex | Elixir | lib/hologram/compiler/js_encoders/relaxed_boolean_and_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/js_encoders/relaxed_boolean_and_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/js_encoders/relaxed_boolean_and_operator.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | alias Hologram.Compiler.{Context, JSEncoder, Opts}
alias Hologram.Compiler.IR.RelaxedBooleanAndOperator
defimpl JSEncoder, for: RelaxedBooleanAndOperator do
def encode(%{left: left, right: right}, %Context{} = context, %Opts{} = opts) do
left = JSEncoder.encode(left, context, opts)
right = JSEncoder.encode(r... | 35.666667 | 82 | 0.742991 |
03e0fc43d004a58aba02428e51af20f7c88a0399 | 2,347 | ex | Elixir | lib/sanbase/tag/tag.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/tag/tag.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/tag/tag.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Tag do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query
alias __MODULE__
alias Sanbase.Repo
alias Sanbase.Insight.Post
alias Sanbase.Alert.UserTrigger
@posts_join_through_table "posts_tags"
@user_triggers_join_through_table "user_triggers_tags"
schema "tags" do
field(... | 29.708861 | 94 | 0.681721 |
03e1170b5d0162efedcdae4c79dd2bfeb6a294b3 | 572 | ex | Elixir | apps/tai/lib/tai/events/stream_channel_invalid.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/events/stream_channel_invalid.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/events/stream_channel_invalid.ex | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Events.StreamChannelInvalid do
@type venue_id :: Tai.Venue.id()
@type t :: %Tai.Events.StreamChannelInvalid{
venue: venue_id,
name: atom,
available: [atom]
}
@enforce_keys ~w(venue name available)a
defstruct ~w(venue name available)a
end
defimpl Tai.LogEvent... | 22.88 | 61 | 0.625874 |
03e137fdd1726356e8dadcd2837d6cb4a5106aa3 | 636 | ex | Elixir | test/support/test_case.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 1 | 2019-11-02T08:32:25.000Z | 2019-11-02T08:32:25.000Z | test/support/test_case.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | test/support/test_case.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | null | null | null | defmodule Changelog.TestCase do
@moduledoc """
Functions in this module are imported in all test modules
"""
def fixtures_path() do
Path.dirname(__ENV__.file) <> "/../fixtures"
end
def stub_audio_file(episode) do
%Changelog.Episode{episode | audio_file: %{file_name: "test.mp3"}}
end
@doc """
... | 24.461538 | 70 | 0.688679 |
03e13e34c3c9f983a6c1c3fabe0fef2d4fbb8ac5 | 3,617 | ex | Elixir | lib/rethinkdb/pseudotypes.ex | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | null | null | null | lib/rethinkdb/pseudotypes.ex | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | null | null | null | lib/rethinkdb/pseudotypes.ex | point/rethinkdb-elixir | 0549902e5060e75b0942716befc16db984a14b76 | [
"MIT"
] | null | null | null | defmodule RethinkDB.Pseudotypes do
@moduledoc false
defmodule Binary do
@moduledoc false
defstruct data: nil
def parse(%{"$reql_type$" => "BINARY", "data" => data}, opts) do
case Dict.get(opts, :binary_format) do
:raw ->
%__MODULE__{data: data}
_ ->
:base64.dec... | 32.881818 | 102 | 0.592203 |
03e14f8b891ab8542caec552de74da380cf8a69a | 3,695 | exs | Elixir | test/bits_test.exs | EntropyString/Elixir | fb90c6dddd8dd7026c4762d138bea7ce0c81fe8a | [
"MIT"
] | 23 | 2017-09-06T23:56:04.000Z | 2021-08-17T17:29:19.000Z | test/bits_test.exs | EntropyString/Elixir | fb90c6dddd8dd7026c4762d138bea7ce0c81fe8a | [
"MIT"
] | null | null | null | test/bits_test.exs | EntropyString/Elixir | fb90c6dddd8dd7026c4762d138bea7ce0c81fe8a | [
"MIT"
] | 4 | 2017-09-15T16:27:28.000Z | 2019-10-04T11:41:24.000Z | defmodule EntropypString.Bits.Test do
use ExUnit.Case, async: true
import EntropyString, only: [bits: 2]
test "bits for zero entropy" do
assert bits(0, 0) == 0
assert bits(100, 0) == 0
assert bits(0, 100) == 0
assert bits(0, -1) == 0
assert bits(-1, 0) == 0
end
test "bits for integer to... | 32.991071 | 84 | 0.615968 |
03e197910f3b2905745e0c1a3f09fd9ecd4e961b | 404 | exs | Elixir | test/mix/tasks/cc_cedict_entries_test.exs | bchase/cc_cedict-elixir | 37ad788b91746ff0aa7248b0596c9d7fcb8dd902 | [
"MIT"
] | null | null | null | test/mix/tasks/cc_cedict_entries_test.exs | bchase/cc_cedict-elixir | 37ad788b91746ff0aa7248b0596c9d7fcb8dd902 | [
"MIT"
] | null | null | null | test/mix/tasks/cc_cedict_entries_test.exs | bchase/cc_cedict-elixir | 37ad788b91746ff0aa7248b0596c9d7fcb8dd902 | [
"MIT"
] | null | null | null | defmodule CCCEDICT.EntryStreamConsumer do
def take_one(entries_stream) do
[entry] = Enum.take entries_stream, 1
entry
end
end
defmodule CCCEDICT.EntriesMixTaskTest do
use ExUnit.Case, async: true
test "module receives entries stream" do
consumer = "CCCEDICT.EntryStreamConsumer.take_one"
entry ... | 23.764706 | 54 | 0.740099 |
03e1ccfbd5690cb2f47bdc0b01d79ed746d59a8b | 1,659 | ex | Elixir | clients/iap/lib/google_api/iap/v1/model/csm_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/iap/lib/google_api/iap/v1/model/csm_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/iap/lib/google_api/iap/v1/model/csm_settings.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... | 35.297872 | 281 | 0.746835 |
03e1cfab4552e5782ed0d2222b794c9a0e32d335 | 3,889 | exs | Elixir | apps/ewallet/test/ewallet/web/v1/serializers/export_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/web/v1/serializers/export_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/web/v1/serializers/export_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 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 ... | 32.140496 | 74 | 0.613782 |
03e1d20de28f06bbff57acedecb65655b81931c5 | 1,782 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/insert_range_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/insert_range_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/insert_range_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.941176 | 203 | 0.750842 |
03e1db72255f861578f2d36c7470ffa33f388d0e | 7,785 | ex | Elixir | lib/nostrum/struct/channel.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | lib/nostrum/struct/channel.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | lib/nostrum/struct/channel.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | defmodule Nostrum.Struct.Channel do
@moduledoc ~S"""
Struct representing a Discord guild channel.
A `Nostrum.Struct.Channel` represents all 5 types of channels. Each
channel has a field `:type` with any of the following values:
* `0` - GUILD_TEXT
* `1` - DM
* `2` - GUILD_VOICE
* `3` - GROUP_DM... | 26.752577 | 111 | 0.608606 |
03e24578da43a7bd642beef4a4d1912beeb5a964 | 286 | exs | Elixir | test/tesla/adapter/ibrowse_test.exs | chingor13/tesla | 640fd5e860491992c4aeba9ba125be711942a237 | [
"MIT"
] | null | null | null | test/tesla/adapter/ibrowse_test.exs | chingor13/tesla | 640fd5e860491992c4aeba9ba125be711942a237 | [
"MIT"
] | null | null | null | test/tesla/adapter/ibrowse_test.exs | chingor13/tesla | 640fd5e860491992c4aeba9ba125be711942a237 | [
"MIT"
] | null | null | null | defmodule IbrowseTest do
use ExUnit.Case
use Tesla.Adapter.TestCase.Basic, adapter: :ibrowse
use Tesla.Adapter.TestCase.StreamRequestBody, adapter: :ibrowse
use Tesla.Adapter.TestCase.SSL, adapter: :ibrowse
setup do
Application.ensure_started(:ibrowse)
:ok
end
end
| 23.833333 | 65 | 0.762238 |
03e2473c2b379bc91416ff50162823f4dfdf41e1 | 512 | ex | Elixir | test/support/conn_case.ex | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | 30 | 2021-02-05T18:50:38.000Z | 2022-03-12T22:42:29.000Z | test/support/conn_case.ex | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | 19 | 2021-01-15T19:14:24.000Z | 2022-02-05T14:57:18.000Z | test/support/conn_case.ex | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | 17 | 2021-02-01T20:57:51.000Z | 2022-03-20T17:06:57.000Z | defmodule SurfaceBulma.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
It also imports other functionality to make it easier
to test components.
"""
use ExUnit.CaseTemplate
using do
quote do
# Import conveniences for tes... | 19.692308 | 55 | 0.701172 |
03e2a0e14d8aba263bb47c512ac0e4afc2f382c4 | 1,110 | ex | Elixir | lib/resty/resource/builder.ex | kkvesper/resty | a7680b9b10487b5ffb02bfa2a5c89b67312a2411 | [
"MIT"
] | null | null | null | lib/resty/resource/builder.ex | kkvesper/resty | a7680b9b10487b5ffb02bfa2a5c89b67312a2411 | [
"MIT"
] | null | null | null | lib/resty/resource/builder.ex | kkvesper/resty | a7680b9b10487b5ffb02bfa2a5c89b67312a2411 | [
"MIT"
] | 1 | 2019-01-10T13:15:23.000Z | 2019-01-10T13:15:23.000Z | defmodule Resty.Resource.Builder do
@moduledoc false
def build(module, attributes, filter_unknown \\ true) do
attributes = attributes |> Enum.into(%{})
attributes =
case filter_unknown do
true -> remove_unknown(attributes, module.known_attributes())
false -> attributes
end
... | 27.75 | 82 | 0.702703 |
03e2a1033dd8e46d14eb1639c44d462fa0d9ab23 | 1,258 | exs | Elixir | mix.exs | gmcintire/xgps | 56cf4c83dfc05aa22b1d7b7d1d2456cf5acfa7a2 | [
"MIT"
] | null | null | null | mix.exs | gmcintire/xgps | 56cf4c83dfc05aa22b1d7b7d1d2456cf5acfa7a2 | [
"MIT"
] | null | null | null | mix.exs | gmcintire/xgps | 56cf4c83dfc05aa22b1d7b7d1d2456cf5acfa7a2 | [
"MIT"
] | null | null | null | defmodule XGPS.Mixfile do
use Mix.Project
def project do
[
app: :xgps,
name: XGPS,
version: "0.4.1",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/gmcintire/xgps",
deps: deps(),
de... | 24.192308 | 82 | 0.569157 |
03e303de588bd43bb78cdd8ec8a86ff8f53f2fac | 500 | ex | Elixir | lib/elxr_yt_wb_scrpr.ex | mingyar/elixir-youtube-web-scraper | 14e7238847281ab4880cb2b60c3eb39eac647858 | [
"MIT"
] | 1 | 2021-05-24T05:28:33.000Z | 2021-05-24T05:28:33.000Z | lib/elxr_yt_wb_scrpr.ex | mingyar/elxr_yt_wb_scrpr | 14e7238847281ab4880cb2b60c3eb39eac647858 | [
"MIT"
] | null | null | null | lib/elxr_yt_wb_scrpr.ex | mingyar/elxr_yt_wb_scrpr | 14e7238847281ab4880cb2b60c3eb39eac647858 | [
"MIT"
] | null | null | null | defmodule ElxrYtWbScrpr do
use Hound.Helpers
def last_video_from() do
IO.puts "starting"
Hound.start_session
navigate_to "https://www.youtube.com/channel/UC0l2QTnO1P2iph-86HHilMQ/videos"
Process.sleep(5000)
last_video = page_source()
|> Floki.find("#video-title")
... | 29.411765 | 81 | 0.63 |
03e3056ab360104c565561b6e0d9a8786d495ba1 | 71 | ex | Elixir | web/views/layout_view.ex | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | defmodule ReactPhoenix.LayoutView do
use ReactPhoenix.Web, :view
end
| 17.75 | 36 | 0.816901 |
03e3229afaf373c49118be94c4c4cc743854230e | 1,246 | ex | Elixir | 06_retirement_calculator/lib/retirement_calculator.ex | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"MIT"
] | 1 | 2015-12-15T04:46:41.000Z | 2015-12-15T04:46:41.000Z | 06_retirement_calculator/lib/retirement_calculator.ex | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"MIT"
] | null | null | null | 06_retirement_calculator/lib/retirement_calculator.ex | mkchandler/elixir-school | cc08bd723db00cc35cd2d6b07abe519e5d102ca0 | [
"MIT"
] | null | null | null | defmodule RetirementCalculator do
def run do
current_age = IO.gets("What is your current age? ")
|> String.strip
|> String.to_integer
retirement_age = IO.gets("What age would you like to retire? ")
|> String.strip
|> String.to_i... | 31.15 | 68 | 0.666132 |
03e39f31ce931b0387cbf1a3440dbaa1b5d2dfdf | 12,531 | exs | Elixir | test/taglet_test.exs | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | test/taglet_test.exs | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | test/taglet_test.exs | ringofhealth/ex_tag | a0aa0a3c8f57311867e33d2290a944a46351d0e2 | [
"Apache-2.0"
] | null | null | null | defmodule TagletTest do
alias Ecto.Adapters.SQL
alias TagletPost, as: Post
alias Taglet.{Tagging, Tag}
import Ecto.Query
import Ecto.Query
# import Mix.Ecto, only: [build_repo_priv: 1]
use ExUnit.Case
def build_repo_priv(repo) do
Application.app_dir(
Keyword.fetch!(repo.config(), :otp_app),... | 33.867568 | 117 | 0.651185 |
03e3cbf42d306527695282ab5a846a2e8a12820a | 2,603 | exs | Elixir | test/elixir_google_spreadsheets/client_test.exs | trusty/elixir_google_spreadsheets | b7f74d75e61027dc0b12aa5260168563d0777c92 | [
"MIT"
] | 50 | 2016-12-21T06:39:08.000Z | 2022-03-16T04:52:42.000Z | test/elixir_google_spreadsheets/client_test.exs | trusty/elixir_google_spreadsheets | b7f74d75e61027dc0b12aa5260168563d0777c92 | [
"MIT"
] | 36 | 2017-01-31T19:12:19.000Z | 2022-03-10T17:27:58.000Z | test/elixir_google_spreadsheets/client_test.exs | nested-tech/elixir_google_spreadsheets | 45895fe6ac5bc9f256bc2e271be1a3324ce8aded | [
"MIT"
] | 34 | 2017-01-16T04:22:16.000Z | 2022-03-01T01:46:39.000Z | defmodule GSS.ClientTest do
use ExUnit.Case, async: true
alias GSS.{Client.RequestParams, Client}
alias GSS.StubModules.Consumer
describe ".request" do
setup do
{:ok, client} = GenStage.start_link(GSS.Client, :ok)
client
|> send_request(:get, 1)
|> send_request(:post, 2)
|> ... | 30.988095 | 99 | 0.629274 |
03e3f5170bf2038cef5c32fc186a09e136e5a822 | 3,887 | ex | Elixir | lib/oban/plugins/lifeline.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | lib/oban/plugins/lifeline.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | lib/oban/plugins/lifeline.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Plugins.Lifeline do
@moduledoc """
Naively transition jobs stuck `executing` back to `available`.
The `Lifeline` plugin periodically rescues orphaned jobs, i.e. jobs that are stuck in the
`executing` state because the node was shut down before the job could finish. Rescuing is
purely based on ... | 27.764286 | 97 | 0.658863 |
03e432735d670ae8d6e1d66e141711126389e217 | 4,292 | ex | Elixir | test/e2e/lib/hologram_e2e_web/pages/page_4.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/e2e/lib/hologram_e2e_web/pages/page_4.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/e2e/lib/hologram_e2e_web/pages/page_4.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule HologramE2E.Page4 do
use Hologram.Page
alias HologramE2E.Component4, warn: false
route "/e2e/page-4"
def init(_params, _conn) do
%{
text: "",
value: :p4,
x: 0
}
end
def template do
~H"""
<h1>Page 4</h1><br />
<button id="page-4-button-1" on:click.command="... | 30.225352 | 134 | 0.663094 |
03e4684797a1e93da4cd59ffdab3482563467266 | 501 | exs | Elixir | apps/artemis/priv/repo/migrations/20200221004737_create_event_questions.exs | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/priv/repo/migrations/20200221004737_create_event_questions.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/priv/repo/migrations/20200221004737_create_event_questions.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.Repo.Migrations.CreateEventQuestions do
use Ecto.Migration
def change do
create table(:event_questions) do
add :active, :boolean
add :description, :text
add :order, :integer
add :title, :string
add :type, :string
add :event_template_id, references(:event_t... | 23.857143 | 82 | 0.684631 |
03e4b1bdb91a72a4ddc96aa6bde1764fde4a8b94 | 780 | ex | Elixir | lib/surface/components/form.ex | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | null | null | null | lib/surface/components/form.ex | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | null | null | null | lib/surface/components/form.ex | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | 1 | 2020-04-21T18:49:15.000Z | 2020-04-21T18:49:15.000Z | defmodule Surface.Components.Form do
use Surface.Component
import Phoenix.HTML.Form
alias Surface.Components.Raw
@doc "Atom or changeset to inform the form data"
property for, :any, required: true
@doc "URL to where the form is submitted"
property action, :string, required: true
@doc "Keyword list ... | 21.666667 | 68 | 0.670513 |
03e4bcfc07d3525b132209e81387b9cb4a5627b8 | 1,288 | ex | Elixir | lib/oli_web/plugs/set_user.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/plugs/set_user.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/plugs/set_user.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.Plugs.SetCurrentUser do
import Plug.Conn
alias Oli.Accounts.Author
alias Oli.Accounts.User
alias Oli.Repo
def init(_params) do
end
def call(conn, _params) do
conn
|> set_author
|> set_user
|> set_user_token
end
def set_author(conn) do
pow_config = OliWeb.Pow.PowHe... | 21.114754 | 93 | 0.627329 |
03e4e7f5bfad88175ca25c86739cd91134e81cd5 | 1,625 | exs | Elixir | config/config.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 523 | 2017-03-15T15:21:11.000Z | 2022-03-14T03:04:18.000Z | config/config.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 524 | 2017-03-16T18:31:09.000Z | 2022-02-26T10:02:06.000Z | config/config.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 60 | 2017-05-01T18:02:28.000Z | 2022-03-04T21:04:56.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :remote_retro,
ecto_repos: [RemoteRetro.... | 30.660377 | 118 | 0.774769 |
03e50f4ef9e516d9d81e4b9fd3f1a24fc61e964b | 3,824 | ex | Elixir | lib/saxy/xmerl/handler.ex | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | lib/saxy/xmerl/handler.ex | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | lib/saxy/xmerl/handler.ex | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | defmodule Saxy.Xmerl.Handler do
@moduledoc false
import Saxy.Xmerl.Records
@behaviour Saxy.Handler
@impl true
def handle_event(:start_element, element, state) do
{:ok, start_element(element, state)}
end
def handle_event(:end_element, element, state) do
{:ok, end_element(element, state)}
end
... | 26.555556 | 84 | 0.676778 |
03e53a5f1fc3ec838b376b99049a65488cba88a4 | 2,068 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/targeting_templates_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/targeting_templates_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/targeting_templates_list_response.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... | 39.018868 | 166 | 0.744197 |
03e53b583ae4bfa673fc91044f4846293a6e01c7 | 3,002 | exs | Elixir | test/phoenix/pubsub/pg2_test.exs | grindrlabs/phoenix_pubsub | 27a9113dfa8a2e125ae74cfff36e6a322c8b97f4 | [
"MIT"
] | 3 | 2020-06-08T03:47:03.000Z | 2021-09-17T21:48:37.000Z | test/phoenix/pubsub/pg2_test.exs | grindrlabs/phoenix_pubsub | 27a9113dfa8a2e125ae74cfff36e6a322c8b97f4 | [
"MIT"
] | null | null | null | test/phoenix/pubsub/pg2_test.exs | grindrlabs/phoenix_pubsub | 27a9113dfa8a2e125ae74cfff36e6a322c8b97f4 | [
"MIT"
] | null | null | null | # Run shared PubSub adapter tests
Application.put_env(:phoenix, :pubsub_test_adapter, Phoenix.PubSub.PG2)
Code.require_file "../../shared/pubsub_test.exs", __DIR__
# Run distributed elixir specific PubSub tests
defmodule Phoenix.PubSub.PG2Test do
use Phoenix.PubSub.NodeCase
alias Phoenix.PubSub
alias Phoenix.Pub... | 39.5 | 93 | 0.672219 |
03e573b24e7580d296d267036fd63cbf6e86d350 | 322 | exs | Elixir | elixir/elixir-sips/samples/elixiak_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/elixiak_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/elixiak_playground/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule ElixiakPlayground.Mixfile do
use Mix.Project
def project do
[app: :elixiak_playground,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
def application do
[applications: [:logger]]
end
defp deps do
[
{:elixiak, github: 'drewkerrigan/elixiak'}
]
end
en... | 15.333333 | 50 | 0.60559 |
03e574f31c79b55a6ef6ea70accf629069c01f59 | 19,538 | ex | Elixir | lib/logger/lib/logger/translator.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | 1 | 2017-05-29T02:02:38.000Z | 2017-05-29T02:02:38.000Z | lib/logger/lib/logger/translator.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger/translator.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | defmodule Logger.Translator do
@moduledoc """
Default translation for Erlang log messages.
Logger allows developers to rewrite log messages provided by
OTP applications into a format more compatible with Elixir
log messages by providing a translator.
A translator is simply a tuple containing a module and ... | 31.820847 | 99 | 0.633535 |
03e57da984b4c4e4f7c6c0c29057fe3b3924dedd | 1,865 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_export_entities_response.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 ... | 33.303571 | 132 | 0.756032 |
03e59e248d1e7896f9f8175d460589fb256cd66a | 82 | exs | Elixir | test/views/layout_view_test.exs | aaronvine/elm_recipes | bd68ddca0b22c7c773de1f80aa627bb58b759ccf | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | aaronvine/elm_recipes | bd68ddca0b22c7c773de1f80aa627bb58b759ccf | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | aaronvine/elm_recipes | bd68ddca0b22c7c773de1f80aa627bb58b759ccf | [
"MIT"
] | null | null | null | defmodule ElmRecipes.LayoutViewTest do
use ElmRecipes.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
03e5c3484e68ea2a2263fd019d4bc39522b27749 | 1,393 | ex | Elixir | apps/admin_api/lib/admin_api/v1/channels/transaction_consumption_channel.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/lib/admin_api/v1/channels/transaction_consumption_channel.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/lib/admin_api/v1/channels/transaction_consumption_channel.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 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 ... | 33.166667 | 90 | 0.706389 |
03e5c70fda9628f0806139cdb48c8da39ef755c7 | 2,716 | ex | Elixir | lib/mix/lib/mix/tasks/local.hex.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.hex.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.hex.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Local.Hex do
use Mix.Task
@hex_s3 "https://s3.amazonaws.com/s3.hex.pm"
@hex_list_url @hex_s3 <> "/installs/list.csv"
@hex_archive_url @hex_s3 <> "/installs/[VERSION]/hex.ez"
@hex_requirement ">= 0.5.0"
@shortdoc "Install hex locally"
@moduledoc """
Install Hex loca... | 26.115385 | 96 | 0.627761 |
03e5cad6c4ad24bddaf73a5f5945d85150db432d | 1,660 | exs | Elixir | config/config.exs | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | 5 | 2021-04-21T22:26:04.000Z | 2021-11-08T12:00:24.000Z | config/config.exs | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | 16 | 2021-11-01T08:19:03.000Z | 2022-03-30T08:17:43.000Z | config/config.exs | drowzy/massa | 624cb02e0039b0624c534636f96fd157b1e34a95 | [
"Apache-2.0"
] | null | null | null | import Config
# Our Logger general configuration
config :logger,
backends: [:console],
truncate: 65536,
compile_time_purge_matching: [
[level_lower_than: :debug]
]
config :protobuf, extensions: :enabled
# Our Console Backend-specific configuration
config :logger, :console,
format: "$date $time [$node]:... | 29.642857 | 93 | 0.695181 |
03e608b2b5d0fd6ddd728d4a2da7a0f980c88c5f | 656 | ex | Elixir | deps/absinthe/lib/absinthe/language/union_type_definition.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | lib/absinthe/language/union_type_definition.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | lib/absinthe/language/union_type_definition.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Language.UnionTypeDefinition do
@moduledoc false
alias Absinthe.{Blueprint, Language}
defstruct [
name: nil,
directives: [],
types: [],
loc: %{start_line: nil}
]
@type t :: %__MODULE__{
name: String.t,
directives: [Language.Directive.t],
types: [Language.Named... | 21.16129 | 75 | 0.653963 |
03e631b4419be075f1df755a770a33f47695b0c7 | 216 | ex | Elixir | test/support/phoenix/views/error_view.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | test/support/phoenix/views/error_view.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | test/support/phoenix/views/error_view.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule Pow.Test.Phoenix.ErrorView do
@moduledoc false
def render("500.html", _assigns), do: "500.html"
def render("400.html", _assigns), do: "400.html"
def render("404.html", _assigns), do: "404.html"
end
| 30.857143 | 50 | 0.694444 |
03e637a40a404aac070252785b889efeeef17e82 | 1,778 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_transfer_call.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_transfer_call.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_transfer_call.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.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... | 32.925926 | 234 | 0.755906 |
03e64a4fe30c00942297dabfd19631fc551fb8d2 | 830 | ex | Elixir | lib/day_02_inventory_management_system_part_two.ex | scmx/advent-of-code-2018-elixir | bad5a125fdc98519c29cbca1e5b7f64d61da5869 | [
"MIT"
] | 2 | 2019-01-16T16:10:31.000Z | 2019-05-14T04:41:15.000Z | lib/day_02_inventory_management_system_part_two.ex | scmx/advent-of-code-2018-elixir | bad5a125fdc98519c29cbca1e5b7f64d61da5869 | [
"MIT"
] | null | null | null | lib/day_02_inventory_management_system_part_two.ex | scmx/advent-of-code-2018-elixir | bad5a125fdc98519c29cbca1e5b7f64d61da5869 | [
"MIT"
] | 1 | 2019-01-02T18:13:23.000Z | 2019-01-02T18:13:23.000Z | defmodule Adventofcode.Day02InventoryManagementSystem.PartTwo do
use Adventofcode
def common_letters(input) do
input
|> String.split("\n")
|> do_common_letters
|> hd
end
def do_common_letters(box_ids) do
for a <- box_ids, b <- box_ids, off_by_one?(a, b) do
common(a, b)
end
end
... | 18.863636 | 64 | 0.578313 |
03e64dff88fd6fca119058c1c00fe87e2b95bb3e | 1,425 | ex | Elixir | lib/reuse/application.ex | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | 2 | 2018-09-01T17:38:39.000Z | 2018-09-20T13:47:50.000Z | lib/reuse/application.ex | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | null | null | null | lib/reuse/application.ex | 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/riccardofe... | 34.756098 | 167 | 0.725614 |
03e65807d7dff3a5edb90cab0ccfcf192ef095b9 | 1,283 | exs | Elixir | config/prod.exs | aortbals/chatter | a0ac7af7a8bca66d183b0f51320f269066171199 | [
"MIT"
] | null | null | null | config/prod.exs | aortbals/chatter | a0ac7af7a8bca66d183b0f51320f269066171199 | [
"MIT"
] | null | null | null | config/prod.exs | aortbals/chatter | a0ac7af7a8bca66d183b0f51320f269066171199 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
config :chatter, Chatter.Endpo... | 27.891304 | 64 | 0.715511 |
03e671fd44b85f084d8ef167f75b55bef0d9f585 | 1,842 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/lat_lng.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/lat_lng.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/lat_lng.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... | 36.84 | 263 | 0.725841 |
03e68771a02cbdbdcca8fb78df9685083d77d191 | 40,755 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/enterprises.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/enterprises.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/enterprises.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 44.298913 | 960 | 0.692872 |
03e6b8b86fd28c619373613f74352637acda2008 | 5,042 | exs | Elixir | test/unit/changeset/hash_password_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | test/unit/changeset/hash_password_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | test/unit/changeset/hash_password_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | defmodule HashPasswordTest do
use Sentinel.UnitCase
alias Mix.Config
alias Sentinel.Changeset.HashPassword
setup do
password = "password"
matching = %{
credentials: %{
other: %{
password: password,
password_confirmation: password
}
}
}
mismatch... | 28.011111 | 158 | 0.545815 |
03e6c502b4a01361c2acceebbd8dc9fff9399f16 | 2,304 | ex | Elixir | lib/weber/handler/weber_req_handler_result.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | 1 | 2018-02-21T07:56:22.000Z | 2018-02-21T07:56:22.000Z | lib/weber/handler/weber_req_handler_result.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | null | null | null | lib/weber/handler/weber_req_handler_result.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | null | null | null | defmodule Handler.WeberReqHandler.Result do
@moduledoc """
This module provides the handle result
"""
import Weber.Utils
require Weber.Helper.ContentFor
defrecord App,
controller: nil,
views: nil
@doc "Handle response from controller"
def handle_result(res, controller // nil, views // nil... | 34.909091 | 102 | 0.652778 |
03e7093899e05f32738cfbf44f37363c97858b50 | 472 | ex | Elixir | server/lib/chat/application.ex | ludovicm67/poc-chat | dd710b36d6dee7b009bdc98f8cb911ed601583d3 | [
"MIT"
] | null | null | null | server/lib/chat/application.ex | ludovicm67/poc-chat | dd710b36d6dee7b009bdc98f8cb911ed601583d3 | [
"MIT"
] | null | null | null | server/lib/chat/application.ex | ludovicm67/poc-chat | dd710b36d6dee7b009bdc98f8cb911ed601583d3 | [
"MIT"
] | null | null | null | defmodule Chat.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
port = Application.fetch_env!(:chat, :port)
children = [
{Task.Supervisor, name: Chat.TaskSupervisor},
{T... | 23.6 | 58 | 0.688559 |
03e714d5d15e5ab232d3751fe78e4a9512119898 | 585 | exs | Elixir | test/test_helper.exs | securingsincity/molasses | a9758184c026fa69038a204c113934506929e9e7 | [
"MIT"
] | 76 | 2016-12-06T17:56:26.000Z | 2022-01-11T21:17:56.000Z | test/test_helper.exs | securingsincity/molasses | a9758184c026fa69038a204c113934506929e9e7 | [
"MIT"
] | 13 | 2017-01-05T10:22:51.000Z | 2017-02-05T03:05:25.000Z | test/test_helper.exs | securingsincity/molasses | a9758184c026fa69038a204c113934506929e9e7 | [
"MIT"
] | 4 | 2017-01-05T10:10:17.000Z | 2021-05-31T05:22:11.000Z | ExUnit.start()
defmodule Molasses.Test.Repo do
use Ecto.Repo, otp_app: :molasses
end
Mix.Task.run "ecto.drop", ["--quiet", "-r", "Molasses.Test.Repo"]
Mix.Task.run "ecto.create", ["--quiet", "-r", "Molasses.Test.Repo"]
Molasses.Test.Repo.start_link
# Ecto.Adapters.SQL.begin_test_transaction(Molasses.Test.Repo)
Mi... | 32.5 | 68 | 0.724786 |
03e725fd751d84c980170d31d9bae824a49c169b | 2,489 | ex | Elixir | DL-5TM/DL-5TM.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 13 | 2020-01-18T22:08:44.000Z | 2022-02-06T14:19:57.000Z | DL-5TM/DL-5TM.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 4 | 2019-05-10T07:17:41.000Z | 2021-10-20T16:24:04.000Z | DL-5TM/DL-5TM.ex | Realscrat/decentlab-decoders | 3ca5006cd85e3772a15a1b3fff3922c50979eeb6 | [
"MIT"
] | 15 | 2019-06-04T06:13:32.000Z | 2022-02-15T07:28:52.000Z |
# https://www.decentlab.com/products/legacy-soil-moisture-and-temperature-sensor-for-lorawan
defmodule DecentlabDecoder do
@protocol_version 2
defp sensor_defs do
[
%{
length: 2,
values: [
%{
:name => "Dielectric permittivity",
:convert => fn x -> Enum.... | 27.054348 | 160 | 0.53636 |
03e74ea51c504b281c2ce01620a27e1090b86931 | 100 | ex | Elixir | web/commands/product_category.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/commands/product_category.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/commands/product_category.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Command.ProductCategory do
use Nectar.Command, model: Nectar.ProductCategory
end
| 25 | 51 | 0.84 |
03e76afdb6aaaaa92268b930cac5e5667fbb9b27 | 1,847 | ex | Elixir | lib/podder/podcasts/podcasts.ex | chattes/podder | 612c5a98c8aacfd5922fa499d513519db2af38ed | [
"MIT"
] | null | null | null | lib/podder/podcasts/podcasts.ex | chattes/podder | 612c5a98c8aacfd5922fa499d513519db2af38ed | [
"MIT"
] | null | null | null | lib/podder/podcasts/podcasts.ex | chattes/podder | 612c5a98c8aacfd5922fa499d513519db2af38ed | [
"MIT"
] | null | null | null | defmodule Podder.Podcasts do
use GenServer
require Logger
alias Elixir.Registry
@moduledoc """
Documentation for Podder.
"""
@doc """
Hello world.
## Examples
iex> Podder.hello()
:world
"""
def init(%{pod_name: name}) do
new_state = %{pod_name: name}
fetch_podcast = Task.a... | 21.729412 | 87 | 0.643205 |
03e79deffd33113adc3908b0288d9c8f1bf76aad | 1,763 | exs | Elixir | test/sitemapper/sitemap_generator_test.exs | cbx/sitemapper | dd9078b9d572aab45ce4be375185b92b456b088f | [
"MIT"
] | null | null | null | test/sitemapper/sitemap_generator_test.exs | cbx/sitemapper | dd9078b9d572aab45ce4be375185b92b456b088f | [
"MIT"
] | null | null | null | test/sitemapper/sitemap_generator_test.exs | cbx/sitemapper | dd9078b9d572aab45ce4be375185b92b456b088f | [
"MIT"
] | null | null | null | defmodule Sitemapper.SitemapGeneratorTest do
use ExUnit.Case
doctest Sitemapper.SitemapGenerator
alias Sitemapper.{File, SitemapGenerator, URL}
test "add_url and finalize with a simple URL" do
url = %URL{loc: "http://example.com"}
%File{count: count, length: length, body: body} =
SitemapGenerat... | 28.901639 | 182 | 0.598412 |
03e7af5fad899aa9c8906d949390f6359cdc8235 | 5,160 | ex | Elixir | lib/mix/tasks/hex.repo.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.repo.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:19:59.000Z | 2021-06-25T15:19:59.000Z | lib/mix/tasks/hex.repo.ex | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.Repo do
use Mix.Task
@shortdoc "Manages Hex repositories"
@moduledoc """
Manages the list of available Hex repositories.
The repository is where packages and the registry of packages is stored.
You can fetch packages from multiple different repositories and packages
can depend o... | 24.688995 | 131 | 0.639729 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.