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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2126fa538c408924598524c1b7d3d92662d3853c | 1,091 | ex | Elixir | lib/librecov_web/live/repository_live/index.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/librecov_web/live/repository_live/index.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/librecov_web/live/repository_live/index.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.RepositoryLive.Index do
use Librecov.Web, :live_view
alias Librecov.Data
alias Librecov.Services.Projects
alias Librecov.Services.Authorizations
@impl true
def mount(_params, session, socket) do
{:ok, user, _} = Authentication.resource_from_session(session)
repositories = list_r... | 24.795455 | 94 | 0.698442 |
212706c7dd45b648c61800d40237b192f7a6d448 | 638 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/pipelinelatest_runartifacts.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/pipelinelatest_runartifacts.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/pipelinelatest_runartifacts.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"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 SwaggyJenkins.Model.PipelinelatestRunartifacts do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"name",
:"size",
:"... | 19.9375 | 91 | 0.641066 |
212735d8ac73120388f7ee7b9820e6386544ae3d | 438 | exs | Elixir | test/glimesh_web/views/error_view_test.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | test/glimesh_web/views/error_view_test.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | test/glimesh_web/views/error_view_test.exs | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule GlimeshWeb.ErrorViewTest do
use GlimeshWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(GlimeshWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
as... | 27.375 | 80 | 0.714612 |
21275f151a7e2a359a4b42015151c8dcdc889934 | 1,454 | ex | Elixir | lib/staff_notes_web/helpers/time_helpers.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 1 | 2020-01-26T18:08:40.000Z | 2020-01-26T18:08:40.000Z | lib/staff_notes_web/helpers/time_helpers.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 36 | 2017-12-23T20:22:07.000Z | 2018-05-10T09:16:59.000Z | lib/staff_notes_web/helpers/time_helpers.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | null | null | null | defmodule StaffNotesWeb.TimeHelpers do
@moduledoc """
View helpers for dealing with timestamps.
"""
use StaffNotesWeb, :helper
@doc """
Uses the [timeago.js module](http://timeago.org/) to format the given timestamp as "[some amount
of time] ago" such as "three hours ago".
## HTML emitted
It emits ... | 27.433962 | 100 | 0.68707 |
2127645889edef8e136d64c8dfacb74ae4dedfd2 | 1,504 | ex | Elixir | lib/ucx_ucc/services/user_service.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | lib/ucx_ucc/services/user_service.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | lib/ucx_ucc/services/user_service.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UcxUcc.UserService do
use UcxUccWeb, :service
# alias UcxChat.ServiceHelpers, as: Helpers
alias UcxUcc.{Repo, Accounts}
alias Accounts.{User, Account}
# alias UccChat.Schema.Channel, as: ChannelSchema
# alias UccChat.Subscription
alias Ecto.Multi
require Logger
def total_users_count do
... | 24.258065 | 81 | 0.664229 |
21277ca53a6a6357f35e7fb41706009b6587042a | 1,177 | ex | Elixir | lib/docusign/api/account_seal_providers.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/api/account_seal_providers.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/api/account_seal_providers.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # 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 DocuSign.Api.AccountSealProviders do
@moduledoc """
API calls for all endpoints tagged `AccountSealProviders`.
"""
alias DocuSign.Connect... | 30.179487 | 100 | 0.702634 |
212794cd6ba3eb1025ad7513854062cd4aee4695 | 1,479 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounts_claim_website_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v21/model/accounts_claim_website_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_claim_website_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.468085 | 159 | 0.745098 |
2127983c00624d73064707e17c4a59941d77a3cf | 377 | ex | Elixir | web/models/lens.ex | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | web/models/lens.ex | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | web/models/lens.ex | flipjs/film-is-not-dead | a7ee56362e98ee08403532435dc3c05aa1ee58c3 | [
"MIT"
] | null | null | null | defmodule FilmIsNotDead.Lens do
use FilmIsNotDead.Web, :model
schema "lenses" do
field :name, :string
field :description, :string
field :active, :boolean, default: true
field :notes, :string
end
def changeset(model, params \\ :empty) do
model
|> cast(params, [:name, :description, :acti... | 22.176471 | 59 | 0.660477 |
2127a4fdafc38a5e758c4505cdbc9431a6fbddc8 | 1,711 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/test_iam_permissions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/test_iam_permissions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/test_iam_permissions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.404255 | 288 | 0.748685 |
2127ace9ce59d4755167e5b2c39bb07810ffe9f9 | 4,482 | ex | Elixir | lib/livebook_web/helpers.ex | marcinatvic/livebook | 0061facd6448420f74981b9089b6e04e9fbe7cd8 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/helpers.ex | marcinatvic/livebook | 0061facd6448420f74981b9089b6e04e9fbe7cd8 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/helpers.ex | marcinatvic/livebook | 0061facd6448420f74981b9089b6e04e9fbe7cd8 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Helpers do
import Phoenix.LiveView.Helpers
import Phoenix.HTML.Tag
alias LivebookWeb.Router.Helpers, as: Routes
@doc """
Renders a component inside the `Livebook.ModalComponent` component.
The rendered modal receives a `:return_to` option to properly update
the URL when the modal i... | 29.486842 | 109 | 0.638108 |
2127fc98551427ef5289bb297c23f30366061538 | 1,157 | ex | Elixir | other/using-phoenix/fall/web/channels/user_socket.ex | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | 1 | 2016-12-25T09:53:53.000Z | 2016-12-25T09:53:53.000Z | other/using-phoenix/fall/web/channels/user_socket.ex | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | other/using-phoenix/fall/web/channels/user_socket.ex | MaraniMatias/elixir-hola-mundo | 325a6ba623378521ec6f79bd4627a0eb7c6cd1fa | [
"MIT"
] | null | null | null | defmodule Fall.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Fall.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authenticate ... | 30.447368 | 83 | 0.699222 |
212824fe9237096d9c25eddfef359990d3f5afc0 | 447 | exs | Elixir | .dialyzer_ignore.exs | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | .dialyzer_ignore.exs | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | .dialyzer_ignore.exs | diodechain/diode_client_ex | 0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f | [
"Apache-2.0"
] | null | null | null | [
{"lib/diode_client/cowboy2_adapter.ex:0:unknown_function Function Plug.Cowboy.child_spec/1 does not exist."},
{"lib/diode_client/cowboy2_adapter.ex:45:unknown_function Function Plug.Cowboy.child_spec/1 does not exist."},
{"lib/diode_client/transport.ex:0:unknown_function Function :ranch_transport.sendfile/6 doe... | 63.857143 | 112 | 0.796421 |
21283afead324a1c078b3cc993b232d4b4c20d5c | 6,169 | ex | Elixir | lib/cldr/number/formatter/short_formatter.ex | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | lib/cldr/number/formatter/short_formatter.ex | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | lib/cldr/number/formatter/short_formatter.ex | jeroenvisser101/cldr_numbers | 9a529817fe8d9f61be330fa970a5a0ffa443a177 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Number.Formatter.Short do
@moduledoc """
Formats a number according to the locale-specific `:short` formats
This is best explained by some
examples:
iex> Cldr.Number.to_string 123, TestBackend.Cldr, format: :short
{:ok, "123"}
iex> Cldr.Number.to_string 1234, TestBackend.Cldr... | 32.298429 | 110 | 0.670125 |
21285fab2230f84fe1e69385773bd2c17d5ae0d4 | 796 | ex | Elixir | lib/preview_web/controllers/sitemap_controller.ex | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 26 | 2021-01-25T20:30:46.000Z | 2021-12-16T08:42:35.000Z | lib/preview_web/controllers/sitemap_controller.ex | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 17 | 2021-01-25T18:45:43.000Z | 2021-07-23T15:15:41.000Z | lib/preview_web/controllers/sitemap_controller.ex | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 4 | 2021-01-25T21:32:28.000Z | 2021-07-07T12:36:19.000Z | defmodule PreviewWeb.SitemapController do
use PreviewWeb, :controller
def index(conn, _params) do
bucket = Application.get_env(:preview, :preview_bucket)
body = Preview.Storage.get(bucket, "sitemaps/sitemap.xml")
render_sitemap(conn, body)
end
def package(conn, %{"package" => package}) do
buck... | 27.448276 | 65 | 0.670854 |
21289f8fd30bab0239d1425213d0c7b7db15b94a | 75 | ex | Elixir | apps/faqcheck_web/lib/faqcheck_web/views/user_registration_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | apps/faqcheck_web/lib/faqcheck_web/views/user_registration_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | 20 | 2021-09-08T04:07:31.000Z | 2022-03-10T21:52:24.000Z | apps/faqcheck_web/lib/faqcheck_web/views/user_registration_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | defmodule FaqcheckWeb.UserRegistrationView do
use FaqcheckWeb, :view
end
| 18.75 | 45 | 0.84 |
2128a2046e4a622923c3e6fc5686d00285701970 | 22 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/DecimalWholeNumber.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/matched_and_operation_parsing_test_case/DecimalWholeNumber.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/matched_and_operation_parsing_test_case/DecimalWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 1 && 2
1 &&& 2
1 and 2 | 7.333333 | 7 | 0.409091 |
2128a9fd9608fabc536d75b743bc892e224b5ca0 | 281 | ex | Elixir | web/posting_url_finder.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 299 | 2015-06-24T09:14:27.000Z | 2022-03-03T13:31:59.000Z | web/posting_url_finder.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 63 | 2015-07-04T19:42:12.000Z | 2021-12-10T14:27:28.000Z | web/posting_url_finder.ex | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 49 | 2015-07-06T13:42:43.000Z | 2021-12-22T21:38:04.000Z | defmodule ElixirStatus.PostingUrlFinder do
alias ElixirStatus.Posting
@link_to_github ~r/(https\:\/\/github.com\/[^\/]+\/[a-zA-Z0-9\_\-]+)/
def run(%Posting{title: _title, text: text}) do
Regex.run(@link_to_github, text)
|> List.wrap()
|> Enum.uniq()
end
end
| 23.416667 | 71 | 0.644128 |
212916fad9aac2c82cbd9bf6e6e5f59d1327d6a6 | 1,060 | exs | Elixir | mix.exs | SpaceEEC/ex_link | 283937d77069c2bde76b2c9dca0e7bf2398b26f7 | [
"MIT"
] | 2 | 2019-04-26T08:35:02.000Z | 2021-09-22T11:08:47.000Z | mix.exs | SpaceEEC/ex_link | 283937d77069c2bde76b2c9dca0e7bf2398b26f7 | [
"MIT"
] | null | null | null | mix.exs | SpaceEEC/ex_link | 283937d77069c2bde76b2c9dca0e7bf2398b26f7 | [
"MIT"
] | null | null | null | defmodule ExLink.MixProject do
use Mix.Project
@vsn "0.1.0"
@name :ex_link
def project() do
[
app: @name,
version: @vsn,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
name: "ExLink",
homepage_url: "https://github.co... | 22.553191 | 83 | 0.523585 |
21291740be28d1120ca38d11be855ab0331ed72b | 572 | exs | Elixir | 6-CustomForms/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | 1 | 2020-12-02T01:34:06.000Z | 2020-12-02T01:34:06.000Z | 6-CustomForms/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | null | null | null | 6-CustomForms/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | null | null | null | defmodule CustomForms.MixProject do
use Mix.Project
def project do
[
app: :aoc,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_ap... | 19.724138 | 87 | 0.576923 |
212932829c23eccbf2aa356dccffa3a50d3f860f | 873 | ex | Elixir | exercism/transpose/transpose.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/transpose/transpose.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/transpose/transpose.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | defmodule Transpose do
@doc """
Given an input text, output it transposed.
Rows become columns and columns become rows. See https://en.wikipedia.org/wiki/Transpose.
If the input has rows of different lengths, this is to be solved as follows:
* Pad to the left with spaces.
* Don't pad to the right.
... | 26.454545 | 91 | 0.594502 |
21294eea95cff72af1e154bcde2b5662a665cdc1 | 888 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/metadata.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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.888889 | 74 | 0.760135 |
212962950ec65c21267af8d59b57125b40d48649 | 1,302 | ex | Elixir | lib/changelog_web/views/admin/person_view.ex | axelson/changelog.com | bad9f461aabbde0faa938f7b2ae643ed47d1df9b | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | lib/changelog_web/views/admin/person_view.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | lib/changelog_web/views/admin/person_view.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.PersonView do
use ChangelogWeb, :admin_view
alias Changelog.Person
alias ChangelogWeb.PersonView
alias ChangelogWeb.Admin.{EpisodeView, EpisodeRequestView, NewsItemView}
def avatar_url(person), do: PersonView.avatar_url(person)
def episode_count(person), do: Person.episode_cou... | 31 | 102 | 0.650538 |
2129b618921fe757f0d9c64817cdbe43c8c843cc | 2,264 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_response_message_conversation_success.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_response_message_conversation_success.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_response_message_conversation_success.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.925926 | 627 | 0.769876 |
2129d4ac47e94ebb04f2010fec44bea11826f280 | 97 | exs | Elixir | config/test.exs | facto/bamboo_espec | 5899c1b5109ff9cb62ba7487482e31cc2af01b22 | [
"MIT"
] | 4 | 2017-01-16T08:58:00.000Z | 2018-11-21T09:59:32.000Z | config/test.exs | facto/bamboo_espec | 5899c1b5109ff9cb62ba7487482e31cc2af01b22 | [
"MIT"
] | null | null | null | config/test.exs | facto/bamboo_espec | 5899c1b5109ff9cb62ba7487482e31cc2af01b22 | [
"MIT"
] | 1 | 2018-11-21T09:59:41.000Z | 2018-11-21T09:59:41.000Z | use Mix.Config
config :bamboo_espec, Bamboo.ESpec.Support.Mailer,
adapter: Bamboo.TestAdapter
| 19.4 | 50 | 0.804124 |
2129f82287395709dec3d94a2c37950896c37774 | 721 | ex | Elixir | lib/turtle_tube_web/gettext.ex | ConnorRigby/turtletube_web | 0e6618395918234584edbb74ccceb589fc79bc68 | [
"MIT"
] | null | null | null | lib/turtle_tube_web/gettext.ex | ConnorRigby/turtletube_web | 0e6618395918234584edbb74ccceb589fc79bc68 | [
"MIT"
] | null | null | null | lib/turtle_tube_web/gettext.ex | ConnorRigby/turtletube_web | 0e6618395918234584edbb74ccceb589fc79bc68 | [
"MIT"
] | null | null | null | defmodule TurtleTubeWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import TurtleTubeWeb.Gettext
# Simple translation
gettext("Her... | 28.84 | 72 | 0.682386 |
212a0df9ef83de0b31b9e74117b6901fe7c87b12 | 815 | exs | Elixir | test/rocketpay_web/views/users_view_test.exs | EderMiqueias/RocketPay-App | f3fec0e95730b48854749a66ec7d4a08aa211b3d | [
"MIT"
] | 15 | 2021-02-28T19:34:00.000Z | 2021-11-18T17:15:25.000Z | rocketpay/test/rocketpay_web/views/users_view_test.exs | R3tr074/nlw4-monorepo | 2880af29932942741f8fb52d5e0e72e77eaf5e22 | [
"MIT"
] | null | null | null | rocketpay/test/rocketpay_web/views/users_view_test.exs | R3tr074/nlw4-monorepo | 2880af29932942741f8fb52d5e0e72e77eaf5e22 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.UsersViewTest do
use RocketpayWeb.ConnCase, async: true
import Phoenix.View
alias Rocketpay.{Account, User}
alias RocketpayWeb.UsersView
test "render create.json" do
params = %{
name: "FakeName",
password: "FakePassword",
nickname: "FakeNickname",
email: "... | 22.638889 | 73 | 0.620859 |
212a1fac65a57f573ba66f9ecc0dd2b6aa9c57d8 | 1,462 | ex | Elixir | 2020/day05/lib/day05.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2020/day05/lib/day05.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2020/day05/lib/day05.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | defmodule Day05 do
def readinput() do
File.read!("5.input.txt")
|> String.split("\n")
|> Enum.map(&String.graphemes/1)
end
def part1(input \\ readinput()) do
input
|> Enum.map(&findseat/1)
|> Enum.max()
end
def part2(input \\ readinput()) do
ids =
input
|> Enum.map(&f... | 25.206897 | 75 | 0.619699 |
212a392ae0d96d5873054ca5292a4a50228050ca | 3,966 | ex | Elixir | alex_story+elixir/maze_jam/apps/generator/lib/generator/maze.ex | NashFP/maze-jam | 6896a0e09bd7fdc2e18688e067eff983d01cd6a5 | [
"MIT"
] | null | null | null | alex_story+elixir/maze_jam/apps/generator/lib/generator/maze.ex | NashFP/maze-jam | 6896a0e09bd7fdc2e18688e067eff983d01cd6a5 | [
"MIT"
] | null | null | null | alex_story+elixir/maze_jam/apps/generator/lib/generator/maze.ex | NashFP/maze-jam | 6896a0e09bd7fdc2e18688e067eff983d01cd6a5 | [
"MIT"
] | null | null | null | defmodule Generator.Maze do
@moduledoc """
Module for handling the overall maze.
Mazes are being represented as a list Cells
"""
alias Generator.Cell
@doc """
Makes a new maze of Cells with the width(x) and height (y)
## Examples
m = Generator.Maze.make 1, 1
m
[{%Cell{x: 0, y: ... | 27.541667 | 96 | 0.543873 |
212a60becc5fb23a849c1762eba614baae8437c5 | 6,267 | ex | Elixir | lib/arango/collection.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | lib/arango/collection.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | lib/arango/collection.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | 3 | 2018-03-27T09:47:04.000Z | 2019-11-04T22:41:46.000Z | defmodule Arango.Collection do
@moduledoc "ArangoDB Collection methods"
alias Arango.Request
alias Arango.Utils
defstruct [
id: nil,
name: nil,
journalSize: nil,
replicationFactor: 1,
keyOptions: nil,
waitForSync: false,
doCompact: true,
isVolatile: false,
shardKeys: ["_key... | 22.789091 | 111 | 0.638902 |
212a8f149034639f4e5f1324f5b24fd6152ff4b1 | 551 | exs | Elixir | mix.exs | jdfrens/ex_pfds | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | 7 | 2016-12-13T22:15:35.000Z | 2021-12-14T14:37:10.000Z | mix.exs | jdfrens/ex_pfds | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | 31 | 2019-04-26T19:46:51.000Z | 2022-03-23T11:56:12.000Z | mix.exs | jdfrens/purely | 01864854368d9e48df76fadc6b58dc26020a1cbb | [
"MIT"
] | null | null | null | defmodule Purely.Mixfile do
use Mix.Project
def project do
[
app: :purely,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[applications: [:logger]]
end
defp ... | 19.678571 | 64 | 0.506352 |
212aaf51194fbd8f03e4c5b766924864ca1da848 | 217 | exs | Elixir | test/skeleton/service/config_test.exs | skeleton-elixir/skeleton_service | 321b000003ef60db83b1d3619aca0cfc7b3f373d | [
"MIT"
] | null | null | null | test/skeleton/service/config_test.exs | skeleton-elixir/skeleton_service | 321b000003ef60db83b1d3619aca0cfc7b3f373d | [
"MIT"
] | 5 | 2020-06-27T20:13:33.000Z | 2021-12-17T22:34:23.000Z | test/skeleton/service/config_test.exs | skeleton-elixir/skeleton_service | 321b000003ef60db83b1d3619aca0cfc7b3f373d | [
"MIT"
] | null | null | null | defmodule Skeleton.Service.ConfigTest do
use Skeleton.Service.TestCase
alias Skeleton.Service.Config
alias Skeleton.App.Repo
test "returns repo from config.exs" do
assert Config.repo() == Repo
end
end
| 19.727273 | 40 | 0.75576 |
212ababe71df350003c3d423fb4d19c78d792dda | 3,068 | ex | Elixir | apps/ex_wire/lib/ex_wire/kademlia/server.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/lib/ex_wire/kademlia/server.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/lib/ex_wire/kademlia/server.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule ExWire.Kademlia.Server do
use GenServer
@moduledoc false
@default_process_name KademliaState
@max_discovery_rounds 7
# 5s
@discovery_round_period 5 * 1000
# 10s
@pong_cleanup_period 10 * 1000
alias ExWire.Kademlia.{Discovery, Node, RoutingTable}
def start_link(params) do
name = par... | 28.146789 | 92 | 0.724902 |
212ac87b10f54ac3c6e6fef5a00fd4d5173612bd | 1,592 | exs | Elixir | test/application/controllers/player_controller_test.exs | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | test/application/controllers/player_controller_test.exs | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | test/application/controllers/player_controller_test.exs | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | defmodule PlayerControllerTest do
use ExUnit.Case
import MagiratorAppChannel.PlayerController
alias MagiratorAppChannel.RoutingPacket
#Search
test "search name" do
routing_packet = %RoutingPacket{ user_id: 1, data_in: %{ "name" => "Erik" } }
{ status, data } = do_action( "search",... | 30.037736 | 85 | 0.602387 |
212afb2fce092e3c68ddcf24fce746ce1b3e869b | 206 | exs | Elixir | farmbot_core/priv/config/migrations/20180308162327_add_maybe_hidden_network_flag.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/config/migrations/20180308162327_add_maybe_hidden_network_flag.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/config/migrations/20180308162327_add_maybe_hidden_network_flag.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Config.Repo.Migrations.AddMaybeHiddenNetworkFlag do
use Ecto.Migration
def change do
alter table("network_interfaces") do
add(:maybe_hidden, :boolean)
end
end
end
| 20.6 | 73 | 0.752427 |
212b0811c23d4b8560ac10f128d738e33d639d74 | 5,615 | exs | Elixir | test/client/conversations_test.exs | PagerDuty/ex_microsoftbot | 855321a51722aadf921034df879196b200621fa1 | [
"MIT"
] | null | null | null | test/client/conversations_test.exs | PagerDuty/ex_microsoftbot | 855321a51722aadf921034df879196b200621fa1 | [
"MIT"
] | 1 | 2021-06-26T00:52:21.000Z | 2021-06-26T00:52:21.000Z | test/client/conversations_test.exs | accord-coop/ex_microsoftbot | 45f2d45f04e256435563a3ffc155651e8ec26fb6 | [
"MIT"
] | 1 | 2019-11-08T13:20:11.000Z | 2019-11-08T13:20:11.000Z | defmodule ExMicrosoftBot.Client.ConversationsTest do
use ExUnit.Case
import Plug.Conn, only: [read_body: 1, resp: 3, get_req_header: 2]
alias ExMicrosoftBot.Models.{Activity, ChannelAccount, ResourceResponse}
alias ExMicrosoftBot.Client.Conversations
@bypass_port Application.fetch_env!(:ex_microsoftbot, By... | 40.985401 | 104 | 0.512199 |
212b53d08e8e893de1d3fca383b80e3b63bed7c5 | 953 | ex | Elixir | lib/mix/lib/mix/scm/path.ex | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/scm/path.ex | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/scm/path.ex | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.SCM.Path do
@behavior Mix.SCM
@moduledoc false
def fetchable? do
false
end
def format(opts) do
opts[:path]
end
def format_lock(_opts) do
nil
end
def accepts_options(app, opts) do
cond do
raw = opts[:path] ->
Keyword.put opts, :dest, Path.expand(raw)
... | 17.648148 | 97 | 0.597062 |
212b68f3c6e5eca6ed18247a9c482a118770fea0 | 633 | exs | Elixir | mix.exs | erpuno/dec | b32f8e86d2f4953a127d4ad4bc07b54a3025123d | [
"0BSD"
] | 3 | 2019-07-12T18:26:56.000Z | 2019-07-14T12:30:54.000Z | mix.exs | erpuno/dec | b32f8e86d2f4953a127d4ad4bc07b54a3025123d | [
"0BSD"
] | null | null | null | mix.exs | erpuno/dec | b32f8e86d2f4953a127d4ad4bc07b54a3025123d | [
"0BSD"
] | null | null | null | defmodule DEC.Mixfile do
use Mix.Project
def project() do
[
app: :dec,
version: "0.10.2",
elixir: "~> 1.7",
description: "DEC Decimal Arbitrary Precision",
package: package(),
deps: deps()
]
end
def package do
[
files: ~w(doc include lib src mix.exs LICENS... | 18.085714 | 63 | 0.532385 |
212b7fff33b63b928ecd6c29dc69c937a1724c8c | 243 | ex | Elixir | lib/torch/config.ex | krystofbe/torchstrap | e54e1679f715587d91388ea279ba128b217af822 | [
"MIT"
] | null | null | null | lib/torch/config.ex | krystofbe/torchstrap | e54e1679f715587d91388ea279ba128b217af822 | [
"MIT"
] | null | null | null | lib/torch/config.ex | krystofbe/torchstrap | e54e1679f715587d91388ea279ba128b217af822 | [
"MIT"
] | null | null | null | defmodule Torch.Config do
@moduledoc """
Application config for torch.
"""
def otp_app do
Application.get_env(:torchstrap, :otp_app)
end
def template_format do
Application.get_env(:torchstrap, :template_format)
end
end
| 17.357143 | 54 | 0.720165 |
212b9198275727b8172d797d0481181cd46bcb24 | 1,402 | ex | Elixir | lib/spotlight_web/telemetry.ex | igorsegallafa/liveview-spotlight | d49bfe99b27e325de4545de72be9e27c3a4acf09 | [
"MIT"
] | 6 | 2021-08-18T22:27:54.000Z | 2022-01-20T09:30:34.000Z | lib/spotlight_web/telemetry.ex | igorsegallafa/liveview-spotlight | d49bfe99b27e325de4545de72be9e27c3a4acf09 | [
"MIT"
] | null | null | null | lib/spotlight_web/telemetry.ex | igorsegallafa/liveview-spotlight | d49bfe99b27e325de4545de72be9e27c3a4acf09 | [
"MIT"
] | null | null | null | defmodule SpotlightWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Lear... | 28.612245 | 86 | 0.671184 |
212bafe27a41b54245941d80d95a7496de06ff19 | 1,053 | ex | Elixir | lib/level10/application.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 37 | 2020-05-05T22:02:51.000Z | 2022-02-08T20:44:06.000Z | lib/level10/application.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 65 | 2020-03-18T01:11:58.000Z | 2021-01-31T03:19:48.000Z | lib/level10/application.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 1 | 2020-05-05T22:02:57.000Z | 2020-05-05T22:02:57.000Z | defmodule Level10.Application do
@moduledoc false
use Application
def start(_type, _args) do
topologies = Application.get_env(:level10, :cluster_topologies, [])
children = [
Level10.StateHandoff,
{Horde.DynamicSupervisor,
[
name: Level10.Games.GameSupervisor,
shutdo... | 27.710526 | 88 | 0.678063 |
212bb9856cfb7719f2882bb53d552d74a71cada3 | 82 | exs | Elixir | test/views/layout_view_test.exs | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | defmodule PokeTeamDb.LayoutViewTest do
use PokeTeamDb.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
212bbe42e6d6fb85e30fbd026c63e50c25db64da | 474 | exs | Elixir | test/test_helper.exs | instinctscience/coder_ring | dfa3e66893e15c6e69974cfe709d3380d01bf7d1 | [
"MIT"
] | null | null | null | test/test_helper.exs | instinctscience/coder_ring | dfa3e66893e15c6e69974cfe709d3380d01bf7d1 | [
"MIT"
] | null | null | null | test/test_helper.exs | instinctscience/coder_ring | dfa3e66893e15c6e69974cfe709d3380d01bf7d1 | [
"MIT"
] | null | null | null | ExUnit.start()
# Ensure that symlink to custom ecto priv directory exists.
source = CoderRing.Test.Repo.config()[:priv]
target = Application.app_dir(:coder_ring, source)
File.rm_rf(target)
File.mkdir_p(target)
File.rmdir(target)
:ok = :file.make_symlink(Path.expand(source), target)
# Run migrations.
Mix.Task.run("ec... | 26.333333 | 59 | 0.721519 |
212bf710d5bd0d45d76105f68a1069dcfccbdeb2 | 1,906 | exs | Elixir | mix.exs | GhAc-2017/RoiimPpaysafe | 9bf5f899bce0ec5045c5eee0a358ffa2d3c29d81 | [
"MIT"
] | null | null | null | mix.exs | GhAc-2017/RoiimPpaysafe | 9bf5f899bce0ec5045c5eee0a358ffa2d3c29d81 | [
"MIT"
] | null | null | null | mix.exs | GhAc-2017/RoiimPpaysafe | 9bf5f899bce0ec5045c5eee0a358ffa2d3c29d81 | [
"MIT"
] | null | null | null | defmodule RoiimPpaysafe.MixProject do
use Mix.Project
def project do
[
app: :roiimPpaysafe,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: al... | 28.029412 | 84 | 0.577125 |
212c02299cad9680191237ace240ccc36903e192 | 1,724 | ex | Elixir | clients/jobs/lib/google_api/jobs/v3/model/completion_result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/jobs/lib/google_api/jobs/v3/model/completion_result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/jobs/lib/google_api/jobs/v3/model/completion_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... | 32.528302 | 119 | 0.707077 |
212c294787aa1b2abb3e28718553cb71743f4b49 | 4,371 | ex | Elixir | lib/codes/codes_d72.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d72.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d72.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_D72 do
alias IcdCode.ICDCode
def _D720 do
%ICDCode{full_code: "D720",
category_code: "D72",
short_code: "0",
full_name: "Genetic anomalies of leukocytes",
short_name: "Genetic anomalies of leukocytes",
category_name: "Genetic anoma... | 30.78169 | 73 | 0.596202 |
212c4f8b17c7f880aa9d20338e7fe55be4e35312 | 4,657 | exs | Elixir | apps/ello_v2/test/views/post_meta_attributes_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_v2/test/views/post_meta_attributes_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_v2/test/views/post_meta_attributes_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.V2.PostMetaAttributesViewTest do
use Ello.V2.ConnCase, async: true
import Phoenix.View #For render/2
alias Ello.V2.PostMetaAttributesView
alias Ello.Core.Content.{Asset}
setup %{conn: conn} do
archer = Script.build(:archer)
asset1 = Asset.build_attachment(Factory.build(:asset, %{id: 1}... | 38.172131 | 117 | 0.609835 |
212c85879f858cd0d5c12b30f4b3ad99cb3e2a42 | 34,356 | ex | Elixir | lib/phoenix_live_view/helpers.ex | ibarchenkov/phoenix_live_view | e6004d850cd04c55cc8138b5e41a427de1881e7b | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | ibarchenkov/phoenix_live_view | e6004d850cd04c55cc8138b5e41a427de1881e7b | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | ibarchenkov/phoenix_live_view | e6004d850cd04c55cc8138b5e41a427de1881e7b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Helpers do
@moduledoc """
A collection of helpers to be imported into your views.
"""
# TODO: Convert all functions with the `live_` prefix to function components?
alias Phoenix.LiveView
alias Phoenix.LiveView.{Component, Socket, Static}
@doc """
Provides `~L` sigil with HT... | 31.577206 | 102 | 0.643672 |
212c944e5ec80115dc1d3c771811e7e458059207 | 1,524 | exs | Elixir | test/uartless_test.exs | x0id/circuits_uart | 6c53775b62901f6f3dd58d200a4a269c62cf5d4c | [
"Apache-2.0"
] | 87 | 2018-11-30T04:51:04.000Z | 2022-03-13T23:16:09.000Z | test/uartless_test.exs | x0id/circuits_uart | 6c53775b62901f6f3dd58d200a4a269c62cf5d4c | [
"Apache-2.0"
] | 41 | 2019-01-02T19:19:03.000Z | 2022-03-23T21:52:42.000Z | test/uartless_test.exs | kf8a/circuits_uart | 5bf080669cd58fe4114acd27f263aa08a11fcbe7 | [
"Apache-2.0"
] | 25 | 2018-11-30T06:02:11.000Z | 2021-12-07T20:42:09.000Z | defmodule UARTlessTest do
use ExUnit.Case
alias Circuits.UART
# These tests all run with or without a serial port
test "enumerate returns a map" do
ports = UART.enumerate()
assert is_map(ports)
end
test "start_link without arguments works" do
{:ok, pid} = UART.start_link()
assert is_pid(p... | 28.222222 | 68 | 0.649606 |
212cabfea1698206295f040a813c5778dd4beaff | 2,035 | ex | Elixir | lib/fexr_yahoo/utils.ex | Schultzer/fexr_yahoo | ad3d75098b4798b82d19de5d8dc757d7a6e5c26f | [
"MIT",
"Unlicense"
] | null | null | null | lib/fexr_yahoo/utils.ex | Schultzer/fexr_yahoo | ad3d75098b4798b82d19de5d8dc757d7a6e5c26f | [
"MIT",
"Unlicense"
] | null | null | null | lib/fexr_yahoo/utils.ex | Schultzer/fexr_yahoo | ad3d75098b4798b82d19de5d8dc757d7a6e5c26f | [
"MIT",
"Unlicense"
] | null | null | null | defmodule FexrYahoo.Utils do
@moduledoc """
Documentation for FexrYahoo.Utils.
"""
@doc false
@spec format(String.t, list(String.t)) :: map | no_return
def format({:ok, json}, symbols) do
json
|> Poison.decode!
|> extract_rates
|> format_rates
|> serialize
|> map_merge
|> filter... | 35.086207 | 120 | 0.630467 |
212cc3ceef3e1421586a9afd81a944487c5f6730 | 2,371 | exs | Elixir | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/positions_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/positions_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/test/tai/venue_adapters/bitmex/stream/process_auth/positions_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.PositionsTest do
use Tai.TestSupport.DataCase, async: false
alias Tai.VenueAdapters.Bitmex.Stream.ProcessAuth
@venue :my_venue
@credential :main
@received_at Tai.Time.monotonic_time()
setup do
start_supervised!({ProcessAuth, [venue: @venue, credent... | 28.22619 | 85 | 0.606073 |
212cd1f1e79b646460450e99035a73ff1b11b093 | 249 | ex | Elixir | lib/portal.ex | anirudhsama/phoenix-starter | caa0a71ce087e42d389ee1cdccd9ff7b74922571 | [
"MIT"
] | 6 | 2018-07-12T20:50:21.000Z | 2021-04-10T19:53:10.000Z | lib/portal.ex | anirudhsama/phoenix-starter | caa0a71ce087e42d389ee1cdccd9ff7b74922571 | [
"MIT"
] | null | null | null | lib/portal.ex | anirudhsama/phoenix-starter | caa0a71ce087e42d389ee1cdccd9ff7b74922571 | [
"MIT"
] | 2 | 2018-01-30T22:52:01.000Z | 2018-02-05T12:55:28.000Z | defmodule Portal do
@moduledoc """
Portal 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
| 24.9 | 66 | 0.751004 |
212cf8ee93514a96ef458bff2957f0ec183bc586 | 3,110 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/connect_settings.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/connect_settings.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/connect_settings.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 50.16129 | 500 | 0.707074 |
212d19cfa64b1b610a0f3eeaada78807967d69b2 | 1,440 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/comment_actor_verification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus/lib/google_api/plus/v1/model/comment_actor_verification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus/lib/google_api/plus/v1/model/comment_actor_verification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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... | 30.638298 | 109 | 0.743056 |
212d41d56b11beda6e72681a02502a1c4304fde0 | 817 | ex | Elixir | example/lib/nested_web/views/error_helpers.ex | OnigiriJack/ecto_nested_changeset | 256f330ee89c76ffbd738ffa4dc021cc1ae58ed2 | [
"MIT"
] | null | null | null | example/lib/nested_web/views/error_helpers.ex | OnigiriJack/ecto_nested_changeset | 256f330ee89c76ffbd738ffa4dc021cc1ae58ed2 | [
"MIT"
] | 10 | 2022-02-08T18:33:17.000Z | 2022-03-24T18:34:04.000Z | example/lib/nested_web/views/error_helpers.ex | OnigiriJack/ecto_nested_changeset | 256f330ee89c76ffbd738ffa4dc021cc1ae58ed2 | [
"MIT"
] | null | null | null | defmodule NestedWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 26.354839 | 69 | 0.660955 |
212d583127ebed5f8149816724c0e6c8007a5c9c | 1,259 | ex | Elixir | test/support/test_helpers.ex | kianmeng/toxiproxy_ex | 862e3257f02ac4a478780ae64c0130f88711e517 | [
"MIT"
] | 38 | 2020-10-21T10:53:23.000Z | 2021-12-01T06:38:10.000Z | test/support/test_helpers.ex | kianmeng/toxiproxy_ex | 862e3257f02ac4a478780ae64c0130f88711e517 | [
"MIT"
] | 3 | 2020-10-19T14:41:07.000Z | 2020-10-20T13:44:48.000Z | test/support/test_helpers.ex | kianmeng/toxiproxy_ex | 862e3257f02ac4a478780ae64c0130f88711e517 | [
"MIT"
] | 1 | 2020-10-19T14:35:03.000Z | 2020-10-19T14:35:03.000Z | defmodule ToxiproxyEx.TestHelpers do
alias ToxiproxyEx.EchoServer
def connect_to_proxy(proxy) do
[hostname, port] = String.split(proxy.listen, ":")
hostname = String.to_charlist(hostname)
{port, _rem} = Integer.parse(port)
:gen_tcp.connect(hostname, port, [
:binary,
packet: :line,
... | 20.639344 | 61 | 0.602065 |
212d605c7ee88da8cda5b3007ee08ec7ef001e84 | 1,086 | ex | Elixir | lib/mazaryn_web/live/post_live/index.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | lib/mazaryn_web/live/post_live/index.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | lib/mazaryn_web/live/post_live/index.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | defmodule MazarynWeb.PostLive.Index do
use MazarynWeb, :live_view
alias Core.PostClient, as: PostClient
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, :posts, list_posts())}
end
@impl true
def handle_params(params, _url, socket) do
{:noreply, apply_action(socket, socket... | 23.608696 | 72 | 0.668508 |
212d6f64fcfaa781faac3072367e7281d59f0363 | 3,295 | exs | Elixir | apps/resource_manager/test/resource_manager/credentials/totps_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/resource_manager/test/resource_manager/credentials/totps_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/resource_manager/test/resource_manager/credentials/totps_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule ResourceManager.Credentials.TOTPsTest do
@moduledoc false
use ResourceManager.DataCase, async: true
alias ResourceManager.Credentials.Schemas.TOTP
alias ResourceManager.Credentials.TOTPs
setup do
user = insert!(:user)
totp = insert!(:totp, user_id: user.id)
{:ok, user: user, totp: to... | 29.159292 | 97 | 0.642185 |
212d7ce9806ab6996a5decdbb3fa8ceee4249bf6 | 1,879 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/cloud_audit_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/cloud_audit_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/cloud_audit_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.796296 | 187 | 0.745609 |
212d875ec9a6f48ff89cc332947d0a4a12697dee | 11,310 | ex | Elixir | lib/web/command.ex | substantial/bors-ng | 4f2a30f83f7024cc851c8bed8589f82d42fd5ae5 | [
"Apache-2.0"
] | null | null | null | lib/web/command.ex | substantial/bors-ng | 4f2a30f83f7024cc851c8bed8589f82d42fd5ae5 | [
"Apache-2.0"
] | null | null | null | lib/web/command.ex | substantial/bors-ng | 4f2a30f83f7024cc851c8bed8589f82d42fd5ae5 | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.Command do
@moduledoc """
Resolve magic comments.
# try
The bors comment CLI allows parameters to be passed to try.
Assuming the activation phrase is "bors try", you can do things like this:
bors try --layout
And the commit will come out like:
Try #13: --layout
Your buil... | 27.057416 | 79 | 0.610168 |
212d9d0c421b55c06be8e0835ae10c8221ed3c25 | 1,988 | exs | Elixir | apps/legion/test/generic/types/cidr_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/test/generic/types/cidr_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/test/generic/types/cidr_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Types.CIDRTest do
use Legion.DataCase
alias Legion.Types.CIDR
setup do
{:ok, addr: %Postgrex.INET{address: {192, 168, 0, 0}, netmask: 24}}
end
describe "casting" do
test "with a native type", %{addr: addr} do
assert CIDR.cast(addr) == {:ok, addr}
end
test "with a val... | 27.611111 | 91 | 0.637324 |
212da3f0e2dff98cd7ddf50685da849357ad83c3 | 10,571 | ex | Elixir | lib/elixir/lib/module/dispatch_tracker.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/dispatch_tracker.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/dispatch_tracker.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | # This is a module Elixir responsible for tracking
# calls in order to extract Elixir modules' behaviour
# during compilation time.
#
# ## Implementation
#
# The implementation uses the digraph module to track
# all dependencies. The graph starts with one main vertice:
#
# * `:local` - points to local functions
#
# We ... | 28.961644 | 99 | 0.657743 |
212dc87869ad4408f07bc706042be8074a6ac7ea | 585 | ex | Elixir | lib/songmate/music_profile/artist_preference.ex | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | lib/songmate/music_profile/artist_preference.ex | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | lib/songmate/music_profile/artist_preference.ex | jimytc/music-dating-app | ec46ef2ffa4fb263a8b283a96495b0643467697c | [
"MIT"
] | null | null | null | defmodule Songmate.MusicProfile.ArtistPreference do
use Ecto.Schema
import Ecto.Changeset
alias Songmate.Music.Artist
alias Songmate.MusicProfile.Profile
schema "artist_preferences" do
field(:rank, :integer)
belongs_to(:music_profile, Profile)
belongs_to(:artist, Artist)
timestamps()
end... | 22.5 | 57 | 0.721368 |
212dcf42992e1cb750f17af646a5a6ffe4ade93a | 311 | ex | Elixir | lib/spelt/auth/token.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | lib/spelt/auth/token.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | lib/spelt/auth/token.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | defmodule Spelt.Auth.Token do
@moduledoc """
Configures the generation and validation of JWTs
"""
use Joken.Config, default_signer: :default
@issuer "https://chat.spelt.io/"
def token_config do
# expire in 1 hour
default_claims(default_exp: 60 * 60, iss: @issuer, aud: @issuer)
end
end
| 20.733333 | 68 | 0.694534 |
212e0ec6004a1a8a11b3981f9990c89a4b2da550 | 1,123 | ex | Elixir | test/support/channel_case.ex | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | 2 | 2021-03-10T20:23:26.000Z | 2021-05-11T15:56:49.000Z | test/support/channel_case.ex | meltingice/conductor | 630440adc1081a0991d3dba17ced775a9dd05055 | [
"MIT"
] | 1 | 2020-06-05T02:34:58.000Z | 2020-06-05T02:34:58.000Z | defmodule ConductorWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts... | 27.390244 | 71 | 0.730187 |
212e0f57eb2e6db5accaf1a37b71f5cb0b588978 | 902 | exs | Elixir | temperature_logger_umbrella/apps/temperature_logger_server/mix.exs | johnc219/temperature-logger | f8b7d1dbb29f4580588304a98b0c9f5d6b785d3b | [
"MIT"
] | null | null | null | temperature_logger_umbrella/apps/temperature_logger_server/mix.exs | johnc219/temperature-logger | f8b7d1dbb29f4580588304a98b0c9f5d6b785d3b | [
"MIT"
] | 1 | 2019-03-08T23:49:46.000Z | 2019-03-08T23:49:46.000Z | temperature_logger_umbrella/apps/temperature_logger_server/mix.exs | johnc219/temperature-logger | f8b7d1dbb29f4580588304a98b0c9f5d6b785d3b | [
"MIT"
] | null | null | null | defmodule TemperatureLoggerServer.Mixfile do
use Mix.Project
def project do
[
app: :temperature_logger_server,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
... | 25.055556 | 88 | 0.596452 |
212e1142dfa94414fabcf3fc02175c2b01ed0e51 | 1,735 | exs | Elixir | config/test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | 3 | 2021-11-08T15:19:19.000Z | 2021-11-11T03:18:35.000Z | config/test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | config/test.exs | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | import Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
co... | 29.40678 | 86 | 0.75562 |
212e3c5cdfa4893c1246786cd71dfe409ffe20ed | 12,463 | exs | Elixir | test/phoenix_live_view_test.exs | JonRowe/phoenix_live_view | 2895b18996102ca101bc8f8db86a67e478d90914 | [
"MIT"
] | null | null | null | test/phoenix_live_view_test.exs | JonRowe/phoenix_live_view | 2895b18996102ca101bc8f8db86a67e478d90914 | [
"MIT"
] | null | null | null | test/phoenix_live_view_test.exs | JonRowe/phoenix_live_view | 2895b18996102ca101bc8f8db86a67e478d90914 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewUnitTest do
use ExUnit.Case, async: true
import Phoenix.LiveView
alias Phoenix.LiveView.{Utils, Socket}
alias Phoenix.LiveViewTest.Endpoint
@socket Utils.configure_socket(
%Socket{
endpoint: Endpoint,
router: Phoenix.LiveViewTest.Router,
... | 33.412869 | 126 | 0.599454 |
212e5e03e54fb4448990e9af80f136776fcd7d6c | 1,210 | ex | Elixir | lib/infinity_one/ucc_pub_sub/api.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | lib/infinity_one/ucc_pub_sub/api.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | lib/infinity_one/ucc_pub_sub/api.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule InfinityOne.OnePubSub.Api do
defmacro __using__(_) do
quote do
import unquote(__MODULE__)
end
end
defmacro handle_callback(topic) do
quote do
def handle_info({unquote(topic), event, payload,
{mod, fun}} = msg, %{assigns: %{user_id: user_id}} = socket) do
if not ... | 27.5 | 83 | 0.658678 |
212e7b9509f4887a3edd0ff8c19117a6cc7153f9 | 9,607 | exs | Elixir | test/epi_contacts_web/acceptance/questionnaire_test.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | test/epi_contacts_web/acceptance/questionnaire_test.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | test/epi_contacts_web/acceptance/questionnaire_test.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContactsWeb.Acceptance.QuestionnaireTest do
use EpiContactsWeb.AcceptanceCase, async: false
use Oban.Testing, repo: EpiContacts.Repo
import ExUnit.CaptureLog
import Mox
alias CommcareAPI.FakeCommcare
alias EpiContacts.HTTPoisonMock
alias EpiContactsWeb.Assertions.{
AddContact,
Conf... | 33.242215 | 151 | 0.660248 |
212eac9daccc22e4a989dd46a1b716ed446853c3 | 1,099 | exs | Elixir | mix.exs | phereford/exw3 | 71ccc9ee61b8e2ad69fb07d0561e4760256c281d | [
"Apache-2.0"
] | null | null | null | mix.exs | phereford/exw3 | 71ccc9ee61b8e2ad69fb07d0561e4760256c281d | [
"Apache-2.0"
] | null | null | null | mix.exs | phereford/exw3 | 71ccc9ee61b8e2ad69fb07d0561e4760256c281d | [
"Apache-2.0"
] | null | null | null | defmodule ExW3.MixProject do
use Mix.Project
def project do
[
app: :exw3,
version: "0.7.0",
elixir: "~> 1.10",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "exw3... | 21.54902 | 60 | 0.523203 |
212ebdc615586ce5afcbb93201260f6749d97a9b | 2,089 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/content_categories_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/content_categories_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/content_categories_list_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... | 39.415094 | 204 | 0.74629 |
212ecc631e6f4d13148ff79429e380374d925b9f | 359 | exs | Elixir | priv/scripts/add_owner.exs | Jks15063/hexpm | 3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b | [
"Apache-2.0"
] | 2 | 2020-03-01T18:23:33.000Z | 2021-01-15T10:15:45.000Z | priv/scripts/add_owner.exs | yitzackRabin/hexpm | 5bf8c491e5aa764b2c60a3aab3e90f814eb3f471 | [
"Apache-2.0"
] | 3 | 2020-06-30T11:24:41.000Z | 2020-08-05T15:47:34.000Z | priv/scripts/add_owner.exs | yitzackRabin/hexpm | 5bf8c491e5aa764b2c60a3aab3e90f814eb3f471 | [
"Apache-2.0"
] | null | null | null | destructure [package, username_or_email, level], System.argv()
alias Hexpm.Repository.{Owners, Packages}
alias Hexpm.Accounts.Users
package = Packages.get("hexpm", package)
user = Users.get(username_or_email, [:emails])
params = if level, do: %{"level" => level}, else: %{}
IO.inspect(Owners.add(package, user, params... | 32.636364 | 81 | 0.715877 |
212ed17363a10b10efdfdb8d1577c953b9f193f2 | 3,314 | ex | Elixir | apps/andi/lib/andi/services/auth0_management_service.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/lib/andi/services/auth0_management_service.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/lib/andi/services/auth0_management_service.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Andi.Services.Auth0Management do
@moduledoc """
Service to get a temporary access token for the auth0 managment api and interface with the api
"""
use Properties, otp_app: :andi
use Tesla
require Logger
getter(:auth0, generic: true)
def get_roles() do
url = Keyword.fetch!(auth0(), :audi... | 31.865385 | 135 | 0.609535 |
212f109b9bdcb1b81dc4823a773e3d52fd4d4e12 | 2,918 | ex | Elixir | lib/storeHall_web/controllers/user_controller.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | lib/storeHall_web/controllers/user_controller.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | lib/storeHall_web/controllers/user_controller.ex | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | defmodule StoreHallWeb.UserController do
use StoreHallWeb, :controller
alias StoreHallWeb.AuthController
alias StoreHall.Users
alias StoreHall.Marketing.Mails
alias StoreHall.Ratings
alias StoreHall.Comments
alias StoreHall.Images
alias StoreHall.Plugs.SetUser
alias StoreHall.EncodeHelper
plug :ch... | 29.18 | 83 | 0.655586 |
212f898f64a0ebb87603dd24043bfc14ba17a37d | 3,886 | ex | Elixir | battleline_bot/lib/game_engine.ex | pviafore/battleline-ai-bot | 1103e71625ae42ad06c188c7987f58b267cae1d9 | [
"MIT"
] | null | null | null | battleline_bot/lib/game_engine.ex | pviafore/battleline-ai-bot | 1103e71625ae42ad06c188c7987f58b267cae1d9 | [
"MIT"
] | null | null | null | battleline_bot/lib/game_engine.ex | pviafore/battleline-ai-bot | 1103e71625ae42ad06c188c7987f58b267cae1d9 | [
"MIT"
] | null | null | null | defmodule GameEngine do
defmacro __using__(_opts) do
quote do
import GameEngine
@fields []
@before_compile GameEngine
end
end
defmacro field field_name, initial do
quote do
@fields [{unquote(field_name), unquote(initial)} | @fields]
end
end
defmacro __before_compile__(_... | 32.655462 | 158 | 0.628667 |
212f9787b11b50a2074010d51cb17378898fe849 | 3,874 | exs | Elixir | test/chat_api_web/controllers/event_subscription_controller_test.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | test/chat_api_web/controllers/event_subscription_controller_test.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | test/chat_api_web/controllers/event_subscription_controller_test.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApiWeb.EventSubscriptionControllerTest do
use ChatApiWeb.ConnCase, async: true
import ChatApi.Factory
alias ChatApi.EventSubscriptions.EventSubscription
@create_attrs params_for(:event_subscription)
@update_attrs %{
scope: "some updated scope",
webhook_url: "some updated webhook_url"
... | 32.554622 | 98 | 0.652039 |
212f9cd57211ac273252df1a74ad6b36e5646153 | 1,818 | exs | Elixir | config/prod.exs | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | config/prod.exs | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | config/prod.exs | henrikcoll/sengo | d5ef840843bffbc858dc18d331e4ebc74e6837cb | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 34.961538 | 66 | 0.70187 |
212ff877a21a6f11f646a5ce74e35c736fd6ef78 | 2,143 | exs | Elixir | test/plugs/authentication_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 1,047 | 2016-05-11T16:09:29.000Z | 2022-03-29T17:17:26.000Z | test/plugs/authentication_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 132 | 2016-10-28T19:44:26.000Z | 2020-12-06T21:16:53.000Z | test/plugs/authentication_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 70 | 2016-10-26T00:11:05.000Z | 2022-01-02T21:43:06.000Z | defmodule Kitto.PlugAuthenticationTest do
use ExUnit.Case
use Plug.Test
@opts Kitto.Plugs.Authentication.init([])
# NOTE: On tests that test whether the request is granted, the assertion is
# a little bit awkward. The test specifies that what's expected is that the
# connection should not be touched by th... | 33.484375 | 81 | 0.711619 |
212ffa76fcd5446b405c5db0a00d234e42eb73ba | 135 | ex | Elixir | lib/mppm_web/controllers/page_controller.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | 6 | 2020-11-18T10:10:51.000Z | 2021-03-17T14:28:36.000Z | lib/mppm_web/controllers/page_controller.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | 6 | 2020-11-10T21:50:43.000Z | 2021-03-04T09:41:22.000Z | lib/mppm_web/controllers/page_controller.ex | QBonaventure/mppm | 06047083e3f56e750b60a2c2bd2c430228066e63 | [
"MIT"
] | null | null | null | defmodule MppmWeb.PageController do
use MppmWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 16.875 | 35 | 0.725926 |
213002d23d9f922c841f6c5070625ff7f595224e | 1,128 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/folder_operation_error.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/folder_operation_error.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/folder_operation_error.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 30.486486 | 92 | 0.759752 |
213028450c1838b9a55654bf1e78c2f21d2bc735 | 1,427 | exs | Elixir | test/integration/adapters/mailgun_test.exs | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | 1,214 | 2016-03-21T16:56:42.000Z | 2022-03-31T19:10:11.000Z | test/integration/adapters/mailgun_test.exs | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | 399 | 2016-03-21T23:11:32.000Z | 2022-03-04T10:52:28.000Z | test/integration/adapters/mailgun_test.exs | nash-io/swoosh | 05c8676890da07403225c302f9a069fc7d221330 | [
"MIT"
] | 208 | 2016-03-21T21:12:11.000Z | 2022-03-04T06:35:33.000Z | defmodule Swoosh.Integration.Adapters.MailgunTest do
use ExUnit.Case, async: true
import Swoosh.Email
@moduletag integration: true
setup_all do
config = [
domain: System.get_env("MAILGUN_DOMAIN"),
api_key: System.get_env("MAILGUN_API_KEY")
]
{:ok, config: config}
end
test "simple... | 32.431818 | 89 | 0.635599 |
21302e37142b313a45324eccf28ac1627a4f2d7c | 2,151 | ex | Elixir | lib/nys_etl/engines/e1/processor.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | lib/nys_etl/engines/e1/processor.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | lib/nys_etl/engines/e1/processor.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Engines.E1.Processor do
@moduledoc """
Given the raw data of a row from an ECLRS file, create a
TestResult record.
## Outcomes
* Checksum of the row has already been seen. Update the `last_seen_file_id` for the existing
record
* Checksum has not been seen. Create a new TestResult with... | 26.555556 | 94 | 0.60623 |
21303444d025dda3740da505abc875d1af88ab81 | 499 | ex | Elixir | lib/bupe/builder/templates.ex | kianmeng/bupe | 8662306a5e8b6ad80b309d7d0b73629d273252bd | [
"Apache-2.0"
] | 79 | 2016-08-02T13:17:09.000Z | 2021-12-24T21:47:28.000Z | lib/bupe/builder/templates.ex | kianmeng/bupe | 8662306a5e8b6ad80b309d7d0b73629d273252bd | [
"Apache-2.0"
] | 48 | 2019-07-22T15:00:30.000Z | 2022-02-28T11:17:36.000Z | lib/bupe/builder/templates.ex | kianmeng/bupe | 8662306a5e8b6ad80b309d7d0b73629d273252bd | [
"Apache-2.0"
] | 4 | 2017-04-08T17:29:35.000Z | 2021-11-29T01:33:23.000Z | defmodule BUPE.Builder.Templates do
@moduledoc false
require EEx
defp get_content_path(%{href: href}) do
path = Path.basename(href)
"content/#{path}"
end
templates = [
content_template: [:config],
ncx_template: [:config],
nav_template: [:config],
title_template: [:config]
]
Enu... | 20.791667 | 60 | 0.657315 |
2130477ef89220cad72d22bddcac7698fabb5922 | 587 | ex | Elixir | lib/adyen_checkout_ex/model/merchant_device.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/merchant_device.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/merchant_device.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"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 AdyenCheckoutEx.Model.MerchantDevice do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"os",
:"osVersion",
:"referen... | 19.566667 | 91 | 0.655877 |
213069a00fd37ace12c38c381ac9c12fab07aeb8 | 8,068 | ex | Elixir | lib/xema/castable.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | null | null | null | lib/xema/castable.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | null | null | null | lib/xema/castable.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | null | null | null | defprotocol Xema.Castable do
@moduledoc """
Converts data using the specified schema.
"""
@doc """
Converts the given data using the specified schema.
"""
def cast(value, schema)
end
defimpl Xema.Castable, for: Atom do
use Xema.Castable.Helper
def cast(nil, nil, _module, _schema), do: {:ok, nil}
... | 23.051429 | 98 | 0.549826 |
21309d628a2b34ae00d713a7f768d857451e36ef | 1,925 | ex | Elixir | lib/cards.ex | mfbmina/elixir_cards | 1ec2b9d667c617cef5fbd8f3bf1e6c662635897d | [
"MIT"
] | null | null | null | lib/cards.ex | mfbmina/elixir_cards | 1ec2b9d667c617cef5fbd8f3bf1e6c662635897d | [
"MIT"
] | null | null | null | lib/cards.ex | mfbmina/elixir_cards | 1ec2b9d667c617cef5fbd8f3bf1e6c662635897d | [
"MIT"
] | null | null | null | defmodule Cards do
@moduledoc """
Provides methods to handling decks of cards
"""
@doc """
Returns a list of cards
"""
def create_deck do
values = ["Ace", "Two", "Three"]
suits = ["Spades", "Hearts", "Clubs", "Diamonds"]
for value <- values, suit <- suits do
"#{value} of #{suit}"
... | 21.875 | 89 | 0.612987 |
2130ac5f6bb69c52be52f07202747254c4e30b5d | 13,088 | exs | Elixir | lib/eex/test/eex_test.exs | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | 1 | 2018-12-09T02:58:47.000Z | 2018-12-09T02:58:47.000Z | lib/eex/test/eex_test.exs | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | null | null | null | lib/eex/test/eex_test.exs | ludios/elixir | 1a4018adb9863c1265b306028a6b5d1146479266 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
require EEx
defmodule EExTest.Compiled do
def before_compile do
{__ENV__.line, hd(tl(get_stacktrace()))}
end
EEx.function_from_string(:def, :string_sample, "<%= a + b %>", [:a, :b])
filename = Path.join(__DIR__, "fixtures/eex_template_with_bindings.eex")
E... | 24.647834 | 110 | 0.560972 |
2130aca059d7a4a8e3095a5dddf36071f8097a56 | 1,359 | ex | Elixir | lib/hl7/2.5.1/segments/ft1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/ft1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/segments/ft1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.Segments.FT1 do
@moduledoc false
require Logger
alias HL7.V2_5_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_ft1: nil,
transaction_id: nil,
transaction_batch_id: nil,
transaction_date: DataTypes.Dr,
transaction_posting_date: DataType... | 31.604651 | 68 | 0.715968 |
2130b5d994fb52fde1cc458a4830021b6e00af15 | 2,977 | ex | Elixir | lib/zaryn/beacon_chain/summary_timer.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/beacon_chain/summary_timer.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/beacon_chain/summary_timer.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.BeaconChain.SummaryTimer do
@moduledoc """
Handle the scheduling of the beacon summaries creation
"""
use GenServer
alias Crontab.CronExpression.Parser, as: CronParser
alias Crontab.DateChecker
alias Crontab.Scheduler, as: CronScheduler
@doc """
Create a new summary timer
"""
de... | 27.82243 | 86 | 0.674169 |
2130d92e43cc763634ad962812094ac8a5408b97 | 544 | exs | Elixir | ch04/exmeal/test/exmeal_web/views/meals_view_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ch04/exmeal/test/exmeal_web/views/meals_view_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ch04/exmeal/test/exmeal_web/views/meals_view_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule ExmealWeb.MealsViewTest do
use ExmealWeb.ConnCase, async: true
import Phoenix.View
import Exmeal.Factory
alias Exmeal.Meals.Meal
alias ExmealWeb.MealsView
test "renders create.json" do
meal = build(:meal)
response = render(MealsView, "create.json", meal: meal)
assert %{
... | 21.76 | 59 | 0.584559 |
2130e9c5253aacd6c569b71404008157dde33405 | 3,820 | exs | Elixir | lib/mix/test/mix/tasks/escript_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/escript_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/escript_test.exs | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.EscriptTest do
use MixTest.Case
defmodule Escript do
def project do
[ app: :escripttest,
version: "0.0.1",
escript: [
main_module: Escripttest,
name: "escriptest",
embed_elixir: true
... | 28.939394 | 107 | 0.640838 |
21311bc41b3b35b11cc60f16e19795372d193372 | 309 | ex | Elixir | lib/util.ex | ProtoDef-io/elixir-protodef | 9176d2439d66c713a5db7f57f26dfc5dc18f8d6f | [
"MIT"
] | 2 | 2016-03-31T16:23:39.000Z | 2016-05-20T17:42:38.000Z | lib/util.ex | McEx/ProtoDef | 9176d2439d66c713a5db7f57f26dfc5dc18f8d6f | [
"MIT"
] | 1 | 2016-04-02T08:54:49.000Z | 2016-04-02T08:54:49.000Z | lib/util.ex | McEx/ProtoDef | 9176d2439d66c713a5db7f57f26dfc5dc18f8d6f | [
"MIT"
] | null | null | null | defmodule ProtoDef.Util do
def string_to_existing_atom(string) when is_binary(string) do
try do
{:ok, String.to_existing_atom(string)}
rescue
e in ArgumentError -> :nonexistent
end
end
def camel_string_to_snake_atom(name), do: name |> Macro.underscore |> String.to_atom
end
| 22.071429 | 86 | 0.711974 |
213132933c5a967ef75271f90155c3a12bfc89ca | 1,330 | ex | Elixir | test/support/event_store_case.ex | STUDITEMPS/jehovakel_ex_event_store | 0f3d23ab7f5484bb7ce9427cf06302dc52423b90 | [
"MIT"
] | null | null | null | test/support/event_store_case.ex | STUDITEMPS/jehovakel_ex_event_store | 0f3d23ab7f5484bb7ce9427cf06302dc52423b90 | [
"MIT"
] | 10 | 2020-11-13T02:34:40.000Z | 2022-01-24T02:15:17.000Z | test/support/event_store_case.ex | STUDITEMPS/jehovakel_ex_event_store | 0f3d23ab7f5484bb7ce9427cf06302dc52423b90 | [
"MIT"
] | 2 | 2021-06-28T06:45:55.000Z | 2021-07-05T09:23:25.000Z | defmodule Support.EventStoreCase do
@moduledoc """
Used for Tests using event store
"""
use ExUnit.CaseTemplate
using do
quote do
import JehovakelEx.EventStore,
only: [append_event: 2, append_event: 3, all_events: 2, all_events: 1, all_events: 0],
warn: false
def wait_until(... | 24.181818 | 94 | 0.653383 |
213146bd6f023faf5800f00f756c2eeb2cd78364 | 2,284 | exs | Elixir | test/instream/connection/body_read_error_test.exs | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | 204 | 2015-06-04T06:38:57.000Z | 2022-01-30T08:56:33.000Z | test/instream/connection/body_read_error_test.exs | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | 71 | 2015-05-24T02:08:28.000Z | 2022-01-10T17:13:27.000Z | test/instream/connection/body_read_error_test.exs | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | 41 | 2015-09-05T21:24:04.000Z | 2021-11-10T02:52:48.000Z | defmodule Instream.Connection.BodyReadErrorTest do
use ExUnit.Case, async: true
alias Instream.TestHelpers.Connections.DefaultConnection
defmodule RanchSocketConnection do
use Instream.Connection,
otp_app: :instream,
config: [
loggers: [],
port: 0,
scheme: "http+unix"
... | 24.826087 | 94 | 0.636165 |
21314f84d705f5b7133f2be1dbd3d78f94f08332 | 170 | exs | Elixir | priv/repo/migrations/20190830151044_add-index-to-ideas-assignee_id.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 523 | 2017-03-15T15:21:11.000Z | 2022-03-14T03:04:18.000Z | priv/repo/migrations/20190830151044_add-index-to-ideas-assignee_id.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 524 | 2017-03-16T18:31:09.000Z | 2022-02-26T10:02:06.000Z | priv/repo/migrations/20190830151044_add-index-to-ideas-assignee_id.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 60 | 2017-05-01T18:02:28.000Z | 2022-03-04T21:04:56.000Z | defmodule :"Elixir.RemoteRetro.Repo.Migrations.Add-index-to-ideas-assigneeId" do
use Ecto.Migration
def change do
create index(:ideas, [:assignee_id])
end
end
| 21.25 | 80 | 0.747059 |
21315e4b3b2dcb01c7c697f1f2a9d4f9c80b4e8c | 623 | exs | Elixir | test/use_cases/use_test.exs | chain-partners/definject | 3756551e5e80e07405bb45eacdd51b1482e11ca3 | [
"MIT"
] | 19 | 2020-03-03T14:53:48.000Z | 2020-04-01T16:18:34.000Z | test/use_cases/use_test.exs | chain-partners/definject | 3756551e5e80e07405bb45eacdd51b1482e11ca3 | [
"MIT"
] | 1 | 2020-09-24T19:19:39.000Z | 2020-09-27T23:37:03.000Z | test/use_cases/use_test.exs | trevorite/definject | 3756551e5e80e07405bb45eacdd51b1482e11ca3 | [
"MIT"
] | 2 | 2020-11-19T17:34:19.000Z | 2021-05-16T05:46:22.000Z | defmodule Definject.UseTest do
use ExUnit.Case, async: true
import Definject
defmodule WithNormalFunction do
use Definject
def add(a, b), do: Calc.sum(a, b)
end
test "with normal function" do
assert WithNormalFunction.add(1, 1) == 2
assert WithNormalFunction.add(1, 1, mock(%{&Calc.sum/2 => ... | 21.482759 | 73 | 0.651685 |
21316ac40c483241c38932be0d26092569602037 | 1,562 | ex | Elixir | lib/ex_stone_openbank/consents.ex | duzzifelipe/ex-stone-openbank | 5a0faa547c3aa3d7f3842739e50cca6b14337124 | [
"Apache-2.0"
] | null | null | null | lib/ex_stone_openbank/consents.ex | duzzifelipe/ex-stone-openbank | 5a0faa547c3aa3d7f3842739e50cca6b14337124 | [
"Apache-2.0"
] | null | null | null | lib/ex_stone_openbank/consents.ex | duzzifelipe/ex-stone-openbank | 5a0faa547c3aa3d7f3842739e50cca6b14337124 | [
"Apache-2.0"
] | null | null | null | defmodule ExStoneOpenbank.Consents do
@moduledoc """
Consent is the way to request access to a resource in Stone Open Bank API.
"""
alias ExStoneOpenbank.Config
defmodule Token do
@moduledoc """
Token configuration for the consent link.
"""
use Joken.Config
alias ExStoneOpenbank.Config
... | 28.4 | 81 | 0.645967 |
21317481f669f8a99b4b867ad8951e80edd830b4 | 1,117 | ex | Elixir | lib/starjumps_web/websockets/starjump_helper.ex | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | 4 | 2021-02-22T04:05:29.000Z | 2022-01-25T18:03:04.000Z | lib/starjumps_web/websockets/starjump_helper.ex | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | null | null | null | lib/starjumps_web/websockets/starjump_helper.ex | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | 1 | 2021-12-16T15:45:43.000Z | 2021-12-16T15:45:43.000Z | defmodule StarjumpsWeb.Websockets.StarjumpHelper do
@moduledoc """
Greases the wheels of the start jump animation
"""
alias Starjumps.JumpRates
alias StarjumpsWeb.Websockets.StarjumpSocket
@jump_rate_options [
{"100ms", 100},
{"1/4 sec", 250},
{"1/2 sec", 500},
{"1 sec", 1_000},
{"2 se... | 25.976744 | 72 | 0.662489 |
2131757d1a7787b980d4f5f4bd7cc547f4241246 | 4,715 | exs | Elixir | test/uiar/finder_test.exs | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | 7 | 2019-12-16T02:43:06.000Z | 2022-02-08T21:49:54.000Z | test/uiar/finder_test.exs | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | null | null | null | test/uiar/finder_test.exs | s-capybara/uiar | 5a5d71b87506d5ac1e9923bc5d23cf4f96070e76 | [
"MIT"
] | 1 | 2020-02-24T17:10:22.000Z | 2020-02-24T17:10:22.000Z | defmodule Uiar.FinderTest do
use ExUnit.Case
alias Uiar.Finder
test "raises error if unable to parse" do
source = """
defmodule Example do
alias Foo.{A, B}
"""
assert {:error, errors} = Finder.find_blocks(source)
assert [%Uiar.Error{line: 3}] = errors
end
test "finds single line" d... | 21.334842 | 79 | 0.410817 |
2131b4424e49bd4e8d2713338a52e6081c309eaa | 2,326 | exs | Elixir | priv/repo/migrations/20160829125439_create_item_food.exs | ZURASTA/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 1 | 2017-06-15T11:20:27.000Z | 2017-06-15T11:20:27.000Z | priv/repo/migrations/20160829125439_create_item_food.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | null | null | null | priv/repo/migrations/20160829125439_create_item_food.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 2 | 2017-07-25T10:16:19.000Z | 2017-08-02T06:54:22.000Z | defmodule Bonbon.Repo.Migrations.CreateItem.Food do
use Ecto.Migration
import Translecto.Migration
def change do
create table(:food_content_translations, primary_key: false) do
translation
add :name, :string,
null: false#,
# comment: "The loc... | 24.484211 | 85 | 0.511608 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.