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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
388079246df26692098744a2ba7d86a0f2571a75 | 73 | exs | Elixir | test/buttondown/operation_test.exs | christopherlai/buttondown | 018e42e398fb01415d6ff26bf1d8be330b83fb12 | [
"MIT",
"Unlicense"
] | 1 | 2020-01-19T03:00:36.000Z | 2020-01-19T03:00:36.000Z | test/buttondown/operation_test.exs | christopherlai/buttondown | 018e42e398fb01415d6ff26bf1d8be330b83fb12 | [
"MIT",
"Unlicense"
] | null | null | null | test/buttondown/operation_test.exs | christopherlai/buttondown | 018e42e398fb01415d6ff26bf1d8be330b83fb12 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule Buttondown.OperationTest do
use ExUnit.Case, async: true
end
| 18.25 | 37 | 0.808219 |
38807b889c370e54ba58ddbd1d282a83cc84e08c | 2,100 | exs | Elixir | test/paraiso_test.exs | keshihoriuchi/paraiso | c640f0019463e8e957a36504e48ac2a6da6ea332 | [
"MIT"
] | 1 | 2020-08-12T08:18:21.000Z | 2020-08-12T08:18:21.000Z | test/paraiso_test.exs | keshihoriuchi/paraiso | c640f0019463e8e957a36504e48ac2a6da6ea332 | [
"MIT"
] | null | null | null | test/paraiso_test.exs | keshihoriuchi/paraiso | c640f0019463e8e957a36504e48ac2a6da6ea332 | [
"MIT"
] | 1 | 2020-09-04T07:48:38.000Z | 2020-09-04T07:48:38.000Z | defmodule ParaisoTest do
use ExUnit.Case
doctest Paraiso
import Paraiso
test "example object" do
email_regex =
~r/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
props = [
prop(:user_id, :required, {:st... | 24.705882 | 143 | 0.479048 |
388087420bd7e15f3d077f7ed58ab346e14ea9c4 | 4,854 | exs | Elixir | test/ecto/query/builder_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | 1 | 2016-08-15T21:23:28.000Z | 2016-08-15T21:23:28.000Z | test/ecto/query/builder_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.BuilderTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder
doctest Ecto.Query.Builder
defp escape(quoted, vars) do
escape(quoted, :any, %{}, vars)
end
test "escape" do
assert {Macro.escape(quote do &0.y end), %{}} ==
escape(quote do x.y end, [x: 0])
... | 36.223881 | 129 | 0.528224 |
3880b405f802e66c2011626b617b631074b4c127 | 9,789 | ex | Elixir | lib/aws/generated/polly.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/polly.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/polly.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Polly do
@moduledoc """
Amazon Polly is a web service that makes it easy to synthesize speech from text.
The Amazon Polly service provides API operations for synthesizing high-quality
spe... | 34.712766 | 145 | 0.676269 |
3880e0347bdb6260c29fee1630e4e3d514c32239 | 1,315 | ex | Elixir | advent_umbrella_2016/apps/day18/lib/memoize.ex | lauromoura/adventofcode | 320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78 | [
"Unlicense"
] | null | null | null | advent_umbrella_2016/apps/day18/lib/memoize.ex | lauromoura/adventofcode | 320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78 | [
"Unlicense"
] | null | null | null | advent_umbrella_2016/apps/day18/lib/memoize.ex | lauromoura/adventofcode | 320dc1ea7099fbc7c3ffcbc406bfc0aa236c3b78 | [
"Unlicense"
] | null | null | null | defmodule Memoize do
alias Memoize.ResultTable
defmacro defmem(header, do: body) do
{ name, _meta, vars } = header
quote do
def unquote(header) do
case ResultTable.get(unquote(name), unquote(vars)) do
{ :hit, result } ->
result
:miss ->
result = un... | 24.811321 | 94 | 0.569582 |
3880e333dc0a267990ebd606a894fceed453cb7e | 1,277 | exs | Elixir | apps/chatter_web/test/chatter_web/views/users_live/new_test.exs | barboza/chatter | 16a56aea83eceb0fd1a709f3bc8d3a24812996cd | [
"MIT"
] | 2 | 2019-08-29T19:35:01.000Z | 2019-08-31T04:08:03.000Z | apps/chatter_web/test/chatter_web/views/users_live/new_test.exs | barboza/chatter | 16a56aea83eceb0fd1a709f3bc8d3a24812996cd | [
"MIT"
] | 1 | 2021-03-09T16:10:46.000Z | 2021-03-09T16:10:46.000Z | apps/chatter_web/test/chatter_web/views/users_live/new_test.exs | barboza/chatter | 16a56aea83eceb0fd1a709f3bc8d3a24812996cd | [
"MIT"
] | null | null | null | defmodule ChatterWeb.UserLive.NewTest do
use ChatterWeb.ConnCase
import Phoenix.LiveViewTest
alias ChatterWeb.Router.Helpers, as: Routes
@endpoint ChatterWeb.Endpoint
test "renders new user page", %{conn: conn} do
{:ok, _view, html} = live(conn, Routes.live_path(conn, ChatterWeb.UserLive.New))
asser... | 31.925 | 98 | 0.656226 |
3880e581e2d3516f7edf909658a502e6c7db8852 | 1,668 | ex | Elixir | lib/miles_to_go_web/controllers/user_confirmation_controller.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | 6 | 2020-12-18T08:36:32.000Z | 2021-06-13T03:02:16.000Z | lib/miles_to_go_web/controllers/user_confirmation_controller.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | lib/miles_to_go_web/controllers/user_confirmation_controller.ex | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | defmodule MilesToGoWeb.UserConfirmationController do
use MilesToGoWeb, :controller
alias MilesToGo.Accounts
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => email}}) do
if user = Accounts.get_user_by_email(email) do
Accounts.deliver_user_confirm... | 30.888889 | 91 | 0.622302 |
388119767d59a7d085bc2b7d67e46b8d7cdb387f | 514 | exs | Elixir | config/travis.exs | lee-dohm/atom-theme-preview | be64d8be2c2cdaaffe9366b18ea0105f409bb492 | [
"MIT"
] | 1 | 2017-11-13T05:51:57.000Z | 2017-11-13T05:51:57.000Z | config/travis.exs | lee-dohm/atom-theme-preview | be64d8be2c2cdaaffe9366b18ea0105f409bb492 | [
"MIT"
] | null | null | null | config/travis.exs | lee-dohm/atom-theme-preview | be64d8be2c2cdaaffe9366b18ea0105f409bb492 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :theme_preview, ThemePreviewWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :theme_pr... | 25.7 | 56 | 0.745136 |
3881336ee9d034aa80e2ff3b0059253df7d2d3b2 | 601 | exs | Elixir | priv/templates/brando.install/config/runtime.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | priv/templates/brando.install/config/runtime.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | priv/templates/brando.install/config/runtime.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | import Config
config :<%= application_name %>, <%= application_module %>Web.Endpoint,
secret_key_base: System.get_env("BRANDO_SECRET_KEY_BASE"),
url: [
scheme: System.get_env("BRANDO_URL_SCHEME"),
host: System.get_env("BRANDO_URL_HOST"),
port: System.get_env("BRANDO_URL_PORT")
]
config :<%= applicat... | 35.352941 | 81 | 0.732113 |
38815c509b8597244b349e084cf8264893099852 | 4,023 | exs | Elixir | test/test_helper.exs | ayrat-forks/mariaex | 822dbb27f271b0c8f9e82e9c41a91589fdbcc072 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | ayrat-forks/mariaex | 822dbb27f271b0c8f9e82e9c41a91589fdbcc072 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | ayrat-forks/mariaex | 822dbb27f271b0c8f9e82e9c41a91589fdbcc072 | [
"Apache-2.0"
] | null | null | null | ExUnit.configure exclude: [:ssl_tests]
ExUnit.start()
run_cmd = fn cmd ->
key = :ecto_setup_cmd_output
Process.put(key, "")
status = Mix.Shell.cmd(cmd, fn(data) ->
current = Process.get(key)
Process.put(key, current <> data)
end)
output = Process.get(key)
Process.put(key, "")
{status, output}
end... | 29.8 | 124 | 0.616207 |
38818068a1820a85eca6ca6b81e283eb287c9178 | 13,187 | ex | Elixir | lib/cldr/backend/locale.ex | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | lib/cldr/backend/locale.ex | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | lib/cldr/backend/locale.ex | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Locale.Backend do
@moduledoc false
def define_locale_backend(config) do
quote location: :keep, bind_quoted: [config: Macro.escape(config)] do
defmodule Locale do
@moduledoc false
if Cldr.Config.include_module_docs?(config.generate_docs) do
@moduledoc """
... | 31.852657 | 97 | 0.590278 |
3881831931f83974be26497437025f05232fac38 | 8,983 | ex | Elixir | clients/poly/lib/google_api/poly/v1/api/users.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/poly/lib/google_api/poly/v1/api/users.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/api/users.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 48.820652 | 196 | 0.638317 |
388186b5a594d65fc4940dd59e4c010e8367c7fe | 3,487 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.494624 | 197 | 0.722684 |
3881b143b8052eaea766e47a24044f28ebff640d | 3,025 | ex | Elixir | lib/cforum_web/controllers/messages/vote_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/controllers/messages/vote_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/controllers/messages/vote_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule CforumWeb.Messages.VoteController do
use CforumWeb, :controller
alias Cforum.Threads
alias Cforum.Threads.ThreadHelpers
alias Cforum.Messages
alias Cforum.Messages.Votes
alias Cforum.Messages.MessageHelpers
alias Cforum.ConfigManager
alias CforumWeb.Views.Helpers.ReturnUrl
def upvote(co... | 33.988764 | 113 | 0.69686 |
3882160a59cb4524e48b99c65e2b8b27ac161fb4 | 2,818 | ex | Elixir | example/lib/example/socket_client.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | null | null | null | example/lib/example/socket_client.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | null | null | null | example/lib/example/socket_client.ex | electricshaman/phoenix_gen_socket_client | 289feaca415090b9b9a4a5a313f660e85b3200d4 | [
"MIT"
] | null | null | null | defmodule Example.SocketClient do
@moduledoc false
require Logger
alias Phoenix.Channels.GenSocketClient
@behaviour GenSocketClient
def start_link() do
GenSocketClient.start_link(
__MODULE__,
Phoenix.Channels.GenSocketClient.Transport.WebSocketClient,
"ws://localhost:4000/so... | 30.630435 | 85 | 0.660043 |
3882201e8cf44b8a270c6a1dddfb9ad7f98be96a | 4,882 | ex | Elixir | lib/liquid_voting_web/schema/schema.ex | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | null | null | null | lib/liquid_voting_web/schema/schema.ex | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | 10 | 2020-09-28T06:37:48.000Z | 2021-12-22T15:04:38.000Z | lib/liquid_voting_web/schema/schema.ex | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | null | null | null | defmodule LiquidVotingWeb.Schema.Schema do
use Absinthe.Schema
import_types(Absinthe.Type.Custom)
import Absinthe.Resolution.Helpers, only: [dataloader: 1, dataloader: 3]
alias LiquidVotingWeb.Resolvers
alias LiquidVoting.{Voting, VotingResults}
query do
@desc "Get a voting result by its proposal url... | 27.897143 | 96 | 0.663662 |
388242894cff6f2425f7c948578b4373a15c39fb | 1,145 | ex | Elixir | lib/spotify/models/pagings/paging.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/pagings/paging.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/pagings/paging.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | defmodule Spotify.Pagings.Paging do
@moduledoc """
The offset-based paging object is a container for a set of objects.
It contains a key called `items` (whose value is an array of the requested objects)
along with other keys like `previous`, `next`, and `limit` that can be useful in future calls.
[S... | 28.625 | 114 | 0.555459 |
3882515c4972ebc3ed4ed2b23910c187a6bf7f16 | 201 | exs | Elixir | test/controllers/page_controller_test.exs | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | osayame/rethink_posts | c28eab5873657b8a2a4c8671f9c7979611bdeb27 | [
"MIT"
] | null | null | null | defmodule RethinkDocs.PageControllerTest do
use RethinkDocs.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.333333 | 60 | 0.686567 |
3882948b1f5bee2a5fdee2d80af1031236568e1d | 1,278 | ex | Elixir | day17/lib/day17.ex | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | day17/lib/day17.ex | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | day17/lib/day17.ex | bjorng/advent-of-code-2017 | bd58a36864a4d82809253770f8a6d0c4e02cb59a | [
"Apache-2.0"
] | null | null | null | defmodule Day17 do
def part1(steps) do
[{buf, pos, _}] = spinlock_stream(steps)
|> Stream.drop(2017)
|> Enum.take(1)
Enum.at(buf, rem(pos + 1, 2017 + 1))
end
def part2(steps) do
lazy_solve(steps, 50_000_000)
end
def solve(steps, iters) do
value = brute_solve(steps, iters)
^value ... | 22.034483 | 60 | 0.593897 |
3882b24d7683c168f53575ad9e9c7547d9580fd5 | 812 | ex | Elixir | test/support/conn_case.ex | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"MIT"
] | null | null | null | test/support/conn_case.ex | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"MIT"
] | null | null | null | test/support/conn_case.ex | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"MIT"
] | null | null | null | defmodule ReactWebpack.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
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with t... | 23.2 | 56 | 0.725369 |
388325c62474ec77db965219a1643ae452fd0a00 | 146 | ex | Elixir | blockchain/lib/blockchain_web/controllers/page_controller.ex | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | blockchain/lib/blockchain_web/controllers/page_controller.ex | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | blockchain/lib/blockchain_web/controllers/page_controller.ex | anipmehta/BlockChain | c73b5ca7aad44be6e85a47ecd972f093f78d26e2 | [
"MIT"
] | null | null | null | defmodule BlockchainWeb.PageController do
use BlockchainWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.25 | 41 | 0.753425 |
38835ceb4a6f6a05cde0116e5e7bb348fd98ce52 | 792 | ex | Elixir | lib/still/source_file.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | 2 | 2021-02-15T07:55:38.000Z | 2021-03-05T18:04:53.000Z | lib/still/source_file.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | lib/still/source_file.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | defmodule Still.SourceFile do
@moduledoc """
The SourceFile retains all information regarding a file being compiled in
the system. It's conceptually similar to the `conn` variable in a Phoenix
app. The idea is that different subsystems transform this struct and pass it
to the next.
"""
@enforce_keys [:in... | 24.75 | 78 | 0.622475 |
3883a5a128536fbecf45e7c811f94e725ea9ba44 | 556 | exs | Elixir | mix.exs | Quote023/elixir_http_server | ebffb8c64b2920f7ec242735ea4ecdee3dc7db54 | [
"MIT"
] | 1 | 2022-03-17T12:54:50.000Z | 2022-03-17T12:54:50.000Z | mix.exs | Quote023/elixir_http_server | ebffb8c64b2920f7ec242735ea4ecdee3dc7db54 | [
"MIT"
] | null | null | null | mix.exs | Quote023/elixir_http_server | ebffb8c64b2920f7ec242735ea4ecdee3dc7db54 | [
"MIT"
] | null | null | null | defmodule ElixirHttpServer.MixProject do
use Mix.Project
def project do
[
app: :elixir_http_server,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
elixirc_options: [debug_info: Mix.env() == :dev],
deps: deps()
]
end
# Run "mix help compile... | 19.172414 | 59 | 0.597122 |
3883ab890970a7f6089ab817193e3a60df6b88d2 | 68 | exs | Elixir | apps/app1/test/views/page_view_test.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/app1/test/views/page_view_test.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | apps/app1/test/views/page_view_test.exs | jschoch/umb | 98e4ca8b883777c775d2b1115ae5116cc32570fe | [
"MIT"
] | null | null | null | defmodule App1.PageViewTest do
use App1.ConnCase, async: true
end
| 17 | 32 | 0.794118 |
3883b5300c0f54efaf2c223eb3ed5ca708ed64fb | 1,995 | ex | Elixir | examples/dbus_tray_icon/icon_schema.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | 2 | 2021-08-05T09:08:49.000Z | 2021-08-14T22:38:18.000Z | examples/dbus_tray_icon/icon_schema.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | null | null | null | examples/dbus_tray_icon/icon_schema.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | 1 | 2021-12-05T03:03:05.000Z | 2021-12-05T03:03:05.000Z | defmodule DBusTrayIcon.IconSchema do
use ExDBus.Schema
node do
node "/MenuBar" do
import from(ExDBus.Interfaces)
import from(DBusTrayIcon.MenuBar)
end
import from(ExDBus.Interfaces)
node "/StatusNotifierItem" do
import from(ExDBus.Interfaces)
import from(DBusTrayIcon.Statu... | 22.931034 | 65 | 0.571429 |
3883eb1eec7aeff419d51ab966591917fc6917c2 | 337 | ex | Elixir | lib/dictionary/word_list.ex | josecarlo-macariola/dictionary | 03a15100769002190eb79fbd1f07411ad949e399 | [
"Unlicense"
] | null | null | null | lib/dictionary/word_list.ex | josecarlo-macariola/dictionary | 03a15100769002190eb79fbd1f07411ad949e399 | [
"Unlicense"
] | null | null | null | lib/dictionary/word_list.ex | josecarlo-macariola/dictionary | 03a15100769002190eb79fbd1f07411ad949e399 | [
"Unlicense"
] | null | null | null | defmodule Dictionary.WordList do
@me __MODULE__
def start_link() do
Agent.start_link(&word_list/0, name: @me)
end
def random_word() do
Agent.get(@me, &Enum.random/1)
end
def word_list() do
"../../assets/words.txt"
|> Path.expand(__DIR__)
|> File.read!
|> String.split(~r... | 16.047619 | 45 | 0.599407 |
388427c3fcfd83ef9b21196a626b36e6b8255599 | 82 | exs | Elixir | insights/test/insights_web/views/page_view_test.exs | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | insights/test/insights_web/views/page_view_test.exs | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | insights/test/insights_web/views/page_view_test.exs | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | defmodule InsightsWeb.PageViewTest do
use InsightsWeb.ConnCase, async: true
end
| 20.5 | 39 | 0.829268 |
38843e1f041cadd06066ee053315520a8e0fffae | 2,145 | ex | Elixir | lib/events_tools/organizations/organizations.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | lib/events_tools/organizations/organizations.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | lib/events_tools/organizations/organizations.ex | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityTools.Organizations do
@moduledoc """
The boundary for the Organizations system.
"""
import Ecto.Query, warn: false
alias CommunityTools.Repo
alias CommunityTools.Organizations.Organization
@doc """
Returns the list of organizations.
## Examples
iex> list_organizations()
... | 20.428571 | 67 | 0.656876 |
3884591666585e330197da6b703f8512382759ab | 17,992 | ex | Elixir | backend/lib/edgehog_web/schema/astarte_types.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | null | null | null | backend/lib/edgehog_web/schema/astarte_types.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | null | null | null | backend/lib/edgehog_web/schema/astarte_types.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Edgehog.
#
# Copyright 2021-2022 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 31.676056 | 93 | 0.699811 |
38846ec777856430a82c214a31630b4ed3ee0bf7 | 1,520 | ex | Elixir | lib/mix/lib/mix/tasks/deps.update.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/lib/mix/tasks/deps.update.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.update.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Mix.Tasks.Deps.Update do
use Mix.Task
@shortdoc "Updates the given dependencies"
@moduledoc """
Updates the given dependencies.
Since this is a destructive action, updating all dependencies
only occurs when the `--all` command line option is passed.
All dependencies are automatically recompi... | 31.020408 | 88 | 0.638816 |
388480efe26dfa497c9d721b9d83706ba08cc820 | 2,406 | ex | Elixir | apps/engine/lib/engine/application.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/lib/engine/application.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/lib/engine/application.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Application do
@moduledoc false
use Application
alias Engine.Configuration
alias Engine.Ethereum.Monitor, as: SyncMonitor
alias Engine.Ethereum.Monitor.AlarmHandler
alias Engine.Ethereum.Supervisor, as: EthereumSupervisor
alias Engine.Ethereum.SyncSupervisor
alias Engine.Plugin
alia... | 30.075 | 110 | 0.707398 |
38848a1b375c911a4de138ad08c6b747ce3ccf55 | 2,472 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_type_date.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_type_date.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_type_date.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.641509 | 590 | 0.717233 |
3884af3c935b9a59ab7c69cd087f0ca3279ec81f | 1,959 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/operations_list_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/operations_list_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/operations_list_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.962264 | 205 | 0.720776 |
3884b301071349b53d9c3dd1f4b7a0808a8dbdce | 517 | ex | Elixir | template/$PROJECT_NAME$/apps/api/lib/api/application.ex | mitjok/gen_template_litslink_umbrella | eadef26e83a1bb540a360f0bf5db0f519a100f8b | [
"Apache-2.0"
] | 1 | 2020-07-01T07:09:02.000Z | 2020-07-01T07:09:02.000Z | template/$PROJECT_NAME$/apps/api/lib/api/application.ex | mitjok/gen_template_litslink_umbrella | eadef26e83a1bb540a360f0bf5db0f519a100f8b | [
"Apache-2.0"
] | null | null | null | template/$PROJECT_NAME$/apps/api/lib/api/application.ex | mitjok/gen_template_litslink_umbrella | eadef26e83a1bb540a360f0bf5db0f519a100f8b | [
"Apache-2.0"
] | null | null | null | defmodule API.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Starts a worker by calling: API.Worker.start_link(arg)
# {API.Worker, arg}
]
# See http... | 25.85 | 62 | 0.700193 |
3884ca75a6a786dd0ccd2429ab3ec35f8be8e869 | 1,286 | exs | Elixir | test/instream/encoder/precision_test.exs | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | test/instream/encoder/precision_test.exs | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | test/instream/encoder/precision_test.exs | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Encoder.PrecisionTest do
use ExUnit.Case, async: true
alias Instream.TestHelpers.Connections.DefaultConnection
setup_all do
DefaultConnection.write(%{
database: "test_database",
points: [
%{
measurement: "precision_test",
fields: %{foo: "bar"}
... | 21.79661 | 63 | 0.55521 |
3884e392105c390999c3546e9c7f11b647e053b6 | 426 | ex | Elixir | lib/Repo.ex | mithereal/elixir-softbank | 2e63b72c4f25d651f4aee654ee41c25ac938fda3 | [
"MIT"
] | 1 | 2020-01-26T23:28:44.000Z | 2020-01-26T23:28:44.000Z | lib/Repo.ex | mithereal/elixir-softbank | 2e63b72c4f25d651f4aee654ee41c25ac938fda3 | [
"MIT"
] | 1 | 2018-12-02T05:35:28.000Z | 2019-03-14T22:42:30.000Z | lib/Repo.ex | mithereal/elixir-softbank | 2e63b72c4f25d651f4aee654ee41c25ac938fda3 | [
"MIT"
] | null | null | null | defmodule SoftBank.Repo do
use Ecto.Repo,
otp_app: :soft_bank,
adapter: Ecto.Adapters.Postgres
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
def truncate(... | 21.3 | 66 | 0.683099 |
38850f5f77a18e0db6fe3776697ed19f61ff43f5 | 1,137 | exs | Elixir | config/config.exs | cncgl/Elixir-xorshift32 | db3492750ea596deed449ba914458b9cdb1d1346 | [
"MIT"
] | null | null | null | config/config.exs | cncgl/Elixir-xorshift32 | db3492750ea596deed449ba914458b9cdb1d1346 | [
"MIT"
] | null | null | null | config/config.exs | cncgl/Elixir-xorshift32 | db3492750ea596deed449ba914458b9cdb1d1346 | [
"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.677419 | 73 | 0.755497 |
38851af1cf5093cf2a7b6fec68bf0f7b63b52f14 | 2,782 | ex | Elixir | lib/elm/platform/local.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 377 | 2018-04-05T03:36:00.000Z | 2022-03-30T19:12:44.000Z | lib/elm/platform/local.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 91 | 2018-05-24T21:56:06.000Z | 2022-02-26T03:54:04.000Z | lib/elm/platform/local.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 34 | 2018-05-29T03:54:35.000Z | 2022-01-13T07:12:46.000Z | defmodule Elm.Platform.Local do
alias Elm.Platform.Local18
alias Elm.Platform.Local19
alias Elm.Version
alias Elm.Platform.Parser
@behaviour Elm.Platform
def setup(root, %Version{major: 0, minor: 18, patch: 0}), do: Local18.setup(root)
def setup(root, %Version{major: 0, minor: 19, patch: 0}), do: Local1... | 33.518072 | 94 | 0.62473 |
388536ed10cdbbfa0afdf8e5268a8e17fb0be448 | 2,970 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/gql_query.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/gql_query.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/datastore/lib/google_api/datastore/v1/model/gql_query.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... | 51.206897 | 365 | 0.723906 |
388567e93757104fb6a4abf810949bf8d76f7c8f | 10,252 | exs | Elixir | test/json_schema_test_suite/draft7/type_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft7/type_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft7/type_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | defmodule JsonSchemaTestSuite.Draft7.TypeTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe "integer type matches integers" do
setup do
%{
schema:
Xema.from_json_schema(
%{"type" => "integer"},
draft: "draft7"
)
}
end
test... | 22.782222 | 92 | 0.556574 |
38856984d6ada509455947a7267873ca0300287f | 2,968 | exs | Elixir | apps/buzzcms_web/test/buzzcms_web/controllers/upload_image_test.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms_web/test/buzzcms_web/controllers/upload_image_test.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms_web/test/buzzcms_web/controllers/upload_image_test.exs | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule BuzzcmsWeb.UploadImageTest do
use BuzzcmsWeb.ConnCase
describe "Image controller" do
test "not exists image", %{conn: conn} do
files = [
%Plug.Upload{path: "test/fixtures/images/not-found.png", filename: "not-found.png"}
]
conn = post(conn, "/images/upload", %{:files => fil... | 29.098039 | 93 | 0.403976 |
38857da3bb5685d5f7be93dfe48dea8462fcd081 | 158 | exs | Elixir | priv/repo/migrations/20191024181218_delete_sensor_tables.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191024181218_delete_sensor_tables.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | priv/repo/migrations/20191024181218_delete_sensor_tables.exs | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule Jarvis.Repo.Migrations.DeleteSensorTables do
use Ecto.Migration
def change do
drop table(:measurements)
drop table(:devices)
end
end
| 17.555556 | 54 | 0.753165 |
3885ae790eb53101263f7689a8413fa03678e539 | 1,672 | exs | Elixir | mix.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 4 | 2016-11-07T09:47:09.000Z | 2020-10-19T20:39:03.000Z | mix.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 7 | 2016-11-07T13:02:36.000Z | 2016-11-23T17:37:07.000Z | mix.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 3 | 2016-11-07T09:51:36.000Z | 2019-06-18T12:26:38.000Z | defmodule Badging.Mixfile do
use Mix.Project
def project do
[
app: :badging,
version: "0.0.1",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() ... | 26.539683 | 95 | 0.57177 |
3885b4ccbefdf65defbaeaa3c4b8db654d129aa1 | 6,257 | exs | Elixir | test/elixir_talk_test.exs | nicksanders/elixir_talk | 6d28c8cf2f28247077925eb382414f60c8034c0d | [
"MIT"
] | 16 | 2015-01-29T19:51:23.000Z | 2020-10-06T17:33:46.000Z | test/elixir_talk_test.exs | nicksanders/elixir_talk | 6d28c8cf2f28247077925eb382414f60c8034c0d | [
"MIT"
] | 10 | 2015-03-27T07:27:10.000Z | 2017-06-02T10:32:48.000Z | test/elixir_talk_test.exs | nicksanders/elixir_talk | 6d28c8cf2f28247077925eb382414f60c8034c0d | [
"MIT"
] | 10 | 2015-03-27T06:09:09.000Z | 2019-08-16T08:15:04.000Z | defmodule ElixirTalkTest do
use ExUnit.Case
setup do
{:ok, pid} = ElixirTalk.connect '192.168.99.10', 11300
{m, s, ms} = :os.timestamp
tube = "ElixirTalk_#{m}_#{s}_#{ms}"
ElixirTalk.use pid, tube
ElixirTalk.watch pid, tube
ElixirTalk.ignore pid, "default"
# Don't have to manually stop... | 34.761111 | 90 | 0.624421 |
3885c8b3198965ce088a7e35d197d2ba3aee8a32 | 550 | exs | Elixir | config/config.exs | LastContinue/professor_demo | d40bf5d66da6ec7af09349e3dfad19593f100881 | [
"Unlicense"
] | null | null | null | config/config.exs | LastContinue/professor_demo | d40bf5d66da6ec7af09349e3dfad19593f100881 | [
"Unlicense"
] | null | null | null | config/config.exs | LastContinue/professor_demo | d40bf5d66da6ec7af09349e3dfad19593f100881 | [
"Unlicense"
] | null | null | null | use Mix.Config
#All :slack_professor values are set to the
# default values except for cache_duration, for demo purposes
config :slack_professor, timeout: 30000
config :slack_professor, pool_size: 5
config :slack_professor, pool_overflow: 1
config :slack_professor, cache_duration: 3600
#Even for demo, it's good to se... | 34.375 | 61 | 0.792727 |
3885d123db9cb6bec9e8e6027c5c1c29a556be03 | 449 | exs | Elixir | config/prod.secret.exs | sjahandideh/words | 542ce945a8f1bed8546ecf5df5b4770a6c76329e | [
"MIT"
] | null | null | null | config/prod.secret.exs | sjahandideh/words | 542ce945a8f1bed8546ecf5df5b4770a6c76329e | [
"MIT"
] | null | null | null | config/prod.secret.exs | sjahandideh/words | 542ce945a8f1bed8546ecf5df5b4770a6c76329e | [
"MIT"
] | null | null | null | use Mix.Config
# In this file, we keep production configuration that
# you likely want to automate and keep it away from
# your version control system.
config :words, Words.Endpoint,
secret_key_base: "3wCedtnJJ/wbG+rK4ZQdglxiD/WEhR6vW/+BcWkDg9X/+rr0rONvr5ypr6RpQBiH"
# Configure your database
config :words, Words.Re... | 28.0625 | 85 | 0.766147 |
3885ff45717c77a2f2ba8ba6df00b16f7ed3d802 | 365 | ex | Elixir | lib/portfolio_web/controllers/bot/page_controller.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | lib/portfolio_web/controllers/bot/page_controller.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | lib/portfolio_web/controllers/bot/page_controller.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | defmodule PortfolioWeb.Bot.PageController do
use PortfolioWeb, :controller
def pgp_key(conn, _params) do
render(conn, "pgp-key.asc")
end
def robots(conn, _params) do
render(conn, "robots.txt")
end
def security(conn, _params) do
render(conn, "security.txt")
end
def sitemap(conn, _params) ... | 18.25 | 44 | 0.687671 |
3886205a518f8d1b43b813f35425c9aa00f90411 | 784 | ex | Elixir | pancake/lib/pancake/utils/errors.ex | firecraftgaming/battleship-royale | 463bf5e743f07affdb84ebd752e92ab3c6604f8f | [
"MIT"
] | 1 | 2021-05-28T15:09:50.000Z | 2021-05-28T15:09:50.000Z | pancake/lib/pancake/utils/errors.ex | firecraftgaming/battleship-royale | 463bf5e743f07affdb84ebd752e92ab3c6604f8f | [
"MIT"
] | null | null | null | pancake/lib/pancake/utils/errors.ex | firecraftgaming/battleship-royale | 463bf5e743f07affdb84ebd752e92ab3c6604f8f | [
"MIT"
] | null | null | null | defmodule Pancake.Utils.Errors do
@spec changeset_errors(Ecto.Changeset.t()) :: map
def changeset_errors(%{errors: errors}) do
Map.new(errors, fn {k, {message, _}} -> {k, message} end)
end
def changeset_to_first_err_message(%{errors: [{_, {message, values}}]}) do
Enum.reduce(values, messa... | 32.666667 | 100 | 0.635204 |
38865b4fd0dcba72729d36ce97145ab8b6ecd35e | 799 | ex | Elixir | lib/grizzly/packet/header_extension/expected_delay.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/packet/header_extension/expected_delay.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/packet/header_extension/expected_delay.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.Packet.HeaderExtension.ExpectedDelay do
@moduledoc """
Expected Delay is the header extension that is found in a
Z/IP Command to indicate how many seconds until the command will be
received by a node and processed.
- Non-Sleeping devices: this extension does not apply
- Frequently Listeni... | 25.774194 | 69 | 0.687109 |
388679fabc8d8ede6de4e91d87a60b5dc8876e1d | 1,037 | ex | Elixir | lib/rasa_api/model/parse_result.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | lib/rasa_api/model/parse_result.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | lib/rasa_api/model/parse_result.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule RasaApi.Model.ParseResult do
@moduledoc """
NLU parser information. If set, message will not be passed through NLU, but instead this parsing infor... | 26.589744 | 124 | 0.706847 |
388680d50c112aed37d8bec898a599f7a0e31d5d | 2,314 | ex | Elixir | wasmcloud_host/lib/wasmcloud_host_web/live/components/actor_row_component.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | wasmcloud_host/lib/wasmcloud_host_web/live/components/actor_row_component.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | wasmcloud_host/lib/wasmcloud_host_web/live/components/actor_row_component.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | defmodule ActorRowComponent do
use Phoenix.LiveComponent
def mount(socket) do
{:ok, socket}
end
def render(assigns) do
~L"""
<tr>
<td><%= @name %>
</td>
<td><%= @count %></td>
<td>
<span class="badge <%= case @status do
"Awaiting" -> "badge-secondary"
... | 41.321429 | 123 | 0.555315 |
3886ba3f8eaf0ba69ba2bb107322802dbe3fcf9f | 570 | exs | Elixir | config/test.exs | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"MIT"
] | null | null | null | config/test.exs | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"MIT"
] | null | null | null | config/test.exs | Arp-G/offsite | 31ae9332cead20a045948d8850f68fc9e7ab1db4 | [
"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 :offsite, OffsiteWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: "zM25uPNu2XjXBf8VTPWCjawIAd/Ji2dE6U72agdvW6NeGEDLTji+PqsIoTJN9UAh",
server: false
# In test we don't sen... | 31.666667 | 86 | 0.764912 |
3886f28c2d10e2588956568d619ae745dbf51fb1 | 3,117 | ex | Elixir | lib/google_api/storage/v1/api/projects.ex | lewisf/google_api_storage | ea69f6a536cf2bbf6e76b803744aa428243c7ca6 | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/api/projects.ex | lewisf/google_api_storage | ea69f6a536cf2bbf6e76b803744aa428243c7ca6 | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/api/projects.ex | lewisf/google_api_storage | ea69f6a536cf2bbf6e76b803744aa428243c7ca6 | [
"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... | 38.481481 | 170 | 0.694257 |
3886f6b20d3b8d0380b55258b8c8bac4b6b63958 | 1,238 | exs | Elixir | mix.exs | APB9785/phoenix_html_sanitizer | 8f9dfc95fabf8248cc795cf9a405d77c35732dcd | [
"MIT"
] | null | null | null | mix.exs | APB9785/phoenix_html_sanitizer | 8f9dfc95fabf8248cc795cf9a405d77c35732dcd | [
"MIT"
] | null | null | null | mix.exs | APB9785/phoenix_html_sanitizer | 8f9dfc95fabf8248cc795cf9a405d77c35732dcd | [
"MIT"
] | null | null | null | defmodule PhoenixHtmlSanitizer.Mixfile do
use Mix.Project
def project do
[
app: :phoenix_html_sanitizer,
version: "1.1.1",
elixir: "~> 1.0",
description: "HTML sanitizer for Phoenix",
source_url: "https://github.com/elixirstatus/phoenix_html_sanitizer",
package: [
ma... | 25.265306 | 78 | 0.596931 |
388701616a1c4a681789a4b291f74601159ef963 | 288 | ex | Elixir | lib/elixir_console_web/live/console_live/sidebar_component.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 60 | 2019-11-23T15:54:24.000Z | 2022-03-24T15:56:32.000Z | lib/elixir_console_web/live/console_live/sidebar_component.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 62 | 2019-11-11T00:44:38.000Z | 2022-01-10T13:12:48.000Z | lib/elixir_console_web/live/console_live/sidebar_component.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 5 | 2020-01-15T00:44:30.000Z | 2021-05-25T05:06:27.000Z | defmodule ElixirConsoleWeb.ConsoleLive.SidebarComponent do
@moduledoc """
Live component module that implements the portion of the UI corresponding to
the sidebar. It displays the bindings, Elixir functions help and some static
information.
"""
use Phoenix.LiveComponent
end
| 28.8 | 78 | 0.791667 |
388738f313c0972fc2a39222d7dbcbea630ef995 | 77 | exs | Elixir | programming_elixir/part13/issues/test/doc_test.exs | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | null | null | null | programming_elixir/part13/issues/test/doc_test.exs | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | 2 | 2019-09-06T13:24:21.000Z | 2019-09-06T15:04:50.000Z | programming_elixir/part13/issues/test/doc_test.exs | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | null | null | null | defmodule DocTest do
use ExUnit.Case
doctest Issues.TableFormatter
end
| 12.833333 | 31 | 0.792208 |
38874a4bae79a0d4f772667782432e27ddf23fef | 13,471 | exs | Elixir | test/phoenix/test/conn_test.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | test/phoenix/test/conn_test.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | null | null | null | test/phoenix/test/conn_test.exs | alanpeabody/phoenix | 94e38415da40e0b317c30e1d114dd05594955d95 | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | defmodule Phoenix.Test.ConnTest.CatchAll do
def init(opts), do: opts
def call(conn, :stat), do: conn.params["action"].(conn)
def call(conn, _opts), do: Plug.Conn.assign(conn, :catch_all, true)
end
defmodule Phoenix.Test.ConnTest.Router do
use Phoenix.Router
alias Phoenix.Test.ConnTest.CatchAll
pipeline :b... | 31.327907 | 127 | 0.616064 |
388760dd1679ea54a3af9b54aec8b4e1e832ce73 | 1,223 | ex | Elixir | lib/data/account_handler.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 27 | 2015-08-09T16:36:31.000Z | 2020-01-26T17:47:17.000Z | lib/data/account_handler.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 14 | 2015-07-31T07:28:07.000Z | 2018-09-06T18:32:37.000Z | lib/data/account_handler.ex | Ablu/fintex | 3dd2088c01a4e035478d09df1e09ec244b54cf87 | [
"MIT"
] | 19 | 2015-07-31T01:25:17.000Z | 2019-06-29T16:28:42.000Z | defmodule FinTex.Data.AccountHandler do
@moduledoc false
alias FinTex.Model.Account
@spec to_accounts_map(Enumerable.t) :: %{String.t => Account.t}
def to_accounts_map(accounts) do
accounts |> Map.new(fn account -> {Account.key(account), account} end)
end
@spec to_list(%{String.t => Account.t}) :: E... | 23.519231 | 95 | 0.654129 |
3887847226c41ffb1da6c3f8c4d225ea61bca43f | 112 | ex | Elixir | apps/core/lib/core/repo.ex | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | null | null | null | apps/core/lib/core/repo.ex | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | null | null | null | apps/core/lib/core/repo.ex | ehealth-ua/otp_verification.api | 674960be39daac31f00a072a443e78e9923094d0 | [
"Apache-2.0"
] | 1 | 2019-06-12T18:04:39.000Z | 2019-06-12T18:04:39.000Z | defmodule Core.Repo do
@moduledoc false
use Ecto.Repo, otp_app: :core, adapter: Ecto.Adapters.Postgres
end
| 18.666667 | 64 | 0.758929 |
38878e9513c2b1fb65551141a0397f1ebc27c4f4 | 1,178 | exs | Elixir | test/komi_chan_web/controllers/boards_controller_test.exs | neftalyluis/komi_chan | 7b4f1b0163f66ca5b193e27d514de4e6d88a7672 | [
"MIT"
] | 4 | 2020-01-20T05:54:44.000Z | 2021-01-21T00:15:19.000Z | test/komi_chan_web/controllers/boards_controller_test.exs | neftalyluis/komi_chan | 7b4f1b0163f66ca5b193e27d514de4e6d88a7672 | [
"MIT"
] | 65 | 2019-06-28T06:35:54.000Z | 2022-02-28T10:16:49.000Z | test/komi_chan_web/controllers/boards_controller_test.exs | neftalyluis/komi_chan | 7b4f1b0163f66ca5b193e27d514de4e6d88a7672 | [
"MIT"
] | 1 | 2019-01-31T19:17:15.000Z | 2019-01-31T19:17:15.000Z | defmodule KomiChanWeb.BoardsControllerTest do
use KomiChanWeb.ConnCase
import KomiChan.Factory
alias KomiChan.Repositories.Board
describe "index/2" do
test "Lists all the boards", %{conn: conn} do
response =
conn
|> get(Routes.boards_path(conn, :index))
|> json_response(200)
... | 21.814815 | 77 | 0.589134 |
3887e53fd2ed51f310e7634120c7d3fbbc41e997 | 8,124 | exs | Elixir | test/google_apis/generator/elixir_generator/parameter_test.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | test/google_apis/generator/elixir_generator/parameter_test.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | test/google_apis/generator/elixir_generator/parameter_test.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 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 writing, ... | 29.223022 | 218 | 0.635401 |
3887f295356e1c8effa78dfed7ab498d29feae3d | 57 | ex | Elixir | apps/imposc_ui/lib/imposc_ui/views/page_view.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | apps/imposc_ui/lib/imposc_ui/views/page_view.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | apps/imposc_ui/lib/imposc_ui/views/page_view.ex | FelixDux/impact-oscillator | 4b93975a8f87129777f4e4fe5c2da77fbea41ecf | [
"MIT"
] | null | null | null | defmodule ImposcUi.PageView do
use ImposcUi, :view
end
| 14.25 | 30 | 0.789474 |
3887f7a3335e91c49cf588363045f67e530c603f | 1,677 | ex | Elixir | web/web.ex | konojunya/sample-crud-with-phoenix | 66e6e6aee0d3674c03374e8e76172df52b0bd0dc | [
"MIT"
] | null | null | null | web/web.ex | konojunya/sample-crud-with-phoenix | 66e6e6aee0d3674c03374e8e76172df52b0bd0dc | [
"MIT"
] | null | null | null | web/web.ex | konojunya/sample-crud-with-phoenix | 66e6e6aee0d3674c03374e8e76172df52b0bd0dc | [
"MIT"
] | null | null | null | defmodule Hello.Web 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 Hello.Web, :controller
use Hello.Web, :view
The definitions below will be executed for every view,
controller, etc... | 20.204819 | 69 | 0.668456 |
3887f7a3e9294be5e08368a12c55a4e7a7ba6722 | 1,209 | exs | Elixir | .formatter.exs | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | .formatter.exs | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | .formatter.exs | MarkHoo/phoenix | 3f673093826b0d4db5656dfe6e34393901348ed1 | [
"MIT"
] | null | null | null | locals_without_parens = [
# Phoenix.Channel
intercept: 1,
# Phoenix.Router
connect: 3,
connect: 4,
delete: 3,
delete: 4,
forward: 2,
forward: 3,
forward: 4,
get: 3,
get: 4,
head: 3,
head: 4,
match: 4,
match: 5,
options: 3,
options: 4,
patch: 3,
patch: 4,
pipeline: 2,
pipe_th... | 14.925926 | 56 | 0.641853 |
38880d758baf0c3d4f67c8220d21a77ebc2d704a | 3,107 | ex | Elixir | lib/docraptorx.ex | STUDITEMPS/docraptorx | 7194eaf7050da4e562645c55bcd7aab1c2b38396 | [
"MIT"
] | null | null | null | lib/docraptorx.ex | STUDITEMPS/docraptorx | 7194eaf7050da4e562645c55bcd7aab1c2b38396 | [
"MIT"
] | null | null | null | lib/docraptorx.ex | STUDITEMPS/docraptorx | 7194eaf7050da4e562645c55bcd7aab1c2b38396 | [
"MIT"
] | null | null | null | defmodule Docraptorx do
@moduledoc """
Docraptor API client for Elixir.
```elixir
Docraptorx.configure("your api key")
Docraptorx.create!(document_type: "pdf",
document_content: "<html><body>Hello World!</body></html>",
name: "hello.pdf",
async:... | 28.768519 | 112 | 0.642742 |
38884e9143c4831de78fb7d900f3a77f5bd612b6 | 2,352 | exs | Elixir | apps/forklift/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/forklift/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/forklift/mix.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule Forklift.MixProject do
use Mix.Project
def project do
[
app: :forklift,
version: "0.17.5",
elixir: "~> 1.8",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
start_permanent: Mix.en... | 30.153846 | 88 | 0.517857 |
388871c34a3d8f97badb2d0634d7efedd8e99f40 | 2,369 | ex | Elixir | lib/hayase/typeclasses/monad.ex | tap349/hayase | a9b93f93c8aaa934f08a95b59fb96ac567f8f5ad | [
"MIT"
] | 3 | 2019-04-12T06:39:48.000Z | 2019-10-04T14:41:11.000Z | lib/hayase/typeclasses/monad.ex | tap349/hayase | a9b93f93c8aaa934f08a95b59fb96ac567f8f5ad | [
"MIT"
] | null | null | null | lib/hayase/typeclasses/monad.ex | tap349/hayase | a9b93f93c8aaa934f08a95b59fb96ac567f8f5ad | [
"MIT"
] | null | null | null | # https://hexdocs.pm/witchcraft/Witchcraft.Chain.html
defprotocol Hayase.Typeclasses.Monad do
def bind(monad, f)
def tap(monad, f)
end
# > https://hexdocs.pm/witchcraft/Witchcraft.Chain.html#chain/2
# >
# > The chain function essentially "unwraps" a contained value, applies a
# > linking function that returns the ... | 27.870588 | 74 | 0.445758 |
38887ba0851c0bdfd0fa368b1148a9fadb52ab1d | 154 | exs | Elixir | test/context/step_function_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 209 | 2015-03-03T14:14:28.000Z | 2020-10-26T03:23:48.000Z | test/context/step_function_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 83 | 2015-03-23T11:46:51.000Z | 2020-11-04T09:47:06.000Z | test/context/step_function_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 46 | 2015-06-12T17:37:21.000Z | 2020-10-30T09:52:45.000Z | defmodule WhiteBread.Context.StepFunctionTest do
use ExUnit.Case
alias WhiteBread.Context.StepFunction
doctest WhiteBread.Context.StepFunction
end
| 22 | 48 | 0.844156 |
3888ab6f5f9ff28bfde019263f774831badf5965 | 802 | exs | Elixir | priv/repo/migrations/20191223182116_create_disruption_day_of_weeks.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191223182116_create_disruption_day_of_weeks.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 775 | 2019-11-18T16:23:57.000Z | 2022-03-28T18:20:04.000Z | priv/repo/migrations/20191223182116_create_disruption_day_of_weeks.exs | paulswartz/arrow | c1ba1ce52107c0ed94ce9bca2fef2bfeb606b8f9 | [
"MIT"
] | 1 | 2019-12-23T13:52:25.000Z | 2019-12-23T13:52:25.000Z | defmodule Arrow.Repo.Migrations.CreateDisruptionDayOfWeeks do
use Ecto.Migration
def change do
create table(:disruption_day_of_weeks) do
add :monday, :boolean, default: false, null: false
add :tuesday, :boolean, default: false, null: false
add :wednesday, :boolean, default: false, null: false... | 34.869565 | 74 | 0.69202 |
3888c6e2da3e766c76395f6d5db4ab234769bfcf | 4,744 | ex | Elixir | lib/apiac_filter_throttler/functions.ex | tanguilp/apisex_filter_throttler | ae842b18d926532b405972929455546a9aba9103 | [
"Apache-2.0"
] | 2 | 2019-05-16T16:28:56.000Z | 2021-04-17T04:16:32.000Z | lib/apiac_filter_throttler/functions.ex | tanguilp/apisex_filter_throttler | ae842b18d926532b405972929455546a9aba9103 | [
"Apache-2.0"
] | null | null | null | lib/apiac_filter_throttler/functions.ex | tanguilp/apisex_filter_throttler | ae842b18d926532b405972929455546a9aba9103 | [
"Apache-2.0"
] | null | null | null | defmodule APIacFilterThrottler.Functions do
@moduledoc """
Throttling functions that construct keys for the `APIacFilterThrottler` plug.
Note that except `throttle_by_ip_subject_client_safe/1`, these functions do
not protect against collisions. See the *Security considerations* of the
`APIacFilterThrottler` ... | 29.836478 | 91 | 0.71796 |
3888c84b6df6419f0697ad2ca6efd029086d6d72 | 2,357 | exs | Elixir | examples/basic_phoenix_ecto/config/dev.exs | RudolfMan/opentelemetry-erlang-contrib | 44fd2a6871742380dd6adc112f9776cda501ff1f | [
"Apache-2.0"
] | null | null | null | examples/basic_phoenix_ecto/config/dev.exs | RudolfMan/opentelemetry-erlang-contrib | 44fd2a6871742380dd6adc112f9776cda501ff1f | [
"Apache-2.0"
] | null | null | null | examples/basic_phoenix_ecto/config/dev.exs | RudolfMan/opentelemetry-erlang-contrib | 44fd2a6871742380dd6adc112f9776cda501ff1f | [
"Apache-2.0"
] | 1 | 2022-02-07T20:48:50.000Z | 2022-02-07T20:48:50.000Z | import Config
# Configure your database
config :demo, Demo.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "demo_dev",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The ... | 31.426667 | 86 | 0.707679 |
3888cb59f7099e79bc69e320138c0e545befef96 | 1,451 | exs | Elixir | mix.exs | kianmeng/ex_logger_mock | 22ef5700477abc98c95de6d4b57075b795d0c963 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/ex_logger_mock | 22ef5700477abc98c95de6d4b57075b795d0c963 | [
"MIT"
] | 1 | 2021-12-23T13:28:42.000Z | 2021-12-23T13:28:42.000Z | mix.exs | kianmeng/ex_logger_mock | 22ef5700477abc98c95de6d4b57075b795d0c963 | [
"MIT"
] | 1 | 2021-09-17T04:12:58.000Z | 2021-09-17T04:12:58.000Z | defmodule ExLoggerMock.MixProject do
@moduledoc "setup the project"
use Mix.Project
def project do
[
app: :ex_logger_mock,
deps: deps(),
docs: docs(),
description: "A mock logging backend for Elixir unit tests",
elixir: "~> 1.10",
homepage_url: "https://github.com/blake-e... | 24.183333 | 80 | 0.580289 |
3888cd5200a4293fc12ca054571ea29e4a916dae | 477 | ex | Elixir | lib/instream/query.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | lib/instream/query.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | lib/instream/query.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Query do
@moduledoc """
Query struct.
"""
defstruct method: :get,
payload: nil,
opts: [],
type: nil
@type payload_type :: String.t() | map | nil
@type query_method :: :get | :post
@type query_type :: :ping | :read | :status | :version | :write
@t... | 21.681818 | 65 | 0.536688 |
3888cdba831b91891f271209367f46ad7d731972 | 1,060 | exs | Elixir | clients/redis/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/redis/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/redis/test/test_helper.exs | 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... | 29.444444 | 83 | 0.737736 |
3888dec1d6bef5208bcb03abbbece57f0f336405 | 1,050 | exs | Elixir | mix.exs | v1z4/html_sanitize_ex | 03b0894a492a71083d00a524dc9e1156a529bc65 | [
"MIT"
] | null | null | null | mix.exs | v1z4/html_sanitize_ex | 03b0894a492a71083d00a524dc9e1156a529bc65 | [
"MIT"
] | null | null | null | mix.exs | v1z4/html_sanitize_ex | 03b0894a492a71083d00a524dc9e1156a529bc65 | [
"MIT"
] | null | null | null | defmodule HtmlSanitizeEx.Mixfile do
use Mix.Project
def project do
[
app: :html_sanitize_ex,
version: "1.4.3",
elixir: "~> 1.0",
description: "HTML sanitizer for Elixir",
source_url: "https://github.com/rrrene/html_sanitize_ex",
package: [
maintainers: ["René Föhring... | 22.826087 | 77 | 0.578095 |
3888e0d5b739b9bddfc5350d502a607f737181a3 | 1,152 | ex | Elixir | server/test/support/channel_case.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | 6 | 2019-04-03T19:16:01.000Z | 2020-08-10T09:38:24.000Z | server/test/support/channel_case.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | 32 | 2019-03-19T02:45:45.000Z | 2021-12-05T06:58:07.000Z | server/test/support/channel_case.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | null | null | null | defmodule FreedomAccountWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case inte... | 26.790698 | 71 | 0.735243 |
3888ecc1ccca3a86af4281ef245892e450b85073 | 2,750 | ex | Elixir | apps/blockquote/lib/blockquote_web/controllers/daily_quote_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/blockquote/lib/blockquote_web/controllers/daily_quote_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/blockquote/lib/blockquote_web/controllers/daily_quote_controller.ex | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule BlockquoteWeb.DailyQuoteController do
use BlockquoteWeb, :controller
alias Blockquote.Admin
alias Blockquote.Admin.DailyQuote
def custom_render(conn, template, assigns) do
custom_render(conn, view_module(conn), template, assigns)
end
def custom_render(conn, view_module, template, assigns) d... | 32.738095 | 140 | 0.698909 |
3888eee05bae9a2e83abcf4c2398daced31737db | 825 | exs | Elixir | priv/repo/seeds.exs | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 8 | 2020-09-10T09:18:17.000Z | 2022-03-25T03:43:25.000Z | priv/repo/seeds.exs | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 4 | 2020-12-28T06:13:51.000Z | 2021-04-27T18:00:06.000Z | # 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:
#
# Noven.Repo.insert!(%Noven.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 20.625 | 61 | 0.671515 |
3888f74991d739ffb02e3077d2b4828e5e09a714 | 2,763 | ex | Elixir | lib/minio.ex | mindreframer/minio_server | d7049e9f4ae908f2b13fd0a1e7e8b1acc2cf0667 | [
"Apache-2.0"
] | null | null | null | lib/minio.ex | mindreframer/minio_server | d7049e9f4ae908f2b13fd0a1e7e8b1acc2cf0667 | [
"Apache-2.0"
] | null | null | null | lib/minio.ex | mindreframer/minio_server | d7049e9f4ae908f2b13fd0a1e7e8b1acc2cf0667 | [
"Apache-2.0"
] | null | null | null | defmodule MinioServer do
@moduledoc """
Documentation for `MinioServer`.
## Usage
# Config can be used directly with :ex_aws/:ex_aws_s3
s3_config = [
access_key_id: "minio_key",
secret_access_key: "minio_secret",
scheme: "http://",
region: "local",
host: "127.... | 29.393617 | 96 | 0.624683 |
3889066e15665a74c3295f9f57443b4b4bfd7af1 | 975 | exs | Elixir | apps/plant_monitor_web/test/plant_monitor_web/plugs/validate_access_token_test.exs | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | 2 | 2019-01-25T21:21:56.000Z | 2021-02-24T08:18:51.000Z | apps/plant_monitor_web/test/plant_monitor_web/plugs/validate_access_token_test.exs | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | apps/plant_monitor_web/test/plant_monitor_web/plugs/validate_access_token_test.exs | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | defmodule PlantMonitorWeb.Plugs.ValidateAccessTokenTest do
use PlantMonitorWeb.ConnCase
alias PlantMonitorWeb.Plugs.ValidateAccessToken
# VALIDATE ACCESS TOKEN
test "[PLUGS][VALIDATE_ACCESS_TOKEN] Correct access token" do
user = insert(:user)
{:ok, %{access_token: access_token}} = PlantMonitor.OAuth.a... | 24.375 | 77 | 0.689231 |
388920b2c016ca8be3a28854c5db9fb6e01c58f2 | 3,661 | exs | Elixir | .credo.exs | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | .credo.exs | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | .credo.exs | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/"],
excluded: []
},
requires: [],
checks: [
# Consistency
{Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.LineEndings},
{Credo.Check.Consistency.MultiAliasIm... | 42.08046 | 68 | 0.674679 |
388931347ad041d0b3b706d9ada888a900564775 | 1,728 | ex | Elixir | server_elixir/lib/server_elixir_web/core_router.ex | johnosullivan/MiHome | 4e4062fd8801144a26bea8811e76688009913f94 | [
"MIT"
] | 7 | 2018-05-29T01:41:12.000Z | 2021-12-26T04:27:21.000Z | server_elixir/lib/server_elixir_web/core_router.ex | johnosullivan/MiHome | 4e4062fd8801144a26bea8811e76688009913f94 | [
"MIT"
] | 4 | 2017-12-06T14:48:59.000Z | 2021-05-04T23:57:30.000Z | server_elixir/lib/server_elixir_web/core_router.ex | johnosullivan/MiHome | 4e4062fd8801144a26bea8811e76688009913f94 | [
"MIT"
] | 5 | 2017-10-23T16:30:57.000Z | 2019-07-27T19:40:11.000Z | defmodule ServerElixirWeb.CoreRouter do
use ServerElixirWeb, :router
pipeline :api do
plug(:accepts, ["json"])
plug(:fetch_session)
end
pipeline :api_cookie_auth do
plug(:ensure_authenticated)
end
pipeline :bearer_auth do
plug(Guardian.Plug.Pipeline,
module: ServerElixirWeb.Guardian... | 25.411765 | 77 | 0.709491 |
388934a02c2cdf391781984a196cf7f8598e33d1 | 6,390 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/search_jobs_request.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/jobs/lib/google_api/jobs/v2/model/search_jobs_request.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/search_jobs_request.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.443038 | 115 | 0.690767 |
3889736660504b746c8baf853c076323c82b523f | 195 | ex | Elixir | request-header/lib/request_header_web/views/whoami_view.ex | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | request-header/lib/request_header_web/views/whoami_view.ex | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | request-header/lib/request_header_web/views/whoami_view.ex | dalamilla/phoenix-projects | 52654fb0d3ff7d5b556569dac5c0863e230e3a00 | [
"MIT"
] | null | null | null | defmodule RequestHeaderWeb.WhoamiView do
use RequestHeaderWeb, :view
def render("index.json", %{info: info}) do
%{ipaddress: info.ip, language: info.lang, software: info.soft}
end
end
| 24.375 | 67 | 0.723077 |
38898617c6b9bbd2921f9112c4753a9f6d697cd0 | 6,717 | ex | Elixir | lib/flamelex/fluxus/radix_state.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | 1 | 2020-02-09T23:04:33.000Z | 2020-02-09T23:04:33.000Z | lib/flamelex/fluxus/radix_state.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | null | null | null | lib/flamelex/fluxus/radix_state.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | null | null | null | defmodule Flamelex.Fluxus.Structs.RadixState do
@moduledoc false
use Flamelex.ProjectAliases
#TODO eventually, remove this... maybe?
use StructAccess # https://github.com/mbramson/struct_access
@max_keystroke_history_limit 50
@max_action_history_limit 50
#TODO this struct definition isn't great, but... | 29.721239 | 252 | 0.611434 |
38898be7a6a5f4c2be87bfe3e652839af035cfc8 | 13,291 | exs | Elixir | lib/elixir/test/elixir/code_formatter/general_test.exs | Eiji7/elixir | b889975c5574d9edd679ecf55c6707e3eb1f51d1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/general_test.exs | Eiji7/elixir | b889975c5574d9edd679ecf55c6707e3eb1f51d1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/general_test.exs | Eiji7/elixir | b889975c5574d9edd679ecf55c6707e3eb1f51d1 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Code.Formatter.GeneralTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
describe "aliases" do
test "with atom-only parts" do
assert_same "Elixir"
assert_same "Elixir.Foo"
assert_sa... | 16.1691 | 86 | 0.437589 |
38898d30cba4ecfc100102600103a0961f7bccc4 | 3,963 | exs | Elixir | test/credo/check/readability/parentheses_in_condition_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/readability/parentheses_in_condition_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/readability/parentheses_in_condition_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.ParenthesesInConditionTest do
use Credo.Test.Case
@described_check Credo.Check.Readability.ParenthesesInCondition
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
def some_function(parameter1, pa... | 22.907514 | 80 | 0.559172 |
38898d45f4b5cfd9309fd8a830a326d3a2cfc9c1 | 3,742 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta2_document_page_form_field.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta2_document_page_form_field.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta2_document_page_form_field.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.522727 | 243 | 0.748263 |
388992d073bd7ab8bd2b4bd9283d83f818510fe1 | 6,021 | ex | Elixir | lib/axon/recurrent.ex | kianmeng/axon | 15e2ce547e98e20946f0b0091440baf3e5e0f2d6 | [
"Apache-2.0"
] | 922 | 2021-04-08T11:48:26.000Z | 2022-03-30T05:17:52.000Z | lib/axon/recurrent.ex | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 112 | 2021-04-08T20:27:37.000Z | 2022-03-31T21:22:09.000Z | lib/axon/recurrent.ex | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 56 | 2021-04-08T12:54:16.000Z | 2022-03-29T01:36:18.000Z | defmodule Axon.Recurrent do
@moduledoc """
Functional implementations of common recurrent neural network
routines.
Recurrent Neural Networks are commonly used for working with
sequences of data where there is some level of dependence between
outputs at different timesteps.
This module contains 3 RNN Cel... | 29.228155 | 98 | 0.612855 |
3889a79ff283bf07f8210eb22e886ce70350ac1a | 1,606 | ex | Elixir | apps/bus_detective_web/lib/bus_detective_web/controllers/stop_controller.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/bus_detective_web/lib/bus_detective_web/controllers/stop_controller.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/bus_detective_web/lib/bus_detective_web/controllers/stop_controller.ex | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | defmodule BusDetectiveWeb.StopController do
use BusDetectiveWeb, :controller
alias BusDetective.GTFS
action_fallback(BusDetectiveWeb.FallbackController)
def show(conn, params) do
case parse_params(params) do
{:ok, stop_id_params, options} ->
load_stop(conn, stop_id_params, options)
e... | 30.301887 | 116 | 0.644458 |
3889a97b165077e3e3e7a65205c3fce60105339b | 129 | exs | Elixir | test/akko_test.exs | baxe/akko | 9e209c1a8602b27aeb04a510a6c17b95d17a2850 | [
"0BSD"
] | null | null | null | test/akko_test.exs | baxe/akko | 9e209c1a8602b27aeb04a510a6c17b95d17a2850 | [
"0BSD"
] | null | null | null | test/akko_test.exs | baxe/akko | 9e209c1a8602b27aeb04a510a6c17b95d17a2850 | [
"0BSD"
] | null | null | null | defmodule AkkoTest do
use ExUnit.Case
doctest Akko
test "greets the world" do
assert Akko.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
3889bab792ec192d3b6c9f35029cd7a0980f8707 | 4,218 | ex | Elixir | lib/iex/lib/iex/cli.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/cli.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/cli.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | # IEx sets the Erlang user to be IEx.CLI via the command line.
# While this works most of the time, there are some problems
# that may happen depending on how the booting process goes.
# Those problems need to be manually tested in case changes are
# done to this file.
#
# 1. In some situations, printing something befo... | 28.890411 | 111 | 0.638691 |
3889de2b3cc00525ef5074f313d207d3e56da1b4 | 26,964 | ex | Elixir | bench/lib/datasets/google_message3/benchmark_message3_4.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_4.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_4.pb.ex | zolakeith/protobuf | 2d412b260c48be8f90e05408f8569cef2f6d3ace | [
"MIT"
] | 35 | 2020-11-26T14:45:13.000Z | 2022-03-22T23:22:00.000Z | defmodule Benchmarks.GoogleMessage3.Message24346 do
@moduledoc false
use Protobuf, syntax: :proto2
end
defmodule Benchmarks.GoogleMessage3.Message24401 do
@moduledoc false
use Protobuf, syntax: :proto2
field :field24679, 1, optional: true, type: Benchmarks.GoogleMessage3.Message24400
end
defmodule Benchmar... | 41.041096 | 94 | 0.754413 |
3889ee97b77181402488ad94f5d432c67ec07b1f | 1,705 | exs | Elixir | misc-stuff/fib-tasks.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | misc-stuff/fib-tasks.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | misc-stuff/fib-tasks.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #START:solver1
defmodule FibSolver do
def fib(scheduler) do
send scheduler, { :ready, self() }
receive do
{ :fib, n, client } ->
send client, { :answer, n, fib_calc(n), self() }
fib(scheduler)
{ :shutdown } ->
exit(:normal)
end
end
#END:solver1
#START:solver2
# ve... | 24.014085 | 76 | 0.605865 |
388a24a9bcbe7fa9892f0e3badedae6ae425c436 | 709 | ex | Elixir | lib/stages/stage_sup.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | 5 | 2016-12-06T17:04:30.000Z | 2017-02-26T19:08:35.000Z | lib/stages/stage_sup.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | null | null | null | lib/stages/stage_sup.ex | cyberpunk-ventures/ex_golos | 2a8f32488b84590ddbb58fd12aaa1cbb9f48efd1 | [
"MIT"
] | null | null | null | defmodule Golos.StageSupervisor do
use Supervisor
alias Golos.Stage
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: :golos_producer_sup)
end
def init(:ok) do
blocks_producer = Stage.Blocks
raw_ops_stage = Stage.RawOps
munged_ops_stage = Stage.MungedOps
children = [
... | 29.541667 | 91 | 0.712271 |
388a64cd87eb8349feacbb3e90d26f6193d9c048 | 2,044 | ex | Elixir | lib/mazaryn_web/router.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | lib/mazaryn_web/router.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | lib/mazaryn_web/router.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | defmodule MazarynWeb.Router do
use MazarynWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {MazarynWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug... | 25.234568 | 70 | 0.694716 |
388a7e90492a3579fbaabce47387b0bfb2a8ce31 | 1,798 | ex | Elixir | lib/taut_web/telemetry.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | lib/taut_web/telemetry.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | lib/taut_web/telemetry.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | defmodule TautWeb.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 mor... | 32.107143 | 86 | 0.667964 |
388a86934968141e687703cda157ee186c0f3cf8 | 174 | ex | Elixir | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/StringLine.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/StringLine.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/StringLine.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @"One"[key: value]
@"One" [key: value]
@"One"[()]
@"One" [()]
@"One"[matched_expression]
@"One" [matched_expression]
@"One"[matched_expression,]
@"One" [matched_expression,]
| 19.333333 | 28 | 0.643678 |
388a8785c0052bcb8abc645a4173bd46ff5043d3 | 49 | ex | Elixir | test/support/test_account.ex | annatel/annacl | 55a7eff89617fe9cf41f532cf3f62566bd4b0d9a | [
"MIT"
] | 7 | 2020-07-26T18:24:19.000Z | 2021-06-22T10:15:48.000Z | test/support/test_account.ex | annatel/annacl | 55a7eff89617fe9cf41f532cf3f62566bd4b0d9a | [
"MIT"
] | 2 | 2020-08-15T00:58:53.000Z | 2020-10-31T16:54:11.000Z | test/support/test_account.ex | annatel/annacl | 55a7eff89617fe9cf41f532cf3f62566bd4b0d9a | [
"MIT"
] | 2 | 2020-10-22T20:13:21.000Z | 2020-10-30T14:53:10.000Z | defmodule Annacl.TestAccount do
use Annacl
end
| 12.25 | 31 | 0.816327 |
388ab65418fb88bfe47e5986bc440c0c1fe48b1b | 2,801 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__speech_recognition_alternative.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__speech_recognition_alternative.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__speech_recognition_alternative.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.369863 | 205 | 0.739379 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.