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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28ea10ce3d18ff101e2d5902be86e1c48e6d70a5 | 71,452 | exs | Elixir | deps/ecto/integration_test/cases/repo.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/cases/repo.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/ecto/integration_test/cases/repo.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.RepoTest do
use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true)
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.User
alias E... | 39.783964 | 153 | 0.617128 |
28ea17cca57565422ea5afed9309a4d0102e35b3 | 4,096 | ex | Elixir | lib/instream/decoder/csv.ex | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | lib/instream/decoder/csv.ex | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | lib/instream/decoder/csv.ex | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Decoder.CSV do
@moduledoc false
alias Instream.Decoder.RFC3339
NimbleCSV.define(__MODULE__.Parser, separator: ",", escape: "\"", moduledoc: false)
@doc """
Converts a full CSV response into a list of maps.
"""
@spec parse(binary) :: [map]
def parse(response) do
blocks =
r... | 31.030303 | 95 | 0.594727 |
28ea2eec0d6ce41b7f0e5577f371fb41bb1dfc75 | 10,046 | ex | Elixir | lib/plenario/repo.ex | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 13 | 2017-12-11T13:59:42.000Z | 2020-11-16T21:52:31.000Z | lib/plenario/repo.ex | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 310 | 2017-11-13T22:52:26.000Z | 2018-11-19T17:49:30.000Z | lib/plenario/repo.ex | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 3 | 2017-12-05T00:36:12.000Z | 2020-03-10T15:15:29.000Z | defmodule Plenario.Repo do
use Ecto.Repo,
otp_app: :plenario,
adapter: Ecto.Adapters.Postgres
alias Plenario.{
DataSet,
DataSetActions,
Field,
FieldActions,
Repo,
VirtualDate,
VirtualDateActions,
VirtualPoint,
VirtualPointActions
}
##
# UP
@up_dirname ... | 29.28863 | 185 | 0.642146 |
28ea316a3d8b98602ee478a890ff20448249a533 | 255 | ex | Elixir | ds_backend/lib/ds_backend.ex | ohr486/d-screen | 5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7 | [
"MIT"
] | null | null | null | ds_backend/lib/ds_backend.ex | ohr486/d-screen | 5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7 | [
"MIT"
] | null | null | null | ds_backend/lib/ds_backend.ex | ohr486/d-screen | 5a70c4f599e63c07bcefc7867bbd4d98d7cc4be7 | [
"MIT"
] | null | null | null | defmodule DsBackend do
@moduledoc """
DsBackend keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.5 | 66 | 0.756863 |
28ea44344df36e5038f9cba856e5edb536678a8b | 2,056 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/relative_date_range.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/relative_date_range.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/relative_date_range.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 ... | 36.070175 | 137 | 0.727626 |
28ea5486d797fd4608bdc1f4ab3e352008503e1b | 2,421 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/status.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 ... | 39.048387 | 134 | 0.71995 |
28ea56176d3aea736cdce4d9cce11d4bdb0cc19e | 999 | exs | Elixir | test/four_lucha/user_review_test.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | 1 | 2021-02-21T19:15:27.000Z | 2021-02-21T19:15:27.000Z | test/four_lucha/user_review_test.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | test/four_lucha/user_review_test.exs | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | defmodule FourLucha.UserReviewTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney, options: [clear_mock: true]
ExVCR.Config.filter_url_params(true)
setup_all do
HTTPoison.start()
end
setup do
{status, _cleared} = Cachex.clear(:gb_cache)
status
end
test "re... | 27 | 77 | 0.690691 |
28ea6977294b8921857a1c053271053a04fa484a | 1,996 | exs | Elixir | config/prod.exs | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | config/prod.exs | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | config/prod.exs | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"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... | 32.193548 | 67 | 0.714429 |
28eab31e09239f1646dc14b0e9f1bf9d52e00733 | 194 | ex | Elixir | lib/bs/changeset_error.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 3 | 2018-07-14T22:55:23.000Z | 2019-02-25T06:11:55.000Z | lib/bs/changeset_error.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 7 | 2020-02-12T03:22:59.000Z | 2022-02-10T20:23:52.000Z | lib/bs/changeset_error.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 12 | 2018-03-27T05:27:20.000Z | 2019-04-02T08:19:04.000Z | defmodule Bs.ChangesetError do
defexception([:changeset])
def exception(changeset) do
%__MODULE__{changeset: changeset}
end
def message(_error) do
"validation error"
end
end
| 16.166667 | 37 | 0.726804 |
28ead8b679b78188afcc7e650e316a6439c3d21d | 630 | ex | Elixir | test/support/test_file_utils.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | test/support/test_file_utils.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | test/support/test_file_utils.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | defmodule ExshomeTest.TestFileUtils do
@moduledoc """
File manipulation utils for tests.
"""
@spec generate_test_folder() :: String.t()
def generate_test_folder do
test_path =
Path.join([
Application.get_env(:exshome, :root_folder),
"ExshomeTest",
"#{Ecto.UUID.generate()}"
... | 21 | 55 | 0.665079 |
28eadb6d0877305f9af7ee11ec7bac72f31975e4 | 1,206 | ex | Elixir | test/support/conn_case.ex | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | 3 | 2020-04-21T22:48:23.000Z | 2020-05-12T19:58:31.000Z | test/support/conn_case.ex | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | 1 | 2021-05-11T11:22:49.000Z | 2021-05-11T11:22:49.000Z | test/support/conn_case.ex | CassiusPacheco/ex_micro_blog | e96cb65a76bdc17313457dadb8075e3d9ac2e4f5 | [
"MIT"
] | null | null | null | defmodule ExMicroBlogWeb.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 common data structures and query the data layer.
Finally, i... | 29.414634 | 73 | 0.732172 |
28eafdecf93fdd76e88495813963112bc50dafda | 2,165 | ex | Elixir | persistent_list/lib/persistent_list/day02.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | persistent_list/lib/persistent_list/day02.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | persistent_list/lib/persistent_list/day02.ex | alex-dukhno/elixir-tdd-katas | 57e25fc275c4274c889f2b3760276cc8a393de9e | [
"MIT"
] | null | null | null | defmodule PersistentList.Day02 do
alias PersistentList.Day02, as: List
defstruct [:head, :tail]
defimpl String.Chars, for: PersistentList.Day02 do
def to_string(list), do: "[" <> stringify(list) <> "]"
defp stringify(%List{head: nil}), do: ""
defp stringify(
%List{
head: hea... | 27.75641 | 85 | 0.543187 |
28eb0bcd2e10e616c0687134ead614a461cd8466 | 10,824 | ex | Elixir | lib/mix/lib/mix/local/installer.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/mix/lib/mix/local/installer.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/mix/lib/mix/local/installer.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | defmodule Mix.Local.Installer do
@moduledoc false
# This module implements pieces of functionality shared
# by the archive- and escript-related tasks.
@typedoc """
Installs types supported by `Mix.Local.Installer`.
* `:project` - installs the current Mix project's artifact
* `:local` - installs the... | 27.753846 | 100 | 0.610495 |
28eb0d3407a4e2861e9547172173eb081b55466f | 1,911 | exs | Elixir | exercism_exercises/bob/bob_test.exs | spenserhuang/elixir-learning | c272038f4063038248285fb51f62ec6c0e429f2f | [
"MIT"
] | null | null | null | exercism_exercises/bob/bob_test.exs | spenserhuang/elixir-learning | c272038f4063038248285fb51f62ec6c0e429f2f | [
"MIT"
] | null | null | null | exercism_exercises/bob/bob_test.exs | spenserhuang/elixir-learning | c272038f4063038248285fb51f62ec6c0e429f2f | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("bob.exs", __DIR__)
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule BobTest do
use ExUnit.Case
test "stating something" do
assert Bob.hey("Tom-ay-to, tom-aaaah-to.") == "Whatever."
end
# @tag :pending
test "sho... | 22.482353 | 89 | 0.626897 |
28eb1d54cd25930fc2e52d00923a0d92d3e11906 | 1,114 | exs | Elixir | accumulate/accumulate_test.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | accumulate/accumulate_test.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | accumulate/accumulate_test.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("accumulate.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule AccumulateTest do
use ExUnit.Case
test "accumulate empty list" do
assert Accumulate.accumulate([], fn n -> n * n end) == []
end
test "... | 29.315789 | 79 | 0.627469 |
28eb2b427a9d61ff286873a1ed2fd5ad77609f18 | 946 | ex | Elixir | lib/godaddy/client.ex | aforward/godaddy | 7991b39a6d0b8b9d6e047fa58bf8c0f2f5cded53 | [
"MIT"
] | 1 | 2021-09-19T02:47:29.000Z | 2021-09-19T02:47:29.000Z | lib/godaddy/client.ex | aforward/godaddy | 7991b39a6d0b8b9d6e047fa58bf8c0f2f5cded53 | [
"MIT"
] | null | null | null | lib/godaddy/client.ex | aforward/godaddy | 7991b39a6d0b8b9d6e047fa58bf8c0f2f5cded53 | [
"MIT"
] | 2 | 2018-05-10T16:35:12.000Z | 2021-09-19T02:47:14.000Z | defmodule Godaddy.Client do
use FnExpr
alias Godaddy.Api
@moduledoc false
@digitalocean_ns_servers ["ns1.digitalocean.com", "ns2.digitalocean.com", "ns3.digitalocean.com"]
def domains do
"/v1/domains"
|> Api.get
|> parse
|> Enum.map(fn %{"domain" => domain} = data -> {domain, data} end)
... | 23.65 | 99 | 0.660677 |
28eb2b6aaa968a217386ffff27008b8d3d83e3a6 | 6,013 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1/model/policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/data_fusion/lib/google_api/data_fusion/v1/model/policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/model/policy.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 107.375 | 1,997 | 0.750208 |
28eb2efdc5e21489d4b75ca0b5e5bc50db070008 | 6,070 | ex | Elixir | apps/resource_manager/lib/identities/manager.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/resource_manager/lib/identities/manager.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/resource_manager/lib/identities/manager.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule ResourceManager.Identities.Manager do
@moduledoc """
Genserver for dealing with identity status changes.
This will check for temporarilly blocked identities and update it's status
when necessary.
"""
use GenServer
require Logger
alias Ecto.Multi
alias ResourceManager.Identities.Schemas.{... | 29.323671 | 99 | 0.670346 |
28eb3ed99f971189cfe739e79abe0f1179f695fe | 664 | ex | Elixir | exceptions/defexception.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | exceptions/defexception.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | exceptions/defexception.ex | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule KinectProtocolError do
defexception message: "Kinect protocol error",
can_retry: false
def full_message(me) do
"Kinect failed: #{me.message}, retryable: #{me.can_retry}"
end
end
defmodule TestDefException do
def my_own_exception() do
try do
talk_to_kinect()
rescue
... | 22.896552 | 62 | 0.682229 |
28eb4a75990aa36bded11c495ad8163ca00f3dd4 | 3,091 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/secret_volume.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/secret_volume.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/secret_volume.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... | 55.196429 | 438 | 0.740861 |
28eb5008f2c394c3ce1243037d47606661dfb9d9 | 5,909 | exs | Elixir | .credo.exs | welaika/sputnik | b7055734a637f48695bf73f8acc0866ce59e351e | [
"MIT"
] | 19 | 2018-01-09T08:26:06.000Z | 2020-09-11T14:14:03.000Z | .credo.exs | spawnfest/sputnik | b7055734a637f48695bf73f8acc0866ce59e351e | [
"MIT"
] | null | null | null | .credo.exs | spawnfest/sputnik | b7055734a637f48695bf73f8acc0866ce59e351e | [
"MIT"
] | 2 | 2018-10-08T17:45:13.000Z | 2020-01-26T13:12:40.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.197279 | 80 | 0.653072 |
28eb51534b2c72080214b6dcb429f940e14e6f5c | 1,903 | ex | Elixir | lib/dzg_loramod.ex | eagle-te/element-parsers | c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e | [
"MIT"
] | null | null | null | lib/dzg_loramod.ex | eagle-te/element-parsers | c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e | [
"MIT"
] | null | null | null | lib/dzg_loramod.ex | eagle-te/element-parsers | c5fdec8c859f510bc7c416d7150f46c3a9f8bd7e | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
# Parser for DZG devices using the v1.0 LoRaWAN Frame Format from file "LoRaWAN Frame Format 1.0_181218.pdf".
#
# Changelog
# 2018-xx-xx [jb]: Initial version.
# 2019-06-20 [jb]: Added medium "heatcostallocator".
# Test hex payload: "51BBF1BD0228000... | 23.493827 | 124 | 0.516553 |
28eb86868107de3f0eb72e28952e63089de11793 | 2,937 | exs | Elixir | mix.exs | adrianomota/team-budget | b105f47f602a0f7a2c184404235b8d004268c346 | [
"MIT"
] | null | null | null | mix.exs | adrianomota/team-budget | b105f47f602a0f7a2c184404235b8d004268c346 | [
"MIT"
] | null | null | null | mix.exs | adrianomota/team-budget | b105f47f602a0f7a2c184404235b8d004268c346 | [
"MIT"
] | null | null | null | defmodule TeamBudget.MixProject do
use Mix.Project
@github_url "https://github.com/adrianomota/team-budget"
def project do
[
app: :team_budget,
version: "0.1.0",
elixir: "~> 1.12.1",
description: "Projeto GraphQl em Elixir",
source_utl: @github_url,
homepage_url: @github_... | 29.079208 | 84 | 0.554307 |
28eb8927ccfc8dfe62e203cc755a55f3dc3f8dd3 | 1,668 | ex | Elixir | lib/elixir_mod_event/header.ex | bulutfon/elixir_mod_event | d574863e66c779577b4108e4ab44366bad7c8313 | [
"Apache-2.0"
] | null | null | null | lib/elixir_mod_event/header.ex | bulutfon/elixir_mod_event | d574863e66c779577b4108e4ab44366bad7c8313 | [
"Apache-2.0"
] | null | null | null | lib/elixir_mod_event/header.ex | bulutfon/elixir_mod_event | d574863e66c779577b4108e4ab44366bad7c8313 | [
"Apache-2.0"
] | null | null | null | defmodule FSModEvent.Header do
@moduledoc """
Header parsing functions.
Copyright 2015 Marcelo Gornstein <marcelog@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:... | 26.0625 | 74 | 0.68705 |
28eb9801cea00eb2a0a626fb91d71e6bbfab77bd | 312 | exs | Elixir | priv/repo/migrations/20171124192909_create_countries.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | priv/repo/migrations/20171124192909_create_countries.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | priv/repo/migrations/20171124192909_create_countries.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | defmodule Hello.Repo.Migrations.CreateCountries do
use Ecto.Migration
def change do
create table(:countries) do
add :name, :string
add :twolettercode, :string
add :threelettercode, :string
add :active, :boolean, default: false, null: false
timestamps()
end
end
end
| 19.5 | 56 | 0.669872 |
28ebb3b737f9461ac2f2a80bb5ad6cbcd303e8ad | 711 | ex | Elixir | lib/compass_web/gettext.ex | theclimbersclub/compass | e9c48c86e6844dd751053af5c3068ce898fd0f2a | [
"MIT"
] | 2 | 2019-10-12T13:12:15.000Z | 2021-03-07T10:21:53.000Z | lib/compass_web/gettext.ex | theclimbersclub/compass | e9c48c86e6844dd751053af5c3068ce898fd0f2a | [
"MIT"
] | 14 | 2019-10-14T23:33:15.000Z | 2020-05-30T10:04:16.000Z | lib/compass_web/gettext.ex | theclimbersclub/compass | e9c48c86e6844dd751053af5c3068ce898fd0f2a | [
"MIT"
] | 1 | 2020-12-12T12:31:01.000Z | 2020-12-12T12:31:01.000Z | defmodule CompassWeb.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 CompassWeb.Gettext
# Simple translation
gettext("Here is t... | 28.44 | 72 | 0.677918 |
28ebd88ce6b6397820a24035ae825ceda4ea57cf | 417 | ex | Elixir | lib/brotorift_bot/tcp_receiver_supervisor.ex | CDR2003/brotorift_bot | 8d22f4a04e96680b0a37b03889bfd15288b9e1e8 | [
"MIT"
] | null | null | null | lib/brotorift_bot/tcp_receiver_supervisor.ex | CDR2003/brotorift_bot | 8d22f4a04e96680b0a37b03889bfd15288b9e1e8 | [
"MIT"
] | null | null | null | lib/brotorift_bot/tcp_receiver_supervisor.ex | CDR2003/brotorift_bot | 8d22f4a04e96680b0a37b03889bfd15288b9e1e8 | [
"MIT"
] | null | null | null | defmodule BrotoriftBot.TcpReceiverSupervisor do
use DynamicSupervisor
def start_link(args) do
DynamicSupervisor.start_link(__MODULE__, args, name: __MODULE__)
end
def create_receiver(report, protocol, socket) do
DynamicSupervisor.start_child(__MODULE__, {BrotoriftBot.TcpReceiver, {report, protocol, so... | 26.0625 | 101 | 0.779376 |
28ebef2a9235d7c2ea0ca39cd88d262a230dbf14 | 1,227 | ex | Elixir | apps/cat_feeder_web/lib/cat_feeder_web/endpoint.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | 20 | 2016-01-16T17:08:00.000Z | 2021-01-15T15:46:23.000Z | apps/cat_feeder_web/lib/cat_feeder_web/endpoint.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | null | null | null | apps/cat_feeder_web/lib/cat_feeder_web/endpoint.ex | wsmoak/cat_feeder | e9157563ff3294fd9fd4c9d13f956cbe1dd718c2 | [
"MIT"
] | 5 | 2016-01-09T16:52:44.000Z | 2017-02-09T16:03:25.000Z | defmodule CatFeederWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :cat_feeder_web
socket "/socket", CatFeederWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
pl... | 28.534884 | 69 | 0.722901 |
28ebf00610708cfb4a91ed57f6730aac7acfaec8 | 3,019 | exs | Elixir | apps/artemis_web/test/artemis_web/browser/permission_page_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis_web/test/artemis_web/browser/permission_page_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/test/artemis_web/browser/permission_page_test.exs | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | defmodule ArtemisWeb.PermissionPageTest do
use ArtemisWeb.ConnCase
use ExUnit.Case
use Hound.Helpers
import Artemis.Factories
import ArtemisWeb.BrowserHelpers
import ArtemisWeb.Router.Helpers
@moduletag :browser
@url permission_url(ArtemisWeb.Endpoint, :index)
hound_session()
describe "authentic... | 20.965278 | 80 | 0.631004 |
28ebf3cf6fe93db519a8f390d507485befb2d5e3 | 3,203 | exs | Elixir | config/remote-development.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | config/remote-development.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | config/remote-development.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | 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.364583 | 68 | 0.740556 |
28ebff117bf095e62d1c769afee276a0adea5759 | 2,095 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/option.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/option.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/option.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... | 41.078431 | 348 | 0.734129 |
28ec47b746bac1ddd0a968d49a4d2d9c5d78b207 | 1,799 | exs | Elixir | clients/tpu/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/tpu/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/tpu/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.850746 | 98 | 0.648138 |
28ec601567ba1bc2c05799b71221047e2ec69b94 | 1,917 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_kms_wrapped_crypto_key.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_kms_wrapped_crypto_key.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_kms_wrapped_crypto_key.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.34 | 266 | 0.744914 |
28ec811aae4e26a98f844cf8269db474de724c9d | 2,946 | ex | Elixir | clients/content/lib/google_api/content/v2/model/holidays_holiday.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/holidays_holiday.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/holidays_holiday.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... | 40.916667 | 289 | 0.680923 |
28ecb6f29bf216160ada67320df96cf6249cbfa1 | 2,221 | exs | Elixir | apps/omg_db/test/omg_db/db_test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_db/test/omg_db/db_test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_db/test/omg_db/db_test.exs | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 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... | 30.847222 | 111 | 0.653309 |
28ecbd7f131d35bd3df30d32c0bfdb7d430169d8 | 1,803 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_error.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_error.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_error.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.06 | 133 | 0.737659 |
28ecd79b88b920a042c07347571aba19ac343ede | 6,697 | ex | Elixir | lib/mix/tasks/phx.gen.json.ex | mirego/phoenix | 5871888b77b9d34f9a4a33a3644b87f91c8b30ed | [
"MIT"
] | 1 | 2018-07-26T10:42:26.000Z | 2018-07-26T10:42:26.000Z | lib/mix/tasks/phx.gen.json.ex | mirego/phoenix | 5871888b77b9d34f9a4a33a3644b87f91c8b30ed | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.json.ex | mirego/phoenix | 5871888b77b9d34f9a4a33a3644b87f91c8b30ed | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Json do
@shortdoc "Generates controller, views, and context for a JSON resource"
@moduledoc """
Generates controller, views, and context for a JSON resource.
mix phx.gen.json Accounts User users name:string age:integer
The first argument is the context module followed by the... | 36.595628 | 136 | 0.717037 |
28ecfb74066b5dabefde50ec645b300af43f6d43 | 2,763 | exs | Elixir | test/groupher_server/cms/comments/job_pending_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 2 | 2018-03-26T08:56:21.000Z | 2018-07-02T22:34:51.000Z | test/groupher_server/cms/comments/job_pending_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2018-03-21T03:40:50.000Z | 2018-07-10T06:33:10.000Z | test/groupher_server/cms/comments/job_pending_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | null | null | null | defmodule GroupherServer.Test.CMS.Comments.JobPending do
@moduledoc false
use GroupherServer.TestTools
alias GroupherServer.{Accounts, CMS}
alias Accounts.Model.User
alias CMS.Model.Comment
alias Helper.ORM
alias CMS.Constant
@audit_legal Constant.pending(:legal)
@audit_illegal Constant.pending(:il... | 30.362637 | 83 | 0.621064 |
28ecfcc269f396a10634bcb6bb4b817b1a939c6d | 1,548 | ex | Elixir | apps/chex/lib/chex_web/endpoint.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | apps/chex/lib/chex_web/endpoint.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | apps/chex/lib/chex_web/endpoint.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | defmodule ChexWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :chex
socket "/socket", ChexWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 27.642857 | 95 | 0.699612 |
28ed0a632bec4a78c672770138389b40fad599d5 | 114 | exs | Elixir | test/hunter_test.exs | hunter-packages/hunter-bot-elixir | 78392fbc86e5b7611c27212b19301696eb2f3d94 | [
"BSD-2-Clause"
] | null | null | null | test/hunter_test.exs | hunter-packages/hunter-bot-elixir | 78392fbc86e5b7611c27212b19301696eb2f3d94 | [
"BSD-2-Clause"
] | 8 | 2016-06-27T20:34:42.000Z | 2016-07-05T13:37:02.000Z | test/hunter_test.exs | hunter-packages/hunter-bot-elixir | 78392fbc86e5b7611c27212b19301696eb2f3d94 | [
"BSD-2-Clause"
] | 3 | 2016-12-09T11:23:21.000Z | 2021-07-01T07:43:57.000Z | defmodule HunterTest do
use ExUnit.Case
doctest Hunter
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.666667 | 23 | 0.666667 |
28ed312bba59630496db99ebf678846fc4808249 | 181 | exs | Elixir | apps/core/priv/repo/migrations/20171108131707_add_unique_indexes.exs | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | null | null | null | apps/core/priv/repo/migrations/20171108131707_add_unique_indexes.exs | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | null | null | null | apps/core/priv/repo/migrations/20171108131707_add_unique_indexes.exs | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | 1 | 2019-06-12T18:04:39.000Z | 2019-06-12T18:04:39.000Z | defmodule Core.Repo.Migrations.AddUniqueIndexes do
use Ecto.Migration
def change do
create(unique_index(:verifications, [:phone_number], where: "active = true"))
end
end
| 22.625 | 81 | 0.751381 |
28ed4192a92286d23f6887d859e275810b8f692b | 1,637 | ex | Elixir | lib/toolbelt.ex | aseigo/packerbench | 51f2c4acf0eed3ea63b83a6e8b92e9acd77187c9 | [
"Apache-2.0"
] | 30 | 2017-07-03T23:53:37.000Z | 2021-03-14T21:27:14.000Z | lib/toolbelt.ex | aseigo/packerbench | 51f2c4acf0eed3ea63b83a6e8b92e9acd77187c9 | [
"Apache-2.0"
] | 1 | 2018-05-25T20:00:24.000Z | 2018-05-30T09:40:09.000Z | lib/toolbelt.ex | aseigo/packerbench | 51f2c4acf0eed3ea63b83a6e8b92e9acd77187c9 | [
"Apache-2.0"
] | 4 | 2017-07-27T09:07:17.000Z | 2019-05-22T11:14:25.000Z | defmodule Toolbelt do
@moduledoc "A collection of useful snippets of Elixir"
@doc """
Prints the full set of metadata for a module, as known to Module:__info__.
Returns: `:ok`.
"""
@spec print_module_info(atom) :: :ok
def print_module_info(modulename) do
info_attrs = [:attributes, :compile, :export... | 27.745763 | 135 | 0.655467 |
28eda9cf09f965eb8f0455de8344d7657cf804f6 | 15,593 | ex | Elixir | lib/elixir/lib/list.ex | alfert/elixir | 4dfd08c79dc8b67e8a6d53add9e3ee47ba9be647 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/list.ex | alfert/elixir | 4dfd08c79dc8b67e8a6d53add9e3ee47ba9be647 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/list.ex | alfert/elixir | 4dfd08c79dc8b67e8a6d53add9e3ee47ba9be647 | [
"Apache-2.0"
] | null | null | null | defmodule List do
@moduledoc """
Implements functions that only make sense for lists
and cannot be part of the Enum protocol. In general,
favor using the Enum API instead of List.
Some functions in this module expect an index. Index
access for list is linear. Negative indexes are also
supported but they ... | 22.212251 | 90 | 0.597255 |
28edc995c780b3a13643afade8ae514968ee45a1 | 1,555 | ex | Elixir | portfolio/lib/portfolio_web/views/error_helpers.ex | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | 1 | 2022-03-18T10:57:04.000Z | 2022-03-18T10:57:04.000Z | lib/portfolio_web/views/error_helpers.ex | hyperserve/portfolio | 5a144c33ad0d26ec188da07f8cdece05cd821ed7 | [
"MIT"
] | 11 | 2020-04-29T10:28:20.000Z | 2020-04-29T11:03:13.000Z | portfolio/lib/portfolio_web/views/error_helpers.ex | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | null | null | null | defmodule PortfolioWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_ta... | 32.395833 | 78 | 0.666881 |
28ede4164d2fdf002acf0a8025dcbbe3980e3a9e | 121 | ex | Elixir | apps/re_integrations/lib/search/cluster.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_integrations/lib/search/cluster.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_integrations/lib/search/cluster.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReIntegrations.Search.Cluster do
@moduledoc false
use Elasticsearch.Cluster, otp_app: :re_integrations
end
| 24.2 | 54 | 0.826446 |
28ede5714b17ffdf3267c3bccfb5e28c2aaff34f | 69 | exs | Elixir | legacy/artie/apps/artie_main/test/artie_main_test.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | 1 | 2018-04-28T16:55:05.000Z | 2018-04-28T16:55:05.000Z | legacy/artie/apps/artie_main/test/artie_main_test.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | legacy/artie/apps/artie_main/test/artie_main_test.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | defmodule ArtieMainTest do
use ExUnit.Case
doctest ArtieMain
end
| 13.8 | 26 | 0.811594 |
28ee1daec2e588de338186c2ce9a400075330c70 | 1,681 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/language_targeting.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/language_targeting.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/language_targeting.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... | 35.765957 | 259 | 0.754313 |
28ee23a01035daf3178fd6a0307532be86449b7a | 1,904 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_sustainability_projection.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_sustainability_projection.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_sustainability_projection.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.618182 | 179 | 0.746324 |
28ee49b55931f69990f2690fa746bbb4ea868ab6 | 6,547 | ex | Elixir | lib/ext/xml_builder.ex | IrinaKostiuk/soa | ce1e79aaaaa42e9b14a9ffa7d3efb915a0403062 | [
"MIT"
] | 2 | 2020-01-12T23:34:52.000Z | 2020-01-30T04:16:28.000Z | lib/ext/xml_builder.ex | voxoz/soa | f664cc49e39dd435a7c8878c3874279c827d6fc6 | [
"MIT"
] | null | null | null | lib/ext/xml_builder.ex | voxoz/soa | f664cc49e39dd435a7c8878c3874279c827d6fc6 | [
"MIT"
] | 1 | 2021-01-20T12:50:07.000Z | 2021-01-20T12:50:07.000Z | defmodule XmlGen do
defmacrop is_blank_attrs(attrs) do
quote do: is_blank_map(unquote(attrs)) or is_blank_list(unquote(attrs))
end
defmacrop is_blank_list(list) do
quote do: is_nil(unquote(list)) or (is_list(unquote(list)) and length(unquote(list)) == 0)
end
defmacrop is_blank_map(map) do
quote... | 45.783217 | 233 | 0.681534 |
28ee7048c8b0c8b24a316bf452f377b868194ca3 | 80 | exs | Elixir | Chapter02/.formatter.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter02/.formatter.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter02/.formatter.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | [
inputs: [
"mix.exs",
"apps/*/{config,lib,test}/**/*.{ex,exs}"
]
]
| 11.428571 | 44 | 0.425 |
28ee70937242cea8d988dcfa0e3a94c5c5a9f20e | 522 | ex | Elixir | host_core/lib/host_core/providers/builtin/numbergen.ex | janitha09/wasmcloud-otp | 858d7cbba00233eabf91d96cbcb0d6db80202444 | [
"Apache-2.0"
] | 84 | 2021-06-09T16:30:27.000Z | 2022-03-27T23:41:25.000Z | host_core/lib/host_core/providers/builtin/numbergen.ex | janitha09/wasmcloud-otp | 858d7cbba00233eabf91d96cbcb0d6db80202444 | [
"Apache-2.0"
] | 239 | 2021-06-07T14:00:09.000Z | 2022-03-30T17:06:05.000Z | host_core/lib/host_core/providers/builtin/numbergen.ex | janitha09/wasmcloud-otp | 858d7cbba00233eabf91d96cbcb0d6db80202444 | [
"Apache-2.0"
] | 20 | 2021-06-10T01:10:35.000Z | 2022-03-17T15:59:57.000Z | defmodule HostCore.Providers.Builtin.Numbergen do
def invoke("NumberGen.GenerateGuid", _payload) do
IO.iodata_to_binary(Msgpax.pack!(UUID.uuid4()))
end
def invoke("NumberGen.RandomInRange", payload) do
params = Msgpax.unpack!(payload)
min = max(params["min"], 0)
max = min(params["max"], 4_294_96... | 29 | 68 | 0.716475 |
28eea8d4d5a7524ffebb42299c66fe7b4a5e2f70 | 1,127 | exs | Elixir | day_06/exercise2.exs | dams/adventofcode | dac9638c6fe3c99b726de8899e9baedf2efbb15a | [
"Artistic-2.0"
] | null | null | null | day_06/exercise2.exs | dams/adventofcode | dac9638c6fe3c99b726de8899e9baedf2efbb15a | [
"Artistic-2.0"
] | null | null | null | day_06/exercise2.exs | dams/adventofcode | dac9638c6fe3c99b726de8899e9baedf2efbb15a | [
"Artistic-2.0"
] | null | null | null | defmodule Exercise1 do
def loop(input) do
loop(%{ }, input)
end
def loop(grid, [ ]) do grid end
def loop(grid, [ line | rest ]) do
IO.puts(line)
grid |>
parse(line) |>
loop(rest)
end
def parse(grid, "turn on " <> line) do parse(grid, line, &( { &1, case &1 do nil -> 1; _ -> &1+1 end } )) end
def pa... | 25.044444 | 120 | 0.553682 |
28eec7cdf0357c7e3ce0eb40a85764b29eadb5e3 | 1,484 | ex | Elixir | lib/bus_car_dsl/nested.ex | elbow-jason/bus_car_dsl | a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157 | [
"MIT"
] | null | null | null | lib/bus_car_dsl/nested.ex | elbow-jason/bus_car_dsl | a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157 | [
"MIT"
] | 2 | 2017-04-13T22:02:38.000Z | 2017-04-13T22:17:26.000Z | lib/bus_car_dsl/nested.ex | elbow-jason/bus_car_dsl | a83a16b9c5c1c954b7b2284dd6a5636dbb7f4157 | [
"MIT"
] | null | null | null | defmodule BusCarDsl.Nested do
alias BusCarDsl.{Nested, Query}
defstruct [
path: nil,
query: nil,
options: nil,
]
def new(path, query, opts \\ []) when path |> is_binary do
%Nested{
path: path,
query: query,
options: opts,
}
end
def parse(... | 24.733333 | 110 | 0.595013 |
28eef288aa86b9d33f1f0f8ce0c0ec1b44b48727 | 853 | exs | Elixir | test/influxdb_v1/connection/response_parser_v1_test.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 204 | 2015-06-04T06:38:57.000Z | 2022-01-30T08:56:33.000Z | test/influxdb_v1/connection/response_parser_v1_test.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 71 | 2015-05-24T02:08:28.000Z | 2022-01-10T17:13:27.000Z | test/influxdb_v1/connection/response_parser_v1_test.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 41 | 2015-09-05T21:24:04.000Z | 2021-11-10T02:52:48.000Z | defmodule Instream.Connection.ResponseParserV1Test do
use ExUnit.Case, async: true
@moduletag :"influxdb_exclude_2.0"
alias Instream.Connection.ResponseParserV1
test "raw json error response" do
error = "text"
response = {:ok, 500, [{"Content-Type", "application/json"}], error}
parse_opts = [resu... | 27.516129 | 89 | 0.702227 |
28ef12eaf35a1e3f34aebc52eb1af1d84aa25d92 | 288 | ex | Elixir | lib/pokemon/type.ex | PokemonTCG/pokemon-tcg-sdk-elixir | f8866044f4a5439408e04b7a68e893a8bbc1712c | [
"MIT"
] | 7 | 2016-09-01T14:33:45.000Z | 2021-10-01T03:42:06.000Z | lib/pokemon/type.ex | PokemonTCG/pokemon-tcg-sdk-elixir | f8866044f4a5439408e04b7a68e893a8bbc1712c | [
"MIT"
] | 1 | 2016-09-06T02:03:22.000Z | 2016-09-08T01:03:11.000Z | lib/pokemon/type.ex | PokemonTCG/pokemon-tcg-sdk-elixir | f8866044f4a5439408e04b7a68e893a8bbc1712c | [
"MIT"
] | 3 | 2017-11-21T16:01:51.000Z | 2021-10-01T03:42:07.000Z | defmodule Pokemon.Type do
@moduledoc """
Type API Endpoint
"""
@endpoint "types"
@doc """
Prints the endpoint name
"""
def resource do
@endpoint
end
@doc """
Returns all types as a list
"""
def all do
Pokemon.Query.all(@endpoint, %{}).types
end
end
| 13.090909 | 43 | 0.604167 |
28ef25a057c4140d1caafcfc6fe161eac2b9196c | 73 | ex | Elixir | web/views/layout_view.ex | anamba/webrtc_example | b539101d29ffeb52f551f263128a0884a5d6a7ae | [
"MIT"
] | 44 | 2016-01-16T07:28:43.000Z | 2021-05-05T04:45:19.000Z | web/views/layout_view.ex | anamba/webrtc_example | b539101d29ffeb52f551f263128a0884a5d6a7ae | [
"MIT"
] | null | null | null | web/views/layout_view.ex | anamba/webrtc_example | b539101d29ffeb52f551f263128a0884a5d6a7ae | [
"MIT"
] | 6 | 2016-11-11T20:40:34.000Z | 2021-05-05T04:45:24.000Z | defmodule WebrtcExample.LayoutView do
use WebrtcExample.Web, :view
end
| 18.25 | 37 | 0.821918 |
28ef285b80a4aa52598f3c7aa38e733752e8a91a | 1,132 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/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... | 34.30303 | 114 | 0.733216 |
28ef4a7614e9900dae3c998dfa91c0f1f652a9ca | 5,818 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__video_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__video_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__video_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.726496 | 312 | 0.780853 |
28ef71469914a4838b5f568d54b3cc1808e4fa01 | 3,462 | ex | Elixir | lib/phoenix/live_dashboard/pages/metrics_page.ex | alexcastano/phoenix_live_dashboard | 71579bb49d53a1dbf6eac017de3bb80e6b6c2d21 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/metrics_page.ex | alexcastano/phoenix_live_dashboard | 71579bb49d53a1dbf6eac017de3bb80e6b6c2d21 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/metrics_page.ex | alexcastano/phoenix_live_dashboard | 71579bb49d53a1dbf6eac017de3bb80e6b6c2d21 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.MetricsPage do
@moduledoc false
use Phoenix.LiveDashboard.PageBuilder, refresher?: false
alias Phoenix.LiveDashboard.ChartComponent
@menu_text "Metrics"
@impl true
def mount(params, %{"metrics" => {mod, fun}, "metrics_history" => history}, socket) do
all_metrics = appl... | 29.338983 | 96 | 0.631427 |
28ef7585e640fed1f1c20aa0e52117aba6d5242d | 6,540 | exs | Elixir | test/radiator_web/controllers/episode_controller_test.exs | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | test/radiator_web/controllers/episode_controller_test.exs | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | test/radiator_web/controllers/episode_controller_test.exs | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | defmodule RadiatorWeb.EpisodeControllerTest do
use RadiatorWeb.ConnCase
alias Radiator.Directory
alias Radiator.Directory.Episode
@create_attrs %{
content: "some content",
description: "some description",
duration: "some duration",
enclosure_length: 123,
enclosure_type: "some enclosure_typ... | 30.418605 | 100 | 0.577982 |
28ef79342e0bd0dee1c3daaba286d2854ccd261f | 2,867 | exs | Elixir | mix.exs | rhruiz/phoenix_live_view | 597c417bb9664b8b45454367758775453f615973 | [
"MIT"
] | null | null | null | mix.exs | rhruiz/phoenix_live_view | 597c417bb9664b8b45454367758775453f615973 | [
"MIT"
] | null | null | null | mix.exs | rhruiz/phoenix_live_view | 597c417bb9664b8b45454367758775453f615973 | [
"MIT"
] | 1 | 2020-09-23T17:11:30.000Z | 2020-09-23T17:11:30.000Z | defmodule Phoenix.LiveView.MixProject do
use Mix.Project
@version "0.14.4"
def project do
[
app: :phoenix_live_view,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
compilers: compilers(Mix.env()),
p... | 26.063636 | 99 | 0.592606 |
28ef85a85ca77d5f5902c73d3de90d1b6f7b240f | 266 | ex | Elixir | lib/wanikani/summary.ex | eltercero/wanikani | 5ed47f315ee9800ab5dbbc21848a337d24d52778 | [
"MIT"
] | 2 | 2018-01-29T02:02:05.000Z | 2018-07-09T18:24:28.000Z | lib/wanikani/summary.ex | eltercero/wanikani | 5ed47f315ee9800ab5dbbc21848a337d24d52778 | [
"MIT"
] | null | null | null | lib/wanikani/summary.ex | eltercero/wanikani | 5ed47f315ee9800ab5dbbc21848a337d24d52778 | [
"MIT"
] | null | null | null | defmodule Wanikani.Summary do
@moduledoc """
Module for the requests to the Summary endpoint
"""
@doc """
Get the summary information.
```
Wanikani.Summary.get
```
"""
def get(client \\ Wanikani.Api) do
client.request("summary")
end
end | 15.647059 | 49 | 0.642857 |
28ef917b2df940151a07d539df2541c411c4c2cc | 273 | ex | Elixir | apps/service_aggregate/lib/aggregate/reducer.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_aggregate/lib/aggregate/reducer.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_aggregate/lib/aggregate/reducer.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defprotocol Aggregate.Reducer do
@spec init(t, map) :: t
def init(t, stats)
@spec reduce(t, event :: term) :: t
def reduce(t, event)
@spec merge(t, t) :: t
def merge(t1, t2)
@spec to_event_fields(t) :: list({String.t(), term})
def to_event_fields(t)
end
| 19.5 | 54 | 0.630037 |
28efde860f2bef37f3d83dfb881a7618d0e4bffd | 1,596 | ex | Elixir | lib/black_marlin/black_marlin_mod.ex | codersgarage/black_marlin | 60e7cc238317e48f6a451f14335f8b954466538e | [
"Apache-2.0"
] | 3 | 2018-12-10T06:32:56.000Z | 2019-04-25T15:53:34.000Z | lib/black_marlin/black_marlin_mod.ex | CodersGarage/black_marlin | 60e7cc238317e48f6a451f14335f8b954466538e | [
"Apache-2.0"
] | null | null | null | lib/black_marlin/black_marlin_mod.ex | CodersGarage/black_marlin | 60e7cc238317e48f6a451f14335f8b954466538e | [
"Apache-2.0"
] | 1 | 2018-10-13T20:07:23.000Z | 2018-10-13T20:07:23.000Z | defmodule BlackMarlinMod do
require Record
import MqttHelper
import Enum
import Helper
def hook_add(a, b, c) do
:emqx.hook(a, b, c)
end
def hook_del(a, b) do
:emqx.unhook(a, b)
end
def load(env) do
hook_add(:"client.connected", &BlackMarlinMod.on_client_connected/4, [env])
hook_add... | 25.333333 | 90 | 0.66604 |
28efe0e3659d5cb458bc45b0f1803e73e724e9fc | 216 | ex | Elixir | lib/phoenix_events_live_web/controllers/page_controller.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | lib/phoenix_events_live_web/controllers/page_controller.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | lib/phoenix_events_live_web/controllers/page_controller.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | defmodule PhoenixEventsLiveWeb.PageController do
use PhoenixEventsLiveWeb, :controller
def index(conn, _params) do
html(conn, File.read!("priv/static/index.html"))
# render(conn, "index.html")
end
end
| 24 | 52 | 0.736111 |
28effe24acb78f82500fec2f4f084a4bce46ee8d | 354 | exs | Elixir | priv/repo/seeds.exs | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | jtrudell/yo_phoenix | d242ae5b0151bd7b6b8039e3507b8c4946acc6d4 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# YoPhoenix.Repo.insert!(%YoPhoenix.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they w... | 29.5 | 61 | 0.70904 |
28f00d468d3d19ea72f1af54eabf27c146b1f1a5 | 1,827 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1/model/memcache_parameters.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/memcache/lib/google_api/memcache/v1/model/memcache_parameters.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/memcache/lib/google_api/memcache/v1/model/memcache_parameters.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.54 | 371 | 0.731253 |
28f0289c5a0b8791ce0100d9319b3e2256462123 | 3,087 | exs | Elixir | test/blog_phx/accounts_test.exs | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | 2 | 2021-09-28T13:06:31.000Z | 2021-10-03T14:41:14.000Z | test/blog_phx/accounts_test.exs | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | 8 | 2021-09-05T00:40:16.000Z | 2021-12-04T22:41:00.000Z | test/blog_phx/accounts_test.exs | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | null | null | null | defmodule BlogPhx.AccountsTest do
use BlogPhx.DataCase
alias BlogPhx.Accounts
describe "users" do
alias BlogPhx.Accounts.User
@valid_attrs %{
email: "some email",
first_name: "some first_name",
image: "some image",
last_name: "some last_name",
provider: "some provider",
... | 30.564356 | 85 | 0.642047 |
28f05e752e9d1d859d62346929d074c737c1bfe7 | 9,781 | ex | Elixir | lib/elixir/lib/kernel/parallel_compiler.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/parallel_compiler.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/parallel_compiler.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.ParallelCompiler do
@moduledoc """
A module responsible for compiling files in parallel.
"""
@doc """
Compiles the given files.
Those files are compiled in parallel and can automatically
detect dependencies between them. Once a dependency is found,
the current file stops being compile... | 35.183453 | 132 | 0.646662 |
28f066521a43ca9cc7510c34e26ba262707eac34 | 424 | ex | Elixir | test/factories/session_factory.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | test/factories/session_factory.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | test/factories/session_factory.ex | jec/spelt | b6e5070226b646e1eb5dfc28453db7e7bf5030d9 | [
"BSD-3-Clause"
] | null | null | null | defmodule Spelt.SessionFactory do
@moduledoc false
defmacro __using__(_opts) do
quote do
def session_factory(attrs) do
jti = Map.get(attrs, :jti, Joken.generate_jti())
expires_at =
Map.get(attrs, :expiresAt, DateTime.utc_now() |> DateTime.add(30 * 60, :second))
%Spelt.... | 21.2 | 90 | 0.596698 |
28f0c0a834ba49e09067cb6ee2e4a0eb054c77c7 | 165 | exs | Elixir | src/elixir/test/advent_of_code2020_test.exs | davidpricedev/adventOfCode2020 | da60582987a5331348c793654c4ef519e7a4089c | [
"Apache-2.0"
] | null | null | null | src/elixir/test/advent_of_code2020_test.exs | davidpricedev/adventOfCode2020 | da60582987a5331348c793654c4ef519e7a4089c | [
"Apache-2.0"
] | null | null | null | src/elixir/test/advent_of_code2020_test.exs | davidpricedev/adventOfCode2020 | da60582987a5331348c793654c4ef519e7a4089c | [
"Apache-2.0"
] | null | null | null | defmodule AdventOfCode2020Test do
use ExUnit.Case
doctest AdventOfCode2020
test "greets the world" do
assert AdventOfCode2020.hello() == :world
end
end
| 18.333333 | 45 | 0.757576 |
28f0c4a3adb686cfd8a259cf96dd7aa641dd5740 | 2,336 | ex | Elixir | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_run_error_trace.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_run_error_trace.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_run_error_trace.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... | 44.075472 | 296 | 0.75 |
28f0ca85f8960093936d969aa64b97e3b383d534 | 4,377 | ex | Elixir | lib/asset/asset.ex | olaf-cichocki/Imaginary | 6569fda24c97a5425ffc04bbb09c4185950e4b4b | [
"MIT"
] | 1 | 2020-06-08T09:02:57.000Z | 2020-06-08T09:02:57.000Z | lib/asset/asset.ex | olaf-cichocki/Imaginary | 6569fda24c97a5425ffc04bbb09c4185950e4b4b | [
"MIT"
] | null | null | null | lib/asset/asset.ex | olaf-cichocki/Imaginary | 6569fda24c97a5425ffc04bbb09c4185950e4b4b | [
"MIT"
] | null | null | null | defmodule Imaginary.Asset do
@type size :: integer | float | String.t()
@default_base_url "//res.cloudinary.com"
@default_config %CldConfig{}
@moduledoc """
Url module helps manipulating creating urls to cloudinary assets, and can optionally transform the assets as well.
Absolute minimum to create the url... | 32.664179 | 154 | 0.644962 |
28f0cb60205dae0db28c52bdb0cbf751ac245ba6 | 80 | exs | Elixir | test/irc/irc_test.exs | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 19 | 2015-07-21T04:58:12.000Z | 2022-01-20T23:25:18.000Z | test/irc/irc_test.exs | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 3 | 2020-07-17T22:29:17.000Z | 2020-07-20T00:31:41.000Z | test/irc/irc_test.exs | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 3 | 2015-08-26T14:59:37.000Z | 2021-05-05T04:00:06.000Z | defmodule Blur.IRCTest do
use ExUnit.Case, async: true
doctest Blur.IRC
end
| 16 | 30 | 0.7625 |
28f106e5ffcb1a4fa316d6462009216740052fe5 | 202 | ex | Elixir | lib/multi_tenancex_web/views/session_view.ex | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | 30 | 2018-06-27T17:51:53.000Z | 2021-04-24T03:17:55.000Z | lib/multi_tenancex_web/views/session_view.ex | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | null | null | null | lib/multi_tenancex_web/views/session_view.ex | dreamingechoes/multi_tenancex | cfe3feb6b7eb25559f9abaa4da89e4aafc9ad2ec | [
"MIT"
] | 7 | 2018-07-24T17:56:14.000Z | 2019-12-31T02:10:13.000Z | defmodule MultiTenancexWeb.SessionView do
alias MultiTenancex.TenantActions
use MultiTenancexWeb, :view
def select_tenant_options do
TenantActions.list_tenants(MultiTenancex.Repo)
end
end
| 20.2 | 50 | 0.821782 |
28f12c552dcf52c4cd0a99093d39c0407d505d42 | 58 | ex | Elixir | lib/sql_dust/query.ex | rodrigo-dap/sql_dust | 8fc06bbdb103bd013509b3f5baf071c4584f0775 | [
"MIT",
"Unlicense"
] | 66 | 2016-02-04T21:31:43.000Z | 2016-03-14T19:41:26.000Z | lib/sql_dust/query.ex | rodrigo-dap/sql_dust | 8fc06bbdb103bd013509b3f5baf071c4584f0775 | [
"MIT",
"Unlicense"
] | 11 | 2016-03-22T11:17:43.000Z | 2018-04-03T07:30:10.000Z | lib/sql_dust/query.ex | rodrigo-dap/sql_dust | 8fc06bbdb103bd013509b3f5baf071c4584f0775 | [
"MIT",
"Unlicense"
] | 17 | 2016-05-09T16:42:14.000Z | 2021-09-21T22:30:23.000Z | defmodule SqlDust.Query do
use SqlDust.ComposeUtils
end
| 14.5 | 26 | 0.827586 |
28f12e5531b4ba109ef3be4c98eb8123add9a8e2 | 134 | ex | Elixir | web/controllers/page_controller.ex | tilmans/purely-functional-planning-game | 3f667afa53fe7648871d416cd32af9aed15a971f | [
"Apache-2.0"
] | null | null | null | web/controllers/page_controller.ex | tilmans/purely-functional-planning-game | 3f667afa53fe7648871d416cd32af9aed15a971f | [
"Apache-2.0"
] | 1 | 2019-04-10T03:50:58.000Z | 2019-04-10T03:50:58.000Z | web/controllers/page_controller.ex | tilmans/purely-functional-planning-game | 3f667afa53fe7648871d416cd32af9aed15a971f | [
"Apache-2.0"
] | null | null | null | defmodule Hello.PageController do
use Hello.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 16.75 | 33 | 0.723881 |
28f13dadc833c12dfe6cf760bbcc83cf83995ca8 | 165 | exs | Elixir | test/global_supervisor_test.exs | farhadi/global_supervisor | 3ef5c681abcb802d8bc3ce7e9153f31245fab551 | [
"MIT"
] | 6 | 2019-02-15T20:30:43.000Z | 2021-02-26T03:30:26.000Z | test/global_supervisor_test.exs | farhadi/global_supervisor | 3ef5c681abcb802d8bc3ce7e9153f31245fab551 | [
"MIT"
] | null | null | null | test/global_supervisor_test.exs | farhadi/global_supervisor | 3ef5c681abcb802d8bc3ce7e9153f31245fab551 | [
"MIT"
] | null | null | null | defmodule GlobalSupervisorTest do
use ExUnit.Case
doctest GlobalSupervisor
test "greets the world" do
assert GlobalSupervisor.hello() == :world
end
end
| 18.333333 | 45 | 0.757576 |
28f15f63f7098f30130d18234702af9e204cbd32 | 6,709 | ex | Elixir | apps/google_maps/lib/google_maps/map_data.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/google_maps/lib/google_maps/map_data.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/google_maps/lib/google_maps/map_data.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule GoogleMaps.MapData do
alias GoogleMaps.MapData.Path
alias GoogleMaps.MapData.Marker
alias GoogleMaps.MapData.Layers
defmodule Point do
defstruct x: 0, y: 0
@type t :: %__MODULE__{
x: integer,
y: integer
}
end
defmodule Padding do
defstruct left: 0, ... | 29.425439 | 98 | 0.647488 |
28f17eb5051b795461248e105ea1d611eca3d276 | 5,496 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 43.619048 | 217 | 0.699782 |
28f18c6b2b0f28f621ca59671495d44a13a75a39 | 4,233 | ex | Elixir | lib/job_board/github.ex | ElixirVietnam/job_board | cc42a16e70f06572e19d7a1876e896627f90a08a | [
"MIT"
] | 2 | 2019-03-05T12:34:25.000Z | 2020-01-13T22:03:01.000Z | lib/job_board/github.ex | ElixirVietnam/job_board | cc42a16e70f06572e19d7a1876e896627f90a08a | [
"MIT"
] | 2 | 2019-04-05T06:24:58.000Z | 2019-04-05T08:28:33.000Z | lib/job_board/github.ex | ElixirVietnam/job_board | cc42a16e70f06572e19d7a1876e896627f90a08a | [
"MIT"
] | 2 | 2019-04-05T07:06:16.000Z | 2019-10-12T07:07:44.000Z | defmodule JobBoard.Github do
require Logger
@http_client Application.get_env(:job_board, :http_client, JobBoard.HTTPClient.Standard)
@config Application.fetch_env!(:job_board, __MODULE__)
def stream_issues(repo) do
Stream.unfold(1, fn page ->
if page do
case list_issues(repo, page) do
... | 27.134615 | 92 | 0.575478 |
28f18cdd8dcfd9474510dc47c78bc5b21470f27d | 1,109 | exs | Elixir | config/config.exs | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"MIT"
] | null | null | null | config/config.exs | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"MIT"
] | null | null | null | config/config.exs | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"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... | 35.774194 | 73 | 0.754734 |
28f1bdec767decd484a0165dfd2706512313a947 | 7,989 | ex | Elixir | lib/swoosh/adapters/amazon_ses.ex | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/amazon_ses.ex | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/amazon_ses.ex | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.AmazonSES do
@moduledoc ~S"""
An adapter that sends email using the Amazon Simple Email Service Query API.
This email adapter makes use of the Amazon SES SendRawEmail action and generates
a SMTP style message containing the information to be emailed. This allows for
greater more cus... | 28.634409 | 115 | 0.663663 |
28f1f17afc5ca2d24966275f54819095d4ab4146 | 3,934 | ex | Elixir | gen/envoy/config/rbac/v2alpha/rbac.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | gen/envoy/config/rbac/v2alpha/rbac.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | gen/envoy/config/rbac/v2alpha/rbac.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | defmodule Envoy.Config.Rbac.V2alpha.RBAC do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
action: integer,
policies: %{String.t() => Envoy.Config.Rbac.V2alpha.Policy.t() | nil}
}
defstruct [:action, :policies]
field :action, 1, type: Envoy.Config.Rbac.V2a... | 30.261538 | 92 | 0.694713 |
28f1fe7f2814977dda5fbd24e066470a2505104f | 10 | ex | Elixir | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Association.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Association.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Association.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | %{a
=>
b}
| 2.5 | 3 | 0.2 |
28f219616969acf177057ec268ec57c4f5dd923d | 1,032 | exs | Elixir | apps/artour/config/config.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/config/config.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/config/config.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
Code.require_file("config.ex", "#{__DIR__}/../../../lib/common/")
# General applica... | 31.272727 | 68 | 0.753876 |
28f243711ccb126fdc0e5ce57d48260d67ae3200 | 253 | ex | Elixir | lib/poc_circleci_buildkit_parent.ex | esl/poc_circleci_buildkit_parent | c639d95b9539ec2c286dff517bba1b46be06e190 | [
"Apache-2.0"
] | 1 | 2020-02-18T19:13:27.000Z | 2020-02-18T19:13:27.000Z | lib/poc_circleci_buildkit_parent.ex | bryanhuntesl/poc_circleci_buildkit_parent | 80f2ad9774ba795154b898bb47f08d5f248caa47 | [
"Apache-2.0"
] | 1 | 2022-03-06T10:19:31.000Z | 2022-03-06T10:19:31.000Z | lib/poc_circleci_buildkit_parent.ex | isabella232/poc_circleci_buildkit_parent | c639d95b9539ec2c286dff517bba1b46be06e190 | [
"Apache-2.0"
] | 2 | 2020-02-07T15:05:17.000Z | 2020-02-18T16:53:54.000Z | defmodule PocCircleciBuildkitParent do
@moduledoc """
Documentation for PocCircleciBuildkitParent.
"""
@doc """
Hello world.
## Examples
iex> PocCircleciBuildkitParent.hello()
:world
"""
def hello do
:world
end
end
| 13.315789 | 46 | 0.656126 |
28f2521c7eb1f1513fbe52dd4b907cc03ae9423d | 1,742 | ex | Elixir | apps/admin/lib/admin/controllers/post_controller.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 17 | 2019-01-31T18:33:09.000Z | 2022-01-18T12:38:49.000Z | apps/admin/lib/admin/controllers/post_controller.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | null | null | null | apps/admin/lib/admin/controllers/post_controller.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 4 | 2018-11-10T01:56:17.000Z | 2020-06-09T21:10:41.000Z | defmodule Admin.PostController do
use Admin, :controller
import Admin.AuthController, only: [authenticate: 2]
plug :authenticate
alias CMS.Posts
alias CMS.Posts.Post
def index(conn, _params) do
posts = Posts.list_posts()
render(conn, "index.html", posts: posts)
end
def new(conn, _params) do... | 26 | 67 | 0.620551 |
28f2813462ee96b7ff42cf307781f85b95705ef1 | 3,070 | ex | Elixir | test/support/controllers_helper.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 107 | 2017-02-10T00:26:05.000Z | 2022-02-23T00:50:07.000Z | test/support/controllers_helper.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 109 | 2017-02-09T14:40:20.000Z | 2021-04-30T22:01:20.000Z | test/support/controllers_helper.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 25 | 2017-08-21T20:55:33.000Z | 2022-03-06T10:01:13.000Z | defmodule MongoosePushWeb.Support.ControllersHelper do
def flat_request() do
%{
"service" => "apns",
"body" => "A message from someone",
"title" => "Notification title",
"badge" => 7,
"click_action" => ".SomeApp.Handler.action",
"tag" => "info",
"topic" => "com.someapp",
... | 23.79845 | 97 | 0.451466 |
28f28576f94ef877b6801fcd2493d1fc47e32ac9 | 717 | ex | Elixir | backend/lib/windshield_web/gettext.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 19 | 2018-06-07T23:28:34.000Z | 2019-04-23T18:57:43.000Z | backend/lib/windshield_web/gettext.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 27 | 2018-06-10T14:38:55.000Z | 2018-10-10T23:28:43.000Z | backend/lib/windshield_web/gettext.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 7 | 2018-06-08T01:38:46.000Z | 2022-01-12T18:25:34.000Z | defmodule WindshieldWeb.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 WindshieldWeb.Gettext
# Simple translation
gettext "Her... | 28.68 | 72 | 0.684798 |
28f28a603d840ebbea72401b1fa38c86611f4aa1 | 1,382 | ex | Elixir | lib/sentinel/pull_request.ex | hexedpackets/sentinel | 578b6a92832c0a81fd15eac3f3064579ecfbf9bd | [
"MIT"
] | null | null | null | lib/sentinel/pull_request.ex | hexedpackets/sentinel | 578b6a92832c0a81fd15eac3f3064579ecfbf9bd | [
"MIT"
] | 6 | 2019-05-01T21:20:34.000Z | 2019-05-01T21:30:14.000Z | lib/sentinel/pull_request.ex | hexedpackets/sentinel | 578b6a92832c0a81fd15eac3f3064579ecfbf9bd | [
"MIT"
] | null | null | null | defmodule Sentinel.PullRequest do
@moduledoc """
Process events related to pull requests.
"""
@doc """
Newly opened pull requests.
"""
def opened(%{"number" => id, "pull_request" => pull_request, "repo" => repo}) do
check(id, pull_request, repo)
end
@doc """
Check a PR against all rules.
"""... | 25.127273 | 83 | 0.613603 |
28f28d7d009d309e3a5a82c61982d88ac30724bf | 1,706 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/restore_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/restore_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/restore_info.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.45098 | 160 | 0.728019 |
28f299a18f79854dccc87760e25f1371b3a6e051 | 2,204 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_article_answer.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_article_answer.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_article_answer.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.131148 | 143 | 0.699637 |
28f2f97ceeb03722f52bc5b6ec224269744aebce | 2,336 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/status.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... | 44.075472 | 427 | 0.720462 |
28f31202f4d3c3d20d4480b6d1ad9ec9aab2d25b | 2,283 | ex | Elixir | src/lib/changelog_web/helpers/public_helpers.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/lib/changelog_web/helpers/public_helpers.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/lib/changelog_web/helpers/public_helpers.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Helpers.PublicHelpers do
use Phoenix.HTML
alias Changelog.{Person, Regexp}
def error_class(form, field) do
if form.errors[field], do: "error", else: ""
end
def error_message(form, field) do
case form.errors[field] do
{message, _} ->
content_tag :p, class: "form-... | 29.269231 | 109 | 0.649584 |
28f333a719473f4fc70777ac552bac0f696bd6e8 | 3,948 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/run_realtime_report_request.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/run_realtime_report_request.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/run_realtime_report_request.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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.058824 | 299 | 0.740881 |
28f37d2568d031abbd9b4185bf0db0c44a84b1f8 | 618 | exs | Elixir | mix.exs | JoshRagem/my_way | e3d34906471b99c0a1b3165e655378953ad91dfe | [
"MIT"
] | null | null | null | mix.exs | JoshRagem/my_way | e3d34906471b99c0a1b3165e655378953ad91dfe | [
"MIT"
] | null | null | null | mix.exs | JoshRagem/my_way | e3d34906471b99c0a1b3165e655378953ad91dfe | [
"MIT"
] | null | null | null | defmodule MyWay.MixProject do
use Mix.Project
def project do
[
app: :my_way,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
elvis: elvis(),
]
end
# Run "mix help compile.app" to learn about applications.
def application do
... | 16.702703 | 59 | 0.537217 |
28f3805262a9158e65ae76b2f4d399aa50c4fe27 | 170 | exs | Elixir | priv/repo/migrations/20170220032224_remove_task_type_from_tasks.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | priv/repo/migrations/20170220032224_remove_task_type_from_tasks.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | priv/repo/migrations/20170220032224_remove_task_type_from_tasks.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Repo.Migrations.RemoveTaskTypeFromTasks do
use Ecto.Migration
def change do
alter table(:tasks) do
remove :task_type
end
end
end
| 17 | 62 | 0.735294 |
28f3c79abeb92b2f1cbc4af5f4a2e8c52ea27512 | 84 | ex | Elixir | lib/blockchain.ex | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | lib/blockchain.ex | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | lib/blockchain.ex | poanetwork/blockchain | 408287adeab1b7dbb7d55fd7398dd9320e37b30f | [
"MIT"
] | null | null | null | defmodule Blockchain do
@moduledoc """
Documentation for Blockchain.
"""
end
| 12 | 31 | 0.702381 |
28f3dee1174e74ee8d5cacb0df6f2e22331d095b | 846 | exs | Elixir | mix.exs | wschroeder/elixir_number_guess | 3c5be41a4a878527a0451b6c16eca6a44da99f5e | [
"Apache-2.0"
] | 2 | 2015-12-08T06:53:01.000Z | 2015-12-14T17:56:52.000Z | mix.exs | wschroeder/elixir_number_guess | 3c5be41a4a878527a0451b6c16eca6a44da99f5e | [
"Apache-2.0"
] | null | null | null | mix.exs | wschroeder/elixir_number_guess | 3c5be41a4a878527a0451b6c16eca6a44da99f5e | [
"Apache-2.0"
] | null | null | null | defmodule NumberGuess.Mixfile do
use Mix.Project
def project do
[app: :number_guess,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
escript: escript]
end
def escript do
[main_module: NumberGuess.Interfa... | 20.634146 | 77 | 0.600473 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.