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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03c3eb16f1781b4d5d059d45a388097a4a8a76c5 | 579 | ex | Elixir | backend/lib/functional_vote_web/views/changeset_view.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 10 | 2020-03-13T12:56:06.000Z | 2021-06-28T22:13:27.000Z | backend/lib/functional_vote_web/views/changeset_view.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 132 | 2020-02-08T02:01:03.000Z | 2022-02-18T20:38:38.000Z | backend/lib/functional_vote_web/views/changeset_view.ex | maxrchung/FunctionalVote | 95c54c7614a74718e14c6fe74fd0bd4e84f85444 | [
"MIT"
] | 1 | 2021-03-17T06:22:55.000Z | 2021-03-17T06:22:55.000Z | defmodule FunctionalVoteWeb.ChangesetView do
use FunctionalVoteWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`FunctionalVoteWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse... | 28.95 | 70 | 0.747841 |
03c3fb0b50e12791c74d2cfc3059bdff5badfd64 | 666 | exs | Elixir | config/test.exs | joseluis8906/platform | f1b4c49b5de60dd880f0075ec3020aef03c557af | [
"Apache-2.0"
] | null | null | null | config/test.exs | joseluis8906/platform | f1b4c49b5de60dd880f0075ec3020aef03c557af | [
"Apache-2.0"
] | 1 | 2021-05-11T14:48:01.000Z | 2021-05-11T14:48:01.000Z | config/test.exs | joseluis8906/platform | f1b4c49b5de60dd880f0075ec3020aef03c557af | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :platform, Platform.Repo,
username: "postgres",
password: "postgres",
database: "platform_test#{System... | 28.956522 | 67 | 0.750751 |
03c405f4efe68374e23d3d591224ae9b68130268 | 285 | exs | Elixir | test/cowsay_test.exs | bbrock25/cowsay | c8f41fef678c09652fa5cadc25ef40f5a5c37c20 | [
"MIT"
] | 5 | 2015-09-19T08:12:26.000Z | 2021-07-18T10:40:03.000Z | test/cowsay_test.exs | bbrock25/cowsay | c8f41fef678c09652fa5cadc25ef40f5a5c37c20 | [
"MIT"
] | null | null | null | test/cowsay_test.exs | bbrock25/cowsay | c8f41fef678c09652fa5cadc25ef40f5a5c37c20 | [
"MIT"
] | null | null | null | defmodule CowsayTest do
use ExUnit.Case
test "Cowsay returns a string containing a thought" do
assert ( Cowsay.say("thought") |> String.contains?("thought"))
end
test "Cowsay print outputs to standard IO" do
assert :ok == Cowsay.print("I'm a tested cow.")
end
end
| 23.75 | 66 | 0.691228 |
03c41af334cd96b37852d34086fd3bde94bbe3ec | 11,206 | ex | Elixir | lib/coherence.ex | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 1,347 | 2016-07-04T23:20:10.000Z | 2022-02-10T20:10:48.000Z | lib/coherence.ex | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 378 | 2016-07-06T16:30:28.000Z | 2021-09-16T13:34:05.000Z | lib/coherence.ex | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 276 | 2016-07-06T20:26:17.000Z | 2021-12-06T19:32:41.000Z | defmodule Coherence do
@moduledoc """
Coherence is a full featured, configurable authentication and user
management system for Phoenix, providing a number of optional features
configured with a installation mix task:
* Database Authenticatable: handles hashing and storing an encrypted password in the databas... | 36.501629 | 327 | 0.715331 |
03c42d31339c734c157e8a9e9f90c4115adafc18 | 1,079 | ex | Elixir | lib/square_up/resources/v2/break_types.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 4 | 2020-10-21T18:34:50.000Z | 2022-03-16T06:25:44.000Z | lib/square_up/resources/v2/break_types.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 5 | 2020-10-21T23:16:32.000Z | 2021-05-13T13:42:44.000Z | lib/square_up/resources/v2/break_types.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 3 | 2020-10-21T21:20:36.000Z | 2021-03-15T18:00:30.000Z | defmodule SquareUp.V2.BreakTypes do
import Norm
import SquareUp.Client, only: [call: 2]
@spec list(SquareUp.Client.t(), %{}, %{}, %{
optional(:location_id) => binary(),
optional(:limit) => integer(),
optional(:cursor) => binary()
}) :: SquareUp.Client.response(SquareUp.TypeS... | 29.972222 | 86 | 0.627433 |
03c4456e506d2afd4be09b51dd0254db1a1beb84 | 3,750 | exs | Elixir | test/asls/runtime_test.exs | Shopify/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 23 | 2021-02-05T01:50:07.000Z | 2021-12-10T13:24:41.000Z | test/asls/runtime_test.exs | saulecabrera/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 5 | 2020-07-20T00:33:07.000Z | 2020-09-30T16:09:47.000Z | test/asls/runtime_test.exs | saulecabrera/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 1 | 2020-10-24T09:02:22.000Z | 2020-10-24T09:02:22.000Z | defmodule AssemblyScriptLS.RuntimeTest do
alias AssemblyScriptLS.Runtime
use ExUnit.Case, async: false
import Mock
@valid_config_file %{
targets: %{
debug: %{}
}
}
describe "ensure/1" do
test "returns an error message when the root directory doesn't exist" do
{:error, msg} = Runtime... | 33.783784 | 129 | 0.5944 |
03c451b6481fcbc27c913c793e1a70a5a623a44b | 65 | ex | Elixir | web/views/layout_view.ex | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | defmodule Ciphoenix.LayoutView do
use Ciphoenix.Web, :view
end
| 16.25 | 33 | 0.8 |
03c45c311a82c51866255ff11c82b7159668f470 | 434 | ex | Elixir | lib/stripe_post/application.ex | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | null | null | null | lib/stripe_post/application.ex | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | 1 | 2021-07-22T19:32:28.000Z | 2021-07-22T20:04:03.000Z | lib/stripe_post/application.ex | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | null | null | null | defmodule StripePost.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(StripePost.Worker, [])
]
... | 22.842105 | 66 | 0.714286 |
03c4854f6fdab9f94d7883174d1d15859f759272 | 1,940 | ex | Elixir | lib/authable/authentications/bearer.ex | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | lib/authable/authentications/bearer.ex | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | null | null | null | lib/authable/authentications/bearer.ex | liberumed/authable | 6db9951aa07000b358f16ffe413a13aa9aa89192 | [
"Unlicense"
] | 1 | 2021-01-12T00:55:56.000Z | 2021-01-12T00:55:56.000Z | defmodule Authable.Authentication.Bearer do
@moduledoc """
Bearer authentication helper module, implements Authable.Authentication
behaviour.
"""
alias Authable.Authentication.Token, as: TokenAuthentication
@behaviour Authable.Authentication
@doc """
Authenticates resource-owner using access_token ma... | 30.3125 | 76 | 0.686082 |
03c4928366fb4138cdaa89832ca383d0a544aad9 | 2,949 | ex | Elixir | lib/holidays/define.ex | CoderDennis/holidays | 939f4f6a88540eddc4edbb51c1a0b0515a4eea11 | [
"MIT"
] | 16 | 2016-01-11T16:18:38.000Z | 2022-02-24T09:41:05.000Z | lib/holidays/define.ex | CoderDennis/holidays_ex | 939f4f6a88540eddc4edbb51c1a0b0515a4eea11 | [
"MIT"
] | 9 | 2016-08-14T01:26:16.000Z | 2021-02-08T01:00:35.000Z | lib/holidays/define.ex | CoderDennis/holidays_ex | 939f4f6a88540eddc4edbb51c1a0b0515a4eea11 | [
"MIT"
] | 8 | 2017-06-08T09:23:46.000Z | 2021-08-17T19:03:05.000Z | defmodule Holidays.Define do
use GenServer
alias Holidays.DateCalculator.DateMath
def start_link() do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def holiday(name, %{month: month, day: day, regions: regions}) do
GenServer.cast(__MODULE__, {:add_entry, :static, {name, month, day, regi... | 29.19802 | 89 | 0.629705 |
03c4b6fd1c94d7781e281330b4c21af5621d9580 | 576 | ex | Elixir | priv/templates/phx.gen.embedded/embedded_schema.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 18,092 | 2015-01-01T01:51:04.000Z | 2022-03-31T19:37:14.000Z | priv/templates/phx.gen.embedded/embedded_schema.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,905 | 2015-01-01T00:22:47.000Z | 2022-03-31T17:06:21.000Z | priv/templates/phx.gen.embedded/embedded_schema.ex | faheempatel/phoenix | a83318f2a2284b7ab29b0b86cdd9d2e1f4d0a7c9 | [
"MIT"
] | 3,205 | 2015-01-03T10:58:22.000Z | 2022-03-30T14:55:57.000Z | defmodule <%= inspect schema.module %> do
use Ecto.Schema
import Ecto.Changeset
alias <%= inspect schema.module %>
embedded_schema do
<%= for {k, v} <- schema.types do %> field <%= inspect k %>, <%= inspect v %><%= schema.defaults[k] %>
<% end %> end
@doc false
def changeset(%<%= inspect schema.alias ... | 33.882353 | 105 | 0.590278 |
03c4d04e7b74c0f54dae6881e6f9831731461276 | 3,495 | ex | Elixir | lib/plaid/client.ex | ktayah/elixir-plaid | 2e537d4b79f36b5a31df8b27de079e2cc1dedfda | [
"MIT"
] | 16 | 2021-03-09T02:29:32.000Z | 2022-03-13T07:18:03.000Z | lib/plaid/client.ex | ktayah/elixir-plaid | 2e537d4b79f36b5a31df8b27de079e2cc1dedfda | [
"MIT"
] | 5 | 2021-04-24T20:38:14.000Z | 2022-03-19T22:03:09.000Z | lib/plaid/client.ex | ktayah/elixir-plaid | 2e537d4b79f36b5a31df8b27de079e2cc1dedfda | [
"MIT"
] | 2 | 2021-06-11T02:15:01.000Z | 2022-03-15T18:39:59.000Z | defmodule Plaid.Client do
@moduledoc """
Make API calls to plaid and convert the responses from JSON -> well typed elixir structs.
To use a different HTTP client, create a new module like `MyApp.PlaidClient` which implements
`post/3` and implements the `@behaviour Plaid.Client` behaviour. The success response ... | 30.929204 | 157 | 0.636338 |
03c4f235ee2dfb492c1e28a9ed0d9f263eca4c15 | 3,662 | exs | Elixir | 13-phoenix/chirp/test/chirp_web/live/post_live_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 13-phoenix/chirp/test/chirp_web/live/post_live_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 13-phoenix/chirp/test/chirp_web/live/post_live_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule ChirpWeb.PostLiveTest do
use ChirpWeb.ConnCase
import Phoenix.LiveViewTest
alias Chirp.Timeline
@create_attrs %{body: "some body", like_count: 42, reports_count: 42, username: "some username"}
@update_attrs %{body: "some updated body", like_count: 43, reports_count: 43, username: "some updated us... | 31.299145 | 114 | 0.612234 |
03c52015fd236d2d55dcbf811bae9bcb0ddb3fd6 | 355 | exs | Elixir | plugins/ucc_webrtc/priv/repo/seeds.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_webrtc/priv/repo/seeds.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_webrtc/priv/repo/seeds.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# UccWebrtc.Repo.insert!(%UccWebrtc.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 29.583333 | 61 | 0.709859 |
03c5390d43776f9d91775e9d82352d28b0fb84a9 | 962 | exs | Elixir | mix.exs | neocortexlab/myelin | 0f352c90b41de61133402fe32474a880b544d199 | [
"Apache-2.0"
] | null | null | null | mix.exs | neocortexlab/myelin | 0f352c90b41de61133402fe32474a880b544d199 | [
"Apache-2.0"
] | null | null | null | mix.exs | neocortexlab/myelin | 0f352c90b41de61133402fe32474a880b544d199 | [
"Apache-2.0"
] | null | null | null | defmodule Myelin.MixProject do
use Mix.Project
def project do
[
app: :myelin,
version: "0.1.1",
elixir: "~> 1.7",
description: "The Pallium Network development framework",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: [
maintainers: [
"A... | 24.05 | 70 | 0.577963 |
03c540211a0635e935217e759a7fba9bafecec35 | 394 | ex | Elixir | lib/genstage_importer_web/views/error_view.ex | altmer/genstage_importer | a8d8242fa0bc79d83d05212dea667c93990685c7 | [
"MIT"
] | 4 | 2019-10-08T19:43:09.000Z | 2021-11-07T07:06:58.000Z | lib/genstage_importer_web/views/error_view.ex | altmer/genstage_importer | a8d8242fa0bc79d83d05212dea667c93990685c7 | [
"MIT"
] | null | null | null | lib/genstage_importer_web/views/error_view.ex | altmer/genstage_importer | a8d8242fa0bc79d83d05212dea667c93990685c7 | [
"MIT"
] | 2 | 2018-08-02T11:01:15.000Z | 2019-11-15T12:35:40.000Z | defmodule GenstageImporterWeb.ErrorView do
use GenstageImporterWeb, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_... | 21.888889 | 47 | 0.715736 |
03c540bf916d1eaa805aed1e1dd5357b1d6d6b62 | 568 | exs | Elixir | backend/test/views/error_view_test.exs | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | backend/test/views/error_view_test.exs | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | backend/test/views/error_view_test.exs | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | defmodule Backend.ErrorViewTest do
use Backend.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(Backend.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" do
... | 25.818182 | 66 | 0.676056 |
03c581b6dc150910a3bd1f0e47e4efdefd23e351 | 12,671 | ex | Elixir | lib/mapper/cp850.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | lib/mapper/cp850.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | 1 | 2020-07-16T09:38:33.000Z | 2020-07-16T09:38:33.000Z | lib/mapper/cp850.ex | nikneroz/exconv | 31a9f424462f88024af3afb32d2cb80160f07ebf | [
"MIT"
] | null | null | null | defmodule Exconv.Mapper.Cp850 do
def to_unicode(255), do: 160 # <<194, 160>> | " "
def to_unicode(254), do: 9632 # <<226, 150, 160>> | "■"
def to_unicode(253), do: 178 # <<194, 178>> | "²"
def to_unicode(252), do: 179 # <<194, 179>> | "³"
def to_unicode(251), do: 185 # <<194, 185>> | "¹"
def to_unicode(250)... | 49.112403 | 57 | 0.518428 |
03c582ef6082789651e7a5b17bfe0d9326f67fd1 | 3,052 | ex | Elixir | lib/k8s/client/runner/base.ex | Overbryd/k8s | 7057601b1f191b47294133045c9e5b74bd9dd525 | [
"MIT"
] | null | null | null | lib/k8s/client/runner/base.ex | Overbryd/k8s | 7057601b1f191b47294133045c9e5b74bd9dd525 | [
"MIT"
] | null | null | null | lib/k8s/client/runner/base.ex | Overbryd/k8s | 7057601b1f191b47294133045c9e5b74bd9dd525 | [
"MIT"
] | null | null | null | defmodule K8s.Client.Runner.Base do
@moduledoc """
Base HTTP processor for `K8s.Client`
"""
@type result :: {:ok, map() | reference()} | {:error, atom} | {:error, binary()}
alias K8s.Cluster
alias K8s.Conf.RequestOptions
alias K8s.Operation
@doc """
Runs a `K8s.Operation`.
## Examples
*Note:*... | 26.310345 | 102 | 0.56291 |
03c5ad88ac40582305819cf11b0ad147aca241ed | 6,781 | ex | Elixir | plugins/one_wiki/lib/one_wiki/models/page.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_wiki/lib/one_wiki/models/page.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_wiki/lib/one_wiki/models/page.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWiki.Page do
@moduledoc """
The Page context file.
"""
use OneModel, schema: OneWiki.Schema.Page
alias Ecto.Multi
alias InfinityOne.Accounts.User
alias OneWiki.Settings.Wiki, as: Settings
require Logger
def changeset(%User{} = user, params) do
changeset %@schema{}, user, params
e... | 27.232932 | 85 | 0.597552 |
03c5cdc58ba1da2082189e4cec1c4289f7c5aa1b | 429 | exs | Elixir | test/playground_web/views/error_view_test.exs | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | test/playground_web/views/error_view_test.exs | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | test/playground_web/views/error_view_test.exs | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | defmodule PlaygroundWeb.ErrorViewTest do
use PlaygroundWeb.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(PlaygroundWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" ... | 28.6 | 95 | 0.741259 |
03c5d77925f702652eccc452310919125016116f | 38,426 | ex | Elixir | lib/nadia.ex | angordeyev/nadia | e57b45d1d73be195604e56f4e08fe7ce757518b9 | [
"MIT"
] | 386 | 2015-08-20T21:48:07.000Z | 2022-03-06T21:08:19.000Z | lib/nadia.ex | angordeyev/nadia | e57b45d1d73be195604e56f4e08fe7ce757518b9 | [
"MIT"
] | 146 | 2015-09-19T07:13:56.000Z | 2022-03-24T20:02:02.000Z | lib/nadia.ex | angordeyev/nadia | e57b45d1d73be195604e56f4e08fe7ce757518b9 | [
"MIT"
] | 107 | 2015-10-23T09:02:13.000Z | 2022-02-07T19:46:15.000Z | defmodule Nadia do
@moduledoc """
Provides access to Telegram Bot API.
## Reference
https://core.telegram.org/bots/api#available-methods
"""
alias Nadia.Model.{User, Message, Update, UserProfilePhotos, File, Error, WebhookInfo}
import Nadia.API
@behaviour Nadia.Behaviour
@doc """
A simple metho... | 42.648169 | 108 | 0.709051 |
03c5e70c37c4437c6dfda41ec9bee26cf1e48e6c | 1,959 | exs | Elixir | test/elx_k8s/cars_test.exs | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | test/elx_k8s/cars_test.exs | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | test/elx_k8s/cars_test.exs | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | defmodule ElxK8s.CarsTest do
use ElxK8s.DataCase
alias ElxK8s.Cars
describe "cars" do
alias ElxK8s.Cars.Car
@valid_attrs %{brand: "some brand", description: "some description"}
@update_attrs %{brand: "some updated brand", description: "some updated description"}
@invalid_attrs %{brand: nil, des... | 29.238806 | 89 | 0.640123 |
03c5ebe83400f308328790dc2c8eb0fa77f03121 | 256 | ex | Elixir | lib/zappa/block_helpers/raw.ex | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | 1 | 2021-08-23T21:48:14.000Z | 2021-08-23T21:48:14.000Z | lib/zappa/block_helpers/raw.ex | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | null | null | null | lib/zappa/block_helpers/raw.ex | fireproofsocks/zappa | d89d983b73652e761861bd7c2c5d03a45fc4badd | [
"Apache-2.0"
] | null | null | null | defmodule Zappa.BlockHelpers.Raw do
@moduledoc false
# This module implements a simple "raw" helper, intended for use by the quadruple {{{{#raw}}}} ... {{{{/raw}}}} blocks
alias Zappa.Tag
def parse(tag) do
{:ok, tag.block_contents}
end
end
| 23.272727 | 120 | 0.671875 |
03c60728928e0faab4bcd1f531c32b30cecb09d8 | 768 | exs | Elixir | servers/exilp/apps/utils/mix.exs | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | servers/exilp/apps/utils/mix.exs | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | servers/exilp/apps/utils/mix.exs | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | defmodule Utils.MixProject do
use Mix.Project
def project do
[
app: :utils,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.11",
start_permanent: Mix.env() ==... | 22.588235 | 88 | 0.565104 |
03c61bb92abc62d810dcc1f448870eeec75c8688 | 1,793 | ex | Elixir | lib/surface/formatter/phases/indent.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 468 | 2021-03-11T23:10:41.000Z | 2022-03-30T20:12:06.000Z | lib/surface/formatter/phases/indent.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 248 | 2021-03-12T07:39:37.000Z | 2022-03-31T13:36:44.000Z | lib/surface/formatter/phases/indent.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 46 | 2021-03-22T09:28:58.000Z | 2022-03-23T21:32:20.000Z | defmodule Surface.Formatter.Phases.Indent do
@moduledoc """
Adds indentation nodes (`:indent` and `:indent_one_less`) where appropriate.
`Surface.Formatter.Render.node/2` is responsible for adding the appropriate
level of indentation. It keeps track of the indentation level based on how
"nested" a node is. W... | 32.017857 | 83 | 0.723369 |
03c66f332fe6dd491bc87b5e4ef97d37a4207548 | 4,611 | ex | Elixir | lib/mail_slurp_api/api/template_controller.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/api/template_controller.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/api/template_controller.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | 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 MailSlurpAPI.Api.TemplateController do
@moduledoc """
API calls for all endpoints tagged `TemplateController`.
"""
alias MailSlurpAPI.Connect... | 28.639752 | 163 | 0.637606 |
03c67b3adf1521331d426ae8eb484cd7378d1ee3 | 1,990 | ex | Elixir | dev/support/seeds.ex | chinitadelrey/zero-to-graphql-using-phoenix | e5fbe4f9158aed2c5dfcd8c751e22b534fb09eb0 | [
"MIT"
] | null | null | null | dev/support/seeds.ex | chinitadelrey/zero-to-graphql-using-phoenix | e5fbe4f9158aed2c5dfcd8c751e22b534fb09eb0 | [
"MIT"
] | null | null | null | dev/support/seeds.ex | chinitadelrey/zero-to-graphql-using-phoenix | e5fbe4f9158aed2c5dfcd8c751e22b534fb09eb0 | [
"MIT"
] | null | null | null | defmodule ZeroPhoenix.Seeds do
alias ZeroPhoenix.Account.{Person, Friendship}
alias ZeroPhoenix.Repo
def run() do
#
# reset database
#
reset()
#
# people
#
me =
Repo.insert!(%Person{
first_name: "Conrad",
last_name: "Taylor",
email: "conradwt@gmail... | 19.320388 | 50 | 0.567337 |
03c67f5e7068dd81a85a26ce69a9f126d29a2b55 | 3,339 | exs | Elixir | test/components/icon_test.exs | habitus-incorporated/ex_fontawesome | 6a691677bf484a2ce81bae871880db417acd501a | [
"MIT"
] | null | null | null | test/components/icon_test.exs | habitus-incorporated/ex_fontawesome | 6a691677bf484a2ce81bae871880db417acd501a | [
"MIT"
] | null | null | null | test/components/icon_test.exs | habitus-incorporated/ex_fontawesome | 6a691677bf484a2ce81bae871880db417acd501a | [
"MIT"
] | null | null | null | defmodule FontAwesome.Components.IconTest do
use FontAwesome.ConnCase, async: true
alias FontAwesome.Components.Icon
defmodule ViewWithIcon do
use Surface.LiveView
data aria_hidden, :boolean, default: false
def handle_event("toggle_aria_hidden", _, socket) do
{:noreply, assign(socket, :aria_... | 22.714286 | 94 | 0.592692 |
03c6b5b32b1881609ca70e9e1d7a03c9e395049e | 909 | exs | Elixir | apps/dummy_nerves/mix.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 16 | 2016-09-14T16:57:33.000Z | 2017-11-11T16:31:14.000Z | apps/dummy_nerves/mix.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 5 | 2016-09-08T07:14:44.000Z | 2018-11-09T12:34:19.000Z | apps/dummy_nerves/mix.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | null | null | null | defmodule DummyNerves.Mixfile do
use Mix.Project
def project do
[app: :dummy_nerves,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
... | 22.170732 | 77 | 0.59626 |
03c7049eae39cfa5cd950e082d755018ecd308d7 | 5,559 | ex | Elixir | lib/phoenix/router/scope.ex | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | 2 | 2020-07-24T08:34:36.000Z | 2021-02-08T03:21:49.000Z | lib/phoenix/router/scope.ex | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | null | null | null | lib/phoenix/router/scope.ex | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Scope do
alias Phoenix.Router.{Scope, Route}
@moduledoc false
@stack :phoenix_router_scopes
@pipes :phoenix_pipeline_scopes
@top :phoenix_top_scopes
defstruct path: [], alias: [], as: [], pipes: [], host: nil, private: %{}, assigns: %{}
@doc """
Initializes the scope.
"""
... | 28.362245 | 111 | 0.649038 |
03c70d2e72122b651ba9b8c6040bd59933fe99e7 | 64 | ex | Elixir | web/views/reflection_view.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 48 | 2015-06-29T21:20:25.000Z | 2021-05-09T04:27:41.000Z | web/views/reflection_view.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | null | null | null | web/views/reflection_view.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 15 | 2015-06-29T21:13:57.000Z | 2021-07-27T10:02:40.000Z | defmodule Survey.ReflectionView do
use Survey.Web, :view
end
| 12.8 | 34 | 0.78125 |
03c7420ff00d53925710af3d46d587029bf0e8dc | 4,688 | ex | Elixir | lib/twittertex.ex | tomtaylor/twittertex | 228a245a01f4770c33971c99817bcfed7ab5c6ad | [
"MIT"
] | 3 | 2016-03-26T14:42:23.000Z | 2022-03-01T19:02:42.000Z | lib/twittertex.ex | tomtaylor/twittertex | 228a245a01f4770c33971c99817bcfed7ab5c6ad | [
"MIT"
] | null | null | null | lib/twittertex.ex | tomtaylor/twittertex | 228a245a01f4770c33971c99817bcfed7ab5c6ad | [
"MIT"
] | null | null | null | defmodule Twittertex do
@moduledoc """
Twittertex formats the raw JSON of a tweet into HTML by reconstructing pretty
links and so on from the entities embedded.
"""
import Phoenix.HTML
import Phoenix.HTML.Link
@type opt :: {:link_opts, Keyword.t()}
@type opts :: [opt()]
@doc """
Formats a tweet (... | 28.760736 | 81 | 0.645051 |
03c74363c3989e1e55e5bc75b96b0b2bfd2b2705 | 2,289 | ex | Elixir | clients/translate/lib/google_api/translate/v3/model/batch_document_input_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/translate/lib/google_api/translate/v3/model/batch_document_input_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/translate/lib/google_api/translate/v3/model/batch_document_input_config.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... | 48.702128 | 838 | 0.761468 |
03c7486c2afa203ab4693bd17e01c8b58b1859e4 | 70 | ex | Elixir | lib/fireball/models/score.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | lib/fireball/models/score.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | lib/fireball/models/score.ex | Catharz/fireball | bb9f123c0d2d71b16eda01d3838565e6e762de20 | [
"MIT"
] | null | null | null | defmodule Score do
defstruct [:player, :kills, :deaths, :money]
end
| 17.5 | 46 | 0.714286 |
03c756324efd1befa63c6a5761dc1ef69a21aada | 1,572 | ex | Elixir | test/support/test_support.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | test/support/test_support.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | test/support/test_support.ex | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | defmodule Helpers do
alias FarmbotCore.Asset.{Repo, Point}
@wait_time 180
# Base case: We have a pid
def wait_for(pid) when is_pid(pid), do: check_on_mbox(pid)
# Failure case: We failed to find a pid for a module.
def wait_for(nil), do: raise("Attempted to wait on bad module/pid")
# Edge case: We have a ... | 27.103448 | 74 | 0.640585 |
03c756e84c570187c0871f5fbdc926956e6b27c3 | 9,318 | exs | Elixir | lib/iex/test/iex/autocomplete_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/autocomplete_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/autocomplete_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule IEx.AutocompleteTest do
use ExUnit.Case, async: true
setup do
evaluator = IEx.Server.start_evaluator([])
Process.put(:evaluator, evaluator)
:ok
end
defmodule MyServer do
def evaluator do
Process.get(:evaluator)
end
end
d... | 32.354167 | 104 | 0.581992 |
03c7652bc0b00d37925c7fc68b5b92dc06b9b7d1 | 15,296 | exs | Elixir | test/webdriver/protocol_test.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 104 | 2015-02-11T02:57:53.000Z | 2022-01-12T14:28:12.000Z | test/webdriver/protocol_test.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 3 | 2015-07-23T18:48:11.000Z | 2016-10-12T14:28:43.000Z | test/webdriver/protocol_test.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 28 | 2015-01-09T22:05:27.000Z | 2021-04-29T13:55:13.000Z | Code.require_file "../test_helper.exs", __DIR__
defmodule WebDriverProtocolTest do
use ExUnit.Case, async: true
use Jazz
import Mock
alias WebDriver.Protocol
@config "http://127.0.0.1:8080"
@session_id ":session_id"
test "status" do
test_get &Protocol.status/1, "/status"
end
test "start_sessi... | 32.544681 | 112 | 0.640625 |
03c79bc587f08b4416a577448eaf27c748f39c6a | 174 | ex | Elixir | lib/transformer.ex | tarpdalton/consul_config_provider | e54595c2112eb02d7ea8c657d09aef445507fe32 | [
"MIT"
] | 6 | 2019-09-20T06:38:41.000Z | 2021-02-07T03:50:13.000Z | lib/transformer.ex | tarpdalton/consul_config_provider | e54595c2112eb02d7ea8c657d09aef445507fe32 | [
"MIT"
] | 1 | 2020-12-16T19:50:13.000Z | 2021-02-23T17:53:07.000Z | lib/transformer.ex | tarpdalton/consul_config_provider | e54595c2112eb02d7ea8c657d09aef445507fe32 | [
"MIT"
] | 3 | 2020-05-12T20:52:25.000Z | 2021-08-19T18:14:00.000Z | defmodule ConsulConfigProvider.Transformer do
@moduledoc "behaviour for transforming keyword values into any data types"
@callback transform(keyword()) :: keyword()
end
| 29 | 76 | 0.793103 |
03c7a8ac12bf77519af306cf6fbfdf383b3391ac | 1,827 | exs | Elixir | test/correios/cep/client_test.exs | lccezinha/correios-cep-elixir | fee32a9146167c13e169f682ed04837d9e9a525e | [
"Apache-2.0"
] | null | null | null | test/correios/cep/client_test.exs | lccezinha/correios-cep-elixir | fee32a9146167c13e169f682ed04837d9e9a525e | [
"Apache-2.0"
] | null | null | null | test/correios/cep/client_test.exs | lccezinha/correios-cep-elixir | fee32a9146167c13e169f682ed04837d9e9a525e | [
"Apache-2.0"
] | null | null | null | defmodule Correios.CEP.ClientTest do
use ExUnit.Case, async: true
alias Correios.CEP.Client, as: Subject
alias Correios.CEP.Test.Fixture
alias Plug.Conn
setup do
bypass = Bypass.open()
options = [url: "http://localhost:#{bypass.port}/correios/cep"]
{:ok, bypass: bypass, options: options}
end... | 26.867647 | 79 | 0.642036 |
03c7ad27d3ea109433d36315cc3470255b11e912 | 85 | exs | Elixir | .formatter.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | 6 | 2018-07-25T18:35:57.000Z | 2018-11-03T17:01:02.000Z | .formatter.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | 19 | 2018-11-12T05:29:44.000Z | 2020-04-12T01:04:41.000Z | .formatter.exs | blakedietz/courtbot | b18d7eb84fd1405b359c8da980e1175bb1738841 | [
"ISC"
] | 1 | 2020-04-12T00:36:50.000Z | 2020-04-12T00:36:50.000Z | [
inputs: ["config/*.exs", "lib/**/*.{ex,exs}", "test/**/*.{ex,exs}", "mix.exs"]
]
| 21.25 | 80 | 0.447059 |
03c7e67523034f585470c72b90c13bb93c615cda | 1,717 | exs | Elixir | mix.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 1 | 2020-01-20T18:17:59.000Z | 2020-01-20T18:17:59.000Z | mix.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | null | null | null | mix.exs | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 2 | 2018-09-09T08:05:24.000Z | 2018-09-09T08:35:18.000Z | defmodule Altstatus.Mixfile do
use Mix.Project
def project do
[
app: :altstatus,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
de... | 26.415385 | 79 | 0.570763 |
03c800c0df8d98deb5bf048fadc081e77a15ffa9 | 31,668 | ex | Elixir | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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.502203 | 262 | 0.619111 |
03c8076eab0e0dd5f67c119d04ee19c8fcce4260 | 685 | exs | Elixir | config/prod.secret.exs | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | config/prod.secret.exs | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | config/prod.secret.exs | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | use Mix.Config
# In this file, we keep production configuration that
# you'll likely want to automate and keep away from
# your version control system.
#
# You should document the content of this
# file or create a script for recreating it, since it's
# kept out of version control and might be hard to recover
# or rec... | 31.136364 | 85 | 0.766423 |
03c80be80580b120714d7e9ab097f48e24b1d608 | 1,989 | ex | Elixir | lib/crawly/pipelines/write_to_file.ex | jallum/crawly | dfe37b125f6b39637608576715b076d0877b1d8b | [
"Apache-2.0"
] | null | null | null | lib/crawly/pipelines/write_to_file.ex | jallum/crawly | dfe37b125f6b39637608576715b076d0877b1d8b | [
"Apache-2.0"
] | null | null | null | lib/crawly/pipelines/write_to_file.ex | jallum/crawly | dfe37b125f6b39637608576715b076d0877b1d8b | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Pipelines.WriteToFile do
@moduledoc """
Stores a given item into Filesystem
Pipeline Lifecycle:
1. When run (by `Crawly.Utils.pipe`), creates a file descriptor if not already created.
2. Performs the write operation
3. File descriptor is reused by passing it through the pipeline state with... | 25.177215 | 129 | 0.619407 |
03c822cee800f8098fa681a125466c138515e3e7 | 201 | exs | Elixir | .formatter.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 17 | 2017-11-14T14:03:18.000Z | 2021-12-10T04:18:48.000Z | .formatter.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 21 | 2017-11-19T13:38:07.000Z | 2022-02-10T00:11:14.000Z | .formatter.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 2 | 2019-09-03T03:32:13.000Z | 2021-02-23T21:52:57.000Z | [
inputs: [
"mix.exs",
"{config,lib,test}/**/*.{ex,exs}"
],
line_length: 120,
locals_without_parens: [
resources: :*,
post: :*,
delete: :*,
get: :*,
field: :*
]
]
| 13.4 | 37 | 0.457711 |
03c83ba6e6a58f66249c104fdf82473dad2da49d | 1,884 | exs | Elixir | mix.exs | jjcarstens/circuits_gpio | 3c71f59654c27eadf5b52bd448b2b514c626876e | [
"Apache-2.0"
] | null | null | null | mix.exs | jjcarstens/circuits_gpio | 3c71f59654c27eadf5b52bd448b2b514c626876e | [
"Apache-2.0"
] | null | null | null | mix.exs | jjcarstens/circuits_gpio | 3c71f59654c27eadf5b52bd448b2b514c626876e | [
"Apache-2.0"
] | null | null | null | defmodule Circuits.GPIO.MixProject do
use Mix.Project
def project do
[
app: :circuits_gpio,
version: "0.1.0",
elixir: "~> 1.6",
description: description(),
package: package(),
source_url: "https://github.com/elixir-circuits/circuits_gpio",
compilers: [:elixir_make | Mi... | 22.97561 | 84 | 0.547771 |
03c8622074ac4323f73ea6138aabc5d5ec562c36 | 2,524 | ex | Elixir | lib/holidays/definitions/de.ex | assj/holidays | 158657e296179d858f173cff3656d3fcaf5c653d | [
"MIT"
] | 16 | 2016-01-11T16:18:38.000Z | 2022-02-24T09:41:05.000Z | lib/holidays/definitions/de.ex | assj/holidays | 158657e296179d858f173cff3656d3fcaf5c653d | [
"MIT"
] | 9 | 2016-08-14T01:26:16.000Z | 2021-02-08T01:00:35.000Z | lib/holidays/definitions/de.ex | assj/holidays | 158657e296179d858f173cff3656d3fcaf5c653d | [
"MIT"
] | 8 | 2017-06-08T09:23:46.000Z | 2021-08-17T19:03:05.000Z | defmodule Holidays.Definitions.De do
import Holidays.Define
# Ported from German holiday definitions in the Ruby Holiday gem.
#
# Updated: 2009-11-05.
# Sources:
# - http://en.wikipedia.org/wiki/Holidays_in_Germany
# - http://www.timeanddate.com/calendar/index.html?country=8
# - http://www.germany.info/relaunch/welc... | 21.57265 | 71 | 0.537639 |
03c86fb570a9bcc5f581913d72b54916f91477aa | 646 | ex | Elixir | lib/atom_tweaks/repo.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | null | null | null | lib/atom_tweaks/repo.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | null | null | null | lib/atom_tweaks/repo.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | null | null | null | defmodule AtomTweaks.Repo do
@moduledoc """
Defines the Atom Tweaks database repository.
## Shared options
Almost all of the repository operations below accept the following options:
* `:timeout` - The time in milliseconds to wait for the query call to finish, `:infinity` will
wait indefinitely (defaul... | 34 | 99 | 0.726006 |
03c888ff8e6a30f6032ad72ca7f2770da655923a | 339 | exs | Elixir | test/koans/strings_koan_test.exs | josesrodriguez610/elixir-koans | 815d2a1d8b69161420558f5f32bd7d3f08275139 | [
"MIT"
] | null | null | null | test/koans/strings_koan_test.exs | josesrodriguez610/elixir-koans | 815d2a1d8b69161420558f5f32bd7d3f08275139 | [
"MIT"
] | null | null | null | test/koans/strings_koan_test.exs | josesrodriguez610/elixir-koans | 815d2a1d8b69161420558f5f32bd7d3f08275139 | [
"MIT"
] | null | null | null | defmodule StringTests do
use ExUnit.Case
import TestHarness
test "Strings"
answers = [
"hello",
"1 + 1 = 2",
"hello ",
"hello world",
"An incredible day",
"incredible",
"banana",
"banana",
"StringStringString",
"LISTEN"
]
test_all(Strings, ... | 15.409091 | 30 | 0.536873 |
03c89032fdd27076bdcab167b4aeab5ef5a8bf14 | 1,524 | ex | Elixir | rocketpay/lib/rocketpay_web/endpoint.ex | luizAzevedo/NextLevelWeek-4 | 986bcf919128456a7305a25a52f4becbf1915698 | [
"MIT"
] | 1 | 2021-02-25T03:49:59.000Z | 2021-02-25T03:49:59.000Z | rocketpay/lib/rocketpay_web/endpoint.ex | luizAzevedo/NextLevelWeek-4 | 986bcf919128456a7305a25a52f4becbf1915698 | [
"MIT"
] | null | null | null | rocketpay/lib/rocketpay_web/endpoint.ex | luizAzevedo/NextLevelWeek-4 | 986bcf919128456a7305a25a52f4becbf1915698 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :rocketpay
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_rocke... | 28.754717 | 97 | 0.716535 |
03c9139882ca3fabbff8ea19620a3bf374c2edd3 | 74 | exs | Elixir | test/test_helper.exs | ScapeGuru/osrs_api_proxy | 7d4cace8e5185ec60a324de274df225a58049b7a | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | ScapeGuru/osrs_api_proxy | 7d4cace8e5185ec60a324de274df225a58049b7a | [
"Apache-2.0"
] | 37 | 2021-04-19T23:56:46.000Z | 2022-02-28T15:14:04.000Z | test/test_helper.exs | ScapeGuru/osrs_api_proxy | 7d4cace8e5185ec60a324de274df225a58049b7a | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(OsrsApiProxy.Repo, :manual)
| 24.666667 | 58 | 0.797297 |
03c941764cf23da99346fd661d2617f0becdf459 | 485 | ex | Elixir | play_web/lib/play_web/views/error_view.ex | axelson/scenic_asteroids | 20fb22af441028b0837016337c5e418c033ded29 | [
"BSD-3-Clause"
] | 31 | 2018-12-25T19:52:35.000Z | 2022-03-20T01:06:46.000Z | play_web/lib/play_web/views/error_view.ex | axelson/scenic_asteroids | 20fb22af441028b0837016337c5e418c033ded29 | [
"BSD-3-Clause"
] | 4 | 2018-12-23T18:34:20.000Z | 2021-05-10T04:05:45.000Z | play_web/lib/play_web/views/error_view.ex | axelson/scenic_asteroids | 20fb22af441028b0837016337c5e418c033ded29 | [
"BSD-3-Clause"
] | 2 | 2019-04-09T18:35:51.000Z | 2020-12-22T15:19:18.000Z | defmodule PlayWeb.ErrorView do
use PlayWeb, :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. For ... | 28.529412 | 61 | 0.731959 |
03c974e792b7f4d7efca298e0b03ead2bc568a26 | 460 | ex | Elixir | extended_example/lib/demo/fulfillment_service/supervisor.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 19 | 2020-10-08T14:05:30.000Z | 2022-03-18T08:43:11.000Z | extended_example/lib/demo/fulfillment_service/supervisor.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | null | null | null | extended_example/lib/demo/fulfillment_service/supervisor.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 3 | 2021-02-19T08:31:58.000Z | 2021-12-09T05:28:55.000Z | defmodule FulfillmentService.Supervisor do
use Supervisor
def start_link(opts) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
def init(_args) do
children = [
FulfillmentService,
FulfillmentService.ShipmentRegisteredConsumer,
FulfillmentService.ShipmentDelegatedToVeh... | 24.210526 | 61 | 0.765217 |
03c976caeef6bf6cae49e83cfd2661f53bb5c9f3 | 253 | ex | Elixir | lib/contento.ex | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"MIT"
] | null | null | null | lib/contento.ex | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"MIT"
] | null | null | null | lib/contento.ex | jackmarchant/contento-fork | 7da622f27fc2003583bdd9a5e2f76b8a16bf852a | [
"MIT"
] | 1 | 2020-11-21T20:12:01.000Z | 2020-11-21T20:12:01.000Z | defmodule Contento do
@moduledoc """
Contento keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.3 | 66 | 0.754941 |
03c980a60156bd8e41fda8a7b1b85c319dff0cf3 | 42,767 | exs | Elixir | test/icon/schema/loader_test.exs | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | 4 | 2022-01-27T09:10:05.000Z | 2022-03-09T04:38:13.000Z | test/icon/schema/loader_test.exs | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | null | null | null | test/icon/schema/loader_test.exs | alexdesousa/icon | 2b363582b129bc0485a39e9845d2a18eabd2f6d6 | [
"MIT"
] | null | null | null | defmodule Icon.Schema.LoaderTest do
use ExUnit.Case, async: true
import Icon.Schema, only: [list: 1, any: 2, enum: 1]
alias Icon.Schema
alias Icon.Schema.Error
alias Icon.Schema.Types.EventLog
describe "Icon.Schema.load/1" do
test "parameters can be a keyword list" do
assert %Schema{
... | 28.229043 | 98 | 0.435055 |
03c99c1ffebc449d7f11f05520cdde53a1c3df28 | 981 | ex | Elixir | lib/guardian/plug/error_handler.ex | LaudateCorpus1/guardian | 23284f7bf91ad2cb50cc3f0f1c10df905a791891 | [
"MIT"
] | 3,135 | 2015-12-19T05:35:41.000Z | 2022-03-29T00:27:25.000Z | lib/guardian/plug/error_handler.ex | LaudateCorpus1/guardian | 23284f7bf91ad2cb50cc3f0f1c10df905a791891 | [
"MIT"
] | 536 | 2015-12-28T04:40:31.000Z | 2022-03-30T22:45:59.000Z | lib/guardian/plug/error_handler.ex | LaudateCorpus1/guardian | 23284f7bf91ad2cb50cc3f0f1c10df905a791891 | [
"MIT"
] | 451 | 2015-12-20T23:43:49.000Z | 2022-03-24T10:36:14.000Z | if Code.ensure_loaded?(Plug) do
defmodule Guardian.Plug.ErrorHandler do
@moduledoc """
Optional Behaviour for creating error handlers for `Guardian.Plug.Pipeline`.
### Error handler
When using plugs, you'll need to specify an error handler module.
The error_handler module requires an `auth_erro... | 25.153846 | 86 | 0.620795 |
03c9a9df5bc76aa2e14fd659eaad8a7953e135af | 536 | ex | Elixir | lib/pexels/collection.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | 5 | 2021-05-10T12:10:02.000Z | 2021-05-24T08:15:42.000Z | lib/pexels/collection.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | null | null | null | lib/pexels/collection.ex | factor18/pexels | c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01 | [
"MIT"
] | 1 | 2021-05-13T16:49:17.000Z | 2021-05-13T16:49:17.000Z | defmodule Pexels.Collection do
@moduledoc ~S"""
%Pexels.Collection {
description: nil,
id: "z40vgi2",
media_count: 3,
photos_count: 2,
private: false,
title: "Purple",
videos_count: 1
}
"""
use Accessible
use Construct do
field :id, :str... | 21.44 | 45 | 0.598881 |
03c9b4bafbac4a7830dc27d94359f22bf3e62a34 | 1,016 | exs | Elixir | test/paged_query_test.exs | fremantle-industries/paged_query | 73ee7a734f777aded90f2cd50979e577504b9abb | [
"MIT"
] | 1 | 2021-06-04T14:57:20.000Z | 2021-06-04T14:57:20.000Z | test/paged_query_test.exs | fremantle-industries/paged_query | 73ee7a734f777aded90f2cd50979e577504b9abb | [
"MIT"
] | 13 | 2021-08-01T15:03:37.000Z | 2022-03-01T15:01:58.000Z | test/paged_query_test.exs | fremantle-industries/paged_query | 73ee7a734f777aded90f2cd50979e577504b9abb | [
"MIT"
] | null | null | null | defmodule PagedQueryTest do
use PagedQuery.DataCase
import PagedQuery.Factory
doctest PagedQuery
test "returns a page_size of results by 0 indexed offset" do
blog_1 = insert(:blog)
blog_2 = insert(:blog)
blog_3 = insert(:blog)
assert TestRepo.aggregate(PagedQuery.Blog, :count) == 3
query ... | 23.090909 | 64 | 0.627953 |
03c9bf87b0d083e5c1fd8dfa7b448e5a2c2ebcf2 | 1,101 | exs | Elixir | test/absinthe/integration/execution/input_types/null/variable_to_type_non_null_T_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/integration/execution/input_types/null/variable_to_type_non_null_T_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/integration/execution/input_types/null/variable_to_type_non_null_T_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Elixir.Absinthe.Integration.Execution.InputTypes.Null.VariableToTypeNonNull_TTest do
use Absinthe.Case, async: true
@query """
query ($value: Int!) { times: objTimes(input: {base: $value}) }
"""
test "scenario #1" do
assert {:ok,
%{
errors: [
%{
... | 31.457143 | 133 | 0.476839 |
03c9cd3c99c8c999f14b18cd469abc5cd9944d43 | 277 | ex | Elixir | lib/topshelf_web/views/layout_view.ex | Baradoy/topshelf | bd3d5f96b3d3840990231cf244cc5f14bd807997 | [
"MIT"
] | null | null | null | lib/topshelf_web/views/layout_view.ex | Baradoy/topshelf | bd3d5f96b3d3840990231cf244cc5f14bd807997 | [
"MIT"
] | null | null | null | lib/topshelf_web/views/layout_view.ex | Baradoy/topshelf | bd3d5f96b3d3840990231cf244cc5f14bd807997 | [
"MIT"
] | null | null | null | defmodule TopshelfWeb.LayoutView do
use TopshelfWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
end
| 34.625 | 72 | 0.776173 |
03c9e085cc32a10c81b934ba145368f750eb5da2 | 22 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_qualified_alias_operation_parsing_test_case/MatchedArrowOperation.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/matched_qualified_alias_operation_parsing_test_case/MatchedArrowOperation.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/matched_qualified_alias_operation_parsing_test_case/MatchedArrowOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | One.Alias |> Two.Alias | 22 | 22 | 0.727273 |
03c9fed5622520022b6f360da2841c157e662b6b | 94 | ex | Elixir | frameworks/Elixir/phoenix/lib/hello/repo.ex | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 6 | 2020-01-26T08:05:12.000Z | 2020-02-18T17:35:26.000Z | frameworks/Elixir/phoenix/lib/hello/repo.ex | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 122 | 2021-04-16T02:04:24.000Z | 2022-01-13T20:17:26.000Z | frameworks/Elixir/phoenix/lib/hello/repo.ex | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 2 | 2018-03-22T00:37:28.000Z | 2018-03-22T00:56:57.000Z | defmodule Hello.Repo do
use Ecto.Repo, otp_app: :hello, adapter: Ecto.Adapters.Postgres
end
| 23.5 | 65 | 0.776596 |
03ca0ea8d0a61be1b463cfb8f861f322b0b7ca37 | 1,928 | exs | Elixir | elixir_tags/config/dev.exs | DinowSauron/Projeto-Next-Level-Week-7-Heat | fc20ed5ca61aff8af37a6120ce6fcffb9907357d | [
"MIT"
] | null | null | null | elixir_tags/config/dev.exs | DinowSauron/Projeto-Next-Level-Week-7-Heat | fc20ed5ca61aff8af37a6120ce6fcffb9907357d | [
"MIT"
] | null | null | null | elixir_tags/config/dev.exs | DinowSauron/Projeto-Next-Level-Week-7-Heat | fc20ed5ca61aff8af37a6120ce6fcffb9907357d | [
"MIT"
] | null | null | null | import Config
# Configure your database
config :elixir_tags, ElixirTags.Repo,
username: "postgres",
password: "789654",
database: "elixir_tags_dev",
hostname: "localhost",
port: 4500,
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugg... | 31.096774 | 86 | 0.729253 |
03ca0fd7b451571df8ae6401816c33eb0f8a6439 | 1,662 | ex | Elixir | sample_server/lib/sample_server_web.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 31 | 2019-03-26T15:26:21.000Z | 2022-02-16T14:33:13.000Z | sample_server/lib/sample_server_web.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 3 | 2019-04-05T19:45:09.000Z | 2019-10-25T01:48:57.000Z | sample_server/lib/sample_server_web.ex | mjaric/finix | fb0dedfdfdd46927d3df239c7c45d7fe92c441c4 | [
"Apache-2.0"
] | 5 | 2019-03-27T14:16:28.000Z | 2022-02-18T12:01:46.000Z | defmodule SampleServerWeb 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 SampleServerWeb, :controller
use SampleServerWeb, :view
The definitions below will be executed for every view,... | 24.441176 | 69 | 0.697954 |
03ca2e96e0b681e94ecf136bf2625055224574a6 | 753 | exs | Elixir | test/blockchain_test.exs | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | 1 | 2018-06-28T20:34:05.000Z | 2018-06-28T20:34:05.000Z | test/blockchain_test.exs | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | test/blockchain_test.exs | Zac-Garby/ultradark_core | 639f269e9a416ea034df78ac1c24703a23457840 | [
"MIT"
] | null | null | null | defmodule BlockchainTest do
alias UltraDark.Blockchain
alias UltraDark.Blockchain.Block
use ExUnit.Case, async: true
setup _ do
on_exit(fn ->
File.rm_rf!(".chaindata")
File.rm_rf!(".utxo")
end)
end
test "can initialize a chain" do
chain = Blockchain.initialize()
assert [_ | _] ... | 22.147059 | 72 | 0.664011 |
03ca41fef960405245316d75bb89d19bef2231cd | 1,892 | exs | Elixir | test/error_test.exs | supersimple/error | 28822a2c493a7ba0de9bf1a8286f79501589831e | [
"MIT"
] | null | null | null | test/error_test.exs | supersimple/error | 28822a2c493a7ba0de9bf1a8286f79501589831e | [
"MIT"
] | null | null | null | test/error_test.exs | supersimple/error | 28822a2c493a7ba0de9bf1a8286f79501589831e | [
"MIT"
] | null | null | null | defmodule ErrorTest do
use ExUnit.Case, async: true
alias Error
test "a domain error can be created with reason" do
assert Error.domain(:reason) == %Error{
kind: :domain,
reason: :reason,
details: %{}
}
end
test "a domain error can be created with reaso... | 27.42029 | 88 | 0.563953 |
03ca5ed539ca0ba8cc0bc9d7557d5e90ff8b7770 | 6,181 | ex | Elixir | lib/strava/activity.ex | jsparling/strava | a3511520428dffd7ef9230a81f9a31533e3a052e | [
"MIT"
] | null | null | null | lib/strava/activity.ex | jsparling/strava | a3511520428dffd7ef9230a81f9a31533e3a052e | [
"MIT"
] | null | null | null | lib/strava/activity.ex | jsparling/strava | a3511520428dffd7ef9230a81f9a31533e3a052e | [
"MIT"
] | null | null | null | defmodule Strava.Activity do
@moduledoc """
Activities are the base object for Strava runs, rides, swims etc.
More info: https://strava.github.io/api/v3/activities/
"""
import Strava.Util, only: [parse_date: 1]
@type t :: %__MODULE__{
id: integer,
resource_state: integer,
external_id: String.... | 27.717489 | 140 | 0.686135 |
03ca789301cc4524bf91b88e2d09655e29ac41a0 | 2,538 | exs | Elixir | apps/engine/test/engine/ethereum/event/coordinator_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/test/engine/ethereum/event/coordinator_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/test/engine/ethereum/event/coordinator_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Ethereum.Event.CoordinatorTest do
use ExUnit.Case, async: true
alias Engine.Ethereum.Event.Coordinator.Core
alias Engine.Ethereum.Event.Coordinator.Setup
setup do
{_args, config_services} = Setup.coordinator_setup(1, 1)
init = Core.init(config_services, 10)
pid =
config_serv... | 46.145455 | 108 | 0.704886 |
03ca868e84857075b767732f75520082a12441d0 | 483 | ex | Elixir | exercises/concept/language-list/lib/language_list.ex | kwchang0831/elixir | 1b21ae1ca610de97db79e76db890503ba75ce466 | [
"MIT"
] | null | null | null | exercises/concept/language-list/lib/language_list.ex | kwchang0831/elixir | 1b21ae1ca610de97db79e76db890503ba75ce466 | [
"MIT"
] | null | null | null | exercises/concept/language-list/lib/language_list.ex | kwchang0831/elixir | 1b21ae1ca610de97db79e76db890503ba75ce466 | [
"MIT"
] | null | null | null | defmodule LanguageList do
def new() do
# Please implement the new/0 function
end
def add(list, language) do
# Please implement the add/2 function
end
def remove(list) do
# Please implement the remove/1 function
end
def first(list) do
# Please implement the first/1 function
end
def ... | 18.576923 | 54 | 0.699793 |
03cac148bd5b90585add479144481ee0fa355661 | 1,117 | exs | Elixir | config/config.exs | travisjeffery/stathat | 15c0bf61de4188b0128f83f367a8aa94b870e4b4 | [
"MIT"
] | null | null | null | config/config.exs | travisjeffery/stathat | 15c0bf61de4188b0128f83f367a8aa94b870e4b4 | [
"MIT"
] | null | null | null | config/config.exs | travisjeffery/stathat | 15c0bf61de4188b0128f83f367a8aa94b870e4b4 | [
"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.032258 | 73 | 0.751119 |
03cae2f2cb768f7641c6104c508207d997a63ecf | 2,433 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ssl_certs_insert_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ssl_certs_insert_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ssl_certs_insert_response.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... | 43.446429 | 258 | 0.73695 |
03caf6237c01ffff912b343e593fa71ce22079cc | 1,204 | ex | Elixir | token_registry/lib/token_registry_web/live/blockchain_live/index.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | 1 | 2021-12-18T16:17:19.000Z | 2021-12-18T16:17:19.000Z | token_registry/lib/token_registry_web/live/blockchain_live/index.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | token_registry/lib/token_registry_web/live/blockchain_live/index.ex | canuckasaurus/archeio-solanaszn | 55dc8712cf0409d110ae342cbbc620745668a4df | [
"MIT"
] | null | null | null | defmodule TokenRegistryWeb.BlockchainLive.Index do
use TokenRegistryWeb, :live_view
alias TokenRegistry.Registry
alias TokenRegistry.Registry.Blockchain
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, :blockchains, list_blockchains())}
end
@impl true
def handle_params(para... | 25.617021 | 72 | 0.697674 |
03cb1a6a64d4d9706713e206fdd18cc2e95dd993 | 1,038 | ex | Elixir | lib/citrine/job.ex | brndnmtthws/citrine | ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f | [
"MIT"
] | 8 | 2020-08-06T03:08:31.000Z | 2021-12-15T08:41:59.000Z | lib/citrine/job.ex | brndnmtthws/citrine | ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f | [
"MIT"
] | 1 | 2020-10-18T19:48:09.000Z | 2020-10-26T16:40:25.000Z | lib/citrine/job.ex | brndnmtthws/citrine | ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f | [
"MIT"
] | 2 | 2020-10-23T12:28:21.000Z | 2021-01-09T20:44:37.000Z | defmodule Citrine.Job do
@typedoc """
The job task to run.
"""
@type task :: {module(), atom, [term()]} | {atom, [term()]} | (() -> any)
@typedoc """
A unique ID for this job.
"""
@type jobid :: String.t()
@typedoc """
Cron-based schedule specification.
"""
@type schedule :: String.t()
@type ... | 25.95 | 79 | 0.547206 |
03cb452d1254c6dbf8957fc6826a43d7c11f276b | 323 | exs | Elixir | priv/repo/migrations/20170926193403_create_pages.exs | reubenbrown13/website | 75d5d6bbf8f75d9837a3427c22060096604f5070 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170926193403_create_pages.exs | reubenbrown13/website | 75d5d6bbf8f75d9837a3427c22060096604f5070 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170926193403_create_pages.exs | reubenbrown13/website | 75d5d6bbf8f75d9837a3427c22060096604f5070 | [
"MIT"
] | 1 | 2020-11-21T20:12:01.000Z | 2020-11-21T20:12:01.000Z | defmodule Contento.Repo.Migrations.CreatePages do
use Ecto.Migration
def change do
create table(:pages) do
add :slug, :string
add :title, :string
add :content, :string
add :published, :boolean, default: false
add :published_at, :naive_datetime
timestamps()
end
end
e... | 17.944444 | 49 | 0.653251 |
03cb5dcb95a5ca3b8fe3cb54758792b843bfd8b1 | 785 | ex | Elixir | lib/ash_json_api/controllers/patch_relationship.ex | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | null | null | null | lib/ash_json_api/controllers/patch_relationship.ex | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | null | null | null | lib/ash_json_api/controllers/patch_relationship.ex | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | null | null | null | defmodule AshJsonApi.Controllers.PatchRelationship do
@moduledoc false
alias AshJsonApi.Controllers.{Helpers, Response}
alias AshJsonApi.Request
def init(options) do
# initialize options
options
end
def call(conn, options) do
action = options[:action]
api = options[:api]
route = option... | 29.074074 | 89 | 0.73121 |
03cb763ea2b1fe7a7b514957309688eacf56003a | 1,172 | ex | Elixir | lib/elixir/lib/agent/server.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/lib/agent/server.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/lib/agent/server.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Agent.Server do
@moduledoc false
use GenServer
def init(fun) do
_ = initial_call(fun)
{:ok, run(fun, [])}
end
def handle_call({:get, fun}, _from, state) do
{:reply, run(fun, [state]), state}
end
def handle_call({:get_and_update, fun}, _from, state) do
case run(fun, [state]) d... | 22.538462 | 60 | 0.612628 |
03cb920af108b47357ed27361224594330e7858b | 253 | ex | Elixir | lib/quiz_site.ex | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | 2 | 2017-10-30T00:42:01.000Z | 2017-10-30T21:29:15.000Z | lib/quiz_site.ex | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | null | null | null | lib/quiz_site.ex | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | null | null | null | defmodule QuizSite do
@moduledoc """
QuizSite keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.3 | 66 | 0.754941 |
03cbe2588deeab55d8c4c46cc1b8ca129d00f30b | 181 | ex | Elixir | lib/delivery_web/controllers/welcome_controller.ex | joaoeliandro/delivery | f8f2ea20a0fa595ccd754a725cfadf35a8c89c69 | [
"MIT"
] | null | null | null | lib/delivery_web/controllers/welcome_controller.ex | joaoeliandro/delivery | f8f2ea20a0fa595ccd754a725cfadf35a8c89c69 | [
"MIT"
] | null | null | null | lib/delivery_web/controllers/welcome_controller.ex | joaoeliandro/delivery | f8f2ea20a0fa595ccd754a725cfadf35a8c89c69 | [
"MIT"
] | null | null | null | defmodule DeliveryWeb.WelcomeController do
use DeliveryWeb, :controller
def index(conn, params) do
conn
|> put_status(:ok)
|> json(%{message: "Welcome"})
end
end
| 18.1 | 42 | 0.679558 |
03cbe25d575db8ac45cd76bd35731b30a79d5e1a | 848 | exs | Elixir | config/test.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"MIT"
] | null | null | null | config/test.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"MIT"
] | null | null | null | config/test.exs | prashantpawar/kitteh-test | 8b5b9e8a080b495ea6f506597a1bb66be56de064 | [
"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 :kitteh_test, KittehTest.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :kitteh_test, Ki... | 32.615385 | 94 | 0.754717 |
03cc04d32febb685d4c89c33c5f556ebe0724b7d | 3,721 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/auth_provider.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_user/lib/google_api/service_user/v1/model/auth_provider.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_user/lib/google_api/service_user/v1/model/auth_provider.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... | 40.010753 | 134 | 0.698468 |
03cc0b5e1f991fd62b1b622d153aa280bdf57a72 | 169,965 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/api/projects.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... | 45.035771 | 196 | 0.613885 |
03cc42c5cc42c2fdee96dfc60aa502abbeadb697 | 2,964 | ex | Elixir | lib/shared_settings/setting.ex | kieraneglin/shared-settings-ex | 0b2f6e7c7b534ae58158fca01e61e7bd85a4147f | [
"Unlicense"
] | 2 | 2020-10-28T14:15:30.000Z | 2020-12-29T13:52:27.000Z | lib/shared_settings/setting.ex | kieraneglin/shared-settings-ex | 0b2f6e7c7b534ae58158fca01e61e7bd85a4147f | [
"Unlicense"
] | null | null | null | lib/shared_settings/setting.ex | kieraneglin/shared-settings-ex | 0b2f6e7c7b534ae58158fca01e61e7bd85a4147f | [
"Unlicense"
] | null | null | null | defmodule SharedSettings.Setting do
@moduledoc false
alias __MODULE__
alias SharedSettings.Config
alias SharedSettings.Utilities.Encryption
@enforce_keys [:name, :type, :value]
defstruct [:name, :type, :value, encrypted: false]
@type t :: %Setting{
name: String.t(),
type: String.t()... | 25.333333 | 89 | 0.616734 |
03cc956fd8095cbfb0aa1f363205924bccf23f11 | 3,207 | ex | Elixir | lib/ext/voice_controller.ex | sizumita/Bard | b2e5bb2d44b4a5700e38d56be7f6d88eff3f9218 | [
"MIT"
] | null | null | null | lib/ext/voice_controller.ex | sizumita/Bard | b2e5bb2d44b4a5700e38d56be7f6d88eff3f9218 | [
"MIT"
] | 1 | 2020-07-01T11:23:35.000Z | 2020-07-01T11:23:35.000Z | lib/ext/voice_controller.ex | sizumita/Bard | b2e5bb2d44b4a5700e38d56be7f6d88eff3f9218 | [
"MIT"
] | null | null | null | defmodule VoiceClientController do
alias Alchemy.Voice
def context(guild, message) do
state = Enum.find(guild.voice_states, fn vstate ->
vstate.user_id == message.author.id
end)
if state == nil do
{:error, "No state found"}
else
{:ok, state}
end
end
def has_state(guild)... | 28.131579 | 85 | 0.5145 |
03cca98aafebfa8541f5313cdd40d47314357469 | 1,220 | ex | Elixir | test/support/conn_case.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 893 | 2017-09-14T14:18:29.000Z | 2022-03-31T21:45:08.000Z | test/support/conn_case.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 103 | 2017-09-29T22:15:33.000Z | 2022-03-27T21:47:43.000Z | test/support/conn_case.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 152 | 2017-09-07T12:43:15.000Z | 2022-03-10T18:47:47.000Z | defmodule AsciinemaWeb.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 and query models.
Finally, if the test case interacts with th... | 25.957447 | 71 | 0.706557 |
03ccb7b150fdd81df1459cf03e15ed9458bbf142 | 13,281 | exs | Elixir | apps/core/test/services/users_test.exs | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | null | null | null | apps/core/test/services/users_test.exs | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | null | null | null | apps/core/test/services/users_test.exs | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | null | null | null | defmodule Core.Services.UsersTest do
use Core.SchemaCase, async: true
use Mimic
alias Core.Services.Users
alias Core.PubSub
describe "#create_user" do
test "Users can be created" do
{:ok, user} = Users.create_user(%{
name: "some user",
password: "superstrongpassword",
email:... | 28.871739 | 101 | 0.634666 |
03ccd67194aab812d73a658cb78455a529761da3 | 16,857 | ex | Elixir | lib/aws/generated/qldb.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/qldb.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/qldb.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"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.QLDB do
@moduledoc """
The control plane for Amazon QLDB
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: nil,
api_version: ... | 25.735878 | 190 | 0.646378 |
03ccdc2de08548aaee257ffefe05057333567714 | 1,216 | ex | Elixir | server/lib/taskerito_web/views/error_helpers.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | 5 | 2020-06-18T20:31:11.000Z | 2021-07-23T10:05:56.000Z | server/lib/taskerito_web/views/error_helpers.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | server/lib/taskerito_web/views/error_helpers.ex | jonatanklosko/taskerito | e9b9bfdd10f53a676c0c5eccbd54e4c8a1c2d8a1 | [
"MIT"
] | null | null | null | defmodule TaskeritoWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static ar... | 35.764706 | 78 | 0.672697 |
03ccdc4fd6235811ee2b00bd9dd4e54b018bbe2a | 2,027 | ex | Elixir | apps/admin_app/lib/admin_app_web/endpoint.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 1 | 2021-04-08T22:29:19.000Z | 2021-04-08T22:29:19.000Z | apps/admin_app/lib/admin_app_web/endpoint.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | apps/admin_app/lib/admin_app_web/endpoint.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | defmodule AdminAppWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :admin_app
use Sentry.Phoenix.Endpoint
alias Snitch.Core.Tools.MultiTenancy
socket("/socket", AdminAppWeb.UserSocket)
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix... | 25.3375 | 80 | 0.688209 |
03cd0a1ab8432336ff39dde370e7e96891107856 | 696 | ex | Elixir | lib/nerves/artifact/build_runner.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | 1,944 | 2016-01-25T14:04:50.000Z | 2022-03-30T13:25:53.000Z | lib/nerves/artifact/build_runner.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | 397 | 2016-05-19T21:17:51.000Z | 2022-03-30T18:02:49.000Z | lib/nerves/artifact/build_runner.ex | petermm/nerves | 173b0a424177f45f77db4206406d9c98f1d73e95 | [
"Apache-2.0"
] | 191 | 2016-01-30T01:56:25.000Z | 2022-03-30T17:58:57.000Z | defmodule Nerves.Artifact.BuildRunner do
@moduledoc """
Defines the Nerves build runner behaviour
A build runner is a module that can take package source and produce
artifacts.
"""
@type build_result :: {:ok, build_path :: String.t()} | {:error, reason :: term}
@type archive_result :: {:ok, path :: Stri... | 34.8 | 97 | 0.662356 |
03cd280d47150568d5dd4addf42bf39d4bcca1b1 | 7,299 | ex | Elixir | lib/backoffice/field.ex | NduatiK/backoffice_anchored | 2d03e86e3eb5db9dd36a7dfe5e286b0db1714853 | [
"MIT"
] | null | null | null | lib/backoffice/field.ex | NduatiK/backoffice_anchored | 2d03e86e3eb5db9dd36a7dfe5e286b0db1714853 | [
"MIT"
] | null | null | null | lib/backoffice/field.ex | NduatiK/backoffice_anchored | 2d03e86e3eb5db9dd36a7dfe5e286b0db1714853 | [
"MIT"
] | null | null | null | defmodule Backoffice.Field do
use Phoenix.HTML
import Phoenix.LiveView.Helpers
import Backoffice.ErrorHelper
def form_field(form, field, opts) do
type = Map.fetch!(opts, :type)
opts = Map.delete(opts, :type)
do_form_field(form, field, type, opts)
end
defp do_form_field(form, field, :integer,... | 27.858779 | 163 | 0.588026 |
03cd5105eaaa8beeea064af429871e3e83a97877 | 2,201 | ex | Elixir | lib/graphql/resolvers/lint.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/resolvers/lint.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/resolvers/lint.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.GraphQL.Resolvers.Lint do
require Ecto.Query
import Absinthe.Resolution.Helpers, only: [batch: 3]
alias Accent.Scopes.Revision, as: RevisionScope
alias Accent.Scopes.Translation, as: TranslationScope
alias Accent.{
Language,
Plugs.GraphQLContext,
Repo,
Translation
}
@s... | 31.442857 | 128 | 0.703317 |
03cdb0d0015c7897bf73577643ae5693b24bddcb | 175 | exs | Elixir | priv/repo/migrations/20160215134700_create_payment_method.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | priv/repo/migrations/20160215134700_create_payment_method.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | priv/repo/migrations/20160215134700_create_payment_method.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Repo.Migrations.CreatePaymentMethod do
use Ecto.Migration
def change do
create table(:payment_methods) do
add :name, :string
end
end
end
| 17.5 | 55 | 0.725714 |
03cdc574d452524ae4ee9cf2dcd1734793907daf | 8,854 | exs | Elixir | test/elixir/test/view_multi_key_design_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/test/view_multi_key_design_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2021-07-28T02:13:39.000Z | 2021-07-28T02:13:39.000Z | test/elixir/test/view_multi_key_design_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule ViewMultiKeyDesignTest do
use CouchTestCase
@moduletag :view_multi_key_design
@moduletag kind: :single_node
@keys [10, 15, 30, 37, 50]
@ddoc %{
_id: "_design/test",
language: "javascript",
views: %{
all_docs: %{
map: "function(doc) { emit(doc.integer, doc.string) }"
... | 27.66875 | 88 | 0.577818 |
03ce065244d79e0170b16c27530a05a59b02c89a | 20,341 | ex | Elixir | lib/ash/actions/side_load.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/actions/side_load.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | lib/ash/actions/side_load.ex | elbow-jason/ash | eb63bc9d4d24187ad07d9892088b4e55ad6258e4 | [
"MIT"
] | null | null | null | defmodule Ash.Actions.SideLoad do
@moduledoc false
alias Ash.Engine
alias Ash.Engine.Request
def requests(
query,
use_data_for_filter? \\ true,
root_data \\ [],
root_query \\ nil,
path \\ []
)
def requests(nil, _, _, _, _), do: []
def requests(%{side_load: []... | 27.826265 | 101 | 0.565803 |
03ce2d4a1df1d4a46e91132e50c86e70ff383d01 | 28,155 | ex | Elixir | lib/codes/codes_t54.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t54.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_t54.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_T54 do
alias IcdCode.ICDCode
def _T540X1A do
%ICDCode{full_code: "T540X1A",
category_code: "T54",
short_code: "0X1A",
full_name: "Toxic effect of phenol and phenol homologues, accidental (unintentional), initial encounter",
short_name: "Toxi... | 51.471664 | 137 | 0.689362 |
03ce7e6a7b293ab01b29c77f42f449204ee6acaa | 97 | ex | Elixir | lib/exnn.ex | zampino/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 104 | 2015-06-18T18:54:25.000Z | 2021-11-04T15:07:02.000Z | lib/exnn.ex | nelyj/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 3 | 2016-10-09T11:19:42.000Z | 2018-09-17T16:36:32.000Z | lib/exnn.ex | nelyj/exnn | 2be888df107644daab1aca7614fecb4940fe3c84 | [
"MIT"
] | 17 | 2016-03-08T19:02:51.000Z | 2019-04-27T16:40:52.000Z | defmodule EXNN do
@moduledoc """
## Elixir Evolutive Neural Networks à la G.Sher
"""
end
| 12.125 | 49 | 0.659794 |
03ce92660a81cfd0c0e099d0aa807944d90b7c31 | 83 | exs | Elixir | test/test_helper.exs | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 1 | 2019-11-19T07:38:38.000Z | 2019-11-19T07:38:38.000Z | test/test_helper.exs | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 31 | 2018-12-26T02:05:55.000Z | 2021-05-14T03:33:07.000Z | test/test_helper.exs | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(MateriaCommerce.Test.Repo, :manual)
| 20.75 | 66 | 0.795181 |
03cea8f4774a40438a1c67d21cae1330961da97e | 2,040 | exs | Elixir | apps/legion_http/config/prod.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion_http/config/prod.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion_http/config/prod.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | 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
# Legion.HTTP.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# D... | 35.172414 | 76 | 0.714216 |
03cf0aed86d9d1eb41a2327db1d2523fdc49cdd8 | 29,003 | exs | Elixir | apps/language_server/test/providers/completion_test.exs | kianmeng/elixir-ls | 3d7d8c3ae9361af1090805551ce59a5c17d586e0 | [
"Apache-2.0"
] | null | null | null | apps/language_server/test/providers/completion_test.exs | kianmeng/elixir-ls | 3d7d8c3ae9361af1090805551ce59a5c17d586e0 | [
"Apache-2.0"
] | null | null | null | apps/language_server/test/providers/completion_test.exs | kianmeng/elixir-ls | 3d7d8c3ae9361af1090805551ce59a5c17d586e0 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Providers.CompletionTest do
use ExUnit.Case
require Logger
alias ElixirLS.LanguageServer.Providers.Completion
alias ElixirLS.Utils.TestUtils
@supports [
snippets_supported: true,
deprecated_supported: false,
tags_supported: [],
signature_help_supported: tru... | 28.213035 | 122 | 0.566459 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.