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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1dfc5e1db0abe2eda9fcd6d01adb302d475389fa | 1,003 | ex | Elixir | lib/surface_bulma/form/input_icon_base.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 30 | 2021-02-05T18:50:38.000Z | 2022-03-12T22:42:29.000Z | lib/surface_bulma/form/input_icon_base.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 19 | 2021-01-15T19:14:24.000Z | 2022-02-05T14:57:18.000Z | lib/surface_bulma/form/input_icon_base.ex | justin-m-morgan/surface_bulma | c31faebc818c39d06250574b913096504bd6eeec | [
"MIT"
] | 17 | 2021-02-01T20:57:51.000Z | 2022-03-20T17:06:57.000Z | defmodule SurfaceBulma.Form.InputIconBase do
@moduledoc false
defmacro __using__(side) do
case side do
:left ->
left_icon()
:right ->
right_icon()
_ ->
quote do
unquote(left_icon())
unquote(right_icon())
end
end
end
defp left_icon ... | 24.463415 | 85 | 0.623131 |
1dfc6d3516f3cfa45e63fec384cf3d63c8c05a56 | 2,019 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/metric_rule.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_management/lib/google_api/service_management/v1/model/metric_rule.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/metric_rule.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 ... | 34.810345 | 132 | 0.727093 |
1dfc89257947ed2351e80276f10214e348dbba58 | 1,720 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/set_iam_policy_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/set_iam_policy_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/set_iam_policy_request.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... | 34.4 | 158 | 0.739535 |
1dfcabb62adccf98ab63c7d2e83449c6a6c98f17 | 11,804 | ex | Elixir | lib/earmark_parser/ast/inline.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | lib/earmark_parser/ast/inline.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | lib/earmark_parser/ast/inline.ex | micapam/fountain_parser | ce377bf7a9735d4ccb01c139a4b141c307cdae75 | [
"Apache-2.0"
] | null | null | null | defmodule EarmarkParser.Ast.Inline do
@moduledoc false
alias EarmarkParser.Context
alias EarmarkParser.Helpers.LinkParser
alias EarmarkParser.Helpers.PureLinkHelpers
import EarmarkParser.Ast.Emitter
import EarmarkParser.Ast.Renderer.AstWalker
import EarmarkParser.Helpers
import EarmarkParser.Helpers.... | 32.339726 | 107 | 0.646391 |
1dfcb73c4e9848c1607363c56e393e7a7654c1fc | 101 | ex | Elixir | lib/secret_grinch/mailer.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 3 | 2017-08-03T16:49:18.000Z | 2018-10-03T03:30:26.000Z | lib/secret_grinch/mailer.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 18 | 2017-08-04T12:43:08.000Z | 2017-08-05T14:15:41.000Z | lib/secret_grinch/mailer.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 1 | 2018-10-03T03:30:29.000Z | 2018-10-03T03:30:29.000Z | defmodule SecretGrinch.Mailer do
@moduledoc false
use Bamboo.Mailer, otp_app: :secret_grinch
end
| 20.2 | 44 | 0.80198 |
1dfce02dfb483fa5b205eeb1ca1f17b0f1a803cc | 2,659 | ex | Elixir | lib/canvas/resources/courses.ex | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | lib/canvas/resources/courses.ex | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | lib/canvas/resources/courses.ex | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | defmodule Canvas.Resources.Courses do
@moduledoc """
Provides functions to interact with the
[course endpoints](https://canvas.instructure.com/doc/api/courses).
"""
alias Canvas.{Client, Response}
alias Canvas.Resources.{Account, Course, EnrollmentTerm}
def list_your_courses() do
end
def list_cours... | 21.617886 | 95 | 0.682964 |
1dfd01bb76ac77811b351c4d61637c484e625edc | 208 | exs | Elixir | test/erlef/community/affiliate_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | test/erlef/community/affiliate_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | test/erlef/community/affiliate_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule Erlef.Community.AffiliatesTest do
use ExUnit.Case, async: true
describe "all/0" do
affiliates = Erlef.Community.Affiliates.all_affiliates()
assert Enum.count(affiliates) == 3
end
end
| 23.111111 | 60 | 0.745192 |
1dfd10ceb46bc67b60e85c1648f66829244d6358 | 2,463 | exs | Elixir | lib/logger/test/logger/error_handler_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/error_handler_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger/error_handler_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | defmodule Logger.ErrorHandlerTest do
use Logger.Case
test "survives after crashes" do
assert error_log(:info_msg, "~p~n", []) == ""
assert capture_log(fn ->
wait_for_handler(:error_logger, Logger.ErrorHandler)
end) =~ "[error] GenEvent handler Logger.ErrorHandler installed at :error_logger\n" <>
... | 36.761194 | 90 | 0.656922 |
1dfd11e91e6856f6877d550fa5be1cb40e75110f | 2,219 | ex | Elixir | lib/wobserver/system/info.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 984 | 2017-02-06T17:13:48.000Z | 2022-03-18T22:46:55.000Z | lib/wobserver/system/info.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 52 | 2017-02-13T16:12:10.000Z | 2021-04-08T22:31:28.000Z | lib/wobserver/system/info.ex | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 74 | 2017-02-13T15:23:49.000Z | 2021-07-30T07:43:27.000Z | defmodule Wobserver.System.Info do
@moduledoc ~S"""
Handles general System info like architecture and cpu.
"""
alias Wobserver.System.Info
@typedoc ~S"""
Architecture information.
"""
@type t :: %__MODULE__{
otp_release: String.t,
elixir_version: String.t,
erts_version: String.t,
syste... | 26.416667 | 80 | 0.678684 |
1dfd23f2d083acee7a2191ac315e558291eaa0ad | 93 | exs | Elixir | .iex.exs | dawvee/event_serializer | bba15fc297ab7d9744a2ae26c97248513a238f5f | [
"MIT"
] | null | null | null | .iex.exs | dawvee/event_serializer | bba15fc297ab7d9744a2ae26c97248513a238f5f | [
"MIT"
] | 5 | 2018-10-16T17:21:13.000Z | 2019-01-21T15:16:41.000Z | .iex.exs | dawvee/event_serializer | bba15fc297ab7d9744a2ae26c97248513a238f5f | [
"MIT"
] | 2 | 2018-10-12T11:39:56.000Z | 2018-10-16T17:06:35.000Z | alias EventSerializer.{SchemaRegistryCache, SchemaRegistryAdapter, Config, Encoder, Decoder}
| 46.5 | 92 | 0.860215 |
1dfd26b2e96a5cecba31b1416602949d0ea8b33c | 1,891 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/org_units.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/org_units.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/org_units.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.679245 | 168 | 0.71761 |
1dfd3856e8fb62feeb4180b033cee6f50f4d0f0d | 12,008 | ex | Elixir | lib/table_rex/renderer/text.ex | xXxrobertoxXx/table_rex | 3584bcdc5a727320a6f4c8e5fd31c6e546bdec85 | [
"MIT"
] | null | null | null | lib/table_rex/renderer/text.ex | xXxrobertoxXx/table_rex | 3584bcdc5a727320a6f4c8e5fd31c6e546bdec85 | [
"MIT"
] | 1 | 2019-08-01T21:31:55.000Z | 2019-08-01T21:31:55.000Z | lib/table_rex/renderer/text.ex | xXxrobertoxXx/table_rex | 3584bcdc5a727320a6f4c8e5fd31c6e546bdec85 | [
"MIT"
] | 1 | 2021-08-25T14:25:52.000Z | 2021-08-25T14:25:52.000Z | defmodule TableRex.Renderer.Text do
@moduledoc """
Renderer module which handles outputting ASCII-style tables for display.
"""
alias TableRex.Cell
alias TableRex.Table
alias TableRex.Renderer.Text.Meta
@behaviour TableRex.Renderer
@doc """
Provides a level of sane defaults for the Text rendering mo... | 31.028424 | 98 | 0.605846 |
1dfd458b61cde6166df27a08ca45518bb95e0fb7 | 2,805 | exs | Elixir | apps/feedex_core/priv/repo/migrations/20190727012439_create_all.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_core/priv/repo/migrations/20190727012439_create_all.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_core/priv/repo/migrations/20190727012439_create_all.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FeedexCore.Repo.Migrations.CreateAll do
use Ecto.Migration
def change do
# News.Feed
create table(:feeds) do
add(:url, :string)
add(:sync_count, :integer, default: 0)
timestamps(type: :utc_datetime)
end
# News.Post
create table(:posts) do
add(:feed_id,... | 30.824176 | 83 | 0.63779 |
1dfd66969ad7c786d70e9e1bf87e69eaca45b42a | 5,153 | exs | Elixir | priv/repo/migrations/20210908194951_create_inboxes.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | priv/repo/migrations/20210908194951_create_inboxes.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | priv/repo/migrations/20210908194951_create_inboxes.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Repo.Migrations.CreateInboxes do
use Ecto.Migration
import Ecto.Query, warn: false
require Logger
alias ChatApi.{Inboxes, Repo}
alias ChatApi.Accounts.Account
alias ChatApi.Conversations.Conversation
alias ChatApi.ForwardingAddresses.ForwardingAddress
alias ChatApi.Google.GoogleAuthor... | 28.627778 | 124 | 0.658451 |
1dfd837f86bbd34b3d3aa3fb2d00c47580906c5a | 2,013 | exs | Elixir | test/fixtures/views.exs | Gazler/phoenix_view | 607bed7986daaf43f2a6de3ece52e378e0f57d47 | [
"MIT"
] | null | null | null | test/fixtures/views.exs | Gazler/phoenix_view | 607bed7986daaf43f2a6de3ece52e378e0f57d47 | [
"MIT"
] | null | null | null | test/fixtures/views.exs | Gazler/phoenix_view | 607bed7986daaf43f2a6de3ece52e378e0f57d47 | [
"MIT"
] | null | null | null | defmodule MyApp.View do
use Phoenix.View, root: "test/fixtures/templates"
def escaped_title(title) do
{:safe, Plug.HTML.html_escape(title)}
end
end
defmodule MyApp.LayoutView do
use Phoenix.View, root: "test/fixtures/templates"
import Phoenix.HTML
def render("root.html", assigns) do
~E"""
ROO... | 21.414894 | 76 | 0.671634 |
1dfd96d50c905d4e280fea04f66e9eb067e9c175 | 1,880 | exs | Elixir | mix.exs | ottolin/file_system | d018570ba87ff4629900b8f5a96679bf4fb39687 | [
"WTFPL"
] | null | null | null | mix.exs | ottolin/file_system | d018570ba87ff4629900b8f5a96679bf4fb39687 | [
"WTFPL"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | mix.exs | ottolin/file_system | d018570ba87ff4629900b8f5a96679bf4fb39687 | [
"WTFPL"
] | null | null | null | defmodule FileSystem.Mixfile do
use Mix.Project
def project do
[ app: :file_system,
version: "0.2.7",
elixir: "~> 1.3",
deps: deps(),
description: "A file system change watcher wrapper based on [fs](https://github.com/synrc/fs)",
source_url: "https://github.com/falood/file_system"... | 24.736842 | 127 | 0.569681 |
1dfd9bb10a6df27f715e184ee3a66231a55d1f81 | 4,674 | ex | Elixir | lib/siwapp_web/live/invoices_live/customer_input_component.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp_web/live/invoices_live/customer_input_component.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp_web/live/invoices_live/customer_input_component.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | defmodule SiwappWeb.InvoicesLive.CustomerInputComponent do
@moduledoc false
use SiwappWeb, :live_component
alias Siwapp.Customers
@impl Phoenix.LiveComponent
def mount(socket) do
{:ok, assign(socket, status: :is_active)}
end
@impl Phoenix.LiveComponent
def update(assigns, socket) do
current_n... | 29.031056 | 98 | 0.583226 |
1dfd9c9d88dc00de2a0a9c3995cd7c7550a69042 | 609 | exs | Elixir | config/prod.secret.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T18:20:22.000Z | 2018-10-10T18:20:22.000Z | config/prod.secret.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 23 | 2018-06-07T15:13:15.000Z | 2019-07-30T09:06:03.000Z | config/prod.secret.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# In this file, we keep production configuration that
# you'll likely want to automate and keep away from
# your version control system.
#
# You should document the content of this
# file or create a script for recreating it, since it's
# kept out of version control and might be hard to recover
# or rec... | 33.833333 | 87 | 0.773399 |
1dfdb403a748becf6fa9bf224b9d1f07ac4810e7 | 1,254 | exs | Elixir | test/roger/partition_test.exs | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 17 | 2017-01-24T19:00:53.000Z | 2021-08-23T15:14:42.000Z | test/roger/partition_test.exs | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 8 | 2017-04-25T13:22:48.000Z | 2021-03-18T11:58:15.000Z | test/roger/partition_test.exs | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 3 | 2018-01-23T21:51:47.000Z | 2019-09-11T07:23:57.000Z | defmodule Roger.PartitionTest do
use ExUnit.Case
@app "test#{:erlang.monotonic_time()}"
alias Roger.{NodeInfo, Partition, PartitionSupervisor}
test "start and stop partition" do
{:ok, _pid} = Partition.start(@app, default: 10)
assert has_test_app(NodeInfo.running_partitions())
:ok = Partition.s... | 23.660377 | 60 | 0.677033 |
1dfdc23197f71d30587475d79dd45e3e75628f33 | 2,228 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_list_recommendations_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_list_recommendations_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_list_recommendations_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.8125 | 197 | 0.747307 |
1dfdf20bdf5825f30ccceaeec1f5160f7814e7df | 1,604 | ex | Elixir | test/support/data_case.ex | dognotdog/nerves_captive_portal | fcbbf1aba778051e5d9da9a129de8f72b5ac1a2c | [
"MIT"
] | 1 | 2021-11-13T13:39:27.000Z | 2021-11-13T13:39:27.000Z | test/support/data_case.ex | dognotdog/nerves_captive_portal | fcbbf1aba778051e5d9da9a129de8f72b5ac1a2c | [
"MIT"
] | null | null | null | test/support/data_case.ex | dognotdog/nerves_captive_portal | fcbbf1aba778051e5d9da9a129de8f72b5ac1a2c | [
"MIT"
] | 1 | 2021-11-13T13:39:31.000Z | 2021-11-13T13:39:31.000Z | defmodule NervesCaptivePortal.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 chang... | 28.642857 | 81 | 0.702618 |
1dfe1f7d5903d3a63ee959d1e454e75d7465b49c | 387 | ex | Elixir | web/controllers/plugs/require_auth.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | web/controllers/plugs/require_auth.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | web/controllers/plugs/require_auth.ex | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | defmodule Tucano.Plugs.RequireAuth do
import Plug.Conn
import Phoenix.Controller
alias Tucano.Router.Helpers
def init(_params) do
end
def call(conn, _params) do
if conn.assigns[:funcionario] do
conn
else
conn
|> put_flash(:error, "Você presica estar logado!")
|> redirect(to... | 19.35 | 56 | 0.658915 |
1dfe239b82f8c2aef4a6893952dc7bff8a4a3ba7 | 8,501 | ex | Elixir | clients/poly/lib/google_api/poly/v1/api/users.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/api/users.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/api/users.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 54.845161 | 274 | 0.686037 |
1dfe3b9bd9cfe3e651c12f0a1c42b0927125f454 | 527 | ex | Elixir | lib/types/blob.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | 22 | 2021-03-07T17:00:42.000Z | 2022-03-21T07:16:11.000Z | lib/types/blob.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | null | null | null | lib/types/blob.ex | imeraj/elixir_git | 27792b6aa9f8b14c946543cd81b253977d8686f8 | [
"MIT"
] | 2 | 2021-03-10T21:16:51.000Z | 2021-05-06T10:49:13.000Z | defmodule Egit.Types.BLOB do
@moduledoc """
An Elixir implementation of Git version control system
"""
defstruct data: nil, oid: nil, content: nil
def type(_blob) do
"blob"
end
def to_s(blob) do
blob.data
end
def build(data) do
object = %Egit.Types.BLOB{data: data}
string = to_s(ob... | 21.958333 | 93 | 0.645161 |
1dfe424d57e115d529234479bb165e6c686a9c84 | 940 | exs | Elixir | mix.exs | yasuhiro-okada-aktsk/sample_elixir_ecto_select | 6a927e5d7f591b247920934216f226ccb0c53e6e | [
"MIT"
] | null | null | null | mix.exs | yasuhiro-okada-aktsk/sample_elixir_ecto_select | 6a927e5d7f591b247920934216f226ccb0c53e6e | [
"MIT"
] | null | null | null | mix.exs | yasuhiro-okada-aktsk/sample_elixir_ecto_select | 6a927e5d7f591b247920934216f226ccb0c53e6e | [
"MIT"
] | null | null | null | defmodule SampleElixirEctoSelect.Mixfile do
use Mix.Project
def project do
[app: :sample_elixir_ecto_select,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Typ... | 20.888889 | 77 | 0.578723 |
1dfe44897099db22b3e78b65fb4059d73cfd0793 | 649 | ex | Elixir | lib/elsh/host.ex | turboladen/elsh | 1f96884c2900a8512d0cf91f714647ad85da2927 | [
"MIT"
] | null | null | null | lib/elsh/host.ex | turboladen/elsh | 1f96884c2900a8512d0cf91f714647ad85da2927 | [
"MIT"
] | null | null | null | lib/elsh/host.ex | turboladen/elsh | 1f96884c2900a8512d0cf91f714647ad85da2927 | [
"MIT"
] | null | null | null | defmodule Elsh.Host do
defstruct label: 'localhost', operating_system: nil
def get_operating_system(conn) do
case Elsh.Connection.run(conn, 'uname -a') do
{:ok, result, _status} ->
String.strip(result)
IO.puts "result: #{result}"
new_host = %Elsh.Host{} |> Map.merge(conn.host)
... | 24.037037 | 71 | 0.596302 |
1dfe4d008e96a5fa008b8ddecdcfa7eaa07f2bdd | 1,596 | exs | Elixir | config/prod.exs | Neener54/flaming-archer | 5e8262059f44da84b517717af30cfbd2854182fe | [
"MIT"
] | null | null | null | config/prod.exs | Neener54/flaming-archer | 5e8262059f44da84b517717af30cfbd2854182fe | [
"MIT"
] | null | null | null | config/prod.exs | Neener54/flaming-archer | 5e8262059f44da84b517717af30cfbd2854182fe | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 30.692308 | 66 | 0.733709 |
1dfe4d6565f3c7279c15f08c98c9f1387d4ed01c | 1,469 | ex | Elixir | lib/parsers.ex | mattvonrocketstein/rapidmind | 5d7873d14a2595c4285c32d45f647e92aeff7175 | [
"MIT"
] | 4 | 2016-09-08T08:01:24.000Z | 2016-10-04T23:39:52.000Z | lib/parsers.ex | mattvonrocketstein/rapidmind | 5d7873d14a2595c4285c32d45f647e92aeff7175 | [
"MIT"
] | null | null | null | lib/parsers.ex | mattvonrocketstein/rapidmind | 5d7873d14a2595c4285c32d45f647e92aeff7175 | [
"MIT"
] | null | null | null | defmodule WikiMediaDumpParser do
@moduledoc """
Concrete but generic, this WikiMediaDumpParser uses the abstract
WikiDumpParser to do most of the work. XML parsing stuff here is
useful in general (read: not limited to wikivoyage parsing)
"""
use WikiDumpParser
def page_callback(state) do
WikiPage.cre... | 29.979592 | 74 | 0.671205 |
1dfe5ea876538a090f6b14f3ac4850d0e2858e79 | 2,291 | ex | Elixir | test/support/graphql_case.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 2 | 2020-06-25T11:51:46.000Z | 2020-09-30T14:00:40.000Z | test/support/graphql_case.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | null | null | null | test/support/graphql_case.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 1 | 2020-01-29T08:43:07.000Z | 2020-01-29T08:43:07.000Z | defmodule ExDiet.GraphQLCase do
@moduledoc false
defmacro __using__(_) do
quote do
import Plug.Conn
import Phoenix.ConnTest
@endpoint ExDietWeb.Endpoint
@spec graphql_send(Plug.Conn.t(), String.t(), map()) :: Plug.Conn.t()
def graphql_send(conn, query, variables \\ %{}) do
... | 34.712121 | 120 | 0.614579 |
1dfe61999934221642b5b755c5f8b65609fe7ba9 | 2,493 | exs | Elixir | 09-ping.exs | aditbiswas1/30-days-of-elixir | 1d5b7c094b477e04215b5ecef84237babaaeaade | [
"MIT"
] | null | null | null | 09-ping.exs | aditbiswas1/30-days-of-elixir | 1d5b7c094b477e04215b5ecef84237babaaeaade | [
"MIT"
] | null | null | null | 09-ping.exs | aditbiswas1/30-days-of-elixir | 1d5b7c094b477e04215b5ecef84237babaaeaade | [
"MIT"
] | null | null | null | # NOTE: I just recently tried running this on my Mac OS machine.
# Unfortunately, there seems to be a problem spawning 254 `ping` commands. I'm not sure what to do.
# If you want to see this script run on Mac, change line 54 to 1..100 so you can see something happen. :-/
defmodule Ping do
@moduledoc """
Ping a cla... | 26.806452 | 106 | 0.614521 |
1dfe61ca54d5b0c641d41f2d30be1b481abacb78 | 1,526 | ex | Elixir | lib/ex_google/timezone/api.ex | techgaun/ex_google | df740781675613ba4d0ccbcf261663947fb92e5a | [
"Apache-2.0"
] | 9 | 2016-10-03T19:30:40.000Z | 2018-01-05T06:25:33.000Z | lib/ex_google/timezone/api.ex | techgaun/ex_google | df740781675613ba4d0ccbcf261663947fb92e5a | [
"Apache-2.0"
] | 3 | 2016-12-07T18:37:28.000Z | 2017-10-28T22:13:38.000Z | lib/ex_google/timezone/api.ex | techgaun/ex_google | df740781675613ba4d0ccbcf261663947fb92e5a | [
"Apache-2.0"
] | 8 | 2017-03-22T15:01:28.000Z | 2020-10-07T18:35:56.000Z | defmodule ExGoogle.Timezone.Api do
@moduledoc """
API wrapper for google timezone
"""
alias ExGoogle.Parser
import ExGoogle.Utils
@base_url "https://maps.googleapis.com/maps/api/timezone"
@doc """
Use google timezone api to find the timezone of the lat/long submitted
Required parameters:
- locat... | 31.142857 | 136 | 0.695937 |
1dfe668a341dee3404c6222941783ae38ab77053 | 1,803 | exs | Elixir | test/gateway/api_proxy/serializer_test.exs | mmacai/reactive-interaction-gateway | edb9262c65b10a8a5dc21ebf326cf73638e97d36 | [
"Apache-2.0"
] | 1 | 2019-11-06T13:35:35.000Z | 2019-11-06T13:35:35.000Z | test/gateway/api_proxy/serializer_test.exs | mmacai/reactive-interaction-gateway | edb9262c65b10a8a5dc21ebf326cf73638e97d36 | [
"Apache-2.0"
] | null | null | null | test/gateway/api_proxy/serializer_test.exs | mmacai/reactive-interaction-gateway | edb9262c65b10a8a5dc21ebf326cf73638e97d36 | [
"Apache-2.0"
] | null | null | null | defmodule Gateway.ApiProxy.SerializerTest do
@moduledoc false
use ExUnit.Case, async: true
use GatewayWeb.ConnCase
alias Gateway.ApiProxy.Serializer
test "encode_error_message should encode to JSON format" do
assert Serializer.encode_error_message("OK") =~ "{\"message\":\"OK\"}"
end
test "build_url... | 36.795918 | 106 | 0.691625 |
1dfe6c8bce4cd70bbfc269c4c9ff28a7ea5e74b1 | 7,616 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_annotate_image_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_annotate_image_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_annotate_image_response.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... | 49.777778 | 219 | 0.750919 |
1dfe73ae0c1ddf9628cb3b5cc46783e4d040b3cf | 637 | exs | Elixir | test/lib/code_corps/emails/forgot_password_email_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/emails/forgot_password_email_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/emails/forgot_password_email_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Emails.ForgotPasswordEmailTest do
use CodeCorps.ModelCase
use Bamboo.Test
alias CodeCorps.{AuthToken, Emails.ForgotPasswordEmail, WebClient}
test "forgot password email works" do
user = insert(:user)
{ :ok, %AuthToken{ value: token } } = AuthToken.changeset(%AuthToken{}, user) |> R... | 35.388889 | 96 | 0.714286 |
1dfe75ec045c5b056d1be344b14628022e82b54e | 235 | ex | Elixir | phoenixphun/newphx/lib/newphx_web/controllers/page_controller.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | phoenixphun/newphx/lib/newphx_web/controllers/page_controller.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | phoenixphun/newphx/lib/newphx_web/controllers/page_controller.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | defmodule NewphxWeb.PageController do
use NewphxWeb.Web, :controller
def index(conn, %{"id" -> id }) do
event = NewphxWeb.EventQueries.get_by_id(id)
|> IO.inspect()
render conn, "details.html", event: event
end
end
| 21.363636 | 48 | 0.680851 |
1dfea917ab158932de242e4b790d367496419676 | 2,602 | exs | Elixir | test/grizzly/command_class/node_provisioning/get_test.exs | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/node_provisioning/get_test.exs | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/node_provisioning/get_test.exs | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.NodeProvisioning.GetTest do
use ExUnit.Case, async: true
alias Grizzly.Packet
alias Grizzly.CommandClass.NodeProvisioning.Get
describe "implements the Grizzly.Command behaviour" do
test "initializes command" do
assert {:ok, %Get{}} = Get.init(seq_number: 0x09)
end
... | 31.731707 | 96 | 0.637202 |
1dfee04505c60aa9938c75b3147b356f14cd094f | 1,203 | ex | Elixir | lib/kaufmann_ex/transcoder/seven_avro/schema_registry.ex | sevenmind/KaufmannEx | 44225125946921850316c272db53175bb1658fb7 | [
"MIT"
] | 84 | 2018-03-20T08:19:10.000Z | 2022-01-30T07:40:56.000Z | lib/kaufmann_ex/transcoder/seven_avro/schema_registry.ex | sevenmind/KaufmannEx | 44225125946921850316c272db53175bb1658fb7 | [
"MIT"
] | 23 | 2018-03-29T15:15:56.000Z | 2019-12-04T14:53:57.000Z | lib/kaufmann_ex/transcoder/seven_avro/schema_registry.ex | sevenmind/KaufmannEx | 44225125946921850316c272db53175bb1658fb7 | [
"MIT"
] | 8 | 2018-07-03T18:18:27.000Z | 2022-03-08T14:04:09.000Z | defmodule KaufmannEx.Transcoder.SevenAvro.Schema.Registry do
@moduledoc """
Interact with a remote Confluent Schema Registry. Wraps `Schemex`
"""
use Memoize
@doc """
Loads a parsed scheam from a remote schema registry
"""
defmemo parsed_schema(key) do
with {:ok, %{"schema" => raw_schema}} <- lat... | 20.741379 | 69 | 0.674979 |
1dff3910ebf9e72fe1fd906d72c12eac2460fc26 | 8,211 | ex | Elixir | lib/aws/generated/fis.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/fis.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/fis.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Fis do
@moduledoc """
AWS Fault Injection Simulator is a managed service that enables you to perform
fault injection experiments on your AWS workloads.
For more information, see the [AWS ... | 20.89313 | 126 | 0.586896 |
1dff50139459b212a04787e2db7d694365b75a12 | 1,665 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/custom_data_source_child_link.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics/lib/google_api/analytics/v3/model/custom_data_source_child_link.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/custom_data_source_child_link.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.3 | 173 | 0.727327 |
1dff73e3f57c96882ab9d1ab6c7a1efc4cba8f58 | 1,590 | ex | Elixir | lib/markdown_elixir/paser/setext_heading.ex | mazz-seven/markdown_elixir | 0b78ffa6c69ca67d54befedd4927bb4ba947235e | [
"MIT"
] | 1 | 2020-04-13T09:39:55.000Z | 2020-04-13T09:39:55.000Z | lib/markdown_elixir/paser/setext_heading.ex | mazz-seven/markdown_elixir | 0b78ffa6c69ca67d54befedd4927bb4ba947235e | [
"MIT"
] | null | null | null | lib/markdown_elixir/paser/setext_heading.ex | mazz-seven/markdown_elixir | 0b78ffa6c69ca67d54befedd4927bb4ba947235e | [
"MIT"
] | null | null | null | defmodule MarkdownElixir.Parser.SetextHeading do
import NimbleParsec
@doc """
Parses Setext Heading
"""
def parse(content) do
case setext_heading(content, context: [macro: nil]) do
{:ok, tree, "", %{macro: nil}, _, _} ->
{:ok, tree}
{:ok, message, _rest, _context, {line, _}, _byte_of... | 21.2 | 98 | 0.537107 |
1dffbceb93321ecdda3cffa242e6e38091140025 | 269 | ex | Elixir | lib/plotly_ex/table.ex | BradLyman/plotly_ex | 6c776546cb2c2613ec62ddc948a303732b64a373 | [
"MIT"
] | null | null | null | lib/plotly_ex/table.ex | BradLyman/plotly_ex | 6c776546cb2c2613ec62ddc948a303732b64a373 | [
"MIT"
] | null | null | null | lib/plotly_ex/table.ex | BradLyman/plotly_ex | 6c776546cb2c2613ec62ddc948a303732b64a373 | [
"MIT"
] | null | null | null | defmodule PlotlyEx.Table do
@moduledoc """
An agent which just exists to keep an ETS table of plot data alive.
"""
use Agent
def start_link do
Agent.start_link(fn ->
:ets.new(Plots, [:named_table, :public])
end,
[]
)
end
end
| 16.8125 | 69 | 0.605948 |
1dffcd1bb6e85414f9699e77db52816540a5db32 | 896 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1beta1/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/data_fusion/lib/google_api/data_fusion/v1beta1/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/data_fusion/lib/google_api/data_fusion/v1beta1/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.185185 | 74 | 0.762277 |
1dffdf29fe667977b8424d180bc5bedb3d02ad91 | 17 | ex | Elixir | testData/org/elixir_lang/parser_definition/literal_words_line_parsing_test_case/Chevrons.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/literal_words_line_parsing_test_case/Chevrons.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/literal_words_line_parsing_test_case/Chevrons.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~W<{}[]<\>"/()|'> | 17 | 17 | 0.058824 |
1dffe6a46cfc1a75693d269f10da5b1edda87096 | 4,030 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/api/transaction.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/lib/omg_watcher/api/transaction.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/api/transaction.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31 | 108 | 0.690819 |
1dffef328156c40c9b749fc1d801b1554b81519f | 1,771 | ex | Elixir | lib/yum/cuisine.ex | ZURASTA/yum | 132cb79ab328d2e4063d581f79fde0ff4243eb02 | [
"BSD-2-Clause"
] | null | null | null | lib/yum/cuisine.ex | ZURASTA/yum | 132cb79ab328d2e4063d581f79fde0ff4243eb02 | [
"BSD-2-Clause"
] | 4 | 2017-08-02T08:38:18.000Z | 2017-12-23T12:21:02.000Z | lib/yum/cuisine.ex | ZURASTA/yum | 132cb79ab328d2e4063d581f79fde0ff4243eb02 | [
"BSD-2-Clause"
] | 3 | 2017-07-25T10:17:28.000Z | 2017-10-04T05:46:01.000Z | defmodule Yum.Cuisine do
@moduledoc """
A struct that contains all the data about a cuisine.
"""
defstruct [
ref: nil,
type: :other,
translation: %{}
]
@type kind :: :continent | :subregion | :country | :province | :culture | :dish | :other
@type t :: %Yum.Cuisine... | 39.355556 | 96 | 0.573123 |
1dfff76a3d0b8f2105953dc94ef02e943b578908 | 1,514 | ex | Elixir | clients/content/lib/google_api/content/v2/model/liasettings_set_pos_data_provider_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/liasettings_set_pos_data_provider_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/liasettings_set_pos_data_provider_response.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... | 32.212766 | 168 | 0.752972 |
38003579e7752012ff88257a2695567c9870b8b4 | 529 | exs | Elixir | server/config/test.exs | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | null | null | null | server/config/test.exs | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | 3 | 2016-04-18T18:09:21.000Z | 2016-04-25T07:29:59.000Z | server/config/test.exs | MikaAK/trello-burndown | b78d97fa03fcdd60c1c9652b65d272936f648c6f | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :trello_burndown, TrelloBurndown.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :trello_... | 26.45 | 56 | 0.752363 |
38003802332dbbf2fe1b9c6bea8942cd55d127b9 | 826 | exs | Elixir | test/ua_inspector/parser/client_test.exs | kianmeng/ua_inspector | 5d272fa54b18cc1c1d12c7244d70c8fd961ed9b3 | [
"Apache-2.0"
] | 44 | 2019-03-17T10:44:04.000Z | 2022-01-30T10:09:28.000Z | test/ua_inspector/parser/client_test.exs | kianmeng/ua_inspector | 5d272fa54b18cc1c1d12c7244d70c8fd961ed9b3 | [
"Apache-2.0"
] | 12 | 2019-06-06T15:26:26.000Z | 2022-03-09T17:21:21.000Z | test/ua_inspector/parser/client_test.exs | kianmeng/ua_inspector | 5d272fa54b18cc1c1d12c7244d70c8fd961ed9b3 | [
"Apache-2.0"
] | 8 | 2020-04-21T07:49:37.000Z | 2021-12-07T00:18:33.000Z | defmodule UAInspector.Parser.ClientTest do
use ExUnit.Case, async: true
alias UAInspector.Result
test "#1" do
agent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; Xbox)"
parsed = UAInspector.parse(agent)
result = %Result.Client{
engine: "Trident",
engine_version: "5.... | 21.736842 | 102 | 0.610169 |
38003dbcb6233b485c873696cf38b3ba0fa7acdb | 1,401 | ex | Elixir | test/support/data_case.ex | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | 311 | 2019-04-21T22:15:08.000Z | 2022-01-23T14:07:03.000Z | test/support/data_case.ex | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | 9 | 2020-09-07T09:38:58.000Z | 2022-02-26T18:07:44.000Z | test/support/data_case.ex | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | 49 | 2019-04-22T01:29:50.000Z | 2022-03-23T04:34:35.000Z | defmodule Socializer.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, every t... | 25.944444 | 77 | 0.683797 |
3800462ac241efc4476a20cb408c756704b06cd3 | 1,814 | ex | Elixir | lib/kino/js/live/context.ex | akash-akya/kino | 737d293f16c06acaf1f9fb15d2475ab1e53b1f82 | [
"Apache-2.0"
] | null | null | null | lib/kino/js/live/context.ex | akash-akya/kino | 737d293f16c06acaf1f9fb15d2475ab1e53b1f82 | [
"Apache-2.0"
] | null | null | null | lib/kino/js/live/context.ex | akash-akya/kino | 737d293f16c06acaf1f9fb15d2475ab1e53b1f82 | [
"Apache-2.0"
] | null | null | null | defmodule Kino.JS.Live.Context do
@moduledoc """
State available in `Kino.JS.Live` server callbacks.
## Properties
* `:assigns` - custom server state kept across callback calls
* `:origin` - an opaque identifier of the client that triggered
the given action. It is set in `c:Kino.JS.Live.handle_co... | 25.914286 | 90 | 0.633958 |
380063562221af44ef82669e7786a8384357eeb8 | 1,521 | exs | Elixir | apps/buzzcms/priv/repo/migrations/20200212052614_initialize.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms/priv/repo/migrations/20200212052614_initialize.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms/priv/repo/migrations/20200212052614_initialize.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule Buzzcms.Repo.Migrations.Initialize do
use Buzzcms.Migration
def change do
create_extension([:ltree, :"uuid-ossp"])
create_function__update_modified_at()
create_function__get_default_enum()
# Auth Provider
create table(:auth_provider, primary_key: false) do
add :value, :text, pr... | 33.8 | 94 | 0.667324 |
38007448ecd1c5d11dc74b0818894960f326f941 | 184 | exs | Elixir | priv/repos/configuration/migrations/20161018094547_plugins_add_enabled.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 328 | 2017-05-05T15:19:46.000Z | 2022-03-11T10:52:45.000Z | priv/repos/configuration/migrations/20161018094547_plugins_add_enabled.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 83 | 2017-04-30T10:36:15.000Z | 2019-10-14T13:14:34.000Z | priv/repos/configuration/migrations/20161018094547_plugins_add_enabled.exs | gabheadz/annon.api | 9921d98e44c8472c133554dd55ea649c0f55726c | [
"MIT"
] | 29 | 2017-05-02T14:36:50.000Z | 2021-09-03T13:36:17.000Z | defmodule Annon.Configuration.Repo.Migrations.PluginsAddEnabled do
use Ecto.Migration
def change do
alter table(:plugins) do
add :is_enabled, :boolean
end
end
end
| 18.4 | 66 | 0.733696 |
3800bb39c22e5e025783689488a5650e8a2d9910 | 3,724 | exs | Elixir | test/tapebas_web/controllers/user_confirmation_controller_test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 3 | 2022-03-24T16:48:38.000Z | 2022-03-24T16:50:04.000Z | test/tapebas_web/controllers/user_confirmation_controller_test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | null | null | null | test/tapebas_web/controllers/user_confirmation_controller_test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 1 | 2022-03-20T01:11:12.000Z | 2022-03-20T01:11:12.000Z | defmodule TapebasWeb.UserConfirmationControllerTest do
use TapebasWeb.ConnCase, async: true
alias Tapebas.Accounts
alias Tapebas.Repo
import Tapebas.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/confirm" do
test "renders the resend confirmation page", %{conn: conn} ... | 35.132075 | 94 | 0.648496 |
38010b48e163f5d123dfc45fd524ecb056f89352 | 1,625 | exs | Elixir | test/xema/format_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/xema/format_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/xema/format_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | defmodule FormatTest do
use ExUnit.Case, async: true
import Xema, only: [validate: 2]
alias Xema.ValidationError
doctest Xema.Format
describe "validation of date-time strings" do
setup do
%{schema: Xema.new(format: :date_time)}
end
test "with an invalid day in date-time string", %{schem... | 25.390625 | 95 | 0.574769 |
380114ce0cad527e0615a29a46c06e174c575738 | 23,744 | ex | Elixir | lib/elixir/lib/exception.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/exception.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/exception.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | defmodule Exception do
@moduledoc """
Functions to format throw/catch/exit and exceptions.
Note that stacktraces in Elixir are updated on throw,
errors and exits. For example, at any given moment,
`System.stacktrace/0` will return the stacktrace for the
last throw/error/exit that occurred in the current pr... | 27.77076 | 108 | 0.675792 |
380130aa28b88254c3d4b5217ca9889210d7a7ed | 1,461 | exs | Elixir | day19/test/day19_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | day19/test/day19_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | day19/test/day19_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | defmodule Day19Test do
use ExUnit.Case
doctest Day19
test "reads the file" do
assert Day19.read_input("test/input.txt") |> List.first() |> Map.values() == [
"1 2",
"\"a\"",
"1 3 | 3 1",
"\"b\""
]
end
test "parse rules" do
assert Day19.pa... | 28.647059 | 86 | 0.566051 |
3801416305ba50d31431987d4268d6766dd2311b | 1,587 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/analytics_dataimport_delete_upload_data_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics/lib/google_api/analytics/v3/model/analytics_dataimport_delete_upload_data_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics/lib/google_api/analytics/v3/model/analytics_dataimport_delete_upload_data_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... | 32.387755 | 98 | 0.755514 |
38014faef992ebae79a9d477c02918e51d81bc78 | 129 | ex | Elixir | test/helpers/connections/udp_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/helpers/connections/udp_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/helpers/connections/udp_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | defmodule Instream.TestHelpers.Connections.UDPConnection do
@moduledoc false
use Instream.Connection, otp_app: :instream
end
| 25.8 | 59 | 0.829457 |
38017b604cd41a02d6822b7a805106b0c42991c6 | 2,822 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/ios_test_setup.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/ios_test_setup.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/testing/lib/google_api/testing/v1/model/ios_test_setup.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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... | 50.392857 | 382 | 0.743444 |
38017b6b5bfd0fc73cf38a38c52cc524087e57c5 | 1,519 | ex | Elixir | clients/container/lib/google_api/container/v1/model/gce_persistent_disk_csi_driver_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/gce_persistent_disk_csi_driver_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container/lib/google_api/container/v1/model/gce_persistent_disk_csi_driver_config.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... | 32.319149 | 127 | 0.750494 |
38017e6db14ea1b40721c7d3d87552351a81804e | 1,104 | ex | Elixir | lib/livebook/runtime/erl_dist/evaluator_supervisor.ex | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/evaluator_supervisor.ex | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:09:08.000Z | 2021-09-18T01:09:08.000Z | lib/livebook/runtime/erl_dist/evaluator_supervisor.ex | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ErlDist.EvaluatorSupervisor do
@moduledoc false
# Supervisor responsible for dynamically spawning
# and terminating evaluator server processes.
use DynamicSupervisor
alias Livebook.Evaluator
def start_link(opts \\ []) do
DynamicSupervisor.start_link(__MODULE__, opts)
end... | 24.533333 | 72 | 0.663949 |
380185ddc44fc39148bbb43823d525c55ff3c4be | 1,826 | ex | Elixir | lib/release_tasks.ex | LittleKidogo/quick_bytes_system | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | 1 | 2018-08-10T02:53:13.000Z | 2018-08-10T02:53:13.000Z | lib/release_tasks.ex | LittleKidogo/quick_bytes_backend | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | 34 | 2018-08-07T09:53:18.000Z | 2018-10-24T21:12:01.000Z | lib/release_tasks.ex | LittleKidogo/quick_bytes_backend | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | null | null | null | defmodule QbBackend.ReleaseTasks do
@moduledoc """
This module gets compiled along with the rest of the application
and is used when running migrations in deployment envs
"""
@start_apps [
:crypto,
:ssl,
:postgrex,
:ecto
]
@repos Application.get_env(:qb_backend, :ecto_repos, [])
def mi... | 20.988506 | 66 | 0.665389 |
380188d4cc4cd58e8cdf6e10b381063bf013e4d7 | 712 | ex | Elixir | web/controllers/raw_supplier_rate_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/raw_supplier_rate_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/raw_supplier_rate_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.RawSupplierRateImportJobController do
use CgratesWebJsonapi.Web, :controller
alias CgratesWebJsonapi.RawSupplierRate
require Logger
def create(conn, %{"data" => %{"attributes" => %{"tpid" => tpid, "csv" => csv}}}) do
id = DateTime.utc_now() |> DateTime.to_unix()
Task.async... | 32.363636 | 92 | 0.655899 |
38018a77cf08be3601e989e13b6ec2396da54912 | 2,233 | ex | Elixir | lib/livebook_web/router.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/router.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/router.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Router do
use LivebookWeb, :router
import Phoenix.LiveDashboard.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {LivebookWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_h... | 36.016129 | 93 | 0.711599 |
3801a900963431380dee738e7466879d45c79249 | 407 | exs | Elixir | config/rpi0.exs | sadesyllas/nerves_bluetooth | d316dbc192be8beec8b76dd245225117bc7d925f | [
"Apache-2.0"
] | 14 | 2018-01-29T23:34:50.000Z | 2021-07-15T04:29:36.000Z | config/rpi0.exs | sadesyllas/nerves_bluetooth | d316dbc192be8beec8b76dd245225117bc7d925f | [
"Apache-2.0"
] | 2 | 2017-05-24T18:16:42.000Z | 2018-11-06T19:29:09.000Z | config/rpi0.exs | sadesyllas/nerves_bluetooth | d316dbc192be8beec8b76dd245225117bc7d925f | [
"Apache-2.0"
] | 3 | 2018-06-01T07:10:19.000Z | 2019-01-06T22:32:56.000Z | # configuration for running on the rpi0
use Mix.Config
# tell logger to load a LoggerFileBackend processes
config :logger,
backends: [{LoggerFileBackend, :info},
{LoggerFileBackend, :error}]
# configuration for the {LoggerFileBackend, :error_log} backend
config :logger, :error_log,
path: "/root/error... | 25.4375 | 63 | 0.710074 |
3801bb732ffacf903b0e4ee2f2ab0ea147d6c6f3 | 508 | ex | Elixir | apps/core/lib/core/pubsub/consumers/upgrade.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/pubsub/consumers/upgrade.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/pubsub/consumers/upgrade.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.PubSub.Consumers.Upgrade do
@moduledoc """
Single destination webhook publisher
For cases where a list of webhooks need to be derived, use Fanout
"""
use Piazza.PubSub.Consumer,
broadcaster: Core.PubSub.Broadcaster,
max_demand: 10
alias Core.PubSub.Upgradeable
alias Core.Services.... | 25.4 | 68 | 0.720472 |
3802526e5cfd1c1dd53ec5b273ae9612e06fc4b9 | 1,641 | exs | Elixir | test/faktory_worker/connection_manager/server_test.exs | vukanac/faktory_worker | d3905f4c63988f1374d18e747fdd364a0d1ddbf2 | [
"MIT"
] | 17 | 2019-04-14T21:35:33.000Z | 2019-10-26T10:36:35.000Z | test/faktory_worker/connection_manager/server_test.exs | vukanac/faktory_worker | d3905f4c63988f1374d18e747fdd364a0d1ddbf2 | [
"MIT"
] | 75 | 2019-03-12T12:09:34.000Z | 2020-01-04T14:19:11.000Z | test/faktory_worker/connection_manager/server_test.exs | vukanac/faktory_worker | d3905f4c63988f1374d18e747fdd364a0d1ddbf2 | [
"MIT"
] | 4 | 2020-10-26T17:21:59.000Z | 2021-04-17T18:05:10.000Z | defmodule FaktoryWorker.ConnectionManager.ServerTest do
use ExUnit.Case
import Mox
import FaktoryWorker.ConnectionHelpers
alias FaktoryWorker.Random
alias FaktoryWorker.ConnectionManager.Server
setup :set_mox_global
setup :verify_on_exit!
describe "send_command/3" do
test "should handle server t... | 26.467742 | 93 | 0.651432 |
38027998b978bc4b905e5e628197d02f3216abeb | 243 | ex | Elixir | lib/mogo_chat/supervisor.ex | debonair/mogo-chat | 108c611177363a04d278221aabc03dcd2b66597c | [
"MIT"
] | 210 | 2015-01-01T04:17:56.000Z | 2022-02-26T23:54:56.000Z | lib/mogo_chat/supervisor.ex | debonair/mogo-chat | 108c611177363a04d278221aabc03dcd2b66597c | [
"MIT"
] | 1 | 2015-05-08T21:44:36.000Z | 2015-05-08T21:44:36.000Z | lib/mogo_chat/supervisor.ex | debonair/mogo-chat | 108c611177363a04d278221aabc03dcd2b66597c | [
"MIT"
] | 40 | 2015-01-06T08:48:40.000Z | 2020-05-26T18:03:07.000Z | defmodule MogoChat.Supervisor do
use Supervisor.Behaviour
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [ worker(Repo, []) ]
supervise(children, strategy: :one_for_one)
end
end
| 18.692308 | 47 | 0.691358 |
38027b11080a19990dd7476ebcd30614dc8c0201 | 7,813 | ex | Elixir | lib/rdf/serializations/turtle_decoder.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | lib/rdf/serializations/turtle_decoder.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | lib/rdf/serializations/turtle_decoder.ex | marcelotto/rdf-ex | 12adce69eb2dbff027cbc83aaaf912067aea1b02 | [
"MIT"
] | 2 | 2018-01-19T15:48:27.000Z | 2020-03-01T00:29:35.000Z | defmodule RDF.Turtle.Decoder do
@moduledoc """
A decoder for N-Triples serializations to `RDF.Graph`s.
As for all decoders of `RDF.Serialization.Format`s, you normally won't use these
functions directly, but via one of the `read_` functions on the `RDF.Turtle` format
module or the generic `RDF.Serialization`... | 34.418502 | 94 | 0.660694 |
380298c79a04ba1f2d3778b5df9d58efb82a196e | 961 | ex | Elixir | apps/rtc/lib/rtc_web/channels/incident_channel.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/rtc/lib/rtc_web/channels/incident_channel.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/rtc/lib/rtc_web/channels/incident_channel.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule RtcWeb.IncidentChannel do
use RtcWeb, :channel
alias Rtc.Presence
alias Core.Services.Incidents
def join("incidents:" <> id, _params, socket) do
send(self(), :after_join)
{:ok, assign(socket, :incident_id, id)}
end
def handle_info(:after_join, socket) do
with {:ok, _} <- authorize(so... | 28.264706 | 82 | 0.654527 |
3802a07c4b702526a4a02e4551a6e3fc253cb851 | 3,530 | exs | Elixir | test/pix_chargeback_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | 1 | 2022-03-15T18:58:21.000Z | 2022-03-15T18:58:21.000Z | test/pix_chargeback_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | test/pix_chargeback_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | defmodule StarkInfraTest.PixChargeback do
use ExUnit.Case
@tag :pix_chargeback
test "create pix chargeback" do
{:ok, pix_chargebacks} = StarkInfra.PixChargeback.create([StarkInfraTest.Utils.PixChargeback.generate_example_pix_chargeback()])
pix_chargeback = pix_chargebacks |> hd
assert !is_nil(pix_cha... | 28.467742 | 132 | 0.67932 |
3802b39c6e69369adc05b681165e690e0be7bc65 | 960 | ex | Elixir | lib/herminio_torres/post.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | lib/herminio_torres/post.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | lib/herminio_torres/post.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | defmodule HerminioTorres.Post do
@enforce_keys [:id, :title, :body, :description, :reading_time, :tags, :date]
defstruct [
:id,
:title,
:body,
:description,
:original_url,
:reading_time,
:tags,
:date,
:discussion_url,
author: "Herminio Torres",
published: true
]
def ... | 20 | 79 | 0.547917 |
3802b7cfe91b81fb25078bb043e28a099bd76871 | 341 | exs | Elixir | programming/elixir/learning_elixir_code_bundle/code/chapter9/unless2.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | 1 | 2020-01-09T03:22:09.000Z | 2020-01-09T03:22:09.000Z | elixir/tour/learning_elixir_code_bundle/code/chapter9/unless2.exs | lijiansong/lang | e255709da2b12e09dea45f86d54f77a19b96f13b | [
"WTFPL"
] | null | null | null | elixir/tour/learning_elixir_code_bundle/code/chapter9/unless2.exs | lijiansong/lang | e255709da2b12e09dea45f86d54f77a19b96f13b | [
"WTFPL"
] | null | null | null | defmodule ControlFlow do
defmacro unless(condition, clauses) do
true_clause = Keyword.get(clauses, :do, nil)
false_clause = Keyword.get(clauses, :else, nil)
quote do
case not unquote(condition) do
val when val in [false, nil] -> unquote(true_clause)
_ -> unquote(false_clause)
e... | 26.230769 | 60 | 0.659824 |
3802fc6c4fae96cd159248b84500f210383e18ed | 129 | exs | Elixir | test/couch_gears/initializer_test.exs | Zatvobor/couch_gears | 5ebfdec4d79fb3734d7d2cb36e495b6e408eac21 | [
"Apache-2.0"
] | 1 | 2015-09-29T03:07:04.000Z | 2015-09-29T03:07:04.000Z | test/couch_gears/initializer_test.exs | Zatvobor/couch_gears | 5ebfdec4d79fb3734d7d2cb36e495b6e408eac21 | [
"Apache-2.0"
] | null | null | null | test/couch_gears/initializer_test.exs | Zatvobor/couch_gears | 5ebfdec4d79fb3734d7d2cb36e495b6e408eac21 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __FILE__
defmodule CouchGears.InitializerTest do
use ExUnit.Case, async: true
end | 18.428571 | 51 | 0.767442 |
3803094eac3a5083646a46511b0ce5551beeeb04 | 2,658 | ex | Elixir | lib/storage/file_storage.ex | jungsoft/uploadex | 3f9748ffd9b6a13c52c3093f9d8e112e2afecf19 | [
"MIT"
] | 11 | 2020-04-20T15:45:47.000Z | 2022-01-07T22:24:27.000Z | lib/storage/file_storage.ex | gabrielpra1/uploadex | 3f9748ffd9b6a13c52c3093f9d8e112e2afecf19 | [
"MIT"
] | 7 | 2019-09-11T15:36:34.000Z | 2020-01-31T14:04:12.000Z | lib/storage/file_storage.ex | gabrielpra1/uploadex | 3f9748ffd9b6a13c52c3093f9d8e112e2afecf19 | [
"MIT"
] | 2 | 2019-09-30T11:04:17.000Z | 2020-01-20T18:10:57.000Z | defmodule Uploadex.FileStorage do
@moduledoc """
Storage for Local Files.
## Opts
* `directory`: String (required for all functions) - Relative to `base_path`
* `base_path`: String (required for all functions)
* `base_url`: String (required for `c:Uploadex.Storage.get_url/2`)
To build the URL, `base_p... | 31.270588 | 127 | 0.712566 |
380321fb2a44fcc303ed9f8d6d4579f14f2a5e06 | 770 | ex | Elixir | lib/method.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | 1 | 2015-10-25T11:30:13.000Z | 2015-10-25T11:30:13.000Z | lib/method.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | lib/method.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | module Method
module Behavior
attr_reader ['binding, 'owner, 'name, 'arity]
% Dynamically define call and [] as methods that receives
% up to 20 arguments and forward them to the function.
20.times [], do (i, acc)
module_eval __FILE__, __LINE__, ~~ELIXIR
def [](#{acc.join(",")})
Erlang.apply(... | 23.333333 | 69 | 0.592208 |
38034c71e3a270ddddb616adb229ab2bb14e2ca8 | 132 | ex | Elixir | lib/stripe/file.ex | NarrativeApp/stripe-elixir | 873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004 | [
"MIT"
] | null | null | null | lib/stripe/file.ex | NarrativeApp/stripe-elixir | 873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004 | [
"MIT"
] | 24 | 2020-09-08T20:24:59.000Z | 2021-09-22T04:04:17.000Z | lib/stripe/file.ex | NarrativeApp/stripe-elixir | 873c79cf4f6cc5db974b11fbd4e4f85c8a0a9004 | [
"MIT"
] | null | null | null | defmodule Stripe.File do
use Stripe.API, [:create, :retrieve, :list]
@moduledoc false
def endpoint do
"files"
end
end
| 13.2 | 45 | 0.674242 |
380368d6585f7f9367f858c89d92c4591308eb6e | 1,007 | exs | Elixir | elixir/beer-song/beer_song.exs | jkrukoff/Exercism | a58535afaef312b6ad45730eaa346f2c9f4c3056 | [
"MIT"
] | null | null | null | elixir/beer-song/beer_song.exs | jkrukoff/Exercism | a58535afaef312b6ad45730eaa346f2c9f4c3056 | [
"MIT"
] | null | null | null | elixir/beer-song/beer_song.exs | jkrukoff/Exercism | a58535afaef312b6ad45730eaa346f2c9f4c3056 | [
"MIT"
] | null | null | null | defmodule BeerSong do
@doc """
Get a single verse of the beer song
"""
@spec verse(integer) :: String.t()
def verse(0) do
"""
No more bottles of beer on the wall, no more bottles of beer.
Go to the store and buy some more, 99 bottles of beer on the wall.
"""
end
def verse(1) do
"""
... | 23.97619 | 75 | 0.608739 |
38037907b15788beab9aefc813175ef99f9f2e5a | 232 | exs | Elixir | apps/alert_processor/priv/repo/migrations/20180314174157_add_closed_timestamp_to_notifications.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/priv/repo/migrations/20180314174157_add_closed_timestamp_to_notifications.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/priv/repo/migrations/20180314174157_add_closed_timestamp_to_notifications.exs | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule AlertProcessor.Repo.Migrations.AddClosedTimestampToNotifications do
use Ecto.Migration
def change do
alter table(:notifications, primary_key: false) do
add :closed_timestamp, :utc_datetime
end
end
end
| 23.2 | 77 | 0.775862 |
3803f19f672cd1ac7b1d56aac0711bdf72e6fd39 | 1,926 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/list_subscriptions_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/list_subscriptions_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/list_subscriptions_response.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.52 | 189 | 0.748702 |
3803fa3b5f5bc35a00e9787e306e36c5a4294638 | 1,792 | exs | Elixir | backend/test/caffe/ordering/use_cases/place_order_test.exs | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | 7 | 2020-03-27T08:26:52.000Z | 2021-08-29T09:50:31.000Z | backend/test/caffe/ordering/use_cases/place_order_test.exs | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | backend/test/caffe/ordering/use_cases/place_order_test.exs | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | defmodule Caffe.Ordering.UseCases.PlaceOrderTest do
use Caffe.UseCaseCase
use Caffe.EventStoreCase
alias Caffe.Ordering.UseCases.PlaceOrder
alias Caffe.Ordering.Projections.Order
alias Caffe.Accounts.User
describe "execute" do
test "as a customer" do
%{id: customer_id} = user = insert!(:customer... | 28.444444 | 86 | 0.610491 |
3804283b30c1b5650a5cb60422153b634353a548 | 67 | ex | Elixir | lib/clueless/repo.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | null | null | null | lib/clueless/repo.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | 4 | 2015-12-18T20:35:49.000Z | 2015-12-18T20:36:43.000Z | lib/clueless/repo.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | null | null | null | defmodule Clueless.Repo do
use Ecto.Repo, otp_app: :clueless
end
| 16.75 | 35 | 0.776119 |
38042d0f13f5b2801485848042bf067dceee9c25 | 1,678 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_generic_knowledge_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_generic_knowledge_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_generic_knowledge_operation_metadata.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... | 31.074074 | 114 | 0.755662 |
38043d8bb4c2e59de0793ae6c9545bb2d587ff3f | 1,980 | ex | Elixir | clients/elixir/lib/fast_api/api/text_text_sentiment_analysis.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | 1 | 2022-03-30T11:33:28.000Z | 2022-03-30T11:33:28.000Z | clients/elixir/lib/fast_api/api/text_text_sentiment_analysis.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | null | null | null | clients/elixir/lib/fast_api/api/text_text_sentiment_analysis.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule FastAPI.Api.TextTextSentimentAnalysis do
@moduledoc """
API calls for all endpoints tagged `TextTextSentimentAnalysis`.
"""
alias FastAPI.Con... | 28.285714 | 122 | 0.660101 |
380451a5463a26c451b50e9652a3a5e1f540b982 | 5,451 | ex | Elixir | lib/mix/tasks/ash_postgres.generate_migrations.ex | totaltrash/ash_postgres | 7af29756fadaaad018d6fcf35e7f806cd304d6d2 | [
"MIT"
] | null | null | null | lib/mix/tasks/ash_postgres.generate_migrations.ex | totaltrash/ash_postgres | 7af29756fadaaad018d6fcf35e7f806cd304d6d2 | [
"MIT"
] | null | null | null | lib/mix/tasks/ash_postgres.generate_migrations.ex | totaltrash/ash_postgres | 7af29756fadaaad018d6fcf35e7f806cd304d6d2 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.AshPostgres.GenerateMigrations do
@moduledoc """
Generates migrations, and stores a snapshot of your resources.
Options:
* `apis` - a comma separated list of API modules, for which migrations will be generated
* `snapshot_path` - a custom path to store the snapshots, defaults to "priv/re... | 38.387324 | 120 | 0.693451 |
38045f70f0c5281528db23f75d956ed6f0f990ff | 1,572 | ex | Elixir | lib/ibu/stats/percentage.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | 1 | 2021-01-18T17:39:05.000Z | 2021-01-18T17:39:05.000Z | lib/ibu/stats/percentage.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | lib/ibu/stats/percentage.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | defmodule IBU.Stats.Percentage do
@moduledoc """
"""
# If we don't have any stat season then do not bother trying to get
# percentages for stats
@spec build(map) :: map
def build(%{"StatSeasons" => []}), do: %{}
def build(data) do
Range.new(0, Enum.count(data["StatSeasons"]) - 1)
|> Enum.to_list... | 30.230769 | 76 | 0.652672 |
38046a47b2c084e11c5c5371ca597a9600148b77 | 234 | exs | Elixir | driver-location/config/dev.exs | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"MIT"
] | null | null | null | driver-location/config/dev.exs | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"MIT"
] | null | null | null | driver-location/config/dev.exs | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"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
config :driver_location,
nsqlookupds: ["127.0.0.1:4161"],
redis: "redis://127.0.0.1:6379/3"
| 29.25 | 61 | 0.739316 |
380478e444fc16ada79120a655268154531c6706 | 811 | ex | Elixir | lib/afterglow_web/controllers/search_table_controller.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow_web/controllers/search_table_controller.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | lib/afterglow_web/controllers/search_table_controller.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.SearchTableController do
use AfterGlow.Web, :controller
alias AfterGlow.AutoComplete
alias AfterGlow.Table
alias AfterGlow.Plugs.Authorization
alias AfterGlow.CacheWrapper
plug(Authorization)
action_fallback(AfterGlow.Web.FallbackController)
def index(conn, %{"q" => query, "databas... | 30.037037 | 98 | 0.702836 |
380482cc3924def1b7b8789c74af85f3dddd85f2 | 409 | exs | Elixir | priv/repo/migrations/20180608192538_create_sessions.exs | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-07-05T15:13:12.000Z | 2021-12-16T08:58:56.000Z | priv/repo/migrations/20180608192538_create_sessions.exs | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180608192538_create_sessions.exs | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-08-13T21:37:00.000Z | 2021-11-10T04:08:26.000Z | defmodule AppApi.Repo.Migrations.CreateSessions do
use Ecto.Migration
def change do
create table(:sessions, primary_key: false) do
add :id, :binary_id, primary_key: true
add :auth_token, :string
add :auth_token_hash, :string
add :user_id, references(:users, on_delete: :nothing, type: :b... | 24.058824 | 77 | 0.684597 |
38048bc02fbc3bc9758c0961f4847841669a6f4f | 415 | ex | Elixir | lib/rumbl/categories/module.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | null | null | null | lib/rumbl/categories/module.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | lib/rumbl/categories/module.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule Rumbl.Categories do
import Ecto.Query, warn: false
alias Rumbl.Repo
alias Rumbl.Categories.Category
# Private API
defp alphabetical(query) do
from c in query, order_by: c.name
end
defp names_and_ids(query) do
from c in query, select: { c.name, c.id }
end
# Public API
def list... | 15.961538 | 45 | 0.677108 |
3804a5879c43c858527faa28c7def39a97b78348 | 763 | ex | Elixir | test/support/test_utils.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | 1 | 2020-05-02T15:26:56.000Z | 2020-05-02T15:26:56.000Z | test/support/test_utils.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | test/support/test_utils.ex | pmhoudry/plausible | 454feec36e62b866ae86e07a1f4133d9782d4365 | [
"MIT"
] | null | null | null | defmodule Plausible.TestUtils do
use Plausible.Repo
alias Plausible.Factory
def create_user(_) do
{:ok, user: Factory.insert(:user)}
end
def create_site(%{user: user}) do
site = Factory.insert(:site, members: [user])
{:ok, site: site}
end
def log_in(%{user: user, conn: conn}) do
conn = ... | 20.621622 | 55 | 0.609436 |
3804a7ecbd7026fb3929b021e1c8f3b29bb0779c | 263 | exs | Elixir | config/config.exs | rob05c/exedra | 550091d95739959f2587f1245c105f2561caf1ab | [
"MIT"
] | 1 | 2020-11-20T01:58:11.000Z | 2020-11-20T01:58:11.000Z | config/config.exs | rob05c/exedra | 550091d95739959f2587f1245c105f2561caf1ab | [
"MIT"
] | null | null | null | config/config.exs | rob05c/exedra | 550091d95739959f2587f1245c105f2561caf1ab | [
"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
config :elixir,
ansi_enabled: false
config :exedra,
app: :exedra,
port: 42424,
credentials: [{"bill", "thelizard"}]
| 21.916667 | 61 | 0.73384 |
3804cacb56592021ceda0943c06a80202e4494f2 | 521 | ex | Elixir | lib/particle/error.ex | tompesman/particle-elixir | 90226405b868f8e8ff308c84c34e88ea68a8570a | [
"MIT"
] | null | null | null | lib/particle/error.ex | tompesman/particle-elixir | 90226405b868f8e8ff308c84c34e88ea68a8570a | [
"MIT"
] | null | null | null | lib/particle/error.ex | tompesman/particle-elixir | 90226405b868f8e8ff308c84c34e88ea68a8570a | [
"MIT"
] | null | null | null | defmodule Particle.Error do
@moduledoc false
defstruct [:reason, :info, :code]
@type t :: %__MODULE__{
reason: binary,
info: binary,
code: integer
}
def new(code, %{error: reason, info: info}) do
%__MODULE__{
reason: reason,
info: info,
code: code
}
end
def new(code... | 16.806452 | 48 | 0.571977 |
3804e4cd759b3a647b2b00b482d8d6d782d6e37a | 2,069 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_semver_sem_ver.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_semver_sem_ver.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_semver_sem_ver.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... | 35.672414 | 130 | 0.703238 |
38050fb6d178ea60dab569f2dd27e9778a88baa2 | 8,243 | exs | Elixir | lib/elixir/test/elixir/float_test.exs | MariliaMJ/elixir | 0dd0d21afdf5c0a58c5cc56c93225273d9ab2dfa | [
"Apache-2.0"
] | 1 | 2021-06-12T13:25:49.000Z | 2021-06-12T13:25:49.000Z | lib/elixir/test/elixir/float_test.exs | MariliaMJ/elixir | 0dd0d21afdf5c0a58c5cc56c93225273d9ab2dfa | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/float_test.exs | MariliaMJ/elixir | 0dd0d21afdf5c0a58c5cc56c93225273d9ab2dfa | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule FloatTest do
use ExUnit.Case, async: true
doctest Float
test "parse/1" do
assert Float.parse("12") === {12.0, ""}
assert Float.parse("-12") === {-12.0, ""}
assert Float.parse("-0.1") === {-0.1, ""}
assert Float.parse("123456789") === {123_... | 38.162037 | 448 | 0.636904 |
38054551efc4a4037269abc04978f79e6c10668c | 203 | exs | Elixir | test/day04_test.exs | rzcastilho/TheAdventOfCode2018 | 55c821cbe0afb8477470c0e60a3d5f45e40f6a46 | [
"MIT"
] | null | null | null | test/day04_test.exs | rzcastilho/TheAdventOfCode2018 | 55c821cbe0afb8477470c0e60a3d5f45e40f6a46 | [
"MIT"
] | null | null | null | test/day04_test.exs | rzcastilho/TheAdventOfCode2018 | 55c821cbe0afb8477470c0e60a3d5f45e40f6a46 | [
"MIT"
] | null | null | null | defmodule Day04Test do
use ExUnit.Case
doctest Day04
test "Day: 04 - Part: 1" do
assert Day04.part1() == 8950
end
test "Day: 04 - Part: 2" do
assert Day04.part2() == 78452
end
end
| 14.5 | 33 | 0.625616 |
3805b2c440c16125d8f65daf9945184c2aef4699 | 1,069 | ex | Elixir | lib/ello_click/affiliate/vig_link.ex | ello/ello-click | 14ce02f4b99e1aa3ac23cd28f3c8872ec2cab277 | [
"MIT"
] | 3 | 2016-08-03T01:54:04.000Z | 2020-01-13T20:32:20.000Z | lib/ello_click/affiliate/vig_link.ex | ello/ello-click | 14ce02f4b99e1aa3ac23cd28f3c8872ec2cab277 | [
"MIT"
] | 6 | 2016-07-14T04:16:34.000Z | 2016-08-10T21:06:16.000Z | lib/ello_click/affiliate/vig_link.ex | ello/ello-click | 14ce02f4b99e1aa3ac23cd28f3c8872ec2cab277 | [
"MIT"
] | null | null | null | defmodule ElloClick.Affiliate.VigLink do
alias Plug.Conn
# Don't re-affiliate links something further up the chain got
def affiliate({:ok, affiliated}, _conn), do: {:ok, affiliated}
def affiliate(unaffiliated, conn) do
call_api(config().key, unaffiliated, referer(conn))
end
# No API key
defp call_a... | 26.725 | 96 | 0.603368 |
3806469c985fbf7b3d9eee68ff65e7b2d78778e7 | 69 | ex | Elixir | lib/paironauts_web/views/layout_view.ex | AgileVentures/Paironauts | cc151885cede272c22b008d2f5e550c89391264c | [
"MIT"
] | 7 | 2017-11-18T15:36:58.000Z | 2020-04-22T10:51:15.000Z | lib/paironauts_web/views/layout_view.ex | AgileVentures/Paironauts | cc151885cede272c22b008d2f5e550c89391264c | [
"MIT"
] | 33 | 2017-12-08T11:21:09.000Z | 2020-02-19T04:24:35.000Z | lib/paironauts_web/views/layout_view.ex | AgileVentures/Paironauts | cc151885cede272c22b008d2f5e550c89391264c | [
"MIT"
] | 5 | 2017-11-15T18:51:59.000Z | 2018-12-13T06:01:23.000Z | defmodule PaironautsWeb.LayoutView do
use PaironautsWeb, :view
end
| 17.25 | 37 | 0.826087 |
380646e1851f8a5c21876aad15f620f30fce02be | 2,148 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/env_from_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/env_from_source.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/env_from_source.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... | 40.528302 | 154 | 0.740223 |
38065226731d1d398811b4c9948ddb7ef4a5ec71 | 1,647 | ex | Elixir | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/partition_cursor.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/partition_cursor.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/partition_cursor.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... | 32.94 | 110 | 0.725562 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.