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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1cd72c915546d2d80c416a72cde689b270050b77 | 4,406 | ex | Elixir | lib/honeydew/job_monitor.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 717 | 2015-06-15T19:30:54.000Z | 2022-03-22T06:10:09.000Z | lib/honeydew/job_monitor.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 106 | 2015-06-25T05:38:05.000Z | 2021-12-08T23:17:19.000Z | lib/honeydew/job_monitor.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 60 | 2015-06-07T00:48:37.000Z | 2022-03-06T08:20:23.000Z | defmodule Honeydew.JobMonitor do
@moduledoc false
use GenServer, restart: :transient
alias Honeydew.Crash
alias Honeydew.Logger, as: HoneydewLogger
alias Honeydew.Queue
alias Honeydew.Job
require Logger
require Honeydew
# when the queue casts a job to a worker, it spawns a local JobMonitor with th... | 34.692913 | 173 | 0.699047 |
1cd761781012af7ba4a83065092a4eae3f50bd72 | 6,096 | exs | Elixir | test/groupher_server/cms/hooks/notify_meetup_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/hooks/notify_meetup_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/hooks/notify_meetup_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.Hooks.NotifyMeetup do
use GroupherServer.TestTools
import GroupherServer.CMS.Delegate.Helper, only: [preload_author: 1]
alias GroupherServer.{CMS, Delivery, Repo}
alias CMS.Delegate.Hooks
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
{... | 34.834286 | 96 | 0.665682 |
1cd78426f8a41876516a7e3c7a478a2f530c3291 | 121 | exs | Elixir | config/dev.exs | denvera/ex-yapay | 18ac9a20108f21554a4c61b9c822694fa5189eb8 | [
"MIT"
] | 3 | 2020-08-11T19:05:55.000Z | 2020-08-19T21:57:39.000Z | config/dev.exs | denvera/ex-yapay | 18ac9a20108f21554a4c61b9c822694fa5189eb8 | [
"MIT"
] | 2 | 2020-08-20T16:32:02.000Z | 2021-09-27T18:46:40.000Z | config/dev.exs | denvera/ex-yapay | 18ac9a20108f21554a4c61b9c822694fa5189eb8 | [
"MIT"
] | 3 | 2020-08-11T19:20:22.000Z | 2021-10-17T17:29:59.000Z | import Config
config :ex_yapay,
base_url: System.get_env("YAPAY_URL") || "https://intermediador.sandbox.yapay.com.br"
| 24.2 | 87 | 0.752066 |
1cd796a53176b4862cdac57b802f33cf252b6abe | 1,871 | ex | Elixir | lib/hierbautberlin/importer/mein_berlin.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | null | null | null | lib/hierbautberlin/importer/mein_berlin.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | null | null | null | lib/hierbautberlin/importer/mein_berlin.ex | gildesmarais/website-1 | 7a19bd98d06a064e52fa279e226002e9c3b986f0 | [
"MIT"
] | null | null | null | defmodule Hierbautberlin.Importer.MeinBerlin do
alias Hierbautberlin.GeoData
def import(http_connection \\ HTTPoison) do
{:ok, source} =
GeoData.upsert_source(%{
short_name: "MEIN_BERLIN",
name: "meinBerlin",
url: "https://mein.berlin.de/",
copyright: "Stadt Berlin"
... | 25.630137 | 90 | 0.607696 |
1cd7974c26084aded1c8f6d4e99d9d9ad9113c26 | 1,175 | ex | Elixir | lib/atecc508a/info.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 6 | 2018-12-13T16:33:09.000Z | 2022-03-02T08:57:20.000Z | lib/atecc508a/info.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 10 | 2019-01-30T19:33:48.000Z | 2022-03-03T21:07:37.000Z | lib/atecc508a/info.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | 9 | 2019-08-22T06:26:45.000Z | 2022-03-01T18:05:01.000Z | defmodule ATECC508A.Info do
@moduledoc """
This struct contains all of the data stored on the device. Depending on how the device has been provisioned (or not),
some fields may be nil.
"""
defstruct serial_number: <<0::72>>,
otp_flags: 0,
board_name: "",
mfg_serial_number:... | 35.606061 | 119 | 0.596596 |
1cd826f5048a81b2112c6acc11fc523702cfb7a5 | 3,445 | ex | Elixir | lib/one_dhcpd/arp.ex | fhunleth/one_dhcpd | d1a4a6c7e8c86e7ae33c67231984b3665fa7382a | [
"Apache-2.0"
] | 6 | 2018-08-27T16:32:28.000Z | 2020-10-07T09:47:53.000Z | lib/one_dhcpd/arp.ex | fhunleth/one_dhcpd | d1a4a6c7e8c86e7ae33c67231984b3665fa7382a | [
"Apache-2.0"
] | null | null | null | lib/one_dhcpd/arp.ex | fhunleth/one_dhcpd | d1a4a6c7e8c86e7ae33c67231984b3665fa7382a | [
"Apache-2.0"
] | 1 | 2019-03-28T23:48:26.000Z | 2019-03-28T23:48:26.000Z | defmodule OneDHCPD.ARP do
@moduledoc """
This module contains utilities to view or update the ARP cache.
OneDHCPD uses this to update the ARP cache when the IP address is given
out. If networking isn't working, `OneDHCPD.ARP.entries/0` is useful
for debugging.
"""
defmodule Entry do
@moduledoc """
... | 23.758621 | 95 | 0.576488 |
1cd85d575eab1dc08927f649a86d8f5eb086e325 | 972 | exs | Elixir | test/wanon/cache/edit_test.exs | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | 1 | 2018-11-28T07:44:28.000Z | 2018-11-28T07:44:28.000Z | test/wanon/cache/edit_test.exs | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | 1 | 2018-10-24T20:59:09.000Z | 2018-10-24T20:59:09.000Z | test/wanon/cache/edit_test.exs | graffic/wanon-elixir | 65fcde17cbbeb1af3fda5f6423dba112dfa3b9a9 | [
"MIT"
] | null | null | null | defmodule EditTest do
use ExUnit.Case
alias Wanon.Cache.CacheEntry
import Ecto.Query, only: [from: 1]
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Wanon.Repo)
end
@update %{
"edited_message" => %{
"message_id" => 2,
"date" => 1540590127,
"edit_date" => 1540590133,
"tex... | 23.142857 | 95 | 0.651235 |
1cd897bb4a311acd989518c0bd427ccd3207e369 | 1,331 | exs | Elixir | mix.exs | ConnorRigby/turtletube_web | 0e6618395918234584edbb74ccceb589fc79bc68 | [
"MIT"
] | null | null | null | mix.exs | ConnorRigby/turtletube_web | 0e6618395918234584edbb74ccceb589fc79bc68 | [
"MIT"
] | null | null | null | mix.exs | ConnorRigby/turtletube_web | 0e6618395918234584edbb74ccceb589fc79bc68 | [
"MIT"
] | null | null | null | defmodule TurtleTube.MixProject do
use Mix.Project
def project do
[
app: :turtle_tube,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
deps: deps()
]
e... | 26.62 | 66 | 0.562735 |
1cd8d49ee5d29f32bdc40fb36d55a8834fe65f39 | 303 | ex | Elixir | lib/rienkun_web/channels/presence.ex | fcapovilla/rienkun | 7a3bf6aed5685aa2ab69260fc5a2f9d64696d6a1 | [
"BSD-3-Clause"
] | null | null | null | lib/rienkun_web/channels/presence.ex | fcapovilla/rienkun | 7a3bf6aed5685aa2ab69260fc5a2f9d64696d6a1 | [
"BSD-3-Clause"
] | null | null | null | lib/rienkun_web/channels/presence.ex | fcapovilla/rienkun | 7a3bf6aed5685aa2ab69260fc5a2f9d64696d6a1 | [
"BSD-3-Clause"
] | null | null | null | defmodule RienkunWeb.Presence do
@moduledoc """
Provides presence tracking to channels and processes.
See the [`Phoenix.Presence`](http://hexdocs.pm/phoenix/Phoenix.Presence.html)
docs for more details.
"""
use Phoenix.Presence,
otp_app: :rienkun,
pubsub_server: Rienkun.PubSub
end
| 25.25 | 79 | 0.735974 |
1cd8f53b4094968e8a70b12ca977fb669b470c21 | 14,212 | exs | Elixir | test/cases/integration_test.exs | dgmcguire/distillery | 137c9b1920ab1d03080d0cfb0fb4835c8a763fbb | [
"MIT"
] | null | null | null | test/cases/integration_test.exs | dgmcguire/distillery | 137c9b1920ab1d03080d0cfb0fb4835c8a763fbb | [
"MIT"
] | null | null | null | test/cases/integration_test.exs | dgmcguire/distillery | 137c9b1920ab1d03080d0cfb0fb4835c8a763fbb | [
"MIT"
] | null | null | null | defmodule Distillery.Test.IntegrationTest do
use ExUnit.Case, async: false
alias Mix.Releases.Utils
import Distillery.Test.Helpers
@moduletag integration: true
@moduletag timeout: 60_000 * 5
@fixtures_path Path.join([__DIR__, "..", "fixtures"])
@standard_app_path Path.join([@fixtures_path, "standard_a... | 35.004926 | 99 | 0.582325 |
1cd914ea0a821aed5b456d0441366e8a1241f43f | 972 | ex | Elixir | lib/unifex/specs_parser.ex | wishdev/unifex | f16a65b73e2a482e784b1bf6816b73c0f7bdb2a7 | [
"Apache-2.0"
] | null | null | null | lib/unifex/specs_parser.ex | wishdev/unifex | f16a65b73e2a482e784b1bf6816b73c0f7bdb2a7 | [
"Apache-2.0"
] | null | null | null | lib/unifex/specs_parser.ex | wishdev/unifex | f16a65b73e2a482e784b1bf6816b73c0f7bdb2a7 | [
"Apache-2.0"
] | null | null | null | defmodule Unifex.SpecsParser do
@moduledoc """
Module that handles parsing Unifex specs for native boilerplate code generation.
For information on how to create such specs, see `Unifex.Specs` module.
"""
@type parsed_specs_t :: [{:module, module()} | {:fun_specs, tuple()}]
@doc """
Parses Unifex specs ... | 28.588235 | 84 | 0.673868 |
1cd91a337779e38d19c1f1b5ea7ba93f76e2221e | 4,554 | ex | Elixir | backend/lib/kjer_si/rooms.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 2 | 2019-11-02T21:28:34.000Z | 2019-11-28T18:01:08.000Z | backend/lib/kjer_si/rooms.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 17 | 2019-11-29T16:23:38.000Z | 2022-02-14T05:11:41.000Z | backend/lib/kjer_si/rooms.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | null | null | null | defmodule KjerSi.Rooms do
@moduledoc """
The Rooms context.
"""
import Ecto.Query, warn: false
import Geo.PostGIS
alias KjerSi.Repo
alias KjerSi.Rooms.Category
@doc """
Returns the list of categories.
## Examples
iex> list_categories()
[%Category{}, ...]
"""
def list_categories... | 17.789063 | 75 | 0.581906 |
1cd94c0cdcd5e470c2b2da21ea55fb1a8dcc78ae | 897 | ex | Elixir | test/support/fixtures/field_schema_fixture.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | test/support/fixtures/field_schema_fixture.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | 4 | 2021-12-07T12:26:50.000Z | 2021-12-30T14:17:25.000Z | test/support/fixtures/field_schema_fixture.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | defmodule AdaptableCostsEvaluator.Fixtures.FieldSchemaFixture do
use ExUnit.CaseTemplate
alias AdaptableCostsEvaluator.FieldSchemas
alias AdaptableCostsEvaluator.FieldSchemas.FieldSchema
using do
quote do
@valid_field_schema_attrs %{definition: %{}, name: "some name"}
@update_field_schema_attr... | 28.03125 | 78 | 0.655518 |
1cd9b4cf34e8ec4784fbdd5edd5c649f04c8473f | 543 | ex | Elixir | lib/lrucache_api_web/views/error_view.ex | anakind/phoenix-lrucache-api | cfb0dfba181fe196dd0d77dba9854dd9c50ba070 | [
"MIT"
] | null | null | null | lib/lrucache_api_web/views/error_view.ex | anakind/phoenix-lrucache-api | cfb0dfba181fe196dd0d77dba9854dd9c50ba070 | [
"MIT"
] | null | null | null | lib/lrucache_api_web/views/error_view.ex | anakind/phoenix-lrucache-api | cfb0dfba181fe196dd0d77dba9854dd9c50ba070 | [
"MIT"
] | null | null | null | defmodule LrucacheApiWeb.ErrorView do
use LrucacheApiWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status mess... | 31.941176 | 83 | 0.723757 |
1cd9b979f62ea810f63924152354a6f45208e254 | 739 | exs | Elixir | elixir/elixir-sips/samples/sdl_playground/examples/window.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/sdl_playground/examples/window.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/sdl_playground/examples/window.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule SdlWindow do
def start do
:ok = :sdl.start([:video])
:ok = :sdl.stop_on_exit
{:ok, window} = :sdl_window.create('Hello SDL', 10, 10, 500, 500, [])
{:ok, renderer} = :sdl_renderer.create(window, -1, [:accelereated, :present_vsync])
loop(renderer)
end
defp loop(renderer) do
:ok ... | 25.482759 | 87 | 0.61705 |
1cd9c2ebc8bf248aaa00636b89eeb5daae843aca | 981 | ex | Elixir | lib/codes/codes_w07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_w07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_w07.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_W07 do
alias IcdCode.ICDCode
def _W07XXXA do
%ICDCode{full_code: "W07XXXA",
category_code: "W07",
short_code: "XXXA",
full_name: "Fall from chair, initial encounter",
short_name: "Fall from chair, initial encounter",
category_name:... | 28.852941 | 64 | 0.61366 |
1cd9c50bab635a6dae3926d88623f5f24d3abe4f | 1,672 | ex | Elixir | lib/bongo/map_to_model.ex | anuragdalia/bongo | c83c9ef70f76968e122ea7f5ed7ed2857266a13b | [
"MIT"
] | 1 | 2019-01-31T04:50:18.000Z | 2019-01-31T04:50:18.000Z | lib/bongo/map_to_model.ex | yatender-oktalk/bongo | bf68a4ffd67f850d6dd1c05fd3eb01f73d677812 | [
"MIT"
] | null | null | null | lib/bongo/map_to_model.ex | yatender-oktalk/bongo | bf68a4ffd67f850d6dd1c05fd3eb01f73d677812 | [
"MIT"
] | null | null | null | defmodule Bongo.MapToModel do
def type(k, v) do
type_text = type_raw(k, v)
"\t\tfield(:#{k}, #{type_text}, enforce: true)\n"
end
def type_raw(k, v) do
cond do
is_boolean(v) ->
":boolean, :boolean"
is_integer(v) ->
":integer, :integer"
is_float(v) -> ":float, :float... | 21.435897 | 70 | 0.513756 |
1cd9c97c5a2f7782363c38871d3d529ac3e4a434 | 1,543 | ex | Elixir | clients/service_directory/lib/google_api/service_directory/v1/model/empty.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_directory/lib/google_api/service_directory/v1/model/empty.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_directory/lib/google_api/service_directory/v1/model/empty.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... | 36.738095 | 345 | 0.760207 |
1cda01749e5e64cf11d59255201f27aa94ad7709 | 1,986 | exs | Elixir | mix.exs | anthonyfalzetti/gremlex | 210ddbfb0ca9448e5e1ad910fc9ae055b4c1c44c | [
"MIT"
] | null | null | null | mix.exs | anthonyfalzetti/gremlex | 210ddbfb0ca9448e5e1ad910fc9ae055b4c1c44c | [
"MIT"
] | null | null | null | mix.exs | anthonyfalzetti/gremlex | 210ddbfb0ca9448e5e1ad910fc9ae055b4c1c44c | [
"MIT"
] | null | null | null | defmodule Gremlex.MixProject do
use Mix.Project
def project do
[
app: :gremlex,
version: "0.1.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
t... | 26.837838 | 186 | 0.556898 |
1cda09b840416cdb4ca04ee55c9c1e733d8b118c | 7,056 | exs | Elixir | test/io/reader_test.exs | Tux9001/05AB1E | 8b28b648961c19217cc8e481714e33a4a16f41c2 | [
"MIT"
] | 734 | 2015-12-23T01:53:01.000Z | 2022-03-26T04:06:21.000Z | test/io/reader_test.exs | Tux9001/05AB1E | 8b28b648961c19217cc8e481714e33a4a16f41c2 | [
"MIT"
] | 166 | 2016-01-01T00:57:56.000Z | 2022-03-25T19:11:54.000Z | test/io/reader_test.exs | Tux9001/05AB1E | 8b28b648961c19217cc8e481714e33a4a16f41c2 | [
"MIT"
] | 88 | 2015-12-23T17:20:19.000Z | 2022-03-16T19:07:55.000Z | defmodule ReaderTest do
use ExUnit.Case
alias Reading.Reader
alias Reading.CodePage
import ExUnit.CaptureIO
import TestHelper
test "utf8 to osabie encoding" do
assert CodePage.utf8_to_osabie("Γ") == 16
assert CodePage.utf8_to_osabie("λ") == 173
assert capture_io(:stderr... | 33.126761 | 155 | 0.595522 |
1cda19ab3af77216475de06b0b7c2fd2ab4c9dcf | 518 | ex | Elixir | test/support/factories/contato_factory.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | test/support/factories/contato_factory.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | test/support/factories/contato_factory.ex | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | defmodule Kirby.ContatoFactory do
@moduledoc false
defmacro __using__(_opts) do
quote do
def unique_user_email, do: "user#{System.unique_integer()}@example.com"
def contato_factory(attrs) do
contact = %Kirby.Entities.Contato{
email: unique_user_email(),
celular: "(11)98... | 23.545455 | 77 | 0.617761 |
1cda358361394e02b09db1568e2ff7b12f425e86 | 1,697 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_version_operation_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_version_operation_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_version_operation_metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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.634615 | 142 | 0.757808 |
1cda74ac80075697239d12d5cf74f5d246d155b6 | 1,268 | ex | Elixir | lib/stripe_mock/id.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | 4 | 2019-06-04T20:35:21.000Z | 2021-09-02T04:04:21.000Z | lib/stripe_mock/id.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | 2 | 2020-02-04T17:38:12.000Z | 2021-04-29T06:59:06.000Z | lib/stripe_mock/id.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | null | null | null | defmodule StripeMock.ID do
@moduledoc """
Generates a somewhat Stripe-esque random ID string. Pretty much a base52-encoded UUID.
"""
alias StripeMock.API
@spec generate() :: String.t()
def generate() do
from_bytes(:crypto.strong_rand_bytes(16))
end
@spec from_uuid(String.t()) :: String.t() | none(... | 28.818182 | 88 | 0.63959 |
1cdac1d3577655290cdd9574466c7994719174df | 3,675 | exs | Elixir | test/doumi/case_helper_test.exs | nallwhy/doumi | 6324c340e0ad1974000f7ce2903fc0cccfae12f4 | [
"MIT"
] | 1 | 2020-08-25T23:43:51.000Z | 2020-08-25T23:43:51.000Z | test/doumi/case_helper_test.exs | nallwhy/doumi | 6324c340e0ad1974000f7ce2903fc0cccfae12f4 | [
"MIT"
] | null | null | null | test/doumi/case_helper_test.exs | nallwhy/doumi | 6324c340e0ad1974000f7ce2903fc0cccfae12f4 | [
"MIT"
] | null | null | null | defmodule Doumi.CaseHelperTest do
use ExUnit.Case, async: true
alias Doumi.CaseHelper
describe "same_records?/2" do
defmodule RecordTestModule do
use Ecto.Schema
@primary_key false
schema "record_test" do
field(:primary_key0, :integer, primary_key: true)
field(:primary_key1... | 28.053435 | 87 | 0.651156 |
1cdac384799f06ca821a7d649a9f546e0f88670a | 1,244 | exs | Elixir | mix.exs | Tochemey/ExString | 340175ed6602def53b76d3fa1eb735d598468060 | [
"Apache-2.0"
] | 3 | 2017-05-07T21:07:17.000Z | 2018-09-13T13:28:14.000Z | mix.exs | Tochemey/ExString | 340175ed6602def53b76d3fa1eb735d598468060 | [
"Apache-2.0"
] | null | null | null | mix.exs | Tochemey/ExString | 340175ed6602def53b76d3fa1eb735d598468060 | [
"Apache-2.0"
] | null | null | null | defmodule ExStringUtil.Mixfile do
use Mix.Project
def project do
[app: :ex_string_util,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps()]
end
# Configurat... | 25.387755 | 90 | 0.625402 |
1cdad646db4b799c66f0a9ad2bd33e425d9815f9 | 26 | ex | Elixir | lib/keen_auth.ex | KeenMate/keen_auth | 55ef1903e446a666ff2762a03080999196c5c355 | [
"MIT"
] | null | null | null | lib/keen_auth.ex | KeenMate/keen_auth | 55ef1903e446a666ff2762a03080999196c5c355 | [
"MIT"
] | null | null | null | lib/keen_auth.ex | KeenMate/keen_auth | 55ef1903e446a666ff2762a03080999196c5c355 | [
"MIT"
] | null | null | null | defmodule KeenAuth do
end
| 8.666667 | 21 | 0.846154 |
1cdae2a92d33cf9f5e424edd627241869fd8b235 | 1,345 | exs | Elixir | test/crit_biz/view_models/setup/bulk_animal_vm_4_insert_all_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/crit_biz/view_models/setup/bulk_animal_vm_4_insert_all_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/crit_biz/view_models/setup/bulk_animal_vm_4_insert_all_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule CritBiz.ViewModels.Setup.BulkAnimalVM.InsertAllTest do
use Crit.DataCase, async: true
alias CritBiz.ViewModels.Setup, as: VM
alias Crit.Schemas
use FlowAssertions
@daisy_to_insert Factory.build(:animal, name: "Daisy")
setup do
{:ok, [daisy_vm]} =
VM.BulkAnimal.insert_all([@daisy_to_in... | 31.27907 | 83 | 0.684758 |
1cdb14485bcaf600f5e1dfe7e4f907dc89ed065d | 187 | ex | Elixir | lib/cielo/entities/base.ex | brunolouvem/cielo | ec1bc4c728ccf2f0a577aec5e0c1657bc97c964b | [
"MIT"
] | 1 | 2020-11-05T01:21:29.000Z | 2020-11-05T01:21:29.000Z | lib/cielo/entities/base.ex | brunolouvem/cielo | ec1bc4c728ccf2f0a577aec5e0c1657bc97c964b | [
"MIT"
] | null | null | null | lib/cielo/entities/base.ex | brunolouvem/cielo | ec1bc4c728ccf2f0a577aec5e0c1657bc97c964b | [
"MIT"
] | null | null | null | defmodule Cielo.Entities.Base do
@moduledoc false
defmacro __using__(_opts) do
quote do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
end
end
end
| 17 | 32 | 0.684492 |
1cdb271a761d67b32f0ae7cd262e6d466f0ef084 | 1,479 | exs | Elixir | mix.exs | ex-aws/ex_aws_cloudformation | 8fe8ceb62ab9d018a572038387fe98f3ffdc4212 | [
"Unlicense",
"MIT"
] | null | null | null | mix.exs | ex-aws/ex_aws_cloudformation | 8fe8ceb62ab9d018a572038387fe98f3ffdc4212 | [
"Unlicense",
"MIT"
] | 3 | 2017-10-19T01:31:27.000Z | 2021-02-18T13:14:02.000Z | mix.exs | ex-aws/ex_aws_cloudformation | 8fe8ceb62ab9d018a572038387fe98f3ffdc4212 | [
"Unlicense",
"MIT"
] | 4 | 2017-10-27T05:36:35.000Z | 2019-10-29T07:28:30.000Z | defmodule ExAws.Cloudformation.Mixfile do
use Mix.Project
@version "2.0.1"
@service "cloudformation"
@url "https://github.com/ex-aws/ex_aws_#{@service}"
def project do
[
app: :ex_aws_cloudformation,
version: @version,
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
... | 24.245902 | 70 | 0.563895 |
1cdb711bc3a74164c02886999f60f89750961616 | 948 | ex | Elixir | lib/format_parser/video.ex | ahtung/format_parser.ex | b4c858f9f3dedd8e62ac17b633d951eb247b7c1f | [
"Apache-2.0"
] | 21 | 2018-02-17T18:49:37.000Z | 2020-03-13T11:14:30.000Z | lib/format_parser/video.ex | ahtung/format_parser.ex | b4c858f9f3dedd8e62ac17b633d951eb247b7c1f | [
"Apache-2.0"
] | 20 | 2018-02-15T07:17:56.000Z | 2021-01-13T13:08:49.000Z | lib/format_parser/video.ex | dunyakirkali/format_parser.ex | 418a6ff5d83be4bcaaa057b4f7eb652c1add2ae6 | [
"Apache-2.0"
] | 1 | 2020-01-28T09:39:00.000Z | 2020-01-28T09:39:00.000Z | defmodule FormatParser.Video do
alias __MODULE__
@moduledoc """
A Video struct and functions.
The Video struct contains the fields format, width_px, height_px and nature.
"""
defstruct [:format, :width_px, :height_px, nature: :video]
@doc """
Parses a file and extracts some information from it.
T... | 21.066667 | 114 | 0.675105 |
1cdb808e8bda1e62603a28f0509bf781466b1f31 | 679 | exs | Elixir | mix.exs | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | null | null | null | mix.exs | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | null | null | null | mix.exs | renovate-tests/ex | 2e02d5a1e59122c13a0ebd2321f5cb291160aaa8 | [
"MIT"
] | null | null | null | defmodule Ex2.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"c... | 21.903226 | 59 | 0.590574 |
1cdb9a49c0fbf85eede306d75cc7a88eedd3d30e | 5,012 | ex | Elixir | lib/media_server/accounts/user.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | lib/media_server/accounts/user.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | lib/media_server/accounts/user.ex | MNDL-27/midarr-server | b749707a1777205cea2d93349cde2ef922e527ec | [
"MIT"
] | null | null | null | defmodule MediaServer.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :email, :string
field :name, :string
field :password, :string, virtual: true, redact: true
field :hashed_password, :string, redact: true
field :confirmed_at, :naive_datetime
field :is_admi... | 31.721519 | 112 | 0.684557 |
1cdba458f37a9a8ef9b96da05cfdbfd70069f85c | 1,156 | ex | Elixir | apps/gullintanni_web/lib/gullintanni_web/application.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | 15 | 2016-08-09T21:27:54.000Z | 2020-12-03T11:21:10.000Z | apps/gullintanni_web/lib/gullintanni_web/application.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | 15 | 2016-08-04T21:11:05.000Z | 2017-08-02T17:46:17.000Z | apps/gullintanni_web/lib/gullintanni_web/application.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | null | null | null | defmodule GullintanniWeb.Application do
@moduledoc false
use Application
require Logger
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = http_workers()
opts = [strategy: :one_for_one, name: GullintanniWeb.Supervisor]
Supervisor.start_link(children, opts)
end
de... | 27.52381 | 82 | 0.688581 |
1cdbdc84155b792f311f71492833bdea0cde291b | 607 | ex | Elixir | lib/webapp/notifications/notify_console.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | lib/webapp/notifications/notify_console.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | lib/webapp/notifications/notify_console.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule Webapp.Notifications.NotifyConsole do
use GenServer
require Logger
alias Phoenix.Socket.Broadcast
def start_link(_opts) do
GenServer.start_link(__MODULE__, [])
end
def init(_) do
Logger.info("Starting #{__MODULE__} module. Subscribing to events topic.")
WebappWeb.Endpoint.subscribe("... | 24.28 | 84 | 0.69028 |
1cdbea60ca280cb7678e00e995631aaeb8af11a4 | 693 | ex | Elixir | platform/target/network/tzdata_task.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | platform/target/network/tzdata_task.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | platform/target/network/tzdata_task.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.Target.Network.TzdataTask do
use GenServer
@fb_data_dir Path.join(Application.get_env(:farmbot, :data_path), "tmp_downloads")
@timer_ms round(1.2e+6) # 20 minutes
def start_link(_, _) do
GenServer.start_link(__MODULE__, [], [name: __MODULE__])
end
def init([]) do
send self(), :d... | 22.354839 | 84 | 0.660895 |
1cdbef68e7944c003261455918a79244d4ce043a | 20,583 | ex | Elixir | lib/elixir/lib/regex.ex | ellbee/elixir | c1acfe9827f12ef58f7f301baad7497472cb4bc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/regex.ex | ellbee/elixir | c1acfe9827f12ef58f7f301baad7497472cb4bc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/regex.ex | ellbee/elixir | c1acfe9827f12ef58f7f301baad7497472cb4bc9 | [
"Apache-2.0"
] | null | null | null | defmodule Regex do
@moduledoc ~S"""
Provides regular expressions for Elixir. Built on top of Erlang's `:re`
module.
As the [`:re` module](http://www.erlang.org/doc/man/re.html), Regex is based on PCRE
(Perl Compatible Regular Expressions). More information can be
found in the [`:re` module documentation](h... | 30.136164 | 113 | 0.617548 |
1cdbefff52a2a11dc830cacd6950c3060930f54e | 1,584 | ex | Elixir | lib/tentacat/issues/reactions.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 432 | 2015-01-19T20:38:35.000Z | 2022-01-11T14:32:28.000Z | lib/tentacat/issues/reactions.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 183 | 2015-01-19T08:55:29.000Z | 2022-03-01T20:26:03.000Z | lib/tentacat/issues/reactions.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 189 | 2015-01-04T14:56:59.000Z | 2021-12-14T20:48:18.000Z | defmodule Tentacat.Issues.Reactions do
import Tentacat
alias Tentacat.Client
@doc """
List the reactions on a issue.
## Example
Tentacat.Issues.Reactions.list "elixir-lang" , "elixir", "3"
More info at: https://developer.github.com/v3/reactions/#list-reactions-for-an-issue
"""
@spec list(Cli... | 26.847458 | 88 | 0.657197 |
1cdbf9a03fea71bc3c65314f32a2333de41b12ea | 2,873 | ex | Elixir | lib/mix/lib/mix/scm.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/mix/lib/mix/scm.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/scm.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | defmodule Mix.SCM do
use Behaviour
@typep opts :: [{ atom, any }]
@typep lock
@moduledoc """
This module provides helper functions and defines the
behavior required by any SCM used by mix.
"""
@doc """
Returns an Elixir term that contains relevant SCM
information for printing.
"""
defcallback... | 26.357798 | 68 | 0.696833 |
1cdc10354fafc88454919bbf982440711a7fc4c2 | 13,151 | ex | Elixir | clients/people/lib/google_api/people/v1/model/person.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/person.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/person.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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... | 82.710692 | 525 | 0.694852 |
1cdc2e6cc6c9a6b450a719decdd5bc245e83c63a | 1,113 | exs | Elixir | apps/stops/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/stops/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/stops/config/config.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.903226 | 73 | 0.750225 |
1cdc746dd76c9e285c142615874563dbf4409f0f | 2,113 | exs | Elixir | config/prod.exs | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"MIT"
] | null | null | null | config/prod.exs | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"MIT"
] | null | null | null | config/prod.exs | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"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.539683 | 67 | 0.722196 |
1cdc9a9104d8839817c477b2487fd9b549b4d815 | 178 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/46.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/46.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/46.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
verb SYM pn demonstrative inj;
pnoun cm noun adjective noun;
cm nst noun demonstrative noun;
pn particle cardinal noun quantifier;
SYM pnoun noun cm noun;
| 22.25 | 38 | 0.764045 |
1cdcbbb195c8d7401136f25e087cd52cbfb75e40 | 4,917 | exs | Elixir | test/smart_city/dataset_test.exs | SmartColumbusOS/smart_city | 7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562 | [
"Apache-2.0"
] | 2 | 2019-07-09T15:52:17.000Z | 2020-01-17T08:01:27.000Z | test/smart_city/dataset_test.exs | SmartColumbusOS/smart_city | 7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562 | [
"Apache-2.0"
] | 24 | 2019-06-06T15:36:12.000Z | 2020-02-06T16:45:53.000Z | test/smart_city/dataset_test.exs | SmartColumbusOS/smart_city | 7c18d4d7e9c67c7aa8b97e11d72af1865ef6c562 | [
"Apache-2.0"
] | 1 | 2022-03-08T23:44:23.000Z | 2022-03-08T23:44:23.000Z | defmodule SmartCity.DatasetTest do
use ExUnit.Case
use Placebo
import Checkov
doctest SmartCity.Dataset
alias SmartCity.Dataset
alias SmartCity.Dataset.{Business, Technical}
setup do
message = %{
"id" => "uuid",
"technical" => %{
"dataName" => "dataset",
"orgName" => "org"... | 32.348684 | 103 | 0.582672 |
1cdcc5641def81a5d05028e9b934eb6af520ca14 | 946 | ex | Elixir | lib/ctrlv/pastes/language.ex | ryanwinchester/ctrlv | eee44962dda062ba2154cc8bb57d86a6d814c71f | [
"Apache-2.0"
] | 1 | 2022-03-31T17:55:16.000Z | 2022-03-31T17:55:16.000Z | lib/ctrlv/pastes/language.ex | ryanwinchester/ctrlv | eee44962dda062ba2154cc8bb57d86a6d814c71f | [
"Apache-2.0"
] | 7 | 2022-03-30T02:52:54.000Z | 2022-03-30T23:11:01.000Z | lib/ctrlv/pastes/language.ex | ryanwinchester/ctrlv | eee44962dda062ba2154cc8bb57d86a6d814c71f | [
"Apache-2.0"
] | 1 | 2022-03-31T03:37:16.000Z | 2022-03-31T03:37:16.000Z | defmodule Ctrlv.Pastes.Language do
@moduledoc """
The languages supported by <ctrlv.io>.
"""
@supported_languages ~w(
cpp css html java javascript json markdown php python rust apl asciiArmor
asn1 asterisk brainfuck c csharp dart clojure cmake cobol coffeeScript
commonLisp crystal sCSS less cypher ... | 45.047619 | 79 | 0.780127 |
1cdcc89f276a4872df520421abe02b02b6325e84 | 1,323 | ex | Elixir | lib/oidc/client_config.ex | YuriiZdyrko/oidc | 5587586a3ce00d43aa9df38052e95e17d8536033 | [
"Apache-2.0"
] | null | null | null | lib/oidc/client_config.ex | YuriiZdyrko/oidc | 5587586a3ce00d43aa9df38052e95e17d8536033 | [
"Apache-2.0"
] | 1 | 2021-09-22T13:25:07.000Z | 2021-09-22T13:25:07.000Z | lib/oidc/client_config.ex | YuriiZdyrko/oidc | 5587586a3ce00d43aa9df38052e95e17d8536033 | [
"Apache-2.0"
] | null | null | null | defmodule OIDC.ClientConfig do
@moduledoc """
Behaviour to retrieve client configuration at runtime
Client configuration is a map whose keys are those documented in
[OpenID Connect Dynamic Client Registration 1.0 incorporating errata set 1](https://openid.net/specs/openid-connect-registration-1_0.html#ClientMe... | 35.756757 | 155 | 0.707483 |
1cdcd5e12c3242273e611e39197a357ec732597d | 1,686 | ex | Elixir | lib/elixir/lib/port.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/elixir/lib/port.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/port.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule Port do
@moduledoc """
Functions related to Erlang ports.
"""
@doc """
See http://www.erlang.org/doc/man/erlang.html#open_port-2.
Inlined by the compiler.
"""
def open(name, settings) do
:erlang.open_port(name, settings)
end
@doc """
See http://www.erlang.org/doc/man/erlang.html#p... | 19.604651 | 63 | 0.653025 |
1cdcfeef2d9c2ac955fef997665af505cd9a1b78 | 5,858 | ex | Elixir | lib/aws/appstream.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | 223 | 2015-05-29T17:45:35.000Z | 2021-06-29T08:37:14.000Z | lib/aws/appstream.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | 33 | 2015-11-20T20:56:43.000Z | 2021-07-09T20:13:34.000Z | lib/aws/appstream.ex | ttyerl/aws-elixir | 48f6360fccee5dd587fab7a6efb109a399ff9a46 | [
"Apache-2.0"
] | 62 | 2015-06-14T20:53:24.000Z | 2021-12-13T07:20:15.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.AppStream do
@moduledoc """
Amazon AppStream 2.0
API documentation for Amazon AppStream 2.0.
"""
@doc """
Associate a fleet to a stack.
"""
def associate_fleet(client, input, optio... | 30.510417 | 77 | 0.66422 |
1cdd21df3f927bb90cc2c7f3ad5a729724b3dbc1 | 1,135 | exs | Elixir | config/config.exs | keathley/butler_tableflip | bff056d04e1e25dca903346446c62557fbc6ff3a | [
"MIT"
] | 3 | 2016-02-19T01:32:54.000Z | 2019-01-25T13:52:53.000Z | config/config.exs | keathley/butler_tableflip | bff056d04e1e25dca903346446c62557fbc6ff3a | [
"MIT"
] | null | null | null | config/config.exs | keathley/butler_tableflip | bff056d04e1e25dca903346446c62557fbc6ff3a | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.612903 | 73 | 0.755066 |
1cdd350011f48fe214b2485388472450fe7757fe | 1,829 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/issuance_modes.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/issuance_modes.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/private_ca/lib/google_api/private_ca/v1beta1/model/issuance_modes.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.58 | 168 | 0.750137 |
1cdd8acab76703d1442f9f7b70c34c5e7c04ac40 | 1,468 | exs | Elixir | mix.exs | lukaszsamson/elixir_zabbix_sender | 213cc1c8eb3294bedc9b52ae09fda6603d427ea9 | [
"MIT"
] | null | null | null | mix.exs | lukaszsamson/elixir_zabbix_sender | 213cc1c8eb3294bedc9b52ae09fda6603d427ea9 | [
"MIT"
] | null | null | null | mix.exs | lukaszsamson/elixir_zabbix_sender | 213cc1c8eb3294bedc9b52ae09fda6603d427ea9 | [
"MIT"
] | null | null | null | defmodule ZabbixSender.MixProject do
use Mix.Project
@version "1.1.1"
@source_url "https://github.com/lukaszsamson/elixir_zabbix_sender"
def project do
[
app: :zabbix_sender,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
descrip... | 21.910448 | 73 | 0.540191 |
1cdd970bd99650bc7c7afb9d524501a61d02fbeb | 488 | ex | Elixir | apps/cam_web/lib/cam_web/live/common/server_connection_component.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/cam_web/lib/cam_web/live/common/server_connection_component.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/cam_web/lib/cam_web/live/common/server_connection_component.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule CamWeb.ServerConnectionComponent do
@moduledoc """
Shows the status of the connection to the server.
"""
use CamWeb, :live_component
def render(assigns) do
~L"""
<div class="row server-connection-component">
<div class="column column-20"> Server connection status:</div>
<div cla... | 28.705882 | 119 | 0.670082 |
1cdd99b87db80e687725c501d08ca9d2a333f9b7 | 1,916 | exs | Elixir | mix.exs | milmazz/bamboo | b0c66e5880ec970f5d46757a64bbebb14962659f | [
"MIT"
] | null | null | null | mix.exs | milmazz/bamboo | b0c66e5880ec970f5d46757a64bbebb14962659f | [
"MIT"
] | null | null | null | mix.exs | milmazz/bamboo | b0c66e5880ec970f5d46757a64bbebb14962659f | [
"MIT"
] | null | null | null | defmodule Bamboo.Mixfile do
use Mix.Project
@project_url "https://github.com/paulcsmith/bamboo"
def project do
[
app: :bamboo,
version: "1.0.0",
elixir: "~> 1.2",
source_url: @project_url,
homepage_url: @project_url,
compilers: compilers(Mix.env()),
test_coverage: [... | 27.768116 | 95 | 0.56524 |
1cdde0102d752e07517552aaa4719d291f9cb8f9 | 1,093 | ex | Elixir | test/support/channel_case.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | 12 | 2020-12-31T21:53:57.000Z | 2021-02-12T15:18:17.000Z | test/support/channel_case.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | null | null | null | test/support/channel_case.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | 2 | 2021-05-13T22:09:56.000Z | 2021-10-03T02:45:54.000Z | defmodule DemoWeb.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 with... | 26.658537 | 66 | 0.722781 |
1cde0c3c25002f8c82f56ab4c7e705b06960dd69 | 498 | exs | Elixir | test/hubtel_ussd_phoenix_example_web/views/error_view_test.exs | papamarfo/hubtel-ussd-phoenix-example | ddd6c5a64a70ad9a0fbb780ef140708ea295aafd | [
"MIT"
] | 4 | 2019-04-21T22:26:19.000Z | 2019-11-26T17:19:46.000Z | test/hubtel_ussd_phoenix_example_web/views/error_view_test.exs | manfordbenjamin/hubtel-ussd-phoenix-example | ddd6c5a64a70ad9a0fbb780ef140708ea295aafd | [
"MIT"
] | null | null | null | test/hubtel_ussd_phoenix_example_web/views/error_view_test.exs | manfordbenjamin/hubtel-ussd-phoenix-example | ddd6c5a64a70ad9a0fbb780ef140708ea295aafd | [
"MIT"
] | null | null | null | defmodule HubtelUssdPhoenixExampleWeb.ErrorViewTest do
use HubtelUssdPhoenixExampleWeb.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(HubtelUssdPhoenixExampleWeb.ErrorView, "404.html", []) == "No... | 31.125 | 97 | 0.751004 |
1cde1f48de4dbde2da4312028e2d271f4e98d6fb | 2,007 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/http_health_check_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/http_health_check_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/http_health_check_list_warning_data.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... | 40.14 | 527 | 0.742402 |
1cde434549835fde05a40a86cec450af20ab0090 | 751 | ex | Elixir | memorex/lib/memorex/eraser.ex | ballPointPenguin/liveview_elixirconf_2021 | 5c33cdd27f9f132129907c8f7016609a02ea622d | [
"MIT"
] | null | null | null | memorex/lib/memorex/eraser.ex | ballPointPenguin/liveview_elixirconf_2021 | 5c33cdd27f9f132129907c8f7016609a02ea622d | [
"MIT"
] | null | null | null | memorex/lib/memorex/eraser.ex | ballPointPenguin/liveview_elixirconf_2021 | 5c33cdd27f9f132129907c8f7016609a02ea622d | [
"MIT"
] | null | null | null | defmodule Memorex.Eraser do
def new(phrase, steps) do
size = String.length(phrase)
chunk_size = div(size + steps - 1, steps)
plan = 0..(size - 1) |> Enum.shuffle |> Enum.chunk_every(chunk_size)
%{plan: plan, phrase: phrase}
end
def erase(%{plan: []} = eraser) do
eraser
end
def erase(%{pl... | 25.033333 | 72 | 0.656458 |
1cde5ea4de6a2d7e2d91416c2f3a6810c458cd83 | 463 | ex | Elixir | lib/kv/bucket_agent.ex | welaika/key-value-elixir | 39672c505b99554c56c6880754ba8e6b9b925b7d | [
"MIT",
"Unlicense"
] | 1 | 2019-12-19T20:02:53.000Z | 2019-12-19T20:02:53.000Z | lib/kv/bucket_agent.ex | welaika/key-value-elixir | 39672c505b99554c56c6880754ba8e6b9b925b7d | [
"MIT",
"Unlicense"
] | null | null | null | lib/kv/bucket_agent.ex | welaika/key-value-elixir | 39672c505b99554c56c6880754ba8e6b9b925b7d | [
"MIT",
"Unlicense"
] | null | null | null | defmodule KV.BucketAgent do
use Agent
def start_link(options \\ []) do
Agent.start_link(fn -> %{} end, options)
end
def get(bucket, key) do
Agent.get(bucket, &Map.get(&1, key))
end
def put(bucket, key, value) do
Agent.update(bucket, &Map.put(&1, key, value))
end
def delete(bucket, key) d... | 19.291667 | 51 | 0.641469 |
1cde6e5b986ae078ec4030e1ef0317a4d977e925 | 226 | ex | Elixir | lib/co2_offset_web/views/calculator_view.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | lib/co2_offset_web/views/calculator_view.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | lib/co2_offset_web/views/calculator_view.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | defmodule Co2OffsetWeb.CalculatorView do
use Co2OffsetWeb, :view
def to_float_string(float) do
float
|> :erlang.float_to_binary([:compact, {:decimals, 2}])
end
def to_int(float) do
round(float)
end
end
| 17.384615 | 58 | 0.699115 |
1cde91c697877e8848bddb3492bfa61100365342 | 1,608 | exs | Elixir | test/unit/hologram/compiler/call_graph_builder/case_expression_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/call_graph_builder/case_expression_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/call_graph_builder/case_expression_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.CallGraphBuilder.CaseExpressionTest do
use Hologram.Test.UnitCase, async: false
alias Hologram.Compiler.{CallGraph, CallGraphBuilder}
alias Hologram.Compiler.IR.{Block, CaseExpression, IntegerType, ModuleType}
alias Hologram.Test.Fixtures.{
PlaceholderModule1,
PlaceholderMo... | 28.210526 | 77 | 0.672886 |
1cdeb1a5069649de60caa717b7180b2e0401e82f | 1,774 | ex | Elixir | lib/codes/codes_i36.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_i36.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_i36.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_I36 do
alias IcdCode.ICDCode
def _I360 do
%ICDCode{full_code: "I360",
category_code: "I36",
short_code: "0",
full_name: "Nonrheumatic tricuspid (valve) stenosis",
short_name: "Nonrheumatic tricuspid (valve) stenosis",
category_name... | 34.115385 | 85 | 0.644307 |
1cded5c4e5af65b88fa1d92ebcfa1f932a36c639 | 980 | exs | Elixir | test/juvet/middleware/action_generator_test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 19 | 2018-07-14T16:54:11.000Z | 2022-03-01T09:02:19.000Z | test/juvet/middleware/action_generator_test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | 31 | 2018-06-29T15:30:40.000Z | 2022-02-26T01:07:12.000Z | test/juvet/middleware/action_generator_test.exs | juvet/juvet | 5590ff7b1e5f411195d0becfe8b5740deb977cc5 | [
"MIT"
] | null | null | null | defmodule Juvet.Middleware.ActionGeneratorTest do
use ExUnit.Case, async: true
describe "Juvet.Middleware.ActionGenerator.call/1" do
setup do
[context: %{path: "test#action"}]
end
test "returns an error if the context does not contain a path" do
result = Juvet.Middleware.ActionGenerator.ca... | 29.69697 | 78 | 0.630612 |
1cded867234a3a5f093a7f31ee72aa9972f8d598 | 3,892 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/monitored_resource_descriptor.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/logging/lib/google_api/logging/v2/model/monitored_resource_descriptor.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/logging/lib/google_api/logging/v2/model/monitored_resource_descriptor.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... | 62.774194 | 483 | 0.741264 |
1cded916ab668fac15d164fa85146ebf56d75489 | 12,086 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/api/query.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/api/query.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/api/query.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... | 47.770751 | 196 | 0.648519 |
1cdf0924982d0ea9d69e40a2726dc38d2ca108c4 | 867 | ex | Elixir | test/support/test_agent.ex | schrockwell/appsignal-elixir | 550b5eae63488f9068aa1c38fe4c136541e93e8b | [
"MIT"
] | 234 | 2016-08-18T20:43:15.000Z | 2022-02-27T11:31:48.000Z | test/support/test_agent.ex | schrockwell/appsignal-elixir | 550b5eae63488f9068aa1c38fe4c136541e93e8b | [
"MIT"
] | 563 | 2016-07-25T17:45:14.000Z | 2022-03-21T11:39:29.000Z | test/support/test_agent.ex | schrockwell/appsignal-elixir | 550b5eae63488f9068aa1c38fe4c136541e93e8b | [
"MIT"
] | 86 | 2016-09-13T22:53:46.000Z | 2022-02-16T11:03:51.000Z | defmodule TestAgent do
defmacro __using__(default_state) do
quote do
import ExUnit.Assertions
def start_link do
{:ok, pid} =
Agent.start_link(
fn ->
unquote(default_state) |> Enum.into(%{})
end,
name: __MODULE__
)
... | 20.642857 | 61 | 0.514418 |
1cdf2697f8f1627e87c11ff52122a94df287100c | 2,036 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/autoscalers_scoped_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/autoscalers_scoped_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/autoscalers_scoped_list_warning_data.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 ... | 40.72 | 527 | 0.744106 |
1cdf4b22ac64f78fbacbaea84db64eae16eb240c | 299 | exs | Elixir | priv/repo/migrations/20150116045636_initial_rooms_create.exs | billsaysthis/fd-events | 3316e25565f4c4bca12d697b3614283689ff6807 | [
"MIT"
] | null | null | null | priv/repo/migrations/20150116045636_initial_rooms_create.exs | billsaysthis/fd-events | 3316e25565f4c4bca12d697b3614283689ff6807 | [
"MIT"
] | null | null | null | priv/repo/migrations/20150116045636_initial_rooms_create.exs | billsaysthis/fd-events | 3316e25565f4c4bca12d697b3614283689ff6807 | [
"MIT"
] | null | null | null | defmodule FdEvents.Repo.Migrations.InitialRoomsCreate do
use Ecto.Migration
def up do
create table(:rooms) do
add :name, :string, size: 255
add :capacity, :integer
add :active, :boolean
timestamps
end
end
def down do
drop table(:rooms)
end
end
| 16.611111 | 56 | 0.638796 |
1cdf9dd0d91322e00a440431a61ee2f1dc04eaa9 | 1,957 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/bundle.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/bundle.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/bundle.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.924528 | 177 | 0.716914 |
1cdfa04228688cd3bd81db1082f8a4e5a7bf2631 | 5,473 | ex | Elixir | lib/muontrap/options.ex | se-apc/muontrap | a6d91b6b5676c7345e53420c615b04ff3798fe3c | [
"Apache-2.0"
] | null | null | null | lib/muontrap/options.ex | se-apc/muontrap | a6d91b6b5676c7345e53420c615b04ff3798fe3c | [
"Apache-2.0"
] | null | null | null | lib/muontrap/options.ex | se-apc/muontrap | a6d91b6b5676c7345e53420c615b04ff3798fe3c | [
"Apache-2.0"
] | null | null | null | defmodule MuonTrap.Options do
@moduledoc """
Validate and normalize the options passed to MuonTrap.cmd/3 and MuonTrap.Daemon.start_link/3
This module is generally not called directly, but it's likely
the source of exceptions if any options aren't quite right. Call `validate/4` directly to
debug or check opti... | 32.194118 | 97 | 0.672392 |
1cdfb1c521b36d96650d35f71934bcc98d18e220 | 63 | ex | Elixir | web/views/layout_view.ex | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | defmodule Pandemic.LayoutView do
use Pandemic.Web, :view
end
| 15.75 | 32 | 0.793651 |
1cdfbd5d476abe38352dff7c203a81cb9ad02d58 | 2,556 | exs | Elixir | braccino_firmware/mix.exs | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | braccino_firmware/mix.exs | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | braccino_firmware/mix.exs | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | defmodule BraccinoFirmware.MixProject do
use Mix.Project
@app :braccino_firmware
@version "0.1.0"
@all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :rpi4, :bbb, :osd32mp1, :x86_64]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
archives: [nerves_bootstrap: "~> 1.... | 34.08 | 83 | 0.595462 |
1cdfe85b45d3c20be1bc0647b5c02388f829aa13 | 2,142 | exs | Elixir | apps/blockchain_web/config/prod.exs | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/config/prod.exs | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | apps/blockchain_web/config/prod.exs | sandhose/elixir-blockchain | 4b5c91816ca0710524c352b57fcf2bb37c64c728 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# BlockchainWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
#... | 34.548387 | 67 | 0.725957 |
1cdfe9787d024845dea3463a4987b9d57727ba50 | 787 | ex | Elixir | test/support/test_helpers.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | test/support/test_helpers.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | test/support/test_helpers.ex | SwiftAusterity/gossip | d79c53acd02fcb9905acb9730e59065efdd5a589 | [
"MIT"
] | null | null | null | defmodule Gossip.TestHelpers do
alias Gossip.Accounts
alias Gossip.Channels
alias Gossip.Games
def create_channel(attributes \\ %{}) do
attributes = Map.merge(%{
name: "gossip",
desription: "A channel",
}, attributes)
{:ok, channel} = Channels.create(attributes)
channel
end
d... | 19.675 | 50 | 0.621347 |
1cdff3e1f2ee0bf98dfca62d2cae05f32e6dd464 | 1,982 | ex | Elixir | lib/pow/store/backend/base.ex | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | 1 | 2021-06-25T10:36:01.000Z | 2021-06-25T10:36:01.000Z | lib/pow/store/backend/base.ex | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | lib/pow/store/backend/base.ex | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | defmodule Pow.Store.Backend.Base do
@moduledoc """
Used to set up API for key-value cache store.
## Usage
This is an example using [Cachex](https://hex.pm/packages/cachex):
defmodule MyApp.CachexCache do
@behaviour Pow.Store.Backend.Base
alias Pow.Config
@cachex_tab __MODULE__... | 26.426667 | 78 | 0.552472 |
1cdffa2ad9c0c99a22a52b5d7c3a18e9b7367bba | 2,723 | exs | Elixir | exercises/all-your-base/all_your_base_test.exs | Tuxified/elixir | 6230e2237851cf35532b6a34e4c67b44a28cde1b | [
"MIT"
] | null | null | null | exercises/all-your-base/all_your_base_test.exs | Tuxified/elixir | 6230e2237851cf35532b6a34e4c67b44a28cde1b | [
"MIT"
] | 1 | 2019-06-13T09:31:54.000Z | 2019-06-13T09:31:54.000Z | exercises/all-your-base/all_your_base_test.exs | Tuxified/elixir | 6230e2237851cf35532b6a34e4c67b44a28cde1b | [
"MIT"
] | 1 | 2019-06-13T04:29:09.000Z | 2019-06-13T04:29:09.000Z | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("all_your_base.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule AllYourBaseTest do
use ExUnit.Case
test "convert single bit one to decimal" do
assert AllYourBase.convert([1], 2, 10) == [1]
end
@t... | 23.678261 | 67 | 0.63643 |
1ce018d6318bbb3761cd8d4d2b0c512f32ee560f | 2,215 | ex | Elixir | video-code/21-processes/servy/lib/servy/handler.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | video-code/21-processes/servy/lib/servy/handler.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | video-code/21-processes/servy/lib/servy/handler.ex | anwarsky/elixir_sample2 | 613599113e15fcd400853fc0e560a39001435f6d | [
"Unlicense"
] | null | null | null | defmodule Servy.Handler do
@moduledoc "Handles HTTP requests."
alias Servy.Conv
alias Servy.BearController
@pages_path Path.expand("../../pages", __DIR__)
import Servy.Plugins, only: [rewrite_path: 1, log: 1, track: 1]
import Servy.Parser, only: [parse: 1]
@doc "Transforms the request into a response... | 24.611111 | 74 | 0.604515 |
1ce04de8afd0ba8e76dd7472a9b8fe37439c8fb6 | 208 | ex | Elixir | examples/simple_blog/web/models/post.ex | inaka/Dayron | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 169 | 2016-05-05T17:21:45.000Z | 2022-01-31T20:23:07.000Z | examples/simple_blog/web/models/post.ex | inaka/Dayron | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 51 | 2016-04-22T20:46:37.000Z | 2022-02-22T00:15:40.000Z | examples/simple_blog/web/models/post.ex | inaka/RestRepo | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 26 | 2016-05-21T09:52:26.000Z | 2022-02-11T18:07:14.000Z | defmodule SimpleBlog.Post do
@moduledoc """
A Dayron Model to interact with /posts resource in api
"""
use Dayron.Model, resource: "posts"
defstruct id: nil, userId: nil, title: "", body: ""
end
| 23.111111 | 58 | 0.673077 |
1ce057e39e568d559217e46a64c37a68c03a1057 | 2,247 | ex | Elixir | lib/jti_register/ets.ex | tanguilp/jti_register | 4b0e261980c6051d66af82bbbf8b2f4e026dde1f | [
"Apache-2.0"
] | null | null | null | lib/jti_register/ets.ex | tanguilp/jti_register | 4b0e261980c6051d66af82bbbf8b2f4e026dde1f | [
"Apache-2.0"
] | null | null | null | lib/jti_register/ets.ex | tanguilp/jti_register | 4b0e261980c6051d66af82bbbf8b2f4e026dde1f | [
"Apache-2.0"
] | null | null | null | defmodule JTIRegister.ETS do
@default_cleanup_interval 15
@moduledoc """
Implementation of the `JTIRegister` behaviour relying on ETS
Stores the JTIs in an ETS table. It is therefore **not** distributed and not suitable
when having more than one node.
Uses monotonic time, so that erroneous server time do... | 20.427273 | 95 | 0.657766 |
1ce08a433f8bd11d7c4796f08db968eb7b6dd321 | 344 | ex | Elixir | game/dictionary/lib/dictionary/word_list.ex | herminiotorres/elixir-for-programmers | 6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e | [
"MIT"
] | 1 | 2020-08-10T21:07:43.000Z | 2020-08-10T21:07:43.000Z | game/dictionary/lib/dictionary/word_list.ex | herminiotorres/elixir-for-programmers | 6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e | [
"MIT"
] | null | null | null | game/dictionary/lib/dictionary/word_list.ex | herminiotorres/elixir-for-programmers | 6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e | [
"MIT"
] | null | null | null | defmodule Dictionary.WordList do
use Agent
@me __MODULE__
def start_link(_state) do
Agent.start_link(&word_list/0, name: @me)
end
def random_word() do
Agent.get(@me, &Enum.random/1)
end
def word_list do
"../../assets/words.txt"
|> Path.expand(__DIR__)
|> File.read!()
|> String.... | 16.380952 | 45 | 0.627907 |
1ce08e4005b65fed9bd43bd4170461e1a6fd4370 | 2,292 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__explicit_content_annotation.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__explicit_content_annotation.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__explicit_content_annotation.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... | 34.208955 | 204 | 0.75 |
1ce0dab67cce5707b53de0b0e422119e9f2094fb | 1,612 | ex | Elixir | clients/games/lib/google_api/games/v1/model/games_achievement_set_steps_at_least.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/games_achievement_set_steps_at_least.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/games_achievement_set_steps_at_least.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... | 33.583333 | 158 | 0.759305 |
1ce0ecd57ed82ada1cf279545775d7f980f5209f | 717 | ex | Elixir | apps/grenadier/lib/grenadier_web/gettext.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/grenadier/lib/grenadier_web/gettext.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/grenadier/lib/grenadier_web/gettext.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule GrenadierWeb.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 GrenadierWeb.Gettext
# Simple translation
gettext("Here ... | 28.68 | 72 | 0.680614 |
1ce0f9db9840a067cc5e8d8386bf9c3c1d291eea | 5,082 | ex | Elixir | clients/games/lib/google_api/games/v1/api/pushtokens.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/pushtokens.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/pushtokens.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... | 40.983871 | 187 | 0.641086 |
1ce10230aa2cfb40103c03ed15b0e96bb141041d | 2,420 | exs | Elixir | apps/api_web/mix.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/api_web/mix.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/api_web/mix.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | defmodule ApiWeb.Mixfile do
@moduledoc false
use Mix.Project
def project do
[
app: :api_web,
aliases: aliases(),
build_embedded: Mix.env() == :prod,
build_path: "../../_build",
compilers: [:phoenix] ++ Mix.compilers() ++ [:phoenix_swagger],
config_path: "../../config/confi... | 28.470588 | 82 | 0.577686 |
1ce124b16ddddd8cb10255e4e3aad1fa111e3d91 | 986 | exs | Elixir | lib/logger/test/test_helper.exs | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/test_helper.exs | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/test_helper.exs | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | 1 | 2021-09-30T01:21:02.000Z | 2021-09-30T01:21:02.000Z | Logger.configure_backend(:console, colors: [enabled: false])
exclude = if Process.whereis(:logger), do: [:error_logger], else: [:logger]
ExUnit.start(exclude: exclude)
defmodule Logger.Case do
use ExUnit.CaseTemplate
import ExUnit.CaptureIO
using _ do
quote do
import Logger.Case
end
end
def ... | 19.333333 | 75 | 0.633874 |
1ce155ebbdde47303862e053310e1033a2eae74d | 141 | exs | Elixir | HackerRank/Functional Programming/Elixir/test/solution_test.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | HackerRank/Functional Programming/Elixir/test/solution_test.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | HackerRank/Functional Programming/Elixir/test/solution_test.exs | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | defmodule SolutionTest do
use ExUnit.Case
doctest Solution
test "greets the world" do
assert Solution.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
1ce16b3648556f709373b6fa8fdb1e6362a6b6e7 | 61 | ex | Elixir | lib/chirper_web/views/post_view.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 2 | 2019-10-10T11:57:29.000Z | 2019-12-17T18:04:10.000Z | lib/chirper_web/views/post_view.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 86 | 2019-04-27T16:18:58.000Z | 2021-05-28T23:13:36.000Z | lib/chirper_web/views/post_view.ex | PranavPuranik/project_twitter | 0b660e8749488a632d6f64212205757254caaec3 | [
"MIT"
] | 1 | 2020-07-16T04:52:47.000Z | 2020-07-16T04:52:47.000Z | defmodule ChirperWeb.PostView do
use ChirperWeb, :view
end
| 15.25 | 32 | 0.803279 |
1ce1846c37b4b98ac9772eca1a57ecfcdfae4261 | 740 | ex | Elixir | lib/plug/conn/wrapper_error.ex | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/plug/conn/wrapper_error.ex | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | lib/plug/conn/wrapper_error.ex | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Plug.Conn.WrapperError do
@moduledoc """
Wraps the connection in an error which is meant
to be handled upper in the stack.
Used by both `Plug.Debugger` and `Plug.ErrorHandler`.
"""
defexception [:conn, :kind, :reason, :stack]
def message(%{kind: kind, reason: reason, stack: stack}) do
Exce... | 27.407407 | 79 | 0.681081 |
1ce18fbc20e54b516b4984fd1bc69cf78d3bc61c | 3,559 | exs | Elixir | apps/discovery_api/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/discovery_api/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/discovery_api/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Mixfile do
use Mix.Project
def project do
[
app: :discovery_api,
compilers: [:phoenix, :gettext | Mix.compilers()],
version: "0.51.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../m... | 33.575472 | 99 | 0.516437 |
1ce198dc795ae16cb0e114225b40ec56e50c2fb3 | 734 | exs | Elixir | binary/binary.exs | SLIB53/exercism-elixir-answers | 352e3b9b6c9e5f8025ccd462845f1682d115e1da | [
"MIT"
] | 2 | 2019-03-26T09:32:41.000Z | 2020-03-09T19:16:36.000Z | binary/binary.exs | SLIB53/exercism-elixir-answers | 352e3b9b6c9e5f8025ccd462845f1682d115e1da | [
"MIT"
] | null | null | null | binary/binary.exs | SLIB53/exercism-elixir-answers | 352e3b9b6c9e5f8025ccd462845f1682d115e1da | [
"MIT"
] | null | null | null | defmodule Binary do
@doc """
Convert a string containing a binary number to an integer.
On errors returns 0.
"""
@spec to_decimal(String.t()) :: non_neg_integer
def to_decimal(string) do
try do
string |> parse_tokens() |> tokens_to_integer()
rescue
_e in ArgumentError -> 0
end
end... | 22.9375 | 64 | 0.622616 |
1ce1a5777045c06e0573c314e7a51d1870a43d4e | 838 | ex | Elixir | test/support/conn_case.ex | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | PandemicPlayers/pandemic-server | 39ce8c12b5f08be7dc66623a69423265f01d23e1 | [
"MIT"
] | null | null | null | defmodule Pandemic.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the da... | 23.942857 | 56 | 0.721957 |
1ce1bbfdc78cd5b645fdaefdf04fd28e08f7121a | 1,989 | exs | Elixir | test/phoenix/live_dashboard/pages/ecto_stats_test.exs | albertored/phoenix_live_dashboard | 2807be12795cff88661e6d430de12b960edf1bde | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/pages/ecto_stats_test.exs | albertored/phoenix_live_dashboard | 2807be12795cff88661e6d430de12b960edf1bde | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/pages/ecto_stats_test.exs | albertored/phoenix_live_dashboard | 2807be12795cff88661e6d430de12b960edf1bde | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.EctoStatsPageTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
@endpoint Phoenix.LiveDashboardTest.Endpoint
alias Phoenix.LiveDashboard.EctoStatsPage
alias Phoenix.LiveDashboardTest.Repo
@link "https://hexdocs.pm/phoenix_live_dashboa... | 30.6 | 88 | 0.684766 |
1ce1c439afc8f0e78afbf8e3e000a4f66729166e | 3,539 | ex | Elixir | lib/dion/lexers/rst/inline.ex | avoceteditors/dion | 33198da25f77647630aeeeaf78959906d3a08c9f | [
"BSD-3-Clause"
] | null | null | null | lib/dion/lexers/rst/inline.ex | avoceteditors/dion | 33198da25f77647630aeeeaf78959906d3a08c9f | [
"BSD-3-Clause"
] | 4 | 2021-12-06T01:44:47.000Z | 2021-12-12T21:45:21.000Z | lib/dion/lexers/rst/inline.ex | avoceteditors/dion | 33198da25f77647630aeeeaf78959906d3a08c9f | [
"BSD-3-Clause"
] | null | null | null | defmodule Dion.Lexers.RST.Inline do
@moduledoc """
Provides function used to perform lexical analysis, searching for
inline reStructuredText (RST) elements.
"""
@moduledoc since: "0.1.0"
@doc """
Performs inline lexical analysis on the provided text.
The `lineno` argument is set on the return element... | 26.410448 | 80 | 0.563436 |
1ce1c98bdd21e9f45a809e6b243f02da8a0fb950 | 1,466 | exs | Elixir | test/recurly/webhooks/closed_invoice_notification_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 8 | 2016-08-11T00:45:46.000Z | 2020-05-04T18:55:48.000Z | test/recurly/webhooks/closed_invoice_notification_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 10 | 2016-08-15T20:01:56.000Z | 2019-05-10T02:09:35.000Z | test/recurly/webhooks/closed_invoice_notification_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 4 | 2017-10-16T14:29:58.000Z | 2019-05-09T23:20:56.000Z | defmodule Recurly.Webhooks.ClosedInvoiceNotificationTest do
use ExUnit.Case, async: true
alias Recurly.{Webhooks,Account,Invoice}
test "correctly parses payload" do
xml_doc = """
<closed_invoice_notification>
<account>
<account_code>1</account_code>
<username nil="true"></us... | 36.65 | 82 | 0.654161 |
1ce1cbaba3193a48a16a984cdddfa5d5dcc657f7 | 288 | exs | Elixir | crawler_challenge/priv/repo/migrations/20191009195145_create_parties.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | crawler_challenge/priv/repo/migrations/20191009195145_create_parties.exs | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | 3 | 2021-05-08T08:50:39.000Z | 2022-02-10T19:40:38.000Z | crawler_challenge/priv/repo/migrations/20191009195145_create_parties.exs | tuliostarling/elixir-crawler | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | defmodule CrawlerChallenge.Repo.Migrations.CreateParties do
use Ecto.Migration
def change do
create table(:parties) do
add :partie, :string
add :name, :string
add :position, :string
add :person_name_position, :string
timestamps()
end
end
end
| 19.2 | 59 | 0.673611 |
1ce1f8e8d864d2db40c2c4798d692aa0c099b663 | 429 | exs | Elixir | hacker_news/test/hacker_news_web/views/error_view_test.exs | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/test/hacker_news_web/views/error_view_test.exs | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/test/hacker_news_web/views/error_view_test.exs | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | defmodule HackerNewsWeb.ErrorViewTest do
use HackerNewsWeb.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(HackerNewsWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" ... | 28.6 | 95 | 0.741259 |
1ce1ff0555121f50e94351a6c667c52ce229ebaf | 744 | ex | Elixir | lib/media_server_web/live/live_helpers.ex | cgomesu/midarr-server | 02833567ceaedfff5549b90104ce7256b9e7472b | [
"MIT"
] | 1 | 2022-02-14T16:40:55.000Z | 2022-02-14T16:40:55.000Z | lib/media_server_web/live/live_helpers.ex | smilenkovski/midarr-server | ba1815f5ab12fbe5d5377aaee6709ea26c5459d4 | [
"MIT"
] | null | null | null | lib/media_server_web/live/live_helpers.ex | smilenkovski/midarr-server | ba1815f5ab12fbe5d5377aaee6709ea26c5459d4 | [
"MIT"
] | null | null | null | defmodule MediaServerWeb.LiveHelpers do
import Phoenix.LiveView.Helpers
@doc """
Renders a component inside the `MediaServerWeb.ModalComponent` component.
The rendered modal receives a `:return_to` option to properly update
the URL when the modal is closed.
## Examples
<%= live_modal MediaServerWe... | 31 | 80 | 0.709677 |
1ce20aebee82b0d4c57498b99a3d10ab6eff0953 | 48 | ex | Elixir | lib/ueberauth_vk.ex | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | 19 | 2016-04-03T18:10:58.000Z | 2020-01-12T04:29:46.000Z | lib/ueberauth_vk.ex | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | 94 | 2016-05-07T08:48:31.000Z | 2020-03-10T02:21:02.000Z | lib/ueberauth_vk.ex | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | 17 | 2016-05-07T10:12:10.000Z | 2018-03-23T11:36:45.000Z | defmodule UeberauthVK do
@moduledoc false
end
| 12 | 24 | 0.8125 |
1ce20dbd30ffd671057d4d862bf556832ea3fc91 | 883 | ex | Elixir | lib/photo_gallery_web/router.ex | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | 6 | 2019-10-08T01:30:08.000Z | 2020-10-01T04:49:33.000Z | lib/photo_gallery_web/router.ex | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | null | null | null | lib/photo_gallery_web/router.ex | rayrrr/fameliphotos | cc928abdc6d761d76113067432e9d6d0fcb2507b | [
"MIT"
] | 1 | 2019-11-08T22:58:31.000Z | 2019-11-08T22:58:31.000Z | defmodule PhotoGalleryWeb.Router do
use PhotoGalleryWeb, :router
use Pow.Phoenix.Router
use Pow.Extension.Phoenix.Router, otp_app: :photo_gallery
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
... | 20.534884 | 66 | 0.702152 |
1ce20f9db07955fb9baba3e0ddae8ffdd09d5710 | 256 | exs | Elixir | apps/web/config/prod.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 4 | 2019-03-13T16:38:32.000Z | 2020-01-11T20:05:25.000Z | apps/web/config/prod.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 1 | 2019-03-14T17:41:55.000Z | 2019-03-14T17:41:55.000Z | apps/web/config/prod.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 1 | 2019-03-14T14:53:29.000Z | 2019-03-14T14:53:29.000Z | use Mix.Config
config :web, ExampleWeb.Endpoint,
server: true,
cache_static_manifest: "priv/static/cache_manifest.json",
version: Application.spec(:web, :vsn)
config :logger,
level: :info,
handle_sasl_reports: true,
handle_otp_reports: true
| 19.692308 | 59 | 0.75 |
1ce2162a51f3ffa235335838d8876442336d26f1 | 546 | ex | Elixir | lib/hl7/raw_message.ex | starbelly/elixir-hl7 | 677566200ac0da8bf84f7b7e62ffdf2386351469 | [
"Apache-2.0"
] | null | null | null | lib/hl7/raw_message.ex | starbelly/elixir-hl7 | 677566200ac0da8bf84f7b7e62ffdf2386351469 | [
"Apache-2.0"
] | null | null | null | lib/hl7/raw_message.ex | starbelly/elixir-hl7 | 677566200ac0da8bf84f7b7e62ffdf2386351469 | [
"Apache-2.0"
] | null | null | null | defmodule HL7.RawMessage do
require Logger
@moduledoc """
Contains the raw text of an HL7 message alongside parsed header metadata from the MSH segment.
Use `HL7.Message.raw/1` to generate the `HL7.RawMessage` struct.
"""
@type t :: %HL7.RawMessage{
raw: nil | binary(),
header: nil | ... | 21 | 96 | 0.641026 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.