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
c812901b84afdba1862cab0645fffa090f735e4e
129
ex
Elixir
lib/chat_web/controllers/page_controller.ex
J3RN/chat
0b94d83ca429e71ddb1d48c8052c72025b15aafd
[ "MIT" ]
null
null
null
lib/chat_web/controllers/page_controller.ex
J3RN/chat
0b94d83ca429e71ddb1d48c8052c72025b15aafd
[ "MIT" ]
null
null
null
lib/chat_web/controllers/page_controller.ex
J3RN/chat
0b94d83ca429e71ddb1d48c8052c72025b15aafd
[ "MIT" ]
null
null
null
defmodule ChatWeb.PageController do use ChatWeb, :controller def index(conn, _params) do render(conn, :index) end end
16.125
35
0.728682
c812aebdc1cb9f0f74505cc6b8b28818dda2ad04
216
ex
Elixir
lib/cadet_web/views/settings_view.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
null
null
null
lib/cadet_web/views/settings_view.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
10
2022-02-24T17:57:38.000Z
2022-03-31T07:43:05.000Z
lib/cadet_web/views/settings_view.ex
chownces/cadet
0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22
[ "Apache-2.0" ]
1
2019-07-17T15:51:58.000Z
2019-07-17T15:51:58.000Z
defmodule CadetWeb.SettingsView do use CadetWeb, :view def render("show.json", %{sublanguage: sublanguage}) do %{ sublanguage: transform_map_for_view(sublanguage, [:chapter, :variant]) } end end
21.6
76
0.699074
c812ecdba9c14a2a4b12e162b0a64f8819a6dbe1
455
ex
Elixir
lib/maru/params/exceptions.ex
elixir-maru/maru_params
4bc1d05008e881136aff87667791ed4da1c12bd4
[ "WTFPL" ]
4
2021-12-29T06:45:02.000Z
2022-02-10T12:48:57.000Z
lib/maru/params/exceptions.ex
elixir-maru/maru_params
4bc1d05008e881136aff87667791ed4da1c12bd4
[ "WTFPL" ]
null
null
null
lib/maru/params/exceptions.ex
elixir-maru/maru_params
4bc1d05008e881136aff87667791ed4da1c12bd4
[ "WTFPL" ]
1
2021-12-29T06:45:03.000Z
2021-12-29T06:45:03.000Z
defmodule Maru.Params.TypeError do defexception [:type, :reason] def message(%{type: type, reason: reason}) do "Type #{type} Error: #{reason}" end end defmodule Maru.Params.ParseError do defexception [:attribute, :step, :reason] def message(%{step: :parse} = e) do "Parse Parameter #{e.attribute} Er...
22.75
58
0.663736
c812f045048a4591647cf7922f5f9934f429b362
170
ex
Elixir
lib/mix/ex_tiberius/nif.ex
svan-jansson/ex_tiberius
5ef36df4d7e024b8ba301cb07bac0a18f54f2259
[ "MIT" ]
null
null
null
lib/mix/ex_tiberius/nif.ex
svan-jansson/ex_tiberius
5ef36df4d7e024b8ba301cb07bac0a18f54f2259
[ "MIT" ]
null
null
null
lib/mix/ex_tiberius/nif.ex
svan-jansson/ex_tiberius
5ef36df4d7e024b8ba301cb07bac0a18f54f2259
[ "MIT" ]
null
null
null
defmodule ExTiberius.Nif do use Rustler, otp_app: :ex_tiberius, crate: "ex_tiberius_nif" def connect(_connection_string), do: :erlang.nif_error(:nif_not_loaded) end
28.333333
73
0.788235
c812f6274926afc31f821799e8eafdb839210a6a
466
ex
Elixir
lib/doctor_schedule_web/controllers/api/session_controller.ex
adrianomota/doctor_schedule
626eef47df8f1ff082c7a7d76342cb9c361c75a2
[ "MIT" ]
null
null
null
lib/doctor_schedule_web/controllers/api/session_controller.ex
adrianomota/doctor_schedule
626eef47df8f1ff082c7a7d76342cb9c361c75a2
[ "MIT" ]
null
null
null
lib/doctor_schedule_web/controllers/api/session_controller.ex
adrianomota/doctor_schedule
626eef47df8f1ff082c7a7d76342cb9c361c75a2
[ "MIT" ]
null
null
null
defmodule DoctorScheduleWeb.Api.SessionController do use DoctorScheduleWeb, :controller alias DoctorScheduleWeb.Auth.Guardian action_fallback DoctorScheduleWeb.FallbackController def create(conn, %{"email" => email, "password" => password}) do with {:ok, user, token} <- Guardian.authenticate(%...
27.411765
66
0.686695
c812fcbc2f67663f07e3d9a5af7ba87d53bb971a
2,938
ex
Elixir
lib/fun_with_flags/config.ex
chubarovNick/fun_with_flags
d567f2251a4fce91be7a479e8ceafbdc75eeaf47
[ "MIT" ]
null
null
null
lib/fun_with_flags/config.ex
chubarovNick/fun_with_flags
d567f2251a4fce91be7a479e8ceafbdc75eeaf47
[ "MIT" ]
1
2019-01-21T00:38:49.000Z
2019-01-31T03:49:17.000Z
lib/fun_with_flags/config.ex
sendle/fun_with_flags
c9c3fb7ab0f8f43c04a571c8ff486f5b049e97a1
[ "MIT" ]
null
null
null
defmodule FunWithFlags.Config do @moduledoc false @default_redis_config [ host: "localhost", port: 6379, database: 0, ] @default_cache_config [ enabled: true, ttl: 900 # in seconds, 15 minutes ] @default_notifications_config [ enabled: true, adapter: FunWithFlags.Notifications....
21.602941
73
0.696052
c8130536c7adf7f6968ce33c235f53f401171643
15,575
ex
Elixir
lib/grizzly/commands/table.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
null
null
null
lib/grizzly/commands/table.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
null
null
null
lib/grizzly/commands/table.ex
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
null
null
null
defmodule Grizzly.Commands.Table do @moduledoc false # look up support for supported command classes and their default Grizzly # runtime related options. This where Grizzly and Z-Wave meet in regards to # out going commands defmodule Generate do @moduledoc false alias Grizzly.CommandHandlers.{AckRes...
48.369565
101
0.713772
c8132e0d05ab9e261478b411fb723a4fab42e7a6
409
exs
Elixir
elixir/elixir-sips/samples/docker_playground/mix.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
2
2015-12-09T02:16:51.000Z
2021-07-26T22:53:43.000Z
elixir/elixir-sips/samples/docker_playground/mix.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
null
null
null
elixir/elixir-sips/samples/docker_playground/mix.exs
afronski/playground-erlang
6ac4b58b2fd717260c22a33284547d44a9b5038e
[ "MIT" ]
1
2016-05-08T18:40:31.000Z
2016-05-08T18:40:31.000Z
defmodule DockerPlayground.Mixfile do use Mix.Project def project do [app: :docker_playground, version: "0.0.1", elixir: "~> 1.0", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end def application do [applications: [:logger, :erldocker]] en...
17.782609
48
0.608802
c81354472c1e658396cf6d62c0da1315ce4e7b9e
972
exs
Elixir
test/terminator/performers_entities_test.exs
adrianplavka/terminator
794a58f6f05085159e85da7468a091e07d49a98b
[ "MIT" ]
54
2019-01-05T02:07:22.000Z
2022-02-14T22:14:45.000Z
test/terminator/performers_entities_test.exs
adrianplavka/terminator
794a58f6f05085159e85da7468a091e07d49a98b
[ "MIT" ]
3
2019-07-02T11:23:50.000Z
2021-12-16T13:07:55.000Z
test/terminator/performers_entities_test.exs
adrianplavka/terminator
794a58f6f05085159e85da7468a091e07d49a98b
[ "MIT" ]
10
2019-02-15T00:24:31.000Z
2022-03-26T11:03:04.000Z
defmodule Terminator.PerformersEntitiesTest do use Terminator.EctoCase alias Terminator.PerformersEntities describe "Terminator.PerformersEntities.create/3" do test "creates entity relation for performer" do performer = insert(:performer) struct = insert(:role) abilities = ["test_ability"] ...
30.375
82
0.713992
c8136121fb53e6dd2a548ce5fdd32b4f2a394755
494
ex
Elixir
lib/club/brands/router.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
lib/club/brands/router.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
34
2019-11-10T11:31:37.000Z
2019-11-27T21:26:48.000Z
lib/club/brands/router.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
defmodule Club.Brands.Router do use Club.Support.Router alias Club.Brands.Aggregates.Brand alias Club.Brands.Commands.{ AddBrand, RenameBrand, UpdateBrandUrl, LinkNewProductWithBrand, UnlinkProductFromBrand, DeleteBrand } identify(Brand, by: :brand_uuid, prefix: "brand-") dispatc...
17.034483
52
0.672065
c813a9a02093a2939140b451ad106de570d3c466
9,615
ex
Elixir
lib/aws/generated/application_insights.ex
qyon-brazil/aws-elixir
f7f21bebffc6776f95ffe9ef563cf368773438af
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/application_insights.ex
qyon-brazil/aws-elixir
f7f21bebffc6776f95ffe9ef563cf368773438af
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/application_insights.ex
qyon-brazil/aws-elixir
f7f21bebffc6776f95ffe9ef563cf368773438af
[ "Apache-2.0" ]
1
2020-10-28T08:56:54.000Z
2020-10-28T08:56:54.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.ApplicationInsights do @moduledoc """ Amazon CloudWatch Application Insights Amazon CloudWatch Application Insights is a service that helps you detect common problems with your applicatio...
35.091241
98
0.712428
c813a9cbe65e24eb7d552e9eb85f9eb1d24455f9
1,125
exs
Elixir
config/config.exs
filipebarros/dotfiler
6d0984371c6b0bc91902c65b7b10691579d7d414
[ "MIT" ]
null
null
null
config/config.exs
filipebarros/dotfiler
6d0984371c6b0bc91902c65b7b10691579d7d414
[ "MIT" ]
null
null
null
config/config.exs
filipebarros/dotfiler
6d0984371c6b0bc91902c65b7b10691579d7d414
[ "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.290323
73
0.752
c813dfe920538896271f89f6dadf55bc84f9ae1b
3,051
ex
Elixir
lib/graphql/resolvers/project.ex
olafura/accent
b081bd96a816f5ffd79a1b28cd5ba022d5eda803
[ "BSD-3-Clause" ]
1
2020-07-01T16:08:34.000Z
2020-07-01T16:08:34.000Z
lib/graphql/resolvers/project.ex
queer/accent
43a0ab8b43c99a8f8b3bde7020eb615c39037ad5
[ "BSD-3-Clause" ]
null
null
null
lib/graphql/resolvers/project.ex
queer/accent
43a0ab8b43c99a8f8b3bde7020eb615c39037ad5
[ "BSD-3-Clause" ]
null
null
null
defmodule Accent.GraphQL.Resolvers.Project do require Ecto.Query alias Accent.Scopes.Project, as: ProjectScope alias Accent.{ GraphQL.Paginated, Operation, Plugs.GraphQLContext, Project, ProjectCreator, ProjectDeleter, ProjectUpdater, Repo, User } alias Ecto.Query @ty...
32.115789
133
0.619797
c813e05cd087078ebe7e25d03e1df0e822f7c238
2,091
ex
Elixir
lib/advent/y2021/d12.ex
ed-flanagan/advent-of-code-solutions-elixir
ca4b62f82088e7a120699fbba9809c04c76403a6
[ "MIT" ]
null
null
null
lib/advent/y2021/d12.ex
ed-flanagan/advent-of-code-solutions-elixir
ca4b62f82088e7a120699fbba9809c04c76403a6
[ "MIT" ]
null
null
null
lib/advent/y2021/d12.ex
ed-flanagan/advent-of-code-solutions-elixir
ca4b62f82088e7a120699fbba9809c04c76403a6
[ "MIT" ]
null
null
null
defmodule Advent.Y2021.D12 do @moduledoc """ https://adventofcode.com/2021/day/12 """ @typep cave :: String.t() @typep cave_system :: %{cave() => MapSet.t()} @doc """ How many paths through this cave system are there that visit small caves at most once? """ @spec part_one(Enumerable.t()) :: non_ne...
27.88
92
0.61693
c8141ede9769e082c0b4df0a6c42660ac3a91d9b
4,796
exs
Elixir
test/test_helper.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
37
2018-07-13T14:08:16.000Z
2021-04-09T15:00:22.000Z
test/test_helper.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
9
2018-07-16T15:24:39.000Z
2021-09-01T14:21:20.000Z
test/test_helper.exs
ResiliaDev/Planga
b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e
[ "MIT" ]
3
2018-10-05T20:19:25.000Z
2019-12-05T00:30:01.000Z
# Integration test library Application.ensure_all_started(:hound) Planga.ReleaseTasks.migrate() {:ok, _} = Planga.Repo.transaction(fn -> Planga.Repo.insert!(%Planga.Chat.App{ name: "Planga Test", api_key_pairs: [ %Planga.Chat.APIKeyPair{ public_id: "foobar", secret_key: "...
33.305556
88
0.595496
c814513e49792a294ceb5c689092f2af6417b1f5
2,581
ex
Elixir
lib/conduit_mqtt/conn.ex
conduitframework/conduit_mq
ec16345433f45b79ad61447a19d66cc20ce8afd1
[ "MIT" ]
null
null
null
lib/conduit_mqtt/conn.ex
conduitframework/conduit_mq
ec16345433f45b79ad61447a19d66cc20ce8afd1
[ "MIT" ]
68
2018-10-06T02:44:32.000Z
2021-08-03T05:20:23.000Z
lib/conduit_mqtt/conn.ex
conduitframework/conduit_mq
ec16345433f45b79ad61447a19d66cc20ce8afd1
[ "MIT" ]
1
2019-07-19T06:40:56.000Z
2019-07-19T06:40:56.000Z
defmodule ConduitMQTT.Conn do @moduledoc """ Manages an Tortoise connection """ use GenServer require Logger @type broker :: atom @type name :: String.t() @type conn_type :: :pub | :sub @type opts :: [] defmodule State do @moduledoc """ State struct for handler """ defstruct [:brok...
25.058252
115
0.645099
c8147fd4c49cce0891a3cea0e066a88a0b31d0f6
9,440
ex
Elixir
lib/ueberauth/strategy/auth0.ex
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/auth0.ex
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
lib/ueberauth/strategy/auth0.ex
silvagustin/ueberauth_auth0
3070510024bfcb1545dbd3e26665d4bb8b1404df
[ "MIT" ]
null
null
null
defmodule Ueberauth.Strategy.Auth0 do @moduledoc """ Provides an Ueberauth strategy for authenticating with Auth0. You can edit the behaviour of the Strategy by including some options when you register your provider. To set the `uid_field` config :ueberauth, Ueberauth, providers: [ a...
31.362126
119
0.651165
c814a56de21acb2a4da935c3d5f7b3774965dec4
783
exs
Elixir
test/state_machine/state_test.exs
youroff/state_machine
37ff18fa5dfc33d628b5409d721cc06087cdd56d
[ "MIT" ]
16
2020-08-07T15:04:33.000Z
2021-05-17T16:33:51.000Z
test/state_machine/state_test.exs
youroff/state_machine
37ff18fa5dfc33d628b5409d721cc06087cdd56d
[ "MIT" ]
4
2020-08-30T20:42:54.000Z
2020-09-09T12:17:25.000Z
test/state_machine/state_test.exs
youroff/state_machine
37ff18fa5dfc33d628b5409d721cc06087cdd56d
[ "MIT" ]
null
null
null
defmodule StateMachineStateTest do import ExUnit.CaptureLog require Logger use ExUnit.Case, async: true alias StateMachine.{State, Context, Transition, Factory.Cat} import StateMachine.Factory def yawn(cat) do Logger.info("#{cat.name} yawned") end test "state callbacks bypassed if the transition d...
31.32
96
0.696041
c814b6eccae95a1a3fe9ca32270388bed9d4f26f
1,218
exs
Elixir
config/test.exs
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
1
2021-10-01T03:14:17.000Z
2021-10-01T03:14:17.000Z
config/test.exs
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
null
null
null
config/test.exs
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
null
null
null
use Mix.Config port = String.to_integer(System.get_env("PORT") || "4002") config :blockchain_api, BlockchainAPIWeb.Endpoint, http: [port: port], url: [host: System.get_env("HOSTNAME") || "localhost", port: port], server: true, root: ".", version: Application.spec(:blockchain_api, :vsn), check_origin: fals...
29
93
0.746305
c814bb5713b3bc67ddd830d55863ba4b9025dbed
766
exs
Elixir
priv/repo/migrations/20210324070845_create_users_auth_tables.exs
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
1
2021-08-05T12:44:37.000Z
2021-08-05T12:44:37.000Z
priv/repo/migrations/20210324070845_create_users_auth_tables.exs
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
16
2021-02-20T19:22:45.000Z
2021-06-14T13:59:01.000Z
priv/repo/migrations/20210324070845_create_users_auth_tables.exs
N-Patarov/bgsite_official
9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854
[ "Apache-2.0" ]
3
2021-05-17T17:54:43.000Z
2021-11-03T15:30:30.000Z
defmodule BgsiteOfficial.Repo.Migrations.CreateUsersAuthTables do use Ecto.Migration def change do execute "CREATE EXTENSION IF NOT EXISTS citext", "" create table(:users) do add :email, :citext, null: false add :hashed_password, :string, null: false add :confirmed_at, :naive_datetime ...
27.357143
75
0.67624
c814c3649442231d056d57127a01c80f1be41b21
3,256
exs
Elixir
test/tasks/runners/docker_build_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
1
2021-03-11T23:24:01.000Z
2021-03-11T23:24:01.000Z
test/tasks/runners/docker_build_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
null
null
null
test/tasks/runners/docker_build_test.exs
esl/buildex_common
90d9736a7c9cc9504f173c19dd2a70f412dfbdb2
[ "Apache-2.0" ]
2
2021-03-11T23:27:39.000Z
2022-03-06T10:09:40.000Z
defmodule Buildex.Common.Tasks.Runners.DockerBuildTest do use ExUnit.Case, async: false import Mimic alias Buildex.Common.Tasks.Runners.DockerBuild alias Buildex.Common.Tasks.Task @moduletag :integration @cwd File.cwd!() @file_path Path.join([@cwd, "myfile.txt"]) setup :verify_on_exit! setup do ...
28.068966
98
0.621007
c814d6bd8557474925c0b48c11df21d0d9e98a54
2,660
exs
Elixir
test/actions/destroy_test.exs
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
test/actions/destroy_test.exs
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
test/actions/destroy_test.exs
savish/ash
7faf73097a6c6f801851e9d89569b6f5e6e87f81
[ "MIT" ]
null
null
null
defmodule Ash.Test.Actions.DestroyTest do @moduledoc false use ExUnit.Case, async: true defmodule Profile do @moduledoc false use Ash.Resource, data_layer: Ash.DataLayer.Ets ets do private?(true) end actions do read :read create :create update :update destroy :...
20
89
0.62782
c814e58104e8d7c3f900570ac19d2cdf4bd2fab4
91
ex
Elixir
lib/tortoise311/handler/default.ex
ngenic/tortoise311
18aa234c26f0e1d7b3dcac5dad562231346a20ef
[ "Apache-2.0" ]
2
2021-12-23T21:51:31.000Z
2022-02-20T22:29:24.000Z
lib/tortoise311/handler/default.ex
ngenic/tortoise311
18aa234c26f0e1d7b3dcac5dad562231346a20ef
[ "Apache-2.0" ]
11
2021-11-18T01:23:15.000Z
2022-03-28T18:15:18.000Z
lib/tortoise311/handler/default.ex
ngenic/tortoise311
18aa234c26f0e1d7b3dcac5dad562231346a20ef
[ "Apache-2.0" ]
3
2021-11-19T16:23:38.000Z
2022-03-18T11:36:54.000Z
defmodule Tortoise311.Handler.Default do @moduledoc false use Tortoise311.Handler end
15.166667
40
0.813187
c8152434d682209478f8dc839e37787efe13cc2a
4,699
ex
Elixir
lib/elastic/scroller.ex
twix14/elastic
1e2c7a3fe7b28bfa6cc574b10fd7bc6dca3dadfa
[ "MIT" ]
63
2016-10-19T15:48:22.000Z
2021-12-21T02:55:39.000Z
lib/elastic/scroller.ex
twix14/elastic
1e2c7a3fe7b28bfa6cc574b10fd7bc6dca3dadfa
[ "MIT" ]
33
2016-11-13T02:41:07.000Z
2021-05-25T11:12:51.000Z
lib/elastic/scroller.ex
twix14/elastic
1e2c7a3fe7b28bfa6cc574b10fd7bc6dca3dadfa
[ "MIT" ]
27
2016-11-13T02:47:29.000Z
2022-01-25T02:16:39.000Z
defmodule Elastic.Scroller do alias Elastic.Index alias Elastic.Scroll use GenServer @moduledoc ~S""" Provides an API for working with [Elastic Search's Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-request-scroll.html) ## Example ```elixir {:ok, pid} = Elastic.Scrol...
24.473958
152
0.603745
c81527a7b56754319d69bd2d2b653a09ca3d4e38
4,620
exs
Elixir
apps/ello_core/test/ello_core/discovery_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_core/test/ello_core/discovery_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_core/test/ello_core/discovery_test.exs
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Core.DiscoveryTest do use Ello.Core.Case alias Ello.Core.Image setup do {:ok, inactive: Factory.insert(:category, level: nil, order: nil), active1: Factory.insert(:category, level: "primary", order: 2), active2: Factory.insert(:category, level: "primary", order: 1), m...
31.216216
86
0.64329
c81530ce56984499fe502994c16a8fb828376681
668
ex
Elixir
server/lib/router.ex
simoraman/liftElm
26c33da9dd585e6a81da0da7e39082b9dfa554f7
[ "BSD-3-Clause" ]
null
null
null
server/lib/router.ex
simoraman/liftElm
26c33da9dd585e6a81da0da7e39082b9dfa554f7
[ "BSD-3-Clause" ]
null
null
null
server/lib/router.ex
simoraman/liftElm
26c33da9dd585e6a81da0da7e39082b9dfa554f7
[ "BSD-3-Clause" ]
null
null
null
defmodule Server.Router do use Plug.Router if Mix.env == :dev do use Plug.Debugger end plug Plug.Static, at: "/", from: "../public" plug :match plug :dispatch plug :not_found post "/api/workout" do {:ok, data, _} = Plug.Conn.read_body(conn) lifts = Poison.decode!(data, as: %{"sets" =>...
21.548387
68
0.634731
c8153d0d30923621b05d0e6739fb38fabe790776
4,999
ex
Elixir
lib/vekil/protocol/vekil.ex
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
lib/vekil/protocol/vekil.ex
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
lib/vekil/protocol/vekil.ex
ianrumford/plymio_vekil
070ab783dc8f7747002df61704285947eea583a2
[ "MIT" ]
null
null
null
defprotocol Plymio.Vekil do @moduledoc ~S""" The `Plymio.Vekil` protocol is implemented by a collection -- the *vekil* -- that associates *proxies* with *foroms*. The *vekil* may be thought of as a dictionary where a *proxy* is a `key` and its `value` is a *forom*. A *vekil's* *proxies* will usually be h...
30.29697
100
0.657732
c81544a31875d383c03ffd18efbbfac69301bf5c
1,000
exs
Elixir
test/credo/check/warning/operation_with_constant_result_test.exs
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
test/credo/check/warning/operation_with_constant_result_test.exs
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
test/credo/check/warning/operation_with_constant_result_test.exs
rodrigues/credo
b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23
[ "MIT" ]
null
null
null
defmodule Credo.Check.Warning.OperationWithConstantResultTest do use Credo.TestHelper @described_check Credo.Check.Warning.OperationWithConstantResult test "it should NOT report expected code" do """ defmodule CredoSampleModule do use ExUnit.Case def some_fun do x * 2 Enum.reject(some_list, &is_nil...
19.230769
72
0.695
c8154b51298730361e21a556596775e897c56e92
280
ex
Elixir
lib/calctorio/machine.ex
jdfrens/calctorio
40418e3f7e562c0ade2a672434589727949e0439
[ "MIT" ]
null
null
null
lib/calctorio/machine.ex
jdfrens/calctorio
40418e3f7e562c0ade2a672434589727949e0439
[ "MIT" ]
null
null
null
lib/calctorio/machine.ex
jdfrens/calctorio
40418e3f7e562c0ade2a672434589727949e0439
[ "MIT" ]
null
null
null
defmodule Calctorio.Machine do @moduledoc """ Represents productivity modules. """ defstruct recipe: nil, speed: 1.0, productivity: 1.0 @type t :: %__MODULE__{ recipe: Calctorio.Recipe.t(), speed: float, productivity: float } end
20
54
0.610714
c81558b3c5dcf6baf74ecb598bdeeb07a405768e
213
exs
Elixir
food_poisoning/test/controllers/page_controller_test.exs
javflores/food-poison
6b7503c5830c31044026655846e8009f933fe0f4
[ "MIT" ]
null
null
null
food_poisoning/test/controllers/page_controller_test.exs
javflores/food-poison
6b7503c5830c31044026655846e8009f933fe0f4
[ "MIT" ]
null
null
null
food_poisoning/test/controllers/page_controller_test.exs
javflores/food-poison
6b7503c5830c31044026655846e8009f933fe0f4
[ "MIT" ]
null
null
null
defmodule FoodPoisoning.PageControllerTest do use FoodPoisoning.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" assert html_response(conn, 200) =~ "<div id=\"elm-main\"></div>" end end
23.666667
68
0.661972
c8155ee8bf9aa63d97f915d16c9381d427ebb221
1,195
ex
Elixir
apps/app_telnet/lib/signal_service/socket_supervisor.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
17
2020-06-20T11:29:43.000Z
2022-03-21T05:53:06.000Z
apps/app_telnet/lib/signal_service/socket_supervisor.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
2
2020-07-09T10:22:50.000Z
2020-09-01T14:46:40.000Z
apps/app_telnet/lib/signal_service/socket_supervisor.ex
niclaslind/signalbroker-server
afb80514dcbabe561ac2da42adc08843a15c37c5
[ "Apache-2.0" ]
3
2020-07-17T20:04:36.000Z
2022-01-24T14:19:46.000Z
# Copyright 2019 Volvo Cars # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
35.147059
102
0.760669
c8159b59f66ec2339c32b844bc95ebb84327fbc7
673
exs
Elixir
test/thumbnail_test.exs
lsimoneau/xthumb
902d94f99d77e31f6f6278794e9a2f7422294b37
[ "Apache-2.0" ]
4
2015-02-11T06:26:00.000Z
2018-07-17T10:19:19.000Z
test/thumbnail_test.exs
lsimoneau/xthumb
902d94f99d77e31f6f6278794e9a2f7422294b37
[ "Apache-2.0" ]
null
null
null
test/thumbnail_test.exs
lsimoneau/xthumb
902d94f99d77e31f6f6278794e9a2f7422294b37
[ "Apache-2.0" ]
null
null
null
defmodule ThumbnailTest do use ExUnit.Case @small_target "./test/support/sample_files/foo-small.png" @medium_target "./test/support/sample_files/foo-medium.png" setup do on_exit fn -> File.rm(@small_target) File.rm(@medium_target) end end test "creating multiple thumbnails of an image...
32.047619
148
0.673105
c815a07b6a0bd6edebdb7f3bde0076abe59c53b8
363
ex
Elixir
lib/animate.ex
batate/elixir-animations
4637e76b9d0266e18d929d4146cfc6efb23046f1
[ "MIT" ]
null
null
null
lib/animate.ex
batate/elixir-animations
4637e76b9d0266e18d929d4146cfc6efb23046f1
[ "MIT" ]
null
null
null
lib/animate.ex
batate/elixir-animations
4637e76b9d0266e18d929d4146cfc6efb23046f1
[ "MIT" ]
null
null
null
defmodule Animate do import Frames require Pipes require Test require Reduce def hello do :world end def run(module, time, drop\\0) do module |> frames |> String.split("=====\n") |> Enum.drop(drop) |> Enum.each(&display(&1, time)) end def display(frame, time) do IO.p...
15.125
36
0.600551
c815d4662a4229cf7bbca5a0f19b741b5c6235a2
822
ex
Elixir
lib/accent/auth/user_remote/authenticator.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
lib/accent/auth/user_remote/authenticator.ex
suryatmodulus/accent
6aaf34075c33f3d9d84d38237af4a39b594eb808
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
lib/accent/auth/user_remote/authenticator.ex
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
defmodule Accent.UserRemote.Authenticator do alias Accent.UserRemote.{CollaboratorNormalizer, Persister, TokenGiver, User} def authenticate(%{provider: provider, info: info}) do info |> map_user(provider) |> Persister.persist() |> CollaboratorNormalizer.normalize() |> TokenGiver.grant_token() ...
23.485714
79
0.675182
c815da5c4f24097f4994e07908c2d25a11a01ea6
942
exs
Elixir
mix.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
3
2017-10-16T14:35:46.000Z
2017-12-13T22:35:43.000Z
mix.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
null
null
null
mix.exs
oPauloChaves/elixir-checking-account-api
1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd
[ "MIT" ]
null
null
null
defmodule Bank.Mixfile do use Mix.Project def project do [ app: :bank, version: "0.0.1", elixir: "~> 1.4", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, start_permanent: Mix.env == :prod, deps: deps() ] end # Configur...
22.428571
56
0.584926
c815ff928d86d12def2ac57984432aedd2fc3fbd
516
exs
Elixir
ex_graphs_book/apps/graph_commons/mix.exs
NickMcG/ExGraphsBook
89276d374dd21cc4605a4b1b5a05b177723680c2
[ "Apache-2.0" ]
null
null
null
ex_graphs_book/apps/graph_commons/mix.exs
NickMcG/ExGraphsBook
89276d374dd21cc4605a4b1b5a05b177723680c2
[ "Apache-2.0" ]
null
null
null
ex_graphs_book/apps/graph_commons/mix.exs
NickMcG/ExGraphsBook
89276d374dd21cc4605a4b1b5a05b177723680c2
[ "Apache-2.0" ]
null
null
null
defmodule GraphCommons.MixProject do use Mix.Project def project do [ app: :graph_commons, version: "0.1.0", elixir: "~> 1.13-rc.1", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do ...
18.428571
59
0.583333
c81618996ea99b863312a25974f8eb103cbe1e0b
250
exs
Elixir
priv/repo/migrations/20180329220834_create_actress.exs
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
priv/repo/migrations/20180329220834_create_actress.exs
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
priv/repo/migrations/20180329220834_create_actress.exs
kensupermen/javex
f7774e83f64980f3c1eb4b5701f46d835edd76da
[ "MIT" ]
null
null
null
defmodule Javex.Repo.Migrations.CreateActress do use Ecto.Migration def change do create table(:actresses) do add :name, :string add :image_url, :string add :view, :integer, default: 0 timestamps() end end end
17.857143
48
0.656
c81623bddebdb704cbd3baff962010498bc4e092
2,054
ex
Elixir
lib/adoptoposs_web.ex
co0lsky/adoptoposs
73c5d80c80a5ae1bcbc4351d2a073b3483587502
[ "MIT" ]
null
null
null
lib/adoptoposs_web.ex
co0lsky/adoptoposs
73c5d80c80a5ae1bcbc4351d2a073b3483587502
[ "MIT" ]
1
2021-05-11T20:15:21.000Z
2021-05-11T20:15:21.000Z
lib/adoptoposs_web.ex
co0lsky/adoptoposs
73c5d80c80a5ae1bcbc4351d2a073b3483587502
[ "MIT" ]
null
null
null
defmodule AdoptopossWeb 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 AdoptopossWeb, :controller use AdoptopossWeb, :view The definitions below will be executed for every view, con...
23.078652
83
0.695716
c8162c23a6d5bd22be6cd014fa305dce3c70084b
1,594
ex
Elixir
lib/ltree.ex
Byzanteam-Labs/hierarch
6374e04726f7904e3b8ba9338a1be3436e876e69
[ "MIT" ]
20
2019-05-22T01:48:54.000Z
2021-08-05T12:51:39.000Z
lib/ltree.ex
Byzanteam-Labs/hierarch
6374e04726f7904e3b8ba9338a1be3436e876e69
[ "MIT" ]
23
2019-06-24T06:45:11.000Z
2022-03-14T19:13:19.000Z
lib/ltree.ex
GreenNerd-Labs/hierarch
6374e04726f7904e3b8ba9338a1be3436e876e69
[ "MIT" ]
4
2018-07-10T13:14:42.000Z
2018-11-12T22:09:00.000Z
defmodule Hierarch.LTree do @separator "." @doc """ Return the parent_id of the given ltree path ## Examples iex> LTree.parent_id("Top") "Top" iex> LTree.parent_id("") nil iex> LTree.parent_id("") nil iex> LTree.parent_id(nil) nil """ def parent_id(nil), do:...
18.321839
63
0.577164
c8164a99488e1380beea2bcc8de305e5410364de
162
ex
Elixir
lib/maru/types/list.ex
nicooga/maru
e61cf79f11c4d016766efb6778f6ae735445b1b3
[ "BSD-3-Clause" ]
null
null
null
lib/maru/types/list.ex
nicooga/maru
e61cf79f11c4d016766efb6778f6ae735445b1b3
[ "BSD-3-Clause" ]
null
null
null
lib/maru/types/list.ex
nicooga/maru
e61cf79f11c4d016766efb6778f6ae735445b1b3
[ "BSD-3-Clause" ]
null
null
null
defmodule Maru.Types.List do @moduledoc """ Buildin Type: List """ use Maru.Type @doc false def parse(input, _) when is_list(input), do: input end
13.5
52
0.660494
c816788ea1263802d600ee0aabc3ed37d63ccfd5
570
ex
Elixir
api/lib/responda_me_web/views/changeset_view.ex
mendes13/responda.me
42facc3de1c5cc503459457b2bb452f0ad6fac37
[ "MIT" ]
null
null
null
api/lib/responda_me_web/views/changeset_view.ex
mendes13/responda.me
42facc3de1c5cc503459457b2bb452f0ad6fac37
[ "MIT" ]
null
null
null
api/lib/responda_me_web/views/changeset_view.ex
mendes13/responda.me
42facc3de1c5cc503459457b2bb452f0ad6fac37
[ "MIT" ]
null
null
null
defmodule Responda.MeWeb.ChangesetView do use Responda.MeWeb, :view @doc """ Traverses and translates changeset errors. See `Ecto.Changeset.traverse_errors/2` and `Responda.MeWeb.ErrorHelpers.translate_error/1` for more details. """ def translate_errors(changeset) do Ecto.Changeset.traverse_errors(c...
28.5
67
0.738596
c8167aad183c2681c44662d1b4a580555b0b3419
7,925
ex
Elixir
services/fc_inventory/lib/fc_inventory/command_handlers/stock_handler.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
46
2018-10-13T23:18:13.000Z
2021-08-07T07:46:51.000Z
services/fc_inventory/lib/fc_inventory/command_handlers/stock_handler.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
25
2018-10-14T00:56:07.000Z
2019-12-23T19:41:02.000Z
services/fc_inventory/lib/fc_inventory/command_handlers/stock_handler.ex
fleadope/freshcom
8d5944befaa6eea8d31e5f5995939be2a1a44262
[ "BSD-3-Clause" ]
5
2018-12-16T04:39:51.000Z
2020-10-01T12:17:03.000Z
defmodule FCInventory.StockHandler do @moduledoc false @behaviour Commanded.Commands.Handler use FCBase, :command_handler import UUID import FCInventory.StockPolicy alias Decimal, as: D alias FCInventory.LocationStore alias FCInventory.{ ReserveStock, DecreaseReservedStock, CommitStock, ...
27.327586
102
0.640379
c8168ea50fc90fa7c08ae1f3530fd8604a49f861
1,130
exs
Elixir
test/fl_hook/duration_test.exs
tlux/fl_hook_client
0cd74c1d8873eea8aa654710efe7aab97a1eec5c
[ "MIT" ]
1
2022-01-26T21:06:26.000Z
2022-01-26T21:06:26.000Z
test/fl_hook/duration_test.exs
tlux/fl_hook_client
0cd74c1d8873eea8aa654710efe7aab97a1eec5c
[ "MIT" ]
null
null
null
test/fl_hook/duration_test.exs
tlux/fl_hook_client
0cd74c1d8873eea8aa654710efe7aab97a1eec5c
[ "MIT" ]
null
null
null
defmodule FLHook.DurationTest do use ExUnit.Case alias FLHook.Duration describe "parse/1" do test "duration" do duration = %Duration{days: 0, hours: 0, minutes: 0, seconds: 0} assert Duration.parse(duration) == {:ok, duration} end test "string" do assert Duration.parse("0:00:00:0...
31.388889
77
0.593805
c8169720737fba1c3c9a70e6081a23d2455a1de7
742
exs
Elixir
mix.exs
NattyNarwhal/mircparser
eb50ae7b3075405937b524813a1e19ccf68a3386
[ "0BSD" ]
1
2021-11-29T16:31:31.000Z
2021-11-29T16:31:31.000Z
mix.exs
NattyNarwhal/mircparser
eb50ae7b3075405937b524813a1e19ccf68a3386
[ "0BSD" ]
null
null
null
mix.exs
NattyNarwhal/mircparser
eb50ae7b3075405937b524813a1e19ccf68a3386
[ "0BSD" ]
null
null
null
defmodule MircParser.MixProject do use Mix.Project def project do [ app: :mircparser, description: description(), version: "0.2.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), package: package() ] end # Run "mix help compile.app" to le...
19.025641
72
0.584906
c816c6f34f82026aed058a344513dac244837a19
2,557
exs
Elixir
test/ex_limiter/plug_test.exs
Miserlou/ex_limiter
31391989dfca30d2f86cba04c5510c386efacdf4
[ "MIT" ]
28
2018-08-06T16:08:27.000Z
2022-03-01T16:54:10.000Z
test/ex_limiter/plug_test.exs
RiverFinancial/ex_limiter
74f7b29c35e22af1955b01481a629a3c24bd3e45
[ "MIT" ]
3
2019-03-11T17:20:50.000Z
2019-05-10T02:17:53.000Z
test/ex_limiter/plug_test.exs
RiverFinancial/ex_limiter
74f7b29c35e22af1955b01481a629a3c24bd3e45
[ "MIT" ]
4
2019-04-18T00:06:05.000Z
2021-12-01T18:30:05.000Z
defmodule ExLimiter.PlugTest do use ExUnit.Case use Plug.Test alias ExLimiter.TestUtils describe "#call/2" do setup [:setup_limiter, :setup_conn] test "It will supply rate limiting headers if it passes", %{limiter: config, conn: conn} do conn = ExLimiter.Plug.call(conn, config) refute Enu...
30.440476
96
0.656629
c816d58a5f3a68e16fc92c70085fddaa55a59251
2,059
exs
Elixir
test/fnv/remote_view_test.exs
Shakadak/pattern_metonyms
f0a2929217278a8bc268716ff9ad705ecc6f9d62
[ "MIT" ]
4
2020-12-21T12:47:49.000Z
2022-03-22T09:34:06.000Z
test/fnv/remote_view_test.exs
Shakadak/pattern_metonyms
f0a2929217278a8bc268716ff9ad705ecc6f9d62
[ "MIT" ]
3
2021-10-21T12:59:10.000Z
2021-11-03T20:53:59.000Z
test/fnv/remote_view_test.exs
Shakadak/pattern_metonyms
f0a2929217278a8bc268716ff9ad705ecc6f9d62
[ "MIT" ]
null
null
null
defmodule Fnv.RemoteViewTest do use ExUnit.Case, async: true defmodule DRVT.Remote do import PatternMetonyms pattern(head(x) <- [x | _]) def reverse(xs), do: Enum.reverse(xs) pattern(rev_head(x) <- (reverse() -> [x | _])) pattern(rev_head2(x) <- (Enum.reverse() -> [x | _])) pattern((tu...
23.134831
99
0.573094
c816d620f70ecbe3b1cc85eb753443c1b28fa2db
2,277
exs
Elixir
test/saxy/xml_test.exs
duffelhq/saxy
fb37f1d9ce919e6085a924c2483c515ee6cb997b
[ "MIT" ]
null
null
null
test/saxy/xml_test.exs
duffelhq/saxy
fb37f1d9ce919e6085a924c2483c515ee6cb997b
[ "MIT" ]
null
null
null
test/saxy/xml_test.exs
duffelhq/saxy
fb37f1d9ce919e6085a924c2483c515ee6cb997b
[ "MIT" ]
null
null
null
defmodule Saxy.XMLTest do use ExUnit.Case, async: true import Saxy.XML describe "element/3" do test "generates element in simple form" do assert element("foo", [], []) == {"foo", [], []} assert element(:foo, [], []) == {"foo", [], []} assert element("foo", [a: 1], []) == {"foo", [{"a", "1...
33
92
0.57444
c816e9daf7ff7019287c476204c948d8c5c6c606
4,151
ex
Elixir
lib/changelog/buffer/content.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog/buffer/content.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
lib/changelog/buffer/content.ex
boneskull/changelog.com
2fa2e356bb0e8fcf038c46a4a947fef98822e37d
[ "MIT" ]
null
null
null
defmodule Changelog.Buffer.Content do alias Changelog.{Episode, NewsItem} alias ChangelogWeb.{Endpoint, NewsItemView, Router} def episode_link(nil), do: nil def episode_link(item), do: item.url def episode_text(nil), do: "" def episode_text(item) do item = item |> NewsItem.preload_all() ...
29.439716
117
0.647314
c817123c0dc118ae5e10288cd891072204bc0a8f
186
exs
Elixir
test/controllers/page_controller_test.exs
nickgal/homemade_pi
a7b7df7d9214cb409ac5b133b52b70c13c98180c
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
nickgal/homemade_pi
a7b7df7d9214cb409ac5b133b52b70c13c98180c
[ "MIT" ]
null
null
null
test/controllers/page_controller_test.exs
nickgal/homemade_pi
a7b7df7d9214cb409ac5b133b52b70c13c98180c
[ "MIT" ]
null
null
null
defmodule HomemadePi.PageControllerTest do use HomemadePi.ConnCase test "GET /" do conn = get conn(), "/" assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
20.666667
60
0.688172
c817166ad5abd797fc487aed1c59fd014c3c67c7
409
exs
Elixir
elixir-match/app/test/match_web/views/error_view_test.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
elixir-match/app/test/match_web/views/error_view_test.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
elixir-match/app/test/match_web/views/error_view_test.exs
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
defmodule MatchWeb.ErrorViewTest do use MatchWeb.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(MatchWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do assert r...
27.266667
90
0.728606
c81722c4699ff61809def42c8137ce528191e29e
136
ex
Elixir
test/support/test_structs/simple.ex
agleb/fsmx
40a0e77eb41f74af680be086592c1277721e9b53
[ "ISC" ]
92
2020-06-25T14:30:01.000Z
2022-02-03T09:45:23.000Z
test/support/test_structs/simple.ex
agleb/fsmx
40a0e77eb41f74af680be086592c1277721e9b53
[ "ISC" ]
5
2020-07-14T22:12:37.000Z
2021-05-13T14:43:55.000Z
test/support/test_structs/simple.ex
agleb/fsmx
40a0e77eb41f74af680be086592c1277721e9b53
[ "ISC" ]
10
2020-07-14T17:28:50.000Z
2022-02-24T18:45:27.000Z
defmodule Fsmx.TestStructs.Simple do defstruct [:state] use Fsmx.Struct, transitions: %{"1" => ["2"], "2" => ["3"], "3" => :*} end
22.666667
72
0.573529
c8173e2dc2475aaf4490b4fd8ea8c3f07be7067c
1,282
ex
Elixir
test/support/data_case.ex
annatel/antl_utils_ecto
494af10a3331c46809c7295bfc674fe42ba5c064
[ "MIT" ]
3
2020-10-30T13:57:58.000Z
2022-03-03T15:21:53.000Z
test/support/data_case.ex
annatel/antl_utils_ecto
494af10a3331c46809c7295bfc674fe42ba5c064
[ "MIT" ]
1
2020-12-30T11:36:33.000Z
2020-12-30T11:36:33.000Z
test/support/data_case.ex
annatel/antl_utils_ecto
494af10a3331c46809c7295bfc674fe42ba5c064
[ "MIT" ]
null
null
null
defmodule AntlUtilsEcto.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes don...
29.813953
77
0.698128
c8174f9c79b26cf0155409addf9908461f9a7961
577
exs
Elixir
rel/config.exs
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
9
2017-09-27T21:25:34.000Z
2020-10-07T16:14:26.000Z
rel/config.exs
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
1
2017-09-27T21:26:00.000Z
2017-10-01T11:49:11.000Z
rel/config.exs
piasekhgw/distributed_mkp
0cd2d4a3b007d9fdd7544da34c2785ab6f48ae7e
[ "MIT" ]
null
null
null
Path.join(["rel", "plugins", "*.exs"]) |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Mix.Releases.Config, default_release: :default, default_environment: Mix.env() environment :dev do set dev_mode: true set include_erts: false end environment :prod do set include_erts: true set include_src:...
17.484848
42
0.70364
c8175f7962df27cf867c07d2b337b8a569708c79
3,009
exs
Elixir
28-frank-3.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
28-frank-3.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
28-frank-3.exs
yortz/30-days-of-elixir
b7126eeee16b726df0b00234fd4aff03a5c3e1a9
[ "MIT" ]
null
null
null
# A micro web DSL library called "Frank" # The motivation was mainly to learn about macros. # # The third (and hopefully final) version of Frank # adds support for matching on parameters. # (Still no regex match, but I realized I didn't care # as much about that as I thought :-) defmodule Frank do @moduledoc """ ...
23.880952
111
0.578598
c817613318c00b0bb89d14e88c7ef7be3e3d9fbe
486
ex
Elixir
weather_tracker/lib/weather_tracker_web/views/error_helpers.ex
NickMcG/WeatherStation
83ff0ad75467c10eead409c4fc3a437643b9a994
[ "MIT" ]
null
null
null
weather_tracker/lib/weather_tracker_web/views/error_helpers.ex
NickMcG/WeatherStation
83ff0ad75467c10eead409c4fc3a437643b9a994
[ "MIT" ]
null
null
null
weather_tracker/lib/weather_tracker_web/views/error_helpers.ex
NickMcG/WeatherStation
83ff0ad75467c10eead409c4fc3a437643b9a994
[ "MIT" ]
null
null
null
defmodule WeatherTrackerWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message. """ def translate_error({msg, opts}) do # Because the error messages we show in our forms and APIs # are defined inside Ecto, we need to t...
28.588235
69
0.676955
c8178d6257f84bb6dec862b9082ab586d3805f97
937
ex
Elixir
lib/rankings/application.ex
spkane31/cc-rankings
0acda9f3ca35abd4874ab06478ad22aa473811bf
[ "MIT" ]
1
2020-06-28T19:31:07.000Z
2020-06-28T19:31:07.000Z
lib/rankings/application.ex
spkane31/rankings
0acda9f3ca35abd4874ab06478ad22aa473811bf
[ "MIT" ]
5
2019-07-25T17:00:39.000Z
2019-07-25T17:12:07.000Z
lib/rankings/application.ex
spkane31/rankings
0acda9f3ca35abd4874ab06478ad22aa473811bf
[ "MIT" ]
null
null
null
defmodule Rankings.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the Ecto repository Rankings.Repo, ...
29.28125
67
0.716115
c817bbb11d81753f2a259e4a480b6161d4072954
7,277
exs
Elixir
test/lib/bamboo/adapters/send_grid_helper_test.exs
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
1
2021-07-18T21:56:16.000Z
2021-07-18T21:56:16.000Z
test/lib/bamboo/adapters/send_grid_helper_test.exs
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
null
null
null
test/lib/bamboo/adapters/send_grid_helper_test.exs
mrcasals/bamboo
c3b82436d9594d7838775fcc906cd4bd8516690e
[ "MIT" ]
null
null
null
defmodule Bamboo.SendGridHelperTest do use ExUnit.Case import Bamboo.SendGridHelper @template_id "80509523-83de-42b6-a2bf-54b7513bd2aa" @ip_pool_name "my-ip-pool-name" setup do {:ok, email: Bamboo.Email.new_email()} end test "with_template/2 adds the correct template", %{email: email} do email...
30.965957
95
0.641061
c817beb1b9bce2438a0b3564014108ee8f00af3b
178
ex
Elixir
lib/farmbot/celery_script/ast/arg/y.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
2
2018-08-01T23:07:52.000Z
2018-10-17T12:49:21.000Z
lib/farmbot/celery_script/ast/arg/y.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
lib/farmbot/celery_script/ast/arg/y.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
1
2017-07-22T21:51:14.000Z
2017-07-22T21:51:14.000Z
defmodule Farmbot.CeleryScript.AST.Arg.Y do @moduledoc false @behaviour Farmbot.CeleryScript.AST.Arg def decode(val), do: {:ok, val} def encode(val), do: {:ok, val} end
22.25
43
0.707865
c817cf8a641a92cdadfbec5d4d7346881621a03a
193
exs
Elixir
test/google_signed_url_test.exs
hukl/google_signed_url
d13df81ffbb1776938028f0083954f67ace189ae
[ "MIT" ]
null
null
null
test/google_signed_url_test.exs
hukl/google_signed_url
d13df81ffbb1776938028f0083954f67ace189ae
[ "MIT" ]
null
null
null
test/google_signed_url_test.exs
hukl/google_signed_url
d13df81ffbb1776938028f0083954f67ace189ae
[ "MIT" ]
null
null
null
defmodule GoogleSignedUrlTest do use ExUnit.Case doctest GoogleSignedUrl # Nothing to test as a valid google service account key is needed and a proper # upload to verify it works end
24.125
80
0.782383
c817d307c1029ec966af661dc3c1219ec8d1728d
230
ex
Elixir
lib/core/json/jason_parser.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
lib/core/json/jason_parser.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
lib/core/json/jason_parser.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
null
null
null
defmodule FarmbotOS.JSON.JasonParser do @moduledoc "Parser handler for Jason" @behaviour FarmbotOS.JSON.Parser def decode(data, opts), do: Jason.decode(data, opts) def encode(data, opts), do: Jason.encode(data, opts) end
28.75
54
0.747826
c817d330218e15855e39f6ebb3e523c596b109b9
322
exs
Elixir
priv/repo/migrations/20180522013006_create_categories.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
priv/repo/migrations/20180522013006_create_categories.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20180522013006_create_categories.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Repo.Migrations.CreateCategories do use Ecto.Migration def change do create table(:categories) do add(:title, :string) add(:user_id, references(:users, on_delete: :delete_all), null: false) timestamps() end create(unique_index(:categories, [:title])) end en...
21.466667
76
0.692547
c817e3cd4ac5c0d8ce4a520200212163b01bcc46
1,127
ex
Elixir
elixir/run-length-encoding/lib/run_length_encoder.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
6
2019-06-19T15:43:20.000Z
2020-07-17T19:46:09.000Z
elixir/run-length-encoding/lib/run_length_encoder.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
10
2021-05-10T21:02:55.000Z
2021-05-11T20:29:41.000Z
elixir/run-length-encoding/lib/run_length_encoder.ex
paulfioravanti/exercism
b3bf15814b89b0ef50b9bf062b3c800e80e37e75
[ "MIT" ]
1
2019-06-25T10:42:14.000Z
2019-06-25T10:42:14.000Z
defmodule RunLengthEncoder do # NOTE: \1 backreferences the single character match in parentheses. # The parentheses only serve to provide a match for the backreference. @consecutive_data_elements ~r{([A-Za-z\s])\1+} @run_length_encoding ~r{\d+\D} @doc """ Generates a string where consecutive elements are ...
30.459459
90
0.705413
c817ea88428644c44b28af7374d670128a380c3d
11,201
ex
Elixir
lib/ecto/query/builder/select.ex
marpo60/ecto
2c2e1b467ec5de87ee41508070f6670288cd2a32
[ "Apache-2.0" ]
1
2019-07-25T17:42:33.000Z
2019-07-25T17:42:33.000Z
lib/ecto/query/builder/select.ex
marpo60/ecto
2c2e1b467ec5de87ee41508070f6670288cd2a32
[ "Apache-2.0" ]
1
2020-07-17T10:07:44.000Z
2020-07-17T10:07:44.000Z
lib/ecto/query/builder/select.ex
marpo60/ecto
2c2e1b467ec5de87ee41508070f6670288cd2a32
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [apply: 2] defmodule Ecto.Query.Builder.Select do @moduledoc false alias Ecto.Query.Builder @doc """ Escapes a select. It allows tuples, lists and variables at the top level. Inside the tuples and lists query expressions are allowed. ## Examples iex> escape({1, 2}, [], _...
31.821023
116
0.598072
c817eab80b73a19ec2438175a401e80219cca7e2
1,758
exs
Elixir
exercises/saddle-points/saddle_points_test.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
null
null
null
exercises/saddle-points/saddle_points_test.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
null
null
null
exercises/saddle-points/saddle_points_test.exs
jerith/elixir
9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4
[ "Apache-2.0" ]
1
2018-07-19T23:43:56.000Z
2018-07-19T23:43:56.000Z
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("saddle_points.exs", __DIR__) end ExUnit.start() ExUnit.configure(exclude: :pending, trace: true) defmodule SaddlePointsTest do use ExUnit.Case # @tag :pending test "extract rows" do rows = SaddlePoints.rows("1 2\n10 20") assert rows == [...
24.760563
90
0.641069
c8181a4871d51a5bd2000d7863e005a54f54f47d
1,468
ex
Elixir
lib/watcher.ex
athulkrishnaaei/elixir_koans
3b3067e5609dab5371c3f7fdc75f88edab3810ab
[ "MIT" ]
1,944
2016-04-24T02:46:10.000Z
2022-03-29T00:19:17.000Z
lib/watcher.ex
athulkrishnaaei/elixir_koans
3b3067e5609dab5371c3f7fdc75f88edab3810ab
[ "MIT" ]
157
2016-04-23T18:40:24.000Z
2022-02-10T14:00:45.000Z
lib/watcher.ex
athulkrishnaaei/elixir_koans
3b3067e5609dab5371c3f7fdc75f88edab3810ab
[ "MIT" ]
636
2016-04-23T17:18:00.000Z
2022-03-23T10:04:06.000Z
defmodule Watcher do use GenServer def start_link() do GenServer.start_link(__MODULE__, dirs: ["lib/koans"]) end def init(args) do {:ok, watcher_pid} = FileSystem.start_link(args) FileSystem.subscribe(watcher_pid) {:ok, %{watcher_pid: watcher_pid}} end def handle_info({:file_event, watche...
27.698113
110
0.661444
c8182988b0d97ef3fcf6e405c179db926a4b7f33
94
exs
Elixir
test/data_processor_web/views/layout_view_test.exs
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
null
null
null
test/data_processor_web/views/layout_view_test.exs
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
3
2018-08-17T13:42:45.000Z
2018-08-17T17:05:11.000Z
test/data_processor_web/views/layout_view_test.exs
DylanGuedes/batch_processor
2f3122a5f1a31557a39fac67aa62e297c39e8bf5
[ "Apache-2.0" ]
null
null
null
defmodule DataProcessorWeb.LayoutViewTest do use DataProcessorWeb.ConnCase, async: true end
23.5
44
0.851064
c81848c69aa178ece409d244240ec7804770985d
201
exs
Elixir
config/config.exs
ponyatov/exBook
e9fbe83198c40b9c9a975a651e18bc6564025870
[ "MIT" ]
null
null
null
config/config.exs
ponyatov/exBook
e9fbe83198c40b9c9a975a651e18bc6564025870
[ "MIT" ]
null
null
null
config/config.exs
ponyatov/exBook
e9fbe83198c40b9c9a975a651e18bc6564025870
[ "MIT" ]
null
null
null
use Mix.Config config :exbook, ecto_repos: [ExBook.Repo] config :logger, :console, format: "$date $time $metadata[$level] $message\n", metadata: [:request_id] import_config "#{Mix.env()}.exs"
18.272727
53
0.686567
c8184dc8d7d40be825c85c400082629ffb4ed17d
1,313
ex
Elixir
lib/gateways/implementations/mongo_db_gateway_impl.ex
iboard/repox
3b2d1a74439ae8ee6634bc8b37756773d1bed51d
[ "Unlicense" ]
null
null
null
lib/gateways/implementations/mongo_db_gateway_impl.ex
iboard/repox
3b2d1a74439ae8ee6634bc8b37756773d1bed51d
[ "Unlicense" ]
3
2015-05-10T20:49:22.000Z
2015-05-20T19:18:12.000Z
lib/gateways/implementations/mongo_db_gateway_impl.ex
iboard/repox
3b2d1a74439ae8ee6634bc8b37756773d1bed51d
[ "Unlicense" ]
null
null
null
defmodule MongoDBGateway do @moduledoc """ MongoDB implementation of the [Gateway](Gateway.html)-protocol. #### Usage: gw = %MongoDBGateway{db: "test", collection: "test"} """ defstruct db: "test", collection: "test", mongo: nil end defimpl Gateway, for: MongoDBGateway do def to_list gw_impl do ...
21.883333
65
0.640518
c81873d44d248a80154a9d1a5dca3a6079d3835e
1,158
ex
Elixir
apps/banking_api_challenge_web/lib/banking_api_challenge_web/controllers/withdrawal_controller.ex
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
null
null
null
apps/banking_api_challenge_web/lib/banking_api_challenge_web/controllers/withdrawal_controller.ex
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
null
null
null
apps/banking_api_challenge_web/lib/banking_api_challenge_web/controllers/withdrawal_controller.ex
jhonndabi/banking-api-challenge
1e13c675b02c8e62a76e82b0a0dd6a44306a211e
[ "Apache-2.0" ]
1
2021-04-20T19:05:48.000Z
2021-04-20T19:05:48.000Z
defmodule BankingApiChallengeWeb.WithdrawalController do @moduledoc """ Actions related to the withdrawal resource. """ use BankingApiChallengeWeb, :controller alias BankingApiChallenge.Operations.Withdrawals alias BankingApiChallenge.Operations.Inputs.WithdrawalInput alias BankingApiChallenge.InputValid...
27.571429
81
0.677029
c818a3903c61712b3ebc7ed8afafdbf300506f2b
1,244
ex
Elixir
lib/jbot/utils/type_checker.ex
Waasi/jbot
71c267e66fef612207462bef6310ee665a142c61
[ "MIT" ]
2
2017-01-30T01:15:38.000Z
2020-04-09T08:27:10.000Z
lib/jbot/utils/type_checker.ex
Waasi/jbot
71c267e66fef612207462bef6310ee665a142c61
[ "MIT" ]
null
null
null
lib/jbot/utils/type_checker.ex
Waasi/jbot
71c267e66fef612207462bef6310ee665a142c61
[ "MIT" ]
null
null
null
defmodule Jbot.TypeChecker do @moduledoc """ Jbot.TypeChecker provides logic to classify a message and assign an action server to be dispatched to. ### Functions - type/1 """ @greetings ["hello", "hey", "hi", "good night", "good morning", "good evening"] ##### # Public API ##### @doc """...
21.448276
81
0.606913
c818ab7ba3a74b0bf68364b9e7659e676f10f9f0
953
exs
Elixir
mix.exs
joaomdmoura/keeper
3541dc4dcf06afa176bcd5827408accdd3d05f9d
[ "Apache-2.0" ]
29
2016-11-06T05:43:17.000Z
2020-01-05T00:35:57.000Z
mix.exs
joaomdmoura/escort
3541dc4dcf06afa176bcd5827408accdd3d05f9d
[ "Apache-2.0" ]
9
2016-11-28T05:54:56.000Z
2018-06-01T13:36:51.000Z
mix.exs
joaomdmoura/escort
3541dc4dcf06afa176bcd5827408accdd3d05f9d
[ "Apache-2.0" ]
4
2016-11-28T20:31:02.000Z
2019-07-12T20:26:57.000Z
defmodule Keeper.Mixfile do use Mix.Project @version "0.0.1-rc" @maintainers ["João M. D. Moura"] @description """ Flexible and out of the box authentication solution for Phoenix ~ Devise like """ def project do [app: :keeper, version: @version, elixir: "~> 1.3", build_embedded: Mix...
22.162791
85
0.56873
c818b3d364fef19c4556e49f3f36fc1e09e69074
892
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v35/metadata.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.037037
74
0.761211
c818b56d228ac8a2d1e06411c1b9799d8e3f8672
872
ex
Elixir
lib/shadowsocks/conn/server.ex
feng19/shadowsocks-ex
33aa06349e877b4395e27c182f0dbf71a8e51165
[ "BSD-3-Clause" ]
null
null
null
lib/shadowsocks/conn/server.ex
feng19/shadowsocks-ex
33aa06349e877b4395e27c182f0dbf71a8e51165
[ "BSD-3-Clause" ]
null
null
null
lib/shadowsocks/conn/server.ex
feng19/shadowsocks-ex
33aa06349e877b4395e27c182f0dbf71a8e51165
[ "BSD-3-Clause" ]
null
null
null
defmodule Shadowsocks.Conn.Server do alias Shadowsocks.Stream require Shadowsocks.Protocol @behaviour Shadowsocks.Conn def init(socket, encoder, parent, args) do # recv target and check ota {stream, addr} = Shadowsocks.Protocol.init_stream!(socket, encoder) |> Shadowsocks.Protocol.recv_tar...
23.567568
98
0.636468
c818bb3adfa2b9b116496f0118d0c02e2ec7219e
1,652
ex
Elixir
clients/genomics/lib/google_api/genomics/v1/model/operation_event.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/operation_event.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/genomics/lib/google_api/genomics/v1/model/operation_event.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
33.04
190
0.744552
c818d89d26e7eb5f1765f6156d6f5e1d7a4c1ab6
1,612
ex
Elixir
clients/datastore/lib/google_api/datastore/v1/model/allocate_ids_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/allocate_ids_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/datastore/lib/google_api/datastore/v1/model/allocate_ids_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.583333
150
0.740074
c81928df38769bbd91c834d7b3a762e2f06bd521
900
ex
Elixir
clients/data_labeling/lib/google_api/data_labeling/v1beta1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/data_labeling/lib/google_api/data_labeling/v1beta1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/data_labeling/lib/google_api/data_labeling/v1beta1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.333333
74
0.763333
c8192f38e301c4b3f7b2f5219fe43b8f8c2d36bf
1,639
exs
Elixir
test/elixir_films_web/controllers/movie_controller_test.exs
abmBispo/elixir-films
a8464c0cf180be4e8c5835da2702b73aeb5b0cd2
[ "MIT" ]
null
null
null
test/elixir_films_web/controllers/movie_controller_test.exs
abmBispo/elixir-films
a8464c0cf180be4e8c5835da2702b73aeb5b0cd2
[ "MIT" ]
null
null
null
test/elixir_films_web/controllers/movie_controller_test.exs
abmBispo/elixir-films
a8464c0cf180be4e8c5835da2702b73aeb5b0cd2
[ "MIT" ]
null
null
null
defmodule ElixirFilmsWeb.MovieControllerTest do use ElixirFilmsWeb.ConnCase alias ElixirFilms.Movies @create_attrs %{ actors: "some actors", director: "some director", genre: "some genre", poster: "some poster", released: ~D[2010-04-17], title: "some title" } @import_json [ %{ ...
20.234568
83
0.5723
c8194501f3ea3348925506ebef62da74b5a42baf
422
ex
Elixir
lib/todo_app/seguranca/usuario.ex
tarcisiooliveira/todo_app
2a5291390c64cc6a0a593b8d0f671ad899dea034
[ "MIT" ]
null
null
null
lib/todo_app/seguranca/usuario.ex
tarcisiooliveira/todo_app
2a5291390c64cc6a0a593b8d0f671ad899dea034
[ "MIT" ]
null
null
null
lib/todo_app/seguranca/usuario.ex
tarcisiooliveira/todo_app
2a5291390c64cc6a0a593b8d0f671ad899dea034
[ "MIT" ]
null
null
null
defmodule TodoApp.Usuario do use Ecto.Schema import Ecto.Changeset schema("usuarios")do field :name, :string field :email, :string field :token, :string field :provider, :string timestamps() end def changeset(conn, params \\%{}) do IO.inspect(params) conn |> cast(params,[:nam...
21.1
60
0.64455
c819646a0186e711e322f7aaa0d7a81a46936eee
64
exs
Elixir
test/yearleap_test.exs
DevL/yearleap
eef359176b181b30be129799f4cda3c0c3fcff23
[ "MIT" ]
null
null
null
test/yearleap_test.exs
DevL/yearleap
eef359176b181b30be129799f4cda3c0c3fcff23
[ "MIT" ]
null
null
null
test/yearleap_test.exs
DevL/yearleap
eef359176b181b30be129799f4cda3c0c3fcff23
[ "MIT" ]
null
null
null
defmodule YearleapTest do use ExUnit.Case use Plug.Test end
12.8
25
0.78125
c8196b1ef561a75c030dae08f6e43fa4f6af828a
1,462
ex
Elixir
test/support/test_source.ex
bbalser/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
1
2020-06-15T22:41:37.000Z
2020-06-15T22:41:37.000Z
test/support/test_source.ex
inhindsight/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
1
2020-09-11T12:24:12.000Z
2020-09-12T11:14:27.000Z
test/support/test_source.ex
bbalser/etl
24791047ca0ce8066ec73c4196e54e954b1a1471
[ "Apache-2.0" ]
null
null
null
defmodule Etl.TestSource do defstruct pid: nil, partitions: [], hash: nil def send_events(pid, events) do GenStage.cast(pid, {:events, events}) end def stop(pid, reason \\ :normal) do GenStage.cast(pid, {:stop, reason}) end end defmodule Etl.TestSource.Stage do use GenStag...
24.779661
95
0.634063
c81978dcd14d753d6e5326c72e80504a89131c95
961
ex
Elixir
lib/rankings_web/controllers/page_controller.ex
spkane31/cc-rankings
0acda9f3ca35abd4874ab06478ad22aa473811bf
[ "MIT" ]
1
2020-06-28T19:31:07.000Z
2020-06-28T19:31:07.000Z
lib/rankings_web/controllers/page_controller.ex
spkane31/rankings
0acda9f3ca35abd4874ab06478ad22aa473811bf
[ "MIT" ]
5
2019-07-25T17:00:39.000Z
2019-07-25T17:12:07.000Z
lib/rankings_web/controllers/page_controller.ex
spkane31/rankings
0acda9f3ca35abd4874ab06478ad22aa473811bf
[ "MIT" ]
null
null
null
defmodule RankingsWeb.PageController do use RankingsWeb, :controller alias Rankings.Repo import Ecto.Query import Float alias Rankings.{Team, Runner, Result, Race, RaceInstance} def index(conn, _params) do runners = Repo.one(from r in Runner, select: count(r.id)) teams = Repo.one(from t in Team, se...
36.961538
142
0.689906
c81984f46b36595c9ccacb0d9b97d3826ffb18b1
1,534
ex
Elixir
apps/ello_serve/web/views/webapp/config_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
16
2017-06-21T21:31:20.000Z
2021-05-09T03:23:26.000Z
apps/ello_serve/web/views/webapp/config_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
25
2017-06-07T12:18:28.000Z
2018-06-08T13:27:43.000Z
apps/ello_serve/web/views/webapp/config_view.ex
ello/apex
4acb096b3ce172ff4ef9a51e5d068d533007b920
[ "MIT" ]
3
2018-06-14T15:34:07.000Z
2022-02-28T21:06:13.000Z
defmodule Ello.Serve.Webapp.ConfigView do use Ello.Serve.Web, :view def client_id() do Application.get_env(:ello_serve, :webapp_oauth_client_id) end def logo_mark() do Application.get_env(:ello_serve, :webapp_config)[:logo_mark] end def app_debug(%{assigns: %{debug: true}}), do: true def app_d...
25.566667
88
0.633638
c819a20c3c27b2757deead0a192a954bd0d62b8c
2,251
ex
Elixir
lib/2016/14.ex
segfaultvicta/advent-ex
a300e2659858b45b545773a0f2ff24f00453d35f
[ "MIT" ]
null
null
null
lib/2016/14.ex
segfaultvicta/advent-ex
a300e2659858b45b545773a0f2ff24f00453d35f
[ "MIT" ]
null
null
null
lib/2016/14.ex
segfaultvicta/advent-ex
a300e2659858b45b545773a0f2ff24f00453d35f
[ "MIT" ]
null
null
null
defmodule Advent.Sixteen.Fourteen do alias Advent.Helpers.Utility, as: U use Timing import DefMemo @input "yjdafjpo" #@input "abc" defmemo stretched_md5(index) do #IO.puts index stretch(:crypto.hash(:md5, @input <> Integer.to_string(index)) |> Base.encode16(case: :lower), 2016) |> to_charlist ...
27.45122
119
0.606397
c819c2b004e472f57121c296a104d47358e4a935
4,018
exs
Elixir
test/run_workflows/parallel_steps_with_notification_test.exs
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
4
2019-12-07T05:18:26.000Z
2020-11-06T23:28:43.000Z
test/run_workflows/parallel_steps_with_notification_test.exs
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
53
2020-01-06T11:23:09.000Z
2021-06-25T15:30:07.000Z
test/run_workflows/parallel_steps_with_notification_test.exs
mathiaHT/ex_step_flow
6496e9511239de64f00119428476338dfcde9dea
[ "MIT" ]
3
2020-01-30T15:37:40.000Z
2020-10-27T14:10:02.000Z
defmodule StepFlow.RunWorkflows.ParallelStepsWithNotificationTest do use ExUnit.Case use Plug.Test alias Ecto.Adapters.SQL.Sandbox alias StepFlow.Step doctest StepFlow setup do # Explicitly get a connection before each test :ok = Sandbox.checkout(StepFlow.Repo) # Setting the shared mode S...
26.786667
108
0.551518
c81a27c0e73146a8ce7e641e3a5003858654559d
1,233
ex
Elixir
lib/oli_web/live/users/modals/unlock_account_modal.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli_web/live/users/modals/unlock_account_modal.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli_web/live/users/modals/unlock_account_modal.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule OliWeb.Accounts.Modals.UnlockAccountModal do use Phoenix.LiveComponent use Phoenix.HTML def render(assigns) do ~L""" <div class="modal fade show" id="<%= @id %>" tabindex="-1" role="dialog" aria-hidden="true" phx-hook="ModalLaunch"> <div class="modal-dialog" role="document"> <div ...
35.228571
119
0.514193
c81a3417bc0e67698c9f8f5bda567fa6cab95bc5
976
exs
Elixir
elixir/set1/challenge3/test/cryptic_test.exs
sdball/matasano-crypto-challenges
c539a605b4f709c7c202216ecedd7355e6b4a1b9
[ "MIT" ]
null
null
null
elixir/set1/challenge3/test/cryptic_test.exs
sdball/matasano-crypto-challenges
c539a605b4f709c7c202216ecedd7355e6b4a1b9
[ "MIT" ]
null
null
null
elixir/set1/challenge3/test/cryptic_test.exs
sdball/matasano-crypto-challenges
c539a605b4f709c7c202216ecedd7355e6b4a1b9
[ "MIT" ]
null
null
null
defmodule CrypticTest do use ExUnit.Case doctest Cryptic describe "Cryptic.single_byte_xor/2" do test "performs an xor of the key against each byte of the given binary" do text = "qpssp" key = <<9>> assert Cryptic.single_byte_xor(text, key) == "xyzzy" end end describe "Cryptic.most...
29.575758
78
0.685451
c81a49cfca46098c46da2a2d86e1218b37a56389
978
exs
Elixir
wadm/test/model/validator_test.exs
wasmCloud/lattice-controller
f965ee6ed367904d5efe3bd7475a4e24ea578254
[ "Apache-2.0" ]
2
2021-08-31T12:55:58.000Z
2021-09-04T13:20:22.000Z
wadm/test/model/validator_test.exs
wasmCloud/wadm
ccf76739039f14fc40548a00dd209d7ffa5c0c4e
[ "Apache-2.0" ]
12
2021-11-28T19:22:20.000Z
2022-01-25T18:41:48.000Z
wadm/test/model/validator_test.exs
wasmCloud/wadm
ccf76739039f14fc40548a00dd209d7ffa5c0c4e
[ "Apache-2.0" ]
1
2021-11-25T00:42:06.000Z
2021-11-25T00:42:06.000Z
defmodule WadmTest.Model.ValidatorTest do @simple_path "test/fixtures/simple1.yaml" @validfails_path "test/fixtures/valid_fails.yaml" use ExUnit.Case alias Wadm.Model.{AppSpec, Validator} describe "Testing AppSpec Validation" do setup do {:ok, pass_spec} = AppSpec.from_map(YamlElixir.read_from_fil...
29.636364
87
0.653374
c81a4ebfdc158582c5943abec34f4861b27a1134
3,215
ex
Elixir
lib/phoenix/live_dashboard/router.ex
sumitsawant/live.dashboard.sumitsawant.me
9b17b716f07c5427891b8b51a48654a796db420f
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/router.ex
sumitsawant/live.dashboard.sumitsawant.me
9b17b716f07c5427891b8b51a48654a796db420f
[ "MIT" ]
null
null
null
lib/phoenix/live_dashboard/router.ex
sumitsawant/live.dashboard.sumitsawant.me
9b17b716f07c5427891b8b51a48654a796db420f
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveDashboard.Router do @moduledoc """ Provides LiveView routing for LiveDashboard. """ @doc """ Defines a LiveDashboard route. It expects the `path` the dashboard will be mounted at and a set of options. ## Options * `:metrics` - Configures the module to retrieve metrics from....
32.474747
95
0.631415
c81a77017c79d2b5add8daa90bda1f2b428eaf27
1,913
ex
Elixir
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_kms_wrapped_crypto_key.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_kms_wrapped_crypto_key.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_kms_wrapped_crypto_key.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...
35.425926
134
0.743335
c81a7e1588d763aa6760ddf83ea1f5943facd0b9
76
exs
Elixir
test/test_helper.exs
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
5
2020-05-15T17:06:22.000Z
2020-06-20T12:05:46.000Z
test/test_helper.exs
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
null
null
null
test/test_helper.exs
ldd/hn_comments_game
5f720621c549a3737c155f9d59fa8277491f3b16
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(HnCommentsGame.Repo, :manual)
25.333333
60
0.802632
c81a7e521633052ec6706e53499ce42a4d55d762
1,386
ex
Elixir
lib/surface_bootstrap/form/time_input.ex
joerichsen/surface_bootstrap
14a8b57126ead9a6593d628b9962e167fc01030d
[ "MIT" ]
null
null
null
lib/surface_bootstrap/form/time_input.ex
joerichsen/surface_bootstrap
14a8b57126ead9a6593d628b9962e167fc01030d
[ "MIT" ]
null
null
null
lib/surface_bootstrap/form/time_input.ex
joerichsen/surface_bootstrap
14a8b57126ead9a6593d628b9962e167fc01030d
[ "MIT" ]
null
null
null
defmodule SurfaceBootstrap.Form.TimeInput do @moduledoc """ The time input element as defined here: - https://hexdocs.pm/phoenix_html/Phoenix.HTML.Form.html#time_input/3 - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time """ use Surface.Component use SurfaceBootstrap.Form.TextInputBas...
35.538462
103
0.642136
c81a927695239655a6631c5f6c8c450f0fae96c5
1,666
exs
Elixir
mix.exs
melbystyle/jw_ministry_api
2065d628a84e829b805c71b7e73fb0bee3d0dd44
[ "Apache-2.0" ]
1
2017-06-19T18:18:11.000Z
2017-06-19T18:18:11.000Z
mix.exs
melbystyle/jw_ministry_api
2065d628a84e829b805c71b7e73fb0bee3d0dd44
[ "Apache-2.0" ]
null
null
null
mix.exs
melbystyle/jw_ministry_api
2065d628a84e829b805c71b7e73fb0bee3d0dd44
[ "Apache-2.0" ]
null
null
null
defmodule JwMinistryApi.Mixfile do use Mix.Project def project do [app: :jw_ministry_api, version: "0.0.1", elixir: "~> 1.2", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :pro...
30.290909
89
0.606843
c81aae29a31149f1f7c5aad89769598805320126
1,722
ex
Elixir
clients/games_management/lib/google_api/games_management/v1management/model/profile_settings.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/games_management/lib/google_api/games_management/v1management/model/profile_settings.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/games_management/lib/google_api/games_management/v1management/model/profile_settings.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 &quot;License&quot;); # 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 ...
34.44
194
0.742741
c81abe36e9088f85e5ef8e72901181aa84156529
4,474
ex
Elixir
lib/aws/dynamodb_streams.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
223
2015-05-29T17:45:35.000Z
2021-06-29T08:37:14.000Z
lib/aws/dynamodb_streams.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
33
2015-11-20T20:56:43.000Z
2021-07-09T20:13:34.000Z
lib/aws/dynamodb_streams.ex
RAM9/aws-elixir
2890ba722c977e03212df6a957a19d466c05cdf6
[ "Apache-2.0" ]
62
2015-06-14T20:53:24.000Z
2021-12-13T07:20:15.000Z
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/jkakar/aws-codegen for more details. defmodule AWS.DynamoDB.Streams do @moduledoc """ Amazon DynamoDB Amazon DynamoDB Streams provides API actions for accessing streams and processing stream records. To learn more about application developm...
36.672131
88
0.694904
c81adc003f1a1d70828b280802c5570d8bdcf60f
3,797
ex
Elixir
lib/elasticlunr/dsl/query/terms_query.ex
merchant-ly/ex_elasticlunr
b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd
[ "MIT" ]
null
null
null
lib/elasticlunr/dsl/query/terms_query.ex
merchant-ly/ex_elasticlunr
b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd
[ "MIT" ]
null
null
null
lib/elasticlunr/dsl/query/terms_query.ex
merchant-ly/ex_elasticlunr
b7d12f3e567f1ecad1bfb402a062edd4d58ef9fd
[ "MIT" ]
null
null
null
defmodule Elasticlunr.Dsl.TermsQuery do use Elasticlunr.Dsl.Query alias Elasticlunr.Dsl.Query alias Elasticlunr.{Index, Token} defstruct ~w[minimum_should_match expand field terms boost fuzziness]a @type t :: %__MODULE__{ minimum_should_match: pos_integer(), expand: boolean(), ...
23.73125
73
0.555439
c81ae354cf4ec48d60fccd1b6dc913ec1a60200c
1,345
ex
Elixir
lib/excommerce_web/views/admin/cart_view.ex
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
1
2019-04-01T19:14:16.000Z
2019-04-01T19:14:16.000Z
lib/excommerce_web/views/admin/cart_view.ex
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
null
null
null
lib/excommerce_web/views/admin/cart_view.ex
roger120981/planet
a662006551d11427c08cf6cdbacd37d377bcd9c5
[ "MIT" ]
1
2019-03-24T01:50:48.000Z
2019-03-24T01:50:48.000Z
defmodule ExcommerceWeb.Admin.CartView do use ExcommerceWeb, :view # This will depend on preload ?? # We should actually look at whether product has product option types # This can lead to incorrect variant additions in corrupted data # We might have to disallow such products in listing and addition too de...
42.03125
125
0.709294
c81aec22ed6cfc3ea7ede75fc3602b9a3c1a8934
15,679
exs
Elixir
lib/elixir/test/elixir/kernel/quote_test.exs
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/quote_test.exs
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/quote_test.exs
tnascimento/elixir
9a4d10e702f33d2fa47718cde05375b506b4a3d6
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.QuoteTest do use ExUnit.Case, async: true @some_fun &List.flatten/1 test "fun" do assert is_function(@some_fun) end test "list" do assert quote(do: [1, 2, 3]) == [1, 2, 3] end test "tuple" do assert quote(do: {:a, 1}) == {:...
24.613815
97
0.551183
c81af6d8f59db036f342c13bf975f17fe36872e7
1,374
ex
Elixir
lib/koans/19_protocols.ex
TeoDiaz/elixir-koans
f04382b05cb8b19224b72180e9b64b9b510e4c53
[ "MIT" ]
null
null
null
lib/koans/19_protocols.ex
TeoDiaz/elixir-koans
f04382b05cb8b19224b72180e9b64b9b510e4c53
[ "MIT" ]
null
null
null
lib/koans/19_protocols.ex
TeoDiaz/elixir-koans
f04382b05cb8b19224b72180e9b64b9b510e4c53
[ "MIT" ]
null
null
null
defmodule Protocols do use Koans @intro "Want to follow the rules? Adhere to the protocol!" defprotocol(School, do: def(enroll(person))) defimpl School, for: Any do def enroll(_) do "Pupil enrolled at school" end end defmodule Student do @derive School defstruct name: "" end d...
26.423077
79
0.671761
c81b602ab9481bb1fde8224fc8028bffb4ee5109
655
exs
Elixir
test/sptfy/client/placeholder_test.exs
Joe-noh/sptfy
ce94ec2ec61529ab6fe708248a2360f95ec388ea
[ "MIT" ]
5
2020-12-14T15:46:26.000Z
2021-03-20T22:32:58.000Z
test/sptfy/client/placeholder_test.exs
Joe-noh/sptfy
ce94ec2ec61529ab6fe708248a2360f95ec388ea
[ "MIT" ]
9
2020-12-25T14:36:11.000Z
2021-01-25T14:03:18.000Z
test/sptfy/client/placeholder_test.exs
Joe-noh/sptfy
ce94ec2ec61529ab6fe708248a2360f95ec388ea
[ "MIT" ]
null
null
null
defmodule Sptfy.Client.PlaceholderTest do use ExUnit.Case, async: true alias Sptfy.Client.Placeholder describe "extract/1" do test "extract placeholder names from string" do assert Placeholder.extract("/users/:id") == [{:id, required: true}] assert Placeholder.extract("/users/:id/posts/:post_id"...
32.75
116
0.668702
c81b6386bf6b7ac03b371f6ff5a9f15369bd08e0
532
ex
Elixir
lib/daily_meals/meals/get.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
lib/daily_meals/meals/get.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
lib/daily_meals/meals/get.ex
vinolivae/daily_meals
8f375cbb7eaf54abfa6b683705bb8075067f9078
[ "MIT" ]
null
null
null
defmodule DailyMeals.Meals.Get do @moduledoc """ This module provides a function to get a meal. """ alias DailyMeals.{Error, Meal, Repo} @doc """ This function gets all meal. """ def get_all, do: Repo.all(Meal) @doc """ this function gets a meal by id. """ @spec get_by_id(uuid :: String.t()) :...
23.130435
79
0.614662