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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
211c676f0932b1a2d5ba76fc4bbebda623476edc | 2,245 | ex | Elixir | lib/ex_clubhouse/api/member.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | lib/ex_clubhouse/api/member.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | lib/ex_clubhouse/api/member.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Api.Member do
@moduledoc """
Member Api
"""
alias ExClubhouse.Ops
alias ExClubhouse.{Client, Session, Config}
alias ExClubhouse.Parse.Parser
##############################################
### Default config based utility functions ###
#########################################... | 31.619718 | 131 | 0.602227 |
211c7d3574a96fd43982a1e6addc4cb62b3d5539 | 2,443 | ex | Elixir | lib/astarte_core/mapping/reliability.ex | Annopaolo/astarte_core | 8b3af2871e9ee63ec1f6f42c5a86045fd0c123af | [
"Apache-2.0"
] | 16 | 2018-02-02T14:07:10.000Z | 2021-02-03T13:57:30.000Z | lib/astarte_core/mapping/reliability.ex | Annopaolo/astarte_core | 8b3af2871e9ee63ec1f6f42c5a86045fd0c123af | [
"Apache-2.0"
] | 62 | 2019-03-14T15:52:12.000Z | 2022-03-22T10:34:56.000Z | lib/astarte_core/mapping/reliability.ex | Annopaolo/astarte_core | 8b3af2871e9ee63ec1f6f42c5a86045fd0c123af | [
"Apache-2.0"
] | 9 | 2018-02-02T09:55:06.000Z | 2021-03-04T15:15:08.000Z | #
# This file is part of Astarte.
#
# Copyright 2017-2018 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 25.989362 | 98 | 0.679083 |
211c95f1206dc47501c116256712c5d2ee9f8451 | 3,132 | exs | Elixir | imdb_data/config/runtime.exs | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | imdb_data/config/runtime.exs | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | 2 | 2016-03-10T03:04:11.000Z | 2017-02-11T17:43:44.000Z | imdb_data/config/runtime.exs | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 38.195122 | 82 | 0.703704 |
211cb88a019bf9f2cb8cc1c5bfcb203e8e314979 | 17,796 | ex | Elixir | lib/elixir/lib/inspect/algebra.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule Inspect.Opts do
@moduledoc """
Defines the Inspect.Opts used by the Inspect protocol.
The following fields are available:
* `:structs` - when false, structs are not formatted by the inspect
protocol, they are instead printed as maps, defaults to true.
* `:binaries` - when `:as_strings` ... | 31.441696 | 103 | 0.607833 |
211cc6d70750d93573cae1d2f7984b9f9243571d | 4,212 | exs | Elixir | test/radiator/directory/title_slug_test.exs | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | 1 | 2021-03-02T16:59:40.000Z | 2021-03-02T16:59:40.000Z | test/radiator/directory/title_slug_test.exs | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | test/radiator/directory/title_slug_test.exs | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | defmodule Radiator.Directory.TitleSlugTest do
use Radiator.DataCase, async: true
alias Radiator.Directory.{Episode, Network, Podcast, TitleSlug}
import Radiator.Factory
describe "get_sources/2" do
test "extracts the title of a given Network changeset" do
changeset = Network.changeset(%Network{}, %{... | 35.694915 | 92 | 0.6783 |
211cdd2206629840245521f6b0a78285c90edeb4 | 5,342 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_agent.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_agent.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_agent.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 48.126126 | 153 | 0.70292 |
211cfc89e83923dc28fdc5fd4b3c55c430fca3fb | 397 | ex | Elixir | lib/types/xml_signature_struct.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/types/xml_signature_struct.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/types/xml_signature_struct.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Messages.XMLSignatureStruct do
@derive [Poison.Encoder]
@moduledoc """
This structure is for the SetVouchers method
and conains the information needed to build an XML-Signature
document containing options
"""
defstruct signature_value: nil, # string
key_info: ... | 26.466667 | 69 | 0.692695 |
211d1762e7e0a43fdcdf8f841ab1fa83e5a1658d | 1,983 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_page_info_form_info.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_v3_page_info_form_info.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_v3_page_info_form_info.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... | 35.410714 | 301 | 0.756934 |
211d5f23630c24b342ff849d8655fec186ad40b2 | 2,003 | exs | Elixir | test/murnau/adapter/labor_test.exs | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"MIT"
] | null | null | null | test/murnau/adapter/labor_test.exs | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"MIT"
] | null | null | null | test/murnau/adapter/labor_test.exs | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"MIT"
] | null | null | null | defmodule Murnau.Adapter.LaborTest do
alias Murnau.Adapter.Labor
use ExUnit.Case, async: true
require Logger
setup do
{:ok, server} = Murnau.Labor.HTTPTest.start_link
{:ok, server: server}
end
test "close command is supported" do
{:ok, pid} = Labor.start_link(0)
commands = Murnau.Adapter.L... | 31.296875 | 70 | 0.674488 |
211d6e7d3ad3b449e8fc3c3e2be367126b3d950e | 2,722 | exs | Elixir | test/xema/cast/number_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/xema/cast/number_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/xema/cast/number_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Xema.Cast.NumberTest do
use ExUnit.Case, async: true
alias Xema.{CastError, ValidationError}
import AssertBlame
import Xema, only: [cast: 2, cast!: 2, validate: 2]
@set [:foo, "foo", [foo: 42], [42], %{}, {:tuple}]
describe "cast/2 with a minimal integer schema" do
setup do
%{
... | 24.972477 | 84 | 0.54482 |
211d7177016652b3a5cf424a0a89851897e3dee9 | 3,866 | ex | Elixir | lib/briefly/entry.ex | sgerrand/briefly | 06ac1a6acf43e9f8d0e32da9c2fe6491866fe301 | [
"Apache-2.0"
] | 188 | 2015-09-03T08:56:39.000Z | 2022-03-25T14:55:01.000Z | lib/briefly/entry.ex | sgerrand/briefly | 06ac1a6acf43e9f8d0e32da9c2fe6491866fe301 | [
"Apache-2.0"
] | 26 | 2016-04-05T19:23:28.000Z | 2022-03-25T14:28:55.000Z | lib/briefly/entry.ex | sgerrand/briefly | 06ac1a6acf43e9f8d0e32da9c2fe6491866fe301 | [
"Apache-2.0"
] | 34 | 2016-11-09T14:38:52.000Z | 2022-03-03T03:23:42.000Z | defmodule Briefly.Entry do
@moduledoc false
def server do
Process.whereis(__MODULE__) ||
raise "could not find process Briefly.Entry. Have you started the :briefly application?"
end
use GenServer
def start_link(init_arg) do
GenServer.start_link(__MODULE__, init_arg, name: __MODULE__)
end
... | 24.1625 | 94 | 0.583549 |
211d92dd8cc0909b5cf0acf60bf5027507153bfd | 2,218 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__annotate_video_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__annotate_video_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__annotate_video_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.774194 | 234 | 0.761497 |
211da24f4321de755fda1ea6d25bf1bbab6b5884 | 376 | ex | Elixir | apps/rent_bot_web/lib/rent_bot_web/views/error_view.ex | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 94 | 2018-02-19T11:53:45.000Z | 2021-11-15T12:20:24.000Z | apps/rent_bot_web/lib/rent_bot_web/views/error_view.ex | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 2 | 2021-03-10T03:48:31.000Z | 2021-05-10T23:32:27.000Z | apps/rent_bot_web/lib/rent_bot_web/views/error_view.ex | dih78/rent-bot | 35ee3f32ca227979922aee37678e98e6e46491c8 | [
"MIT"
] | 28 | 2018-02-19T11:53:48.000Z | 2021-01-02T21:55:36.000Z | defmodule RentBotWeb.ErrorView do
use RentBotWeb, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templat... | 20.888889 | 47 | 0.702128 |
211da2a25c3ab54ae3a1cba25a0f5bb1d05a05f1 | 829 | ex | Elixir | lib/eqrcode/galois_field.ex | 0x8b/eqrcode | f82c55a4e493e7161bd22e9f5e5c41e92963c06e | [
"MIT"
] | null | null | null | lib/eqrcode/galois_field.ex | 0x8b/eqrcode | f82c55a4e493e7161bd22e9f5e5c41e92963c06e | [
"MIT"
] | null | null | null | lib/eqrcode/galois_field.ex | 0x8b/eqrcode | f82c55a4e493e7161bd22e9f5e5c41e92963c06e | [
"MIT"
] | null | null | null | defmodule EQRCode.GaloisField do
@moduledoc false
import Bitwise
@integers %{}
@alphas %{}
Stream.iterate(1, fn e ->
n = e <<< 1
if n >= 256, do: n ^^^ 0b100011101, else: n
end)
|> Stream.take(256)
|> Stream.with_index()
|> Enum.each(fn {e, i} ->
Module.put_attribute(__MODULE__, :alphas... | 18.840909 | 73 | 0.616405 |
211dabfeb9dc2a5ede26905cba2cfb16d0819798 | 3,507 | ex | Elixir | lib/vintage_net_wizard.ex | OleMchls/vintage_net_wizard | 4ddc76cecead48f0a3ff6c6bc64add97537e3049 | [
"Apache-2.0"
] | null | null | null | lib/vintage_net_wizard.ex | OleMchls/vintage_net_wizard | 4ddc76cecead48f0a3ff6c6bc64add97537e3049 | [
"Apache-2.0"
] | null | null | null | lib/vintage_net_wizard.ex | OleMchls/vintage_net_wizard | 4ddc76cecead48f0a3ff6c6bc64add97537e3049 | [
"Apache-2.0"
] | null | null | null | defmodule VintageNetWizard do
@moduledoc """
Documentation for VintageNetWizard.
"""
alias VintageNetWizard.{BackendServer, APMode, Web.Endpoint}
@doc """
Run the wizard.
This means the WiFi module will be put into access point mode and the web
server will be started.
Options:
* `:backend` - ... | 33.084906 | 125 | 0.680924 |
211dc0ac1131087752d6ddef05e93e02455af0df | 1,851 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_keystore_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_keystore_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_keystore_config.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... | 33.053571 | 145 | 0.735278 |
211dc7cb9b15e98b23d158f66cada0a961a1571e | 2,947 | ex | Elixir | apps/extended_api/lib/extended_api/worker/helper/helper.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 19 | 2019-09-17T18:14:36.000Z | 2021-12-06T07:29:27.000Z | apps/extended_api/lib/extended_api/worker/helper/helper.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 5 | 2019-09-30T04:57:14.000Z | 2020-11-10T15:41:03.000Z | apps/extended_api/lib/extended_api/worker/helper/helper.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 2 | 2019-09-17T19:03:16.000Z | 2021-03-01T01:04:31.000Z | defmodule ExtendedApi.Worker.Helper do
@moduledoc """
This module hold all the common functions accross workers.
"""
@doc """
# this check if the query has been sent
# to the shard's stage(reporter), and its result
# determin whether to stop GetTrytes worker or proceed.
"""
@spec ok?(atom, ma... | 33.488636 | 105 | 0.630472 |
211dca96ac3478c98b60389217f036c2ee8ccd6c | 286 | exs | Elixir | priv/repo/migrations/20210211161258_update_redeemables_table.exs | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | priv/repo/migrations/20210211161258_update_redeemables_table.exs | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | priv/repo/migrations/20210211161258_update_redeemables_table.exs | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.Repo.Migrations.UpdateRedeemablesTable do
use Ecto.Migration
def change do
rename table("redeemables"), :avatar, to: :img
rename table("redeemables"), :redeem_limit, to: :stock
alter table("redeemables") do
remove :num_redeems
end
end
end
| 22 | 58 | 0.70979 |
211dd6bf723dd9bd7e3a5860d5789d4656f2b192 | 4,523 | exs | Elixir | test/elixir/test/reshard_basic_test.exs | qa829/couchdb | 9acaa84a2828a2def3777580fffbe080da42bb0d | [
"Apache-2.0"
] | null | null | null | test/elixir/test/reshard_basic_test.exs | qa829/couchdb | 9acaa84a2828a2def3777580fffbe080da42bb0d | [
"Apache-2.0"
] | null | null | null | test/elixir/test/reshard_basic_test.exs | qa829/couchdb | 9acaa84a2828a2def3777580fffbe080da42bb0d | [
"Apache-2.0"
] | null | null | null | defmodule ReshardBasicTest do
use CouchTestCase
import ReshardHelpers
@moduledoc """
Test resharding basic functionality
"""
setup_all do
db1 = random_db_name()
{:ok, _} = create_db(db1, query: %{q: 1})
db2 = random_db_name()
{:ok, _} = create_db(db2, query: %{q: 2})
on_exit(fn ->
... | 25.845714 | 68 | 0.625249 |
211de24d710f69cfb962a356820ced1967877ba2 | 496 | exs | Elixir | config/test.exs | mehmetboraezer/elephant | 2e23af1b632fbef0a1371acd3ae27bd063e1212e | [
"Apache-2.0"
] | null | null | null | config/test.exs | mehmetboraezer/elephant | 2e23af1b632fbef0a1371acd3ae27bd063e1212e | [
"Apache-2.0"
] | null | null | null | config/test.exs | mehmetboraezer/elephant | 2e23af1b632fbef0a1371acd3ae27bd063e1212e | [
"Apache-2.0"
] | 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 :elephant, Elephant.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :elephant, Elephant.R... | 24.8 | 56 | 0.735887 |
211e22d9ad2a0359ec3ae30d4f6eed611811507d | 1,790 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_image.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2019-01-03T22:30:36.000Z | 2019-01-03T22:30:36.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_image.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_image.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"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... | 33.773585 | 148 | 0.752514 |
211e232a3a9bf19ec0d17f411daabda72c134b25 | 9,290 | ex | Elixir | lib/plug/parsers/multipart.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | lib/plug/parsers/multipart.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | null | null | null | lib/plug/parsers/multipart.ex | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1 | 2020-11-16T05:08:58.000Z | 2020-11-16T05:08:58.000Z | defmodule Plug.Parsers.MULTIPART do
@moduledoc """
Parses multipart request body.
## Options
All options supported by `Plug.Conn.read_body/2` are also supported here.
They are repeated here for convenience:
* `:length` - sets the maximum number of bytes to read from the request,
defaults to 8_000... | 32.034483 | 100 | 0.646071 |
211e3aafd443e006215d8013aac73ab3b6a24728 | 128 | exs | Elixir | apps/game_of_life_web/test/game_of_life_web_test.exs | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | apps/game_of_life_web/test/game_of_life_web_test.exs | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | apps/game_of_life_web/test/game_of_life_web_test.exs | PaoloLaurenti/game-of-life-elixir | 919e9f2c722bbde75f71d627cd410a578f732c00 | [
"MIT"
] | null | null | null | defmodule GameOfLifeWebTest do
use ExUnit.Case
doctest GameOfLifeWeb
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.222222 | 30 | 0.703125 |
211e3c01d5b3d7d2a87720acf457a6e32f8cc955 | 1,428 | ex | Elixir | test/support/model_case.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | test/support/model_case.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | test/support/model_case.ex | dbackeus/raagtime-phoenix | 339bf9c3b8d24010b165cf418f583182b91176ca | [
"MIT"
] | null | null | null | defmodule Raagtime.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For... | 26.444444 | 81 | 0.691877 |
211ecc2755905f2c83055f9d67076083737c72ab | 32 | exs | Elixir | spec/conqueuer_spec.exs | arghmeleg/conqueuer | da58f5bfb074543ed88138b28c3db40d5a986cd5 | [
"MIT"
] | 10 | 2015-10-29T16:43:50.000Z | 2021-03-17T13:23:48.000Z | spec/conqueuer_spec.exs | arghmeleg/conqueuer | da58f5bfb074543ed88138b28c3db40d5a986cd5 | [
"MIT"
] | 5 | 2016-05-22T02:34:33.000Z | 2016-10-13T02:14:21.000Z | spec/conqueuer_spec.exs | arghmeleg/conqueuer | da58f5bfb074543ed88138b28c3db40d5a986cd5 | [
"MIT"
] | 6 | 2016-05-11T15:33:04.000Z | 2019-03-28T15:29:14.000Z | defmodule ConqueuerSpec do
end
| 8 | 26 | 0.84375 |
211ef1e0e9576161f42859e2edeeda7a341278c1 | 3,827 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.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... | 33.867257 | 117 | 0.690358 |
211f23cfca1ac760c08d26015ca520a2c5ece6b9 | 928 | exs | Elixir | chapter-15/working-with-multiple-processes-3.exs | andreyuhai/elixir-exercises | 23f90ba8e76597cf8feb45a11718dcb0c42b649d | [
"MIT"
] | null | null | null | chapter-15/working-with-multiple-processes-3.exs | andreyuhai/elixir-exercises | 23f90ba8e76597cf8feb45a11718dcb0c42b649d | [
"MIT"
] | null | null | null | chapter-15/working-with-multiple-processes-3.exs | andreyuhai/elixir-exercises | 23f90ba8e76597cf8feb45a11718dcb0c42b649d | [
"MIT"
] | null | null | null | defmodule WorkingWithMultipleProcesses do
import :timer, only: [sleep: 1]
# Exercise:WorkingWithMultipleProcesses-3
# Use spawn_link to start a process, and have that process
# send a message to the parent and then exit immediately. Meanwhile,
# sleep for 500 ms in the parent, then receive as many messages as... | 26.514286 | 72 | 0.695043 |
211f58d185828f50734d449e4c8d977c1c34000c | 1,437 | exs | Elixir | test/receiver/session_test.exs | membraneframework/membrane-bin-rtp | 68c53ef993d72944b3c7251a5591e603b31806d6 | [
"Apache-2.0"
] | null | null | null | test/receiver/session_test.exs | membraneframework/membrane-bin-rtp | 68c53ef993d72944b3c7251a5591e603b31806d6 | [
"Apache-2.0"
] | 2 | 2020-03-04T21:32:49.000Z | 2020-08-10T14:35:02.000Z | test/receiver/session_test.exs | membraneframework/membrane-bin-rtp | 68c53ef993d72944b3c7251a5591e603b31806d6 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Bin.RTP.Receiver.SessionTest do
use ExUnit.Case
alias Membrane.Testing
alias Membrane.Bin.RTP.Receiver
alias Membrane.Element.RTP
alias Membrane.Element.RTP.H264
import Testing.Assertions
@pcap_file "test/demo.pcap"
@frames_count 1038
defmodule FrameCounter do
use Membrane.S... | 26.611111 | 79 | 0.670842 |
211f69a1e0db6634670dbc5adbf9d73f3da8c4c8 | 3,840 | exs | Elixir | test/circular_web/controllers/user_reset_password_controller_test.exs | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | null | null | null | test/circular_web/controllers/user_reset_password_controller_test.exs | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | 3 | 2020-09-04T09:32:55.000Z | 2022-03-06T02:17:06.000Z | test/circular_web/controllers/user_reset_password_controller_test.exs | cblock/circular | fb784d638bde2b1f125a03c403783f93533f5892 | [
"Apache-2.0"
] | null | null | null | defmodule CircularWeb.UserResetPasswordControllerTest do
use CircularWeb.ConnCase, async: true
alias Circular.Accounts
alias Circular.Repo
import Circular.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/reset_password" do
test "renders the reset password page", %{conn... | 33.684211 | 91 | 0.636198 |
211f6dbfe5b07fa76396d32b5ecc27b0b89cdc9d | 1,455 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/custom_field.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/custom_field.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/custom_field.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 ... | 30.957447 | 102 | 0.730584 |
211f7089ae19c7e508d2c0b82f6370c22b368ad7 | 3,037 | ex | Elixir | lib/ecto/query/builder/select.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | lib/ecto/query/builder/select.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/select.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.Select do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes a select.
It allows tuples, lists and variables at the top level. Inside the
tuples and lists query expressions are allowed.
## Examples
iex> escape({1, 2}, [], __ENV__)
{{:{}, [], [:{}, [], ... | 27.862385 | 78 | 0.574909 |
211f885da662e42e4a94513881130a5986a638a0 | 391 | exs | Elixir | config/config.exs | zeam-vm/pelemay_fp | 6a9d0b5da154b6733ba08a99faffa4e7ca69ebd7 | [
"Apache-2.0"
] | 26 | 2020-12-27T10:11:10.000Z | 2021-11-01T18:19:04.000Z | config/config.exs | zeam-vm/pelemay_fp | 6a9d0b5da154b6733ba08a99faffa4e7ca69ebd7 | [
"Apache-2.0"
] | 3 | 2020-12-27T10:10:47.000Z | 2021-03-17T20:52:54.000Z | config/config.exs | zeam-vm/pelemay_fp | 6a9d0b5da154b6733ba08a99faffa4e7ca69ebd7 | [
"Apache-2.0"
] | null | null | null | import Config
if Mix.env() != :prod do
config :git_hooks,
auto_install: true,
verbose: true,
hooks: [
pre_commit: [
tasks: [
{:cmd, "mix format"}
]
],
pre_push: [
verbose: false,
tasks: [
{:cmd, "mix dialyzer"},
{:cmd, "mix t... | 17 | 35 | 0.424552 |
212008ebe47ddbfecb9e829515ccbb773be7c3e3 | 1,259 | ex | Elixir | lib/supabase_surface/components/typography/title.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/typography/title.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/typography/title.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Typography.Title do
use Surface.Component
import SupabaseSurface.Components.Utils
@doc "The level for the resulting heading"
prop level, :integer, values: [1, 2, 3, 4, 5], default: 1
@doc "The title content"
slot default, required: true
@doc "Extra CSS classes to a... | 23.754717 | 91 | 0.610008 |
21201c4b2efdddcb2d91930c4b88949352ff89f7 | 376 | exs | Elixir | notebooks/modulo_4/parte_2/ecto_example/priv/university/migrations/20211110224825_create_enrollments.exs | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 14 | 2021-11-19T00:22:09.000Z | 2022-01-29T03:58:09.000Z | notebooks/modulo_4/parte_2/ecto_example/priv/university/migrations/20211110224825_create_enrollments.exs | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | null | null | null | notebooks/modulo_4/parte_2/ecto_example/priv/university/migrations/20211110224825_create_enrollments.exs | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 1 | 2022-03-01T00:49:50.000Z | 2022-03-01T00:49:50.000Z | defmodule EctoExample.University.Repo.Migrations.CreateEnrollments do
use Ecto.Migration
def change do
create table("enrollments") do
add(:course, :string)
add(:accepted, :boolean)
add(:applied_at, :naive_datetime_usec)
add(:accepted_at, :naive_datetime_usec)
add(:rejected_at, :na... | 25.066667 | 69 | 0.702128 |
21203f7febbfaf36cfa9e1a4f8cff317739912fe | 2,713 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/context.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_user/lib/google_api/service_user/v1/model/context.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_user/lib/google_api/service_user/v1/model/context.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... | 32.297619 | 162 | 0.720236 |
2120624f5c4e36814e35c1f145102d101c57670b | 5,623 | exs | Elixir | test/ex_unit_fixtures_test.exs | obmarg/exunit_fixtures | eaa4fef4dbcb1ef5c6b990c21515bb891f38743c | [
"MIT"
] | 14 | 2015-12-24T23:48:59.000Z | 2019-05-09T17:50:57.000Z | test/ex_unit_fixtures_test.exs | obmarg/exunit_fixtures | eaa4fef4dbcb1ef5c6b990c21515bb891f38743c | [
"MIT"
] | 34 | 2016-01-02T17:37:55.000Z | 2019-05-13T22:56:25.000Z | test/ex_unit_fixtures_test.exs | obmarg/exunit_fixtures | eaa4fef4dbcb1ef5c6b990c21515bb891f38743c | [
"MIT"
] | 5 | 2016-01-18T15:31:48.000Z | 2019-05-10T23:24:31.000Z | defmodule ExunitFixturesTest do
use ExUnitFixtures
use ExUnit.Case, async: true
ExUnit.Case.register_attribute __MODULE__, :fixtures
doctest ExUnitFixtures
deffixture simple do
"simple"
end
deffixture not_so_simple(simple) do
{:not_so_simple, simple}
end
deffixture fixture_with_context(co... | 26.032407 | 74 | 0.736795 |
2120852749de1335d302f8ca221786a002097a27 | 1,900 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_expressions.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_expressions.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_expressions.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.538462 | 166 | 0.754211 |
2120dd6fff2bf4cef733b2a43a2c323de8822f47 | 21,049 | ex | Elixir | lib/surface/compiler/eex_engine.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/compiler/eex_engine.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/compiler/eex_engine.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.EExEngine do
@moduledoc """
This module glues together surface's AST and Phoenix.LiveView.Engine to actually render an AST.
It takes a list of Surface AST nodes, and processes them into a sequence of static raw html items and
dynamic pieces. It then converts these into tokens which a... | 28.178046 | 120 | 0.58188 |
2121080a4afe9fc6b16321e9068eeef90a1d2979 | 450 | ex | Elixir | lib/intercom/tag.ex | craigp/ex_intercom | fb45bb04f1cf0709cdc31f69b1cc844d2ddfefe8 | [
"MIT"
] | 1 | 2019-07-12T13:38:11.000Z | 2019-07-12T13:38:11.000Z | lib/intercom/tag.ex | craigp/ex_intercom | fb45bb04f1cf0709cdc31f69b1cc844d2ddfefe8 | [
"MIT"
] | null | null | null | lib/intercom/tag.ex | craigp/ex_intercom | fb45bb04f1cf0709cdc31f69b1cc844d2ddfefe8 | [
"MIT"
] | 1 | 2019-11-22T12:56:13.000Z | 2019-11-22T12:56:13.000Z | defmodule ExIntercom.Tag do
@moduledoc """
An Intercom tag.
"""
use Ecto.Schema
import Ecto.Changeset
alias __MODULE__
@primary_key false
embedded_schema do
field :name, :string
field :id, :string
field :type, :string
end
@type t :: %__MODULE__{}
@doc false
@spec changeset(Tag.t... | 16.666667 | 49 | 0.648889 |
21210a1d9b6e85dad53fa86ea4c61ae8aaf3221b | 4,296 | ex | Elixir | lib/ethyl/lint/mfa_allow_list.ex | NFIBrokerage/ethyl | 014dd11ad2c4a58feed51af005eea427a8ce0f7e | [
"MIT"
] | 1 | 2022-01-21T22:53:26.000Z | 2022-01-21T22:53:26.000Z | lib/ethyl/lint/mfa_allow_list.ex | NFIBrokerage/ethyl | 014dd11ad2c4a58feed51af005eea427a8ce0f7e | [
"MIT"
] | 2 | 2021-09-24T19:52:21.000Z | 2021-09-27T21:46:45.000Z | lib/ethyl/lint/mfa_allow_list.ex | NFIBrokerage/ethyl | 014dd11ad2c4a58feed51af005eea427a8ce0f7e | [
"MIT"
] | null | null | null | defmodule Ethyl.Lint.MfaAllowlist do
@moduledoc """
A linter that blocks access to functions that perform impure side-effects
"""
alias Ethyl.{Lint, Lint.Helpers}
require Ethyl.AstTransforms, as: Ast
@behaviour Lint
@allowlist [
Access,
Atom,
Base,
... | 26.68323 | 78 | 0.496043 |
21213af45b5dc3a11eead43616c85bc43e06ed48 | 1,711 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/externally_hosted_apk_uses_permission.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/externally_hosted_apk_uses_permission.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/externally_hosted_apk_uses_permission.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.22 | 137 | 0.741087 |
2121495a0920ad457b9e06b3972275ec4d040244 | 2,036 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_table_card_row.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_table_card_row.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message_table_card_row.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.83871 | 180 | 0.735756 |
21215eeb3939b0f33a333a5eae36cdad80985a71 | 1,870 | exs | Elixir | 13-computing-compound-interest.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | 1 | 2016-04-23T17:03:02.000Z | 2016-04-23T17:03:02.000Z | 13-computing-compound-interest.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | null | null | null | 13-computing-compound-interest.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | 1 | 2021-06-07T21:21:41.000Z | 2021-06-07T21:21:41.000Z | defmodule ComputingCompundInterest do
@moduledoc """
a module that computes compound interest based on the users inputs
"""
import IO, only: [gets: 1, puts: 1]
import String, only: [rstrip: 1]
@doc """
ask the user for inputs
"""
def ask do
{ask_investment, ask_interest_rate / 100, ask_years, as... | 27.101449 | 149 | 0.686631 |
212192f3184454134100c5cac287cebef5887cf5 | 1,411 | exs | Elixir | mix.exs | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | mix.exs | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | mix.exs | jobsonita/rocketseat-yt-cd-108-elixir | 1f98172932f763d5cfb61ad0752e12db9ca6651c | [
"MIT"
] | null | null | null | defmodule Muse.MixProject do
use Mix.Project
def project do
[
app: :muse,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()... | 23.915254 | 84 | 0.586109 |
21219d03f685fb1dd23c5c383ad1b51d5899cf3d | 7,251 | ex | Elixir | lib/credo/code/interpolation_helper.ex | surgeventures/credo | aae5abab08d86ca7269613753cc425e12be83692 | [
"MIT"
] | null | null | null | lib/credo/code/interpolation_helper.ex | surgeventures/credo | aae5abab08d86ca7269613753cc425e12be83692 | [
"MIT"
] | null | null | null | lib/credo/code/interpolation_helper.ex | surgeventures/credo | aae5abab08d86ca7269613753cc425e12be83692 | [
"MIT"
] | null | null | null | defmodule Credo.Code.InterpolationHelper do
@moduledoc false
alias Credo.Code.Token
@doc false
def replace_interpolations(source, char \\ " ", filename \\ "nofilename")
when is_binary(source) do
positions = interpolation_positions(source, filename)
lines = String.split(source, "\n")
positio... | 26.95539 | 88 | 0.622949 |
2121a48a954e3fc9c1b08fb13b2644974af52375 | 1,729 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.901961 | 79 | 0.752458 |
2121bf5fc2bb0d85b6f1fe11c50a2bc3552c1001 | 2,076 | exs | Elixir | server/config/prod.exs | ravivooda/contactCard | 5e2e219fc4c146487a5876ce7481b0245bba452d | [
"MIT"
] | null | null | null | server/config/prod.exs | ravivooda/contactCard | 5e2e219fc4c146487a5876ce7481b0245bba452d | [
"MIT"
] | null | null | null | server/config/prod.exs | ravivooda/contactCard | 5e2e219fc4c146487a5876ce7481b0245bba452d | [
"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... | 33.483871 | 75 | 0.725434 |
2121c32ef931b9214ed0fd7ce592e7a76d4c6512 | 2,382 | ex | Elixir | lib/google_api/you_tube/v3/model/image_settings.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/image_settings.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/image_settings.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.21875 | 120 | 0.753149 |
2121ced072522a8ab85abf2c979a7f854de2cc33 | 2,748 | ex | Elixir | apps/eventbus/lib/eventbus/job_httppost.ex | gotitinc/eventbus | 5658cdb966d7c450ba9249ee5f66894054e3c86e | [
"Apache-2.0"
] | 4 | 2020-12-30T02:53:21.000Z | 2021-06-25T03:04:47.000Z | apps/eventbus/lib/eventbus/job_httppost.ex | gotitinc/eventbus | 5658cdb966d7c450ba9249ee5f66894054e3c86e | [
"Apache-2.0"
] | null | null | null | apps/eventbus/lib/eventbus/job_httppost.ex | gotitinc/eventbus | 5658cdb966d7c450ba9249ee5f66894054e3c86e | [
"Apache-2.0"
] | null | null | null | defmodule Eventbus.JobHttpPost do
@moduledoc """
Executes a post http call
"""
alias __MODULE__
alias Eventbus.{PartitionTimer, Utils}
require Logger
@derive {Poison.Encoder, only: [:job_id, :ts, :url, :payload, :topic,
:partition, :retry, :max_retry, :timeout, :__struct__]}
defstruct job... | 37.643836 | 175 | 0.612445 |
2121ecfd67338ec7f03177d1ef9a98476e7902b2 | 62 | exs | Elixir | .formatter.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 423 | 2017-07-19T18:40:45.000Z | 2021-12-03T08:26:15.000Z | .formatter.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 115 | 2017-07-19T18:30:14.000Z | 2020-10-27T20:53:32.000Z | .formatter.exs | jayjun/bootleg | 2283ad22810178625c45eb2661624fac914befdd | [
"MIT"
] | 39 | 2017-07-20T03:14:18.000Z | 2020-11-18T13:39:52.000Z | [
inputs: ["mix.exs",
"{config,lib,test}/**/*.{ex,exs}"]
] | 15.5 | 36 | 0.483871 |
2121ef54cb94ac2deffd686785d2ea8c7224b04f | 228 | ex | Elixir | test/support/mm.ex | commonspub/pointers | f4f7f2a2e5a5902e3e2515a5c1b1d5b57dc6590e | [
"Apache-2.0"
] | 3 | 2020-06-01T07:40:08.000Z | 2020-08-17T14:41:09.000Z | test/support/mm.ex | commonspub/pointer | afb87719246114badabd247eaf16a3af6536d003 | [
"Apache-2.0"
] | 2 | 2020-06-17T09:36:59.000Z | 2020-07-09T14:31:25.000Z | test/support/mm.ex | commonspub/pointer | afb87719246114badabd247eaf16a3af6536d003 | [
"Apache-2.0"
] | 2 | 2020-06-11T13:21:15.000Z | 2020-07-09T07:35:35.000Z | defmodule Pointers.Test.MM do
use Pointers.Mixin,
otp_app: :pointers,
source: "mm"
alias Pointers.Test.M
mixin_schema do
field :value, :integer
has_one :m, M, foreign_key: :id, references: :id
end
end
| 16.285714 | 52 | 0.671053 |
21220c0ddbec76c9d737c5bf37b85a08ad05c314 | 3,285 | ex | Elixir | geronimo/lib/geronimo/models/entity.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 10 | 2018-04-12T22:29:52.000Z | 2021-10-18T17:07:45.000Z | geronimo/lib/geronimo/models/entity.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | null | null | null | geronimo/lib/geronimo/models/entity.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 1 | 2018-07-06T18:42:05.000Z | 2018-07-06T18:42:05.000Z | defmodule Geronimo.Entity do
use Ecto.Schema
import Ecto.Query
import Ecto.Changeset
alias Geronimo.Repo
alias Geronimo.ContentType
use Geronimo.Crud
use Timex.Ecto.Timestamps
use Geronimo.Kafka.Avro
@derive {Poison.Encoder, only: [:id, :kind, :content, :schema_version,
... | 31.586538 | 111 | 0.612177 |
212211849cde10e81c2b84a8b0fc9564d3b16f3c | 403 | exs | Elixir | apps/robby_web/test/lib/photo_handler_test.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 3 | 2021-04-16T21:54:55.000Z | 2021-04-30T22:15:41.000Z | apps/robby_web/test/lib/photo_handler_test.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 1 | 2021-06-29T15:54:19.000Z | 2021-06-29T15:54:19.000Z | apps/robby_web/test/lib/photo_handler_test.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 2 | 2021-04-16T22:23:16.000Z | 2021-05-26T15:52:55.000Z | defmodule RobbyWeb.PhotoHandlerTest do
use ExUnit.Case
alias RobbyWeb.PhotoHandler
test "can successfully update a photo" do
:ok = PhotoHandler.update_photo("matt")
end
test "can handle a missing photo gracefully" do
:ok = PhotoHandler.update_photo("tom")
end
test "produces an error when there'... | 23.705882 | 57 | 0.727047 |
212230f8e6e239772a78ca5a28065be624b65862 | 763 | exs | Elixir | test/unit/hologram/compiler/transformers/list_concatenation_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/transformers/list_concatenation_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/transformers/list_concatenation_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.ListConcatenationOperatorTransformerTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.{Context, ListConcatenationOperatorTransformer}
alias Hologram.Compiler.IR.{IntegerType, ListConcatenationOperator, ListType}
test "transform/3" do
code = "[1, 2] ++ [3, ... | 24.612903 | 79 | 0.635649 |
212231c467653e1db4a694b760538117694985ee | 691 | ex | Elixir | lib/bitcoin/protocol/messages/get_addr.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | lib/bitcoin/protocol/messages/get_addr.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/protocol/messages/get_addr.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Protocol.Messages.GetAddr do
@moduledoc """
The getaddr message sends a request to a node asking for information about known active peers to help with finding
potential nodes in the network. The response to receiving this message is to transmit one or more addr messages with
one or more ... | 36.368421 | 120 | 0.743849 |
21223487fcf121984072db82b753de25d94d1c0d | 1,209 | ex | Elixir | lib/athel/models/user.ex | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 14 | 2016-09-12T02:45:12.000Z | 2021-02-08T04:13:29.000Z | lib/athel/models/user.ex | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 3 | 2016-09-12T05:17:35.000Z | 2016-09-14T16:35:04.000Z | lib/athel/models/user.ex | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 1 | 2018-02-12T04:30:52.000Z | 2018-02-12T04:30:52.000Z | defmodule Athel.User do
use Ecto.Schema
import Ecto.Changeset
alias Athel.Role
@type t :: %__MODULE__{}
@derive {Inspect, except: [:hashed_password, :salt]}
@primary_key {:email, :string, autogenerate: false}
schema "users" do
field :hashed_password, :binary
field :salt, :binary
field :stat... | 25.723404 | 76 | 0.627792 |
21229b10639b8ff635f3df15188bb556354aa4ff | 3,492 | ex | Elixir | lib/metar_map/timeline.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | lib/metar_map/timeline.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | 2 | 2022-02-19T17:09:09.000Z | 2022-02-19T17:10:29.000Z | lib/metar_map/timeline.ex | schrockwell/metar_map_nerves | 7eff2d95631f00b1c763c7ef6de666cfca24fffa | [
"MIT"
] | null | null | null | defmodule MetarMap.Timeline do
defstruct transitions: [], latest_value: nil, interpolate_fun: nil
defmodule Transition do
defstruct [:start_at, :start_value, :end_at, :end_value]
end
def init(initial_value, interpolate_fun) do
%__MODULE__{latest_value: initial_value, interpolate_fun: interpolate_fun}
... | 29.59322 | 97 | 0.662944 |
2122b8aea24f6153f891d73d9584315e06c43b19 | 24,747 | exs | Elixir | lib/ex_unit/test/ex_unit/assertions_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/ex_unit/test/ex_unit/assertions_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/ex_unit/test/ex_unit/assertions_test.exs | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule ExUnit.AssertionsTest.Value do
def tuple, do: {2, 1}
def falsy, do: nil
def truthy, do: :truthy
def binary, do: <<5, "Frank the Walrus">>
end
defmodule ExUnit.AssertionsTest.BrokenError do
defexception [:message]
@impl true
def message(_) do
... | 27.375 | 123 | 0.622217 |
2122cc0eca4c3187a68ec3f34f3de905ff9da36b | 18,491 | exs | Elixir | lib/mix/test/mix/tasks/release_test.exs | kassio/elixir | 78551c11c9c97bb608e4097d2e0c36458b11f535 | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/mix/test/mix/tasks/release_test.exs | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/release_test.exs | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.ReleaseTest do
use MixTest.Case
@erts_version :erlang.system_info(:version)
@hostname :inet_db.gethostname()
defmacrop release_node(name), do: :"#{name}@#{@hostname}"
describe "customize" do
test "rel with eex" do
in_fixture... | 38.442827 | 97 | 0.567682 |
2122f81cf891c4c83d0499972c0629cea5791ff3 | 588 | exs | Elixir | test/phoenix/tracker_test.exs | tarzan/phoenix_pubsub | 3c12bf0b8771a479ab262aba7d34b913faa9f914 | [
"MIT"
] | null | null | null | test/phoenix/tracker_test.exs | tarzan/phoenix_pubsub | 3c12bf0b8771a479ab262aba7d34b913faa9f914 | [
"MIT"
] | null | null | null | test/phoenix/tracker_test.exs | tarzan/phoenix_pubsub | 3c12bf0b8771a479ab262aba7d34b913faa9f914 | [
"MIT"
] | null | null | null | defmodule Phoenix.TrackerTest do
use ExUnit.Case, async: true
@opts [pubsub_server: nil, name: nil]
test "validates down_period" do
opts = Keyword.merge(@opts, [down_period: 1])
assert Phoenix.Tracker.init([nil, nil, opts]) == {:error, "down_period must be at least twice as large as the broadcast_period"... | 39.2 | 132 | 0.722789 |
212309e6484f53bb4ffa3cd2d172b790d4d6e70b | 36,940 | ex | Elixir | lib/elixir/lib/supervisor.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/supervisor.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/elixir/lib/supervisor.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | defmodule Supervisor do
@moduledoc ~S"""
A behaviour module for implementing supervisors.
A supervisor is a process which supervises other processes, which we
refer to as *child processes*. Supervisors are used to build a hierarchical
process structure called a *supervision tree*. Supervision trees provide
... | 37.125628 | 106 | 0.693205 |
212319bddf70c4b186dab34c6879f349fa72bffe | 432 | exs | Elixir | test/phxcrd_web/views/error_view_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 18 | 2019-06-21T09:55:46.000Z | 2022-02-16T18:44:17.000Z | test/phxcrd_web/views/error_view_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 16 | 2019-05-21T20:19:44.000Z | 2020-05-12T08:30:42.000Z | test/phxcrd_web/views/error_view_test.exs | spapas/phxcrd | 84877896f56400b0cc8624fe96c4fe4f5fd8053c | [
"MIT"
] | 2 | 2019-09-05T00:35:27.000Z | 2020-10-17T16:36:35.000Z | defmodule PhxcrdWeb.ErrorViewTest do
use PhxcrdWeb.ConnCase, async: true
@moduletag :skip
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(PhxcrdWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500... | 27 | 91 | 0.729167 |
21231daa07cb4883e4f2597cdc6a72f14356173c | 11,301 | ex | Elixir | lib/gettext/backend.ex | ibarchenkov/gettext | f1f5369e8f58a0a6b21e7ab92aaa2644577f53ef | [
"Apache-2.0"
] | 110 | 2019-09-23T18:58:00.000Z | 2022-03-07T00:27:34.000Z | lib/gettext/backend.ex | ibarchenkov/gettext | f1f5369e8f58a0a6b21e7ab92aaa2644577f53ef | [
"Apache-2.0"
] | 93 | 2019-09-08T18:28:28.000Z | 2022-03-31T20:38:59.000Z | lib/gettext/backend.ex | ibarchenkov/gettext | f1f5369e8f58a0a6b21e7ab92aaa2644577f53ef | [
"Apache-2.0"
] | 41 | 2019-09-16T14:17:49.000Z | 2022-03-03T15:11:59.000Z | defmodule Gettext.Backend do
@moduledoc """
Behaviour that defines the macros that a Gettext backend has to implement.
"""
@doc """
Default handling for missing bindings.
This function is called when there are missing bindings in a translation. It
takes a `Gettext.MissingBindingsError` struct and the tr... | 32.567723 | 106 | 0.604106 |
2123357d836dd5c0f345a38584d31ff048bc40b1 | 2,094 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_response_fulfillment_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_response_fulfillment_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_response_fulfillment_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.774194 | 191 | 0.752627 |
21234c351825657acd32b6adb0a842ab4190718c | 1,107 | ex | Elixir | lib/chat_api_web/views/user_view.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api_web/views/user_view.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api_web/views/user_view.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApiWeb.UserView do
use ChatApiWeb, :view
alias ChatApiWeb.UserView
alias ChatApi.Users.UserProfile
def render("index.json", %{users: users}) do
%{data: render_many(users, UserView, "user.json")}
end
def render("show.json", %{user: user}) do
%{data: render_one(user, UserView, "user.j... | 25.159091 | 55 | 0.579042 |
2123502399877abbac061a073424437a86f22669 | 952 | exs | Elixir | test/exdns/config_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 16 | 2016-05-26T10:11:57.000Z | 2021-01-08T15:09:19.000Z | test/exdns/config_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 9 | 2016-08-11T00:48:27.000Z | 2020-09-16T22:10:07.000Z | test/exdns/config_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 11 | 2016-08-10T08:13:36.000Z | 2021-04-03T10:20:11.000Z | defmodule Exdns.ConfigTest do
use ExUnit.Case, async: true
test "catch exceptions" do
assert !Exdns.Config.catch_exceptions?
Application.put_env(:exdns, :catch_exceptions, true)
assert Exdns.Config.catch_exceptions?
Application.put_env(:exdns, :catch_exceptions, false)
end
test "use root hints... | 25.052632 | 64 | 0.72479 |
21235c1aeb3b66600927245854ef2eff2fe66c26 | 5,021 | exs | Elixir | mix.exs | dbernheisel/ecto_sql | 7bef2cf7ea016f2311241c6a213bdb3284b62fda | [
"Apache-2.0"
] | null | null | null | mix.exs | dbernheisel/ecto_sql | 7bef2cf7ea016f2311241c6a213bdb3284b62fda | [
"Apache-2.0"
] | null | null | null | mix.exs | dbernheisel/ecto_sql | 7bef2cf7ea016f2311241c6a213bdb3284b62fda | [
"Apache-2.0"
] | null | null | null | defmodule EctoSQL.MixProject do
use Mix.Project
@source_url "https://github.com/elixir-ecto/ecto_sql"
@version "3.8.0-dev"
@adapters ~w(pg myxql tds)
def project do
[
app: :ecto_sql,
version: @version,
elixir: "~> 1.10",
deps: deps(),
test_paths: test_paths(System.get_env("... | 24.492683 | 90 | 0.561044 |
21235e8c317f20a44504a19608ac2f31348cfe4f | 109 | ex | Elixir | lib/mix_giftwrap/lib/mix/giftwrap/util.ex | bbridges/giftwrap | 7aa996822015a4f28544695e59302434834f8252 | [
"MIT"
] | null | null | null | lib/mix_giftwrap/lib/mix/giftwrap/util.ex | bbridges/giftwrap | 7aa996822015a4f28544695e59302434834f8252 | [
"MIT"
] | null | null | null | lib/mix_giftwrap/lib/mix/giftwrap/util.ex | bbridges/giftwrap | 7aa996822015a4f28544695e59302434834f8252 | [
"MIT"
] | null | null | null | defmodule Mix.Giftwrap.Util do
@moduledoc false
def windows?(), do: match?({:win32, _}, :os.type())
end
| 18.166667 | 53 | 0.66055 |
212367ea9921b53655128a0d0b4ea8db3e377b19 | 1,942 | exs | Elixir | test/plugs/authentication/basic_test.exs | remigijusj/coherence | 36fe35b0bfe7ac63b44b4046f3ba62f2fe69603a | [
"MIT"
] | 1 | 2022-03-06T16:30:21.000Z | 2022-03-06T16:30:21.000Z | test/plugs/authentication/basic_test.exs | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | null | null | null | test/plugs/authentication/basic_test.exs | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 2 | 2017-09-22T16:54:36.000Z | 2021-11-09T20:55:58.000Z | defmodule Coherence.Authentication.Basic.Test do
use ExUnit.Case, async: true
use Plug.Test
defmodule TestPlug do
use Plug.Builder
import Plug.Conn
plug Coherence.Authentication.Basic, realm: "Secret"
plug :index
defp index(conn, _opts), do: send_resp(conn, 200, "Authorized")
end
defp ... | 27.352113 | 144 | 0.695675 |
21238554861e40dc0642d7e51069daba2718d028 | 899 | exs | Elixir | _nucleotide-count/nucleotide_count.exs | millimoose/my-exercism-elixir | 6262dbc64ca4b452606cda823cdc6efe0f4dff91 | [
"Unlicense"
] | null | null | null | _nucleotide-count/nucleotide_count.exs | millimoose/my-exercism-elixir | 6262dbc64ca4b452606cda823cdc6efe0f4dff91 | [
"Unlicense"
] | null | null | null | _nucleotide-count/nucleotide_count.exs | millimoose/my-exercism-elixir | 6262dbc64ca4b452606cda823cdc6efe0f4dff91 | [
"Unlicense"
] | null | null | null | defmodule NucleotideCount do
@nucleotides [?A, ?C, ?G, ?T]
@doc """
Counts individual nucleotides in a NucleotideCount strand.
## Examples
iex> NucleotideCount.count('AATAA', ?A)
4
iex> NucleotideCount.count('AATAA', ?T)
1
"""
@spec count([char], char) :: non_neg_integer
def count(strand, nucl... | 20.906977 | 60 | 0.602892 |
212390a69c866b5a7ce47ce0bb39ab69c0febc5c | 4,729 | ex | Elixir | lib/aws/generated/pi.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/pi.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/pi.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"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.PI do
@moduledoc """
Amazon RDS Performance Insights
Amazon RDS Performance Insights enables you to monitor and explore different
dimensions of database load based on data captured from a... | 39.082645 | 148 | 0.741806 |
2123ef59401090f501bc6048f8d53edc1d55a0fd | 1,915 | ex | Elixir | installer/templates/phx_web/views/error_helpers.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | installer/templates/phx_web/views/error_helpers.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | installer/templates/phx_web/views/error_helpers.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | defmodule <%= web_namespace %>.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""<%= if html do %>
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 ... | 34.196429 | 86 | 0.652219 |
2123efebc827e2952ffe949cd9d099ad8b5fcb13 | 227 | exs | Elixir | test/farmbot_ext/api/eager_loader_supervisor_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/farmbot_ext/api/eager_loader_supervisor_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/farmbot_ext/api/eager_loader_supervisor_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.EagerLoader.SupervisorTest do
use ExUnit.Case
alias FarmbotOS.EagerLoader.Supervisor
test "children" do
results = Supervisor.children()
expected = []
assert results == expected
end
end
| 18.916667 | 49 | 0.735683 |
212405929a5a24efa8eef07b015e7cbf611b46b3 | 59,727 | ex | Elixir | clients/drive/lib/google_api/drive/v3/api/files.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/files.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/files.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"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... | 54.100543 | 540 | 0.645973 |
212415af2d081aad8d350cf7f4e2fd47c4b40bfc | 72 | ex | Elixir | lib/hippocrene/article/block.ex | Joe-noh/hippocrene | 8dac2caf7214d1d29db5dd992a24f600b577c880 | [
"MIT"
] | null | null | null | lib/hippocrene/article/block.ex | Joe-noh/hippocrene | 8dac2caf7214d1d29db5dd992a24f600b577c880 | [
"MIT"
] | 6 | 2017-10-09T15:18:15.000Z | 2017-10-09T15:18:16.000Z | lib/hippocrene/article/block.ex | Joe-noh/hippocrene | 8dac2caf7214d1d29db5dd992a24f600b577c880 | [
"MIT"
] | null | null | null | defmodule Hippocrene.Article.Block do
defstruct level: 0, acc: []
end
| 18 | 37 | 0.75 |
21241b251012955e5649df4a77e806e023a1b9c6 | 508 | exs | Elixir | mix.exs | bwireman/glow_server | 08bf570ee0c67f3bcd8431fa580863ab30619c88 | [
"MIT"
] | 2 | 2021-12-14T09:43:07.000Z | 2021-12-23T22:24:00.000Z | mix.exs | bwireman/glow_server | 08bf570ee0c67f3bcd8431fa580863ab30619c88 | [
"MIT"
] | null | null | null | mix.exs | bwireman/glow_server | 08bf570ee0c67f3bcd8431fa580863ab30619c88 | [
"MIT"
] | 1 | 2021-12-23T22:24:01.000Z | 2021-12-23T22:24:01.000Z | defmodule GlowServer.MixProject do
use Mix.Project
def project do
[
app: :glow_server,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
erlc_paths: ["src", "gen"],
compilers: [:gleam | Mix.compilers()], # Gleam must go first
]... | 17.517241 | 66 | 0.531496 |
212439c242b59dfcaef6239c76b7e529b3c679b4 | 2,812 | ex | Elixir | lib/file_store/middleware/errors.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 17 | 2019-10-11T05:50:28.000Z | 2022-01-25T23:28:02.000Z | lib/file_store/middleware/errors.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 8 | 2019-10-25T04:19:42.000Z | 2022-01-27T02:32:47.000Z | lib/file_store/middleware/errors.ex | rzane/file_store | 6ff9e35043d46e655cb532032f4a77a9cd4a3d14 | [
"MIT"
] | 3 | 2019-10-25T02:30:22.000Z | 2022-01-24T21:24:08.000Z | defmodule FileStore.Middleware.Errors do
@moduledoc """
By default, each adapter will return errors in a different format. This
middleware attempts to make the errors returned by this library a little
more useful by wrapping them in exception structs:
* `FileStore.Error`
* `FileStore.UploadError`
*... | 25.333333 | 78 | 0.63478 |
21244f6e85a87e5ee5ee6b878f20925762a1773d | 1,757 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/precondition.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/precondition.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/precondition.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.788462 | 132 | 0.722823 |
21245bf89edc889d3cf8a596f362a464ef5c448d | 1,364 | ex | Elixir | lib/common_crawl/index_api.ex | octoscreen/common_crawl | 08a23b3ac081d6d15236c4039c0336e0210e8479 | [
"MIT"
] | null | null | null | lib/common_crawl/index_api.ex | octoscreen/common_crawl | 08a23b3ac081d6d15236c4039c0336e0210e8479 | [
"MIT"
] | null | null | null | lib/common_crawl/index_api.ex | octoscreen/common_crawl | 08a23b3ac081d6d15236c4039c0336e0210e8479 | [
"MIT"
] | null | null | null | defmodule CommonCrawl.IndexAPI do
@moduledoc """
Interacting with Common Crawl index search API.
"""
@httpoison_options [
default_timeout: :timer.minutes(2),
recv_timeout: :timer.minutes(2)
]
@doc """
The `cdx_api_url` can be found in `CommonCrawl.collinfo()`.
`"url"` parameter is required in... | 30.311111 | 158 | 0.646628 |
21246d796047c4b2c157efaea777eefc30ed6814 | 195 | ex | Elixir | lib/metex.ex | abhishek1998/weather-elixir- | bca813dba184893ac926ea1a5f3d5c65e5adae5e | [
"MIT"
] | 1 | 2021-06-16T14:06:34.000Z | 2021-06-16T14:06:34.000Z | lib/metex.ex | abhishek1998/weather-elixir- | bca813dba184893ac926ea1a5f3d5c65e5adae5e | [
"MIT"
] | null | null | null | lib/metex.ex | abhishek1998/weather-elixir- | bca813dba184893ac926ea1a5f3d5c65e5adae5e | [
"MIT"
] | null | null | null | defmodule Metex do
@moduledoc """
Documentation for `Metex`.
"""
@doc """
Hello world.
## Examples
iex> Metex.hello()
:world
"""
def hello do
:world
end
end
| 10.263158 | 28 | 0.54359 |
2124af314b9e811bde4e8a3e4d42745c2ac5cc72 | 174 | exs | Elixir | config/access.exs | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | config/access.exs | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | config/access.exs | renatoalmeidaoliveira/Merlin | 92a0e318872190cdfa07ced85ee54cc69cad5c14 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :chatbot, Chatbot.Auth,
server: %{"ip" => '10.67.15.249' , "groups" => [%{"name" => "Teste" , "outgoingToken" => "sgwaq7f6sjrc7q8aeqsxr11hrr"}] }
| 24.857143 | 122 | 0.614943 |
2124b741174ec77ed67a19ac1748e67b48b2aeba | 13,518 | ex | Elixir | clients/drive/lib/google_api/drive/v3/api/changes.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/changes.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/changes.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... | 58.773913 | 292 | 0.668886 |
2124c6e42be5791bb8086042cd2de7cbff05bdfb | 385 | exs | Elixir | config/prod.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 5 | 2019-05-24T17:00:42.000Z | 2019-05-27T13:50:56.000Z | config/prod.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 17 | 2019-05-27T08:59:36.000Z | 2020-02-17T06:45:27.000Z | config/prod.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 1 | 2019-08-27T14:27:06.000Z | 2019-08-27T14:27:06.000Z | use Mix.Config
config :corker, Corker.Web.Endpoint, port: {:system, "PORT"}
config :corker, Corker.Repo,
ssl: true,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
config :corker, Corker.Scheduler,
jobs: [
{"0 12 1 * *", {Corker.Jobs.Report, :send, [... | 24.0625 | 67 | 0.67013 |
2124cb737011634109633c84c3284ea46c16d4a3 | 833 | ex | Elixir | apps/web/lib/web/live/article_live.ex | pinpox/branchpage | e478ed9085c06cc3c5680b0ca4dc20eff2e74653 | [
"MIT"
] | null | null | null | apps/web/lib/web/live/article_live.ex | pinpox/branchpage | e478ed9085c06cc3c5680b0ca4dc20eff2e74653 | [
"MIT"
] | null | null | null | apps/web/lib/web/live/article_live.ex | pinpox/branchpage | e478ed9085c06cc3c5680b0ca4dc20eff2e74653 | [
"MIT"
] | null | null | null | defmodule Web.ArticleLive do
@moduledoc false
use Phoenix.LiveView
import Phoenix.HTML, only: [raw: 1]
import Publishing.Helper, only: [format_date: 1]
alias Publishing.Manage
@meta %{
title: "branchpage title",
description: "no description yet",
social_image: "/images/cover.png"
}
@imp... | 23.138889 | 76 | 0.630252 |
2124e58ef6bebdaf2c6d2a8cc24cf92f4b6bb9ec | 900 | exs | Elixir | test/lib/absinthe/schema/rule/type_names_are_reserved_test.exs | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | test/lib/absinthe/schema/rule/type_names_are_reserved_test.exs | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | test/lib/absinthe/schema/rule/type_names_are_reserved_test.exs | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Schema.Rule.TypeNamesAreReservedTest do
use ExSpec, async: true
use SupportSchemas
alias Absinthe.Schema.Rule
describe "rule" do
it "is enforced" do
assert_schema_error("prefix_schema",
[
%{rule: Rule.TypeNamesAreReserved, dat... | 37.5 | 124 | 0.556667 |
21251b8ec49b6b2dc1351e432b111ee0789fd7cc | 930 | ex | Elixir | lib/core/asset/supervisor.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset/supervisor.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset/supervisor.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Asset.Supervisor do
@moduledoc false
use Supervisor
alias FarmbotOS.{ChangeSupervisor, AssetMonitor}
alias FarmbotOS.Asset.{
Device,
FarmEvent,
FarmwareEnv,
FbosConfig,
FirmwareConfig,
PinBinding,
Peripheral,
RegimenInstance
}
def start_link(args) do
... | 23.846154 | 61 | 0.694624 |
212536114ae52c1e9244c1d38750c50bfb1a7cee | 202 | ex | Elixir | test/support/repo.ex | RomanKotov/ecto_ltree | b2863fd31a3304ec07b9c43e09f5c985d8652deb | [
"MIT"
] | null | null | null | test/support/repo.ex | RomanKotov/ecto_ltree | b2863fd31a3304ec07b9c43e09f5c985d8652deb | [
"MIT"
] | null | null | null | test/support/repo.ex | RomanKotov/ecto_ltree | b2863fd31a3304ec07b9c43e09f5c985d8652deb | [
"MIT"
] | null | null | null | defmodule EctoLtree.TestRepo do
use Ecto.Repo, otp_app: :ecto_ltree
def config_postgrex() do
config()
|> Keyword.take([:hostname, :port, :database, :username, :password, :types])
end
end
| 22.444444 | 80 | 0.693069 |
21257c8ee30a8b434a8450487b2db89967f15aff | 13,824 | ex | Elixir | lib/cotoami/services/coto_graph_service.ex | fmorita/cotoami | e3eb92ad15829f99cf3e8974077f135e789924cf | [
"Apache-2.0"
] | null | null | null | lib/cotoami/services/coto_graph_service.ex | fmorita/cotoami | e3eb92ad15829f99cf3e8974077f135e789924cf | [
"Apache-2.0"
] | null | null | null | lib/cotoami/services/coto_graph_service.ex | fmorita/cotoami | e3eb92ad15829f99cf3e8974077f135e789924cf | [
"Apache-2.0"
] | null | null | null | defmodule Cotoami.CotoGraphService do
@moduledoc """
Provides Coto-graph related functions based on Cotoami.Neo4jService.
"""
require Logger
import Cotoami.Helpers
import Ecto.Query, only: [from: 2]
alias Phoenix.View
alias Bolt.Sips.Types.Node
alias Cotoami.{Repo, Coto, Amishi, Cotonoma, CotoGraph, ... | 31.489749 | 100 | 0.658203 |
21258b7fec1d570453c2fe9fcb8960d86a481160 | 1,421 | exs | Elixir | test/lowendinsight_get/github_trending_test.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 1 | 2020-07-02T19:17:09.000Z | 2020-07-02T19:17:09.000Z | test/lowendinsight_get/github_trending_test.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 19 | 2020-03-03T18:36:30.000Z | 2022-02-20T21:57:34.000Z | test/lowendinsight_get/github_trending_test.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 2 | 2020-05-14T16:34:14.000Z | 2020-12-16T09:13:42.000Z | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
defmodule LowendinsightGet.GithubTrendingTest do
use ExUnit.Case, async: false
@tag timeout: 180_000
test "it perfor... | 38.405405 | 99 | 0.717804 |
21258e471f4fb5d155e378eba9e70d8a051fbe7e | 882 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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.666667 | 74 | 0.758503 |
21259395f315f630f3a886202f274eb8b649268c | 255 | ex | Elixir | jelixir/jelixir/book.ex | ttpho/elixir-json-conver | cd690b482b5bc1552dedc6379261fc2db3af5479 | [
"MIT"
] | 12 | 2020-07-19T14:51:12.000Z | 2020-09-07T10:12:51.000Z | jelixir/jelixir/book.ex | ttpho/elixir-json-conver | cd690b482b5bc1552dedc6379261fc2db3af5479 | [
"MIT"
] | 10 | 2020-07-21T10:57:15.000Z | 2020-07-27T14:39:05.000Z | jelixir/jelixir/book.ex | ttpho/elixir-json-conver | cd690b482b5bc1552dedc6379261fc2db3af5479 | [
"MIT"
] | 1 | 2020-07-25T13:57:20.000Z | 2020-07-25T13:57:20.000Z | defmodule Book do
use Ecto.Schema
schema "book" do
field(:code, :string)
field(:createdAt, :string)
field(:edition, :string)
field(:price, :integer)
field(:publisher, :string)
field(:title, :string)
field(:updatedAt, :string)
end
end | 19.615385 | 29 | 0.67451 |
2125985002ca5e8a9ed385f202a27e7ba2444903 | 1,897 | exs | Elixir | mix.exs | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 13 | 2020-03-31T21:45:40.000Z | 2021-02-13T12:17:22.000Z | mix.exs | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 1 | 2021-03-10T12:57:21.000Z | 2021-03-10T12:57:21.000Z | mix.exs | sb8244/pow_starter_pack | 82e16c3e4139ecc85295078b54024f58f95ab794 | [
"MIT"
] | 1 | 2020-04-28T15:41:56.000Z | 2020-04-28T15:41:56.000Z | defmodule UserService.MixProject do
use Mix.Project
def project do
[
app: :user_service,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: alias... | 26.71831 | 79 | 0.550343 |
2125bf3702accf4d0164a4ca9b3c0d429165e7c3 | 281 | exs | Elixir | lib/elixir/test/elixir/atom_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/test/elixir/atom_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/atom_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule AtomTest do
use ExUnit.Case, async: true
doctest Atom
test "to_string/1" do
assert Atom.to_string(:"héllo") == "héllo"
end
test "to_char_list/1" do
assert Atom.to_char_list(:"héllo") == 'héllo'
end
end
| 17.5625 | 49 | 0.690391 |
2125f2f95764dcc9fd5d04839775fe60bfa7ff41 | 833 | exs | Elixir | mix.exs | num42/encrypted_secrets_ex | ee2d05e94a50a51b4488df8c6db36360c2636fcf | [
"MIT"
] | null | null | null | mix.exs | num42/encrypted_secrets_ex | ee2d05e94a50a51b4488df8c6db36360c2636fcf | [
"MIT"
] | null | null | null | mix.exs | num42/encrypted_secrets_ex | ee2d05e94a50a51b4488df8c6db36360c2636fcf | [
"MIT"
] | null | null | null | defmodule EncryptedSecrets.MixProject do
use Mix.Project
def project do
[
app: :encrypted_secrets,
version: "0.2.4",
elixir: "~> 1.5",
description: description(),
package: package(),
source_url: "https://github.com/kieraneglin/encrypted_secrets_ex",
start_permanent: Mi... | 20.317073 | 82 | 0.597839 |
2126060956b7a8bf87f23ea4dac127ecfdef4f66 | 1,265 | ex | Elixir | lib/google_api/you_tube/v3/model/channel_content_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/channel_content_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/channel_content_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.435897 | 124 | 0.761265 |
2126126c7907928f9b7ea7f2fba095b68b0d9e33 | 586 | ex | Elixir | time_tracker_backend/web/views/changeset_view.ex | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 382 | 2016-08-18T07:34:27.000Z | 2021-02-25T20:46:34.000Z | time_tracker_backend/web/views/changeset_view.ex | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 1 | 2017-09-30T00:01:26.000Z | 2017-09-30T00:01:26.000Z | time_tracker_backend/web/views/changeset_view.ex | knewter/time-tracker | 1f58031112a24c26a1a54ac33105b4430a04e954 | [
"MIT"
] | 45 | 2016-08-30T07:34:04.000Z | 2020-01-27T11:39:26.000Z | defmodule TimeTrackerBackend.ChangesetView do
use TimeTrackerBackend.Web, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`TimeTrackerBackend.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.t... | 29.3 | 71 | 0.749147 |
2126ae978d47532e76413419e152fdba72a76f67 | 1,160 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/access_context_manager/lib/google_api/access_context_manager/v1/connection.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.151515 | 74 | 0.747414 |
2126af015cb98325d646eb34a0b8a085981db7f3 | 213 | ex | Elixir | dev/backend.ex | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | null | null | null | dev/backend.ex | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | 1 | 2022-03-07T20:47:59.000Z | 2022-03-08T15:32:11.000Z | dev/backend.ex | kianmeng/cldr_calendars_lunisolar | 5754991127fb74722e74e4fc8d0a27f86fc49029 | [
"Apache-2.0"
] | 1 | 2022-03-07T15:41:14.000Z | 2022-03-07T15:41:14.000Z | require Cldr.Calendar
defmodule MyApp.Cldr do
use Cldr,
locales: ["fa", "ar", "ar-EG", "en", "de", "zh", "ja", "ko"],
default_locale: "en",
providers: [Cldr.Calendar, Cldr.Number, Cldr.DateTime]
end | 26.625 | 65 | 0.624413 |
2126e4bc2a4b8c614dca3126a72acdee0dd142fb | 674 | exs | Elixir | installer/templates/phx_umbrella/config/dev.exs | seasharps/phoenix | 95b9383c6a08be4ab1a0c8a7bbf6b6911d888ca1 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/config/dev.exs | seasharps/phoenix | 95b9383c6a08be4ab1a0c8a7bbf6b6911d888ca1 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/config/dev.exs | seasharps/phoenix | 95b9383c6a08be4ab1a0c8a7bbf6b6911d888ca1 | [
"MIT"
] | null | null | null | import Config
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime
# Set a higher stacktrace during development. Avoid configuring such
# in prod... | 37.444444 | 68 | 0.752226 |
2126f62e794b78ef0c77aabbdc4c71eff509fcd1 | 193 | exs | Elixir | test/controllers/page_controller_test.exs | whiterook6/learning_pheonix | 5825ddc484c99ca828c42116d9b16806fd85a76e | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | whiterook6/learning_pheonix | 5825ddc484c99ca828c42116d9b16806fd85a76e | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | whiterook6/learning_pheonix | 5825ddc484c99ca828c42116d9b16806fd85a76e | [
"MIT"
] | null | null | null | defmodule Penguin.PageControllerTest do
use Penguin.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.444444 | 60 | 0.673575 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.