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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a093daa03a0677689415cd2c20af45546e22dd4 | 2,525 | exs | Elixir | mix.exs | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 1 | 2021-12-28T20:57:32.000Z | 2021-12-28T20:57:32.000Z | mix.exs | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | null | null | null | mix.exs | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | null | null | null | defmodule ExVenture.MixProject do
use Mix.Project
def project do
[
app: :ex_venture,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases()... | 29.022989 | 95 | 0.552475 |
4a095e2db1aca6225846392d2df8359fc61993b9 | 1,024 | exs | Elixir | installer/templates/phx_umbrella/config/config.exs | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 2,849 | 2016-07-22T15:48:08.000Z | 2022-03-30T12:01:22.000Z | installer/templates/phx_umbrella/config/config.exs | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 119 | 2016-08-06T06:55:12.000Z | 2020-08-24T23:31:35.000Z | installer/templates/phx_umbrella/config/config.exs | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 234 | 2016-07-27T11:03:56.000Z | 2022-03-14T11:32:36.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# By default, the umbrella project as well as each child
# application will require this configuration file, as
# configuration and dependencies are shared in an umbrella
# project. ... | 39.384615 | 68 | 0.776367 |
4a0966dbc24ccbfa07cfc079c584e34bb4f7ad36 | 88 | exs | Elixir | apps/evm/test/evm/log_entry_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/evm/test/evm/log_entry_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/evm/test/evm/log_entry_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule EVM.LogEntryTest do
use ExUnit.Case, async: true
doctest EVM.LogEntry
end
| 17.6 | 30 | 0.784091 |
4a098728b77780902f0b0559b240a90c879445f6 | 579 | exs | Elixir | exercises/change/change.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/change/change.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/change/change.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | defmodule Change do
@doc """
Determine the least number of coins to be given to the user such
that the sum of the coins' value would equal the correct amount of change.
It returns :error if it is not possible to compute the right amount of coins.
Otherwise returns the tuple {:ok, map_of_coins}
##... | 25.173913 | 81 | 0.625216 |
4a09938aa9911a0dc9fc170bbb92e061e3db1c8f | 3,403 | ex | Elixir | lib/elixir/lib/behaviour.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/elixir/lib/behaviour.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/elixir/lib/behaviour.ex | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | defmodule Behaviour do
@moduledoc """
Mechanism for handling behaviours.
This module is deprecated. Instead of `defcallback/1` and
`defmacrocallback/1`, the `@callback` and `@macrocallback`
module attributes can be used (respectively). See the
documentation for `Module` for more information on these
attr... | 27.893443 | 98 | 0.64355 |
4a099a66150bedd6bafcf1ba669969e1d8186ad7 | 2,054 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/compliance_occurrence.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/compliance_occurrence.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/compliance_occurrence.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... | 37.345455 | 180 | 0.753165 |
4a09a7f38be2f71d24dfa7504b084e974f9d3498 | 1,092 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/connection.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/connection.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/connection.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Connection do
@moduledoc """
Handle Tesla connections for SwaggyJenkins.
"""
use Tesla
# Add any middleware here (authentica... | 23.234043 | 91 | 0.704212 |
4a09bbbb655f3a66890ecc7393549d9f37eeb86a | 2,817 | ex | Elixir | apps/discovery_api/lib/discovery_api/event_handler.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/discovery_api/lib/discovery_api/event_handler.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/discovery_api/lib/discovery_api/event_handler.ex | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.EventHandler do
@moduledoc "Event Handler for event stream"
use Brook.Event.Handler
import SmartCity.Event, only: [organization_update: 0, user_organization_associate: 0, dataset_update: 0, data_write_complete: 0]
require Logger
alias SmartCity.{Organization, UserOrganizationAssociate,... | 41.426471 | 137 | 0.71246 |
4a09e1754672fd54aee03828be9503b1868529f4 | 265 | ex | Elixir | web/plugs/load_user.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | 5 | 2016-07-05T20:31:46.000Z | 2021-03-20T20:11:48.000Z | web/plugs/load_user.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | null | null | null | web/plugs/load_user.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | 1 | 2016-07-18T23:00:46.000Z | 2016-07-18T23:00:46.000Z | defmodule Webmonitor.LoadUser do
use Webmonitor.Web, :plug
def call(conn, _opts) do
user = case get_session(conn, :user_id) do
nil -> :nothing
user_id -> {:just, Repo.get(User, user_id)}
end
assign(conn, :current_user, user)
end
end
| 20.384615 | 49 | 0.65283 |
4a0a1156b37a96912e73900192e40ced17651138 | 317 | ex | Elixir | test/support/command_case.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/support/command_case.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/support/command_case.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule ExVenture.CommandCase do
use ExUnit.CaseTemplate
using do
quote do
use Data.ModelCase
import Test.Networking.Socket.Helpers
import Test.Game.NPC.Helpers
import Test.Game.Room.Helpers
import Test.Game.Shop.Helpers
import Test.Game.Zone.Helpers
end
end
end
| 19.8125 | 43 | 0.70347 |
4a0a5157894bb90ec7f82e5a1ca43d16d48c1fe7 | 65 | ex | Elixir | lib/nuzzelish_web/views/page_view.ex | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | 2 | 2020-09-07T03:42:36.000Z | 2021-05-04T23:58:43.000Z | lib/nuzzelish_web/views/page_view.ex | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | 20 | 2020-01-15T03:26:48.000Z | 2020-02-02T20:53:39.000Z | lib/nuzzelish_web/views/page_view.ex | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | null | null | null | defmodule NuzzelishWeb.PageView do
use NuzzelishWeb, :view
end
| 16.25 | 34 | 0.815385 |
4a0a683139826950c9ee3692da61e8ca10ef55a0 | 483 | ex | Elixir | elixir/lib/homework/companies/company.ex | sirryanscott/web-homework | f705ea05a76f68b759a486595351313289ac6e85 | [
"MIT"
] | null | null | null | elixir/lib/homework/companies/company.ex | sirryanscott/web-homework | f705ea05a76f68b759a486595351313289ac6e85 | [
"MIT"
] | null | null | null | elixir/lib/homework/companies/company.ex | sirryanscott/web-homework | f705ea05a76f68b759a486595351313289ac6e85 | [
"MIT"
] | null | null | null | defmodule Homework.Companies.Company do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
schema "companies" do
field(:name, :string)
field(:credit_line, :integer)
field(:available_credit, :integer)
timestamps()
end
@doc false
def changeset(company... | 23 | 66 | 0.695652 |
4a0a718d7d13c3fff49ebb170404bea2fe924a89 | 1,343 | ex | Elixir | lib/chat_db/ecto/boolean_int.ex | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | lib/chat_db/ecto/boolean_int.ex | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | lib/chat_db/ecto/boolean_int.ex | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | defmodule ChatDb.Ecto.BooleanInt do
@moduledoc """
Representation for a boolean stored as an integer.
"""
@behaviour Ecto.Type
@type t() :: 0 | 1 | nil
@falsey [0, "0", false, "false"]
@truthy [1, "1", true, "true"]
@doc """
Ecto storage type
"""
@spec type() :: :integer
def type, do: :integ... | 22.383333 | 57 | 0.571109 |
4a0a7c34b12fc824fc937dcefe4a620c26e59252 | 2,766 | exs | Elixir | test/contai/calculus_test.exs | AkioCode/calculatorAPI_ex | e4fc9e8d4df69f8a50c021b6fb7cd55dfb9436e2 | [
"MIT"
] | null | null | null | test/contai/calculus_test.exs | AkioCode/calculatorAPI_ex | e4fc9e8d4df69f8a50c021b6fb7cd55dfb9436e2 | [
"MIT"
] | null | null | null | test/contai/calculus_test.exs | AkioCode/calculatorAPI_ex | e4fc9e8d4df69f8a50c021b6fb7cd55dfb9436e2 | [
"MIT"
] | null | null | null | defmodule Contai.CalculusTest do
use Contai.DataCase
alias Contai.Calculus
describe "operations" do
alias Contai.Calculus.Operation
@valid_attrs %{fst_number: 120.5, result: 120.5, scd_number: 120.5, timestamps: "some timestamps", type: "some type"}
@update_attrs %{fst_number: 456.7, result: 456.7,... | 37.890411 | 138 | 0.699566 |
4a0aa3607ae52630662adf268c27e84929d67abb | 1,468 | ex | Elixir | clients/runtime_config/lib/google_api/runtime_config/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/runtime_config/lib/google_api/runtime_config/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/runtime_config/lib/google_api/runtime_config/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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.952381 | 282 | 0.759537 |
4a0ad85f002a79f325c751aba3caf09363518416 | 147 | exs | Elixir | test/demo_statix_test.exs | DianaOlympos/demo_statix_meetup | c7be43d081f845b442d61e22ac9e530a57d2e8d3 | [
"BSD-3-Clause"
] | null | null | null | test/demo_statix_test.exs | DianaOlympos/demo_statix_meetup | c7be43d081f845b442d61e22ac9e530a57d2e8d3 | [
"BSD-3-Clause"
] | null | null | null | test/demo_statix_test.exs | DianaOlympos/demo_statix_meetup | c7be43d081f845b442d61e22ac9e530a57d2e8d3 | [
"BSD-3-Clause"
] | null | null | null | defmodule DemoStatixTest do
use ExUnit.Case
doctest DemoStatix
test "greets the world" do
assert DemoStatix.hello() == :world
end
end
| 16.333333 | 39 | 0.727891 |
4a0ae799bf1396ba55b9aa0a37da6f32378b813d | 609 | ex | Elixir | rclex_node/lib/rclex_node.ex | rclex/rcjp2021_demo | 3f8c980b1f50052ed953f02a886d7282c1de4ad4 | [
"Apache-2.0"
] | null | null | null | rclex_node/lib/rclex_node.ex | rclex/rcjp2021_demo | 3f8c980b1f50052ed953f02a886d7282c1de4ad4 | [
"Apache-2.0"
] | null | null | null | rclex_node/lib/rclex_node.ex | rclex/rcjp2021_demo | 3f8c980b1f50052ed953f02a886d7282c1de4ad4 | [
"Apache-2.0"
] | null | null | null | defmodule RclexNode do
def pub(num_node) do
Rclex.rclexinit()
|> Rclex.create_nodes('rclex_node', num_node)
|> Rclex.create_publishers('chatter', :single)
|> Rclex.Timer.timer_start(1000, &func/1)
end
def func(publisher_list) do
n = length(publisher_list)
msg_list = Rclex.initialize_msgs(... | 30.45 | 63 | 0.671593 |
4a0af08f6579a3b0917f162229dc7703286da140 | 2,213 | exs | Elixir | config/dev.exs | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | config/dev.exs | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | config/dev.exs | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :wishlist, Wishlist.Repo,
username: "postgres",
password: "postgres",
database: "wishlist_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reload... | 28.371795 | 68 | 0.693177 |
4a0b037177f75cd7029661efadf6bfd484342bfc | 1,125 | ex | Elixir | lib/sys_mon/client.ex | rosetta-home/cicada | a5ac51ecc202e1694dedc9875604fa3564ef4b3c | [
"Apache-2.0"
] | 7 | 2017-09-08T11:29:42.000Z | 2020-01-18T22:15:12.000Z | lib/sys_mon/client.ex | rosetta-home/cicada | a5ac51ecc202e1694dedc9875604fa3564ef4b3c | [
"Apache-2.0"
] | null | null | null | lib/sys_mon/client.ex | rosetta-home/cicada | a5ac51ecc202e1694dedc9875604fa3564ef4b3c | [
"Apache-2.0"
] | 2 | 2017-07-02T11:58:50.000Z | 2019-09-14T03:16:12.000Z | defmodule Cicada.SysMon.Client do
use GenServer
require Logger
alias Cicada.{EventManager, SysMon}
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def dispatch(event) do
EventManager.dispatch(SysMon, event)
end
def init(:ok) do
Process.send_after(self(), :get... | 29.605263 | 86 | 0.643556 |
4a0b09e7a2096b1b4b58089c52bac71a5c55e73e | 453 | exs | Elixir | test/changelog_web/views/post_view_test.exs | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | test/changelog_web/views/post_view_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | test/changelog_web/views/post_view_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.PostViewTest do
use ChangelogWeb.ConnCase, async: true
import ChangelogWeb.PostView
describe "paragraph_count/1" do
test "it works with markdown" do
post = build(:post, body: "ohai\n\nthere\n\nwhat do you think")
assert paragraph_count(post) == 3
end
test "it work... | 25.166667 | 69 | 0.668874 |
4a0b1592334009f5c10a64d7a6ccbfe7c4631403 | 1,637 | ex | Elixir | lib/apothecary_web.ex | mbgardner/apothecary | e3392732c1ff7645c36b6aa3b53a012b6d352e14 | [
"MIT"
] | null | null | null | lib/apothecary_web.ex | mbgardner/apothecary | e3392732c1ff7645c36b6aa3b53a012b6d352e14 | [
"MIT"
] | null | null | null | lib/apothecary_web.ex | mbgardner/apothecary | e3392732c1ff7645c36b6aa3b53a012b6d352e14 | [
"MIT"
] | null | null | null | defmodule ApothecaryWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use ApothecaryWeb, :controller
use ApothecaryWeb, :view
The definitions below will be executed for every view,
con... | 24.073529 | 69 | 0.693341 |
4a0b47644465aa2e0bd6446c08c7365f074b6edd | 6,158 | exs | Elixir | mix.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | mix.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | mix.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | defmodule Scenic.Mixfile do
use Mix.Project
@app_name :scenic
@version "0.9.0"
@elixir_version "~> 1.6"
@github "https://github.com/boydm/scenic"
def project do
[
app: @app_name,
version: @version,
elixir: @elixir_version,
deps: deps(),
build_embedded: Mix.env() == :pro... | 26.09322 | 90 | 0.58493 |
4a0b85a8caa897448e22b69a371448f2ea91a210 | 2,659 | exs | Elixir | test/ueberauth/strategy/vk_test.exs | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | null | null | null | test/ueberauth/strategy/vk_test.exs | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | null | null | null | test/ueberauth/strategy/vk_test.exs | asiniy/ueberauth_vk | 1dab73536e333f62bf7c72a5817b332a35c0d247 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.VKTest do
# Test resources:
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
use Plug.Test
# Custom data:
import Ueberauth.Strategy.VK, only: [info: 1]
alias Ueberauth.Auth.Info
# Initializing utils:
doctest Ueberauth.Strategy.VK
@router Sp... | 21.795082 | 65 | 0.606243 |
4a0ba0b135203b59afa4df996140d871b4c20e69 | 343 | ex | Elixir | lib/alcsmg/queue/supervisor.ex | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | lib/alcsmg/queue/supervisor.ex | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | lib/alcsmg/queue/supervisor.ex | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | defmodule Alcsmg.Queue.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init(_args) do
children = [
worker(Alcsmg.Queue.Publisher, []),
supervisor(Alcsmg.Queue.Worker.RootSupervisor, [])
]
supervise(children, strategy: :... | 20.176471 | 59 | 0.693878 |
4a0bfef0ffdba1434619aeb47a654507756cf180 | 76 | ex | Elixir | lib/elixir/test/elixir/fixtures/warnings_sample.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/test/elixir/fixtures/warnings_sample.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/fixtures/warnings_sample.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule WarningsSample do
def hello(a), do: a
def hello(b), do: b
end
| 15.2 | 27 | 0.684211 |
4a0c2d507e9904c95424b13da8a26f0389e69e8a | 72 | ex | Elixir | lib/get_a_job_ex/repo.ex | smoynes/get_a_job_ex | 13b17562f48561803ee4635342c345d28cffe27d | [
"MIT"
] | 1 | 2020-06-10T11:19:17.000Z | 2020-06-10T11:19:17.000Z | lib/get_a_job_ex/repo.ex | smoynes/get_a_job_ex | 13b17562f48561803ee4635342c345d28cffe27d | [
"MIT"
] | null | null | null | lib/get_a_job_ex/repo.ex | smoynes/get_a_job_ex | 13b17562f48561803ee4635342c345d28cffe27d | [
"MIT"
] | null | null | null | defmodule GetAJobEx.Repo do
use Ecto.Repo, otp_app: :get_a_job_ex
end
| 18 | 39 | 0.791667 |
4a0c8769a5671327e9a146ddd8719b62a7316dc5 | 1,579 | exs | Elixir | config/config.exs | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | config/config.exs | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | config/config.exs | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"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.
# General application configuration
use Mix.Config
config :rockelivery,
ecto_repos: [Rockelivery.... | 34.326087 | 96 | 0.78974 |
4a0cf1c411a2ce7891f9c328896ff8fa41b58a04 | 210 | exs | Elixir | config/config.exs | Schultzer/cldr_languages | c5300b9b8f0997c0f6c14f45f95b19375065abe8 | [
"Apache-2.0"
] | null | null | null | config/config.exs | Schultzer/cldr_languages | c5300b9b8f0997c0f6c14f45f95b19375065abe8 | [
"Apache-2.0"
] | null | null | null | config/config.exs | Schultzer/cldr_languages | c5300b9b8f0997c0f6c14f45f95b19375065abe8 | [
"Apache-2.0"
] | 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
config :ex_cldr,
json_library: Poison
import_config "#{Mix.env}.exs"
| 23.333333 | 61 | 0.77619 |
4a0d0c958b9bb30ccc0e0fd54eddd3d23b9ab6c8 | 1,259 | ex | Elixir | lib/perseus/boxes/mdia.ex | abhijeetbhagat/perseus | 357a6d290ba078eff07d06ff9a5af0966932b84f | [
"MIT"
] | 4 | 2020-03-22T06:34:46.000Z | 2022-03-04T00:56:11.000Z | lib/perseus/boxes/mdia.ex | abhijeetbhagat/perseus | 357a6d290ba078eff07d06ff9a5af0966932b84f | [
"MIT"
] | null | null | null | lib/perseus/boxes/mdia.ex | abhijeetbhagat/perseus | 357a6d290ba078eff07d06ff9a5af0966932b84f | [
"MIT"
] | 1 | 2020-03-26T02:41:21.000Z | 2020-03-26T02:41:21.000Z | require Logger
defmodule Perseus.Boxes.Mdia do
defstruct(
name: :mdia,
mdhd: nil,
hdlr: nil,
minf: nil
)
end
alias Perseus.Boxes.Mdia
defimpl Perseus.Box, for: Mdia do
def loop(<<length::integer-32, atom_type::binary-4>>, file, cnt, size, mdia)
when cnt < size do
Logger.debug("cnt: #{... | 21.338983 | 87 | 0.585385 |
4a0d0f6e8720487cb697d20e48ed0cb6d332e83e | 2,906 | ex | Elixir | testData/org/elixir_lang/parser_definition/parenthetical_stab_parsing_test_case/PositionalsAndKeywordsInParenthesesWhenExpressionStab.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/parenthetical_stab_parsing_test_case/PositionalsAndKeywordsInParenthesesWhenExpressionStab.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/parenthetical_stab_parsing_test_case/PositionalsAndKeywordsInParenthesesWhenExpressionStab.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | ( (positional, key: value) when guard -> () )
( (positional, key: value) when guard -> function positional, key: value )
( (positional, key: value) when guard -> &one )
( (positional, key: value) when guard -> one \\ default )
( (positional, key: value) when guard -> one when key: value )
( (positional, key: value) whe... | 53.814815 | 85 | 0.605299 |
4a0d23e5d5dcf11b5ef7989aa8658a833d02b730 | 338 | exs | Elixir | test/support/repo/migrations/20191028033913_add_oban_jobs_table.exs | trax-retail/gen_queue_oban | abe6c8cc1a130723657b7cac933d0ee1556e7f7b | [
"MIT"
] | 2 | 2020-07-28T22:18:13.000Z | 2020-07-30T12:54:20.000Z | test/support/repo/migrations/20191028033913_add_oban_jobs_table.exs | Trax-retail/gen_queue_oban | abe6c8cc1a130723657b7cac933d0ee1556e7f7b | [
"MIT"
] | null | null | null | test/support/repo/migrations/20191028033913_add_oban_jobs_table.exs | Trax-retail/gen_queue_oban | abe6c8cc1a130723657b7cac933d0ee1556e7f7b | [
"MIT"
] | null | null | null | defmodule GenQueue.Repo.Migrations.AddObanJobsTable do
use Ecto.Migration
def up do
Oban.Migrations.up()
end
# We specify `version: 1` in `down`, ensuring that we'll roll all the way back down if
# necessary, regardless of which version we've migrated `up` to.
def down do
Oban.Migrations.down(vers... | 24.142857 | 88 | 0.718935 |
4a0d3054ff24a454d76df062fedc23adee75b927 | 1,085 | exs | Elixir | example/rel/config.exs | smartrent/nerves_hub | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | null | null | null | example/rel/config.exs | smartrent/nerves_hub | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | 4 | 2019-05-30T15:13:04.000Z | 2020-01-09T16:02:10.000Z | example/rel/config.exs | smartrent/nerves_hub_device | 07100a0715d3f08ecc6fffeba3a88bd098b13c90 | [
"Apache-2.0"
] | null | null | null | use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: :dev
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/co... | 31 | 81 | 0.75023 |
4a0d7863febb709f0f976fa34869af533e3fc19e | 5,823 | ex | Elixir | lib/fontais/funcio/funcio.ex | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | lib/fontais/funcio/funcio.ex | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | lib/fontais/funcio/funcio.ex | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | defmodule Plymio.Fontais.Funcio do
@moduledoc false
require Plymio.Fontais.Option.Macro, as: PFOM
# use Plymio.Fontais.Attribute
@type opts :: Plymio.Fontais.opts()
@type error :: Plymio.Fontais.error()
@type fun1_map :: Plymio.Fontais.fun1_map()
import Plymio.Fontais.Error,
only: [
new_error... | 25.539474 | 97 | 0.567577 |
4a0d7d2ed2d8a08a7cbc1f7b69a9e522dc24f87a | 8,408 | ex | Elixir | lib/messengers/http_messenger.ex | scripbox/txt_local_ex | e089673de40aaee74cc7396d03085a1534faac23 | [
"MIT"
] | 5 | 2017-12-18T06:55:09.000Z | 2022-03-23T05:37:40.000Z | lib/messengers/http_messenger.ex | scripbox/txt_local_ex | e089673de40aaee74cc7396d03085a1534faac23 | [
"MIT"
] | 1 | 2019-03-29T08:52:08.000Z | 2019-03-29T08:52:08.000Z | lib/messengers/http_messenger.ex | scripbox/txt_local_ex | e089673de40aaee74cc7396d03085a1534faac23 | [
"MIT"
] | 1 | 2019-12-21T00:26:57.000Z | 2019-12-21T00:26:57.000Z | defmodule TxtLocalEx.HttpMessenger do
@behaviour TxtLocalEx.Messenger
@ets_bucket_prefix "txt-local-rate-limited-api"
@dry_run_on "1"
# Define API endpoints
@send_sms_path "/send/?"
@bulk_send_path "/bulk_json/?"
@message_status_path "/status_message/?"
@batch_status_path "/status_batch/?"
@api_name... | 27.03537 | 97 | 0.596099 |
4a0d97f4f9991468aa8e2a0a812ffebb2d448b83 | 1,980 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_blobstore2_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_blobstore2_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/model/gdata_blobstore2_info.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... | 33.559322 | 87 | 0.69798 |
4a0da36bdccf0aeec77d4a86eebaa9881184ab1e | 135 | exs | Elixir | test/pkg_tar_test.exs | jnylen/pkg_tar | 4638312f7b0ebe4293ffbd6988d2bcc45cb0ba82 | [
"MIT"
] | null | null | null | test/pkg_tar_test.exs | jnylen/pkg_tar | 4638312f7b0ebe4293ffbd6988d2bcc45cb0ba82 | [
"MIT"
] | null | null | null | test/pkg_tar_test.exs | jnylen/pkg_tar | 4638312f7b0ebe4293ffbd6988d2bcc45cb0ba82 | [
"MIT"
] | null | null | null | defmodule PkgTarTest do
use ExUnit.Case
doctest PkgTar
test "greets the world" do
assert PkgTar.hello() == :world
end
end
| 15 | 35 | 0.703704 |
4a0dba461132b3799de1879c525024364b308780 | 8,702 | exs | Elixir | test/ex_doc/html_formatter/templates_test.exs | aforward-oss/ex_doc | ed9ad6db2945d758c9afb321376df27dd9aa6bd2 | [
"Apache-2.0"
] | null | null | null | test/ex_doc/html_formatter/templates_test.exs | aforward-oss/ex_doc | ed9ad6db2945d758c9afb321376df27dd9aa6bd2 | [
"Apache-2.0"
] | null | null | null | test/ex_doc/html_formatter/templates_test.exs | aforward-oss/ex_doc | ed9ad6db2945d758c9afb321376df27dd9aa6bd2 | [
"Apache-2.0"
] | null | null | null | defmodule ExDoc.HTMLFormatter.TemplatesTest do
use ExUnit.Case, async: true
alias ExDoc.HTMLFormatter.Templates
defp source_url do
"https://github.com/elixir-lang/elixir"
end
defp homepage_url do
"http://elixir-lang.org"
end
defp doc_config do
ExDoc.Config[project: "Elixir", version: "1.0.... | 38.166667 | 120 | 0.667548 |
4a0dce186bbf53df3df4867949cc0f63adb8d76b | 5,713 | ex | Elixir | lib/pinata.ex | m1ome/ex_pinata | b550000c772a30aa7bed870d4d0d724b7f05b9e5 | [
"MIT"
] | 1 | 2022-03-31T07:29:37.000Z | 2022-03-31T07:29:37.000Z | lib/pinata.ex | m1ome/ex_pinata | b550000c772a30aa7bed870d4d0d724b7f05b9e5 | [
"MIT"
] | null | null | null | lib/pinata.ex | m1ome/ex_pinata | b550000c772a30aa7bed870d4d0d724b7f05b9e5 | [
"MIT"
] | null | null | null | defmodule Pinata do
alias Tesla.Multipart
alias Pinata.{API, Helpers}
alias Pinata.Models.{
DataUsage,
Pin,
HashPin,
Jobs,
Key
}
#
# User
#
@spec generate_api_key(String.t(), map(), keyword()) :: {:ok, Key.t()} | {:error, any()}
def generate_api_key(key_name, permissions, opts \\... | 26.696262 | 90 | 0.549274 |
4a0de22de71c7617d96755187941f4f78484acfa | 882 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.666667 | 74 | 0.758503 |
4a0de89d85f64f08944f0b39cd4a225fc1cbbe00 | 712 | ex | Elixir | web/gettext.ex | rhnonose/elm_phoenix | 399a9887cab6a6d905768cd127a738848c65e699 | [
"MIT"
] | null | null | null | web/gettext.ex | rhnonose/elm_phoenix | 399a9887cab6a6d905768cd127a738848c65e699 | [
"MIT"
] | null | null | null | web/gettext.ex | rhnonose/elm_phoenix | 399a9887cab6a6d905768cd127a738848c65e699 | [
"MIT"
] | null | null | null | defmodule ElmPhoenix.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 ElmPhoenix.Gettext
# Simple translation
gettext "Here is t... | 28.48 | 72 | 0.682584 |
4a0e009cd9ca79ebea674f55627848fe4d4e295a | 12,876 | ex | Elixir | lib/janus/graph.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | lib/janus/graph.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | lib/janus/graph.ex | naramore/janus | 90f7324c5ed667b803472dc89ee8e84d82c1d6d2 | [
"MIT"
] | null | null | null | defmodule Janus.Graph do
@moduledoc """
Reverse, Preorder, Directed Graph Traversal from a given
starting point with an accumulating behaviour.
*Reverse* because this traverses in the opposite direction
the edges are pointing. *Preorder*, the depth-first tree
traversal strategy.
Primarily used in conjun... | 33.618799 | 95 | 0.591643 |
4a0e017b567b33aea620dcf35e6652ccf78b384f | 21,733 | exs | Elixir | test/auto_api/property_test.exs | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | test/auto_api/property_test.exs | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 5 | 2018-11-29T09:48:29.000Z | 2019-11-06T12:11:35.000Z | test/auto_api/property_test.exs | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# Copyright (C) 2018 High-Mobility GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is ... | 29.976552 | 100 | 0.507339 |
4a0e02335090a84ac71d4ed05c940453c9747628 | 1,088 | ex | Elixir | apps/rappel_web/lib/rappel_web/channels/user_socket.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | 2 | 2021-08-09T14:37:42.000Z | 2021-11-18T14:54:39.000Z | apps/rappel_web/lib/rappel_web/channels/user_socket.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | 4 | 2020-05-13T14:04:55.000Z | 2021-07-18T17:03:50.000Z | apps/rappel_web/lib/rappel_web/channels/user_socket.ex | gordonguthrie/rappel | bbdf8ca6c7ef272ad95708512af0975e18fa11a9 | [
"Apache-2.0"
] | null | null | null | defmodule RappelWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", RappelWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels... | 30.222222 | 83 | 0.693934 |
4a0e10e63f111756c7cb3bb4452404cf18426884 | 240 | ex | Elixir | test/unit/fixtures/compiler/pruner/module_45.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/fixtures/compiler/pruner/module_45.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/fixtures/compiler/pruner/module_45.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Test.Fixtures.Compiler.Pruner.Module45 do
use Hologram.Page
alias Hologram.Test.Fixtures.Compiler.Pruner.Module46, warn: false
route "/test-route-45"
def template do
~H"""
<Module46 />
"""
end
end
| 18.461538 | 68 | 0.7 |
4a0e325d0ea596c21d66f3c126d310287425aa2e | 2,143 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1_log_config_counter_options.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1_log_config_counter_options.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_iam_v1_log_config_counter_options.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... | 57.918919 | 1,040 | 0.753616 |
4a0e8ff6b7a9ec80113fb9e69435ee93679386a0 | 162 | exs | Elixir | priv/repo/migrations/20211204144100_add_avatar_to_users.exs | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211204144100_add_avatar_to_users.exs | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211204144100_add_avatar_to_users.exs | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | defmodule Outer.Repo.Migrations.AddAvatarToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :avatar, :string
end
end
end
| 16.2 | 51 | 0.703704 |
4a0ead572f3419587254bc266e15c73ae2d1cbd3 | 179 | ex | Elixir | lib/ps2/api/errors/query_error.ex | Bentheburrito/planetside_api | 1c419c5a9d52ab354493ac0ded2a50e4d3ff6c60 | [
"MIT"
] | 4 | 2020-04-04T16:28:51.000Z | 2021-12-15T15:33:39.000Z | lib/ps2/api/errors/query_error.ex | Bentheburrito/planetside_api | 1c419c5a9d52ab354493ac0ded2a50e4d3ff6c60 | [
"MIT"
] | null | null | null | lib/ps2/api/errors/query_error.ex | Bentheburrito/planetside_api | 1c419c5a9d52ab354493ac0ded2a50e4d3ff6c60 | [
"MIT"
] | null | null | null | defmodule PS2.API.Query.Error do
@moduledoc false
defexception message: "A problem occured while constructing the query."
@type t() :: %__MODULE__{message: String.t()}
end
| 25.571429 | 73 | 0.73743 |
4a0ed826dfec10a26a3e4d8c19dd71e236322b7e | 1,775 | exs | Elixir | Chapter05/vocial-demo-0.5.0/test/vocial_web/controllers/vote_controller_test.exs | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 10 | 2018-05-13T14:53:05.000Z | 2021-11-08T13:10:44.000Z | Chapter05/vocial-demo-0.5.0/test/vocial_web/controllers/vote_controller_test.exs | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | null | null | null | Chapter05/vocial-demo-0.5.0/test/vocial_web/controllers/vote_controller_test.exs | PacktPublishing/Phoenix-Web-Development | a071392abe2a459be1896580446b006126c393bf | [
"MIT"
] | 2 | 2019-04-23T10:54:33.000Z | 2019-04-27T15:47:07.000Z | defmodule VocialWeb.VoteControllerTest do
use VocialWeb.ConnCase
setup do
conn = build_conn()
{:ok, user} = Vocial.Accounts.create_user(%{
username: "test",
email: "test@test.com",
password: "test",
password_confirmation: "test"
})
{:ok, conn: conn, user: user}
end
defp... | 32.87037 | 104 | 0.606761 |
4a0efa7e4b418c10254985bd9511da415c9a7112 | 620 | exs | Elixir | exercise_1.12.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | 2 | 2019-08-26T13:17:27.000Z | 2020-09-24T13:16:07.000Z | exercise_1.12.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | exercise_1.12.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | defmodule Pascal do
def element(_, 0), do: 1
def element(row, pos) when row == pos, do: 1
def element(row, pos), do: element(row-1, pos-1) + element(row-1, pos)
end
ExUnit.start
defmodule PascalTests do
use ExUnit.Case, async: true
test "it computes elements in Pascal's triangle" do
assert Pascal.elem... | 20.666667 | 72 | 0.617742 |
4a0f189e88b9caedcd3d735452273550c419a83d | 10,398 | ex | Elixir | lib/faker/name/ru/male.ex | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | lib/faker/name/ru/male.ex | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | lib/faker/name/ru/male.ex | secoint/faker | 36d0a1a38fd4dc5a53e732e16223e64eb54ff305 | [
"MIT"
] | null | null | null | defmodule Faker.Name.Ru.Male do
import Faker, only: [sampler: 2]
@moduledoc """
Functions for male name data in Russian
"""
@doc """
Returns a complete name (may include a prefix)
## Examples
iex> Faker.Name.Ru.Male.name()
"Д-р. Глеб Никонов"
iex> Faker.Name.Ru.Male.name()
"Кон... | 15.542601 | 64 | 0.481631 |
4a0f1b63c89625afdb7178f0259a635740c2a668 | 5,274 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/stream/workers/service.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/stream/workers/service.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 23 | 2021-10-12T16:43:06.000Z | 2022-03-23T22:07:22.000Z | implementations/elixir/ockam/ockam/lib/ockam/stream/workers/service.ex | twittner/ockam | 96eadf99da42f7c35539c6e29010a657c579ccba | [
"Apache-2.0"
] | 1 | 2021-12-01T19:40:11.000Z | 2021-12-01T19:40:11.000Z | defmodule Ockam.Stream.Workers.Service do
@moduledoc false
use Ockam.Worker
use Ockam.Protocol.Mapping
alias Ockam.Stream.Workers.Stream, as: StreamWorker
alias Ockam.Message
alias Ockam.Protocol.Stream, as: StreamProtocol
require Logger
@type state() :: map()
@type stream_id() :: {String.t(), i... | 28.819672 | 99 | 0.641069 |
4a0f1da3a74fd486a2136cbe01541c5d7d86bc43 | 532 | ex | Elixir | lib/atoms.ex | brianbroderick/elixir_data_structures | 07d861d621d56453c4bc32575fc8705efbb4adbb | [
"MIT"
] | null | null | null | lib/atoms.ex | brianbroderick/elixir_data_structures | 07d861d621d56453c4bc32575fc8705efbb4adbb | [
"MIT"
] | null | null | null | lib/atoms.ex | brianbroderick/elixir_data_structures | 07d861d621d56453c4bc32575fc8705efbb4adbb | [
"MIT"
] | 6 | 2018-03-27T18:35:01.000Z | 2018-03-27T18:38:23.000Z | defmodule Atoms do
@moduledoc """
Some example functions related to atoms
Each of these functions currently returns the arg.
Check out the corresponding test and edit the function to return the result the test is
expecting.
"""
@doc "Convert an atom to a string"
def atom_to_string(atom) do
atom
... | 23.130435 | 89 | 0.723684 |
4a0f4cba1cc1b068b6b61645ef504631b0e6503a | 1,351 | ex | Elixir | lib/central/communication/schemas/post.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/central/communication/schemas/post.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central/communication/schemas/post.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Central.Communication.Post do
@moduledoc false
use CentralWeb, :schema
schema "communication_posts" do
field :url_slug, :string
field :title, :string
field :content, :string
field :short_content, :string
field :live_from, :utc_datetime
field :allow_comments, :boolean, default: ... | 21.109375 | 67 | 0.619541 |
4a0f4e2f0870c72a00a2d3d16a5a61032259b693 | 533 | exs | Elixir | test/integration/connection_test.exs | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 742 | 2015-01-02T14:27:45.000Z | 2022-03-17T06:42:52.000Z | test/integration/connection_test.exs | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 126 | 2015-02-08T04:39:53.000Z | 2022-01-02T14:43:27.000Z | test/integration/connection_test.exs | saiful7/poxa | f50e7fe9a4f74b502094fc8df2cb4f10d28e3d78 | [
"MIT"
] | 105 | 2015-01-28T20:41:40.000Z | 2022-02-14T07:48:50.000Z | defmodule Poxa.Integration.ConnectionTest do
use ExUnit.Case
@moduletag :integration
test "connects and receive socket_id" do
{:ok, _pid} =
Pusher.WS.start_link("ws://localhost:8080", "app_key", "secret", stream_to: self())
assert_receive %{
channel: nil,
... | 26.65 | 89 | 0.570356 |
4a0f5cde0c63923027abb32201ecba2fa3204561 | 1,897 | ex | Elixir | lib/live_view_web/live/light_live.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | null | null | null | lib/live_view_web/live/light_live.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | 4 | 2021-07-19T22:03:03.000Z | 2021-07-22T16:38:34.000Z | lib/live_view_web/live/light_live.ex | eduardo-rdguez/phoenix-liveview | 66ced7a3cd3c8f57c1e5e8c3646dcd7c837d202c | [
"MIT"
] | null | null | null | defmodule LiveViewWeb.LightLive do
use LiveViewWeb, :live_view
def mount(_params, _session, socket) do
socket = assign(socket, :brightness, 10)
{:ok, socket}
end
def render(assigns) do
~L"""
<h1>Light Me Up!</h1>
<div id="light">
<div class="meter">
<span style="width: <%= @b... | 24.636364 | 91 | 0.583553 |
4a0f6b214023850787ac22b185b161ad3cc480b4 | 1,136 | ex | Elixir | lib/metrics/account_instrumenter.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/metrics/account_instrumenter.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/metrics/account_instrumenter.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | defmodule Metrics.AccountInstrumenter do
@moduledoc """
Accounts instrumenter for Prometheus and Telemetry
"""
use Prometheus.Metric
require Logger
@doc false
def setup() do
events = [
[:create],
[:session, :login],
[:session, :logout],
]
Enum.each(events, &setup_event/1)... | 25.244444 | 93 | 0.685739 |
4a0f87077de3dc14bfb3c7d95b1531b4489e0055 | 4,678 | ex | Elixir | lib/elixir/lib/code/identifier.ex | rlipscombe/elixir | b1bfd1fa0a1c44fb20d3fb7f198973e60af331a2 | [
"Apache-2.0"
] | 4 | 2019-03-04T10:05:55.000Z | 2019-03-06T17:30:59.000Z | lib/elixir/lib/code/identifier.ex | rlipscombe/elixir | b1bfd1fa0a1c44fb20d3fb7f198973e60af331a2 | [
"Apache-2.0"
] | 5 | 2015-02-07T14:46:40.000Z | 2020-09-20T16:43:42.000Z | lib/elixir/lib/code/identifier.ex | rlipscombe/elixir | b1bfd1fa0a1c44fb20d3fb7f198973e60af331a2 | [
"Apache-2.0"
] | 2 | 2018-04-03T08:57:41.000Z | 2019-03-04T08:20:04.000Z | defmodule Code.Identifier do
@moduledoc false
@doc """
Checks if the given identifier is an unary op.
## Examples
iex> Code.Identifier.unary_op(:+)
{:non_associative, 300}
"""
@spec unary_op(atom) :: {:non_associative, precedence :: pos_integer} | :error
def unary_op(op) do
cond do
... | 30.575163 | 100 | 0.524797 |
4a0f9bf206fac2d5d198db781c048bc241def179 | 1,577 | ex | Elixir | lib/plds/utils.ex | phoenixframework/plds | 820600e8da6e13f376f8341cb78868bc189ddad8 | [
"MIT"
] | 60 | 2021-09-13T21:53:34.000Z | 2022-03-09T14:31:36.000Z | lib/plds/utils.ex | phoenixframework/plds | 820600e8da6e13f376f8341cb78868bc189ddad8 | [
"MIT"
] | 2 | 2021-09-23T17:13:40.000Z | 2021-11-16T15:57:05.000Z | lib/plds/utils.ex | phoenixframework/plds | 820600e8da6e13f376f8341cb78868bc189ddad8 | [
"MIT"
] | 2 | 2021-11-16T10:37:42.000Z | 2022-02-18T19:32:38.000Z | defmodule PLDS.Utils do
@moduledoc false
@doc """
Parses and validates the ip from env.
"""
def ip!(env) do
if ip = System.get_env(env) do
ip!(env, ip)
end
end
@doc """
Parses and validates the ip within context.
"""
def ip!(context, ip) do
case ip |> String.to_charlist() |> :ine... | 21.026667 | 84 | 0.58402 |
4a0fbd9aa15a722866063ef824b0c625be13b1b2 | 1,135 | ex | Elixir | lib/gexbot_web/controllers/person_controller.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | lib/gexbot_web/controllers/person_controller.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | lib/gexbot_web/controllers/person_controller.ex | jakewilkins/gexbot | b92cd5bae794becaedbee9c8884e4b66942198b7 | [
"WTFPL"
] | null | null | null | defmodule GexbotWeb.PersonController do
use GexbotWeb, :controller
alias Gexbot.Auth
alias Gexbot.Auth.Person
action_fallback GexbotWeb.FallbackController
def index(conn, _params) do
people = Auth.list_people()
render(conn, "index.json", people: people)
end
def create(conn, %{"person" => perso... | 26.395349 | 82 | 0.644053 |
4a0fd2907aabdb7689bddf54f49007fcd425f23f | 1,111 | exs | Elixir | apps/rtmp/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 75 | 2016-12-23T14:37:18.000Z | 2021-04-26T14:07:20.000Z | apps/rtmp/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 19 | 2016-12-22T03:20:43.000Z | 2020-06-11T12:10:37.000Z | apps/rtmp/config/config.exs | Kabie/elixir-media-libs | 9750c6dcdffdf8014183a6a4f303c5d0d658f062 | [
"MIT"
] | 3 | 2018-03-29T06:40:40.000Z | 2019-02-13T09:37:19.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.83871 | 73 | 0.749775 |
4a0fd5a6ce538b67918e6b7f4f7826f72b95095f | 1,658 | ex | Elixir | clients/content/lib/google_api/content/v2/model/lia_pos_data_provider.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/lia_pos_data_provider.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/lia_pos_data_provider.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... | 32.509804 | 130 | 0.743667 |
4a0fe63e09693c001c1d5f43616c8425066cacc4 | 697 | exs | Elixir | test/block_address/ethereum/address_test.exs | AgileAlpha/block_address | 51d20aecbf26d12895b3e09a3c106290d0cc2a1e | [
"Apache-2.0"
] | null | null | null | test/block_address/ethereum/address_test.exs | AgileAlpha/block_address | 51d20aecbf26d12895b3e09a3c106290d0cc2a1e | [
"Apache-2.0"
] | null | null | null | test/block_address/ethereum/address_test.exs | AgileAlpha/block_address | 51d20aecbf26d12895b3e09a3c106290d0cc2a1e | [
"Apache-2.0"
] | null | null | null | defmodule EthereumAddressTest do
use ExUnit.Case, async: true
alias BlockAddress.Ethereum.Address
alias BlockAddress.CKD
test "address from mnemonic" do
root_key =
BlockAddress.from_mnemonic(
"nurse grid sister metal flock choice system control about mountain sister rapid hundred render shed... | 33.190476 | 167 | 0.740316 |
4a0ffc6b7f6e703e463c46c48db96b9500e14e1f | 355 | exs | Elixir | priv/repo/seeds.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | 2 | 2021-05-24T21:41:25.000Z | 2021-05-25T16:02:09.000Z | priv/repo/seeds.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"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:
#
# CvCreator.Repo.insert!(%CvCreator.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 29.583333 | 61 | 0.709859 |
4a10196c6ee4aead2245f6773f559af20dd1c0fb | 9,863 | ex | Elixir | lib/game/npc.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | lib/game/npc.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | lib/game/npc.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | defmodule Game.NPC do
@moduledoc """
Server for an NPC
"""
use GenServer
require Logger
alias Data.Events.Actions.CommandsEmote
alias Data.Events.Actions.CommandsSay
alias Data.NPCSpawner
alias Data.Stats
alias Game.Channel
alias Game.Character.Effects
alias Game.Environment
alias Game.NPC.... | 23.483333 | 89 | 0.630133 |
4a102dba42767e53cb1f802973b4e09ece357c91 | 2,336 | ex | Elixir | lib/battle_box/game_engine/ai_server.ex | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | lib/battle_box/game_engine/ai_server.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | lib/battle_box/game_engine/ai_server.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBox.GameEngine.AiServer do
alias BattleBox.GameEngine.GameServer
use GenServer, restart: :temporary
alias BattleBox.GameEngine.Message.{
CommandsRequest,
DebugInfo,
GameInfo,
GameOver,
GameRequest,
GameCanceled
}
def start_link(%{names: _} = config, data) do
data ... | 23.128713 | 78 | 0.623716 |
4a1088aa886ead58fb801484748668f0d413b806 | 400 | exs | Elixir | test/beam_test.exs | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | 1 | 2021-09-14T14:28:39.000Z | 2021-09-14T14:28:39.000Z | test/beam_test.exs | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | null | null | null | test/beam_test.exs | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | null | null | null | defmodule ElixirScript.Beam.Test do
use ExUnit.Case
test "can get ast from beam" do
assert {:ok, _} = ElixirScript.Beam.debug_info(Atom)
end
test "errors when not found" do
assert {:error, _} = ElixirScript.Beam.debug_info(Some.Module)
end
test "can get ast from beam that is protocol" do
asse... | 25 | 77 | 0.705 |
4a109c50989f4e9330d7eebdd6d5f0c555ac7b59 | 1,051 | ex | Elixir | lib/parklot_rsvp/application.ex | egutter/parklot-rsvp | 356b71b1a819a6c701cdf3b74e938255199f86e0 | [
"MIT"
] | null | null | null | lib/parklot_rsvp/application.ex | egutter/parklot-rsvp | 356b71b1a819a6c701cdf3b74e938255199f86e0 | [
"MIT"
] | 3 | 2018-08-17T23:12:30.000Z | 2018-09-18T12:54:57.000Z | lib/parklot_rsvp/application.ex | egutter/parklot-rsvp | 356b71b1a819a6c701cdf3b74e938255199f86e0 | [
"MIT"
] | null | null | null | defmodule ParklotRsvp.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.84375 | 89 | 0.721218 |
4a10b91534085902a9c2f3cf82c182b28db40b07 | 884 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.740741 | 74 | 0.75905 |
4a10c3bee21ae273cd74628dbaf2b9c7b1ea66e6 | 3,803 | ex | Elixir | apps/language_server/lib/language_server/diagnostics.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | 1 | 2020-06-01T11:25:33.000Z | 2020-06-01T11:25:33.000Z | apps/language_server/lib/language_server/diagnostics.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/diagnostics.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Diagnostics do
def normalize(diagnostics, root_path) do
for diagnostic <- diagnostics do
{type, file, line, description, stacktrace} =
extract_message_info(diagnostic.message, root_path)
diagnostic
|> update_message(type, description, stacktrace)
... | 25.019737 | 91 | 0.602945 |
4a10d552e537ff43aaa0ed62c8b3698f06e32ebc | 4,073 | ex | Elixir | apps/admin_api/lib/admin_api/v1/controllers/transaction_request_controller.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/admin_api/lib/admin_api/v1/controllers/transaction_request_controller.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/controllers/transaction_request_controller.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.TransactionRequestController do
use AdminAPI, :controller
import AdminAPI.V1.ErrorHandler
alias AdminAPI.V1.AccountHelper
alias EWallet.TransactionRequestPolicy
alias EWallet.Web.{Orchestrator, Paginator, V1.TransactionRequestOverlay}
alias EWallet.{
TransactionRequestFetcher,
... | 33.941667 | 95 | 0.668549 |
4a10e0bb18acaa7b4697e5d894e1184e81fd2206 | 984 | exs | Elixir | bench/witchcraft/monad/function_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | bench/witchcraft/monad/function_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | bench/witchcraft/monad/function_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | defmodule Witchcraft.Monad.FunctionBench do
@moduledoc false
use Benchfella
use Witchcraft.Monad
use Quark
#########
# Setup #
#########
# ---------- #
# Data Types #
# ---------- #
def fun(x), do: "#{inspect(x)}-#{inspect(x)}"
#########
# Monad #
#########
bench "monad/2" do
mon... | 14.909091 | 47 | 0.410569 |
4a10f54e5c863db33f434e78deaf2265d6aff171 | 190 | exs | Elixir | apps/core/priv/prm_repo/migrations/20190322144732_uppercase_contracts_status_reason.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20190322144732_uppercase_contracts_status_reason.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20190322144732_uppercase_contracts_status_reason.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.UppercaseContractsStatusReason do
use Ecto.Migration
def change do
execute("UPDATE contracts SET status_reason = UPPER(status_reason);")
end
end
| 23.75 | 73 | 0.794737 |
4a115399ff370bfe5a7a5dafe34ecee836bee0c0 | 168 | exs | Elixir | test/apoc/hazmat/hash/sha224_test.exs | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 6 | 2018-10-04T14:18:35.000Z | 2020-05-15T08:43:31.000Z | test/apoc/hazmat/hash/sha224_test.exs | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 3 | 2018-10-23T12:20:45.000Z | 2021-01-27T10:41:14.000Z | test/apoc/hazmat/hash/sha224_test.exs | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 2 | 2020-02-19T00:43:37.000Z | 2021-08-19T04:04:25.000Z | defmodule ApocTest.Hazmat.Hash.SHA224 do
use ApocTest.Hazmat.Hash.TestCase
alias Apoc.Hazmat.Hash.SHA224
setup_all do
%{size: 28, target: SHA224}
end
end
| 16.8 | 40 | 0.738095 |
4a1167ab185531c38b7c5816745705c0c0a3ebb8 | 264 | ex | Elixir | test/factories/badge_factory.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | test/factories/badge_factory.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | test/factories/badge_factory.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.BadgeFactory do
defmacro __using__(_opts) do
quote do
def badge_factory do
%Safira.Contest.Badge{
name: "Badge Test",
description: "Only for Testing",
type: 2
}
end
end
end
end
| 18.857143 | 42 | 0.57197 |
4a11c45e49a1b0698b788c74d86ee3f9ec81572e | 220 | exs | Elixir | test/test_helper.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 48 | 2015-06-29T21:20:25.000Z | 2021-05-09T04:27:41.000Z | test/test_helper.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 15 | 2015-06-29T21:13:57.000Z | 2021-07-27T10:02:40.000Z | ExUnit.start
# Create the database, run migrations, and start the test transaction.
Mix.Task.run "ecto.create", ["--quiet"]
Mix.Task.run "ecto.migrate", ["--quiet"]
Ecto.Adapters.SQL.begin_test_transaction(Survey.Repo)
| 31.428571 | 70 | 0.75 |
4a11c66c9d03917dd49d3fa6fde3a491e9d9b0ef | 2,731 | ex | Elixir | lib/bitcoin/script/control.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | lib/bitcoin/script/control.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/script/control.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Script.Control do
# IF STATEMENT IMPLEMENTATION
#
# OP_IFs can be nested, which complicates running script a bit.
#
# Just going sequentially through it we would have to track some complicated state,
# especially given that there can be multiple OP_ELSEs.
#
# So instead function `parse... | 45.516667 | 99 | 0.723178 |
4a11d6d2919e1d7c05d77c23c5af92f094be5c8f | 15,933 | exs | Elixir | lib/ex_unit/test/ex_unit/doc_test_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/doc_test_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/doc_test_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
import ExUnit.TestHelpers
defmodule ExUnit.DocTestTest.GoodModule do
@doc """
iex> test_fun()
1
iex> test_fun() + 1
2
"""
def test_fun, do: 1
@doc ~S"""
iex> ~S(f#{o}o)
"f\#{o}o"
"""
def test_sigil, do: :ok
@doc """
iex> a = 1
iex> b = a ... | 25.698387 | 139 | 0.634281 |
4a11d972a0f393b1a6e3a6e352af38fb299e3710 | 1,706 | ex | Elixir | test/support/mocked_server/router/client.ex | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | test/support/mocked_server/router/client.ex | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | test/support/mocked_server/router/client.ex | kintu-games/elidactyl | 2d95694ef4a85c72e962379d8d12fc08bd8352ac | [
"MIT"
] | null | null | null | defmodule Elidactyl.MockedServer.Router.Client do
@moduledoc false
use Plug.Router
import Elidactyl.MockedServer.Router.Utils
plug(
Plug.Parsers,
parsers: [:json],
pass: ["text/*"],
json_decoder: Jason
)
plug(:match)
plug(:dispatch)
get "/api/client" do
servers = %{
"data" ... | 22.155844 | 60 | 0.433763 |
4a11fba640c5e4bafbbedda8f034344493d5d3d3 | 1,284 | ex | Elixir | lib/plugs/jwt_plug.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | lib/plugs/jwt_plug.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | lib/plugs/jwt_plug.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule Quenya.Plug.JwtPlug do
@moduledoc """
JWT plug to handle the JWT bearer token
"""
import Plug.Conn
alias Quenya.Plug.{UnauthenticatedError, UnauthorizedError}
alias Quenya.Token
@behaviour Plug
@spec init(keyword()) :: keyword()
def init(opts) do
opts
end
@spec call(Plug.Conn.t... | 24.226415 | 84 | 0.633178 |
4a120c8575c82b2455b52820039a8d05c1ef6805 | 265 | ex | Elixir | languages/elixir/exercises/concept/lasagna/lib/lasagna.ex | kayn1/v3 | 54883e1e2e917d2ff6ae64eab64ec8ad5dd9f70b | [
"MIT"
] | 3 | 2020-07-25T06:24:00.000Z | 2020-09-14T17:39:11.000Z | languages/elixir/exercises/concept/lasagna/lib/lasagna.ex | kayn1/v3 | 54883e1e2e917d2ff6ae64eab64ec8ad5dd9f70b | [
"MIT"
] | 1 | 2020-01-26T20:08:06.000Z | 2020-01-26T20:08:06.000Z | languages/elixir/exercises/concept/lasagna/lib/lasagna.ex | kayn1/v3 | 54883e1e2e917d2ff6ae64eab64ec8ad5dd9f70b | [
"MIT"
] | null | null | null | defmodule Lasagna do
# TODO: define the 'expected_minutes_in_oven/0' function
# TODO: define the 'remaining_minutes_in_oven/1' function
# TODO: define the 'preparation_time_in_minutes/1' function
# TODO: define the 'total_time_in_minutes/2' function
end
| 26.5 | 61 | 0.777358 |
4a120f2dfdb5bc305afa5e2c5817eab6172fcbd0 | 1,682 | ex | Elixir | lib/response_queue.ex | kianmeng/honeylixir | de21e5a7e9fe25345dbe333c5b64b46ab54deedb | [
"Apache-2.0"
] | null | null | null | lib/response_queue.ex | kianmeng/honeylixir | de21e5a7e9fe25345dbe333c5b64b46ab54deedb | [
"Apache-2.0"
] | null | null | null | lib/response_queue.ex | kianmeng/honeylixir | de21e5a7e9fe25345dbe333c5b64b46ab54deedb | [
"Apache-2.0"
] | null | null | null | defmodule Honeylixir.ResponseQueue do
@moduledoc """
Available for tracking responses for each event sent via `Honeylixir.Transmission`.
Currently does not block when the queue is full.
"""
use Agent
@doc false
def start_link(%{max_response_queue_size: max_response_queue_size}, opts \\ []) do
name =... | 28.033333 | 88 | 0.649822 |
4a1217342e22bdbc2e8f3ec02e0c1e2ffedbb482 | 773 | ex | Elixir | lib/exldap_search_result.ex | mijkenator/exldap | 6e3d30ed54c22011e449048c136db48f8013e2e6 | [
"MIT"
] | 55 | 2016-01-04T12:58:24.000Z | 2022-02-27T14:30:46.000Z | lib/exldap_search_result.ex | mijkenator/exldap | 6e3d30ed54c22011e449048c136db48f8013e2e6 | [
"MIT"
] | 13 | 2016-06-06T21:02:23.000Z | 2021-11-19T19:22:32.000Z | lib/exldap_search_result.ex | mijkenator/exldap | 6e3d30ed54c22011e449048c136db48f8013e2e6 | [
"MIT"
] | 23 | 2016-03-25T16:07:04.000Z | 2022-01-17T16:49:30.000Z | defmodule Exldap.SearchResult do
require Record
record = Record.extract(:eldap_search_result, from_lib: "eldap/include/eldap.hrl")
keys = Enum.map(record, &elem(&1, 0))
vals = Enum.map(keys, &{&1, [], nil})
pairs = Enum.zip(keys, vals)
defstruct keys
@type t :: %__MODULE__{}
@doc """
Converts ... | 28.62963 | 84 | 0.708926 |
4a123021a48becf944b303932408985973c0063e | 1,078 | ex | Elixir | lib/sanbase/signals/trigger/validation/notification_channel_validation.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase/signals/trigger/validation/notification_channel_validation.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase/signals/trigger/validation/notification_channel_validation.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.Signal.Validation.NotificationChannel do
@notification_channels ["telegram", "email", "web_push", "webhook"]
def valid_notification_channels(), do: @notification_channels
def valid_notification_channel?(%{"webhook" => webhook_url}) when is_binary(webhook_url),
do: :ok
def valid_notifica... | 29.135135 | 119 | 0.653989 |
4a123353a2d1128b9091c5223731afcc62b38dfb | 1,911 | exs | Elixir | test/acceptance/ast/reflink_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/reflink_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/reflink_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Ast.ReflinkTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, parse_html: 1]
describe "undefined reflinks" do
test "simple case" do
markdown = "[text] [reference]\n[reference1]: some_url"
html = "<p>[text] [reference]</p>\n"
ast = pa... | 30.333333 | 83 | 0.5573 |
4a12504c182280f34697c2d1e80fe85dcd923f96 | 13,343 | ex | Elixir | lib/contentful/query.ex | prototypsthlm/contentful.ex | cde53cd6792643c2d5518f97db00c4118f842863 | [
"MIT"
] | 28 | 2016-06-19T00:18:46.000Z | 2021-05-17T07:53:22.000Z | lib/contentful/query.ex | prototypsthlm/contentful.ex | cde53cd6792643c2d5518f97db00c4118f842863 | [
"MIT"
] | 79 | 2016-07-13T14:46:07.000Z | 2021-05-17T09:26:50.000Z | lib/contentful/query.ex | prototypsthlm/contentful.ex | cde53cd6792643c2d5518f97db00c4118f842863 | [
"MIT"
] | 25 | 2016-07-13T17:31:52.000Z | 2021-05-08T10:14:46.000Z | defmodule Contentful.Query do
require Logger
@moduledoc """
This module provides the chainable query syntax for building queries against the
APIs of Contentful.
The chains will then be serialized to a URL and send to the API. A basic query looks like this:
```
Entity
|> skip(3)
|> limit(2)
|> fet... | 28.449893 | 141 | 0.652027 |
4a12529b293cde89cf5930f9827bec65a04de67e | 20,270 | ex | Elixir | lib/ecto.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2019-07-25T17:42:33.000Z | 2019-07-25T17:42:33.000Z | lib/ecto.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | lib/ecto.ex | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto do
@moduledoc ~S"""
Ecto is split into 4 main components:
* `Ecto.Repo` - repositories are wrappers around the data store.
Via the repository, we can create, update, destroy and query existing entries.
A repository needs an adapter and credentials to communicate to the database
... | 33.229508 | 94 | 0.680858 |
4a1252aeb402f249af5c143497a1b9c3686bacaa | 4,380 | ex | Elixir | lib/mocked.ex | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | lib/mocked.ex | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | lib/mocked.ex | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | defmodule Mocked do
defmacro __using__(_) do
quote do
use GenServer
def start_mock_link do
GenServer.start(__MODULE__, %{call_count: %{}, interceptors: %{}})
end
def init(opt) do
{:ok, opt}
end
def handle_call(
{:call_count, func, args},
... | 31.970803 | 97 | 0.574658 |
4a1263cba1f84e5543d65cf76f7508f8f2ae1635 | 102 | ex | Elixir | lib/epicenter/repo.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | lib/epicenter/repo.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | lib/epicenter/repo.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Repo do
use Ecto.Repo, adapter: Ecto.Adapters.Postgres, otp_app: :epicenter
end
| 25.5 | 69 | 0.794118 |
4a12884115ef4834b6caddcb3d8a6d2cef620bfa | 5,066 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/api/vbeta1.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/api/vbeta1.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/api/vbeta1.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.299145 | 196 | 0.654757 |
4a128bcd59214c6ef808e19e1e461b99a0309261 | 282 | ex | Elixir | web/controllers/camera_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | web/controllers/camera_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | web/controllers/camera_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.CameraRelationshipController do
use Apiv4.Web, :controller
plug :scrub_params, "data" when action in [:create, :update, :delete]
plug Autox.AutoPaginatePlug when action in [:index]
plug Autox.AutoParentPlug, Apiv4
use Autox.RelationshipController
end | 31.333333 | 71 | 0.77305 |
4a128c69595d5f98cd40a0f583e2ddd84a7204ed | 13,247 | ex | Elixir | lib/Random.ex | p2k/random | b253b35016836b0bac4315b995aaa50496b7f102 | [
"Apache-2.0"
] | 3 | 2017-11-13T00:28:47.000Z | 2017-12-11T11:02:05.000Z | lib/Random.ex | p2k/random | b253b35016836b0bac4315b995aaa50496b7f102 | [
"Apache-2.0"
] | null | null | null | lib/Random.ex | p2k/random | b253b35016836b0bac4315b995aaa50496b7f102 | [
"Apache-2.0"
] | 1 | 2021-06-30T07:53:19.000Z | 2021-06-30T07:53:19.000Z | # Ported from Python 3
# See: http://hg.python.org/cpython/file/8c768bbacd92/Lib/random.py
#
# Translated by Guido van Rossum from C source provided by
# Adrian Baddeley. Adapted by Raymond Hettinger for use with
# the Mersenne Twister and os.urandom() core generators.
#
# Ported to Elixir by Yuce Tekol.
#
# Uniform r... | 27.369835 | 263 | 0.62082 |
4a129cb849d89c6334ccd32a020054456737b5d2 | 3,313 | ex | Elixir | apps/blunt/lib/blunt/message/constructor.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | 1 | 2022-02-18T09:11:01.000Z | 2022-02-18T09:11:01.000Z | apps/blunt/lib/blunt/message/constructor.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt/lib/blunt/message/constructor.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule Blunt.Message.Constructor do
@moduledoc false
alias Ecto.Changeset
alias __MODULE__, as: Constructor
alias Blunt.Message.Changeset, as: MessageChangeset
alias Blunt.Message.{Documentation, Input, Metadata}
defmacro register(opts) do
quote bind_quoted: [opts: opts] do
constructor = Keyw... | 35.244681 | 120 | 0.668578 |
4a12b75b66937617594a6be00ec3ce53c0640296 | 1,316 | ex | Elixir | wine-cellar/lib/wine_cellar.ex | w0rd-driven/exercism-elixir | 77fabf71ef995530704d06f54196a5c48bc1e0f3 | [
"MIT"
] | null | null | null | wine-cellar/lib/wine_cellar.ex | w0rd-driven/exercism-elixir | 77fabf71ef995530704d06f54196a5c48bc1e0f3 | [
"MIT"
] | null | null | null | wine-cellar/lib/wine_cellar.ex | w0rd-driven/exercism-elixir | 77fabf71ef995530704d06f54196a5c48bc1e0f3 | [
"MIT"
] | null | null | null | defmodule WineCellar do
@spec explain_colors :: [{:red, String.t()} | {:rose, String.t()} | {:white, String.t()}, ...]
def explain_colors do
[
white: "Fermented without skin contact.",
red: "Fermented with skin contact using dark-colored grapes.",
rose: "Fermented with some skin contact, but n... | 28.608696 | 96 | 0.662614 |
4a12cc6d65077cfa60392b65cd43a5e3fa3ab637 | 377 | exs | Elixir | test/createurs_web/emails_test.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | test/createurs_web/emails_test.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | test/createurs_web/emails_test.exs | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule ShopixWeb.EmailsTest do
use Shopix.DataCase, async: true
alias ShopixWeb.Email
alias Shopix.Front
test "order_complete_email/1" do
order = insert(:order)
order = Front.get_order(order.id)
email = Email.order_complete_email(order, "en", build(:global_config))
assert email.to == order... | 23.5625 | 74 | 0.710875 |
4a13078e23e8891ea117159025cf0e40c5dd2fb0 | 2,032 | ex | Elixir | lib/day_0601.ex | thbar/elixir-playground | 4c3e8cecb927d05f762b666d3064114451786db4 | [
"MIT"
] | 14 | 2016-01-18T13:58:37.000Z | 2021-08-09T11:39:54.000Z | lib/day_0601.ex | thbar/elixir-playground | 4c3e8cecb927d05f762b666d3064114451786db4 | [
"MIT"
] | null | null | null | lib/day_0601.ex | thbar/elixir-playground | 4c3e8cecb927d05f762b666d3064114451786db4 | [
"MIT"
] | null | null | null | defmodule Day0601 do
def parse_line(line) do
line
|> String.split(",")
|> Enum.map(&String.trim/1)
|> Enum.map(&String.to_integer/1)
|> List.to_tuple
end
def taxi_dist({px, py}, {x, y}), do: abs(px-x) + abs(py-y)
def taxi_dist_closest(coordinates, p) do
{_d, winners} = coordinates
... | 23.627907 | 80 | 0.535433 |
4a131e313704b7bc29465c5715e59d41b5e2ad34 | 373 | exs | Elixir | priv/repo/migrations/20180710030002_create_categories.exs | dailydrip/firestorm_data | 5c5e75271c43dc08d93a2492692b6601ef3682aa | [
"MIT"
] | null | null | null | priv/repo/migrations/20180710030002_create_categories.exs | dailydrip/firestorm_data | 5c5e75271c43dc08d93a2492692b6601ef3682aa | [
"MIT"
] | null | null | null | priv/repo/migrations/20180710030002_create_categories.exs | dailydrip/firestorm_data | 5c5e75271c43dc08d93a2492692b6601ef3682aa | [
"MIT"
] | null | null | null | defmodule FirestormData.Repo.Migrations.CreateCategories do
use Ecto.Migration
def change do
create table(:firestorm_categories_categories, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:title, :string)
add(:slug, :string)
timestamps()
end
create(unique_index(:... | 23.3125 | 73 | 0.707775 |
4a13696fe6a24ac6ec8df5912df26dc29b1be24b | 1,969 | ex | Elixir | deps/postgrex/lib/postgrex/extensions/timestamp.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extensions/timestamp.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extensions/timestamp.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Postgrex.Extensions.Timestamp do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "timestamp_send"
@gs_epoch :calendar.datetime_to_gregorian_seconds({{2000, 1, 1}, {0, 0, 0}})
@max_year 294_276
def encode(_) do
quote location: :keep do
... | 28.536232 | 85 | 0.629253 |
4a1378a244b501e8f268793c64c050abbcde13db | 835 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180627145947_add_exchange_wallet_address_to_transaction.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180627145947_add_exchange_wallet_address_to_transaction.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180627145947_add_exchange_wallet_address_to_transaction.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"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... | 34.791667 | 88 | 0.762874 |
4a139a6711d76b934507a0aded39b11466119700 | 2,821 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_batch_process_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_batch_process_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_batch_process_metadata.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.121622 | 222 | 0.722084 |
4a13e05c54cd8a6789d17750b031e722706feb09 | 2,340 | ex | Elixir | elixir_backend/clubhouse/lib/clubhouse/Room.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/clubhouse/lib/clubhouse/Room.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/clubhouse/lib/clubhouse/Room.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | defmodule Clubhouse.Room do
alias __MODULE__
defstruct(
id: nil,
name: nil,
type: "public",
isLive: nil,
isScheduled: false,
numUsers: 0,
speakers: [],
listeners: [],
creator: nil,
startTime: nil
)
def new(id, name, creato... | 25.16129 | 102 | 0.523932 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.