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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
735d2f2dd9f3a3ad908fc2dbb08e6f723ab3ca9b | 337 | exs | Elixir | priv/repo/migrations/20170102005126_create_parameter.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | priv/repo/migrations/20170102005126_create_parameter.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170102005126_create_parameter.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.Repo.Migrations.CreateParameter do
use Ecto.Migration
def change do
create table(:parameters) do
add :name, :text
add :config_file, :text
add :value, :text
add :secure, :boolean, default: false, null: false
timestamps()
end
create unique_index(:parameters, [:... | 22.466667 | 56 | 0.658754 |
735d44d62557f6ed0c1afa230fda938335c500e8 | 325 | exs | Elixir | apps/re_integrations/priv/repo/migrations/20190523214548_create_orulo_buildings.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_integrations/priv/repo/migrations/20190523214548_create_orulo_buildings.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re_integrations/priv/repo/migrations/20190523214548_create_orulo_buildings.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReIntegrations.Repo.Migrations.CreateOruloBuildings do
use Ecto.Migration
def change do
create table(:orulo_buildings, primary_key: false) do
add :uuid, :uuid, primary_key: true
add :external_id, :integer
add :payload, :map, null: false, default: %{}
timestamps()
end
end... | 25 | 64 | 0.692308 |
735d6830624550c392742e145a57a4af9f35a662 | 19,008 | exs | Elixir | test/glimesh/channel_lookups_test.exs | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | test/glimesh/channel_lookups_test.exs | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | test/glimesh/channel_lookups_test.exs | mfaqiri/glimesh.tv | 59eeb56bb0a5574b7b6168d9487660f41a457fd4 | [
"MIT"
] | null | null | null | defmodule Glimesh.ChannelLookupsTest do
use Glimesh.DataCase
use Bamboo.Test
import Glimesh.AccountsFixtures
import Glimesh.StreamsFixtures
alias Glimesh.ChannelLookups
alias Glimesh.ChannelCategories
alias Glimesh.Streams
alias Glimesh.Streams.ChannelHosts
defp create_channel(_) do
gaming_id = ... | 34.003578 | 127 | 0.667298 |
735d830fe3dcdd20c343aaf5a3fb1960fb9178ba | 714 | ex | Elixir | lib/converter/us.ex | mwmiller/exoddic | dd590668a84079fb2eb0bb89f4599165abed9b54 | [
"MIT"
] | 3 | 2016-05-13T16:52:46.000Z | 2021-02-05T23:00:16.000Z | lib/converter/us.ex | mwmiller/exoddic | dd590668a84079fb2eb0bb89f4599165abed9b54 | [
"MIT"
] | null | null | null | lib/converter/us.ex | mwmiller/exoddic | dd590668a84079fb2eb0bb89f4599165abed9b54 | [
"MIT"
] | null | null | null | defmodule Exoddic.Converter.Us do
@behaviour Exoddic.Converter
@moduledoc """
.us-style moneyline odds
"""
def from_prob(amount) when amount == 0.00, do: 0.0
def from_prob(amount) when amount <= 0.50, do: 100 * ((1 - amount) / amount)
def from_prob(amount) when amount > 0.50, do: -100 * (amount / (1 - ... | 37.578947 | 78 | 0.659664 |
735d9a1618412bbc9c2c555d3db9954e30660dad | 1,230 | exs | Elixir | apps/ello_stream/test/slop_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_stream/test/slop_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_stream/test/slop_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.SlopTest do
use ExUnit.Case
alias Ello.Stream.Slop
test "it calculates default slop_factor for anonymous user" do
factors = %{
base_slop_factor: 1,
nsfw_slop_factor: 2,
nudity_slop_factor: 3,
}
assert Slop.slop_factor(%{}, factors) == 6
end
test "it calculates sl... | 25.102041 | 89 | 0.663415 |
735dfda19227c4db8e0e50e2a15518a644eee97d | 1,190 | ex | Elixir | core/sup_tree_core/periodic_log/message_builder.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/sup_tree_core/periodic_log/message_builder.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/sup_tree_core/periodic_log/message_builder.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraCore.PeriodicLog.MessageBuilder do
@max_proc_to_log 5
@max_msg_to_log 10
@queue_len_threshold 100
def init() do
nil
end
def build_log(state) do
log =
:recon.proc_count(:message_queue_len, @max_proc_... | 31.315789 | 92 | 0.670588 |
735e50f235b6a67acc01e26eb9b5894c216ff57a | 1,036 | ex | Elixir | web/views/error_helpers.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | defmodule EmotionsWheelBackend.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_e... | 28.777778 | 91 | 0.69112 |
735e70670a39a5ae13bfded5258ee23b1e8cebfd | 3,635 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 53.455882 | 528 | 0.748556 |
735e7d18cff395532587f3a8f8ac46d071588efa | 18,957 | ex | Elixir | lib/phoenix_live_view.ex | roryokane/phoenix_live_view | d77f787356ee312eb8a8f8427c03da29a6010abe | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | roryokane/phoenix_live_view | d77f787356ee312eb8a8f8427c03da29a6010abe | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | roryokane/phoenix_live_view | d77f787356ee312eb8a8f8427c03da29a6010abe | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc """
Live views are stateful views which update the browser on state changes.
## Configuration
A `:signing_salt` configuration is required in your endpoint's
`:live_view` configuration, for example:
config :my_app, AppWeb.Endpoint,
...,
live_vie... | 33.912343 | 92 | 0.665664 |
735e81159c9a03536b02e08efbd885dd99642956 | 120 | ex | Elixir | lib/protocol/v4/frames/header/flags/tracing.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | 7 | 2019-04-13T01:11:18.000Z | 2020-08-11T08:11:03.000Z | lib/protocol/v4/frames/header/flags/tracing.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | null | null | null | lib/protocol/v4/frames/header/flags/tracing.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | null | null | null | defmodule OverDB.Protocol.V4.Frames.Header.Flags.Tracing do
@type t :: :tracing
def flag() do
0x02
end
end
| 12 | 59 | 0.683333 |
735ea5a7efcd2e85166fd7e6a31277645710bc2b | 640 | exs | Elixir | test/views/error_view_test.exs | dcarneiro/peepstack-api | 2c146adb12e914fea7eec5eade0bcf7c5c4ecfcc | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | dcarneiro/peepstack-api | 2c146adb12e914fea7eec5eade0bcf7c5c4ecfcc | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | dcarneiro/peepstack-api | 2c146adb12e914fea7eec5eade0bcf7c5c4ecfcc | [
"MIT"
] | null | null | null | defmodule Peepchat.ErrorViewTest do
use Peepchat.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(Peepchat.ErrorView, "404.json", []) ==
%{errors: [%{code: 404, title: "Not Found"}]}
end
test... | 29.090909 | 68 | 0.639063 |
735edb7a38f94a79925e6a69807bcff0856cd91e | 3,489 | ex | Elixir | lib/afk/state/keymap.ex | wevtimoteo/afk | a78457e59655c6999905ddb8d59a54e7d781c170 | [
"MIT"
] | null | null | null | lib/afk/state/keymap.ex | wevtimoteo/afk | a78457e59655c6999905ddb8d59a54e7d781c170 | [
"MIT"
] | null | null | null | lib/afk/state/keymap.ex | wevtimoteo/afk | a78457e59655c6999905ddb8d59a54e7d781c170 | [
"MIT"
] | 1 | 2020-01-06T13:52:14.000Z | 2020-01-06T13:52:14.000Z | defmodule AFK.State.Keymap do
@moduledoc false
alias AFK.Keycode.{Layer, None, Transparent}
@enforce_keys [:layers, :counter]
defstruct [:layers, :counter]
@type t :: %__MODULE__{
layers: %{
optional(non_neg_integer) => %{
active: bool,
activations: %{optio... | 29.319328 | 112 | 0.573803 |
735f5b2c083aa8fb7082a4f5582ee4a804abfa76 | 4,147 | exs | Elixir | lib/mix/test/mix/local/installer_test.exs | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/local/installer_test.exs | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/local/installer_test.exs | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Local.InstallerTest do
use MixTest.Case
test "fetch" do
dep_spec = {:git_repo, git: fixture_path("git_repo")}
fetcher = fn mix_exs ->
send(self(), mix_exs)
Mix.Task.run("deps.get", [])
end
config =
Mix.Local.Inst... | 36.699115 | 93 | 0.626718 |
735f9ebe53d4a91585d73d7cce26d8014e18ab28 | 1,242 | ex | Elixir | lib/google_api/you_tube/v3/model/i18n_language_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/i18n_language_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/i18n_language_list_response.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 28.883721 | 85 | 0.733494 |
735fa1a93fb251718684a9e23e17fd6ba2dbc590 | 1,215 | ex | Elixir | lib/mix/lib/mix/shell/io.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/shell/io.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/shell/io.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Shell.IO do
@moduledoc """
This is Mix's default shell.
It simply prints messages to stdio and stderr.
"""
@behaviour Mix.Shell
@doc """
Executes the given command and prints its output
to stdout as it comes.
"""
def cmd(command) do
put_app
Mix.Shell.cmd(command, &IO.write(&1... | 21.315789 | 63 | 0.636214 |
735fbf4ff76154536be61186cf3fcfb2d9490b3a | 90,490 | ex | Elixir | lib/elixir/lib/kernel.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | # Use elixir_bootstrap module to be able to bootstrap Kernel.
# The bootstrap module provides simpler implementations of the
# functions removed, simple enough to bootstrap.
import Kernel, except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2,
defmacro: 1, defmacro: 2, defmacrop: 2]
import :elixi... | 25.290665 | 120 | 0.631816 |
735fcb6bf644d6449476a6b97ebec8e8e36b75ad | 990 | exs | Elixir | elixir/learning-files/part-3/patterns.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | null | null | null | elixir/learning-files/part-3/patterns.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | 1 | 2018-10-05T06:00:01.000Z | 2018-10-05T06:00:01.000Z | elixir/learning-files/part-3/patterns.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | 1 | 2018-10-05T04:43:55.000Z | 2018-10-05T04:43:55.000Z | # `=` is also known as the "match" operator
x = 1
1 = x
#=> 1
2 = x
#=> MatchError
# This is because both sides do not equal the same value (1)
# Pattern Matching
{a, b, c} = {:hello, "world", 42}
IO.puts a
#=> :hello
IO.puts b
#=> "world"
{a, b, c} = {:hello, "world"}
#=> MatchError
# This is because both sides do n... | 22 | 113 | 0.638384 |
735fdecad174edf8451318cf0389b4cfa01e9e2c | 371 | ex | Elixir | lib/inmana.ex | ricktrovato/Trail_Elixir-Phoenix | 2cfc86a88a3992fbcea0b3905300f6727572e7a3 | [
"MIT"
] | 14 | 2021-04-26T14:19:28.000Z | 2021-09-12T03:29:42.000Z | lib/inmana.ex | israel206/InmanaIsrael | bc93ddb3ca23f3188f89ef012e463fcacc4e9777 | [
"MIT"
] | null | null | null | lib/inmana.ex | israel206/InmanaIsrael | bc93ddb3ca23f3188f89ef012e463fcacc4e9777 | [
"MIT"
] | 6 | 2021-04-27T12:41:16.000Z | 2021-07-02T04:11:53.000Z | defmodule Inmana do
alias Inmana.Restaurants.Create, as: RestaurantCreate
alias Inmana.Supplies.Create, as: SupplyCreate
alias Inmana.Supplies.Get, as: SupplyGet
defdelegate create_restaurant(params), to: RestaurantCreate, as: :call
defdelegate create_supply(params), to: SupplyCreate, as: :call
defdelegat... | 33.727273 | 72 | 0.781671 |
735fe11f353adc3b073a726e434747d98af56542 | 786 | ex | Elixir | joshcrews+elixir/apps/cqrs_bank/lib/cqrs_bank/application.ex | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 7 | 2017-05-17T00:36:50.000Z | 2021-11-02T03:02:03.000Z | joshcrews+elixir/apps/cqrs_bank/lib/cqrs_bank/application.ex | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 3 | 2017-05-17T00:31:28.000Z | 2017-05-18T04:50:37.000Z | joshcrews+elixir/apps/cqrs_bank/lib/cqrs_bank/application.ex | NashFP/cqrs-bank | 6071db4a0c5ec681554aea8bebe783310c5d1525 | [
"MIT"
] | 5 | 2017-05-16T23:13:19.000Z | 2021-12-02T06:45:25.000Z | defmodule CqrsBank.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
c... | 30.230769 | 80 | 0.708651 |
735ffea3f11f05028e5fc504d472b2f8fcea5226 | 289 | exs | Elixir | www/priv/repo/migrations/20161219220300_create_language_history.exs | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 47 | 2016-07-17T08:49:36.000Z | 2020-11-06T14:12:15.000Z | www/priv/repo/migrations/20161219220300_create_language_history.exs | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 181 | 2016-07-11T13:20:40.000Z | 2019-10-22T14:43:40.000Z | www/priv/repo/migrations/20161219220300_create_language_history.exs | Nagasaki45/krihelinator | 243bfe476b8128dc2f0fcd913bebd8cf20b7deb6 | [
"MIT"
] | 2 | 2017-02-25T16:19:09.000Z | 2017-12-24T20:22:32.000Z | defmodule Krihelinator.Repo.Migrations.CreateLanguageHistory do
use Ecto.Migration
def change do
create table(:languages_history) do
add :name, :string
add :krihelimeter, :integer
add :num_of_repos, :integer
add :timestamp, :utc_datetime
end
end
end
| 22.230769 | 63 | 0.709343 |
73601088569412212f8971c4d157007c167c9ed1 | 934 | ex | Elixir | learning/redfour/physics/lib/converter.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/redfour/physics/lib/converter.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/redfour/physics/lib/converter.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule Converter do
def seconds_to_hours(val) when is_integer(val) or is_float(val) do
(val / 3600) |> to_nearest_tenth
end
def to_nearest_tenth(val) do
round_to(val, 1)
end
def to_km(val) do
val / 1000
end
def to_meters(val) do
val * 1000
end
def to_light_seconds(arg), do: to_l... | 24.578947 | 68 | 0.671306 |
7360138b5b076cecfa0b769a1c3ec777107d9eae | 3,877 | ex | Elixir | lib/api/base.ex | MitjaBezensek/pinterex | 2c278212f17227d64c7402e65f0dad6563dea49f | [
"MIT"
] | 1 | 2018-01-29T17:52:47.000Z | 2018-01-29T17:52:47.000Z | lib/api/base.ex | MitjaBezensek/pinterex | 2c278212f17227d64c7402e65f0dad6563dea49f | [
"MIT"
] | null | null | null | lib/api/base.ex | MitjaBezensek/pinterex | 2c278212f17227d64c7402e65f0dad6563dea49f | [
"MIT"
] | null | null | null | defmodule Pinterex.Api.Base do
@moduledoc """
The module contains all the logic that does the actual calls to
the Pinterest API
"""
use Tesla
plug Tesla.Middleware.BaseUrl, "https://api.pinterest.com/v1/"
plug Tesla.Middleware.Query, [access_token: key]
plug Tesla.Middleware.JSON
#plug Tesla.Middlewa... | 27.302817 | 136 | 0.682486 |
736020419493b17c9f6b559c4c2cdbb767041b79 | 3,079 | ex | Elixir | lib/optimus/option.ex | savonarola/optimus | e5369b1ddd5ba2bc6c71bbecf0a7ba0e96e52a08 | [
"MIT"
] | 82 | 2016-12-14T22:21:45.000Z | 2019-11-19T13:47:25.000Z | lib/optimus/option.ex | savonarola/optimus | e5369b1ddd5ba2bc6c71bbecf0a7ba0e96e52a08 | [
"MIT"
] | 15 | 2017-01-08T06:54:02.000Z | 2019-11-12T10:30:49.000Z | lib/optimus/option.ex | savonarola/optimus | e5369b1ddd5ba2bc6c71bbecf0a7ba0e96e52a08 | [
"MIT"
] | 7 | 2017-01-08T06:42:41.000Z | 2019-11-12T09:32:50.000Z | defmodule Optimus.Option do
defstruct [
:name,
:value_name,
:short,
:long,
:help,
:multiple,
:required,
:default,
:parser
]
def new(spec) do
Optimus.Option.Builder.build(spec)
end
def parse(option, parsed, command_line) when length(command_line) > 0 do
case parse_... | 21.992857 | 108 | 0.551153 |
736020b4cece7699d164bd6386d0906b66fcc3de | 94 | ex | Elixir | lib/learn/v14.ex | DitoHI/basic_elixir | af21384e99df0f7289ca1908c3e21bce8aef475c | [
"MIT"
] | null | null | null | lib/learn/v14.ex | DitoHI/basic_elixir | af21384e99df0f7289ca1908c3e21bce8aef475c | [
"MIT"
] | null | null | null | lib/learn/v14.ex | DitoHI/basic_elixir | af21384e99df0f7289ca1908c3e21bce8aef475c | [
"MIT"
] | null | null | null | defmodule V14 do
@moduledoc false
# struct
defstruct [:school, name: "VJ", age: 27]
end
| 15.666667 | 42 | 0.670213 |
73602cae20e44da80e8742403baa2f43264143bd | 16,518 | ex | Elixir | lib/ecto/ulid.ex | heri16/ecto-ulid | 969023feed28083fda18b0af9a322ea33b015ef8 | [
"MIT"
] | 2 | 2021-12-10T01:54:14.000Z | 2021-12-10T05:35:25.000Z | lib/ecto/ulid.ex | heri16/ecto-ulid | 969023feed28083fda18b0af9a322ea33b015ef8 | [
"MIT"
] | null | null | null | lib/ecto/ulid.ex | heri16/ecto-ulid | 969023feed28083fda18b0af9a322ea33b015ef8 | [
"MIT"
] | 1 | 2021-12-10T05:17:54.000Z | 2021-12-10T05:17:54.000Z | defmodule Ecto.ULID do
@moduledoc """
An Ecto type for ULID strings.
"""
@default_params %{variant: :b32}
# replace with `use Ecto.ParameterizedType` after Ecto 3.2.0 is required
@behaviour Ecto.ParameterizedType
# and remove both of these functions
def embed_as(_, _params), do: :self
def equal?(ter... | 30.197441 | 193 | 0.53923 |
73603f52a19ca814b8512c87d131e6f05691ca0e | 345 | exs | Elixir | priv/repo/seeds.exs | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | 2 | 2021-05-30T20:11:44.000Z | 2021-12-20T19:08:56.000Z | priv/repo/seeds.exs | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | null | null | null | priv/repo/seeds.exs | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | 1 | 2022-01-23T05:29:08.000Z | 2022-01-23T05:29:08.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Test.Repo.insert!(%Test.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail ... | 28.75 | 61 | 0.701449 |
7360409352b92037f56997b3687c29bbf3ef7836 | 907 | ex | Elixir | lib/ua_parser/version.ex | webnard/ua_parser | ec83f5110fda3e4f87d0ee7ea5ea57d9d196f6bf | [
"Apache-2.0"
] | null | null | null | lib/ua_parser/version.ex | webnard/ua_parser | ec83f5110fda3e4f87d0ee7ea5ea57d9d196f6bf | [
"Apache-2.0"
] | null | null | null | lib/ua_parser/version.ex | webnard/ua_parser | ec83f5110fda3e4f87d0ee7ea5ea57d9d196f6bf | [
"Apache-2.0"
] | null | null | null | defmodule UAParser.Version do
@moduledoc """
A module representing user agent version struct and helper methods.
"""
@doc """
## Examples
iex> version = %UAParser.Version{major: "1", minor: "2", patch: "3", patch_minor: "4"}
iex> to_string(version)
"1.2.3.4"
iex> version = %UAParser... | 25.914286 | 92 | 0.610805 |
73605c58d11915dd1f43fc525e5e9a208a6c8195 | 1,718 | ex | Elixir | lib/camino_challenge_web/endpoint.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge_web/endpoint.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | lib/camino_challenge_web/endpoint.ex | kadmohardy/camino_challenge | 53117f763c0a51b0825cac18b799b7d772781671 | [
"MIT"
] | null | null | null | defmodule CaminoChallengeWeb.Endpoint do
@moduledoc false
use Phoenix.Endpoint, otp_app: :camino_challenge
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
... | 31.814815 | 97 | 0.728172 |
736087b277de61bfee005a4074ada686c1e65730 | 26,686 | ex | Elixir | lib/ecto/multi.ex | iautom8things/ecto | 9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf | [
"Apache-2.0"
] | 1 | 2022-03-13T23:01:45.000Z | 2022-03-13T23:01:45.000Z | lib/ecto/multi.ex | iautom8things/ecto | 9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf | [
"Apache-2.0"
] | null | null | null | lib/ecto/multi.ex | iautom8things/ecto | 9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Multi do
@moduledoc """
`Ecto.Multi` is a data structure for grouping multiple Repo operations.
`Ecto.Multi` makes it possible to pack operations that should be
performed in a single database transaction and gives a way to introspect
the queued operations without actually performing them. Each... | 33.82256 | 154 | 0.644046 |
7360a17e06acfb8f91aa826b2f99e0461d8d6ebf | 2,725 | exs | Elixir | test/pos_web/controllers/order_controller_test.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | test/pos_web/controllers/order_controller_test.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | test/pos_web/controllers/order_controller_test.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | defmodule PosWeb.OrderControllerTest do
use PosWeb.ConnCase
alias Pos.Requests
alias Pos.Requests.Order
@create_attrs %{
requests: [],
table: 42,
waitress_id: "some waitress_id"
}
@update_attrs %{
requests: [],
table: 43,
waitress_id: "some updated waitress_id"
}
@invalid_attrs... | 28.092784 | 92 | 0.59633 |
7360ac64a212692b5512556acbe25a49c11cb0cd | 2,657 | exs | Elixir | test/dark_matter/enums_test.exs | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | 2 | 2020-12-01T21:33:44.000Z | 2021-05-29T14:51:18.000Z | test/dark_matter/enums_test.exs | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | null | null | null | test/dark_matter/enums_test.exs | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | 2 | 2020-09-02T14:36:58.000Z | 2021-04-22T11:20:43.000Z | defmodule DarkMatter.EnumsTest.TestEctoStruct do
@moduledoc false
defstruct [:id, :name, :__meta__]
end
defmodule DarkMatter.EnumsTest do
@moduledoc """
Test for DarkMatter.Enums
"""
use ExUnit.Case, async: true
alias __MODULE__.TestEctoStruct
alias DarkMatter.Enums
describe ".jsonify/1" do
@c... | 33.632911 | 97 | 0.529168 |
7360b1880ac2f244f6b88137015f81fca85fbcfa | 21,630 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/snapshots.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/api/snapshots.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/snapshots.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 ... | 47.960089 | 414 | 0.644938 |
7361031d2b40fb960f54fda83c021c329f27de9e | 53 | exs | Elixir | config/dev.exs | ktec/assert_html | 07aecb5bf564a6c17a278d09724d793d89e00919 | [
"MIT"
] | 7 | 2019-04-19T23:52:12.000Z | 2022-03-14T22:17:30.000Z | config/dev.exs | ktec/assert_html | 07aecb5bf564a6c17a278d09724d793d89e00919 | [
"MIT"
] | 1 | 2019-04-12T09:00:27.000Z | 2019-04-12T09:00:27.000Z | config/dev.exs | ktec/assert_html | 07aecb5bf564a6c17a278d09724d793d89e00919 | [
"MIT"
] | 4 | 2019-02-26T15:58:55.000Z | 2020-09-28T13:45:38.000Z | use Mix.Config
config :assert_html,
log_dsl: true
| 10.6 | 20 | 0.754717 |
73612fff75dcb30f2315526d917f235c6a462fa9 | 416 | ex | Elixir | lib/home_web/plugs/auth_plug.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | lib/home_web/plugs/auth_plug.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | lib/home_web/plugs/auth_plug.ex | marktermaat/home_bot | b6d0bd5e1e97b2b0c95e201618e27de4259378d3 | [
"MIT"
] | null | null | null | defmodule HomeWeb.Plugs.AuthPlug do
import Plug.Conn
import Phoenix.Controller
alias HomeWeb.Router.Helpers
def init(_params) do
end
def call(conn, _params) do
logged_in = Plug.Conn.get_session(conn, :logged_in)
if logged_in do
conn
else
conn
|> put_flash(:error, "Not logged... | 18.909091 | 55 | 0.653846 |
736131771e8557bd425df20eee49822384209fc9 | 738 | ex | Elixir | host_core/lib/host_core/refmaps/manager.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/refmaps/manager.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/refmaps/manager.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.Refmaps.Manager do
require Logger
def lookup_refmap(oci_url) do
case :ets.lookup(:refmap_table, oci_url) do
[pk] -> {:ok, pk}
[] -> :error
end
end
def cache_refmap(oci_url, public_key) do
:ets.insert(:refmap_table, {oci_url, public_key})
end
def put_refmap(oci_u... | 25.448276 | 94 | 0.701897 |
73615f49767c0516e48c162fe7629d86ec86091b | 1,409 | ex | Elixir | test/support/data_case.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | test/support/data_case.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | test/support/data_case.ex | trewdys/source-academy2-debug | 6146e1fac81472184877f47aa32dee7fdceb4fb6 | [
"Unlicense"
] | null | null | null | defmodule SourceAcademy.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,
it cannot be async. For this reason, ever... | 25.160714 | 74 | 0.685593 |
736176cf54aa12623c443baae55dae2f4f57c3ca | 1,009 | ex | Elixir | elixir/fibo45/lib/fibo45.ex | gmelodie/learning | 4d33f1f8a26f74bc959a769ede1acbf00da9351b | [
"MIT"
] | null | null | null | elixir/fibo45/lib/fibo45.ex | gmelodie/learning | 4d33f1f8a26f74bc959a769ede1acbf00da9351b | [
"MIT"
] | null | null | null | elixir/fibo45/lib/fibo45.ex | gmelodie/learning | 4d33f1f8a26f74bc959a769ede1acbf00da9351b | [
"MIT"
] | null | null | null | require Time
defmodule Fibo45 do
@correct_45th_number 1134903170
def fibo(stop_idx, curr_idx \\ 3, last_num \\ 1, second_to_last_num \\ 1)
def fibo(stop_idx, curr_idx, last_num, _) when curr_idx == stop_idx + 1 do last_num end
def fibo(stop_idx, _, _, _) when stop_idx == 1 do 1 end
def fibo(stop_idx, _, _, ... | 28.027778 | 89 | 0.67889 |
73617b9f4b5f9c02fd593e4acffb664003d6f32c | 4,108 | ex | Elixir | lib/vintage_net/power_manager/state_machine.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 85 | 2019-05-09T14:54:38.000Z | 2022-02-08T16:52:04.000Z | lib/vintage_net/power_manager/state_machine.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 132 | 2019-05-09T15:57:59.000Z | 2022-02-28T16:31:22.000Z | lib/vintage_net/power_manager/state_machine.ex | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 14 | 2019-07-08T19:18:23.000Z | 2022-02-08T16:52:05.000Z | defmodule VintageNet.PowerManager.StateMachine do
@moduledoc false
# Power management state machine implementation
#
# This is a side effect free implementation of the power management state machine
# to make it easier to test. VintageNet.PowerManager.PMControl does what this module
# tells it to do.
#
... | 22.086022 | 86 | 0.642162 |
73617d3cbeca35ea03e567cfd7aa8be1bec154a7 | 205 | exs | Elixir | config/test.exs | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | null | null | null | config/test.exs | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | null | null | null | config/test.exs | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | null | null | null | import Config
# Global config
config :ex_cldr,
default_locale: "en-001",
default_backend: MyApp.Cldr
config :ex_unit,
module_load_timeout: 220_000,
case_load_timeout: 220_000,
timeout: 120_000
| 17.083333 | 31 | 0.765854 |
73619a26f9c5c9b74c15613a90e5ed608034f773 | 2,194 | exs | Elixir | test/document_viewer_web/controllers/auth_controller_test.exs | arkadyan/document_viewer | d45594632b83559520820744e4afd37d3bfdb03d | [
"MIT"
] | 1 | 2021-03-17T19:04:28.000Z | 2021-03-17T19:04:28.000Z | test/document_viewer_web/controllers/auth_controller_test.exs | mbta/document_viewer | f3af972f4996759bc18811186f753b87bbe43b53 | [
"MIT"
] | 121 | 2021-03-18T21:03:02.000Z | 2022-03-28T09:24:49.000Z | test/document_viewer_web/controllers/auth_controller_test.exs | arkadyan/document_viewer | d45594632b83559520820744e4afd37d3bfdb03d | [
"MIT"
] | 1 | 2021-05-19T21:21:56.000Z | 2021-05-19T21:21:56.000Z | defmodule DocumentViewerWeb.AuthControllerTest do
use DocumentViewerWeb.ConnCase
use Plug.Test
import ExUnit.CaptureLog
import Test.Support.Helpers
@mock_auth %Ueberauth.Auth{
uid: "test@mbta.com",
credentials: %Ueberauth.Auth.Credentials{
expires_at: System.system_time(:second) + 1_000,
... | 27.772152 | 78 | 0.60392 |
7361b805500bc99375b75d8cf1f66340335594d1 | 1,801 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/authentication_token.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/authentication_token.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/authentication_token.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... | 36.02 | 216 | 0.739589 |
7361bcf1411a8357fd90d913b1dd2a4fd828ad6c | 1,870 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/search_services_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/search_services_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/search_services_response.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... | 36.666667 | 141 | 0.754545 |
7361c905d4dd0fd274a292dd8e3bd408cca19ce8 | 1,361 | ex | Elixir | web/controllers/auth_controller.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | web/controllers/auth_controller.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | 9 | 2016-09-22T20:30:22.000Z | 2016-09-22T21:00:53.000Z | web/controllers/auth_controller.ex | beccanelson/library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | defmodule Bookish.AuthController do
use Bookish.Web, :controller
plug Ueberauth
alias Ueberauth.Strategy.Helpers
alias Bookish.User
def request(conn, _params) do
render(conn, "request.html", callback_url: Helpers.callback_url(conn))
end
def delete(conn, _params) do
conn
|> configure_session... | 25.203704 | 74 | 0.649522 |
7361d0f68cb7c4fbb8a1b6b6925e6178f7a3c06b | 5,695 | exs | Elixir | mix.exs | starkeepers/phoenix | 3e04a29a90a0d256aae50f7953733a4f83177002 | [
"MIT"
] | null | null | null | mix.exs | starkeepers/phoenix | 3e04a29a90a0d256aae50f7953733a4f83177002 | [
"MIT"
] | null | null | null | mix.exs | starkeepers/phoenix | 3e04a29a90a0d256aae50f7953733a4f83177002 | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
@version "1.6.0-rc.0"
@scm_url "https://github.com/phoenixframework/phoenix"
# If the elixir requirement is updated, we need to make the installer
# use at least the minimum requirement used here. Although often the
# installer is ahead of Phoenix itself.
... | 27.248804 | 100 | 0.584021 |
7361d558d051e683bc0c334dbf52428622014061 | 173 | exs | Elixir | backend/apps/students_crm_v2/config/dev.exs | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | backend/apps/students_crm_v2/config/dev.exs | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | 50 | 2018-07-29T09:17:35.000Z | 2019-02-26T05:23:34.000Z | backend/apps/students_crm_v2/config/dev.exs | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :students_crm_v2, StudentsCrmV2.Repo,
adapter: Ecto.Adapters.Postgres,
database: "students_crm_v2_dev",
pool_size: 10
| 21.625 | 44 | 0.786127 |
7361ee35f4708b441de5de3904ea8b25d33ec69e | 325 | ex | Elixir | lib/btrz_ex_api_client/http_poison.ex | Betterez/btrz-ex-api-client | 92e56fb8944de4cf4926aa0192525d33d77e87b4 | [
"MIT"
] | 2 | 2019-02-18T20:18:20.000Z | 2019-02-25T22:38:04.000Z | lib/btrz_ex_api_client/http_poison.ex | Betterez/btrz-ex-api-client | 92e56fb8944de4cf4926aa0192525d33d77e87b4 | [
"MIT"
] | null | null | null | lib/btrz_ex_api_client/http_poison.ex | Betterez/btrz-ex-api-client | 92e56fb8944de4cf4926aa0192525d33d77e87b4 | [
"MIT"
] | null | null | null | defmodule BtrzExApiClient.HTTPoison do
@moduledoc false
require Protocol
Protocol.derive(Jason.Encoder, HTTPoison.Error)
@behaviour BtrzExApiClient.HTTPClient
@impl true
def request(action, endpoint, encoded_body, headers, opts) do
HTTPoison.request(action, endpoint, encoded_body, headers, opts)
end... | 25 | 68 | 0.781538 |
73625bc0ec801d941e31270e5b56d6fbfff385e9 | 445 | exs | Elixir | mix.exs | adept-bits/adept | 214f71e1a5712f015def2068ee529e67cd970dac | [
"Apache-2.0"
] | 1 | 2022-01-06T08:24:23.000Z | 2022-01-06T08:24:23.000Z | mix.exs | adept-bits/adept | 214f71e1a5712f015def2068ee529e67cd970dac | [
"Apache-2.0"
] | null | null | null | mix.exs | adept-bits/adept | 214f71e1a5712f015def2068ee529e67cd970dac | [
"Apache-2.0"
] | null | null | null | defmodule Adept.MixProject do
use Mix.Project
def project do
[
app: :adept,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 17.115385 | 59 | 0.586517 |
736264cf2aed3603c80e3d2233d5052a80b8bbaf | 1,720 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/update_active_breakpoint_request.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.595745 | 237 | 0.761628 |
73627319c487132d994873fd0a83c64579c05e3a | 155 | exs | Elixir | priv/repo/migrations/20180701214550_create_people.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | priv/repo/migrations/20180701214550_create_people.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | priv/repo/migrations/20180701214550_create_people.exs | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | defmodule Gexbot.Repo.Migrations.CreatePeople do
use Ecto.Migration
def change do
create table(:people) do
timestamps()
end
end
end
| 12.916667 | 48 | 0.696774 |
736288ca1b4ee4afc44d2c65bedac1702f50f4c5 | 167 | ex | Elixir | lib/powit_web/views/pow_email_confirmation/mailer_view.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | lib/powit_web/views/pow_email_confirmation/mailer_view.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | lib/powit_web/views/pow_email_confirmation/mailer_view.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | defmodule PowitWeb.PowEmailConfirmation.MailerView do
use PowitWeb, :mailer_view
def subject(:email_confirmation, _assigns), do: "Confirm your email address"
end
| 27.833333 | 78 | 0.808383 |
73629e1d97d0d730138959d56533c9784fbd8704 | 2,251 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_fhir_big_query_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_fhir_big_query_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_fhir_big_query_destination.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... | 38.810345 | 265 | 0.739227 |
7362a8fbc82d3f570c21fd5ccf0154e767273698 | 1,496 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/authorization_logging_options.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/authorization_logging_options.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/authorization_logging_options.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... | 31.829787 | 113 | 0.743316 |
7362b6f98da6e94bc0377a96f856a300be6b5bc7 | 666 | ex | Elixir | lib/broadway_kafka.ex | danielkv7/broadway_kafka | 4388117537ee81738ff4d6a89ed6a2c602d47d8c | [
"Apache-2.0"
] | 112 | 2020-01-20T22:04:30.000Z | 2022-03-25T10:41:47.000Z | lib/broadway_kafka.ex | danielkv7/broadway_kafka | 4388117537ee81738ff4d6a89ed6a2c602d47d8c | [
"Apache-2.0"
] | 71 | 2020-01-22T12:43:29.000Z | 2022-03-30T22:30:29.000Z | lib/broadway_kafka.ex | danielkv7/broadway_kafka | 4388117537ee81738ff4d6a89ed6a2c602d47d8c | [
"Apache-2.0"
] | 39 | 2020-02-21T15:10:42.000Z | 2022-02-11T17:34:09.000Z | defmodule BroadwayKafka do
@moduledoc """
Helpers for BroadwayKafka.
You can find the Broadway producer in `BroadwayKafka.Producer`.
"""
@doc """
Sequentially updates topics in all Broadway producers in the
pipeline given by `name`.
## Examples
BroadwayKafka.update_topics(MyBroadway, ["topic_a... | 21.483871 | 70 | 0.68018 |
7362c1d9bf935c0edadbe7d11de34b336ecf2365 | 1,271 | ex | Elixir | bubblit/lib/bubblit_web/controllers/room_controller.ex | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | null | null | null | bubblit/lib/bubblit_web/controllers/room_controller.ex | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | 84 | 2020-04-03T08:06:06.000Z | 2022-02-13T12:45:15.000Z | bubblit/lib/bubblit_web/controllers/room_controller.ex | pula39/BubbLit | 12f5bc010ab67fc13797f786d1cd0f10e23bf327 | [
"MIT"
] | 1 | 2020-09-25T12:59:02.000Z | 2020-09-25T12:59:02.000Z | defmodule BubblitWeb.RoomController do
use BubblitWeb, :controller
alias Bubblit.BubbleRooms
alias Bubblit.BubbleRooms.Room
action_fallback BubblitWeb.FallbackController
# 전체적으로 권한 체크 필요.
def index(conn, _params) do
rooms = Bubblit.Db.list_rooms()
render(conn, "index.json", rooms: rooms)
end
... | 27.042553 | 85 | 0.644375 |
7362e68d404de8f40c1812f6c7a1463355b0a254 | 170 | exs | Elixir | priv/repo/migrations/20201019015602_add_pg_stats_ext.exs | MorphicPro/morphic.pro | 9098da267344e025f262a344de6a2fb5cfea50a8 | [
"MIT"
] | 5 | 2020-04-23T21:12:17.000Z | 2020-09-30T00:16:58.000Z | priv/repo/migrations/20201019015602_add_pg_stats_ext.exs | joshchernoff/morphic.pro | 9098da267344e025f262a344de6a2fb5cfea50a8 | [
"MIT"
] | 232 | 2020-04-24T00:52:24.000Z | 2021-08-05T17:23:12.000Z | priv/repo/migrations/20201019015602_add_pg_stats_ext.exs | MorphicPro/morphic.pro | 9098da267344e025f262a344de6a2fb5cfea50a8 | [
"MIT"
] | 1 | 2020-04-04T02:19:44.000Z | 2020-04-04T02:19:44.000Z | defmodule MorphicPro.Repo.Migrations.AddPgStatsExt do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS pg_stat_statements", ""
end
end
| 21.25 | 67 | 0.776471 |
73630187567969a4c54a5d8bfd9c2178fc0db39b | 1,531 | exs | Elixir | test/blockfrost/cardano/ledger_test.exs | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | test/blockfrost/cardano/ledger_test.exs | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | test/blockfrost/cardano/ledger_test.exs | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.Cardano.LedgerTest do
use Blockfrost.Case
alias Blockfrost.Cardano.Ledger
alias Blockfrost.HTTPClientMock
alias Blockfrost.Response.BlockchainGenesisResponse
setup_all do
start_supervised!({Blockfrost, api_key: "apikey", network: :cardano_testnet})
:ok
end
describe "block... | 28.886792 | 81 | 0.594383 |
736319f77633b8aa232b2c5559613a424e67412e | 2,820 | ex | Elixir | lib/plaid/client.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | null | null | null | lib/plaid/client.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | null | null | null | lib/plaid/client.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | null | null | null | defmodule Plaid.Client do
@moduledoc false
use HTTPoison.Base
require Logger
alias Plaid.Castable
def process_request_headers(headers) do
[{"Content-Type", "application/json"}] ++ headers
end
@doc """
Make a Plaid API call.
Takes in everything needed to complete the request and
return a wel... | 26.111111 | 91 | 0.606028 |
736329e126bedde30768a71b612dc64d545b9be2 | 82 | exs | Elixir | teachme/test/teachme_web/views/layout_view_test.exs | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | null | null | null | teachme/test/teachme_web/views/layout_view_test.exs | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | teachme/test/teachme_web/views/layout_view_test.exs | kodeklubben-sandefjord/kodeklubben-sandefjord.github.io | 89351bceb132f87b1d2a0bcb325fb278d7ad48a4 | [
"MIT"
] | null | null | null | defmodule TeachmeWeb.LayoutViewTest do
use TeachmeWeb.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
73632a9994d4114b9fee642d0620e1e51ad84f06 | 577 | exs | Elixir | apps/core/priv/repo/seeds/03_accounts.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/priv/repo/seeds/03_accounts.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/priv/repo/seeds/03_accounts.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | import Botanist
alias Core.Repo
alias Core.Schema.{User, Account}
alias Core.Services.Accounts
import Core.Services.Base
seed do
User.without_account()
|> Core.Repo.all()
|> Enum.map(fn user ->
{:ok, _} =
start_transaction()
|> add_operation(:account, fn _ ->
Accounts.create_account(user... | 24.041667 | 78 | 0.632582 |
7363991bca27672c989831718e77c3e38db4d1f2 | 918 | ex | Elixir | lib/mundum_web/views/path_helpers.ex | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | lib/mundum_web/views/path_helpers.ex | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | lib/mundum_web/views/path_helpers.ex | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | defmodule MundumWeb.PathHelpers do
use Phoenix.HTML
@doc """
Used to generate name for path helper function
"""
def item_path_func_name(item_name_singular) do
String.to_atom(String.replace(item_name_singular, " ", "_") <> "_path")
end
@doc """
Returns path for item
(e.g. :index, :show, :new)
... | 24.810811 | 108 | 0.6939 |
7363b84c04acded07b70c1eac84b3efb25e92907 | 2,900 | ex | Elixir | lib/quest/web/controllers/option_controller.ex | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | lib/quest/web/controllers/option_controller.ex | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | lib/quest/web/controllers/option_controller.ex | ench0/quest | 844043205aa78e6937243f6993cbd560b6a5765b | [
"MIT"
] | null | null | null | defmodule Quest.Web.OptionController do
use Quest.Web, :controller
alias Quest.Main
def index(conn, _params) do
options = Main.list_options()
render(conn, "index.html", options: options)
end
def new(conn, option_params) do
questions = Main.list_questions()
question_id = option_params["quest... | 35.365854 | 145 | 0.661724 |
7363c9f72de76196415a3008becb4382cfaab272 | 1,192 | ex | Elixir | lib/data_processor_web/channels/user_socket.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | lib/data_processor_web/channels/user_socket.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | 3 | 2018-08-17T13:42:45.000Z | 2018-08-17T17:05:11.000Z | lib/data_processor_web/channels/user_socket.ex | DylanGuedes/batch_processor | 2f3122a5f1a31557a39fac67aa62e297c39e8bf5 | [
"Apache-2.0"
] | null | null | null | defmodule DataProcessorWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", DataProcessorWeb.RoomChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to... | 31.368421 | 88 | 0.707215 |
7363cfd0fb45710c8b3ad039cd7b28c718171890 | 466 | ex | Elixir | lib/elaxto/actions/index_action.ex | secretworry/elaxto | d4e66dc554f7dfe7786d9caf2dc3def5d231d37f | [
"Apache-2.0"
] | 2 | 2016-12-13T05:51:13.000Z | 2017-02-18T18:29:09.000Z | lib/elaxto/actions/index_action.ex | secretworry/elaxto | d4e66dc554f7dfe7786d9caf2dc3def5d231d37f | [
"Apache-2.0"
] | null | null | null | lib/elaxto/actions/index_action.ex | secretworry/elaxto | d4e66dc554f7dfe7786d9caf2dc3def5d231d37f | [
"Apache-2.0"
] | null | null | null | defmodule Elaxto.IndexAction do
@docmodule """
Action to invoke Indeces API
"""
@type error :: {String.t, Keyword.t}
@type t :: %__MODULE__{
name: atom,
settings: Map.t,
alias: Map.t,
mappings: Map.t,
opts: Keyword.t,
valid?: boolean,
errors: [error]
}
@type diff_result_t ::... | 21.181818 | 93 | 0.618026 |
736405fc60478e374cfbb89c7375cad739521fd7 | 709 | ex | Elixir | apps/legion/lib/identity/auth/concrete/viewdecl/active_passphrase.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/lib/identity/auth/concrete/viewdecl/active_passphrase.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/lib/identity/auth/concrete/viewdecl/active_passphrase.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Identity.Auth.Concrete.ActivePassphrase.ViewDecl do
@moduledoc false
use Legion.Stereotype, :viewdecl
@concrete_env Application.get_env(:legion, Legion.Identity.Auth.Concrete)
@passphrase_lifetime Keyword.fetch!(@concrete_env, :passphrase_lifetime)
create do
"""
CREATE OR REPLACE VI... | 26.259259 | 104 | 0.696756 |
7364116a259d2d7cd90716ffa188c35d985be443 | 21,023 | ex | Elixir | apps/evm/lib/block/header.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/evm/lib/block/header.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/evm/lib/block/header.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule Block.Header do
@moduledoc """
This structure codifies the header of a block in the blockchain.
For more information, see Section 4.3 of the Yellow Paper.
"""
alias ExthCrypto.Hash.Keccak
@empty_trie MerklePatriciaTree.Trie.empty_trie_root_hash()
@empty_keccak [] |> ExRLP.encode() |> Keccak.ke... | 33.21169 | 352 | 0.644627 |
736437b50af4498a2e2ed651931a618563b34abe | 453 | exs | Elixir | test/krasukha/iterative_gen_test.exs | Zatvobor/krasukha | ac6d2aa1dbd14039817a606c1347058bf1deab31 | [
"MIT"
] | 6 | 2017-01-28T01:11:58.000Z | 2021-12-19T22:45:49.000Z | test/krasukha/iterative_gen_test.exs | Zatvobor/krasukha | ac6d2aa1dbd14039817a606c1347058bf1deab31 | [
"MIT"
] | null | null | null | test/krasukha/iterative_gen_test.exs | Zatvobor/krasukha | ac6d2aa1dbd14039817a606c1347058bf1deab31 | [
"MIT"
] | null | null | null | alias Krasukha.{IterativeGen}
defmodule Krasukha.IterativeGenTest do
use ExUnit.Case, async: true
setup do
{:ok, pid} = IterativeGen.start_link(%{server: :untitled, request: :empty})
{:ok, [server: pid]}
end
describe "server behavior" do
test "process is alive", %{server: pid} do
assert Pro... | 21.571429 | 79 | 0.657837 |
7364a2ac4110376b5e86f84fddb34af5b85a1b13 | 522 | exs | Elixir | apps/repository/priv/repo/migrations/20180103193234_create_notifications.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/repository/priv/repo/migrations/20180103193234_create_notifications.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/repository/priv/repo/migrations/20180103193234_create_notifications.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule Repository.Repo.Migrations.CreateNotifications do
use Ecto.Migration
def change do
create table(:notifications) do
add(:to, :string, null: false)
add(:title, :string, null: false)
add(:body, :text, null: false)
add(:notify_at, :naive_datetime, null: false)
add(:status, :... | 26.1 | 59 | 0.659004 |
7364fae604eb0dfc1c390d0572ad3342bd62ee45 | 894 | exs | Elixir | bench/basic_bench.exs | minibikini/paasaa | 7ba881492a4102e036458a7bd232132db1271869 | [
"MIT"
] | 96 | 2016-08-31T18:31:23.000Z | 2022-02-06T18:49:19.000Z | bench/basic_bench.exs | minibikini/paasaa | 7ba881492a4102e036458a7bd232132db1271869 | [
"MIT"
] | 13 | 2016-09-05T13:30:09.000Z | 2020-07-07T10:55:42.000Z | bench/basic_bench.exs | minibikini/paasaa | 7ba881492a4102e036458a7bd232132db1271869 | [
"MIT"
] | 12 | 2016-09-04T18:16:08.000Z | 2021-10-17T15:03:57.000Z | defmodule BasicBench do
use Benchfella
@fixtures Paasaa.Support.Fixtures.fixtures()
@support Paasaa.Support.Fixtures.support()
|> Enum.take(10)
|> Enum.with_index()
Enum.each(@support, fn {language, index} ->
@index index
@input Enum.at(@fixtures, @index)
bench "[#{index}] ... | 21.804878 | 67 | 0.667785 |
736504c064e77341f579a918fad52ea7692fc438 | 334 | ex | Elixir | lib/infinity_one_web/views/sidebar_view.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | lib/infinity_one_web/views/sidebar_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | lib/infinity_one_web/views/sidebar_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule InfinityOneWeb.SidebarView do
use InfinityOneWeb, :view
def username(conn) do
Coherence.current_user(conn) |> Map.get(:username)
end
# def avatar_url(username) when is_binary(username) do
# "/avatar/" <> username
# end
def current_user_avatar_url(conn) do
conn |> username |> avatar_... | 20.875 | 56 | 0.709581 |
73652ec7e758d4d77e29fd53b0e3788212ecdcb9 | 61 | ex | Elixir | lib/mipha_web/views/location_view.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | lib/mipha_web/views/location_view.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | lib/mipha_web/views/location_view.ex | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule MiphaWeb.LocationView do
use MiphaWeb, :view
end
| 15.25 | 34 | 0.803279 |
736536136cde8c6516520221054e4145888972c2 | 1,565 | ex | Elixir | clients/content/lib/google_api/content/v2/model/shippingsettings_custom_batch_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/shippingsettings_custom_batch_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/shippingsettings_custom_batch_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... | 32.604167 | 131 | 0.76869 |
7365419f891310856461ea681f656107fa24429f | 496 | exs | Elixir | test/go_champs_api_web/views/error_view_test.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | test/go_champs_api_web/views/error_view_test.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | test/go_champs_api_web/views/error_view_test.exs | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.ErrorViewTest do
use GoChampsApiWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(GoChampsApiWeb.ErrorView, "404.json", []) == %{
errors: %{detail: "Not Found"}
... | 27.555556 | 66 | 0.657258 |
73657525ec51e1ea840583d69b85cb7a98563548 | 1,022 | ex | Elixir | lib/changelog/data/data.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog/data/data.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog/data/data.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | defmodule Changelog.Data do
defmacro __using__(opts) do
opts = Keyword.merge([default_sort: :inserted_at], opts)
quote do
use Ecto.Schema
use Changelog.Arc.Ecto.Schema
use Timex.Ecto.Timestamps
import Ecto
import Ecto.Changeset
import Ecto.Query, only: [from: 1, from: 2]
... | 31.9375 | 130 | 0.642857 |
736589bc32cecf4660c353eaefb9b137d9029a5a | 1,062 | ex | Elixir | lib/mix/tasks/bootstrap.ex | NeoArcanjo/aws-lambda-runtime-boilerplate | dcd3beded406b3b98f624c50e56f92235381f0b1 | [
"MIT-0"
] | null | null | null | lib/mix/tasks/bootstrap.ex | NeoArcanjo/aws-lambda-runtime-boilerplate | dcd3beded406b3b98f624c50e56f92235381f0b1 | [
"MIT-0"
] | null | null | null | lib/mix/tasks/bootstrap.ex | NeoArcanjo/aws-lambda-runtime-boilerplate | dcd3beded406b3b98f624c50e56f92235381f0b1 | [
"MIT-0"
] | null | null | null | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
defmodule Mix.Tasks.Bootstrap do
@moduledoc """
Generate a bootstrap script for the project in the release directory.
This task will fail if it's run before `mix release`.
"""
use Mix.Task
@runtime_... | 21.673469 | 73 | 0.663842 |
7365b004f11a7637383fdf843b332d2e27e49047 | 1,889 | exs | Elixir | deps/postgrex/mix.exs | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/postgrex/mix.exs | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/postgrex/mix.exs | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | defmodule Postgrex.Mixfile do
use Mix.Project
@source_url "https://github.com/elixir-ecto/postgrex"
@version "0.15.11"
def project do
[
app: :postgrex,
version: @version,
elixir: "~> 1.6",
deps: deps(),
name: "Postgrex",
description: "PostgreSQL driver for Elixir",
... | 22.759036 | 68 | 0.538909 |
7365cde01f6eb8431972439312a23d32222728bb | 1,619 | exs | Elixir | mix.exs | davejlong/ueberauth_spotify | 2e44e4136a8236ce85f4cde4599f2d6f414a5314 | [
"MIT"
] | 2 | 2017-12-02T18:55:13.000Z | 2019-05-16T09:27:51.000Z | mix.exs | davejlong/ueberauth_spotify | 2e44e4136a8236ce85f4cde4599f2d6f414a5314 | [
"MIT"
] | 2 | 2017-12-02T21:09:33.000Z | 2019-01-22T02:04:50.000Z | mix.exs | davejlong/ueberauth_spotify | 2e44e4136a8236ce85f4cde4599f2d6f414a5314 | [
"MIT"
] | 3 | 2017-12-06T15:13:10.000Z | 2019-01-21T02:14:40.000Z | defmodule UeberauthSpotify.Mixfile do
use Mix.Project
@url "https://github.com/davejlong/ueberauth_spotify"
@version "0.0.2"
def project do
[app: :ueberauth_spotify,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 24.907692 | 80 | 0.584929 |
73660aef29ead81ab02ad01f0d96b500052781ed | 1,865 | ex | Elixir | lib/web/controllers/admin/item_aspect_controller.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/controllers/admin/item_aspect_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/controllers/admin/item_aspect_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.Admin.ItemAspectController do
use Web.AdminController
alias Web.ItemAspect
def index(conn, _params) do
item_aspects = ItemAspect.all()
conn
|> assign(:item_aspects, item_aspects)
|> render("index.html")
end
def show(conn, %{"id" => id}) do
item_aspect = ItemAspect.get(id)... | 25.547945 | 98 | 0.609651 |
7366206a39a4c68ff57036b936093e7e99ef0225 | 901 | exs | Elixir | test/authex/load_current_resource_test.exs | Waasi/authex | 8e1c55ccbbbcef72bd958080e42c1e1b53359029 | [
"MIT"
] | 3 | 2016-12-17T13:36:16.000Z | 2017-01-28T11:17:23.000Z | test/authex/load_current_resource_test.exs | Waasi/authex | 8e1c55ccbbbcef72bd958080e42c1e1b53359029 | [
"MIT"
] | null | null | null | test/authex/load_current_resource_test.exs | Waasi/authex | 8e1c55ccbbbcef72bd958080e42c1e1b53359029 | [
"MIT"
] | null | null | null | defmodule Authex.LoadCurrentResourceTest do
use ExUnit.Case, async: true
use Plug.Test
alias Authex.TokenAuth
alias Authex.LoadCurrentResource
setup do
Application.put_env(:authex, :auth_id, TestHelpers.audience)
Application.put_env(:authex, :auth_secret, Base.url_encode64(TestHelpers.secret))
... | 31.068966 | 113 | 0.713651 |
73666b3399493ced79a70e242c8f48b2ef6f4caa | 1,416 | exs | Elixir | test/wabanex_web/schema_test.exs | EternalLearnerProgramming/Wabanex-NLW | a6fb37af9867d15b723c928ee6eb1a9a24b40925 | [
"MIT"
] | 61 | 2021-06-22T00:15:59.000Z | 2022-01-31T15:13:51.000Z | test/wabanex_web/schema_test.exs | EternalLearnerProgramming/Wabanex-NLW | a6fb37af9867d15b723c928ee6eb1a9a24b40925 | [
"MIT"
] | null | null | null | test/wabanex_web/schema_test.exs | EternalLearnerProgramming/Wabanex-NLW | a6fb37af9867d15b723c928ee6eb1a9a24b40925 | [
"MIT"
] | 56 | 2021-06-21T17:17:36.000Z | 2022-03-15T02:48:59.000Z | defmodule WabanexWeb.SchemaTest do
use WabanexWeb.ConnCase, async: true
alias Wabanex.User
alias Wabanex.Users.Create
describe "users queries" do
test "when a valid id is give, returns the user", %{conn: conn} do
params = %{email: "jp@banana.com", name: "Jp", password: "123456"}
{:ok, %User{i... | 22.125 | 88 | 0.475989 |
7366903ed0edc5638210224808cedc8688d34bb3 | 5,147 | exs | Elixir | test/web/controllers/submission_invite_controller_test.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | test/web/controllers/submission_invite_controller_test.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | test/web/controllers/submission_invite_controller_test.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | null | null | null | defmodule Web.SubmissionInviteControllerTest do
use Web.ConnCase
alias ChallengeGov.Submissions
alias ChallengeGov.SubmissionInvites
alias ChallengeGov.TestHelpers.AccountHelpers
alias ChallengeGov.TestHelpers.ChallengeHelpers
alias ChallengeGov.TestHelpers.SubmissionHelpers
describe "index" do
test... | 34.086093 | 98 | 0.682145 |
736696a92ee834c1caade0b71e2b10794dd83a5a | 608 | exs | Elixir | mix.exs | sjanota/castles | a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a | [
"Apache-2.0"
] | null | null | null | mix.exs | sjanota/castles | a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a | [
"Apache-2.0"
] | null | null | null | mix.exs | sjanota/castles | a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a | [
"Apache-2.0"
] | null | null | null | defmodule Castles.Mixfile do
use Mix.Project
def project do
[apps_path: "apps",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git:... | 22.518519 | 77 | 0.638158 |
73669dd3d3b63b3581ef2a5635a9da4e6910d459 | 699 | exs | Elixir | mix.exs | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | 7 | 2016-12-25T08:26:08.000Z | 2021-08-15T01:23:53.000Z | mix.exs | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | null | null | null | mix.exs | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | 1 | 2020-09-07T06:59:55.000Z | 2020-09-07T06:59:55.000Z | defmodule Monex.Mixfile do
use Mix.Project
def project do
[app: :monex,
version: "0.1.17",
elixir: "~> 1.4",
description: description(),
package: package(),
deps: deps()]
end
def application, do: []
defp deps, do: [
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},... | 21.84375 | 93 | 0.559371 |
73669f8186c75062b816e242a5ce31aeca6d1bd8 | 1,687 | exs | Elixir | test/silicon/hmac_test.exs | LanfordCai/silicon | 2a4f99f410a6f64b6300e1f12aa38dd535c08a81 | [
"MIT"
] | 2 | 2019-04-17T14:51:19.000Z | 2019-04-18T04:21:16.000Z | test/silicon/hmac_test.exs | LanfordCai/silicon | 2a4f99f410a6f64b6300e1f12aa38dd535c08a81 | [
"MIT"
] | null | null | null | test/silicon/hmac_test.exs | LanfordCai/silicon | 2a4f99f410a6f64b6300e1f12aa38dd535c08a81 | [
"MIT"
] | null | null | null | defmodule Silicon.HmacTest do
@moduledoc """
1. HMAC_SHA256/SHA512
https://cryptii.com
"""
use ExUnit.Case
import Silicon.Hmac
describe "hmac" do
test "hmac sha256" do
key = "silicon"
msg = ""
assert Base.encode16(hmac_sha256(key, msg), case: :lower) ==
"5e904c41... | 33.74 | 145 | 0.711322 |
7366bc289271d9a73f1423d4163636222184840f | 1,445 | exs | Elixir | mix.exs | c-kaieong/caravan | e639364e0e725eb5b5c80aeac473c2151db47165 | [
"Apache-2.0"
] | 55 | 2018-01-16T16:42:15.000Z | 2022-03-10T09:16:57.000Z | mix.exs | c-kaieong/caravan | e639364e0e725eb5b5c80aeac473c2151db47165 | [
"Apache-2.0"
] | 7 | 2018-03-29T13:21:46.000Z | 2021-05-07T18:33:43.000Z | mix.exs | c-kaieong/caravan | e639364e0e725eb5b5c80aeac473c2151db47165 | [
"Apache-2.0"
] | 5 | 2018-03-27T15:01:22.000Z | 2021-05-27T14:50:48.000Z | defmodule Caravan.Mixfile do
use Mix.Project
def project do
[
app: :caravan,
version: "1.0.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
docs: docs(),
deps: deps(),
dialyzer: [plt_add_apps: [:libc... | 24.491525 | 84 | 0.568166 |
7366f793fcbd055ecf4542a3a887a41b791c2e45 | 1,724 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_reload_document_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_reload_document_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_reload_document_request.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... | 33.153846 | 251 | 0.74942 |
73670005709d398427a7861f51312dcff61fde57 | 20,588 | exs | Elixir | test/ecto/changeset/belongs_to_test.exs | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 2 | 2021-02-25T15:51:16.000Z | 2021-02-25T18:42:35.000Z | test/ecto/changeset/belongs_to_test.exs | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 1 | 2021-03-09T16:43:23.000Z | 2021-03-09T16:43:23.000Z | test/ecto/changeset/belongs_to_test.exs | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 1 | 2018-06-18T14:47:58.000Z | 2018-06-18T14:47:58.000Z | defmodule Ecto.Changeset.BelongsToTest do
use ExUnit.Case, async: true
alias Ecto.Changeset
alias Ecto.Changeset.Relation
alias Ecto.TestRepo
alias __MODULE__.Author
alias __MODULE__.Profile
defmodule Author do
use Ecto.Schema
schema "authors" do
field :title, :string
belongs_to :p... | 36.764286 | 115 | 0.656402 |
73670ec831389a2bf83a8a5d678ddc13e66b47b9 | 1,583 | exs | Elixir | mix.exs | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | mix.exs | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | mix.exs | allen-garvey/mundum | 15719f6bca998a04f783206f4db2214ebd439e61 | [
"MIT"
] | null | null | null | defmodule Mundum.Mixfile do
use Mix.Project
def project do
[
app: :mundum,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: de... | 25.95082 | 79 | 0.58307 |
736734ae138da8a84a83dfa598852c27edf2fa09 | 1,846 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/push_filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/push_filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/push_filter.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 ... | 32.964286 | 85 | 0.72156 |
736756e5c5f9740943923bae157d65019b5409a6 | 1,483 | ex | Elixir | lib/sanbase_web/graphql/schema/types/clickhouse_types.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase_web/graphql/schema/types/clickhouse_types.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase_web/graphql/schema/types/clickhouse_types.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.ClickhouseTypes do
use Absinthe.Schema.Notation
object :active_addresses do
field(:datetime, non_null(:datetime))
field(:active_addresses, non_null(:float))
end
object :active_deposits do
field(:datetime, non_null(:datetime))
field(:active_deposits, non_null(:float... | 24.716667 | 58 | 0.710722 |
736771625d0b357385f7856b26e14d7f0b5c01a2 | 1,879 | exs | Elixir | config/dev.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 4 | 2020-08-05T20:05:34.000Z | 2020-10-01T10:01:56.000Z | config/dev.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-07-08T05:02:12.000Z | 2020-09-25T10:05:11.000Z | config/dev.exs | ATechnoHazard/katbin | 20a0b45954cf7819cd9d51c401db06be0f47666b | [
"MIT"
] | 1 | 2020-08-30T12:59:49.000Z | 2020-08-30T12:59:49.000Z | import 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 webpack to recompile .js and .css sources.
config :ketbin, KetbinWeb.Endpoint,
http: [port: 4000],
... | 27.632353 | 68 | 0.691857 |
736774f5a2968e24470f7c5ff095db4a25d86ba5 | 229 | exs | Elixir | test/plds_web/controllers/health_controller_test.exs | phoenixframework/plds | 820600e8da6e13f376f8341cb78868bc189ddad8 | [
"MIT"
] | 60 | 2021-09-13T21:53:34.000Z | 2022-03-09T14:31:36.000Z | test/plds_web/controllers/health_controller_test.exs | phoenixframework/plds | 820600e8da6e13f376f8341cb78868bc189ddad8 | [
"MIT"
] | 2 | 2021-09-23T17:13:40.000Z | 2021-11-16T15:57:05.000Z | test/plds_web/controllers/health_controller_test.exs | phoenixframework/plds | 820600e8da6e13f376f8341cb78868bc189ddad8 | [
"MIT"
] | 2 | 2021-11-16T10:37:42.000Z | 2022-02-18T19:32:38.000Z | defmodule PLDSWeb.HealthControllerTest do
use PLDSWeb.ConnCase
test "GET /health", %{conn: conn} do
conn = get(conn, "/health")
assert %{"application" => "plds", "version" => _} = json_response(conn, 200)
end
end
| 22.9 | 80 | 0.659389 |
736794de895336f9c058b1c72e2eca7a2fc0ed10 | 2,221 | exs | Elixir | mix.exs | krainboltgreene/torch | 664b14d1eb2ca3b8a3da1709847d8b9869097e23 | [
"MIT"
] | null | null | null | mix.exs | krainboltgreene/torch | 664b14d1eb2ca3b8a3da1709847d8b9869097e23 | [
"MIT"
] | null | null | null | mix.exs | krainboltgreene/torch | 664b14d1eb2ca3b8a3da1709847d8b9869097e23 | [
"MIT"
] | null | null | null | defmodule Torch.MixProject do
use Mix.Project
@source_url "https://github.com/mojotech/torch"
@version "3.7.1"
def project do
[
app: :torch,
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
nam... | 26.129412 | 84 | 0.541198 |
73680ca695afecb4b19f8af6647fb46ab3446d74 | 621 | ex | Elixir | lib/oli/delivery/sections/enrollment.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/delivery/sections/enrollment.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/delivery/sections/enrollment.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Delivery.Sections.Enrollment do
use Ecto.Schema
import Ecto.Changeset
schema "enrollments" do
belongs_to :user, Oli.Accounts.User
belongs_to :section, Oli.Delivery.Sections.Section
field :state, :map, default: %{}
many_to_many :context_roles, Lti_1p3.DataProviders.EctoProvider.Con... | 24.84 | 80 | 0.716586 |
73680fa98d750383af836b5cc944b20883379083 | 1,000 | exs | Elixir | test/dynamic_test.exs | sasani5942/exactor | 453b4505d2d6fabd523e3ce70f5b00d4ca71c7c5 | [
"MIT"
] | 616 | 2015-01-09T03:11:36.000Z | 2022-03-16T06:07:55.000Z | test/dynamic_test.exs | sasani5942/exactor | 453b4505d2d6fabd523e3ce70f5b00d4ca71c7c5 | [
"MIT"
] | 23 | 2015-03-22T19:26:58.000Z | 2021-01-04T10:42:40.000Z | test/dynamic_test.exs | sasani5942/exactor | 453b4505d2d6fabd523e3ce70f5b00d4ca71c7c5 | [
"MIT"
] | 27 | 2015-03-23T17:41:41.000Z | 2020-10-31T13:20:22.000Z | defmodule DynamicTest do
use ExUnit.Case
defmodule DynServer do
use ExActor.Tolerant
defstart start
for op <- [:get] do
defcall unquote(op), state: state do
reply(state)
end
end
for op <- [:set] do
defcast unquote(op)(arg) do
new_state(arg)
end
end... | 17.857143 | 46 | 0.614 |
73682650e9f378a673822d351ada2d00de6eefc4 | 365 | exs | Elixir | apps/api_web/test/api_web/plugs/redirect_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/test/api_web/plugs/redirect_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/test/api_web/plugs/redirect_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWeb.Plugs.RedirectTest do
use ApiWeb.ConnCase
alias ApiWeb.Plugs.Redirect
test "init/1" do
assert Redirect.init([]) == []
end
test "call/2", %{conn: conn} do
conn =
conn
|> bypass_through()
|> get("/")
|> Redirect.call(to: "/test")
assert redirected_to(conn)... | 18.25 | 41 | 0.59726 |
7368359fac1e1551523a5e9a0f8e7730604d90ea | 2,556 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/account_permission.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/account_permission.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/account_permission.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.225806 | 205 | 0.705399 |
73685ad4eac34ef7f71eb7ebef5a9a319157c366 | 646 | ex | Elixir | test/support/slack_test_helpers.ex | zvkemp/elixir-bot-server | 0db6b6ce57ddccaac980bf659eb2d540a077de38 | [
"MIT"
] | 8 | 2016-03-15T17:15:26.000Z | 2021-12-11T11:21:53.000Z | test/support/slack_test_helpers.ex | zvkemp/elixir-bot-server | 0db6b6ce57ddccaac980bf659eb2d540a077de38 | [
"MIT"
] | 1 | 2017-10-15T20:13:15.000Z | 2017-10-15T20:13:15.000Z | test/support/slack_test_helpers.ex | zvkemp/elixir-bot-server | 0db6b6ce57ddccaac980bf659eb2d540a077de38 | [
"MIT"
] | null | null | null | defmodule Slack.TestHelpers do
def new_bot_name do
fn -> :crypto.strong_rand_bytes(16) end
|> Stream.repeatedly
|> Enum.take(2)
|> List.to_tuple
end
@doc """
proxies a subscription; forwards decoded JSON back to exunit for better
pattern matching on messages
"""
def subscribe_to_json(work... | 26.916667 | 73 | 0.676471 |
73686cfc3501b82e936a0615bbe7cfd5a67347e0 | 22,823 | exs | Elixir | test/jumubase_web/controllers/internal/performance_controller_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | test/jumubase_web/controllers/internal/performance_controller_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | test/jumubase_web/controllers/internal/performance_controller_test.exs | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.Internal.PerformanceControllerTest do
use JumubaseWeb.ConnCase
setup config do
config
|> Map.put(:contest, insert(:contest))
|> login_if_needed
end
describe "index/2" do
for role <- all_roles() do
@tag login_as: role
test "lists contest performances to authori... | 34.68541 | 114 | 0.656312 |
73687039950c3caed03f3dabafb867b23f1818b9 | 1,700 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_github_enterprise_configs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_github_enterprise_configs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/list_github_enterprise_configs_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.170213 | 142 | 0.765882 |
736881d08aff74cb17aa531f160a77faca637ef4 | 1,135 | exs | Elixir | plants_weather_traffic/apps/astro_server/config/config.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"MIT"
] | null | null | null | plants_weather_traffic/apps/astro_server/config/config.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"MIT"
] | null | null | null | plants_weather_traffic/apps/astro_server/config/config.exs | andfoy/cpd-exercises | f36ac16c74bb980d7edd6aaf5661a6d4d4b09489 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.612903 | 73 | 0.752423 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.