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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97f2b5337e39b5e784c72867a000bb0b3676e1db | 2,002 | ex | Elixir | lib/data_buffer/telemetry.ex | nsweeting/data_buffer | de1a33ada3509f8f14cdba900bf73c2401f0a781 | [
"MIT"
] | 3 | 2020-01-13T18:58:49.000Z | 2020-05-09T10:37:28.000Z | lib/data_buffer/telemetry.ex | nsweeting/data_buffer | de1a33ada3509f8f14cdba900bf73c2401f0a781 | [
"MIT"
] | null | null | null | lib/data_buffer/telemetry.ex | nsweeting/data_buffer | de1a33ada3509f8f14cdba900bf73c2401f0a781 | [
"MIT"
] | null | null | null | defmodule DataBuffer.Telemetry do
@moduledoc """
DataBuffer produces multiple telemetry events.
## Events
* `[:data_buffer, :insert, :start]` - Called when a buffer insert starts.
#### Measurements
* `:system_time` - The current monotonic system time.
#### Metadata
* `:buffer` - The name... | 29.014493 | 89 | 0.604895 |
97f329a3775693e3f0d2aec0de03894d235ce495 | 536 | ex | Elixir | lib/plausible/stats/mod.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | lib/plausible/stats/mod.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | lib/plausible/stats/mod.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Stats do
defdelegate breakdown(site, query, prop, metrics, pagination), to: Plausible.Stats.Breakdown
defdelegate aggregate(site, query, metrics), to: Plausible.Stats.Aggregate
defdelegate timeseries(site, query, metrics), to: Plausible.Stats.Timeseries
defdelegate current_visitors(site), to... | 48.727273 | 94 | 0.802239 |
97f32d51d1412377e36d472866313afa5a5bf5da | 1,993 | exs | Elixir | ros/ros_ui_supervisor/config/dev.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_supervisor/config/dev.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_supervisor/config/dev.exs | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with webpack to recompile .js and .css sources.
config :ros_ui_supervisor, Ros.SupervisorWeb.Endpoint,
... | 28.884058 | 68 | 0.690918 |
97f337fb532ee9a688b13839893edf72c666f8f7 | 2,524 | exs | Elixir | config/test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | config/test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | config/test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | import Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :sanbase, Sanbase, url: {:system, "SANBASE_URL", ""}
config :sanbase, SanbaseWeb.Endpoint,
http: [port: 4001],
server: true
# Print only warnings and errors during test. Do not log JSON in tes... | 30.409639 | 98 | 0.782092 |
97f3387cb0884fb54545a25764017b0aa6a9aa5d | 1,849 | ex | Elixir | lib/ex_polygon/rest/aggregates.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/rest/aggregates.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/rest/aggregates.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | defmodule ExPolygon.Rest.Aggregates do
@moduledoc """
Returns a call to "Aggregates ( Bars )" Polygon.io
"""
@type api_key :: ExPolygon.Rest.HTTPClient.api_key()
@type shared_error_reasons :: ExPolygon.Rest.HTTPClient.shared_error_reasons()
@type aggregate :: ExPolygon.Aggregate.t()
@path "/v2/aggs/tick... | 29.822581 | 92 | 0.607355 |
97f35c58c060821c4d5d9aaa5c41895df4f9b660 | 95 | exs | Elixir | exercises/02-higher-order-functions/02-goodbye-loops/06-reduce-usage/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/02-higher-order-functions/02-goodbye-loops/06-reduce-usage/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/02-higher-order-functions/02-goodbye-loops/06-reduce-usage/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Util do
def size(xs) do
Enum.reduce(xs, 0, fn _, acc -> acc + 1 end)
end
end
| 15.833333 | 48 | 0.610526 |
97f39deb99d4b5fc68e032b7505b5d6b760da47f | 2,427 | exs | Elixir | {{cookiecutter.project_slug}}/config/dev.exs | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | 14 | 2019-08-01T07:55:50.000Z | 2021-04-24T09:14:09.000Z | {{cookiecutter.project_slug}}/config/dev.exs | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | 1 | 2019-08-02T03:03:40.000Z | 2019-08-02T03:03:40.000Z | {{cookiecutter.project_slug}}/config/dev.exs | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :{{cookiecutter.phoenix_app_slug}}, {{cookiecutter.phoenix_app_module}}.Repo,
username: "postgres",
password: "postgres",
database: "{{cookiecutter.phoenix_app_slug}}_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
#... | 31.519481 | 95 | 0.706222 |
97f3ac240726ea3cfc331e94d80cf51d04bc4b7b | 2,192 | exs | Elixir | deps/ecto/integration_test/sql/stream.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | 64 | 2015-06-03T09:48:13.000Z | 2020-04-25T08:39:49.000Z | deps/ecto/integration_test/sql/stream.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | 70 | 2015-02-13T14:00:13.000Z | 2021-09-15T10:40:01.000Z | deps/ecto/integration_test/sql/stream.exs | slaily/discuss | 6f0eacd0f2c03d197f2cf9b6c27a03752c90e969 | [
"MIT"
] | 50 | 2015-02-13T13:55:47.000Z | 2020-03-03T15:34:13.000Z | defmodule Ecto.Integration.StreamTest do
use Ecto.Integration.Case, async: true
alias Ecto.Integration.TestRepo
alias Ecto.Integration.Post
alias Ecto.Integration.Comment
import Ecto.Query
test "stream empty" do
assert {:ok, []} = TestRepo.transaction(fn() ->
TestRepo.stream(Post)
|> Enum.... | 31.768116 | 81 | 0.618157 |
97f3cb6646b532346fc2bd46cc29ce929cdebfbb | 2,279 | ex | Elixir | lib/visa_checkout.ex | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | lib/visa_checkout.ex | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | lib/visa_checkout.ex | belloq/visa_checkout_elixir | 151f13a6f1d110380cec25fe8a320e1e9a6cfc95 | [
"MIT"
] | null | null | null | defmodule VisaCheckout do
@moduledoc """
Visa Checkout API reference: https://developer.visa.com/capabilities/visa_checkout/reference
"""
alias VisaCheckout.{Http, Util}
@doc """
Get payment data
Visa Checkout API reference: https://developer.visa.com/capabilities/visa_checkout/reference#visa_checkout_... | 26.195402 | 159 | 0.670908 |
97f3e7844e875f70b32bc46f2ff056cbc8c3cdd9 | 12,259 | ex | Elixir | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/api/webhooks.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/api/webhooks.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/api/webhooks.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Containers.Api.Webhooks do
@moduledoc """
API calls for all endpoints tagged `Webhooks`.
"""
alias Microsoft.A... | 49.232932 | 261 | 0.732768 |
97f3fc44cec859b7b7d9fc8889068b7f3f3d22d2 | 2,409 | ex | Elixir | lib/twirp/error.ex | daskycodes/twirp-elixir | 51b701111a3b33601980703417388cd099dc7e44 | [
"Apache-2.0"
] | 30 | 2019-11-03T16:30:13.000Z | 2020-06-23T19:38:53.000Z | lib/twirp/error.ex | daskycodes/twirp-elixir | 51b701111a3b33601980703417388cd099dc7e44 | [
"Apache-2.0"
] | 16 | 2020-03-13T17:56:16.000Z | 2020-06-11T10:40:02.000Z | lib/twirp/error.ex | daskycodes/twirp-elixir | 51b701111a3b33601980703417388cd099dc7e44 | [
"Apache-2.0"
] | 3 | 2019-12-05T16:43:15.000Z | 2020-05-11T21:34:44.000Z | defmodule Twirp.Error do
@moduledoc """
This module defines the different error codes as specified in
https://twitchtv.github.io/twirp/docs/spec_v5.html#error-codes.
We provide a function for each error code to that its easy for users to return
errors in their handlers.
"""
import Norm
@error_code_to... | 28.678571 | 80 | 0.627231 |
97f3fc9648c51fe3f1349eac4c95dc647c7530c7 | 144 | exs | Elixir | examples/io_effects/test/ex_jack_examples_test.exs | FraihaAV/ex_jack | 5339364e76bb19eee02fc536a249c1a46afd0476 | [
"MIT"
] | null | null | null | examples/io_effects/test/ex_jack_examples_test.exs | FraihaAV/ex_jack | 5339364e76bb19eee02fc536a249c1a46afd0476 | [
"MIT"
] | 1 | 2022-03-07T02:35:11.000Z | 2022-03-07T02:35:11.000Z | examples/io_effects/test/ex_jack_examples_test.exs | FraihaAV/ex_jack | 5339364e76bb19eee02fc536a249c1a46afd0476 | [
"MIT"
] | null | null | null | defmodule IoEffectsTest do
use ExUnit.Case
doctest IoEffects
test "greets the world" do
assert IoEffects.hello() == :world
end
end
| 16 | 38 | 0.722222 |
97f421b71a682a870e219d2a985fc700a3b9abeb | 8,000 | exs | Elixir | test/suite/draft6/type_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft6/type_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft6/type_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft6.TypeTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "integer type matches integers" do
setup do
%{schema: Xema.new(:integer)}
end
test "an integer is an integer", %{schema: schema} do
data = 1
assert valid?(schema, data)
end
t... | 22.535211 | 74 | 0.573875 |
97f452cf524b9f790427ccafa2eab826b01651b3 | 1,057 | ex | Elixir | apps/aehttpserver/lib/aehttpserver/web/controllers/header_controller.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | 131 | 2018-03-10T01:35:56.000Z | 2021-12-27T13:44:41.000Z | apps/aehttpserver/lib/aehttpserver/web/controllers/header_controller.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | 445 | 2018-03-12T09:46:17.000Z | 2018-12-12T09:52:07.000Z | apps/aehttpserver/lib/aehttpserver/web/controllers/header_controller.ex | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | 23 | 2018-03-12T12:01:28.000Z | 2022-03-06T09:22:17.000Z | defmodule Aehttpserver.Web.HeaderController do
use Aehttpserver.Web, :controller
alias Aecore.Chain.Worker, as: Chain
alias Aeutil.Serialization
alias Aeutil.HTTPUtil
def top(conn, _params) do
header = Serialization.serialize_value(Chain.top_block().header)
json(conn, header)
end
def header_by_... | 27.815789 | 70 | 0.676443 |
97f50a87caf6ee154fea767feb10c163da3f3e3b | 1,220 | ex | Elixir | test/support/conn_case.ex | jbcaprell/absinthe_tutorial | 52db65e9b07e4117ec2ef44a91028a0f01e5dd8a | [
"MIT"
] | null | null | null | test/support/conn_case.ex | jbcaprell/absinthe_tutorial | 52db65e9b07e4117ec2ef44a91028a0f01e5dd8a | [
"MIT"
] | 1 | 2021-03-11T00:24:09.000Z | 2021-03-11T00:24:09.000Z | test/support/conn_case.ex | jbcaprell/absinthe_tutorial | 52db65e9b07e4117ec2ef44a91028a0f01e5dd8a | [
"MIT"
] | null | null | null | defmodule BlogWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the t... | 27.727273 | 66 | 0.719672 |
97f538bb283e9c0517723f041b2c0457005262b8 | 6,557 | ex | Elixir | lib/appsignal.ex | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | lib/appsignal.ex | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | lib/appsignal.ex | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | defmodule Appsignal do
@moduledoc """
AppSignal for Elixir. Follow the [installation guide](https://docs.appsignal.com/elixir/installation.html) to install AppSignal into your Elixir app.
This module contains the main AppSignal OTP application, as well as
a few helper functions for sending metrics to AppSignal... | 28.508696 | 183 | 0.654263 |
97f571dd9c19d5635834c50e3047ebe98e93f696 | 727 | ex | Elixir | lib/tsuro_phoenix_web/gettext.ex | pcsheng/tsuro-phoenix | df3e5f95bf1705d7a8beacd037ca67264ffca41b | [
"MIT"
] | null | null | null | lib/tsuro_phoenix_web/gettext.ex | pcsheng/tsuro-phoenix | df3e5f95bf1705d7a8beacd037ca67264ffca41b | [
"MIT"
] | null | null | null | lib/tsuro_phoenix_web/gettext.ex | pcsheng/tsuro-phoenix | df3e5f95bf1705d7a8beacd037ca67264ffca41b | [
"MIT"
] | null | null | null | defmodule TsuroPhoenixWeb.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 TsuroPhoenixWeb.Gettext
# Simple translation
gettext(... | 29.08 | 72 | 0.685007 |
97f5762f8c5009a50b3b7db7c57c623697683dc5 | 3,481 | exs | Elixir | servers/exilp/mix.exs | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | servers/exilp/mix.exs | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | servers/exilp/mix.exs | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 Chris Jimison
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge... | 30.80531 | 92 | 0.585177 |
97f5843cd5e27d4aa75daa5a4a0172f96196d603 | 830 | exs | Elixir | test/nerves/provider/docker_test.exs | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | 1 | 2019-06-12T17:34:10.000Z | 2019-06-12T17:34:10.000Z | test/nerves/provider/docker_test.exs | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | test/nerves/provider/docker_test.exs | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Provider.DockerTest do
use NervesTest.Case, async: false
alias Nerves.Package.Providers.Docker
test "Generated docker container Id is valid" do
id = Nerves.Utils.random_alpha_num(16)
assert Regex.match?(~r/^[a-zA-Z0-9_]*$/, id)
end
test "Generated docker container Ids are different... | 31.923077 | 73 | 0.677108 |
97f5a70819ed29193b6024e45fefe0bdb418b91a | 1,381 | ex | Elixir | lib/pixel_font/table_source/os_2/unicode_ranges.ex | Dalgona/pixel_font | 6a65bf85e5228296eb29fddbfdd690565767ff76 | [
"MIT"
] | 17 | 2020-09-14T15:25:38.000Z | 2022-03-05T17:14:24.000Z | lib/pixel_font/table_source/os_2/unicode_ranges.ex | Dalgona/pixel_font | 6a65bf85e5228296eb29fddbfdd690565767ff76 | [
"MIT"
] | 1 | 2021-08-19T05:05:37.000Z | 2021-08-19T05:05:37.000Z | lib/pixel_font/table_source/os_2/unicode_ranges.ex | Dalgona/pixel_font | 6a65bf85e5228296eb29fddbfdd690565767ff76 | [
"MIT"
] | null | null | null | defmodule PixelFont.TableSource.OS_2.UnicodeRanges do
data =
:pixel_font
|> :code.priv_dir()
|> Path.join("unicode_ranges.txt")
|> File.open!([:read, :utf8])
|> IO.stream(:line)
|> Stream.map(&String.trim/1)
|> Stream.map(&String.split/1)
|> Stream.map(fn [bit_num_str, ranges_str] ->
... | 24.660714 | 60 | 0.549602 |
97f5f596cc096a18987548ab086184a160bc8dc2 | 362 | ex | Elixir | lib/application.ex | coby-spotim/plug-body-validator | 6b9f0912c6cd3d654e374358f3141496093b5034 | [
"MIT"
] | null | null | null | lib/application.ex | coby-spotim/plug-body-validator | 6b9f0912c6cd3d654e374358f3141496093b5034 | [
"MIT"
] | null | null | null | lib/application.ex | coby-spotim/plug-body-validator | 6b9f0912c6cd3d654e374358f3141496093b5034 | [
"MIT"
] | null | null | null | defmodule ParamsValidation.Application do
@moduledoc """
An application module used purely for quick router testing.
"""
use Application
def start(_type, _args) do
children = [
Plug.Adapters.Cowboy.child_spec(:http, ParamsValidation.RouterTester, [], port: 4000)
]
Supervisor.start_link(ch... | 22.625 | 91 | 0.718232 |
97f613ce4ce05810aea5ff3df697d1749d2b067c | 84 | exs | Elixir | home_page_local/test/home_page_web/views/layout_view_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 8 | 2019-06-02T05:02:36.000Z | 2021-08-11T04:23:10.000Z | home_page_local/test/home_page_web/views/layout_view_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 7 | 2019-05-15T08:32:51.000Z | 2020-06-10T07:46:43.000Z | home_page_local/test/home_page_web/views/layout_view_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 1 | 2019-06-02T05:02:47.000Z | 2019-06-02T05:02:47.000Z | defmodule HomePageWeb.LayoutViewTest do
use HomePageWeb.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
97f6346fab3763b4b5ef695751993c065556be30 | 3,244 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/ssl_health_check.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/ssl_health_check.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/ssl_health_check.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.705882 | 289 | 0.717941 |
97f65200cb91f50f21ba362a1ffa20438ac3a6bc | 1,527 | exs | Elixir | test/json_test.exs | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | test/json_test.exs | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | test/json_test.exs | AlloyCI/kerosene | 9cba2a414d34ca0f5c5796f7e17d175374ca2b42 | [
"MIT"
] | null | null | null | defmodule Kerosene.JSONTest do
use ExUnit.Case, async: true
test "renders a list of links in json format" do
expected = [
%{label: "First", url: "/products?category=25&page=1", page: 1, current: false},
%{label: "<", url: "/products?category=25&page=6", page: 6, current: false},
%{label: "2",... | 52.655172 | 86 | 0.611657 |
97f67d992816211f0124fe4b55bb50aac6576efa | 533 | ex | Elixir | lib/sealax_web/views/error_view.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | lib/sealax_web/views/error_view.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | 9 | 2021-08-19T01:09:55.000Z | 2022-03-08T01:18:45.000Z | lib/sealax_web/views/error_view.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | defmodule SealaxWeb.ErrorView do
use SealaxWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from
... | 31.352941 | 83 | 0.718574 |
97f68181f14726a60e51a128ef1c45eb995aef4c | 1,399 | ex | Elixir | web/models/document_registry.ex | Microflow/how-can-we-fix | 62f84e1c1d69a84d81cfbfcb08e2733165aa4ec6 | [
"MIT"
] | 93 | 2017-08-17T13:52:53.000Z | 2022-02-06T17:28:35.000Z | web/models/document_registry.ex | rudi-c/alchemy-book | 979e1f08711eb3449913be47cddf1969beff518c | [
"MIT"
] | 6 | 2017-10-07T22:55:46.000Z | 2019-04-03T20:05:30.000Z | web/models/document_registry.ex | Microflow/how-can-we-fix | 62f84e1c1d69a84d81cfbfcb08e2733165aa4ec6 | [
"MIT"
] | 11 | 2017-08-17T13:54:54.000Z | 2022-01-14T09:53:58.000Z | defmodule AlchemyBook.DocumentRegistry do
require Logger
use GenServer
alias AlchemyBook.Document
alias AlchemyBook.DocumentSession
def start_link() do
GenServer.start_link(__MODULE__, %{}, name: __MODULE__)
end
def lookup(document_id) do
GenServer.call(__MODULE__, {:look... | 33.309524 | 74 | 0.61544 |
97f6d54ce5c5b1c96f08c8dd890bb60985bc871b | 3,925 | ex | Elixir | test/support/noa_helper.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 9 | 2017-08-16T14:55:48.000Z | 2019-03-06T15:06:49.000Z | test/support/noa_helper.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | null | null | null | test/support/noa_helper.ex | handnot2/noa | c071798e2baf4649466ba37190070c3192c7c2c2 | [
"MIT"
] | 1 | 2022-03-17T18:32:59.000Z | 2022-03-17T18:32:59.000Z | defmodule Noa.NoaHelper do
import ExUnit.Assertions
use Phoenix.ConnTest
alias Noa.Actors.{Clients, Resources, Providers, Registrar}
alias Noa.Tokens.{AC, StubHandler}
def seed_test_context(initial_context \\ []) do
ctxt = load_test_data_desc()
|> create_providers()
|> create_resources()
|... | 29.291045 | 79 | 0.62242 |
97f6dee1445a4c0b1d9b30a12cdc763114a4d808 | 10,301 | ex | Elixir | test/support/factory.ex | mrhooray/plaid-elixir | 3fe1a3794c49cfa50af2b372990394f14c5b8054 | [
"MIT"
] | null | null | null | test/support/factory.ex | mrhooray/plaid-elixir | 3fe1a3794c49cfa50af2b372990394f14c5b8054 | [
"MIT"
] | null | null | null | test/support/factory.ex | mrhooray/plaid-elixir | 3fe1a3794c49cfa50af2b372990394f14c5b8054 | [
"MIT"
] | null | null | null | defmodule Plaid.Factory do
@moduledoc false
def http_response_body(:accounts) do
%{
"accounts" => [
%{
"account_id" => "vzeNDwK7KQIm4yEog683uElbp9GRLEFXGK98D",
"balances" => %{
"available" => 100,
"current" => 110,
"limit" => nil
}... | 28.455801 | 90 | 0.476556 |
97f6e7881870be77efb5585fb330a25121fffe01 | 16,834 | ex | Elixir | clients/iam_credentials/lib/google_api/iam_credentials/v1/api/projects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/iam_credentials/lib/google_api/iam_credentials/v1/api/projects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/iam_credentials/lib/google_api/iam_credentials/v1/api/projects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.510101 | 228 | 0.668647 |
97f6f0e5f8185d24ac2b68d5830526aedb47d373 | 286 | ex | Elixir | lib/redbird.ex | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | null | null | null | lib/redbird.ex | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | null | null | null | lib/redbird.ex | ashleyconnor/redbird | 7190d1585a5288737e3643d00947a8f29f071841 | [
"MIT"
] | null | null | null | defmodule Redbird do
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
worker(Redbird.Redis, [Redbird.Redis.pid()])
]
opts = [strategy: :one_for_one, name: Redbird.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 19.066667 | 61 | 0.681818 |
97f7162af9f4a2b939fe7a34c34f0cafdad7f2c6 | 2,516 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/context_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_management/lib/google_api/service_management/v1/model/context_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_management/lib/google_api/service_management/v1/model/context_rule.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... | 42.644068 | 190 | 0.713831 |
97f73b35e0e2c26dbeca8501cc4b3786b0f1a0e7 | 510 | exs | Elixir | priv/repo/migrations/20190214182042_create_distributions.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | priv/repo/migrations/20190214182042_create_distributions.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | priv/repo/migrations/20190214182042_create_distributions.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule Webapp.Repo.Migrations.CreateDistributions do
use Ecto.Migration
def change do
create table(:distributions) do
add(:name, :string)
add(:version, :string)
add(:image, :string)
add(:loader, :string)
timestamps(type: :utc_datetime)
end
alter table(:machines) do
... | 23.181818 | 88 | 0.666667 |
97f74821ba27f031b1ae6228ab5cd107d5602d5e | 1,323 | ex | Elixir | lib/scenic/primitive/ellipse.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/ellipse.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/ellipse.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on June 6, 2018.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Ellipse do
use Scenic.Primitive
# alias Scenic.Primitive
# alias Scenic.Primitive.Style
@styles [:hidden, :fill, :stroke]
# ==============================================... | 25.941176 | 80 | 0.421769 |
97f76502cb3485d8e8f0d9153ede7b4eb681581e | 1,761 | exs | Elixir | clients/apigee/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/apigee/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.283582 | 97 | 0.646224 |
97f768d77148903dd44c278a40b9eb9df06da872 | 548 | ex | Elixir | lib/data/user/session.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/data/user/session.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/data/user/session.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.User.Session do
@moduledoc """
Schema for a session, track statistics about it
"""
use Data.Schema
alias Data.User
schema "sessions" do
field(:started_at, :utc_datetime_usec)
field(:seconds_online, :integer)
field(:commands, :map, default: %{})
belongs_to(:user, User)
... | 21.076923 | 77 | 0.677007 |
97f7a953a8845fa8b191e47566f54a3abee42f03 | 3,080 | exs | Elixir | kousa/test/broth/_message/user/admin_update_test.exs | willdoescode/dogehouse | e7697475f78c138d15ab9da880ba6738063739db | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/test/broth/_message/user/admin_update_test.exs | willdoescode/dogehouse | e7697475f78c138d15ab9da880ba6738063739db | [
"MIT"
] | null | null | null | kousa/test/broth/_message/user/admin_update_test.exs | willdoescode/dogehouse | e7697475f78c138d15ab9da880ba6738063739db | [
"MIT"
] | null | null | null | defmodule BrothTest.Message.User.AdminUpdateTest do
use ExUnit.Case, async: true
@moduletag :message
alias Broth.Message.User.AdminUpdate
setup do
{:ok, username: UUID.uuid4()}
end
describe "when you send an admin_update message" do
test "it populates username", %{username: username} do
as... | 33.11828 | 97 | 0.459416 |
97f7ab3c3eeaa058260723bb4cb7ce0a95edad41 | 5,390 | exs | Elixir | test/vuetaba_web/schema/mutations_test.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | 9 | 2019-04-10T12:30:20.000Z | 2020-09-07T15:07:02.000Z | test/vuetaba_web/schema/mutations_test.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | 3 | 2019-10-28T10:39:06.000Z | 2020-09-30T21:56:31.000Z | test/vuetaba_web/schema/mutations_test.exs | fobo66/vuetaba | 629514acd9680190085e35ec497b68191115e508 | [
"MIT"
] | null | null | null | defmodule VuetabaWeb.Schema.MutationsTest do
use Vuetaba.DataCase
require AbsintheErrorPayload.TestHelper
@moduledoc """
Tests for mutations
"""
def board_fields do
%{
name: :string,
tag: :string
}
end
describe "Boards" do
test "Insert board correct mutation" do
query = ... | 23.333333 | 97 | 0.543043 |
97f7ec8fac9de2334dae0555f1b242dce71d697c | 431 | exs | Elixir | test/test_helper.exs | 1player/graphql-elixir | e77132b4ca1dc78867a64b899600636f650467e1 | [
"BSD-3-Clause"
] | null | null | null | test/test_helper.exs | 1player/graphql-elixir | e77132b4ca1dc78867a64b899600636f650467e1 | [
"BSD-3-Clause"
] | null | null | null | test/test_helper.exs | 1player/graphql-elixir | e77132b4ca1dc78867a64b899600636f650467e1 | [
"BSD-3-Clause"
] | 1 | 2020-02-19T19:37:48.000Z | 2020-02-19T19:37:48.000Z | ExUnit.start()
defmodule ExUnit.TestHelpers do
import ExUnit.Assertions
def assert_tokens(input, tokens) do
case :graphql_lexer.string(input) do
{:ok, output, _} ->
assert output == tokens
{:error, {_, :graphql_lexer, output}, _} ->
assert output == tokens
end
end
def asse... | 22.684211 | 57 | 0.677494 |
97f7fba922548927e99b30d19f7820f5495524f5 | 1,115 | exs | Elixir | mix.exs | onyxrev/ethereum_wallet_elixir | 94a182e4de227af6cde769789df24173fbd2a430 | [
"Apache-2.0"
] | 1 | 2018-06-01T12:57:20.000Z | 2018-06-01T12:57:20.000Z | mix.exs | onyxrev/ethereum_wallet_elixir | 94a182e4de227af6cde769789df24173fbd2a430 | [
"Apache-2.0"
] | null | null | null | mix.exs | onyxrev/ethereum_wallet_elixir | 94a182e4de227af6cde769789df24173fbd2a430 | [
"Apache-2.0"
] | null | null | null | defmodule Ethereum.Wallet.Mixfile do
use Mix.Project
def project do
[
app: :ethereum_wallet,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
description: description(),
package: package(),
deps: deps()
]
end
def application do
[a... | 21.442308 | 89 | 0.600897 |
97f80dda4727b2db38093642d5c215a8f44dc5f1 | 376 | ex | Elixir | lib/ash/registry/extensions/resource_validations/resource_validations.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/registry/extensions/resource_validations/resource_validations.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/registry/extensions/resource_validations/resource_validations.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Registry.ResourceValidations do
@moduledoc """
Adds some top level validations of resources present in a registry
"""
@transformers [
Ash.Registry.ResourceValidations.Transformers.EnsureResourcesCompiled,
Ash.Registry.ResourceValidations.Transformers.ValidateRelatedResourceInclusion
]
... | 31.333333 | 82 | 0.803191 |
97f811bc6e87e6538615d2f060a66fb9e0888def | 344 | ex | Elixir | lib/supabase_surface/components/icons/icon_umbrella.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_umbrella.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_umbrella.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconUmbrella do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.umbrella(width: icon_size, height: icon_size)}
</IconConta... | 22.933333 | 66 | 0.72093 |
97f83a020909f9a953d9e1fcabca668388edfd73 | 414 | exs | Elixir | test/controllers/page_controller_test.exs | cazrin/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 50 | 2016-01-24T11:45:47.000Z | 2016-08-26T20:20:20.000Z | test/controllers/page_controller_test.exs | dnlgrv/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 1 | 2016-01-24T20:21:19.000Z | 2016-01-28T11:26:10.000Z | test/controllers/page_controller_test.exs | dnlgrv/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 3 | 2017-03-17T12:46:09.000Z | 2021-01-14T19:41:01.000Z | defmodule Stranger.PageControllerTest do
use Stranger.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Hello Stranger"
end
test "assigns an id" do
conn = get conn, "/"
assert conn.assigns.id
end
test "GET /agreement", %{conn: conn} do
co... | 21.789474 | 55 | 0.644928 |
97f8483af2804d17b9c1b32e72afa62b60b4f3b7 | 1,807 | exs | Elixir | mix.exs | activeprospect/ex_multipass | e23d2a5d12db615bff074eded20de441a7b524c9 | [
"MIT"
] | null | null | null | mix.exs | activeprospect/ex_multipass | e23d2a5d12db615bff074eded20de441a7b524c9 | [
"MIT"
] | 3 | 2019-09-10T14:23:03.000Z | 2021-09-23T17:05:29.000Z | mix.exs | activeprospect/ex_multipass | e23d2a5d12db615bff074eded20de441a7b524c9 | [
"MIT"
] | null | null | null | defmodule ExMultipass.MixProject do
use Mix.Project
def project do
[
app: :ex_multipass,
version: "0.3.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(... | 25.097222 | 76 | 0.558937 |
97f84c99139674cff0611412dd3b2c42801d0651 | 994 | ex | Elixir | lib/memento/capture/github/starred_repo.ex | fully-forged/memento | 03bf481f0bfb1c8fbf8b7b2d1a79f4ad5e681cbb | [
"MIT"
] | 103 | 2018-01-12T12:35:12.000Z | 2021-12-06T03:21:16.000Z | lib/memento/capture/github/starred_repo.ex | fully-forged/memento | 03bf481f0bfb1c8fbf8b7b2d1a79f4ad5e681cbb | [
"MIT"
] | 47 | 2018-01-12T15:40:04.000Z | 2022-03-25T02:11:47.000Z | lib/memento/capture/github/starred_repo.ex | fully-forged/memento | 03bf481f0bfb1c8fbf8b7b2d1a79f4ad5e681cbb | [
"MIT"
] | 9 | 2018-01-12T22:20:35.000Z | 2021-03-28T11:42:51.000Z | defmodule Memento.Capture.Github.StarredRepo do
@moduledoc false
def content_from_api_result(result) do
starred_at =
result
|> Map.get("starred_at")
|> parse_datetime
created_at =
result
|> get_in(["repo", "created_at"])
|> parse_datetime
pushed_at =
result
... | 24.85 | 90 | 0.609658 |
97f87420f48719087eab6de90aaf9dde547b6202 | 420 | exs | Elixir | priv/repo/migrations/20210820105349_remove_issue_types.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210820105349_remove_issue_types.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210820105349_remove_issue_types.exs | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | defmodule Cometoid.Repo.Migrations.RemoveIssueTypes do
use Ecto.Migration
def change do
alter table(:issues) do
add :issue_type, :string
end
execute("UPDATE issues SET issue_type=issue_types.title " <>
"FROM issue_types " <>
"WHERE issues.issue_type_id=issue_types.id")
... | 24.705882 | 64 | 0.671429 |
97f87b1fecf7603940b6aae8fbe52c55236b6706 | 2,539 | exs | Elixir | .iex.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | .iex.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | .iex.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | alias Sanbase.Model.{
Infrastructure,
MarketSegment,
LatestCoinmarketcapData,
ModelUtils,
ProjectBtcAddress,
Currency,
Ico,
IcoCurrency,
ProjectEthAddress,
Project,
LatestBtcWalletData
}
alias Sanbase.Accounts.{
User,
EthAccount,
Apikey,
Hmac,
UserApikeyToken,
UserSettings,
Settings... | 17.510345 | 72 | 0.776684 |
97f887d4c9aaa51ebad7c40b7a30d39d24149b65 | 4,379 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_asset_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_asset_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_asset_metadata.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... | 48.120879 | 328 | 0.718657 |
97f88a6855cab5e25c5abbdac2256ef3d3420386 | 1,840 | exs | Elixir | mix.exs | axelson/elixir-behavior-tree | 501a9ddf92c927017b00f26824cc0c4563998e49 | [
"MIT"
] | null | null | null | mix.exs | axelson/elixir-behavior-tree | 501a9ddf92c927017b00f26824cc0c4563998e49 | [
"MIT"
] | null | null | null | mix.exs | axelson/elixir-behavior-tree | 501a9ddf92c927017b00f26824cc0c4563998e49 | [
"MIT"
] | null | null | null | defmodule BehaviorTree.Mixfile do
use Mix.Project
@github_url "https://github.com/jschomay/elixir-behavior-tree"
def project do
[
app: :behavior_tree,
name: "Behavior Tree",
description: "A library for building AI's via composable behavior trees.",
version: "0.3.0",
source_url:... | 28.307692 | 80 | 0.580435 |
97f8a9a94c033df5c7a518e1ed16256457971c31 | 411 | ex | Elixir | lib/free_fall_web/live/components/shape.ex | neal-bpm/free_fall | aee7401689cf617d1aad247ea3e6c3ebd21320f0 | [
"MIT"
] | 1 | 2021-11-17T21:16:30.000Z | 2021-11-17T21:16:30.000Z | lib/free_fall_web/live/components/shape.ex | neal-bpm/free_fall | aee7401689cf617d1aad247ea3e6c3ebd21320f0 | [
"MIT"
] | null | null | null | lib/free_fall_web/live/components/shape.ex | neal-bpm/free_fall | aee7401689cf617d1aad247ea3e6c3ebd21320f0 | [
"MIT"
] | 9 | 2021-07-29T23:36:54.000Z | 2021-09-30T22:47:39.000Z | defmodule FreeFallWeb.Live.Components.Shape do
use Surface.LiveComponent
alias FreeFallWeb.Live.Components.Point
prop(points, :list, required: true)
def update(assigns, socket) do
{:ok, assign(socket, points: assigns.points)}
end
def render(assigns) do
~F"""
{#for {x, y, color} <- @points}
... | 21.631579 | 63 | 0.647202 |
97f8bcab46e13af64316145486eeea2512cba962 | 1,311 | ex | Elixir | lib/liquex/render/variable.ex | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 19 | 2020-02-29T01:37:11.000Z | 2022-03-15T06:45:20.000Z | lib/liquex/render/variable.ex | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 19 | 2020-09-02T19:35:08.000Z | 2022-03-31T21:42:16.000Z | lib/liquex/render/variable.ex | merchant-ly/liquex | 3ba72f82e9c2c57f11ef045a2028a5fc1add0d93 | [
"MIT"
] | 4 | 2020-10-20T08:22:43.000Z | 2022-01-19T17:21:32.000Z | defmodule Liquex.Render.Variable do
@moduledoc false
alias Liquex.Argument
alias Liquex.Context
alias Liquex.Render.Filter
@behaviour Liquex.Render
@impl Liquex.Render
@spec render(any, Context.t()) :: {iodata, Context.t()}
def render({:variable, tag}, context), do: do_render(tag, context)
def rend... | 27.893617 | 75 | 0.643783 |
97f92602cb840d0f9ce541db78f88088f324191c | 441 | exs | Elixir | test/lib/services/parser/lcov_test.exs | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | test/lib/services/parser/lcov_test.exs | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | test/lib/services/parser/lcov_test.exs | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Services.Parser.LcovTests do
use ExUnit.Case
alias Librecov.Parser.Lcov
test "it parses an lcov" do
{:ok, source_files} = Librecov.Fixtures.dummy_lcov() |> Lcov.parse()
source_files
|> Enum.each(fn source_file ->
assert is_list(source_file.branches)
assert is_list(sour... | 25.941176 | 72 | 0.714286 |
97f92a11c9dea80d265115e1e903838c52ceb2fa | 2,106 | ex | Elixir | lib/graphql/resolvers/document.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/resolvers/document.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/resolvers/document.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.GraphQL.Resolvers.Document do
require Ecto.Query
alias Accent.{
Document,
DocumentManager,
GraphQL.Paginated,
Plugs.GraphQLContext,
Project,
Repo
}
alias Accent.Scopes.Document, as: DocumentScope
alias Movement.Builders.DocumentDelete, as: DocumentDeleteBuilder
al... | 30.521739 | 108 | 0.6415 |
97f9bc57af0e21dbe6216568a388f5236190bdd1 | 3,331 | exs | Elixir | config/prod.exs | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | null | null | null | config/prod.exs | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | null | null | null | config/prod.exs | abousamra/firestorm | 4270774cb6f47be2f6341cfaac62fd44d3d10505 | [
"MIT"
] | 1 | 2020-03-20T12:58:37.000Z | 2020-03-20T12:58:37.000Z | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# FirestormWeb.Web.Endpoint.load_from_system_env/1 dynamically.
# Any dynamic configuration should be moved to such func... | 35.063158 | 77 | 0.735215 |
97f9cb5bc7ad767169370203c309af6df0cf828a | 45,998 | ex | Elixir | bench/lib/datasets/google_message3/benchmark_message3_1.pb.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 209 | 2020-11-19T11:17:27.000Z | 2022-03-20T12:47:31.000Z | bench/lib/datasets/google_message3/benchmark_message3_1.pb.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 101 | 2020-11-22T20:20:11.000Z | 2022-03-06T16:09:26.000Z | bench/lib/datasets/google_message3/benchmark_message3_1.pb.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 35 | 2020-11-26T14:45:13.000Z | 2022-03-22T23:22:00.000Z | defmodule Benchmarks.GoogleMessage3.Message34390 do
@moduledoc false
use Protobuf, syntax: :proto2
field :field34452, 1, repeated: true, type: Benchmarks.GoogleMessage3.Message34387
end
defmodule Benchmarks.GoogleMessage3.Message34624 do
@moduledoc false
use Protobuf, syntax: :proto2
field :field34683, 1... | 30.995957 | 96 | 0.666638 |
97f9cb81926ccbc5e511bed610b7139d4dbe3ed0 | 3,698 | ex | Elixir | apps/core/lib/core/validators/reference.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/validators/reference.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/validators/reference.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Validators.Reference do
@moduledoc """
Validates reference existance
"""
alias Core.CapitationContractRequests
alias Core.ContractRequests.CapitationContractRequest
alias Core.ContractRequests.ReimbursementContractRequest
alias Core.Divisions
alias Core.Divisions.Division
alias Core.Em... | 28.015152 | 109 | 0.659546 |
97fa57197973382b8d73b03e4569681ced2c4233 | 708 | exs | Elixir | day_01.exs | itwasscience/AdventOfCode-2021 | 45867c902f737ed22291826b7ce8dcf8c932e8af | [
"MIT"
] | null | null | null | day_01.exs | itwasscience/AdventOfCode-2021 | 45867c902f737ed22291826b7ce8dcf8c932e8af | [
"MIT"
] | null | null | null | day_01.exs | itwasscience/AdventOfCode-2021 | 45867c902f737ed22291826b7ce8dcf8c932e8af | [
"MIT"
] | null | null | null | defmodule Day_01 do
def part_1() do
get_depths()
|> Enum.chunk_every(2, 1, :discard)
|> Enum.map(fn [previous, current] -> current > previous end)
|> Enum.count(& &1)
|> IO.inspect()
end
def part_2() do
get_depths()
|> Enum.chunk_every(3, 1, :discard)
|> Enum.map(&Enum.sum/1)
... | 22.125 | 65 | 0.580508 |
97fa6115bc262fe30cba234e7ee45ee1dcbbb97a | 993 | exs | Elixir | datastructure.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"Apache-2.0"
] | null | null | null | datastructure.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"Apache-2.0"
] | null | null | null | datastructure.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"Apache-2.0"
] | null | null | null | # List of Map entry, keywordlist
listmap = [{:a, 1}, {:b, 2}] #keyword argument must be followed by space after: a:
listmap == [a: 1, b: 2]
listmap[:a]
# In general, when the keyword list is the last argument of a function, the square brackets are optional.
# https://elixir-lang.org/getting-started/keywords-and-maps.h... | 34.241379 | 108 | 0.603223 |
97fa7aa63258ff04aff716f7da1fd74042fd16d0 | 978 | ex | Elixir | lib/scenic/primitive/style/scissor.ex | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/scissor.ex | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/scissor.ex | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on June 6, 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Style.Scissor do
@moduledoc false
use Scenic.Primitive.Style
# ============================================================================
# data verification and serializat... | 22.744186 | 80 | 0.464213 |
97fa9e208041239bc20f2cb0472790ce2c565b33 | 1,644 | exs | Elixir | config/config.exs | miguelcoba/saturn | c5b4386c32ea9c1862638e08707b2cf346a1092e | [
"MIT"
] | 9 | 2021-11-02T11:11:41.000Z | 2022-03-04T07:39:22.000Z | config/config.exs | miguelcoba/saturn | c5b4386c32ea9c1862638e08707b2cf346a1092e | [
"MIT"
] | null | null | null | config/config.exs | miguelcoba/saturn | c5b4386c32ea9c1862638e08707b2cf346a1092e | [
"MIT"
] | 5 | 2021-11-27T00:14:13.000Z | 2022-03-04T07:17:49.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :saturn,
ecto_repos: [Saturn.Repo]
# Config... | 31.615385 | 84 | 0.73601 |
97faadc9f25368b6af0383e63cb1044a0112def2 | 101 | exs | Elixir | config/config.exs | annatel/captain_hook_signature | 0bb4cbbee10c0e1a51589e6187dde9f90763c118 | [
"MIT"
] | null | null | null | config/config.exs | annatel/captain_hook_signature | 0bb4cbbee10c0e1a51589e6187dde9f90763c118 | [
"MIT"
] | null | null | null | config/config.exs | annatel/captain_hook_signature | 0bb4cbbee10c0e1a51589e6187dde9f90763c118 | [
"MIT"
] | null | null | null | import Config
if Mix.env() == :test do
config :plug, :validate_header_keys_during_test, false
end
| 16.833333 | 56 | 0.752475 |
97faaf5fc7fe7303fb04482cc4ee0caacfa6c692 | 405 | exs | Elixir | echo/test/echo_web/views/error_view_test.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 1 | 2021-09-14T01:52:42.000Z | 2021-09-14T01:52:42.000Z | echo/test/echo_web/views/error_view_test.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 1 | 2021-09-17T11:30:04.000Z | 2021-09-17T11:30:04.000Z | echo/test/echo_web/views/error_view_test.exs | lamboap/liveview_sept_2021 | 495731c20484a0e63e5fb768956b98d57b44be8f | [
"MIT"
] | 4 | 2021-09-14T00:04:39.000Z | 2021-09-15T15:14:52.000Z | defmodule EchoWeb.ErrorViewTest do
use EchoWeb.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(EchoWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert rend... | 27 | 89 | 0.725926 |
97fad3bf2b8ca6036c48c467efeaaa6c55391ec1 | 3,765 | exs | Elixir | test/nebulex/adapters/multilevel_inclusive_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 845 | 2017-02-14T14:16:11.000Z | 2022-03-30T04:13:08.000Z | test/nebulex/adapters/multilevel_inclusive_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 146 | 2017-04-29T16:11:14.000Z | 2022-03-29T08:49:05.000Z | test/nebulex/adapters/multilevel_inclusive_test.exs | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 50 | 2017-08-17T13:44:06.000Z | 2022-03-30T11:29:59.000Z | defmodule Nebulex.Adapters.MultilevelInclusiveTest do
use ExUnit.Case, async: true
use Nebulex.NodeCase
use Nebulex.MultilevelTest
use Nebulex.Cache.QueryableTest
use Nebulex.Cache.TransactionTest
import Nebulex.CacheCase
alias Nebulex.Adapters.Local.Generation
alias Nebulex.Cache.Cluster
alias Nebu... | 28.308271 | 96 | 0.614874 |
97fb04500e5d00c9e38e9e4adaa80272c80ce29c | 139 | exs | Elixir | config/dogma.exs | thiamsantos/heartcheck-elixir | bb8b003c3c0a79332837c34fc1287f493832108c | [
"MIT"
] | null | null | null | config/dogma.exs | thiamsantos/heartcheck-elixir | bb8b003c3c0a79332837c34fc1287f493832108c | [
"MIT"
] | null | null | null | config/dogma.exs | thiamsantos/heartcheck-elixir | bb8b003c3c0a79332837c34fc1287f493832108c | [
"MIT"
] | null | null | null | use Mix.Config
alias Dogma.Rule
config :dogma,
rule_set: Dogma.RuleSet.All,
override: [
%Rule.LineLength{ max_length: 120 },
]
| 13.9 | 40 | 0.683453 |
97fb0a9a4fd236111321ce05b8b2683e6ac2b1a0 | 1,450 | exs | Elixir | test/views/course_matrix_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | test/views/course_matrix_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | test/views/course_matrix_test.exs | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlanner.CourseMatrixViewTest do
use CoursePlannerWeb.ConnCase, async: true
alias CoursePlannerWeb.CourseMatrixView
import CoursePlanner.Factory
test "course_name/1" do
course = insert(:course)
offered_course1 = insert(:offered_course)
offered_course2 = insert(:offered_course, cours... | 34.52381 | 120 | 0.741379 |
97fb14a60aa54e1663811831105333b3571fa428 | 2,683 | exs | Elixir | test/lib/elistrix/dispatcher_test.exs | tobz/elistrix | c9dd8a8369000492240969ada2b763433768aafa | [
"MIT"
] | 15 | 2015-05-05T07:22:23.000Z | 2019-08-16T12:08:56.000Z | test/lib/elistrix/dispatcher_test.exs | tobz/elistrix | c9dd8a8369000492240969ada2b763433768aafa | [
"MIT"
] | null | null | null | test/lib/elistrix/dispatcher_test.exs | tobz/elistrix | c9dd8a8369000492240969ada2b763433768aafa | [
"MIT"
] | null | null | null | defmodule Elistrix.DispatcherTest do
use ExUnit.Case, async: true
test "can register new command" do
fun = fn a -> a * 2 end
result = Elistrix.Dispatcher.register("doubler", fun)
assert result == :ok
end
test "cannot register existing command" do
fun = fn a -> a * 3 end
result = Elistrix... | 28.542553 | 118 | 0.677972 |
97fb3e942729279cbc3b6824edaf4c73f9223286 | 1,993 | exs | Elixir | config/prod.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | config/prod.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | config/prod.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.634921 | 64 | 0.733066 |
97fb51b6b98f2787a25cea0240fdeab70f148ac0 | 1,206 | ex | Elixir | lib/handlers/IRC/login.ex | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 19 | 2015-07-21T04:58:12.000Z | 2022-01-20T23:25:18.000Z | lib/handlers/IRC/login.ex | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 3 | 2020-07-17T22:29:17.000Z | 2020-07-20T00:31:41.000Z | lib/handlers/IRC/login.ex | aeturnum/blur | e59bb4a7451cea60d92166e495a3029645a1ffaf | [
"MIT"
] | 3 | 2015-08-26T14:59:37.000Z | 2021-05-05T04:00:06.000Z | defmodule Blur.IRC.Login do
@moduledoc """
Handle the IRC login messages
"""
require Logger
use GenServer
alias ExIRC.Client
@doc """
Start login handler
"""
@spec start_link(list) :: GenServer.on_start()
def start_link([client, channels]) do
GenServer.start_link(__MODULE__, [client, channel... | 23.647059 | 88 | 0.66335 |
97fb735849edbaa277fd85aab3d6ea47658d92f5 | 833 | exs | Elixir | config/config.exs | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | 2 | 2017-07-25T09:12:57.000Z | 2017-07-25T11:25:07.000Z | config/config.exs | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | null | null | null | config/config.exs | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | 1 | 2018-10-29T18:53:04.000Z | 2018-10-29T18:53:04.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.
use Mix.Config
# Configures the endpoint
config :take_it_for_a_spin, TakeItForASpin.Endpoint,
url:... | 34.708333 | 74 | 0.757503 |
97fbb935f536568d5935ddd98a0bc264fb3e07a8 | 1,021 | exs | Elixir | test/rosetta_euler/objective_c_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 36 | 2015-01-24T08:11:52.000Z | 2021-03-21T00:32:00.000Z | test/rosetta_euler/objective_c_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | null | null | null | test/rosetta_euler/objective_c_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 4 | 2015-01-24T08:17:42.000Z | 2022-01-11T16:10:56.000Z | Code.require_file "../rosetta_euler_test.exs", __DIR__
Code.require_file "../support/answers.exs", __DIR__
defmodule RosettaEuler.ObjectiveCTest do
use ExUnit.Case, async: true
import RosettaEuler.Test, only: [rosetta_euler_tests: 2]
import RosettaEuler.Answers, only: [answer_for: 1]
setup context do
{:o... | 27.594595 | 82 | 0.685602 |
97fbc81c2763bbe30ab464ffabc17bd36c7e84ea | 1,767 | ex | Elixir | lib/k8s/discovery/resource_finder.ex | pedep/k8s | 7390339e1f7d9a773ef54a761552a33373b31e25 | [
"MIT"
] | null | null | null | lib/k8s/discovery/resource_finder.ex | pedep/k8s | 7390339e1f7d9a773ef54a761552a33373b31e25 | [
"MIT"
] | null | null | null | lib/k8s/discovery/resource_finder.ex | pedep/k8s | 7390339e1f7d9a773ef54a761552a33373b31e25 | [
"MIT"
] | null | null | null | defmodule K8s.Discovery.ResourceFinder do
@moduledoc """
Kubernetes API Groups
"""
alias K8s.Discovery.ResourceNaming
@type error_t :: {:error, :unsupported_resource, binary}
@doc """
Get the REST resource name for a kubernetes `Kind`.
Since `K8s.Operation` is abstracted away from a specific cluster... | 32.127273 | 174 | 0.67176 |
97fbd3f51432d4405b04e3ede0b4a166cf19a11b | 124 | ex | Elixir | apps/domain/lib/domain/repo.ex | msk-access/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 3 | 2020-11-24T07:45:26.000Z | 2021-07-29T13:37:02.000Z | apps/domain/lib/domain/repo.ex | mskcc/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 52 | 2020-10-21T19:47:59.000Z | 2021-09-09T18:42:33.000Z | apps/domain/lib/domain/repo.ex | msk-access/seqosystem | 4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39 | [
"Apache-2.0"
] | 1 | 2020-12-15T03:33:31.000Z | 2020-12-15T03:33:31.000Z | defmodule Domain.Repo do
use Ecto.Repo,
otp_app: :domain,
adapter: Ecto.Adapters.Postgres
use ExAudit.Repo
end
| 15.5 | 35 | 0.717742 |
97fc058ecf2eac223c35b273f69b7925b06798cc | 1,722 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/request_utilization.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/request_utilization.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/request_utilization.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... | 34.44 | 112 | 0.745645 |
97fc121c1bf25319a2640fbf994bdd810d705948 | 224 | exs | Elixir | api/priv/repo/migrations/20170330204135_enable_uuid_extension.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | 3 | 2017-05-22T13:28:13.000Z | 2018-06-29T16:39:19.000Z | api/priv/repo/migrations/20170330204135_enable_uuid_extension.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | api/priv/repo/migrations/20170330204135_enable_uuid_extension.exs | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | defmodule Grook.Repo.Migrations.EnableUuidExtension do
use Ecto.Migration
def up do
execute "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";"
end
def down do
execute "DROP EXTENSION \"uuid-ossp\";"
end
end
| 18.666667 | 59 | 0.709821 |
97fc1dd17e99025839d9f474e3c9e6ce99b8bd2f | 1,582 | ex | Elixir | ur2/lib/ur2_web.ex | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | ur2/lib/ur2_web.ex | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | ur2/lib/ur2_web.ex | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | defmodule Ur2Web 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 Ur2Web, :controller
use Ur2Web, :view
The definitions below will be executed for every view,
controller, etc, so keep... | 22.6 | 83 | 0.67952 |
97fc35a56d6842b6952507cbe8807ad8a342a9bd | 229 | exs | Elixir | config/config.exs | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | 1 | 2020-05-14T18:52:05.000Z | 2020-05-14T18:52:05.000Z | config/config.exs | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | null | null | null | config/config.exs | ygunayer/potcu | d7b82ad9227161c93aedec03c4a1902c1d43780b | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id],
level: :debug
config :nostrum,
token: "your token here",
shards: :auto
import_config "#{Mix.env()}.exs"
| 17.615385 | 47 | 0.668122 |
97fc3e3b282feea5f58ef47a8d6f6c46b03f15f4 | 588 | ex | Elixir | lib/uf/mt.ex | edmaarcosta/IEEx | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | null | null | null | lib/uf/mt.ex | edmaarcosta/IEEx | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | 1 | 2017-12-05T15:58:10.000Z | 2017-12-05T15:58:10.000Z | lib/uf/mt.ex | edmaarcosta/ieex | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | 1 | 2018-10-01T19:35:47.000Z | 2018-10-01T19:35:47.000Z | defmodule IEEx.UF.MT do # 00130000019
alias IEEx.Util
@peso [3, 2, 9, 8, 7, 6, 5, 4, 3, 2]
def is_valid?(input) do
ie = Util.only_numbers(input)
if String.length(ie) == 11 do
l_ie = Util.parse_ie(ie)
# extrai digito verificador
[f_dig] = Util.get_digs(l_ie, 1)
# remove o digito ... | 20.275862 | 65 | 0.542517 |
97fc4d8b1921a5ee4c1955ace37939ecb866db83 | 446 | exs | Elixir | exercism/elixir/nth-prime/test/prime_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/nth-prime/test/prime_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/nth-prime/test/prime_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule PrimeTest do
use ExUnit.Case
test "first prime" do
assert Prime.nth(1) == 2
end
test "second prime" do
assert Prime.nth(2) == 3
end
test "sixth prime" do
assert Prime.nth(6) == 13
end
test "100th prime" do
assert Prime.nth(100) == 541
end
@tag :slow
test "big prime" ... | 15.37931 | 38 | 0.630045 |
97fc50dc7f8885cb41ab7b7c141fd11f871a28ed | 2,272 | ex | Elixir | lib/madari_web/telemetry.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | lib/madari_web/telemetry.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | lib/madari_web/telemetry.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | defmodule MadariWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn m... | 31.555556 | 88 | 0.652289 |
97fc664a6be224064aa3fc9d1d0ce02689e62bb9 | 707 | ex | Elixir | lib/xeroxero/core_api/models/purchase_orders.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-12-01T18:21:31.000Z | 2021-12-01T18:21:31.000Z | lib/xeroxero/core_api/models/purchase_orders.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | null | null | null | lib/xeroxero/core_api/models/purchase_orders.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-10-01T12:09:46.000Z | 2021-10-01T12:09:46.000Z | defmodule XeroXero.CoreApi.Models.PurchaseOrders do
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder, except: [:__meta__, :id]}
schema "purchaseorders" do
embeds_many :PurchaseOrders, XeroXero.CoreApi.Models.PurchaseOrders.PurchaseOrder
end
def from_map(data)... | 26.185185 | 90 | 0.605375 |
97fc6c42b0ac726d940f7792207013ac93f3d7fb | 46 | ex | Elixir | test/fixtures/gentester/lib/gentester.ex | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 51 | 2018-01-07T03:41:05.000Z | 2021-06-17T21:39:27.000Z | test/fixtures/gentester/lib/gentester.ex | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 42 | 2017-12-24T04:36:39.000Z | 2019-05-21T01:32:00.000Z | test/fixtures/gentester/lib/gentester.ex | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 2 | 2018-06-15T11:46:28.000Z | 2018-08-22T16:03:56.000Z | defmodule Gentester do
@moduledoc false
end
| 11.5 | 22 | 0.804348 |
97fc8320b203fad65f8b4ed1da9bfad1512b2af9 | 212 | ex | Elixir | text_client/lib/text_client/mover.ex | CraigTreptow/elixir-for-programmers | b2a96f12b1dd8621d337e7d15c504f12b079cd3e | [
"MIT"
] | 1 | 2018-10-17T15:13:34.000Z | 2018-10-17T15:13:34.000Z | text_client/lib/text_client/mover.ex | CraigTreptow/elixir-for-programmers | b2a96f12b1dd8621d337e7d15c504f12b079cd3e | [
"MIT"
] | null | null | null | text_client/lib/text_client/mover.ex | CraigTreptow/elixir-for-programmers | b2a96f12b1dd8621d337e7d15c504f12b079cd3e | [
"MIT"
] | null | null | null | defmodule TextClient.Mover do
alias TextClient.State
def make_move( game = %State{ } ) do
new_tally = Hangman.make_move( game.game_service, game.guess )
%State{ game | tally: new_tally }
end
end
| 19.272727 | 66 | 0.698113 |
97fca476938bff03e531f253aec642b8013896c0 | 17,049 | ex | Elixir | lib/challenge_gov/submissions.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | lib/challenge_gov/submissions.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | lib/challenge_gov/submissions.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | defmodule ChallengeGov.Submissions do
@moduledoc """
Context for Submissions
"""
@behaviour Stein.Filter
import Ecto.Query
alias ChallengeGov.Accounts
alias ChallengeGov.Emails
alias ChallengeGov.GovDelivery
alias ChallengeGov.Mailer
alias ChallengeGov.Repo
alias ChallengeGov.SecurityLogs
ali... | 27.191388 | 101 | 0.63599 |
97fd16304d263e9cda0eefc058cd1f75ae376da1 | 1,993 | ex | Elixir | lib/cocktail/validation/schedule_lock.ex | AltoFinancial/cocktail | c45207bf968e28a52f673cbbe520296b34c39fba | [
"MIT"
] | null | null | null | lib/cocktail/validation/schedule_lock.ex | AltoFinancial/cocktail | c45207bf968e28a52f673cbbe520296b34c39fba | [
"MIT"
] | null | null | null | lib/cocktail/validation/schedule_lock.ex | AltoFinancial/cocktail | c45207bf968e28a52f673cbbe520296b34c39fba | [
"MIT"
] | 1 | 2020-09-30T05:51:52.000Z | 2020-09-30T05:51:52.000Z | defmodule Cocktail.Validation.ScheduleLock do
@moduledoc false
import Integer, only: [mod: 2]
import Cocktail.Validation.Shift
@type lock :: :second | :minute | :hour | :wday | :mday
@type t :: %__MODULE__{type: lock}
@enforce_keys [:type]
defstruct type: nil
@spec new(lock) :: t
def new(type), d... | 32.672131 | 111 | 0.669844 |
97fd19046e14888bf76422ff5478e3a1ff547af4 | 2,041 | exs | Elixir | test/hubspot/contacts/contact_lists_api_request_test.exs | jrissler/ex_hubspot | 1f9f48e499c090e3fd20e991fe88e74b1ed9aedb | [
"MIT"
] | null | null | null | test/hubspot/contacts/contact_lists_api_request_test.exs | jrissler/ex_hubspot | 1f9f48e499c090e3fd20e991fe88e74b1ed9aedb | [
"MIT"
] | null | null | null | test/hubspot/contacts/contact_lists_api_request_test.exs | jrissler/ex_hubspot | 1f9f48e499c090e3fd20e991fe88e74b1ed9aedb | [
"MIT"
] | null | null | null | defmodule ExHubspot.ContactListsApiRequestTest do
@moduledoc false
use ExUnit.Case, async: false
alias Hubspot.{Request, Paths}
test "hubspot contact lists request with success returns contact lists" do
response = Request.get_request(Paths.contact_lists_path())
{:ok, body} = response
assert leng... | 40.019608 | 87 | 0.762861 |
97fd2aba64e6a402e42a4ee22d34a4b900e7f2a9 | 6,761 | ex | Elixir | lib/phoenix/endpoint/cowboy2_handler.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/cowboy2_handler.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | 1 | 2021-03-10T19:38:43.000Z | 2021-03-10T19:38:43.000Z | lib/phoenix/endpoint/cowboy2_handler.ex | jesseshieh/phoenix | 1776e9df0a71de67374ed488b3f00ccb434045b3 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.Cowboy2Handler do
@moduledoc false
if Code.ensure_loaded?(:cowboy_websocket) and
function_exported?(:cowboy_websocket, :behaviour_info, 1) do
@behaviour :cowboy_websocket
end
@connection Plug.Cowboy.Conn
@already_sent {:plug_conn, :sent}
@adapter :phoenix_cowboy
# ... | 30.872146 | 95 | 0.599172 |
97fd52b932d8b7b10bf04d59ee340d7458d00c96 | 3,126 | ex | Elixir | lib/parser/helpers.ex | Fullrate/cwmp_ex | f433b177e3363183e10ed3fa9c9087febbe8c223 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/parser/helpers.ex | Fullrate/cwmp_ex | f433b177e3363183e10ed3fa9c9087febbe8c223 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/parser/helpers.ex | Fullrate/cwmp_ex | f433b177e3363183e10ed3fa9c9087febbe8c223 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Parser.ElemState do
defstruct path: [],
handler: nil,
acc: nil
end
defmodule CWMP.Protocol.Parser.State do
defstruct stack: [],
last_text: "",
curstate: nil,
last_acc: nil
end
defmodule CWMP.Protocol.ParserHelpers do
alias CWMP.... | 24.421875 | 88 | 0.631478 |
97fdb983b1643d324c7d7317ce03db214031738d | 1,576 | exs | Elixir | test/phoenix_token_plug/ensure_authenticated_test.exs | bobbypriambodo/phoenix_token_plug | b9d64311b171ae1a0ca7ef98173293fb57b8e383 | [
"MIT"
] | 17 | 2016-12-06T15:50:27.000Z | 2020-07-07T13:15:17.000Z | test/phoenix_token_plug/ensure_authenticated_test.exs | bobbypriambodo/phoenix_token_plug | b9d64311b171ae1a0ca7ef98173293fb57b8e383 | [
"MIT"
] | 4 | 2016-12-06T00:27:32.000Z | 2017-08-27T10:04:29.000Z | test/phoenix_token_plug/ensure_authenticated_test.exs | bobbypriambodo/phoenix_token_plug | b9d64311b171ae1a0ca7ef98173293fb57b8e383 | [
"MIT"
] | 2 | 2020-05-14T07:54:47.000Z | 2021-05-09T16:26:00.000Z | defmodule PhoenixTokenPlug.EnsureAuthenticatedTest do
use ExUnit.Case, async: true
import Plug.Conn
alias PhoenixTokenPlug.EnsureAuthenticated
defmodule UnauthenticatedHandler do
def unauthenticated(conn, _params) do
conn |> put_status(401) |> assign(:unauthenticated, true)
end
def handle_... | 27.649123 | 77 | 0.697335 |
97fdcb9176d15322ab7d5be131407343f6292273 | 1,726 | ex | Elixir | lib/device_manager/device/histogram.ex | rosetta-home/cicada | a5ac51ecc202e1694dedc9875604fa3564ef4b3c | [
"Apache-2.0"
] | 7 | 2017-09-08T11:29:42.000Z | 2020-01-18T22:15:12.000Z | lib/device_manager/device/histogram.ex | rosetta-home/cicada | a5ac51ecc202e1694dedc9875604fa3564ef4b3c | [
"Apache-2.0"
] | null | null | null | lib/device_manager/device/histogram.ex | rosetta-home/cicada | a5ac51ecc202e1694dedc9875604fa3564ef4b3c | [
"Apache-2.0"
] | 2 | 2017-07-02T11:58:50.000Z | 2019-09-14T03:16:12.000Z | defmodule Cicada.DeviceManager.Device.Histogram do
use Supervisor
require Logger
alias Cicada.DeviceManager
alias Cicada.DeviceManager.Device
alias Cicada.DeviceManager.Device.Histogram
def start_link(id, %Device{} = device) do
Supervisor.start_link(__MODULE__, {id, device}, name: id)
end
def snap... | 28.766667 | 81 | 0.597335 |
97fe09ad0ece432d9a95074f1629082f8d94b936 | 2,605 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/operation_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/operation_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1/model/operation_metadata.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.016129 | 216 | 0.712092 |
97fe25498c6c9dd3cca646d50ff3c6628af64f6d | 1,131 | exs | Elixir | config/config.exs | TimLang/elixir_hessian | 578cac071f3434ee2380e8ae506cfafd6145c639 | [
"MIT"
] | null | null | null | config/config.exs | TimLang/elixir_hessian | 578cac071f3434ee2380e8ae506cfafd6145c639 | [
"MIT"
] | null | null | null | config/config.exs | TimLang/elixir_hessian | 578cac071f3434ee2380e8ae506cfafd6145c639 | [
"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.483871 | 73 | 0.7542 |
97fe2ff9a21e444b9a94bf323b3a62b1904cbeed | 491 | ex | Elixir | lib/utility_web/views/error_view.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | 25 | 2020-09-16T22:01:53.000Z | 2022-03-12T02:01:01.000Z | lib/utility_web/views/error_view.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | 2 | 2021-07-26T20:30:26.000Z | 2022-03-29T19:51:48.000Z | lib/utility_web/views/error_view.ex | zestcreative/elixir-utilities-web | 6d7545b61939a038bb277790bb9a9ccd683dd16a | [
"MIT"
] | null | null | null | defmodule UtilityWeb.ErrorView do
use UtilityWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name... | 28.882353 | 61 | 0.735234 |
97fe36340fcb9cd54283a1a10c218cb16d82533e | 1,571 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/pub_sub_io_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/pub_sub_io_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/pub_sub_io_details.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... | 31.42 | 98 | 0.723743 |
97fe40fce53b41a279518eaf65e0f6b929425e2f | 278 | ex | Elixir | lib/jeff/reply/keypad_data.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | lib/jeff/reply/keypad_data.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | lib/jeff/reply/keypad_data.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | defmodule Jeff.Reply.KeypadData do
@moduledoc """
Keypad Data Report
OSDP v2.2 Specification Reference: 7.12
"""
defstruct [:reader, :count, :keys]
def decode(<<reader, count, keys::binary>>) do
%__MODULE__{reader: reader, count: count, keys: keys}
end
end
| 19.857143 | 57 | 0.679856 |
97fe5f4ef95c1d371811fbc54ad6821ad9f7b871 | 2,938 | ex | Elixir | lib/quick_polls/web/controllers/poll_controller.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | lib/quick_polls/web/controllers/poll_controller.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | 6 | 2017-04-10T05:01:04.000Z | 2017-04-21T06:02:03.000Z | lib/quick_polls/web/controllers/poll_controller.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | defmodule QuickPolls.Web.PollController do
use QuickPolls.Web, :controller
alias QuickPolls.Repo
alias QuickPolls.Poll
alias QuickPolls.Poll.Question
alias QuickPolls.Web.RequireLogin
plug RequireLogin when action in [:new, :create, :edit, :update, :delete]
def index(conn, _params) do
render conn, ... | 29.38 | 80 | 0.607216 |
97fe6a422a2278ad4a811d736aa071d9c80b904a | 121 | exs | Elixir | test/fixtures/ex_doc/mix.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | test/fixtures/ex_doc/mix.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | test/fixtures/ex_doc/mix.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule ExDoc.Fixture.MixProject do
use Mix.Project
def project do
[app: :ex_doc, version: "0.0.1"]
end
end
| 15.125 | 37 | 0.68595 |
97fe75b3294bac51416d0ed80712ec71f504aa79 | 1,370 | ex | Elixir | lib/text_based_fps/text.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | 1 | 2022-03-02T12:18:07.000Z | 2022-03-02T12:18:07.000Z | lib/text_based_fps/text.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | 12 | 2021-05-31T21:41:09.000Z | 2021-07-30T03:18:09.000Z | lib/text_based_fps/text.ex | guisehn/elixir-text-based-fps | 59a815da337309297f8b42ef3481277dd4d9b371 | [
"MIT"
] | null | null | null | defmodule TextBasedFPS.Text do
@type color_t :: :success | :info | :danger
@spec all_colors() :: list(color_t)
def all_colors, do: [:success, :info, :danger]
@spec highlight(String.t()) :: String.t()
def highlight(text), do: paint(text, :info)
@spec danger(String.t()) :: String.t()
def danger(text), do... | 30.444444 | 86 | 0.648175 |
97fecafe2ee535244b27ec077076938b19c3936f | 1,821 | ex | Elixir | lib/filtrex/conditions/text.ex | NeoArcanjo/filtrex | 771045995d50704f3237cce6e060ab4507aa4629 | [
"MIT"
] | 181 | 2016-01-08T02:58:37.000Z | 2022-01-20T07:32:07.000Z | lib/filtrex/conditions/text.ex | NeoArcanjo/filtrex | 771045995d50704f3237cce6e060ab4507aa4629 | [
"MIT"
] | 53 | 2016-02-05T13:56:09.000Z | 2020-12-09T00:18:55.000Z | lib/filtrex/conditions/text.ex | NeoArcanjo/filtrex | 771045995d50704f3237cce6e060ab4507aa4629 | [
"MIT"
] | 27 | 2016-05-19T12:54:09.000Z | 2021-10-19T08:27:48.000Z | defmodule Filtrex.Condition.Text do
use Filtrex.Condition
@comparators ["equals", "does not equal", "contains", "does not contain"]
@type t :: Filtrex.Condition.Text.t
@moduledoc """
`Filtrex.Condition.Text` is a specific condition type for handling text filters with various comparisons. There are no configu... | 32.517857 | 166 | 0.658979 |
97ff2869ffc7d78b972c2ea5910b98ef7e1208a4 | 519 | exs | Elixir | priv/repo/migrations/20160710024225_create_roster_position.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | priv/repo/migrations/20160710024225_create_roster_position.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | priv/repo/migrations/20160710024225_create_roster_position.exs | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338.Repo.Migrations.CreateRosterPosition do
use Ecto.Migration
def change do
create table(:roster_positions) do
add :position, :string
add :fantasy_team_id, references(:fantasy_teams, on_delete: :delete_all)
add :fantasy_player_id, references(:fantasy_players,
... | 28.833333 | 78 | 0.678227 |
97ff6afddbd885eec9a3d2d16a53bd6219947638 | 2,166 | ex | Elixir | lib/filter_builder.ex | elliott-davis/steroids | 7a3419778fbacf51f4d69316d8a389a1631da953 | [
"Apache-2.0"
] | null | null | null | lib/filter_builder.ex | elliott-davis/steroids | 7a3419778fbacf51f4d69316d8a389a1631da953 | [
"Apache-2.0"
] | null | null | null | lib/filter_builder.ex | elliott-davis/steroids | 7a3419778fbacf51f4d69316d8a389a1631da953 | [
"Apache-2.0"
] | null | null | null | defmodule Steroids.FilterBuilder do
import Steroids.Utils, only: [boolMerge: 1, buildClause: 1]
@moduledoc """
Documentation for Filter Module.
"""
@spec new() :: list
def new, do: []
@spec filter(list, atom, keyword) :: list
def filter(filters, type, opts \\ [])
def filter(filters, type, opts) do
... | 36.1 | 110 | 0.677747 |
97ff6e10c50f83dab03d022a9489858dd8995cc7 | 3,023 | ex | Elixir | lib/location.ex | aeturnum/stenotype | 90e7b9be60ee748ab046f46005bd17b17f1d153a | [
"Apache-2.0"
] | null | null | null | lib/location.ex | aeturnum/stenotype | 90e7b9be60ee748ab046f46005bd17b17f1d153a | [
"Apache-2.0"
] | null | null | null | lib/location.ex | aeturnum/stenotype | 90e7b9be60ee748ab046f46005bd17b17f1d153a | [
"Apache-2.0"
] | null | null | null | defmodule Stenotype.Location do
@path_secs 2
defstruct file: "", line: 0, module: :none, function_atom: :none, arity: 0
@type t :: %__MODULE__{
file: binary(),
line: integer(),
module: atom(),
function_atom: atom(),
arity: integer()
}
def create(%{fil... | 24.184 | 84 | 0.588819 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.