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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91ace5323a018d19956ba21b4ff0729941ffb336 | 9,243 | ex | Elixir | examples/profiling/lib/profiling.ex | SergeTupchiy/nonuniform_rand | c6ddd4be2b6c06707ca54f4a98cdbe401e4968b2 | [
"MIT"
] | null | null | null | examples/profiling/lib/profiling.ex | SergeTupchiy/nonuniform_rand | c6ddd4be2b6c06707ca54f4a98cdbe401e4968b2 | [
"MIT"
] | null | null | null | examples/profiling/lib/profiling.ex | SergeTupchiy/nonuniform_rand | c6ddd4be2b6c06707ca54f4a98cdbe401e4968b2 | [
"MIT"
] | null | null | null | defmodule Profiling do
require Profiling.Helper
import Profiling.Helper
import Profiling.PrettyTable, only: [print_table: 3]
alias NonuniformRand
@input_medium_data_list [
{"Enum.all?/2", 0.0003559859},
{"Enum.any?/2", 0.0005339789},
{"Enum.at/3", 0.0001067958},
{"Enum.chunk_by/2", 0.0001423944},
... | 35.55 | 85 | 0.654225 |
91ad3a9bea000f4915634b17ab5c2a6f82dc7a7d | 23,884 | exs | Elixir | test/thrift/parser_test.exs | simplifi/elixir-thrift | 3ce784e198fbdf77d7d2481e6fd0cc9fd9618630 | [
"Apache-2.0"
] | 209 | 2015-12-19T09:56:39.000Z | 2022-03-22T04:43:16.000Z | test/thrift/parser_test.exs | fakeNetflix/pinterest-repo-elixir-thrift | 4e6cc130738b4f04fdbb06bd6f12985b9a9438d3 | [
"Apache-2.0"
] | 312 | 2016-01-05T04:04:58.000Z | 2021-11-15T17:59:57.000Z | test/thrift/parser_test.exs | thecodeboss/elixir-thrift | 621a2039bcbcec62d1cedc85b01421813e0910e8 | [
"Apache-2.0"
] | 40 | 2015-12-21T19:46:03.000Z | 2022-02-10T08:34:58.000Z | defmodule Thrift.Parser.ParserTest do
use ExUnit.Case, async: true
@project_root Path.expand("../..", __DIR__)
@test_file_dir Path.join([@project_root, "tmp", "parser_test"])
import Thrift.Parser,
only: [parse_string: 1, parse_file: 1, parse_file_group: 2]
alias Thrift.AST.{
Constant,
CppInclud... | 25.194093 | 98 | 0.487272 |
91ad41be8033e67cc3779c1824a9a35eb8d6c789 | 10,761 | exs | Elixir | examples_generator.exs | jjl/ecto_erd | 81794cb9e1869aeb314bc806f00b2ab61fb63ff9 | [
"Apache-2.0"
] | 45 | 2021-08-29T22:50:48.000Z | 2022-03-29T21:08:35.000Z | examples_generator.exs | jjl/ecto_erd | 81794cb9e1869aeb314bc806f00b2ab61fb63ff9 | [
"Apache-2.0"
] | 9 | 2021-08-30T11:53:08.000Z | 2022-03-14T07:08:00.000Z | examples_generator.exs | jjl/ecto_erd | 81794cb9e1869aeb314bc806f00b2ab61fb63ff9 | [
"Apache-2.0"
] | 4 | 2021-08-30T07:08:55.000Z | 2022-02-17T07:20:45.000Z | defmodule Ecto.ERD.ExamplesGenerator do
require Logger
@shared_examples [
[name: "Default", formats: [:dbml, :dot, :qdbd, :puml]],
[
name: "No fields",
formats: [:dot],
config: """
[
columns: []
]
"""
],
[
name: "Contexts as clusters",
formats... | 28.772727 | 110 | 0.487037 |
91ad4c373f35ef5bbe75d73fd7efae330055f96b | 477 | exs | Elixir | test/models/state_test.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | null | null | null | test/models/state_test.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | 1 | 2016-03-28T03:13:34.000Z | 2020-08-11T22:26:12.000Z | test/models/state_test.exs | dogIDs/sponsor-dot-dog | 07b7fe90ee12157c144d0d164ca8035e509e59bb | [
"MIT"
] | null | null | null | defmodule SponsorDotDog.StateTest do
use SponsorDotDog.ModelCase
alias SponsorDotDog.State
@valid_attrs %{state_abbreviation: "some content", state_name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = State.changeset(%State{}, @valid_attrs)
assert changeset... | 25.105263 | 80 | 0.742138 |
91ad51b05205bb7422eb186f2d9d03cdc499a570 | 158 | exs | Elixir | examples/lwm 10 - Modules and Functions Part 1/module.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 38 | 2018-12-31T10:51:42.000Z | 2022-03-25T18:18:10.000Z | examples/lwm 10 - Modules and Functions Part 1/module.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | null | null | null | examples/lwm 10 - Modules and Functions Part 1/module.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 6 | 2019-08-19T03:21:36.000Z | 2021-07-16T09:34:49.000Z | defmodule ExampleModule do
end
defmodule Cars.Driving do
end
defmodule Vehicles.Cars.Driving do
end
defmodule Cars do
defmodule Driving do
end
end
| 8.777778 | 34 | 0.78481 |
91ad65276df978d42e3dc054fc9a0d44cfba8034 | 278 | exs | Elixir | test/kday_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 1 | 2019-05-19T02:16:41.000Z | 2019-05-19T02:16:41.000Z | test/kday_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 1 | 2019-04-13T23:08:25.000Z | 2019-04-13T23:08:25.000Z | test/kday_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 1 | 2019-04-02T14:12:32.000Z | 2019-04-02T14:12:32.000Z | defmodule Calendar.Kday.Test do
use ExUnit.Case, async: true
test "nth kday for k-day == day of date" do
assert Cldr.Calendar.Kday.nth_kday(~D[2022-01-01], 1, 5) == ~D[2022-01-07]
assert Cldr.Calendar.Kday.nth_kday(~D[2022-01-01], -1, 5) == ~D[2021-12-31]
end
end | 34.75 | 79 | 0.661871 |
91ad659a74de43d7663e84f03b297ec8eeca1674 | 713 | ex | Elixir | archive/ivy/query/walkable.ex | naramore/ivy | 171c81a23e0657088c6c5156fb181f58313c03d7 | [
"MIT"
] | null | null | null | archive/ivy/query/walkable.ex | naramore/ivy | 171c81a23e0657088c6c5156fb181f58313c03d7 | [
"MIT"
] | null | null | null | archive/ivy/query/walkable.ex | naramore/ivy | 171c81a23e0657088c6c5156fb181f58313c03d7 | [
"MIT"
] | null | null | null | defprotocol Ivy.Walkable do
@fallback_to_any true
def walk(v, f)
end
defimpl Ivy.Walkable, for: List do
def walk([], _), do: []
def walk([h | t], f) when is_list(t) do
[@protocol.walk(f.(h), f) | @protocol.walk(t, f)]
end
def walk([h | t], f) do
[f.(h) | f.(t)]
end
end
defimpl Ivy.Walkable, for... | 19.27027 | 53 | 0.5554 |
91ad798537d59469e9d21e68af5210465792a996 | 545 | exs | Elixir | test/mipha/topics/topic_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | test/mipha/topics/topic_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | test/mipha/topics/topic_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule Mipha.Topics.TopicTest do
use Mipha.DataCase
alias Mipha.Topics.Topic
@valid_attrs %{title: "elixir mipha", body: "elixir mipha body", node_id: 1, user_id: 1}
@invalid_attrs %{title: nil, body: "elixir mipha body", node_id: nil}
describe "changeset" do
test "with valid attrs" do
changes... | 25.952381 | 90 | 0.684404 |
91ad9f7211aa7ca38c7340e942595935d2fae1e0 | 86 | exs | Elixir | apps/app_with_brunch/test/views/page_view_test.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/app_with_brunch/test/views/page_view_test.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/app_with_brunch/test/views/page_view_test.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | defmodule AppWithBrunch.PageViewTest do
use AppWithBrunch.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
91ade935edcdf2f6f4c1bc2706f2cb2a7c4aeabd | 1,552 | ex | Elixir | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/suffix.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/suffix.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/suffix.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 ... | 31.04 | 92 | 0.722938 |
91ae052e9e5ce49be92827ac3d8551a6d38b74ac | 9,595 | ex | Elixir | lib/game/experience.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/experience.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/experience.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | defmodule Game.Experience do
@moduledoc """
Leveling up a character
"""
use Networking.Socket
require Game.Gettext
alias Data.ActionBar
alias Data.Save
alias Game.DamageTypes
alias Game.Format
alias Game.Skills
@doc """
Apply experience points to the user's save
Will echo experience to th... | 25.862534 | 125 | 0.643252 |
91ae1a6c76d3455df6433f95655680beffdc9581 | 1,547 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/images_upload_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/images_upload_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/images_upload_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... | 32.914894 | 109 | 0.750485 |
91ae20e139653404aa227beab280ff6708fa86bc | 1,061 | ex | Elixir | lib/bootstrap_form/textarea.ex | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 6 | 2019-02-07T00:37:24.000Z | 2021-05-29T23:37:32.000Z | lib/bootstrap_form/textarea.ex | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 7 | 2019-02-07T00:19:39.000Z | 2019-11-04T17:01:50.000Z | lib/bootstrap_form/textarea.ex | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 3 | 2019-10-30T13:49:44.000Z | 2021-09-26T23:45:02.000Z | defmodule BootstrapForm.Textarea do
@moduledoc false
import Phoenix.HTML.Form, only: [label: 3, textarea: 3]
alias BootstrapForm.{Input, InputBuilder, Wrapper}
@label_class "control-label"
@default_classes [input_class: "form-control", wrapper_class: "form-group"]
@behaviour InputBuilder
@doc """
G... | 27.205128 | 104 | 0.662582 |
91ae21275fe0bd6dc4649fa60a21ed20834548c4 | 1,098 | ex | Elixir | lib/ecto/repo/registry.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | 1 | 2019-05-03T08:51:16.000Z | 2019-05-03T08:51:16.000Z | lib/ecto/repo/registry.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/registry.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | defmodule Ecto.Repo.Registry do
@moduledoc false
use GenServer
## Public interface
def start_link() do
GenServer.start_link(__MODULE__, :ok, [name: __MODULE__])
end
def associate(pid, value) when is_pid(pid) do
GenServer.call(__MODULE__, {:associate, pid, value})
end
def lookup(repo) when i... | 22.875 | 106 | 0.653916 |
91ae260249f112299826439b7cd3fce1d7d0cd2e | 470 | ex | Elixir | lib/codes/codes_n16.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n16.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n16.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_N16 do
alias IcdCode.ICDCode
def _N16 do
%ICDCode{full_code: "N16",
category_code: "N16",
short_code: "",
full_name: "Renal tubulo-interstitial disorders in diseases classified elsewhere",
short_name: "Renal tubulo-interstitial disorders in ... | 29.375 | 95 | 0.697872 |
91ae61dafb9e003e07557ee623be8b93328d4081 | 62 | ex | Elixir | lib/gotochgo/comment.ex | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | null | null | null | lib/gotochgo/comment.ex | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | null | null | null | lib/gotochgo/comment.ex | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | 2 | 2021-11-11T17:19:17.000Z | 2021-12-27T16:06:23.000Z | defmodule Gotochgo.Comment do
defstruct id: 0, text: ""
end
| 15.5 | 29 | 0.725806 |
91aeb70737924a8741d5eccfcf724591c75e0e8d | 78 | exs | Elixir | test/ellie_web/views/layout_view_test.exs | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 377 | 2018-04-05T03:36:00.000Z | 2022-03-30T19:12:44.000Z | test/ellie_web/views/layout_view_test.exs | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 91 | 2018-05-24T21:56:06.000Z | 2022-02-26T03:54:04.000Z | test/ellie_web/views/layout_view_test.exs | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 34 | 2018-05-29T03:54:35.000Z | 2022-01-13T07:12:46.000Z | defmodule EllieWeb.LayoutViewTest do
use EllieWeb.ConnCase, async: true
end
| 19.5 | 36 | 0.820513 |
91aec42ccfd0b66aa27ec9a39a95c4bfd0d39bf7 | 640 | ex | Elixir | lib/anchore_engine_api_server/model/feed_group_metadata.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/feed_group_metadata.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/feed_group_metadata.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule AnchoreEngineAPIServer.Model.FeedGroupMetadata do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:created_at,
:last_syn... | 20 | 78 | 0.690625 |
91aece9a822aa98ac90dc5f3c86d68e91e108f49 | 2,204 | exs | Elixir | test/dispatch/absences_test.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 21 | 2019-02-13T15:26:00.000Z | 2021-09-18T13:05:42.000Z | test/dispatch/absences_test.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 26 | 2019-02-13T18:42:44.000Z | 2021-09-16T15:40:05.000Z | test/dispatch/absences_test.exs | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 2 | 2020-05-26T09:09:19.000Z | 2021-04-21T20:43:07.000Z | defmodule Dispatch.AbsencesTest do
use ExUnit.Case
import Mox
alias Dispatch.Absences
alias Timex.Duration
setup :verify_on_exit!
test "absent_fullnames/0 retrieve users currently absent" do
now = Timex.now()
events = [
%ExIcal.Event{
start: Timex.subtract(now, Duration.from_minut... | 27.55 | 74 | 0.628857 |
91aedb6b70ce40d7ac8bec7b92d604ae480d3e5b | 2,243 | ex | Elixir | lib/slack/web/web.ex | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 657 | 2015-01-05T21:56:30.000Z | 2022-03-28T12:56:47.000Z | lib/slack/web/web.ex | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 214 | 2015-02-15T18:06:20.000Z | 2022-02-21T21:15:53.000Z | lib/slack/web/web.ex | jokawachi-hg/Elixir-Slack | 342f63f3b75b64ea43328277d568a4ba3c5e3977 | [
"MIT"
] | 207 | 2015-02-26T23:24:36.000Z | 2022-02-27T21:53:57.000Z | defmodule Slack.Web do
@moduledoc false
def get_documentation do
File.ls!("#{__DIR__}/docs")
|> format_documentation
end
defp format_documentation(files) do
Enum.reduce(files, %{}, fn file, module_names ->
json =
File.read!("#{__DIR__}/docs/#{file}")
|> Jason.decode!(%{})
... | 27.024096 | 93 | 0.606777 |
91aef5d609624547855d06d68bafcf1c133bf8ff | 1,787 | exs | Elixir | test/cldr_html_unit_test.exs | 0urobor0s/cldr_html | d0dad6e59e4560cad10e19206677622dcf3fecbe | [
"Apache-2.0"
] | null | null | null | test/cldr_html_unit_test.exs | 0urobor0s/cldr_html | d0dad6e59e4560cad10e19206677622dcf3fecbe | [
"Apache-2.0"
] | null | null | null | test/cldr_html_unit_test.exs | 0urobor0s/cldr_html | d0dad6e59e4560cad10e19206677622dcf3fecbe | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.HTML.Unit.Test do
use ExUnit.Case
doctest Cldr.HTML.Unit
import Phoenix.HTML, only: [safe_to_string: 1]
describe "unit_select/3" do
test "with selected unit" do
string = safe_to_string(
Cldr.HTML.Unit.select(
:my_form,
:unit,
... | 28.822581 | 63 | 0.45775 |
91af01f59bba9a1a3969b3c7aaefaa9e0304225a | 4,080 | ex | Elixir | apps/log_watcher/test/support/data_case.ex | pzingg/log_watcher | 9260b1ec79a3a211a18b8214b33be918ebf77141 | [
"MIT"
] | 1 | 2021-11-03T03:26:44.000Z | 2021-11-03T03:26:44.000Z | apps/log_watcher/test/support/data_case.ex | pzingg/log_watcher | 9260b1ec79a3a211a18b8214b33be918ebf77141 | [
"MIT"
] | null | null | null | apps/log_watcher/test/support/data_case.ex | pzingg/log_watcher | 9260b1ec79a3a211a18b8214b33be918ebf77141 | [
"MIT"
] | null | null | null | defmodule LogWatcher.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 t... | 29.565217 | 98 | 0.672549 |
91af5d2df60dbb3469f885bd11013329c208b11b | 1,901 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/http_fault_delay.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/http_fault_delay.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/http_fault_delay.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.02 | 231 | 0.739085 |
91af6253d584d06879805ba04b1271e9a71c6124 | 866 | ex | Elixir | bricks/lib/errors/timeout.ex | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | bricks/lib/errors/timeout.ex | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | bricks/lib/errors/timeout.ex | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 James Laver
#
# 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 wr... | 29.862069 | 74 | 0.7194 |
91b0593c77a08e0a47e100057ae7f3eb18388739 | 1,704 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/user.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_management/lib/google_api/android_management/v1/model/user.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_management/lib/google_api/android_management/v1/model/user.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.255319 | 382 | 0.748239 |
91b067b5f1d7b48fe4ce6496438dfbb945af5433 | 6,078 | ex | Elixir | services/interop-proxy/lib/interop_proxy.ex | RemusW/orchestra | 688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198 | [
"MIT"
] | null | null | null | services/interop-proxy/lib/interop_proxy.ex | RemusW/orchestra | 688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198 | [
"MIT"
] | null | null | null | services/interop-proxy/lib/interop_proxy.ex | RemusW/orchestra | 688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198 | [
"MIT"
] | null | null | null | defmodule InteropProxy do
@moduledoc """
Entrypoint for the Interop Proxy service.
This service wraps the behavior of the AUVSI SUAS Interoperability
Server for use from other services in the stack.
"""
alias InteropProxy.Message.Interop.{InteropTelem, Odlc}
alias InteropProxy.Request
alias InteropPr... | 27.255605 | 77 | 0.601678 |
91b087995919c4c55d028e1e064158120faf7c83 | 1,084 | ex | Elixir | lib/artsy/api.ex | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | 1 | 2019-10-26T07:17:24.000Z | 2019-10-26T07:17:24.000Z | lib/artsy/api.ex | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | 2 | 2021-03-09T21:15:44.000Z | 2021-05-10T17:59:48.000Z | lib/artsy/api.ex | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | null | null | null | defmodule Artsy.API do
use HTTPoison.Base
def process_request_url(url) do
"https://metaphysics-production.artsy.net" <> url
end
def process_request_headers(headers) do
[
{"Content-Type", "application/json"},
{"x-access-token", "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1ZGI5ZmU1YjQ4Z... | 32.848485 | 416 | 0.791513 |
91b0c29ff822e93100aa4d2a3ef337777fecba50 | 1,355 | ex | Elixir | apps/sue/lib/sue/commands/core.ex | inculi/Sue | 42e249aec1d9c467db63526966d9690d5c58f346 | [
"MIT"
] | 9 | 2018-03-23T11:18:21.000Z | 2021-08-06T18:38:37.000Z | lib/sue/commands/core.ex | alwayswimmin/Sue | 33dfd860e7d5b6dce11e2dc202924efad6a9474c | [
"MIT"
] | 21 | 2017-12-01T05:57:10.000Z | 2021-06-06T18:53:25.000Z | lib/sue/commands/core.ex | alwayswimmin/Sue | 33dfd860e7d5b6dce11e2dc202924efad6a9474c | [
"MIT"
] | 6 | 2018-03-23T11:24:21.000Z | 2021-08-06T18:40:28.000Z | defmodule Sue.Commands.Core do
Module.register_attribute(__MODULE__, :is_persisted, persist: true)
@is_persisted "is persisted"
alias Sue.Models.{Message, Response}
require Logger
@doc """
Make sure Sue is alive and well.
Usage: !ping
"""
def c_ping(_m) do
%Response{body: "pong!"}
end
def h... | 27.1 | 322 | 0.600738 |
91b0d7af4d6dbcecc3f72bebb0536374fd79925f | 884 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.740741 | 74 | 0.75905 |
91b0d8fcde99111d2373dea359c4bc9ef489d9ad | 1,761 | ex | Elixir | lib/glimesh/payments/subscription.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | lib/glimesh/payments/subscription.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | lib/glimesh/payments/subscription.ex | wolfcomp/glimesh.tv | 3953e07946aabe85fe90d9d0f36df833b22d262a | [
"MIT"
] | null | null | null | defmodule Glimesh.Payments.Subscription do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder,
only: [
:stripe_subscription_id,
:stripe_product_id,
:stripe_price_id,
:stripe_current_period_end,
:is_active,
... | 24.123288 | 77 | 0.649063 |
91b114259bc018f1c958e6ce101b1215a6123101 | 217 | ex | Elixir | lib/elixoids/api/state.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 5 | 2016-07-05T13:42:33.000Z | 2020-12-07T14:12:16.000Z | lib/elixoids/api/state.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 70 | 2016-06-04T11:31:27.000Z | 2020-11-21T20:00:09.000Z | lib/elixoids/api/state.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 1 | 2016-07-05T17:10:05.000Z | 2016-07-05T17:10:05.000Z | defmodule Elixoids.Api.State do
@moduledoc "Send minimal JSON lists of state, not maps with long keys"
defprotocol WorldJSON do
@dialyzer {:nowarn_function, __protocol__: 1}
def to_json_list(m)
end
end
| 24.111111 | 72 | 0.746544 |
91b131153e56b804cb8d951f1e7ab6a74cea6395 | 1,412 | exs | Elixir | mix.exs | trarbr/finch | dafa40f9ad052e1b06d2928705237ecb709a82fc | [
"MIT"
] | null | null | null | mix.exs | trarbr/finch | dafa40f9ad052e1b06d2928705237ecb709a82fc | [
"MIT"
] | null | null | null | mix.exs | trarbr/finch | dafa40f9ad052e1b06d2928705237ecb709a82fc | [
"MIT"
] | null | null | null | defmodule Finch.MixProject do
use Mix.Project
@name "Finch"
@version "0.5.1"
@repo_url "https://github.com/keathley/finch"
def project do
[
app: :finch,
version: @version,
elixir: "~> 1.7",
description: "An HTTP client focused on performance.",
package: package(),
doc... | 21.723077 | 60 | 0.513456 |
91b151fe6e7fd562591133988e28013f38b007f3 | 141 | ex | Elixir | debian/menu.ex | sethalves/snow2-client | b70c3ca5522a666a71a4c8992f771d5faaceccd6 | [
"BSD-3-Clause"
] | 15 | 2015-01-12T09:08:07.000Z | 2021-10-03T10:03:28.000Z | debian/menu.ex | sethalves/snow2-client | b70c3ca5522a666a71a4c8992f771d5faaceccd6 | [
"BSD-3-Clause"
] | 1 | 2018-08-13T23:12:46.000Z | 2018-08-14T17:46:42.000Z | debian/menu.ex | sethalves/snow2-client | b70c3ca5522a666a71a4c8992f771d5faaceccd6 | [
"BSD-3-Clause"
] | 3 | 2015-01-18T05:34:04.000Z | 2018-08-13T21:56:59.000Z | ?package(snow2-client):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="snow2-client" command="/usr/bin/snow2-client"
| 47 | 85 | 0.751773 |
91b16923760b43a5238b0c3942ffa5e3356599ab | 5,832 | ex | Elixir | lib/surface_bulma/table.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 30 | 2021-02-05T18:50:38.000Z | 2022-03-12T22:42:29.000Z | lib/surface_bulma/table.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 19 | 2021-01-15T19:14:24.000Z | 2022-02-05T14:57:18.000Z | lib/surface_bulma/table.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 17 | 2021-02-01T20:57:51.000Z | 2022-03-20T17:06:57.000Z | defmodule SurfaceBulma.Table do
@moduledoc """
A Bulma HTML table.
You can create a table by passing `data` to it and defining
columns using the `Table.Column` component.
Look in the documentation for `Table.Column` for information on how to do sorting.
"""
use Surface.LiveComponent
alias SurfaceBulm... | 28.173913 | 96 | 0.5607 |
91b16a7021329cd750e9a9d0d738034b6b2dc758 | 207 | ex | Elixir | lib/phone/pg.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/pg.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/pg.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.PG do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(675)()(.+)/
def country, do: "Papua New Guinea"
def a2, do: "PG"
def a3, do: "PNG"
matcher(:regex, ["675"])
end
| 15.923077 | 37 | 0.603865 |
91b184cc703e68e0a315944c0ee3e05610af808e | 294 | ex | Elixir | lib/skroutz/config.ex | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | 10 | 2016-02-22T08:23:00.000Z | 2020-02-12T12:42:18.000Z | lib/skroutz/config.ex | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | null | null | null | lib/skroutz/config.ex | skroutz/skroutz.ex | d0915212f1bfd6a7c2a721cf4d50e80939f71947 | [
"MIT"
] | 1 | 2020-02-12T12:42:21.000Z | 2020-02-12T12:42:21.000Z | defmodule Skroutz.Config do
@moduledoc """
Represents a configuration belonging to a client process
"""
@type t :: %Skroutz.Config{}
defstruct client_id: nil,
client_secret: nil,
token: nil,
flavor: :skroutz,
permissions: "public"
end
| 22.615385 | 58 | 0.605442 |
91b1883c434a4c551bd9261064bd0205ae9d9d12 | 682 | ex | Elixir | lib/wabanex/users/get.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | lib/wabanex/users/get.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | lib/wabanex/users/get.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | defmodule Wabanex.Users.Get do
import Ecto.Query
alias Wabanex.{Repo, User, Training}
alias Ecto.UUID
def call(id) do
id
|> UUID.cast()
|> handle_response()
end
defp handle_response(:error) do
{:error, "Invalid UUID"}
end
defp handle_response({:ok, uuid}) do
case Repo.get(User, uu... | 22.733333 | 75 | 0.64956 |
91b1a2043f83780b51d9a18cd4c625896b5125d8 | 1,043 | ex | Elixir | test/support/conn_case.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/support/conn_case.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/support/conn_case.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the databa... | 23.704545 | 63 | 0.698945 |
91b1b369e97846cf048e496761f2cd4a35d9707e | 3,562 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_webhook_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_v2beta1_webhook_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_v2beta1_webhook_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... | 47.493333 | 381 | 0.751263 |
91b1d73630fe1fd71e29bd6b0c592c316d6e0bdf | 138 | exs | Elixir | test/encrypt_test.exs | PageModifiedOfficial/encrypt | 57bbae466ef1fd75b5c8ca709c09060db7611b0d | [
"MIT"
] | null | null | null | test/encrypt_test.exs | PageModifiedOfficial/encrypt | 57bbae466ef1fd75b5c8ca709c09060db7611b0d | [
"MIT"
] | null | null | null | test/encrypt_test.exs | PageModifiedOfficial/encrypt | 57bbae466ef1fd75b5c8ca709c09060db7611b0d | [
"MIT"
] | null | null | null | defmodule EncryptTest do
use ExUnit.Case
doctest Encrypt
test "greets the world" do
assert Encrypt.hello() == :world
end
end
| 15.333333 | 36 | 0.710145 |
91b1ffb6b0d27df16abd27919315741bc3d41ae4 | 1,084 | ex | Elixir | lib/elixir_runtime/monitor.ex | RTLS/aws-lambda-elixir-runtime | 0b7799ea680b36528db441c8c8094575fb7c5d39 | [
"MIT-0"
] | 3 | 2019-09-10T22:12:27.000Z | 2022-01-06T01:21:04.000Z | lib/elixir_runtime/monitor.ex | Xerpa/aws-lambda-elixir-runtime | a673c0e934ce49aab9e1f3eea51218c29d3cafde | [
"MIT-0"
] | null | null | null | lib/elixir_runtime/monitor.ex | Xerpa/aws-lambda-elixir-runtime | a673c0e934ce49aab9e1f3eea51218c29d3cafde | [
"MIT-0"
] | 2 | 2020-08-13T05:37:17.000Z | 2022-01-06T01:24:02.000Z | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
defmodule ElixirRuntime.Monitor do
@moduledoc """
The monitor is responsible for reporting errors in the Elixir process to
the AWS Lambda runtime service.
The monitor is a stateful process which tracks th... | 27.794872 | 80 | 0.725092 |
91b2096f13500a3d5446f52059888545563a73f4 | 3,092 | exs | Elixir | test/ex_okex/spot/public_test.exs | acuityinnovations/ex_okex | 52acf16e8d00446ca32607ccb2cd75add0acaceb | [
"MIT"
] | null | null | null | test/ex_okex/spot/public_test.exs | acuityinnovations/ex_okex | 52acf16e8d00446ca32607ccb2cd75add0acaceb | [
"MIT"
] | 4 | 2019-04-12T17:13:00.000Z | 2020-04-06T07:28:47.000Z | test/ex_okex/spot/public_test.exs | acuityinnovations/ex_okex | 52acf16e8d00446ca32607ccb2cd75add0acaceb | [
"MIT"
] | 5 | 2019-04-10T00:41:17.000Z | 2021-12-23T14:49:02.000Z | defmodule ExOkex.Spot.PublicTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias ExOkex.Spot.Public, as: Api
describe "get" do
test "best ticker" do
use_cassette "spot/get_best_ticker" do
assert Api.get_best_ticker("BTC-USDT") ==
{:ok,
... | 37.253012 | 63 | 0.327943 |
91b21093284297038b999c31afcfe9e3b7107b09 | 176 | ex | Elixir | lib/jsonb_macro_example/schemas/vehicle.ex | jsangilve/ecto_jsonb_macro_example | 809ac94c59b4d8ef1beed3170d7b62709754da98 | [
"MIT"
] | 1 | 2020-07-21T09:32:34.000Z | 2020-07-21T09:32:34.000Z | lib/jsonb_macro_example/schemas/vehicle.ex | jsangilve/ecto_jsonb_macro_example | 809ac94c59b4d8ef1beed3170d7b62709754da98 | [
"MIT"
] | null | null | null | lib/jsonb_macro_example/schemas/vehicle.ex | jsangilve/ecto_jsonb_macro_example | 809ac94c59b4d8ef1beed3170d7b62709754da98 | [
"MIT"
] | null | null | null | defmodule JsonbMacroExample.Schemas.Vehicle do
use Ecto.Schema
schema "vehicle" do
field(:brand, :string)
field(:model, :string)
field(:specs, :map)
end
end
| 17.6 | 46 | 0.6875 |
91b249ceeabb0e8efbfce467e195d550400ed32b | 342 | ex | Elixir | lib/crew_web/plugs/set_user.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | lib/crew_web/plugs/set_user.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | 5 | 2020-07-20T01:49:01.000Z | 2021-09-08T00:17:04.000Z | lib/crew_web/plugs/set_user.ex | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | defmodule CrewWeb.Plugs.SetUser do
@moduledoc """
SetUser plug - copies :current_user_id from assigns to session
"""
import Plug.Conn
def init(opts) do
opts
end
def call(conn, _opts) do
case conn.assigns[:current_user] do
nil -> conn
user -> put_session(conn, :current_user_id, user.... | 18 | 64 | 0.666667 |
91b262bef2f2a8ebb3e510022b5283be93121878 | 581 | exs | Elixir | elixir/mix_guide/kv/mix.exs | drichardson/examples | d8b285db4ad1cfd9a92091deab2eb385748f97c8 | [
"Unlicense"
] | 33 | 2015-04-21T20:10:42.000Z | 2021-09-28T05:54:37.000Z | elixir/mix_guide/kv/mix.exs | drichardson/examples | d8b285db4ad1cfd9a92091deab2eb385748f97c8 | [
"Unlicense"
] | 1 | 2020-03-15T18:54:19.000Z | 2020-03-15T18:54:19.000Z | elixir/mix_guide/kv/mix.exs | drichardson/examples | d8b285db4ad1cfd9a92091deab2eb385748f97c8 | [
"Unlicense"
] | 19 | 2015-01-09T13:39:06.000Z | 2021-09-15T05:39:33.000Z | defmodule KV.Mixfile do
use Mix.Project
def project do
[
app: :kv,
version: "0.1.0",
elixir: "~> 1.4.2",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:... | 19.366667 | 88 | 0.554217 |
91b29e82b719bb927b64dd6ef349651b3507ee8e | 2,619 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/search_result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/search_result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/search_result.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... | 46.767857 | 335 | 0.73005 |
91b2b2a53c0c540b87c8e1236da9010b904c5ff4 | 485 | ex | Elixir | lib/taut_web/views/error_view.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | lib/taut_web/views/error_view.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | lib/taut_web/views/error_view.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | defmodule TautWeb.ErrorView do
use TautWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. For ... | 28.529412 | 61 | 0.731959 |
91b2d36a3309daee94543943860c9074b70ef7cb | 959 | ex | Elixir | clients/slides/lib/google_api/slides/v1/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.884615 | 77 | 0.763295 |
91b2d5c0faad478116868158719f97c1bbb314c6 | 2,790 | ex | Elixir | lib/bike_brigade_web.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade_web.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade_web.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigadeWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use BikeBrigadeWeb, :controller
use BikeBrigadeWeb, :view
The definitions below will be executed for every view,
... | 23.057851 | 83 | 0.689247 |
91b3153a37ca2b6f8c9c31d80603d55755902ac3 | 833 | ex | Elixir | lib/teiserver/account/schemas/accolade.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver/account/schemas/accolade.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/account/schemas/accolade.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Account.Accolade do
use CentralWeb, :schema
schema "teiserver_account_accolades" do
belongs_to :recipient, Central.Account.User
belongs_to :giver, Central.Account.User
belongs_to :badge_type, Teiserver.Account.BadgeType
field :inserted_at, :utc_datetime
end
@doc """
Build... | 30.851852 | 76 | 0.697479 |
91b33523df2d0c4669de1cbbfa15262df17ce9c3 | 5,183 | ex | Elixir | lib/typo/font/true_type_font/name.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | lib/typo/font/true_type_font/name.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | lib/typo/font/true_type_font/name.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2022, John Vinters <john.vinters@gmail.com>
#
# 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 appli... | 31.603659 | 95 | 0.624542 |
91b34123417d692935e77e146c388b404b443878 | 114 | ex | Elixir | lib/rockelivery/users/get_all.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery/users/get_all.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery/users/get_all.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule Rockelivery.Users.GetAll do
alias Rockelivery.{Repo, User}
def call, do: {:ok, Repo.all(User)}
end
| 19 | 37 | 0.719298 |
91b34da4211638e6be478d75ae39a233d73b1b08 | 1,198 | exs | Elixir | mix.exs | apdunston/notifier | d90705828377e31a7fb4701b6d94ccb83ccfb6cf | [
"Unlicense"
] | 4 | 2017-06-23T04:02:51.000Z | 2020-05-25T21:47:54.000Z | mix.exs | apdunston/notifier | d90705828377e31a7fb4701b6d94ccb83ccfb6cf | [
"Unlicense"
] | 1 | 2016-09-02T23:30:21.000Z | 2016-09-02T23:30:23.000Z | mix.exs | apdunston/notifier | d90705828377e31a7fb4701b6d94ccb83ccfb6cf | [
"Unlicense"
] | null | null | null | defmodule Notifier.Mixfile do
use Mix.Project
def project do
[app: :notifier,
version: "0.1.0",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description()]
end
# Configuration for th... | 22.185185 | 83 | 0.585142 |
91b37c0b5d2a5c5f1f8e9ba1ac90dc1b697ea51c | 217 | ex | Elixir | lib/hologram/template/encoders/node_list.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/template/encoders/node_list.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/template/encoders/node_list.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | alias Hologram.Template.Encoder
defimpl Encoder, for: List do
def encode(nodes) do
js =
Enum.map(nodes, &Encoder.encode/1)
|> Enum.join(", ")
if js != "", do: "[ #{js} ]", else: "[]"
end
end
| 18.083333 | 44 | 0.557604 |
91b39b44cad34c80f2c78d2e93adb5415a89e842 | 181 | ex | Elixir | lib/plug_session_redis/worker.ex | eole-repos/plug_session_redis | 499cc538a398a314d21c7208de0bf02ca2e3c996 | [
"MIT"
] | 17 | 2015-08-28T21:43:59.000Z | 2020-08-10T15:59:10.000Z | lib/plug_session_redis/worker.ex | eole-repos/plug_session_redis | 499cc538a398a314d21c7208de0bf02ca2e3c996 | [
"MIT"
] | 2 | 2016-11-23T03:15:49.000Z | 2018-01-30T22:22:01.000Z | lib/plug_session_redis/worker.ex | eole-repos/plug_session_redis | 499cc538a398a314d21c7208de0bf02ca2e3c996 | [
"MIT"
] | 11 | 2016-02-28T18:36:11.000Z | 2020-04-22T19:19:00.000Z | defmodule PlugSessionRedis.Worker do
@spec start_link({module, Keyword.t}) :: {:ok, pid}
def start_link({module, params}) do
module.start_link(:undefined, params)
end
end
| 25.857143 | 53 | 0.718232 |
91b3aa42d99226404086be24dfffeaedd08b3c31 | 3,274 | exs | Elixir | lib/elixir/test/elixir/kernel/sigils_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/sigils_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/sigils_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.SigilsTest do
use ExUnit.Case, async: true
test "sigil s" do
assert ~s(foo) == "foo"
assert ~s(f#{:o}o) == "foo"
assert ~s(f\no) == "f\no"
end
test "sigil s with heredoc" do
assert " foo\n\n" == ~s"""
f#{:o}o\n
"""
... | 25.379845 | 73 | 0.496029 |
91b3bcfe4e96698df39ab8d1ac687e224fd91b6d | 7,508 | exs | Elixir | test/dynamo/router/hooks_test.exs | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 415 | 2015-01-04T15:59:47.000Z | 2022-02-02T21:12:46.000Z | test/dynamo/router/hooks_test.exs | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 9 | 2015-02-06T16:09:46.000Z | 2018-08-08T06:33:50.000Z | test/dynamo/router/hooks_test.exs | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 44 | 2015-02-01T15:49:50.000Z | 2021-11-29T09:08:37.000Z | defmodule Dynamo.Router.PrepareHooksTest do
use ExUnit.Case, async: true
import Dynamo.HTTP.Case, only: [process: 3]
defmodule SingleHooks do
use Dynamo.Router
prepare :foo
get "/foo" do
conn.resp_body("OK")
end
defp foo(conn) do
conn.assign(:value, 3)
end
end
test "di... | 19.450777 | 67 | 0.611082 |
91b3c2f45db8727a5aa03b1a9643bcbfb2122b8a | 8,959 | ex | Elixir | lib/mix/tasks/phx.gen.live.ex | udanieli/phoenix | 40b79c8d227eadb2af90f19b26c297a87f3b69aa | [
"MIT"
] | 1 | 2021-09-25T11:49:31.000Z | 2021-09-25T11:49:31.000Z | lib/mix/tasks/phx.gen.live.ex | udanieli/phoenix | 40b79c8d227eadb2af90f19b26c297a87f3b69aa | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.live.ex | udanieli/phoenix | 40b79c8d227eadb2af90f19b26c297a87f3b69aa | [
"MIT"
] | 1 | 2021-06-22T08:06:06.000Z | 2021-06-22T08:06:06.000Z | defmodule Mix.Tasks.Phx.Gen.Live do
@shortdoc "Generates LiveView, templates, and context for a resource"
@moduledoc """
Generates LiveView, templates, and context for a resource.
mix phx.gen.live Accounts User users name:string age:integer
The first argument is the context module. The context is an E... | 39.995536 | 126 | 0.698181 |
91b3dc0027113a0fff72766eefa88ff31b06545b | 3,112 | ex | Elixir | web/controllers/session_controller.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | 1 | 2016-09-13T10:40:53.000Z | 2016-09-13T10:40:53.000Z | web/controllers/session_controller.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | web/controllers/session_controller.ex | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | defmodule Spaces.SessionController do
use Spaces.Web, :controller
alias Spaces.User
require IEx
def index(conn, _params) do
render conn, "index.html"
end
def slackLogin(conn, _params) do
url_params = %{client_id: "35296394051.35346594944", scope: "users:read", redirect_uri: session_url(conn, :new... | 39.392405 | 169 | 0.630784 |
91b3dce86b6158e17b2ceffb15eb54433c9b6567 | 263 | ex | Elixir | lib/liveview_todos.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | null | null | null | lib/liveview_todos.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | 2 | 2021-03-09T14:03:26.000Z | 2021-05-10T06:02:53.000Z | lib/liveview_todos.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | null | null | null | defmodule LiveviewTodos do
@moduledoc """
LiveviewTodos keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.3 | 66 | 0.764259 |
91b43ba408c357957d3dbd9995ea94dcdc85bee5 | 3,822 | exs | Elixir | test/daguex/image_test.exs | secretworry/daguex | 323e9eb6dfe29cb94783937e89244b6de8de7d0c | [
"Apache-2.0"
] | null | null | null | test/daguex/image_test.exs | secretworry/daguex | 323e9eb6dfe29cb94783937e89244b6de8de7d0c | [
"Apache-2.0"
] | null | null | null | test/daguex/image_test.exs | secretworry/daguex | 323e9eb6dfe29cb94783937e89244b6de8de7d0c | [
"Apache-2.0"
] | null | null | null | defmodule Daguex.ImageTest do
use ExUnit.Case
alias Daguex.Image
@default_image %Image{key: "key", width: 100, height: 100, type: "png"}
describe "get_data/3" do
test "should get nil for data not exist" do
image = @default_image
assert nil == Image.get_data(image, ["no_exist"])
assert n... | 36.75 | 125 | 0.615123 |
91b444bb9b39db32edb39173e369de92deb75f2f | 4,145 | exs | Elixir | test/generate/change_du_state_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | test/generate/change_du_state_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | test/generate/change_du_state_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Generator.ChangeDUStateTest do
use ExUnit.Case, async: true
@sample ~s|<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"... | 39.103774 | 289 | 0.631363 |
91b45dc4c96bc66846d3c53baf462834f1989634 | 240 | exs | Elixir | priv/repo/migrations/20170614114518_create_reports.exs | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170614114518_create_reports.exs | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170614114518_create_reports.exs | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | defmodule Forensic.Repo.Migrations.CreateReports do
use Ecto.Migration
def change do
create table(:reports) do
add :uuid, :string
add :value, :string
add :capability, :string
timestamps()
end
end
end
| 17.142857 | 51 | 0.658333 |
91b481eb2aecf954c16c5e4e43d5a72a7ee2e7e4 | 1,152 | exs | Elixir | apps/kv_server/config/config.exs | tegon/kv.ex | 2de981b51f5ca7ef32a67743eb4344460677cbe6 | [
"MIT"
] | null | null | null | apps/kv_server/config/config.exs | tegon/kv.ex | 2de981b51f5ca7ef32a67743eb4344460677cbe6 | [
"MIT"
] | null | null | null | apps/kv_server/config/config.exs | tegon/kv.ex | 2de981b51f5ca7ef32a67743eb4344460677cbe6 | [
"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... | 34.909091 | 73 | 0.751736 |
91b4854c5c67268b212cc960bb44cb7f35a324f6 | 529 | ex | Elixir | lib/ash/error/query/no_read_action.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | lib/ash/error/query/no_read_action.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | lib/ash/error/query/no_read_action.ex | regularfellow/ash | 179495fecb141e0eb8eaf35bbb4d04000eab694b | [
"MIT"
] | null | null | null | defmodule Ash.Error.Query.NoReadAction do
@moduledoc "Used when a resource would be read but has no read action"
use Ash.Error
def_ash_error([:resource, :when], class: :invalid)
defimpl Ash.ErrorKind do
def id(_), do: Ecto.UUID.generate()
def code(_), do: "no_read_action"
def message(error) do
... | 25.190476 | 83 | 0.659735 |
91b4af698da9022dcf54823c5b2a62de20314529 | 517 | exs | Elixir | examples/patch_panel/mix.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | examples/patch_panel/mix.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | examples/patch_panel/mix.exs | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule PatchPanel.MixProject do
use Mix.Project
def project do
[
app: :patch_panel,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ex... | 19.148148 | 59 | 0.582205 |
91b52ae5075235d1f474265bde32edc5b1e03947 | 769 | ex | Elixir | lib/plug_secex/defaults.ex | szTheory/plug_secex | 103d2fa5315a2dc3f9229ca4636edc4863f9e067 | [
"Apache-2.0"
] | 23 | 2016-07-17T02:03:04.000Z | 2021-06-07T13:04:23.000Z | lib/plug_secex/defaults.ex | szTheory/plug_secex | 103d2fa5315a2dc3f9229ca4636edc4863f9e067 | [
"Apache-2.0"
] | 3 | 2018-09-17T05:28:46.000Z | 2020-11-06T01:37:15.000Z | lib/plug_secex/defaults.ex | szTheory/plug_secex | 103d2fa5315a2dc3f9229ca4636edc4863f9e067 | [
"Apache-2.0"
] | 2 | 2019-10-29T18:25:56.000Z | 2020-11-06T01:34:52.000Z | defmodule PlugSecex.Defaults do
@moduledoc """
This module defines default values for various HTTP headers.
"""
@set_defaults [
server: "",
"x-content-type-options": "nosniff",
"x-dns-prefetch-control": "off",
"strict-transport-security": "max-age=31536000",
"x-xss-protection": "1; mode=blo... | 28.481481 | 124 | 0.655397 |
91b5362b6898891f43a907f2060ee403766b9c42 | 11,483 | ex | Elixir | lib/astarte_data_updater_plant/triggers_handler.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 5 | 2018-01-30T15:08:23.000Z | 2019-12-20T15:06:56.000Z | lib/astarte_data_updater_plant/triggers_handler.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 17 | 2018-01-31T15:50:22.000Z | 2019-12-05T17:26:06.000Z | lib/astarte_data_updater_plant/triggers_handler.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 2 | 2018-01-31T15:43:04.000Z | 2019-11-15T12:00:05.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# 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 appl... | 24.908894 | 98 | 0.652965 |
91b545d4c7fd6921911b62e04be15ed92926abd7 | 1,333 | ex | Elixir | apps/omg_child_chain/lib/omg_child_chain/api/transaction.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain/lib/omg_child_chain/api/transaction.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_child_chain/lib/omg_child_chain/api/transaction.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.325 | 92 | 0.730683 |
91b574b8d8d55a38684e8e629c897b8ec96cb006 | 958 | ex | Elixir | installer/auth/lib/auth.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | installer/auth/lib/auth.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | installer/auth/lib/auth.ex | omotenko/phoenix_auth | a6b4a1be4a6aa6d4ca65a2ec5a08cce7b9d744bc | [
"MIT"
] | null | null | null | defmodule Auth do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Auth.Endpoin... | 30.903226 | 71 | 0.705637 |
91b5938d95539618cc4c16db8f7d1e7212e84130 | 247 | exs | Elixir | priv/repo/migrations/20211116215901_create_addresses.exs | herman-rogers/blue_book | 84c1d173c4e953e68f5a8df1dd1afce0ab57d876 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211116215901_create_addresses.exs | herman-rogers/blue_book | 84c1d173c4e953e68f5a8df1dd1afce0ab57d876 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211116215901_create_addresses.exs | herman-rogers/blue_book | 84c1d173c4e953e68f5a8df1dd1afce0ab57d876 | [
"MIT"
] | null | null | null | defmodule BlueBook.Repo.Migrations.CreateAddresses do
use Ecto.Migration
def change do
create table(:addresses) do
add :address, :string
add :owner, :string
add :owner_type, :string
timestamps()
end
end
end
| 17.642857 | 53 | 0.668016 |
91b5eb4e7624d97eee6f64f0f24b800e93881a7f | 485 | ex | Elixir | lib/solana/account.ex | dcrck/solana-elixir | 3ab8531129d303b3951a292ce2813ebcb9ab2cb3 | [
"MIT"
] | 15 | 2021-11-16T23:56:03.000Z | 2022-02-19T08:48:30.000Z | lib/solana/account.ex | dcrck/solana-elixir | 3ab8531129d303b3951a292ce2813ebcb9ab2cb3 | [
"MIT"
] | null | null | null | lib/solana/account.ex | dcrck/solana-elixir | 3ab8531129d303b3951a292ce2813ebcb9ab2cb3 | [
"MIT"
] | 1 | 2021-11-29T06:33:51.000Z | 2021-11-29T06:33:51.000Z | defmodule Solana.Account do
@moduledoc """
Functions, types, and structures related to Solana
[accounts](https://docs.solana.com/developing/programming-model/accounts).
"""
@typedoc """
All the information needed to encode an account in a transaction message.
"""
@type t :: %__MODULE__{
signe... | 22.045455 | 76 | 0.618557 |
91b66e0e615a4af2be7e7712a76f07509654bf71 | 1,132 | exs | Elixir | config/config.exs | Herlitzd/cartograf | 781e1dbcbc99ff70d48c212d115e86e77cdbbb43 | [
"MIT"
] | 2 | 2018-05-12T01:49:06.000Z | 2021-09-06T02:26:34.000Z | config/config.exs | Herlitzd/cartograf | 781e1dbcbc99ff70d48c212d115e86e77cdbbb43 | [
"MIT"
] | null | null | null | config/config.exs | Herlitzd/cartograf | 781e1dbcbc99ff70d48c212d115e86e77cdbbb43 | [
"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.516129 | 73 | 0.758834 |
91b689d78b7b3e0dbeceb69da2625559c87f980d | 9,862 | ex | Elixir | lib/nys_etl/engines/e4/commcare_case_loader.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | lib/nys_etl/engines/e4/commcare_case_loader.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | lib/nys_etl/engines/e4/commcare_case_loader.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Engines.E4.CommcareCaseLoader do
@moduledoc """
Runs in Oban to put data about an IndexCase record into CommCare.
"""
use Oban.Worker, queue: :commcare
require Logger
alias NYSETL.Commcare
alias NYSETL.Commcare.County
alias NYSETL.Engines.E4.{CaseIdentifier, CaseTransferChain, Data, ... | 43.637168 | 133 | 0.711316 |
91b68b16846be94e9214fcfcedf26c79e3a35f47 | 3,205 | ex | Elixir | lib/parking_tweets/garage.ex | paulswartz/parking_tweets | 9f2e0143348a4c4e1a26dc246d02432f7caaed98 | [
"MIT"
] | 1 | 2020-12-17T23:22:03.000Z | 2020-12-17T23:22:03.000Z | lib/parking_tweets/garage.ex | paulswartz/parking_tweets | 9f2e0143348a4c4e1a26dc246d02432f7caaed98 | [
"MIT"
] | 27 | 2021-02-02T22:11:05.000Z | 2022-03-21T17:17:16.000Z | lib/parking_tweets/garage.ex | paulswartz/parking_tweets | 9f2e0143348a4c4e1a26dc246d02432f7caaed98 | [
"MIT"
] | null | null | null | defmodule ParkingTweets.Garage do
@moduledoc """
Struct to represent information about a parking garage
"""
defstruct [:id, :name, :updated_at, :status, capacity: -1, utilization: 0, alternates: []]
def id(%__MODULE__{id: id}), do: id
def status?(%__MODULE__{status: status}) do
is_binary(status)
end... | 28.362832 | 115 | 0.661154 |
91b6b6ae5c60c556f36fc5105444348fe04bc582 | 21,779 | exs | Elixir | test/teiserver/protocols/spring/spring_auth_test.exs | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | test/teiserver/protocols/spring/spring_auth_test.exs | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | test/teiserver/protocols/spring/spring_auth_test.exs | adelq/teiserver | 77140896df6b4e1ec9e680d64c31ffb528158d14 | [
"MIT"
] | null | null | null | defmodule Teiserver.SpringAuthTest do
use Central.ServerCase, async: false
require Logger
alias Teiserver.BitParse
alias Teiserver.User
alias Teiserver.Account.UserCache
alias Teiserver.Client
alias Central.Account
import Central.Helpers.NumberHelper, only: [int_parse: 1]
import Teiserver.TeiserverTe... | 34.735247 | 175 | 0.683181 |
91b6e69c27501c5bc9c004d526e8b065c42430f6 | 1,091 | ex | Elixir | lib/chat_api_web/controllers/reporting_controller.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/reporting_controller.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/reporting_controller.ex | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.ReportingController do
use ChatApiWeb, :controller
require Logger
alias ChatApi.Reporting
action_fallback ChatApiWeb.FallbackController
@spec index(Plug.Conn.t(), map()) :: Plug.Conn.t()
def index(%{assigns: %{current_user: %{account_id: account_id}}} = conn, %{
"from_date" ... | 36.366667 | 97 | 0.725023 |
91b6e993b9b4ca9eb175a1b1faa761946942bcc7 | 48,341 | ex | Elixir | lib/event_store.ex | merchant-ly/eventstore | 0bacb5e5e3712e9e333044fdeb6cea34b5a7aa1f | [
"MIT"
] | 2 | 2021-11-19T22:28:41.000Z | 2021-11-19T22:28:50.000Z | lib/event_store.ex | merchant-ly/eventstore | 0bacb5e5e3712e9e333044fdeb6cea34b5a7aa1f | [
"MIT"
] | null | null | null | lib/event_store.ex | merchant-ly/eventstore | 0bacb5e5e3712e9e333044fdeb6cea34b5a7aa1f | [
"MIT"
] | null | null | null | defmodule EventStore do
@moduledoc """
EventStore allows you to define one or more event store modules to append,
read, and subscribe to streams of events.
It uses PostgreSQL (v9.5 or later) as the underlying storage engine.
## Defining an event store
An event store module is defined in your own applicat... | 37.09977 | 101 | 0.665522 |
91b6eb0cf6482b9a606eef119b8e3020cfae6ade | 4,199 | ex | Elixir | clients/domains/lib/google_api/domains/v1beta1/model/binding.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/domains/lib/google_api/domains/v1beta1/model/binding.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/domains/lib/google_api/domains/v1beta1/model/binding.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 79.226415 | 1,972 | 0.753036 |
91b6f246e66ef8be054ddaaa6f31d2b6785e5c68 | 65 | ex | Elixir | lib/warehouse_web/views/page_view.ex | riebeekn/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | 14 | 2019-02-27T18:49:28.000Z | 2020-12-24T21:39:16.000Z | lib/warehouse_web/views/page_view.ex | ammy-bajwa/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | null | null | null | lib/warehouse_web/views/page_view.ex | ammy-bajwa/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | 5 | 2019-07-16T17:50:36.000Z | 2020-08-12T22:14:41.000Z | defmodule WarehouseWeb.PageView do
use WarehouseWeb, :view
end
| 16.25 | 34 | 0.815385 |
91b706e7225d0ecd2c73d2ae5c5845d1305f9088 | 1,596 | ex | Elixir | 13-phoenix/chirp/lib/chirp_web/endpoint.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 13-phoenix/chirp/lib/chirp_web/endpoint.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 13-phoenix/chirp/lib/chirp_web/endpoint.ex | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule ChirpWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :chirp
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_chirp_key",
... | 29.018182 | 97 | 0.716165 |
91b712bc8e4d64d9c5316e5eb84f2612c9d690a0 | 21,092 | ex | Elixir | lib/extreme.ex | asheehan/extreme | abf3412126b89959f356a118737b2805a5d9f121 | [
"MIT"
] | null | null | null | lib/extreme.ex | asheehan/extreme | abf3412126b89959f356a118737b2805a5d9f121 | [
"MIT"
] | null | null | null | lib/extreme.ex | asheehan/extreme | abf3412126b89959f356a118737b2805a5d9f121 | [
"MIT"
] | null | null | null | defmodule Extreme do
@moduledoc """
Extreme module is main communication point with EventStore using tcp connection. Extreme is implemented using
GenServer and is OTP compatible. If client is disconnected from server we are not trying to reconnect,
instead you should rely on your supervisor. For example:
... | 43.310062 | 180 | 0.698654 |
91b713882d2bdc5d47fc3a3adfd00b70f3518f54 | 1,102 | exs | Elixir | test/upload/adapters/local_test.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | test/upload/adapters/local_test.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | test/upload/adapters/local_test.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | defmodule Upload.Adapters.LocalTest do
use ExUnit.Case, async: true
doctest Upload.Adapters.Local
alias Upload.Adapters.Local, as: Adapter
@fixture Path.expand("../../fixtures/text.txt", __DIR__)
@upload %Upload{path: @fixture, filename: "text.txt", key: "foo/text.txt"}
setup do
{:ok, _} = File.rm_r... | 29.783784 | 85 | 0.673321 |
91b71a4d8ae03a2df21b044385ec7d78a4919cb2 | 132 | ex | Elixir | lib/postgres_types.ex | lamesensei/carpark-sg | 368106f6362e9df515b0e49717e3b5d6d88cdc71 | [
"Apache-2.0"
] | null | null | null | lib/postgres_types.ex | lamesensei/carpark-sg | 368106f6362e9df515b0e49717e3b5d6d88cdc71 | [
"Apache-2.0"
] | 1 | 2021-02-03T07:49:54.000Z | 2021-02-03T07:49:54.000Z | lib/postgres_types.ex | lamesensei/carpark-sg | 368106f6362e9df515b0e49717e3b5d6d88cdc71 | [
"Apache-2.0"
] | null | null | null | Postgrex.Types.define(
CarparkSg.PostgresTypes,
[Geo.PostGIS.Extension] ++ Ecto.Adapters.Postgres.extensions(),
json: Jason
)
| 22 | 65 | 0.75 |
91b74020af9050609193e00aa0f51a728175e656 | 14,289 | ex | Elixir | lib/ex_unit/lib/ex_unit/doc_test.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/doc_test.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/doc_test.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.DocTest do
@moduledoc """
ExUnit.DocTest implements functionality similar to [Python's
doctest](http://docs.python.org/2/library/doctest.html).
In a nutshell, it allows us to generate tests from the code
examples existing in module/function/macro's documentation.
In order to do that, one n... | 32.848276 | 171 | 0.632724 |
91b759bae297f558c5cbe4c64ab7f219ce073e61 | 80 | ex | Elixir | lib/git_alchemy.ex | Teapane/git_alchemy | d1cc7f065969eb9d559eafde0745fd392f6bb2a7 | [
"MIT"
] | null | null | null | lib/git_alchemy.ex | Teapane/git_alchemy | d1cc7f065969eb9d559eafde0745fd392f6bb2a7 | [
"MIT"
] | null | null | null | lib/git_alchemy.ex | Teapane/git_alchemy | d1cc7f065969eb9d559eafde0745fd392f6bb2a7 | [
"MIT"
] | null | null | null | defmodule GitAlchemy do
def main(args) do
IO.puts "Hello world"
end
end
| 13.333333 | 25 | 0.7 |
91b774624dd2a773fddd2958f2775ebda2e96790 | 2,011 | exs | Elixir | mix.exs | JosKar/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | 17 | 2017-07-10T09:01:40.000Z | 2022-03-08T23:47:27.000Z | mix.exs | 7-iris/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | 7 | 2017-07-09T16:22:13.000Z | 2018-06-09T21:34:03.000Z | mix.exs | JosKar/iris_server | 8faa370f506a003ae3c06b23d6c827bd746368f3 | [
"MIT"
] | null | null | null | defmodule Iris.Mixfile do
use Mix.Project
def project do
[app: :iris,
version: "0.0.1",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: ali... | 32.435484 | 122 | 0.597713 |
91b7992f91252c5a015a371115341c70f73dd7b8 | 7,803 | ex | Elixir | lib/zigler/zig.ex | elbow-jason/zigler | 3de4d6fe4def265b689bd21d3e0abad551bd2d50 | [
"MIT"
] | null | null | null | lib/zigler/zig.ex | elbow-jason/zigler | 3de4d6fe4def265b689bd21d3e0abad551bd2d50 | [
"MIT"
] | null | null | null | lib/zigler/zig.ex | elbow-jason/zigler | 3de4d6fe4def265b689bd21d3e0abad551bd2d50 | [
"MIT"
] | null | null | null | defmodule Zigler.Zig do
@moduledoc """
contains all parts of the Zigler library involved in calling the
zig compiler toolchain
"""
alias Zigler.Patches
require Logger
#############################################################################
## API
def compile(compiler, zig_tree) do
# appl... | 29.556818 | 88 | 0.611944 |
91b7ac234c9d05d5fd523168a2f7f16ff448dcce | 557 | ex | Elixir | web/router.ex | wsmoak/simple_phoenix_react | db18ef77b464f9845c80365609c1066add3be68d | [
"MIT"
] | 1 | 2016-09-17T05:08:06.000Z | 2016-09-17T05:08:06.000Z | web/router.ex | wsmoak/simple_phoenix_react | db18ef77b464f9845c80365609c1066add3be68d | [
"MIT"
] | null | null | null | web/router.ex | wsmoak/simple_phoenix_react | db18ef77b464f9845c80365609c1066add3be68d | [
"MIT"
] | null | null | null | defmodule SimplePhoenixReact.Router do
use SimplePhoenixReact.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Sim... | 20.62963 | 57 | 0.698384 |
91b7b7351e4b1b63829eb5112b400a4a45eb7564 | 2,349 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_list_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_list_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_list_response.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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.946429 | 205 | 0.727544 |
91b7f4279dfb49369f9a629bbbdcb5851df1907a | 289 | ex | Elixir | lib/gems_web/live/components/matrix.ex | nbw/gems | eb4e253af230646563f0ddb307c499a0cab0aa2d | [
"MIT"
] | 63 | 2021-12-02T13:20:03.000Z | 2022-03-02T14:32:19.000Z | lib/gems_web/live/components/matrix.ex | jasonwc/gems | aa94ec613cc1f2ef49d0cc34ab8311419b634d4b | [
"MIT"
] | 1 | 2022-01-03T02:21:58.000Z | 2022-01-03T23:44:28.000Z | lib/gems_web/live/components/matrix.ex | jasonwc/gems | aa94ec613cc1f2ef49d0cc34ab8311419b634d4b | [
"MIT"
] | 5 | 2021-12-02T15:17:10.000Z | 2022-02-02T20:18:53.000Z | defmodule GEMSWeb.Components.Matrix do
use GEMSWeb, :live_view
use Phoenix.LiveComponent
def active_column?(current, col) when current == col do
" active"
end
def active_column?(_current, _col), do: ""
def active_cell?(1), do: "active"
def active_cell?(0), do: ""
end
| 20.642857 | 57 | 0.692042 |
91b83eaad5229fb6c3d6c4b19bf806e0aeee6e34 | 882 | ex | Elixir | examples/lib/examples/application.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 37 | 2018-09-20T03:05:26.000Z | 2022-03-11T07:24:54.000Z | examples/lib/examples/application.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 6 | 2018-10-17T15:35:11.000Z | 2018-11-01T21:34:43.000Z | examples/lib/examples/application.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 4 | 2019-12-15T20:39:58.000Z | 2021-08-16T04:08:49.000Z | defmodule Examples.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 29.4 | 67 | 0.722222 |
91b85eec71fb35d010923b31b928a8ccf47e1f17 | 23,649 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_url_maps.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_url_maps.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_url_maps.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.304598 | 434 | 0.624762 |
91b8a2106c9a7eaf367ec5339db2b91aef5724e4 | 221 | exs | Elixir | lib/mix/test/fixtures/deps_status/custom/deps_repo/mix.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/mix/test/fixtures/deps_status/custom/deps_repo/mix.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/mix/test/fixtures/deps_status/custom/deps_repo/mix.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule DepsRepo do
use Mix.Project
def project do
[
app: :deps_repo,
version: "0.1.0",
deps: [
{:git_repo, "0.1.0", git: MixTest.Case.fixture_path("git_repo")}
]
]
end
end | 17 | 72 | 0.547511 |
91b8a534cb6e9c2a78cf239797558b4b77c0b056 | 1,735 | exs | Elixir | src/mailer/mix.exs | alexjoybc/elixir-kafka-phoenix | c3d20415f980455081102f3bd4287647bf2292ba | [
"Apache-2.0"
] | null | null | null | src/mailer/mix.exs | alexjoybc/elixir-kafka-phoenix | c3d20415f980455081102f3bd4287647bf2292ba | [
"Apache-2.0"
] | null | null | null | src/mailer/mix.exs | alexjoybc/elixir-kafka-phoenix | c3d20415f980455081102f3bd4287647bf2292ba | [
"Apache-2.0"
] | null | null | null | defmodule Mailer.MixProject do
use Mix.Project
def project do
[
app: :mailer,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.692308 | 84 | 0.576369 |
91b8c594a2399b111d025a3777a131c2dfcfa139 | 208 | exs | Elixir | test/test_helper.exs | Atlas42/nebulex_ecto | 76e546376011253f7def394e9aa501e5f35c8478 | [
"MIT"
] | 25 | 2017-05-11T14:30:31.000Z | 2020-11-15T23:25:50.000Z | test/test_helper.exs | Atlas42/nebulex_ecto | 76e546376011253f7def394e9aa501e5f35c8478 | [
"MIT"
] | 11 | 2017-08-22T00:07:33.000Z | 2021-02-10T14:27:14.000Z | test/test_helper.exs | Atlas42/nebulex_ecto | 76e546376011253f7def394e9aa501e5f35c8478 | [
"MIT"
] | 6 | 2017-10-16T00:11:02.000Z | 2021-03-05T13:22:15.000Z | # Load required modules
Code.require_file("./support/test_cache.exs", __DIR__)
Code.require_file("./support/test_repo.exs", __DIR__)
Code.require_file("./support/cacheable_repo.exs", __DIR__)
ExUnit.start()
| 29.714286 | 58 | 0.778846 |
91b9025fbf88fa88039d6435ca158e40e8d01793 | 379 | ex | Elixir | lib/lob/us_autocompletion.ex | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | 11 | 2018-02-07T17:59:17.000Z | 2021-11-21T14:11:15.000Z | lib/lob/us_autocompletion.ex | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | 34 | 2018-02-13T19:59:27.000Z | 2022-03-02T19:50:41.000Z | lib/lob/us_autocompletion.ex | itsachen/lob-elixir | b1bacd56fd3a1752cdbda4614354b3120cbc0841 | [
"MIT"
] | 8 | 2019-01-30T00:39:36.000Z | 2022-03-01T15:32:17.000Z | defmodule Lob.USAutocompletion do
@moduledoc """
Module implementing the Lob US Autocompletion API.
"""
use Lob.ResourceBase, endpoint: "us_autocompletions", methods: []
@spec autocomplete(map, map) :: Client.client_response
def autocomplete(data, headers \\ %{}) do
Client.post_request(base_url(), Uti... | 29.153846 | 87 | 0.733509 |
91b92ede5c8911ec38a1bbee34d67ecee4920895 | 6,214 | ex | Elixir | lib/mix/tasks/phx.gen.notifier.ex | ZachLiss/phoenix | 3ca4065e7f0b3e207c7961837fe021b756814e9e | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.notifier.ex | ZachLiss/phoenix | 3ca4065e7f0b3e207c7961837fe021b756814e9e | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.notifier.ex | ZachLiss/phoenix | 3ca4065e7f0b3e207c7961837fe021b756814e9e | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Notifier do
@shortdoc "Generates a notifier that delivers emails by default"
@moduledoc """
Generates a notifier that delivers emails by default.
$ mix phx.gen.notifier Accounts User welcome_user reset_password confirmation_instructions
This task expects a context module nam... | 28.245455 | 142 | 0.674767 |
91b930d3452c4244f3100e7637e621a564620685 | 390 | ex | Elixir | elixir_http_server_starter/lib/HttpServerStarter.App.ex | andrea-prearo/http_server_starter_collection | 229f2221ed941193e5a85486c662ea70b2267151 | [
"MIT"
] | null | null | null | elixir_http_server_starter/lib/HttpServerStarter.App.ex | andrea-prearo/http_server_starter_collection | 229f2221ed941193e5a85486c662ea70b2267151 | [
"MIT"
] | null | null | null | elixir_http_server_starter/lib/HttpServerStarter.App.ex | andrea-prearo/http_server_starter_collection | 229f2221ed941193e5a85486c662ea70b2267151 | [
"MIT"
] | null | null | null | defmodule HttpServerStarter.App do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
port = 4000
children = [
Plug.Adapters.Cowboy.child_spec(:http, HttpServerStarter.Router, [{:port, port}], [port: port])
]
opts = [strategy: :one_for_one, name: HttpServerSt... | 24.375 | 101 | 0.7 |
91b945c4ac2f473af5936394efcf8b9b2a39b6f2 | 5,522 | exs | Elixir | test/materia_career_web/controllers/skill_controller_test.exs | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | null | null | null | test/materia_career_web/controllers/skill_controller_test.exs | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | 23 | 2019-01-16T01:52:22.000Z | 2019-06-20T01:59:55.000Z | test/materia_career_web/controllers/skill_controller_test.exs | karabiner-inc/materia_career | cb378d80a7bbb53b5370771227954d1a850ba28a | [
"Apache-2.0"
] | null | null | null | defmodule MateriaCareerWeb.SkillControllerTest do
use MateriaCareerWeb.ConnCase
alias MateriaCareer.Features
alias MateriaCareer.Features.Skill
@create_attrs %{end_date: "2010-04-17", name: "some name", start_date: "2010-04-17", subject: "some subject"}
@update_attrs %{
end_date: "2011-05-18",
name:... | 29.37234 | 111 | 0.575335 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.