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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
974503d063435d82f1bf74406540690c5b0c61f8 | 1,634 | exs | Elixir | mix.exs | bbalser/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | 1 | 2020-06-15T22:41:37.000Z | 2020-06-15T22:41:37.000Z | mix.exs | inhindsight/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | 1 | 2020-09-11T12:24:12.000Z | 2020-09-12T11:14:27.000Z | mix.exs | bbalser/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | null | null | null | defmodule Etl.MixProject do
use Mix.Project
@version "0.1.0"
@github "https://github.com/inhindsight/etl"
@description "Declarative definition of Extract/Transform/Load pipelines"
def project do
[
app: :etl,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod... | 23.681159 | 75 | 0.52754 |
974537bdd790f0e7d99cbf8aa02e0f095a997aef | 2,561 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/key_set.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/spanner/lib/google_api/spanner/v1/model/key_set.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/key_set.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.4 | 152 | 0.708708 |
97454e1b02db916172ce04cbf890103fc1bc0fc7 | 3,835 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/api/privileges.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/api/privileges.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/api/privileges.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... | 43.579545 | 196 | 0.653455 |
974552ac807e7fbed1fa38cf26a5f32203ede133 | 4,297 | ex | Elixir | lib/weber/utils/time.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | 1 | 2018-02-21T07:56:22.000Z | 2018-02-21T07:56:22.000Z | lib/weber/utils/time.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | null | null | null | lib/weber/utils/time.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | null | null | null | defmodule Weber.Time do
@moduledoc """
Weber Time utils functions.
"""
@doc """
Return tuple with current date/time
"""
def now do
:calendar.now_to_datetime(:erlang.now)
end
def format_time(format, locale_pid, date = _datetime // now) do
format_time(format, locale_pid, "", date)
end
d... | 33.570313 | 96 | 0.662788 |
97456acc35a9d2f93b29cc94943b7dbcbc84c056 | 8,694 | ex | Elixir | lib/surface.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | 1 | 2021-06-04T20:46:52.000Z | 2021-06-04T20:46:52.000Z | lib/surface.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | lib/surface.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | defmodule Surface do
@moduledoc """
Surface is component based library for **Phoenix LiveView**.
Built on top of the new `Phoenix.LiveComponent` API, Surface provides
a more declarative way to express and use components in Phoenix.
Full documentation and live examples can be found at [surface-ui.org](https:... | 25.875 | 124 | 0.624454 |
974579c506f96a014e47f7b31a8e567044594b5b | 768 | exs | Elixir | apps/decoder_csv/mix.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/decoder_csv/mix.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/decoder_csv/mix.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule DecoderCsv.MixProject do
use Mix.Project
def project do
[
app: :decoder_csv,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
start_permanent: Mi... | 21.942857 | 65 | 0.522135 |
974599a1444df2c1ef51bf1e504aa1a3f5ca3ae2 | 3,140 | ex | Elixir | lib/repos/Bank/Entry.ex | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | null | null | null | lib/repos/Bank/Entry.ex | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | null | null | null | lib/repos/Bank/Entry.ex | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | null | null | null | defmodule SoftBank.Entry do
@moduledoc """
Entries are the recording of account debits and credits and can be considered
as consituting a traditional accounting Journal.
"""
@type t :: %__MODULE__{
description: String.t(),
date: Ecto.Date.t()
}
use Ecto.Schema
import Ecto.Ch... | 26.610169 | 93 | 0.642357 |
9745b614d3dfb6cc789af2eba292a60cc678b520 | 1,882 | exs | Elixir | clients/android_publisher/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 28.089552 | 108 | 0.664187 |
9745b9138a9c04c44de3a9bb3929f2f5ebed6e94 | 4,173 | exs | Elixir | test/nys_etl/engines/e2/test_result_processor_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | test/nys_etl/engines/e2/test_result_processor_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | test/nys_etl/engines/e2/test_result_processor_test.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Engines.E2.TestResultProcessorTest do
use NYSETL.DataCase, async: false
use Oban.Testing, repo: NYSETL.Repo
import NYSETL.Test.TestHelpers
alias NYSETL.ECLRS
alias NYSETL.Engines.E2.TestResultProcessor
setup :mock_county_list
setup do
{:ok, _oban} = start_supervised({Oban, queues:... | 37.594595 | 139 | 0.676971 |
9745c8f03b434a3327d809ec1d4291b329307c17 | 639 | ex | Elixir | lib/mongoose_push_web/plugs/maybe_render_spec.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 107 | 2017-02-10T00:26:05.000Z | 2022-02-23T00:50:07.000Z | lib/mongoose_push_web/plugs/maybe_render_spec.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 109 | 2017-02-09T14:40:20.000Z | 2021-04-30T22:01:20.000Z | lib/mongoose_push_web/plugs/maybe_render_spec.ex | andrewvmail/MongoosePush | 538846e19a89c9ca4bc1583745131dc69d3d29f4 | [
"Apache-2.0"
] | 25 | 2017-08-21T20:55:33.000Z | 2022-03-06T10:01:13.000Z | defmodule MongoosePushWeb.Plug.MaybeRenderSpec do
import Plug.Conn
@behaviour Plug
@impl Plug
def init(opts) do
enable = Application.get_env(:mongoose_push, :openapi)[:expose_spec]
opts =
if enable do
OpenApiSpex.Plug.RenderSpec.init(opts)
end
%{enabled: enable, opts: opts}
... | 21.3 | 75 | 0.658842 |
9745df5a47c82f1486bfae03ab2613c4ffc06a8b | 3,436 | exs | Elixir | test/elasticsearch/cluster/cluster_test.exs | sambou/elasticsearch-elixir | 4d1ba74513c5276457709520a754bcd599306a61 | [
"MIT"
] | null | null | null | test/elasticsearch/cluster/cluster_test.exs | sambou/elasticsearch-elixir | 4d1ba74513c5276457709520a754bcd599306a61 | [
"MIT"
] | null | null | null | test/elasticsearch/cluster/cluster_test.exs | sambou/elasticsearch-elixir | 4d1ba74513c5276457709520a754bcd599306a61 | [
"MIT"
] | null | null | null | defmodule Elasticsearch.ClusterTest do
use ExUnit.Case, async: false
def valid_config do
%{
api: Elasticsearch.API.HTTP,
json_library: Poison,
url: "http://localhost:9200",
username: "username",
password: "password",
indexes: %{
posts: %{
settings: "test/su... | 27.709677 | 107 | 0.648137 |
9745f45bb860efd8eeb35f822265de5699012d7c | 131 | exs | Elixir | test/test_helper.exs | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | test/test_helper.exs | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | test/test_helper.exs | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | ExUnit.start()
Acmex.start_link(keyfile: "test/support/fixture/account.key")
Acmex.new_account(["mailto:info@example.com"], true)
| 26.2 | 61 | 0.770992 |
9745f7655a4eb358131fef0c25d2bcb9cfe46a4b | 5,201 | ex | Elixir | test/elixir/lib/suite.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/lib/suite.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | test/elixir/lib/suite.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule Couch.Test.Suite do
@moduledoc """
Common code to configure ExUnit runner.
It replaces the usual invocation of `ExUnit.start()` in
`test_helper.exs` related to integration tests with:
```
Couch.Test.Suite.start()
```
"""
@doc """
This helper function can be used to create `suit... | 24.303738 | 86 | 0.619881 |
974600ecb276c898795715ed46cbb1172407a16a | 337 | ex | Elixir | lib/daily_meals/schema.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | lib/daily_meals/schema.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | lib/daily_meals/schema.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | defmodule DailyMeals.Schema do
@moduledoc """
It should be used in order to inject common schema atributes and modules.
"""
defmacro __using__(_opts) do
quote do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
... | 19.823529 | 75 | 0.68546 |
9746028a86ccf2e013bf622af2e6baaee6858d68 | 119 | exs | Elixir | config/config.exs | thomasbrus/webhook-bot | db10b51823e7ad1b48d10bf934cc33c2d740855e | [
"MIT"
] | null | null | null | config/config.exs | thomasbrus/webhook-bot | db10b51823e7ad1b48d10bf934cc33c2d740855e | [
"MIT"
] | null | null | null | config/config.exs | thomasbrus/webhook-bot | db10b51823e7ad1b48d10bf934cc33c2d740855e | [
"MIT"
] | null | null | null | use Mix.Config
config :webhook_bot, WebhookBot.Scheduler,
jobs: [{"*/5 * * * *", {WebhookBot, :call_endpoint, []}}]
| 23.8 | 59 | 0.638655 |
9746191506e65b2a57058fa782db0efb1593a518 | 783 | ex | Elixir | lib/ex_diet/food/queries/calendar.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 2 | 2020-06-25T11:51:46.000Z | 2020-09-30T14:00:40.000Z | lib/ex_diet/food/queries/calendar.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | null | null | null | lib/ex_diet/food/queries/calendar.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 1 | 2020-01-29T08:43:07.000Z | 2020-01-29T08:43:07.000Z | defmodule ExDiet.Food.Queries.Calendar do
@moduledoc false
import Ecto.Query
def for_user(query, %ExDiet.Accounts.User{id: id}) do
from(q in query, where: q.user_id == ^id)
end
def search(query, args) do
Enum.reduce(args, query, fn
{:filter, filter}, query -> filter(query, filter)
_, que... | 24.46875 | 55 | 0.598978 |
9746448d0c5dd20a613ffc325e0a9fe278de7795 | 22,672 | ex | Elixir | lib/elixir/lib/code/fragment.ex | nolman/elixir | 88694f02fbb9c9cdb9a893ec88d0cb4b80fb938d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code/fragment.ex | nolman/elixir | 88694f02fbb9c9cdb9a893ec88d0cb4b80fb938d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code/fragment.ex | nolman/elixir | 88694f02fbb9c9cdb9a893ec88d0cb4b80fb938d | [
"Apache-2.0"
] | null | null | null | defmodule Code.Fragment do
@moduledoc """
This module provides conveniences for analyzing fragments of
textual code and extract available information whenever possible.
Most of the functions in this module provide a best-effort
and may not be accurate under all circumstances. Read each
documentation for mo... | 34.61374 | 96 | 0.603299 |
97465abff16de0b10a669768a9e07acb3e17b3b6 | 2,591 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_item.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_item.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/orders_custom_batch_request_entry_refund_item_item.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... | 42.47541 | 325 | 0.722501 |
9746930dfaafc0e929f5347566a2523c2acd3b57 | 2,053 | exs | Elixir | test/plain_time_test.exs | kianmeng/chronic | 5f058ec7cc0f0c54178ff79b62c27c2918b0e91c | [
"MIT"
] | 28 | 2016-05-13T08:36:00.000Z | 2021-09-23T21:14:09.000Z | test/plain_time_test.exs | kianmeng/chronic | 5f058ec7cc0f0c54178ff79b62c27c2918b0e91c | [
"MIT"
] | 12 | 2016-05-13T18:01:55.000Z | 2018-10-02T22:10:21.000Z | test/plain_time_test.exs | kianmeng/chronic | 5f058ec7cc0f0c54178ff79b62c27c2918b0e91c | [
"MIT"
] | 9 | 2016-06-14T17:43:46.000Z | 2021-11-12T03:06:55.000Z | defmodule Chronic.PlainTimeTest do
use ExUnit.Case, async: true
use Chronic.TestHelpers
test "11am" do
{:ok, time, offset} = Chronic.parse("11am", currently: frozen_time())
assert time == %NaiveDateTime{year: 2015, month: 5, day: 9, hour: 11, minute: 0, second: 0, microsecond: {0, 6}}
assert offset ... | 33.655738 | 117 | 0.6264 |
9746ab035d9e972821a3cbdc189931de0b8b8300 | 713 | exs | Elixir | elixir/year/mix.exs | honeycombio/example-greeting-service | 52365a5f2ae434d0b3a84b10889486184042cbc3 | [
"Apache-2.0"
] | 8 | 2020-12-29T17:44:16.000Z | 2021-11-18T22:18:42.000Z | elixir/year/mix.exs | honeycombio/example-greeting-service | 52365a5f2ae434d0b3a84b10889486184042cbc3 | [
"Apache-2.0"
] | 36 | 2021-04-08T14:30:02.000Z | 2022-03-30T22:06:44.000Z | elixir/year/mix.exs | honeycombio/example-greeting-service | 52365a5f2ae434d0b3a84b10889486184042cbc3 | [
"Apache-2.0"
] | 1 | 2021-04-05T10:52:23.000Z | 2021-04-05T10:52:23.000Z | defmodule Year.MixProject do
use Mix.Project
def project do
[
app: :year,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applicat... | 21.606061 | 76 | 0.575035 |
9746c0914da2609b1d9d97b6bb60f055601e7401 | 2,439 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.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... | 43.553571 | 296 | 0.728167 |
9746cba5e4e27d897999d0be9789e8da0ed17db2 | 1,027 | exs | Elixir | mix.exs | tjamesking/ecto_fields | 17e93f28c0b6ab20f1b2f0ba2fff98eaa5b37559 | [
"MIT"
] | 24 | 2016-06-27T22:24:35.000Z | 2022-02-19T01:16:21.000Z | mix.exs | tjamesking/ecto_fields | 17e93f28c0b6ab20f1b2f0ba2fff98eaa5b37559 | [
"MIT"
] | 9 | 2017-07-29T18:41:40.000Z | 2021-11-22T05:37:45.000Z | mix.exs | tjamesking/ecto_fields | 17e93f28c0b6ab20f1b2f0ba2fff98eaa5b37559 | [
"MIT"
] | 9 | 2017-07-29T18:14:14.000Z | 2021-03-15T23:16:36.000Z | defmodule EctoFields.Mixfile do
use Mix.Project
def project() do
[
app: :ecto_fields,
version: "1.3.0",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description()
]
... | 20.959184 | 77 | 0.534567 |
97477b2abd485f5bac72134d7429dc2b0f93f624 | 4,635 | ex | Elixir | lib/infinity_one_web/query.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | lib/infinity_one_web/query.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | lib/infinity_one_web/query.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule InfinityOneWeb.Query do
@broadcast &Rebel.Core.broadcast_js/2
@no_broadcast &Rebel.Core.async_js/2
@html_modifiers ~r/html|append|before|after|insertAfter|insertBefore|htmlPrefilter|prepend|replaceWith|wrap/i
def update(socket, item, opts) do
do_update(socket, item, t... | 31.965517 | 118 | 0.648328 |
9747c804d8e4e74f26c3c455d8c4d58cf7032c05 | 1,625 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_css_editor_update_payload.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_css_editor_update_payload.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_css_editor_update_payload.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... | 31.862745 | 119 | 0.732308 |
9747ccc1dee30858484dc47400e71df60e0de9ca | 3,256 | ex | Elixir | lib/credo/priority.ex | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | null | null | null | lib/credo/priority.ex | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | null | null | null | lib/credo/priority.ex | adrienmo/credo | 205f43ba6cfc81b932605d4aa86fdb8378dea3a3 | [
"MIT"
] | null | null | null | defmodule Credo.Priority do
@moduledoc false
# In Credo each Issue is given a priority to differentiate issues by a second
# dimension next to their Category.
alias Credo.Code.Module
alias Credo.Code.Parameters
alias Credo.Code.Scope
alias Credo.SourceFile
@def_ops [:def, :defp, :defmacro]
@many_fu... | 23.766423 | 91 | 0.593366 |
9747f1df5f2232129d98a06929095828d3c6ecd1 | 1,240 | ex | Elixir | lib/pathex/operations.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | 51 | 2020-04-23T11:55:36.000Z | 2022-03-28T10:01:39.000Z | lib/pathex/operations.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | 4 | 2021-03-12T14:44:27.000Z | 2021-12-29T11:00:02.000Z | lib/pathex/operations.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | 3 | 2020-10-16T18:05:16.000Z | 2021-06-03T21:54:26.000Z | defmodule Pathex.Operations do
@moduledoc """
Module for working with modifiers for paths
Like :naive, :json, :map
"""
alias Pathex.Builder
alias Builder.{
ForceUpdater, MatchableViewer,
SimpleUpdater, SimpleViewer
}
@type name :: :view | :force_update | :update
@type t :: %{name() => Build... | 24.8 | 90 | 0.643548 |
9747feae51faf31b020c449957cc66e5db190880 | 43,101 | ex | Elixir | lib/cubdb.ex | fhunleth/cubdb | 0c606e3efe8110da90e52eb95f963a3cd51360ae | [
"Apache-2.0"
] | 318 | 2019-06-17T16:54:25.000Z | 2022-03-09T07:37:23.000Z | lib/cubdb.ex | fhunleth/cubdb | 0c606e3efe8110da90e52eb95f963a3cd51360ae | [
"Apache-2.0"
] | 29 | 2019-07-03T13:46:28.000Z | 2022-02-15T10:44:58.000Z | lib/cubdb.ex | fhunleth/cubdb | 0c606e3efe8110da90e52eb95f963a3cd51360ae | [
"Apache-2.0"
] | 18 | 2019-06-29T04:40:22.000Z | 2022-01-18T16:30:15.000Z | defmodule CubDB do
@moduledoc """
`CubDB` is an embedded key-value database written in the Elixir language. It
runs locally, it is schema-less, and backed by a single file.
## Features
- Both keys and values can be any arbitrary Elixir (or Erlang) term.
- Simple `get/3`, `put/3`, and `delete/2` opera... | 32.045353 | 100 | 0.650194 |
974801097f666f3c04a819124468614b99af04d2 | 733 | ex | Elixir | lib/elixir_formatter_web/gettext.ex | J3RN/elixir-formatter | d68d496b1ec204035774d10e56acb9926bb46284 | [
"BSD-3-Clause"
] | 13 | 2017-12-01T13:27:27.000Z | 2022-02-07T03:30:07.000Z | lib/elixir_formatter_web/gettext.ex | J3RN/elixir-formatter | d68d496b1ec204035774d10e56acb9926bb46284 | [
"BSD-3-Clause"
] | 7 | 2021-03-08T17:10:38.000Z | 2021-08-31T16:28:30.000Z | lib/elixir_formatter_web/gettext.ex | J3RN/elixir-formatter | d68d496b1ec204035774d10e56acb9926bb46284 | [
"BSD-3-Clause"
] | 5 | 2017-12-20T09:01:27.000Z | 2020-05-03T20:24:46.000Z | defmodule ElixirFormatterWeb.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 ElixirFormatterWeb.Gettext
# Simple translation
ge... | 29.32 | 72 | 0.691678 |
97480ee96d3776af9d64d315d0e9d63cc400d138 | 2,969 | ex | Elixir | lib/excoveralls.ex | albertored/excoveralls | a716e6e66aae64f4dc9d6d29859c47959151b229 | [
"MIT"
] | 716 | 2015-01-04T20:41:01.000Z | 2022-03-29T08:44:09.000Z | lib/excoveralls.ex | albertored/excoveralls | a716e6e66aae64f4dc9d6d29859c47959151b229 | [
"MIT"
] | 255 | 2015-01-03T23:41:58.000Z | 2022-03-19T23:06:06.000Z | lib/excoveralls.ex | albertored/excoveralls | a716e6e66aae64f4dc9d6d29859c47959151b229 | [
"MIT"
] | 217 | 2015-03-31T20:17:58.000Z | 2022-02-20T23:46:41.000Z | defmodule ExCoveralls do
@moduledoc """
Provides the entry point for coverage calculation and output.
This module method is called by Mix.Tasks.Test
"""
alias ExCoveralls.Stats
alias ExCoveralls.Cover
alias ExCoveralls.ConfServer
alias ExCoveralls.StatServer
alias ExCoveralls.Travis
alias ExCoverall... | 24.741667 | 79 | 0.692826 |
97481d9e6622807f978d7e42e9d18c3777de29ec | 1,339 | exs | Elixir | test/integration/init_test.exs | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | 3 | 2018-07-01T05:31:02.000Z | 2019-08-03T04:11:32.000Z | test/integration/init_test.exs | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | 8 | 2018-06-28T07:30:04.000Z | 2018-07-13T07:36:56.000Z | test/integration/init_test.exs | AnilRedshift/wand-cli | c364cf5397353fd61ba0e5fc33225575eb72ccda | [
"BSD-3-Clause"
] | null | null | null | defmodule Wand.Integration.InitTest do
use Wand.Test.IntegrationCase
alias WandCore.WandFile
alias WandCore.WandFile.Dependency
test "Initialize, and modify the wand file" do
in_dir(fn ->
assert execute("mix new .") == :ok
assert wand("init") == :ok
assert_wandfile()
assert wand("ad... | 31.880952 | 83 | 0.631815 |
974821345ace8c64dceb6894c7fa89bf34f0e913 | 4,603 | exs | Elixir | ros/ros_service/test/ros_service_test.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_service/test/ros_service_test.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_service/test/ros_service_test.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.Service.Test do
use ExUnit.Case
alias Ros.Lib.Enum, as: Enums
setup do
uid = Ecto.UUID.generate
etstab = :order_cache_test
ordermodel = [%Ros.Lib.Model.Order{
order_group_id: nil,
order_id: uid,
table_id: 22,
dish_group: Enums.dish_groups.main,
dish: 99,
... | 30.483444 | 106 | 0.68086 |
97486a6465553114f55be05b64091d3d6063b87d | 8,728 | ex | Elixir | lib/astarte_flow/blocks/container.ex | Annopaolo/astarte_flow | d6846917d2adb87127cb06ab6aeb11d6c0d10de8 | [
"Apache-2.0"
] | 11 | 2020-01-30T17:44:35.000Z | 2022-01-13T19:17:21.000Z | lib/astarte_flow/blocks/container.ex | Annopaolo/astarte_flow | d6846917d2adb87127cb06ab6aeb11d6c0d10de8 | [
"Apache-2.0"
] | 100 | 2020-02-11T10:01:35.000Z | 2022-02-17T10:39:35.000Z | lib/astarte_flow/blocks/container.ex | Annopaolo/astarte_flow | d6846917d2adb87127cb06ab6aeb11d6c0d10de8 | [
"Apache-2.0"
] | 7 | 2020-01-30T11:33:20.000Z | 2021-05-03T09:48:41.000Z | #
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 29.093333 | 97 | 0.64505 |
97487fd63c5e4b9ff24b6dd8aed549d95cf7fe8b | 1,080 | exs | Elixir | mix.exs | potto007/inetex | b6ed930fe2d3117bbbbacf7fab73b1415470565f | [
"Apache-2.0"
] | null | null | null | mix.exs | potto007/inetex | b6ed930fe2d3117bbbbacf7fab73b1415470565f | [
"Apache-2.0"
] | null | null | null | mix.exs | potto007/inetex | b6ed930fe2d3117bbbbacf7fab73b1415470565f | [
"Apache-2.0"
] | null | null | null | defmodule Inetex.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :inetex,
name: "Inetex",
version: @version,
elixir: "~> 1.2",
docs: [extras: ["README.md", "CHANGELOG.md"],
main: "readme",
source_ref: "v#{@version}"],
source_url: "https://git... | 21.6 | 73 | 0.605556 |
9748b325d82c54f4e93ac3b82bf3831830457c8e | 66 | ex | Elixir | lib/linkir_web/views/user_session_view.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | lib/linkir_web/views/user_session_view.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | lib/linkir_web/views/user_session_view.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | defmodule LinkirWeb.UserSessionView do
use LinkirWeb, :view
end
| 16.5 | 38 | 0.818182 |
9748c262f2e5bb6dc231c6153900c24c9b61028f | 6,971 | ex | Elixir | apps/omg_api/lib/state/transaction.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_api/lib/state/transaction.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_api/lib/state/transaction.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"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.709251 | 117 | 0.646392 |
9748eb80a086792d4fa82663ee76a254ee5afaa7 | 6,261 | ex | Elixir | lib/surface/compiler/helpers.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | 1 | 2021-06-04T20:46:52.000Z | 2021-06-04T20:46:52.000Z | lib/surface/compiler/helpers.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | lib/surface/compiler/helpers.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.Helpers do
alias Surface.AST
alias Surface.Compiler.CompileMeta
alias Surface.IOHelper
@builtin_common_assigns [
:socket,
:__context__,
:__surface__
]
@builtin_component_assigns [:inner_block] ++ @builtin_common_assigns
@builtin_live_component_assigns [:id, :mysel... | 28.076233 | 97 | 0.658361 |
9749078e923488c86531578094e5dcae059c9c82 | 213 | ex | Elixir | hello_redbug/lib/hello_redbug.ex | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | hello_redbug/lib/hello_redbug.ex | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | 4 | 2021-10-06T22:07:13.000Z | 2022-02-27T10:35:34.000Z | hello_redbug/lib/hello_redbug.ex | wangxingfred/hello | 2358b6358a55e68a425887901685d6b066cd2b2e | [
"MIT"
] | null | null | null | defmodule HelloRedbug do
@moduledoc """
Documentation for `HelloRedbug`.
"""
@doc """
Hello world.
## Examples
iex> HelloRedbug.hello()
:world
"""
def hello do
:world
end
end
| 11.210526 | 34 | 0.58216 |
9749b0d7949e16d1c3b4f885ed694233dc5cb0d0 | 18,806 | ex | Elixir | lib/aws/generated/kendra.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/kendra.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/kendra.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Kendra do
@moduledoc """
Amazon Kendra is a service for indexing large document sets.
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviat... | 38.223577 | 154 | 0.727108 |
9749b85e974751d3147e785af292665ab75e75d9 | 138 | ex | Elixir | lib/dnsapp_web/controllers/page_controller.ex | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | lib/dnsapp_web/controllers/page_controller.ex | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | lib/dnsapp_web/controllers/page_controller.ex | tashavanes/dnsapp | 92d1069e3ef06df6a990047297d87e91a782a75b | [
"MIT"
] | null | null | null | defmodule DnsappWeb.PageController do
use DnsappWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 17.25 | 37 | 0.73913 |
9749da87e6b6f295aa875e56668a8e036f87347c | 8,694 | ex | Elixir | lib/nostrum/util.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/util.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/util.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | 1 | 2021-09-13T20:59:42.000Z | 2021-09-13T20:59:42.000Z | defmodule Nostrum.Util do
@moduledoc """
Utility functions
"""
alias Nostrum.{Api, Constants, Snowflake}
alias Nostrum.Shard.Session
alias Nostrum.Struct.WSState
require Logger
@doc """
Returns the number of milliseconds since unix epoch.
"""
@spec now() :: integer
def now do
DateTime.utc... | 28.045161 | 99 | 0.654244 |
974a32829259f1a0419989ef4ab3589b37b384a1 | 2,607 | ex | Elixir | apps/omg_eth/test/support/dev_geth.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/test/support/dev_geth.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/test/support/dev_geth.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | # 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... | 27.15625 | 109 | 0.66705 |
974a68708984cc9a70f8a48bc00e8dbc6686fee9 | 55 | exs | Elixir | config/test.exs | sashman/elasticsearch_elixir_bulk_processor | b44a8c97eee706bb14d477157044b7a9090c05ea | [
"Apache-2.0"
] | 13 | 2020-01-01T10:49:47.000Z | 2022-01-14T22:03:02.000Z | config/test.exs | sashman/elasticsearch_elixir_bulk_processor | b44a8c97eee706bb14d477157044b7a9090c05ea | [
"Apache-2.0"
] | 12 | 2019-10-03T09:01:33.000Z | 2020-11-23T08:54:33.000Z | config/test.exs | sashman/elasticsearch_elixir_bulk_processor | b44a8c97eee706bb14d477157044b7a9090c05ea | [
"Apache-2.0"
] | 3 | 2019-10-08T11:16:17.000Z | 2020-11-21T16:23:26.000Z | use Mix.Config
config :logger, :console, level: :warn
| 13.75 | 38 | 0.727273 |
974a68e4502e1646584c06116085127209ffa470 | 1,145 | exs | Elixir | config/config.exs | tesseract-libs/tesseract-geometry | 17fe9f59019453810071b1cd30834a541eb76beb | [
"MIT"
] | null | null | null | config/config.exs | tesseract-libs/tesseract-geometry | 17fe9f59019453810071b1cd30834a541eb76beb | [
"MIT"
] | 1 | 2018-06-08T00:32:01.000Z | 2018-06-09T23:46:50.000Z | config/config.exs | tesseract-libs/tesseract-geometry | 17fe9f59019453810071b1cd30834a541eb76beb | [
"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.935484 | 73 | 0.756332 |
974aac6a25e0667d10d8d0046fe9bd69dfc9a404 | 511 | ex | Elixir | lib/sample_genstage/consumer.ex | abmBispo/sample-genstage | c6e2af7efd64f3baaa423c1f4a05b05120723843 | [
"MIT"
] | null | null | null | lib/sample_genstage/consumer.ex | abmBispo/sample-genstage | c6e2af7efd64f3baaa423c1f4a05b05120723843 | [
"MIT"
] | null | null | null | lib/sample_genstage/consumer.ex | abmBispo/sample-genstage | c6e2af7efd64f3baaa423c1f4a05b05120723843 | [
"MIT"
] | null | null | null | defmodule SampleGenstage.Consumer do
use GenStage
def start_link(_initial) do
GenStage.start_link(__MODULE__, :state_doesnt_matter, name: __MODULE__)
end
def init(state) do
{:consumer, state, subscribe_to: [{SampleGenstage.ProducerConsumer, max_demand: 5}]}
end
def handle_events(messages, _from, ... | 23.227273 | 88 | 0.69863 |
974aadd88a140da47927b815a9d6f05f094afc1c | 1,779 | ex | Elixir | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/commit_cursor_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/commit_cursor_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/model/commit_cursor_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.58 | 196 | 0.732434 |
974ab5ed6bbf2b06f8ea4523e0d4ae6a0b8bb89a | 267 | exs | Elixir | priv/repo/migrations/20210612160653_create_users.exs | strzibny/ignition | 56c51ca8fbacba1c737a7569cd260db343f01735 | [
"bzip2-1.0.6"
] | 1 | 2019-09-25T22:03:14.000Z | 2019-09-25T22:03:14.000Z | priv/repo/migrations/20210612160653_create_users.exs | strzibny/ignition | 56c51ca8fbacba1c737a7569cd260db343f01735 | [
"bzip2-1.0.6"
] | 2 | 2021-03-09T12:10:09.000Z | 2021-05-10T01:25:36.000Z | priv/repo/migrations/20190710231513_create_users.exs | brandedux/phoenix_api | 3613d3d2a232a0d39cd125bd09cceee876fbf475 | [
"MIT"
] | null | null | null | defmodule MyApp.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string, null: false
add :password_hash, :string
timestamps()
end
create unique_index(:users, [:email])
end
end
| 17.8 | 46 | 0.666667 |
974ab71658b270b46f2e8ec10da73f74408f0a74 | 1,029 | ex | Elixir | lib/harald/host/att/read_by_group_type_req.ex | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 59 | 2019-02-16T00:09:58.000Z | 2020-03-29T23:37:36.000Z | lib/harald/host/att/read_by_group_type_req.ex | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 19 | 2019-02-15T22:41:43.000Z | 2020-02-15T19:20:57.000Z | lib/harald/host/att/read_by_group_type_req.ex | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 9 | 2020-05-07T00:02:36.000Z | 2021-09-17T18:17:46.000Z | defmodule Harald.Host.ATT.ReadByGroupTypeReq do
@moduledoc """
Reference: version 5.2, Vol 3, Part F, 3.4.4.9
"""
def encode(%{
starting_handle: starting_handle,
ending_handle: ending_handle,
attribute_group_type: attribute_group_type
}) do
{:ok,
<<starting_handle::little... | 26.384615 | 75 | 0.682216 |
974ae69e5230a094eb30e4997bd7a19d10b0e4d6 | 77 | ex | Elixir | web/views/layout_view.ex | ngnclht1102/trello-clone | 669bf0ab765ca1d9735124f3f99cb245582b45fa | [
"MIT"
] | null | null | null | web/views/layout_view.ex | ngnclht1102/trello-clone | 669bf0ab765ca1d9735124f3f99cb245582b45fa | [
"MIT"
] | null | null | null | web/views/layout_view.ex | ngnclht1102/trello-clone | 669bf0ab765ca1d9735124f3f99cb245582b45fa | [
"MIT"
] | null | null | null | defmodule TrelloRewriteMe.LayoutView do
use TrelloRewriteMe.Web, :view
end
| 19.25 | 39 | 0.831169 |
974aec541d58a91f9acf410d87387256ca6b2a42 | 266 | exs | Elixir | c_src/membrane_opus_plugin/encoder.spec.exs | JasonTrue/membrane_opus_plugin | 9577ab9941cfcd5737346b645eff93e1800fcc2d | [
"Apache-2.0"
] | 2 | 2019-10-08T10:21:40.000Z | 2019-10-08T10:21:49.000Z | c_src/membrane_opus_plugin/encoder.spec.exs | JasonTrue/membrane_opus_plugin | 9577ab9941cfcd5737346b645eff93e1800fcc2d | [
"Apache-2.0"
] | 11 | 2020-05-08T07:55:30.000Z | 2022-03-24T05:59:16.000Z | c_src/membrane_opus_plugin/encoder.spec.exs | JasonTrue/membrane_opus_plugin | 9577ab9941cfcd5737346b645eff93e1800fcc2d | [
"Apache-2.0"
] | 2 | 2020-10-10T04:51:09.000Z | 2022-03-16T02:12:22.000Z | module Membrane.Opus.Encoder.Native
state_type "State"
spec create(input_rate :: int, channels :: int, application :: int) :: state
spec encode_packet(state, payload, frame_size :: int) ::
{:ok :: label, payload}
| {:error :: label, reason :: atom}
| 26.6 | 76 | 0.657895 |
974b04f764151aea588ec84562d38bd43639a2a9 | 2,795 | ex | Elixir | lib/exrabbit/util.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | lib/exrabbit/util.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | lib/exrabbit/util.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | defmodule Exrabbit.Util do
use Exrabbit.Records
alias Exrabbit.Message
@typep message :: {Exrabbit.Records.basic_deliver(), Exrabbit.Records.amqp_msg()}
| {Exrabbit.Records.basic_get_ok(), Exrabbit.Records.amqp_msg()}
@doc """
Parse a message coming from the subscriber or `get` function i... | 29.114583 | 83 | 0.647943 |
974b0c0696929229f828dba72439427b304207b4 | 1,931 | ex | Elixir | clients/speech/lib/google_api/speech/v1/model/long_running_recognize_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/long_running_recognize_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/long_running_recognize_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.134615 | 163 | 0.745728 |
974b1770d9253a9cef4a1c9f9ad52685ea759f4e | 4,382 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_object.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... | 55.468354 | 252 | 0.720904 |
974b1c5c37fa4bf6dfabda2381814d112551eb18 | 704 | exs | Elixir | test/blue_heron/hci/command/controller_and_baseband/write_scan_enable_test.exs | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 45 | 2020-10-17T13:34:15.000Z | 2022-03-08T09:40:43.000Z | test/blue_heron/hci/command/controller_and_baseband/write_scan_enable_test.exs | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 20 | 2020-10-15T15:05:54.000Z | 2022-03-27T15:54:36.000Z | test/blue_heron/hci/command/controller_and_baseband/write_scan_enable_test.exs | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 11 | 2020-10-23T17:18:57.000Z | 2022-03-15T20:01:49.000Z | defmodule BlueHeron.HCI.Command.ControllerAndBaseband.WriteScanEnableTest do
use ExUnit.Case
alias BlueHeron.HCI.Command.ControllerAndBaseband.WriteScanEnable
test "serializes scan_enable parameter correctly" do
val = Enum.random(0x00..0x03)
serialized =
%WriteScanEnable{scan_enable: val}
|... | 28.16 | 76 | 0.68892 |
974b220547885404528deea97a03943913fe3b12 | 4,572 | exs | Elixir | test/data_test.exs | madlep/haex | 56df0c72f98c19b15d704376509cfd1c7ddc6b77 | [
"MIT"
] | 11 | 2020-12-16T06:56:05.000Z | 2020-12-27T18:11:08.000Z | test/data_test.exs | madlep/haex | 56df0c72f98c19b15d704376509cfd1c7ddc6b77 | [
"MIT"
] | null | null | null | test/data_test.exs | madlep/haex | 56df0c72f98c19b15d704376509cfd1c7ddc6b77 | [
"MIT"
] | 1 | 2020-12-17T21:53:29.000Z | 2020-12-17T21:53:29.000Z | defmodule DataTest do
@moduledoc false
use ExUnit.Case
describe "enum sum data type with constant data constructors" do
# data Color :: Red | Green | Blue | BlueSteel
test "has type spec defined" do
{:ok,
[
type:
{:t,
{:type, m, :union,
[
... | 32.657143 | 113 | 0.522528 |
974b2cc963f700bf449bebd872f663c9ea8a6b17 | 1,124 | ex | Elixir | lib/univrse/alg/hmac.ex | libitx/univrse | de50baebd257e73e869be4a2e87a60283d1c8001 | [
"Apache-2.0"
] | 5 | 2021-08-03T12:10:21.000Z | 2022-03-08T12:30:50.000Z | lib/univrse/alg/hmac.ex | libitx/univrse | de50baebd257e73e869be4a2e87a60283d1c8001 | [
"Apache-2.0"
] | 1 | 2021-08-04T10:28:31.000Z | 2021-08-04T10:28:31.000Z | lib/univrse/alg/hmac.ex | libitx/univrse | de50baebd257e73e869be4a2e87a60283d1c8001 | [
"Apache-2.0"
] | null | null | null | defmodule Univrse.Alg.HMAC do
@moduledoc """
HMAC algorithm module.
Signs and verifies messages using hash-based message authentication.
"""
alias Univrse.Key
@doc """
Signs the message with the key using the specified algorithm.
"""
@spec sign(String.t, binary, Key.t) :: binary | {:error, any}
d... | 29.578947 | 81 | 0.629893 |
974b5ddbd95c56881796a328a6fcfbbf730ceedd | 860 | exs | Elixir | test/lib/code_corps_web/views/task_skill_view_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps_web/views/task_skill_view_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps_web/views/task_skill_view_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.TaskSkillViewTest do
@moduledoc false
use CodeCorpsWeb.ViewCase
test "renders all attributes and relationships properly" do
task_skill = insert(:task_skill)
rendered_json = render(CodeCorpsWeb.TaskSkillView, "show.json-api", data: task_skill)
expected_json = %{
"data" ... | 26.060606 | 92 | 0.539535 |
974b5f0e5142b51205d359b6dec0decbb3ee0349 | 9,222 | ex | Elixir | lib/analyze.ex | IanLuites/analyze | ce5b5b915ba0736028d8299b6768ff70397785d9 | [
"MIT"
] | 3 | 2017-08-23T08:52:07.000Z | 2020-01-12T03:40:48.000Z | lib/analyze.ex | IanLuites/analyze | ce5b5b915ba0736028d8299b6768ff70397785d9 | [
"MIT"
] | null | null | null | lib/analyze.ex | IanLuites/analyze | ce5b5b915ba0736028d8299b6768ff70397785d9 | [
"MIT"
] | null | null | null | defmodule Analyze do
@moduledoc ~S"""
Documentation for Analyze.
"""
alias Analyze.BuildStatus
alias Analyze.CLI
alias Analyze.Checks.{Spec, Documentation}
@methods %{
"coverage" => {&Analyze.coverage/1, "Code Coverage", "Running code coverage...", []},
"credo" => {&Analyze.credo/1, "Credo", "Ch... | 27.861027 | 158 | 0.578616 |
974b6074b313ad512aa7937effed8434bdff21b1 | 2,110 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit_content_ads_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit_content_ads_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_unit_content_ads_settings.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... | 39.074074 | 191 | 0.732701 |
974bcf3ea110d29e4d14377a3f68fca88756b4e5 | 4,740 | exs | Elixir | test/elixirgithub_web/controllers/users_controller_test.exs | LuizFerK/ElixirGitHub | 7db1270e296c6f0a33b7a85e80753cc010ea50af | [
"MIT"
] | 1 | 2021-11-23T16:51:04.000Z | 2021-11-23T16:51:04.000Z | test/elixirgithub_web/controllers/users_controller_test.exs | LuizFerK/Repositoriex | 7db1270e296c6f0a33b7a85e80753cc010ea50af | [
"MIT"
] | null | null | null | test/elixirgithub_web/controllers/users_controller_test.exs | LuizFerK/Repositoriex | 7db1270e296c6f0a33b7a85e80753cc010ea50af | [
"MIT"
] | null | null | null | defmodule ElixirgithubWeb.UsersControllerTest do
use ElixirgithubWeb.ConnCase, async: true
alias Elixirgithub.User
alias Elixirgithub.Users.Create
alias ElixirgithubWeb.Auth.Guardian
describe "create/2" do
test "when all params are valid, create the user", %{conn: conn} do
response =
conn
... | 30.384615 | 96 | 0.589662 |
974bf1ad13d12c17ac8c8494dfed47f361dd7e5d | 2,254 | ex | Elixir | lib/pg_ranges/numrange.ex | Route-Now/pg_ranges | ac73384d6d9b3bd9e9319a5a9b13382f67c373eb | [
"MIT"
] | 7 | 2021-02-14T02:31:19.000Z | 2022-02-09T23:24:25.000Z | lib/pg_ranges/numrange.ex | Route-Now/pg_ranges | ac73384d6d9b3bd9e9319a5a9b13382f67c373eb | [
"MIT"
] | 3 | 2020-05-28T05:28:42.000Z | 2022-03-04T20:27:25.000Z | lib/pg_ranges/numrange.ex | Route-Now/pg_ranges | ac73384d6d9b3bd9e9319a5a9b13382f67c373eb | [
"MIT"
] | 12 | 2019-03-07T19:58:43.000Z | 2021-10-03T01:03:19.000Z | defmodule PgRanges.NumRange do
@moduledoc """
Wraps a `Postgrex.Range` and casts to a PostgreSQL `numrange` type.
"""
use PgRanges
@type t :: %__MODULE__{
lower: float(),
lower_inclusive: boolean(),
upper: float(),
upper_inclusive: boolean()
}
@doc false
@... | 23.237113 | 84 | 0.588287 |
974c083dfb78441011b76fd18901d81569c0304a | 2,663 | ex | Elixir | lib/aoc2019_day11.ex | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | 1 | 2022-01-10T02:34:18.000Z | 2022-01-10T02:34:18.000Z | lib/aoc2019_day11.ex | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | null | null | null | lib/aoc2019_day11.ex | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | 1 | 2019-12-02T09:42:17.000Z | 2019-12-02T09:42:17.000Z | defmodule Aoc2019Day11 do
@up 0
@left 1
@down 2
@right 3
@black 0
@white 1
def turn_left(current_direction) do
rem(current_direction + 1, 4)
end
def turn_right(current_direction) do
rem(current_direction + 4 - 1, 4)
end
def draw(panels) do
panel_list = panels |> Map.to_list()
xs ... | 23.566372 | 87 | 0.494555 |
974c14830a6c8bfdeeaf9b433ce2d3bc2fde1a09 | 300 | ex | Elixir | lib/sanbase_web/graphql/schema/types/aggregation_types.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/schema/types/aggregation_types.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/schema/types/aggregation_types.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.AggregationTypes do
use Absinthe.Schema.Notation
enum :aggregation do
value(:none)
value(:count)
value(:any)
value(:last)
value(:first)
value(:avg)
value(:sum)
value(:min)
value(:max)
value(:median)
value(:ohlc)
end
end
| 16.666667 | 48 | 0.633333 |
974c571c42a71017e16daa7fe42469e748c8e836 | 91 | ex | Elixir | lib/perspective/utilities/app_id/app_id_from_process.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | 2 | 2020-04-24T19:43:06.000Z | 2020-04-24T19:52:27.000Z | lib/perspective/utilities/app_id/app_id_from_process.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | lib/perspective/utilities/app_id/app_id_from_process.ex | backmath/perspective | a0a577d0ffb06805b64e4dcb171a093e051884b0 | [
"MIT"
] | null | null | null | defmodule Perspective.AppIdFromProcess do
def find do
Process.get(:app_id)
end
end
| 15.166667 | 41 | 0.758242 |
974c5aecaca63bee5ca7255077ea08cc4db84991 | 2,405 | ex | Elixir | lib/oidc/utils/server_metadata.ex | tanguilp/oidc | 3a06cc72c88e7690cfee1ba35501fb06d2009756 | [
"Apache-2.0"
] | null | null | null | lib/oidc/utils/server_metadata.ex | tanguilp/oidc | 3a06cc72c88e7690cfee1ba35501fb06d2009756 | [
"Apache-2.0"
] | 5 | 2020-05-30T14:09:52.000Z | 2022-03-09T17:12:47.000Z | lib/oidc/utils/server_metadata.ex | tanguilp/oidc | 3a06cc72c88e7690cfee1ba35501fb06d2009756 | [
"Apache-2.0"
] | 3 | 2021-09-03T07:58:07.000Z | 2021-09-21T12:27:29.000Z | defmodule OIDC.Utils.ServerMetadata do
@moduledoc false
alias OIDC.Auth.Challenge
alias OIDC.IDToken
@spec get(OIDC.Auth.challenge_opts() | Challenge.t()) :: OIDC.server_metadata()
def get(%Challenge{} = challenge) do
get(
server_metadata: challenge.server_metadata,
issuer: challenge.issuer,... | 29.329268 | 96 | 0.651143 |
974c7d1a029e475e9b42552d978a1fb1b4c7175b | 2,039 | exs | Elixir | webchika_api/config/prod.exs | kentaro/nerves_webchika | cd110140894591022331b020d1296d040d6c44fb | [
"MIT"
] | 2 | 2020-11-26T14:29:17.000Z | 2020-11-26T18:45:56.000Z | webchika_api/config/prod.exs | kentaro/nerves_webchika | cd110140894591022331b020d1296d040d6c44fb | [
"MIT"
] | null | null | null | webchika_api/config/prod.exs | kentaro/nerves_webchika | cd110140894591022331b020d1296d040d6c44fb | [
"MIT"
] | 1 | 2021-01-06T15:50:28.000Z | 2021-01-06T15:50:28.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.410714 | 66 | 0.718489 |
974c89ea3e61a2111061e38290f346765c27aba3 | 5,101 | ex | Elixir | lib/codes/codes_q62.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q62.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q62.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Q62 do
alias IcdCode.ICDCode
def _Q620 do
%ICDCode{full_code: "Q620",
category_code: "Q62",
short_code: "0",
full_name: "Congenital hydronephrosis",
short_name: "Congenital hydronephrosis",
category_name: "Congenital hydronephrosis... | 31.88125 | 79 | 0.607528 |
974c9bfa70a36371f1eee37c1e6b44a3ce6326f0 | 3,974 | ex | Elixir | lib/perf/load_generator.ex | bancolombia/perf-analizer | 16a90dad045413ee168fd2a45f975f3c03099fb3 | [
"MIT"
] | 1 | 2020-03-03T18:17:37.000Z | 2020-03-03T18:17:37.000Z | lib/perf/load_generator.ex | bancolombia/perf-analizer | 16a90dad045413ee168fd2a45f975f3c03099fb3 | [
"MIT"
] | 3 | 2020-02-20T18:53:59.000Z | 2020-02-20T19:00:06.000Z | lib/perf/load_generator.ex | bancolombia/perf-analizer | 16a90dad045413ee168fd2a45f975f3c03099fb3 | [
"MIT"
] | null | null | null | defmodule Perf.LoadGenerator do
use Task
alias Perf.Model.Request
def start(%LoadProcessModel{request: request, step_name: step_name, end_time: end_time}, dataset, concurrency) do
Task.start(fn ->
conn = Perf.ConnectionPool.get_connection()
try do
results = generate_load(request, datase... | 30.106061 | 186 | 0.625566 |
974ce72a420f3a7f74e227a72f152c577b9f39bb | 433 | exs | Elixir | test/renaissance_web/views/error_view_test.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2021-02-01T12:09:07.000Z | 2021-03-14T12:20:43.000Z | test/renaissance_web/views/error_view_test.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 11 | 2019-04-09T18:01:16.000Z | 2019-05-16T15:02:24.000Z | test/renaissance_web/views/error_view_test.exs | rstein66/Renaissance | 947880e1b492adc2ce1f4a0883ddb41e597de011 | [
"Unlicense"
] | 2 | 2019-04-30T22:43:18.000Z | 2019-05-15T20:34:49.000Z | defmodule RenaissanceWeb.ErrorViewTest do
use RenaissanceWeb.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(RenaissanceWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.htm... | 28.866667 | 96 | 0.743649 |
974cecff72dada7062d4390c808e722a5989a02a | 2,034 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.377358 | 162 | 0.735497 |
974cf439a214571103858b8152ac7f77b31eee38 | 914 | ex | Elixir | lib/swiss/ecto.ex | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 2 | 2020-11-06T21:02:47.000Z | 2020-11-06T23:27:35.000Z | lib/swiss/ecto.ex | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 4 | 2020-03-05T17:37:46.000Z | 2021-10-06T10:13:51.000Z | lib/swiss/ecto.ex | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 1 | 2021-09-22T13:43:58.000Z | 2021-09-22T13:43:58.000Z | defmodule Swiss.Ecto do
@moduledoc """
Generic helper functions related with Ecto.
"""
@doc """
Given an association field, returns whether it's preloaded.
### Examples
iex> Swiss.Ecto.assoc_present?(nil)
false
iex> Swiss.Ecto.assoc_present?(nil, true)
true
iex> Swiss.Ecto... | 26.882353 | 85 | 0.661926 |
974cfa628ee0b7fb55ef57447988bb2fae2b6b93 | 93 | exs | Elixir | test/bitpay_cli/cli_test.exs | bitpay/bitpay-test-helper | 53ddfac351bdc31dfd4689b38b02222111d423c1 | [
"MIT"
] | 4 | 2019-06-17T20:14:51.000Z | 2021-11-03T16:36:55.000Z | test/bitpay_cli/cli_test.exs | bitpay/bitpay-test-helper | 53ddfac351bdc31dfd4689b38b02222111d423c1 | [
"MIT"
] | null | null | null | test/bitpay_cli/cli_test.exs | bitpay/bitpay-test-helper | 53ddfac351bdc31dfd4689b38b02222111d423c1 | [
"MIT"
] | 5 | 2017-07-16T04:53:42.000Z | 2021-10-29T23:23:44.000Z | defmodule BitPayTestHelper.CLI.Test do
use ExUnit.Case
doctest BitPayTestHelper.CLI
end
| 15.5 | 38 | 0.817204 |
974d054b060880c87d75dad185d3fda7ee377982 | 892 | ex | Elixir | clients/manufacturers/lib/google_api/manufacturers/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/manufacturers/lib/google_api/manufacturers/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/manufacturers/lib/google_api/manufacturers/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.037037 | 74 | 0.761211 |
974d26bf9378a2569c29a28aa0df37744fe2e429 | 115 | ex | Elixir | test/support/router.ex | ACBullen/master_proxy | 5893a425b0ed8d963a02e68b5052d61cebfabf70 | [
"MIT"
] | 98 | 2018-12-12T04:33:54.000Z | 2022-03-23T07:41:45.000Z | test/support/router.ex | ACBullen/master_proxy | 5893a425b0ed8d963a02e68b5052d61cebfabf70 | [
"MIT"
] | 14 | 2018-12-19T08:00:04.000Z | 2022-02-01T08:38:46.000Z | test/support/router.ex | ACBullen/master_proxy | 5893a425b0ed8d963a02e68b5052d61cebfabf70 | [
"MIT"
] | 21 | 2018-12-12T14:31:32.000Z | 2022-03-09T17:19:40.000Z | defmodule MasterProxy.Test.Router do
use Phoenix.Router
get("/", MasterProxy.Test.PageController, :index)
end
| 19.166667 | 51 | 0.765217 |
974d2fd381f7af6b3b0ccfbbd243f1675cad2d74 | 279 | ex | Elixir | spec/fixtures/sample.ex | robmckinnon/atom-elixir | 50be0fa165ff9a07caf30ecf9dfe96322d6a0f95 | [
"MIT"
] | 477 | 2016-02-12T15:49:05.000Z | 2021-01-13T22:28:46.000Z | spec/fixtures/sample.ex | robmckinnon/atom-elixir | 50be0fa165ff9a07caf30ecf9dfe96322d6a0f95 | [
"MIT"
] | 84 | 2016-02-15T11:00:29.000Z | 2020-08-20T01:18:08.000Z | spec/fixtures/sample.ex | robmckinnon/atom-elixir | 50be0fa165ff9a07caf30ecf9dfe96322d6a0f95 | [
"MIT"
] | 49 | 2016-02-13T01:49:17.000Z | 2021-02-12T05:03:42.000Z | top_level_var = "top_level_var"
defmodule Sample do
import List
alias Enum, as: MyEnum
@module_attr false
def test do
module_var = [1,2,[3]]
my_inspect(module_var |> flatten |> MyEnum.count)
end
def my_inspect(param1) do
IO.inspect(param1)
end
end
| 14.684211 | 53 | 0.684588 |
974d9416e8300aee5d135b8d5039e7e215e426d0 | 473 | exs | Elixir | bench/topsort.exs | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | 366 | 2017-06-03T23:10:04.000Z | 2022-03-22T12:26:38.000Z | bench/topsort.exs | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | 50 | 2017-07-14T17:55:53.000Z | 2022-03-11T07:40:31.000Z | bench/topsort.exs | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | 64 | 2017-07-29T07:01:42.000Z | 2022-03-20T12:07:55.000Z | Code.require_file(Path.join([__DIR__, "..", "test", "support", "generators.ex"]))
alias Graph.Test.Generators
g = Generators.dag(10_000)
dg = Generators.libgraph_to_digraph(g)
opts = %{
time: 10,
inputs: %{
"10k vertices, #{map_size(g.out_edges)} edges" => {g, dg}
}
}
Benchee.run(opts, %{
"digraph (... | 20.565217 | 81 | 0.58351 |
974d9b653152b75d7a7926a5d49b8996a0249ce7 | 948 | ex | Elixir | web/views/photo_view.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/views/photo_view.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/views/photo_view.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | defmodule EmotionsWheelBackend.PhotoView do
use EmotionsWheelBackend.Web, :view
alias EmotionsWheelBackend.{PhotoFileDefinition}
@attributes ~W(id name thumb original author_type author_id)a
def render("index.json", %{photos: photos}) do
%{photos: photos |> render_many}
end
def render("show.json", %... | 21.545455 | 63 | 0.659283 |
974db6a0c6651a9d22a1b4e6349b011092e7c839 | 438 | ex | Elixir | web/views/error_view.ex | victorspringer/recommendationsEx | f9facf8672d91df1037ccb065609a2a756d7fcc3 | [
"MIT"
] | 3 | 2017-06-20T07:47:32.000Z | 2020-10-27T15:25:10.000Z | web/views/error_view.ex | victorspringer/zionRecs | f9facf8672d91df1037ccb065609a2a756d7fcc3 | [
"MIT"
] | null | null | null | web/views/error_view.ex | victorspringer/zionRecs | f9facf8672d91df1037ccb065609a2a756d7fcc3 | [
"MIT"
] | 1 | 2019-08-22T03:38:19.000Z | 2019-08-22T03:38:19.000Z | defmodule RecommendationsEx.ErrorView do
use RecommendationsEx.Web, :view
def render("404.json", _assigns) do
%{errors: %{detail: "Page not found"}}
end
def render("500.json", _assigns) do
%{errors: %{detail: "Internal server error"}}
end
# In case no render clause matches or no
# template is f... | 24.333333 | 49 | 0.696347 |
974dbe7cc8c466406e24b8957db1bbc0deaad44e | 39,832 | ex | Elixir | lib/elixir/lib/gen_server.ex | tsutsu/elixir | f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_server.ex | tsutsu/elixir | f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_server.ex | tsutsu/elixir | f51865bd148d6d5f4fc02cfe441b2c1802dcc9ca | [
"Apache-2.0"
] | null | null | null | defmodule GenServer do
@moduledoc """
A behaviour module for implementing the server of a client-server relation.
A GenServer is a process like any other Elixir process and it can be used
to keep state, execute code asynchronously and so on. The advantage of using
a generic server process (GenServer) impleme... | 37.018587 | 129 | 0.667729 |
974dc2958380ef1b811d769a6c2b27bd97027b6f | 387 | ex | Elixir | lib/exscript/stdlib/string.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | 1 | 2017-12-15T23:55:05.000Z | 2017-12-15T23:55:05.000Z | lib/exscript/stdlib/string.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | null | null | null | lib/exscript/stdlib/string.ex | craigspaeth/exscript | c3a24790dff0eac592060ba3ae349be7c567e0a7 | [
"MIT"
] | null | null | null | defmodule ExScript.Stdlib.String do
def split(_string, _pattern) do
JS.embed("_string.split(_pattern)")
end
def to_atom(_str) do
JS.embed("Symbol(_str)")
end
def replace(_subject, _pattern, _replacement) do
JS.embed("_subject.replace(_pattern, _replacement)")
end
def capitalize(_str) do
... | 21.5 | 59 | 0.700258 |
974e02f27b163c0b1e8278c1ea2b0ee17b1f7567 | 67 | ex | Elixir | lib/epicenter_web/views/import_view.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | lib/epicenter_web/views/import_view.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | lib/epicenter_web/views/import_view.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.ImportView do
use EpicenterWeb, :view
end
| 16.75 | 36 | 0.820896 |
974e0b946f11dc3e6cf55d37dfa30b250faa5aeb | 31,181 | exs | Elixir | test/ex_force_test.exs | MrDoops/ex_force | bae3c802b2974b94ffe194dbeee98be92f5e1cf9 | [
"MIT"
] | null | null | null | test/ex_force_test.exs | MrDoops/ex_force | bae3c802b2974b94ffe194dbeee98be92f5e1cf9 | [
"MIT"
] | null | null | null | test/ex_force_test.exs | MrDoops/ex_force | bae3c802b2974b94ffe194dbeee98be92f5e1cf9 | [
"MIT"
] | 2 | 2020-10-15T23:11:22.000Z | 2020-10-16T14:33:26.000Z | defmodule ExForceTest do
use ExUnit.Case, async: true
doctest(ExForce)
alias ExForce.{Client, QueryResult, SObject}
alias Plug.Conn
@unreachable_url "http://257.0.0.0:0"
setup do
with bypass <- Bypass.open(),
client <-
ExForce.build_client(
%{instance_url: bypass_url(... | 30.569608 | 99 | 0.507007 |
974e1cb616bb97cd9ee53a7b2a791b151dbff6fe | 128 | exs | Elixir | priv/repo/migrations/20201126042814_add_missing_privilege_rulesets.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | priv/repo/migrations/20201126042814_add_missing_privilege_rulesets.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | priv/repo/migrations/20201126042814_add_missing_privilege_rulesets.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule Uro.Repo.Migrations.AddMissingPrivilegeRulesets do
use Ecto.Migration
def up do
end
def down do
end
end
| 10.666667 | 60 | 0.75 |
974e3be041ccffbcad1f5b3073d4bcd3ea927f66 | 1,772 | ex | Elixir | test/support/user_retro_case.ex | notactuallypagemcconnell/remote_retro | 972e24ee3d7132a1646473ebb3b6b2fda4d6bf2e | [
"MIT"
] | null | null | null | test/support/user_retro_case.ex | notactuallypagemcconnell/remote_retro | 972e24ee3d7132a1646473ebb3b6b2fda4d6bf2e | [
"MIT"
] | null | null | null | test/support/user_retro_case.ex | notactuallypagemcconnell/remote_retro | 972e24ee3d7132a1646473ebb3b6b2fda4d6bf2e | [
"MIT"
] | null | null | null | defmodule RemoteRetro.UserRetroCase do
use ExUnit.CaseTemplate
alias RemoteRetro.{Repo, User, Retro, Participation}
import Ecto.Query, only: [from: 2]
@test_user_one Application.get_env(:remote_retro, :test_user_one)
@test_user_two Application.get_env(:remote_retro, :test_user_two)
setup_all _tags do
... | 41.209302 | 101 | 0.725734 |
974e73c722945df7511c5bc65f72b9964feaaf2f | 61 | ex | Elixir | lib/pumpkin_web/views/page_view.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | lib/pumpkin_web/views/page_view.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | lib/pumpkin_web/views/page_view.ex | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | defmodule PumpkinWeb.PageView do
use PumpkinWeb, :view
end
| 15.25 | 32 | 0.803279 |
974e8b311f413106331a1af6d3a92e58e40da95a | 1,980 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creatives_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creatives_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/creatives_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.358491 | 188 | 0.733333 |
974e8eb0ea7ef15889d62076d88fc1ce868950d2 | 1,630 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volume_volume_info_industry_identifiers.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/volume_volume_info_industry_identifiers.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_volume_info_industry_identifiers.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 ... | 32.6 | 124 | 0.733742 |
974e92c45bd5db8263e63370e4d411498cca6f7e | 203 | ex | Elixir | test/unit/fixtures/compiler/transformers/module_definition_transformer/module_5.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/fixtures/compiler/transformers/module_definition_transformer/module_5.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/fixtures/compiler/transformers/module_definition_transformer/module_5.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Test.Fixtures.Compiler.ModuleDefinitionTransformer.Module5 do
defmacro test_macro(a) do
quote do
def test_function(b) do
unquote(a) + b
end
end
end
end
| 20.3 | 80 | 0.694581 |
974e95b85e7c311aafc258f4bbe468b57b99a0f3 | 1,300 | ex | Elixir | lib/model/gallery_album.ex | winsalva/imgur-elixir | ecbf4ef6e3cf375e19f1d0072c558447fbf99095 | [
"MIT"
] | 3 | 2017-04-13T05:37:09.000Z | 2022-03-14T17:12:11.000Z | lib/model/gallery_album.ex | winsalva/imgur-elixir | ecbf4ef6e3cf375e19f1d0072c558447fbf99095 | [
"MIT"
] | null | null | null | lib/model/gallery_album.ex | winsalva/imgur-elixir | ecbf4ef6e3cf375e19f1d0072c558447fbf99095 | [
"MIT"
] | 2 | 2017-09-02T10:01:58.000Z | 2021-06-19T12:47:15.000Z | defmodule Imgur.Model.GalleryAlbum do
defstruct [
:id,
:title,
:description,
:datetime,
:cover,
:cover_width,
:cover_height,
:account_url,
:account_id,
:privacy,
:layout,
:views,
:link,
:ups,
:downs,
:points,
:score,
:is_album,
:vote,
:fa... | 18.84058 | 84 | 0.6 |
974eaa8e1e315f3e49136a38dcbfe7e1f487186a | 5,022 | ex | Elixir | lib/eth/transaction_queries.ex | jchayan/eth | 42a3bb8026522d5bf02d44ddabf4dff177ef28a4 | [
"MIT"
] | null | null | null | lib/eth/transaction_queries.ex | jchayan/eth | 42a3bb8026522d5bf02d44ddabf4dff177ef28a4 | [
"MIT"
] | null | null | null | lib/eth/transaction_queries.ex | jchayan/eth | 42a3bb8026522d5bf02d44ddabf4dff177ef28a4 | [
"MIT"
] | null | null | null | defmodule ETH.TransactionQueries do
import ETH.Query
alias Ethereumex.HttpClient
def get_block_transactions(identifier) do
case get_block(identifier) do
{:ok, block} ->
{:ok,
(block.transactions || [])
|> Enum.map(fn transaction ->
convert_transaction_details(trans... | 29.028902 | 98 | 0.710673 |
974eb1bdaed8b5ecb125294af695fa05ebc07798 | 165 | ex | Elixir | lib/eetoul/commands/make.ex | ramonsnir/eetoul-dup | b1faf7ca14867332f48eb144a89c97140deeb4e9 | [
"MIT"
] | null | null | null | lib/eetoul/commands/make.ex | ramonsnir/eetoul-dup | b1faf7ca14867332f48eb144a89c97140deeb4e9 | [
"MIT"
] | null | null | null | lib/eetoul/commands/make.ex | ramonsnir/eetoul-dup | b1faf7ca14867332f48eb144a89c97140deeb4e9 | [
"MIT"
] | null | null | null | defmodule Eetoul.Commands.Make do
use Eetoul.CommandDSL
def description, do: "makes the Eetoul integration branch"
command do
release :release
end
end
| 16.5 | 60 | 0.751515 |
974eebab910218376a8d4ef028a3e0c566381204 | 2,183 | ex | Elixir | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_subscription_upgrade_downgrade_details.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_subscription_upgrade_downgrade_details.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_subscription_upgrade_downgrade_details.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... | 38.298246 | 200 | 0.771415 |
974f0f4eb9864a190b6c088245e255c782e6641b | 1,978 | exs | Elixir | test/cizen/saga_starter_test.exs | ryo33/cizen | e1d3e232e4d3e72dfc7ef122d936ae26fa60c084 | [
"MIT"
] | 1 | 2019-04-08T08:00:06.000Z | 2019-04-08T08:00:06.000Z | test/cizen/saga_starter_test.exs | ryo33/cizen | e1d3e232e4d3e72dfc7ef122d936ae26fa60c084 | [
"MIT"
] | null | null | null | test/cizen/saga_starter_test.exs | ryo33/cizen | e1d3e232e4d3e72dfc7ef122d936ae26fa60c084 | [
"MIT"
] | null | null | null | defmodule Cizen.SagaStarterTest do
use Cizen.SagaCase
alias Cizen.Test
alias Cizen.TestHelper
alias Cizen.TestSaga
alias Cizen.Dispatcher
alias Cizen.Event
alias Cizen.Saga
alias Cizen.SagaID
alias Cizen.SagaLauncher.LaunchSaga
alias Cizen.StartSaga
describe "SagaStarter" do
test "dispatch... | 21.977778 | 74 | 0.59909 |
974f2448c4defbd4cf63ade966f451a86e702866 | 530 | ex | Elixir | examples/ex2/consumer.ex | Fire-Dragon-DoL/esp_ex | 0cd95de570ed7963744b298ad403fe4e1947dd2b | [
"MIT"
] | null | null | null | examples/ex2/consumer.ex | Fire-Dragon-DoL/esp_ex | 0cd95de570ed7963744b298ad403fe4e1947dd2b | [
"MIT"
] | null | null | null | examples/ex2/consumer.ex | Fire-Dragon-DoL/esp_ex | 0cd95de570ed7963744b298ad403fe4e1947dd2b | [
"MIT"
] | null | null | null | defmodule Ex2.Consumer do
use GenServer
def start_link(_) do
Delugex.Consumer.start_link(__MODULE__, identifier: __MODULE__)
Delugex.Consumer.listen(__MODULE__)
end
def handle_cast(:event_received, raw) do
event = Ex2.Task.Events.transform(raw.type, raw)
handle(event)
end
def handle(%Ex2.... | 22.083333 | 67 | 0.707547 |
974f2ec4227fa026eae7c40bcf3d7c21ead018ba | 1,119 | exs | Elixir | config/config.exs | jeremy-miller/exercism-elixir | c9bb3b086c7a2fc62e7e19c803de3827893be946 | [
"MIT"
] | null | null | null | config/config.exs | jeremy-miller/exercism-elixir | c9bb3b086c7a2fc62e7e19c803de3827893be946 | [
"MIT"
] | null | null | null | config/config.exs | jeremy-miller/exercism-elixir | c9bb3b086c7a2fc62e7e19c803de3827893be946 | [
"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.096774 | 73 | 0.751564 |
974f62d0a7cf874fb1ae5cdcfaf15e980177d9c8 | 15,197 | ex | Elixir | lib/oli/accounts.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli/accounts.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli/accounts.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule Oli.Accounts do
import Ecto.Query, warn: false
import Oli.Utils, only: [value_or: 2]
alias Oli.Repo
alias Oli.Repo.{Paging, Sorting}
alias Oli.Accounts.{
User,
Author,
SystemRole,
UserBrowseOptions,
AuthorBrowseOptions,
AuthorPreferences
}
alias Oli.Groups.CommunityAcc... | 25.28619 | 98 | 0.610581 |
974f7c09e4b5dfd626bd0520bd26906a939f69d9 | 1,344 | exs | Elixir | config/config.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | null | null | null | config/config.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 4 | 2019-07-16T06:24:42.000Z | 2021-05-07T22:26:14.000Z | config/config.exs | macypa/storeHall | 9fe810f763527cc87fa165138bdfb3cda92fa553 | [
"MIT"
] | 1 | 2018-11-23T21:13:31.000Z | 2018-11-23T21:13:31.000Z | # 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.
# General application configuration
use Mix.Config
config :gettext, :default_locale, "bg"
config :... | 31.255814 | 94 | 0.758929 |
974fba9af5b6ad708cd26bec2a1b254e354bf3de | 5,068 | ex | Elixir | lib/membrane_ffmpeg_swresample_plugin/converter.ex | membraneframework/membrane_ffmpeg_swresample_plugin | 920ee3e41a79f66a997c049f2e50583d872a3aac | [
"Apache-2.0"
] | null | null | null | lib/membrane_ffmpeg_swresample_plugin/converter.ex | membraneframework/membrane_ffmpeg_swresample_plugin | 920ee3e41a79f66a997c049f2e50583d872a3aac | [
"Apache-2.0"
] | 4 | 2021-06-25T05:54:23.000Z | 2021-11-03T11:26:01.000Z | lib/membrane_ffmpeg_swresample_plugin/converter.ex | membraneframework/membrane_ffmpeg_swresample_plugin | 920ee3e41a79f66a997c049f2e50583d872a3aac | [
"Apache-2.0"
] | 1 | 2020-11-14T15:36:01.000Z | 2020-11-14T15:36:01.000Z | defmodule Membrane.FFmpeg.SWResample.Converter do
@moduledoc """
This element performs audio conversion/resampling/channel mixing, using SWResample
module of FFmpeg library.
"""
use Membrane.Filter
alias Membrane.Caps.Audio.Raw, as: Caps
alias Membrane.Buffer
alias Membrane.Caps.Matcher
alias __MODULE... | 32.075949 | 103 | 0.602802 |
974fbe704c1e8efa3cf3d94b596222e51d642315 | 1,982 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/user_token.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/user_token.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/user_token.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... | 37.396226 | 253 | 0.720484 |
974fd64e00740df502b9ad2443dde8fa0ea14790 | 211 | ex | Elixir | lib/paxos/application.ex | timgestson/expaxos | e0376ca86734aa3d2de3377b364e7ace31819e0f | [
"Apache-2.0"
] | 8 | 2015-08-10T16:06:40.000Z | 2020-10-28T19:34:54.000Z | lib/paxos/application.ex | timgestson/expaxos | e0376ca86734aa3d2de3377b364e7ace31819e0f | [
"Apache-2.0"
] | null | null | null | lib/paxos/application.ex | timgestson/expaxos | e0376ca86734aa3d2de3377b364e7ace31819e0f | [
"Apache-2.0"
] | null | null | null | defmodule Paxos.Application do
use Application.Behaviour
def start([nodes, file], _) do
Paxos.Event_sup.start_link(file)
Paxos.Node_sup.start_link(nodes)
:ok
end
def stop do
end
end
| 15.071429 | 36 | 0.691943 |
974fe6f1d1b77721e7265c598bbb939ae49e3bec | 178 | ex | Elixir | apps/reaper/lib/reaper/collections/file_ingestions.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/reaper/lib/reaper/collections/file_ingestions.ex | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/reaper/lib/reaper/collections/file_ingestions.ex | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.Collections.FileIngestions do
@moduledoc false
use Reaper.Collections.BaseDataset, instance: Reaper.Application.instance(), collection: :file_ingestions
end
| 35.6 | 107 | 0.831461 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.