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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4adccdd4940205271bb20b2a266df1e1e7c24efb | 942 | ex | Elixir | test/support/channel_case.ex | arielj/live-buzzer | 1900c917f4cab413af8bc024325b747536328d7b | [
"MIT"
] | null | null | null | test/support/channel_case.ex | arielj/live-buzzer | 1900c917f4cab413af8bc024325b747536328d7b | [
"MIT"
] | null | null | null | test/support/channel_case.ex | arielj/live-buzzer | 1900c917f4cab413af8bc024325b747536328d7b | [
"MIT"
] | null | null | null | defmodule BuzzerWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts wi... | 26.914286 | 63 | 0.737792 |
4adcd147333fa6ace2391a87c66fecb720303673 | 61 | ex | Elixir | tfl_demo/lib/tfl_demo_web/views/page_view.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | tfl_demo/lib/tfl_demo_web/views/page_view.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | tfl_demo/lib/tfl_demo_web/views/page_view.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | defmodule TflDemoWeb.PageView do
use TflDemoWeb, :view
end
| 15.25 | 32 | 0.803279 |
4adce639358955491e7bb51e72afe2ded941764c | 5,291 | ex | Elixir | lib/typo/pdf/writer/image.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | lib/typo/pdf/writer/image.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | lib/typo/pdf/writer/image.ex | john-vinters/typo | 71a0fabca7cec380a5a76b2199554f87ff8aaf73 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2022, John Vinters <john.vinters@gmail.com>
#
# 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 appli... | 31.494048 | 96 | 0.601021 |
4adce89b58e1f391ed18a4b540c092796d72e5fa | 816 | ex | Elixir | lib/blog/posts.ex | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | null | null | null | lib/blog/posts.ex | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | 9 | 2021-08-13T02:21:40.000Z | 2021-08-24T05:02:19.000Z | lib/blog/posts.ex | itorisaias/elxpro_blog_phx | 872f70a154c15976ed829c5fe6a9767ea28d67a5 | [
"MIT"
] | null | null | null | defmodule Blog.Posts do
@moduledoc """
Posts module
"""
import Ecto.Query, warn: false
alias Blog.{Posts.Post, Repo}
def list_posts(user_id \\ nil) do
if user_id do
query = from p in Post, where: p.user_id == ^user_id
Repo.all(query)
else
Repo.all(Post)
end
end
def get_po... | 18.133333 | 58 | 0.593137 |
4adcec6ba29c86935200eff9b79c290f625e2acc | 1,919 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/batch_clear_values_by_data_filter_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_clear_values_by_data_filter_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/batch_clear_values_by_data_filter_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.38 | 282 | 0.74518 |
4add0dde907f3e73ab167c3b1887b0cd8014db29 | 216 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20181001065043_add_full_name_and_calling_name_to_user.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet_db/priv/repo/migrations/20181001065043_add_full_name_and_calling_name_to_user.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20181001065043_add_full_name_and_calling_name_to_user.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletDB.Repo.Migrations.AddFullNameAndCallingNameToUser do
use Ecto.Migration
def change do
alter table(:user) do
add :full_name, :string
add :calling_name, :string
end
end
end
| 19.636364 | 70 | 0.722222 |
4add42911d86003f035980173e762387021fc7d7 | 634 | exs | Elixir | mix.exs | slashmili/fluxter | 621da9635c4b0306fd07014382c6d85eb17b2b60 | [
"ISC"
] | null | null | null | mix.exs | slashmili/fluxter | 621da9635c4b0306fd07014382c6d85eb17b2b60 | [
"ISC"
] | 1 | 2019-11-19T13:27:53.000Z | 2019-11-19T13:27:53.000Z | mix.exs | slashmili/fluxter | 621da9635c4b0306fd07014382c6d85eb17b2b60 | [
"ISC"
] | 1 | 2020-04-21T11:32:05.000Z | 2020-04-21T11:32:05.000Z | defmodule Fluxter.Mixfile do
use Mix.Project
def project() do
[app: :fluxter,
name: "Fluxter",
version: "0.8.0",
elixir: "~> 1.2",
package: package(),
description: desc(),
deps: deps()]
end
def application() do
[applications: [:logger],
env: [host: "127.0.0.1", port:... | 19.212121 | 63 | 0.569401 |
4add50d7a32593949a2acf3e53f3f0af7bf50181 | 2,424 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_rpc_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_rpc_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_rpc_status.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... | 45.735849 | 427 | 0.730611 |
4add5b02ec8ec7c82d93a0a914e0e0f9ffc1c2b2 | 1,651 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/person_cover_cover_info.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/person_cover_cover_info.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/model/person_cover_cover_info.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 "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... | 34.395833 | 179 | 0.760145 |
4add68395995fcc6af540bb3d1e577245dcae19e | 1,123 | ex | Elixir | apps/blog_da_tha_web/test/support/channel_case.ex | thaisfiori/blog_da_tha | e860e64e5251dae03b95fdf1e339ec0a3d789a29 | [
"Apache-2.0"
] | null | null | null | apps/blog_da_tha_web/test/support/channel_case.ex | thaisfiori/blog_da_tha | e860e64e5251dae03b95fdf1e339ec0a3d789a29 | [
"Apache-2.0"
] | null | null | null | apps/blog_da_tha_web/test/support/channel_case.ex | thaisfiori/blog_da_tha | e860e64e5251dae03b95fdf1e339ec0a3d789a29 | [
"Apache-2.0"
] | null | null | null | defmodule BlogDaThaWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts... | 27.390244 | 71 | 0.730187 |
4add801246b3cb3fe1f1b144c2d6379c80bb4a31 | 1,793 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__predict_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.148936 | 266 | 0.767987 |
4add93cb5be2881be64dae1bb7494c9298ccf420 | 4,128 | exs | Elixir | protocols/midi_algebra.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | protocols/midi_algebra.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | protocols/midi_algebra.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule Midi do
defstruct(content: <<>>)
defmodule Frame do
defstruct(
type: "xxxx",
length: 0,
data: <<>>
)
def to_binary(%Midi.Frame{type: type, length: length, data: data}) do
<<
type::binary-4,
length::integer-32,
data::binary
>>
en... | 23.724138 | 79 | 0.451066 |
4adda2235f71ab671eb1b1f79982fb84f6fffb12 | 42,459 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/images.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/api/images.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/api/images.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.033088 | 1,450 | 0.627193 |
4adde4e5f5dda8e5704921984e785a0c7b905f67 | 72 | ex | Elixir | lib/blog_engine/repo.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | lib/blog_engine/repo.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | lib/blog_engine/repo.ex | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | defmodule BlogEngine.Repo do
use Ecto.Repo, otp_app: :blog_engine
end
| 18 | 38 | 0.791667 |
4addf4feb380d4fe97821d14d341d331f266b076 | 667 | exs | Elixir | mix.exs | bbense/decimal.test | be2d37e21cb93bddcf24532168e7149c4f40dd2b | [
"Apache-2.0"
] | null | null | null | mix.exs | bbense/decimal.test | be2d37e21cb93bddcf24532168e7149c4f40dd2b | [
"Apache-2.0"
] | null | null | null | mix.exs | bbense/decimal.test | be2d37e21cb93bddcf24532168e7149c4f40dd2b | [
"Apache-2.0"
] | null | null | null | defmodule Decimal.Mixfile do
use Mix.Project
def project do
[app: :decimal,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more... | 20.212121 | 77 | 0.608696 |
4addf72111d69a8453e9f6ba31dc3ec0a574ba83 | 2,589 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_create_instance_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_create_instance_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildexecution_admin_v1alpha_create_instance_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.830769 | 280 | 0.75589 |
4addf848139e20a9a7a8b76bd646656413547e0b | 358 | exs | Elixir | test/elixir_boilerplate/factory_test.exs | Amirhat/test-elixir-boilerplate | 2429a061d0b7b51ac838d15ffc629a667ed9e941 | [
"BSD-3-Clause"
] | 854 | 2019-03-18T19:13:58.000Z | 2022-03-30T01:47:30.000Z | test/elixir_boilerplate/factory_test.exs | Amirhat/test-elixir-boilerplate | 2429a061d0b7b51ac838d15ffc629a667ed9e941 | [
"BSD-3-Clause"
] | 167 | 2019-03-18T21:23:28.000Z | 2022-03-31T19:07:34.000Z | test/elixir_boilerplate/factory_test.exs | Amirhat/test-elixir-boilerplate | 2429a061d0b7b51ac838d15ffc629a667ed9e941 | [
"BSD-3-Clause"
] | 63 | 2019-03-28T14:19:11.000Z | 2022-02-15T17:22:14.000Z | defmodule ElixirBoilerplate.FactoryTest do
@moduledoc """
This is a test module to make sure our factory setup is working correctly.
You’ll probably want to delete it.
"""
use ElixirBoilerplate.DataCase, async: true
import ElixirBoilerplate.Factory
test "build/1 works with our factory setup" do
ass... | 23.866667 | 76 | 0.748603 |
4ade012f36acbe331c1218a8fa379906256ac0d6 | 1,331 | ex | Elixir | lib/level_web/schema/enums.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | lib/level_web/schema/enums.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | lib/level_web/schema/enums.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | defmodule LevelWeb.Schema.Enums do
@moduledoc false
use Absinthe.Schema.Notation
enum :user_state do
value :active, as: "ACTIVE"
value :disabled, as: "DISABLED"
end
enum :space_user_state do
value :active, as: "ACTIVE"
value :disabled, as: "DISABLED"
end
enum :space_user_role do
va... | 17.285714 | 47 | 0.667919 |
4ade207ce7c9bf9e700df9ec0145657adede0b42 | 896 | ex | Elixir | clients/groups_migration/lib/google_api/groups_migration/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/groups_migration/lib/google_api/groups_migration/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/groups_migration/lib/google_api/groups_migration/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.185185 | 74 | 0.762277 |
4ade3a42e106744785ac0f3473953910dde541a9 | 2,742 | ex | Elixir | apps/kv/lib/kv/registry.ex | xiongxin/kv_umbrella | e79f601981ab3480e464e4957774ffc48989e9f4 | [
"MIT"
] | null | null | null | apps/kv/lib/kv/registry.ex | xiongxin/kv_umbrella | e79f601981ab3480e464e4957774ffc48989e9f4 | [
"MIT"
] | null | null | null | apps/kv/lib/kv/registry.ex | xiongxin/kv_umbrella | e79f601981ab3480e464e4957774ffc48989e9f4 | [
"MIT"
] | null | null | null | defmodule KV.Registry do
use GenServer
## Client API
@doc """
Starts the registry
"""
def start_link(opts) do
# __MODULE__ 服务器回调模块名称,当前模块
# :ok 初始化参数
# 服务器配置参数, :name, ...
# 1. Pass the name to GenServer's init
server = Keyword.fetch!(opts, :name) # 使用fetch!在选项中如果没有name参数时会使当前进程crash
... | 26.621359 | 82 | 0.61488 |
4ade4cefd365b206b5468b3d241bfab7214cca87 | 10,827 | exs | Elixir | test/signs/realtime_test.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-01-24T12:39:05.000Z | 2022-01-24T12:39:05.000Z | test/signs/realtime_test.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 40 | 2021-05-05T10:14:25.000Z | 2022-03-31T18:34:15.000Z | test/signs/realtime_test.exs | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-03-20T21:08:12.000Z | 2022-03-20T21:08:12.000Z | defmodule Signs.RealtimeTest do
use ExUnit.Case, async: false
import ExUnit.CaptureLog
alias Content.Message.Headways.Top, as: HT
alias Content.Message.Headways.Bottom, as: HB
defmodule FakePredictions do
def for_stop(_stop_id, _direction_id), do: []
def stopped_at?(_stop_id), do: false
end
def... | 28.26893 | 116 | 0.613189 |
4ade57f8ba26c01b48e9c45be83f03aaaa524236 | 17,007 | exs | Elixir | test/swoosh/adapters/mandrill_test.exs | jackmarchant/swoosh | e387e9c0c8a224d1d0761f24ffba90cafc8ef664 | [
"MIT"
] | null | null | null | test/swoosh/adapters/mandrill_test.exs | jackmarchant/swoosh | e387e9c0c8a224d1d0761f24ffba90cafc8ef664 | [
"MIT"
] | null | null | null | test/swoosh/adapters/mandrill_test.exs | jackmarchant/swoosh | e387e9c0c8a224d1d0761f24ffba90cafc8ef664 | [
"MIT"
] | 1 | 2018-08-17T07:48:51.000Z | 2018-08-17T07:48:51.000Z | defmodule Swoosh.Adapters.MandrillTest do
use AdapterCase, async: true
import Swoosh.Email
alias Swoosh.Adapters.Mandrill
@success_response """
[
{
"email": "steve.rogers@example.com",
"status": "sent",
"_id": "9",
"reject_reason" :null
}
]
"""
@queued_... | 41.279126 | 200 | 0.5142 |
4ade5e27b3a07f08fb4db3d5cb91c7c5e00fd05d | 3,014 | ex | Elixir | lib/grizzly/command_class/network_management_inclusion/node_remove.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/network_management_inclusion/node_remove.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/network_management_inclusion/node_remove.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.NetworkManagementInclusion.NodeRemove do
@moduledoc """
A module for working with the NODE_REMOVE command
This command is used for activing or de-activing the node
remove mode.
"""
@behaviour Grizzly.Command
alias Grizzly.{Packet, Node}
alias Grizzly.Network.State, as: N... | 25.982759 | 90 | 0.587923 |
4ade65bb43e1c1018daa76f2fe4bd991a706b266 | 2,897 | ex | Elixir | packages/elixir/lib/riptide/store/store_composite.ex | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 11 | 2020-01-20T16:42:00.000Z | 2021-09-18T11:36:45.000Z | packages/elixir/lib/riptide/store/store_composite.ex | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 16 | 2020-04-05T19:26:14.000Z | 2020-05-21T14:50:59.000Z | packages/elixir/lib/riptide/store/store_composite.ex | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 2 | 2020-10-16T11:01:57.000Z | 2021-01-20T21:11:52.000Z | defmodule Riptide.Store.Composite do
@moduledoc """
This module provides a macro to define a store that splits up the data tree between various other stores. It is implemented via pattern matching paths that are being written or read and specifying which store to go to.
## Usage
```elixir
defmodule Todolist... | 28.401961 | 220 | 0.577839 |
4ade70b8e0792f878b1c2e583d60e803c34b8d18 | 1,535 | ex | Elixir | lib/school_house_web/endpoint.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 90 | 2021-02-10T23:57:52.000Z | 2022-03-17T18:36:55.000Z | lib/school_house_web/endpoint.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 120 | 2021-02-11T00:32:44.000Z | 2022-03-23T04:11:59.000Z | lib/school_house_web/endpoint.ex | fmterrorf/school_house | b3a1374d4b23fbc027b6bc9c95004c6556c48bf0 | [
"Apache-2.0"
] | 18 | 2021-04-15T09:57:44.000Z | 2022-03-23T02:55:26.000Z | defmodule SchoolHouseWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :school_house
use Appsignal.Phoenix
# 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 [
sto... | 30.098039 | 99 | 0.72443 |
4ade7a4d2a63db4cb7186736ce069c06ef4c798f | 1,292 | ex | Elixir | lib/mix/tasks/scan.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 9 | 2020-04-07T17:22:15.000Z | 2022-01-29T21:56:07.000Z | lib/mix/tasks/scan.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 49 | 2020-03-03T16:18:50.000Z | 2021-05-29T13:48:04.000Z | lib/mix/tasks/scan.ex | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 3 | 2020-05-14T16:26:03.000Z | 2022-01-24T22:03:40.000Z | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
defmodule Mix.Tasks.Lei.Scan do
use Mix.Task
@shortdoc "Run LowEndInsight scan against a local project"
@moduledoc ~S... | 27.489362 | 75 | 0.626935 |
4ade81c20bb79dcab22ab7a04ac262e364b1bb0c | 2,746 | ex | Elixir | lib/telemetry_metrics_telegraf/telegraf/config_templates.ex | SemkArt/telemetry_metrics_telegraf | 43076e8458fbb9792a78a413eb65d7bace1f5426 | [
"Apache-2.0"
] | null | null | null | lib/telemetry_metrics_telegraf/telegraf/config_templates.ex | SemkArt/telemetry_metrics_telegraf | 43076e8458fbb9792a78a413eb65d7bace1f5426 | [
"Apache-2.0"
] | null | null | null | lib/telemetry_metrics_telegraf/telegraf/config_templates.ex | SemkArt/telemetry_metrics_telegraf | 43076e8458fbb9792a78a413eb65d7bace1f5426 | [
"Apache-2.0"
] | null | null | null | defmodule TelemetryMetricsTelegraf.Telegraf.ConfigTemplates do
@moduledoc "Telegraf toml configuration templates."
@type opts :: keyword({:period, String.t()})
@type basicstats_opts :: keyword({:period, String.t()} | {:stats, [atom | String.t()]})
@type hisogram_opts ::
keyword(
{:period,... | 32.305882 | 114 | 0.636562 |
4ade8c422e1c84320c20524cc04aec7ee20bea57 | 908 | ex | Elixir | priv/templates/phx.gen.json/view.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | priv/templates/phx.gen.json/view.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | priv/templates/phx.gen.json/view.ex | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>View do
use <%= inspect context.web_module %>, :view
alias <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>View
def render("index.json", %{<%= schema.plura... | 50.444444 | 115 | 0.606828 |
4adea186816c02349989a941d35fe88b090d92c6 | 664 | exs | Elixir | apps/tai/test/tai/new_orders/transitions/cancel_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/test/tai/new_orders/transitions/cancel_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/new_orders/transitions/cancel_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.NewOrders.Transitions.CancelTest do
use ExUnit.Case, async: false
alias Tai.NewOrders.Transitions
test ".attrs/1 returns a list of updatable order attributes" do
last_received_at = DateTime.utc_now()
last_venue_timestamp = DateTime.utc_now()
transition = %Transitions.Cancel{
last_... | 33.2 | 65 | 0.748494 |
4adeadb9c751761d59c50a1a862335b2f96fe55e | 1,786 | ex | Elixir | lib/ecto_job/supervisor.ex | mmartinson/ecto_job | 0b82a3aa2421d2c51455681310edbcfa5d129ca7 | [
"MIT"
] | null | null | null | lib/ecto_job/supervisor.ex | mmartinson/ecto_job | 0b82a3aa2421d2c51455681310edbcfa5d129ca7 | [
"MIT"
] | null | null | null | lib/ecto_job/supervisor.ex | mmartinson/ecto_job | 0b82a3aa2421d2c51455681310edbcfa5d129ca7 | [
"MIT"
] | null | null | null | defmodule EctoJob.Supervisor do
@moduledoc """
Job Queue supervisor that can be started with client applications.
The `EctoJob.Supervisor` will start the required processes to listen for postgres job notifications,
GenStage producer and ConsumerSupervisor to process the jobs.
## Example:
def start(_t... | 33.074074 | 119 | 0.659574 |
4adeddac996c25ca9b24d5a53890b29759f5f3de | 952 | exs | Elixir | programming_elixir/part13/issues/test/cli_test.exs | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | null | null | null | programming_elixir/part13/issues/test/cli_test.exs | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | 2 | 2019-09-06T13:24:21.000Z | 2019-09-06T15:04:50.000Z | programming_elixir/part13/issues/test/cli_test.exs | youknowcast/training | 5c79671b397f6397c52ae642fc1f16aa0a6dbb09 | [
"MIT"
] | null | null | null | defmodule CliTest do
use ExUnit.Case
doctest Issues
import Issues.CLI
test ":help returned by option parsing with -h and --help options" do
assert parse_args(["-h", "anything"]) == :help
assert parse_args(["--help", "anything"]) == :help
end
test "three values returned if three given" do
asse... | 27.2 | 77 | 0.638655 |
4adf04dc56f957d011fc10b3cf82e79c71622945 | 258 | ex | Elixir | lib/elixir_jobs.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 86 | 2017-09-22T08:08:23.000Z | 2021-05-28T19:51:17.000Z | lib/elixir_jobs.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 24 | 2017-09-23T08:23:36.000Z | 2021-09-20T14:36:06.000Z | lib/elixir_jobs.ex | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 21 | 2017-09-23T18:50:23.000Z | 2019-10-15T19:41:44.000Z | defmodule ElixirJobs do
@moduledoc """
Elixir Jobs 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.8 | 66 | 0.755814 |
4adf20ba96e2e0bde4867733f204d29083a08e58 | 927 | exs | Elixir | mix.exs | arghmeleg/goldfish | 904f1c4d5d749bb34ad3605ca9d8b07e144cd84d | [
"MIT"
] | 1 | 2019-12-25T09:46:56.000Z | 2019-12-25T09:46:56.000Z | mix.exs | arghmeleg/goldfish | 904f1c4d5d749bb34ad3605ca9d8b07e144cd84d | [
"MIT"
] | null | null | null | mix.exs | arghmeleg/goldfish | 904f1c4d5d749bb34ad3605ca9d8b07e144cd84d | [
"MIT"
] | null | null | null | defmodule Goldfish.MixProject do
use Mix.Project
@description "Goldfish is a database session store."
@version "0.1.0"
def project do
[
app: :goldfish,
version: @version,
description: @description,
elixir: "~> 1.8",
package: package(),
start_permanent: Mix.env() == :pro... | 18.176471 | 59 | 0.512406 |
4adf2f28e4a768879447efc1de35584a91dc872a | 11,013 | ex | Elixir | 1-testpackage/testpackage/debian/manpage.xml.ex | hedzr/deb-build-tutor | 580dd8b7fdcd18d729c0c5d69d2f3f8538b1ac0a | [
"Apache-2.0"
] | null | null | null | 1-testpackage/testpackage/debian/manpage.xml.ex | hedzr/deb-build-tutor | 580dd8b7fdcd18d729c0c5d69d2f3f8538b1ac0a | [
"Apache-2.0"
] | null | null | null | 1-testpackage/testpackage/debian/manpage.xml.ex | hedzr/deb-build-tutor | 580dd8b7fdcd18d729c0c5d69d2f3f8538b1ac0a | [
"Apache-2.0"
] | null | null | null | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!--
`xsltproc -''-nonet \
-''-param man.charmap.use.subset "0" \
-''-param make.year.ranges "1" \
-''-param make.single.year.r... | 37.715753 | 84 | 0.632434 |
4adf5822833e22473420ddf6e0abeeaef84c23e8 | 25,461 | exs | Elixir | test/fun_with_flags/store/persistent/redis_test.exs | sendle/fun_with_flags | c9c3fb7ab0f8f43c04a571c8ff486f5b049e97a1 | [
"MIT"
] | null | null | null | test/fun_with_flags/store/persistent/redis_test.exs | sendle/fun_with_flags | c9c3fb7ab0f8f43c04a571c8ff486f5b049e97a1 | [
"MIT"
] | 1 | 2019-01-21T00:38:49.000Z | 2019-01-31T03:49:17.000Z | test/fun_with_flags/store/persistent/redis_test.exs | sendle/fun_with_flags | c9c3fb7ab0f8f43c04a571c8ff486f5b049e97a1 | [
"MIT"
] | null | null | null | defmodule FunWithFlags.Store.Persistent.RedisTest do
use FunWithFlags.TestCase, async: false
import FunWithFlags.TestUtils
import Mock
alias FunWithFlags.Store.Persistent.Redis, as: PersiRedis
alias FunWithFlags.{Config, Flag, Gate}
alias FunWithFlags.Notifications.Redis, as: NotifiRedis
alias FunWithFla... | 34.878082 | 185 | 0.62366 |
4adf5c3e5ac81472fbb1df69823cf8f45d00468e | 52 | exs | Elixir | apps/evm/test/test_helper.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/evm/test/test_helper.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/evm/test/test_helper.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | ExUnit.configure(timeout: :infinity)
ExUnit.start()
| 17.333333 | 36 | 0.788462 |
4adf983aa050280244c2874d490c4c26ce5bbad8 | 11,860 | exs | Elixir | test/ecto/query/inspect_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | test/ecto/query/inspect_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | test/ecto/query/inspect_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | defmodule Inspect.Post do
use Ecto.Schema
schema "posts" do
field :visits, :integer
has_many :comments, Inspect.Comment
has_one :post, Inspect.Post
end
end
defmodule Inspect.Comment do
use Ecto.Schema
schema "comments" do
end
end
defmodule Ecto.Query.InspectTest do
use ExUnit.Case, async: ... | 37.531646 | 120 | 0.564418 |
4adfcf9bd6d81fcc08722c9f9eb75f4751d8dcb3 | 254 | ex | Elixir | elixir-class/basic/6-functions/func6/lib/func12.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/basic/6-functions/func6/lib/func12.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/basic/6-functions/func6/lib/func12.ex | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | defmodule Func12 do
end
defmodule Func12.Example do
@moduledoc """
Documentation for Func12.Example.
"""
@doc """
Hello world.
## Func12.Example
iex> Func12.Example.hello
:world
"""
def hello do
:world
end
end
| 11.043478 | 35 | 0.610236 |
4ae006b84d68826c1984f2195c7ea02fcb592020 | 826 | ex | Elixir | apps/service_receive/lib/receive/writer.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_receive/lib/receive/writer.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_receive/lib/receive/writer.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Receive.Writer do
@behaviour Writer
use Properties, otp_app: :service_receive
getter(:app_name, required: true)
getter(:writer, default: Writer.Kafka.Topic)
getter(:kafka_endpoints, required: true)
require Logger
@impl Writer
def start_link(args) do
%Accept{} = accept = Keyword.fetch!(a... | 21.736842 | 95 | 0.661017 |
4ae00e077310f85acc25798247621e5577ffa3df | 497 | ex | Elixir | lib/game_of_life_web/views/error_view.ex | JPYamamoto/PhoenixLiveView-GameOfLife | 20e671c178c91ad1ccf6d7572ff6c51421f878bd | [
"MIT"
] | 7 | 2021-02-25T09:51:25.000Z | 2022-03-09T02:01:04.000Z | lib/game_of_life_web/views/error_view.ex | JPYamamoto/PhoenixLiveView-GameOfLife | 20e671c178c91ad1ccf6d7572ff6c51421f878bd | [
"MIT"
] | 1 | 2022-01-23T07:27:09.000Z | 2022-01-23T07:27:09.000Z | lib/game_of_life_web/views/error_view.ex | JPYamamoto/PhoenixLiveView-GameOfLife | 20e671c178c91ad1ccf6d7572ff6c51421f878bd | [
"MIT"
] | 2 | 2021-10-04T16:58:50.000Z | 2022-03-28T20:47:11.000Z | defmodule GameOfLifeWeb.ErrorView do
use GameOfLifeWeb, :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 templat... | 29.235294 | 61 | 0.738431 |
4ae0148dc6337cad69d088bc0d3be8e9f46b1783 | 2,514 | exs | Elixir | test/node_test.exs | hewsut/ex_unit_clustered_case | 7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88 | [
"Apache-2.0"
] | 48 | 2018-07-20T20:19:23.000Z | 2021-11-10T09:22:52.000Z | test/node_test.exs | hewsut/ex_unit_clustered_case | 7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88 | [
"Apache-2.0"
] | 9 | 2018-07-20T19:02:07.000Z | 2019-07-29T05:23:38.000Z | test/node_test.exs | hewsut/ex_unit_clustered_case | 7762c0a0cce1c78703a1955ce9bc89c0ff9d2f88 | [
"Apache-2.0"
] | 7 | 2018-07-30T02:13:59.000Z | 2019-12-11T15:28:47.000Z | defmodule ExUnit.ClusteredCase.Test.NodeTest do
use ExUnit.Case, async: true
alias ExUnit.ClusteredCase.Node, as: N
import ExUnit.ClusteredCase.Support
test "can successfully start a node" do
test_pid = self()
pingback = fn -> send(test_pid, {test_pid, :pong}) end
opts = [post_start_functions: [p... | 32.649351 | 110 | 0.658313 |
4ae019dc07e6be45c01cebd969860725116ab3de | 865 | ex | Elixir | lib/rocketpay_web/controllers/accounts_controller.ex | vcwild/rocketpay-api | 21ea2916a68bb300a645877ef1a54bc1b8bfe6a8 | [
"Apache-2.0"
] | 1 | 2021-02-25T14:29:46.000Z | 2021-02-25T14:29:46.000Z | lib/rocketpay_web/controllers/accounts_controller.ex | vcwild/rocketpay-api | 21ea2916a68bb300a645877ef1a54bc1b8bfe6a8 | [
"Apache-2.0"
] | null | null | null | lib/rocketpay_web/controllers/accounts_controller.ex | vcwild/rocketpay-api | 21ea2916a68bb300a645877ef1a54bc1b8bfe6a8 | [
"Apache-2.0"
] | null | null | null | defmodule RocketpayWeb.AccountsController do
use RocketpayWeb, :controller
alias Rocketpay.Accounts.Transactions.Response, as: TransactionResponse
action_fallback RocketpayWeb.FallbackController
def deposit(conn, params) do
with {:ok, %Rocketpay.Account{} = account} <- Rocketpay.deposit(params) do
c... | 27.903226 | 88 | 0.679769 |
4ae0334454184000438bbce876229e2bc564f78a | 1,910 | ex | Elixir | lib/teslamate_web/controllers/car_controller.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | lib/teslamate_web/controllers/car_controller.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | lib/teslamate_web/controllers/car_controller.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMateWeb.CarController do
use TeslaMateWeb, :controller
require Logger
import Phoenix.LiveView.Controller
alias TeslaMate.Api, warn: false
alias TeslaMate.{Log, Vehicles}
plug :redirect_if_importing when action in [:index]
plug :fetch_signed_in when action in [:index]
plug :redirect_unl... | 29.384615 | 96 | 0.673822 |
4ae03803ad90033700a075fcca696b76c963c188 | 1,257 | exs | Elixir | config/config.exs | stocks29/exw3 | 66e070877fe25af376d315e4b2400f545a006804 | [
"Apache-2.0"
] | 123 | 2018-04-08T00:30:00.000Z | 2022-03-07T18:45:37.000Z | config/config.exs | stocks29/exw3 | 66e070877fe25af376d315e4b2400f545a006804 | [
"Apache-2.0"
] | 63 | 2018-05-04T20:58:45.000Z | 2022-03-14T15:53:30.000Z | config/config.exs | stocks29/exw3 | 66e070877fe25af376d315e4b2400f545a006804 | [
"Apache-2.0"
] | 33 | 2018-04-26T09:49:48.000Z | 2022-03-14T16:02:32.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.914286 | 74 | 0.721559 |
4ae03b552e57409e5b39994458540a454716343c | 1,474 | ex | Elixir | lib/selfme_web/views/error_helpers.ex | esemeniuc/selfme | f6f11eb32bab909c199d7a2090a8370470feaf27 | [
"MIT"
] | 1 | 2019-07-21T00:36:01.000Z | 2019-07-21T00:36:01.000Z | lib/selfme_web/views/error_helpers.ex | esemeniuc/selfme | f6f11eb32bab909c199d7a2090a8370470feaf27 | [
"MIT"
] | 10 | 2019-08-01T03:50:13.000Z | 2022-02-26T15:50:07.000Z | lib/selfme_web/views/error_helpers.ex | esemeniuc/selfme | f6f11eb32bab909c199d7a2090a8370470feaf27 | [
"MIT"
] | null | null | null | defmodule SelfmeWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 32.755556 | 75 | 0.669607 |
4ae0b5a83e83a41b936d13453d19f9320453804c | 706 | ex | Elixir | phoenix/app/lib/phx_app_web/gettext.ex | ohr486/docker-app-template | 9365f95d1102c69dba46474d0498d8306d40ed79 | [
"MIT"
] | null | null | null | phoenix/app/lib/phx_app_web/gettext.ex | ohr486/docker-app-template | 9365f95d1102c69dba46474d0498d8306d40ed79 | [
"MIT"
] | null | null | null | phoenix/app/lib/phx_app_web/gettext.ex | ohr486/docker-app-template | 9365f95d1102c69dba46474d0498d8306d40ed79 | [
"MIT"
] | null | null | null | defmodule PhxAppWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import PhxAppWeb.Gettext
# Simple translation
gettext "Here is the... | 28.24 | 72 | 0.679887 |
4ae0dae0a32c34453f714818a202a92b24ce116e | 1,119 | ex | Elixir | lib/tracker_web/channels/tracker_socket.ex | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | 1 | 2019-11-21T14:33:52.000Z | 2019-11-21T14:33:52.000Z | lib/tracker_web/channels/tracker_socket.ex | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | 1 | 2021-03-09T23:50:54.000Z | 2021-03-09T23:50:54.000Z | lib/tracker_web/channels/tracker_socket.ex | msramos/mouse-tracker | c7b0ccbb8db1a28f45cfabb6ee239158923f9284 | [
"MIT"
] | null | null | null | defmodule TrackerWeb.TrackerSocket do
use Phoenix.Socket
## Channels
channel "tracker", TrackerWeb.TrackerChannel
# channel "tracker:sub", TrackerWeb.SubChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assig... | 31.971429 | 83 | 0.7042 |
4ae0dbcb279dcf4d56ae2b069fc70a1d4da53b52 | 10,695 | ex | Elixir | lib/ecto/pool.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | lib/ecto/pool.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | lib/ecto/pool.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Pool do
@moduledoc """
Behaviour for using a pool of connections.
"""
@typedoc """
A pool process
"""
@type t :: atom | pid
@typedoc """
Opaque connection reference.
Use inside `run/4` and `transaction/4` to retrieve the connection module and
pid or break the transaction.
"""
... | 29.46281 | 94 | 0.625713 |
4ae0f264c14caf2aefbb5a88eef60578da254684 | 659 | ex | Elixir | apps/keychain/lib/keychain.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/keychain/lib/keychain.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/keychain/lib/keychain.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.95 | 74 | 0.754173 |
4ae12ae29b66682a89915c11dcf199cdb0b4fe06 | 893 | ex | Elixir | lib/turret_web/controllers/user_password_settings_controller.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 1 | 2021-02-03T23:34:04.000Z | 2021-02-03T23:34:04.000Z | lib/turret_web/controllers/user_password_settings_controller.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 58 | 2021-02-16T10:16:08.000Z | 2022-03-07T10:57:32.000Z | lib/turret_web/controllers/user_password_settings_controller.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | null | null | null | defmodule TurretWeb.UserPasswordSettingsController do
use TurretWeb, :controller
alias Turret.Accounts
alias TurretWeb.UserAuth
plug :assign_changeset
def edit(conn, _params) do
render(conn, "edit.html")
end
def update(conn, %{"current_password" => password, "user" => user_params}) do
user = c... | 25.514286 | 80 | 0.68757 |
4ae12e3262a2980da472b832901870af6fcafa07 | 2,812 | exs | Elixir | test/cql/select_test.exs | sewinter/triton | 7a821929dddee0d8ffc802ac36c044921bb49871 | [
"MIT"
] | 71 | 2017-11-29T03:40:54.000Z | 2022-01-10T22:11:48.000Z | test/cql/select_test.exs | sewinter/triton | 7a821929dddee0d8ffc802ac36c044921bb49871 | [
"MIT"
] | 19 | 2018-04-13T18:25:05.000Z | 2020-12-24T05:22:41.000Z | test/cql/select_test.exs | sewinter/triton | 7a821929dddee0d8ffc802ac36c044921bb49871 | [
"MIT"
] | 23 | 2017-11-02T21:34:54.000Z | 2021-08-24T08:29:34.000Z | defmodule Triton.CQL.Select.Tests do
use ExUnit.Case
import Triton.Query
alias Triton.CQL.Select.Tests.TestTable
defmodule TestKeyspace do
use Triton.Keyspace
keyspace :triton_tests, conn: TritonTests.Conn do
with_options [
replication: "{'class' : 'SimpleStrategy', 'replication_factor':... | 23.830508 | 105 | 0.597084 |
4ae1716dc0baa390ffd72eed7d6cc2c3f79cd449 | 1,770 | exs | Elixir | apps/secure_storage/test/secure_storage/sweeper_test.exs | aditya7iyengar/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | 2 | 2020-10-01T00:45:01.000Z | 2020-10-01T20:21:21.000Z | apps/secure_storage/test/secure_storage/sweeper_test.exs | thebugcatcher/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | null | null | null | apps/secure_storage/test/secure_storage/sweeper_test.exs | thebugcatcher/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | 1 | 2021-11-09T00:59:46.000Z | 2021-11-09T00:59:46.000Z | defmodule SecureStorage.SweeperTest do
use SecureStorage.DataCase
alias SecureStorage.Repo
alias SecureStorage.Schema.EncryptedMessage
@module SecureStorage.Sweeper
describe "run/0" do
setup do
expired_message =
%EncryptedMessage{state: :expired, short_description: "desc"}
|> Encr... | 29.5 | 80 | 0.674576 |
4ae194d295f35e46c14a20bba9cdfdc71a28919e | 706 | exs | Elixir | config/prod.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | config/prod.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | config/prod.exs | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | use Mix.Config
database_url = System.get_env("DATABASE_URL") || "ecto://postgres:postgres@localhost/chat_api_dev"
pool_size = String.to_integer(System.get_env("POOL_SIZE") || "10")
require_db_ssl =
case System.get_env("REQUIRE_DB_SSL") do
"true" -> true
"false" -> false
_ -> true
end
# Do not print d... | 28.24 | 98 | 0.736544 |
4ae19765eccc41a7cd5096d7123255d0fa3d79b9 | 770 | ex | Elixir | lib/lorem_ipsum.ex | mrwizard82d1/lorem_ipsum_ex | ba9e6236258e0b4e255b685306aa3a8e89ec04e4 | [
"Apache-2.0"
] | null | null | null | lib/lorem_ipsum.ex | mrwizard82d1/lorem_ipsum_ex | ba9e6236258e0b4e255b685306aa3a8e89ec04e4 | [
"Apache-2.0"
] | null | null | null | lib/lorem_ipsum.ex | mrwizard82d1/lorem_ipsum_ex | ba9e6236258e0b4e255b685306aa3a8e89ec04e4 | [
"Apache-2.0"
] | null | null | null | defmodule LoremIpsum do
defstruct source: nil
def new(source) do
if String.starts_with?(source, "http://") do
words_source = words_from_uri(source)
else
words_source = source
end
words = String.split(words_source)
|> Enum.filter(fn(w) -> (not String.match?(w, ~r{</?p>})) end)
%LoremIpsum{source: w... | 24.0625 | 64 | 0.662338 |
4ae1a8461c77b4876ef6309efca2190a6f687678 | 2,576 | ex | Elixir | lib/docusign/model/accounts.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/accounts.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/accounts.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.Accounts do
@moduledoc """
Account management
"""
@derive [Poison.Encoder]
defstruct [
:accountIdGuid,
:accountN... | 29.609195 | 75 | 0.614519 |
4ae1b9540e61e89126919e6ebc8accfc5b93641a | 8,911 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_results.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_results.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_results.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.908602 | 245 | 0.745259 |
4ae207a10d4eced318f76c5734be277d9cf61323 | 7,819 | exs | Elixir | test/ais_front/core_test.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | null | null | null | test/ais_front/core_test.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | 18 | 2020-09-24T14:21:23.000Z | 2020-10-01T16:11:58.000Z | test/ais_front/core_test.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | null | null | null | defmodule AisFront.CoreTest do
use AisFront.DataCase
alias AisFront.Core
alias AisFront.RepoBack
describe "core_shipinfos" do
alias AisFront.Core.Shipinfos
@valid_attrs %{callsign: "some callsign", cog: 120.5, destination: "some destination", dim_bow: 42, dim_port: 42, dim_starboard: 42, dim_stern: 4... | 43.198895 | 437 | 0.684742 |
4ae23401b3ef89c3e5713971657f6ae23f3eaa74 | 945 | exs | Elixir | config/prod.secret.exs | spawnphile/discovery | 0ea32c4915f0b0350d2878c7317f5530ea2474a8 | [
"MIT"
] | 3 | 2022-01-07T10:51:48.000Z | 2022-03-15T04:39:09.000Z | config/prod.secret.exs | gamezop/discovery | 0ea32c4915f0b0350d2878c7317f5530ea2474a8 | [
"MIT"
] | null | null | null | config/prod.secret.exs | gamezop/discovery | 0ea32c4915f0b0350d2878c7317f5530ea2474a8 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 31.5 | 62 | 0.732275 |
4ae236e1e5d86b356e8b737b3c92df5aaddc998a | 6,431 | ex | Elixir | lib/pun/pun.ex | sizumita/pun-discord-bot | 80c0c5231669ce1f691116756a46f6af6e0f07a7 | [
"MIT"
] | null | null | null | lib/pun/pun.ex | sizumita/pun-discord-bot | 80c0c5231669ce1f691116756a46f6af6e0f07a7 | [
"MIT"
] | 6 | 2020-09-06T05:33:02.000Z | 2020-09-09T01:57:42.000Z | lib/pun/pun.ex | sizumita/pun-discord-bot | 80c0c5231669ce1f691116756a46f6af6e0f07a7 | [
"MIT"
] | null | null | null | defmodule Pun do
defp count(text, phrase) do
others = String.split(text, phrase) |> Enum.count
others - 1
end
def search(text, use_pronunciation \\ false) do
words = text |> Helper.parse |> Parser.get_parsed_words(use_pronunciation)
combinations = get_combinations words
search_pun text, combi... | 35.727778 | 143 | 0.600218 |
4ae238510e6b4f963741d794b6cf31f3a19e6eae | 2,005 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/object_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/object_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/object_annotation.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... | 35.803571 | 207 | 0.695262 |
4ae25900273f61afaa93d067060f7516b21b4501 | 1,106 | ex | Elixir | lib/tzdata/http_client/hackney.ex | hoyon/tzdata | 28b470c5ca0ce80d67e1606b5839adb13e1375a8 | [
"MIT"
] | 245 | 2015-02-26T10:04:32.000Z | 2022-02-18T04:22:02.000Z | lib/tzdata/http_client/hackney.ex | hoyon/tzdata | 28b470c5ca0ce80d67e1606b5839adb13e1375a8 | [
"MIT"
] | 104 | 2015-06-26T17:35:15.000Z | 2022-03-20T00:07:06.000Z | lib/tzdata/http_client/hackney.ex | hoyon/tzdata | 28b470c5ca0ce80d67e1606b5839adb13e1375a8 | [
"MIT"
] | 78 | 2015-05-16T15:22:59.000Z | 2022-03-13T09:43:50.000Z | defmodule Tzdata.HTTPClient.Hackney do
@moduledoc false
@behaviour Tzdata.HTTPClient
if Code.ensure_loaded?(:hackney) do
@impl true
def get(url, headers, options) do
with {:ok, status, headers, client_ref} <- :hackney.get(url, headers, "", options),
{:ok, body} <- :hackney.body(client_r... | 23.531915 | 89 | 0.626582 |
4ae26230e74bb9b4f82e35b67f2d48042c5c607f | 1,439 | ex | Elixir | lib/screens/v2/widget_instance/normal_header.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/v2/widget_instance/normal_header.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/v2/widget_instance/normal_header.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.V2.WidgetInstance.NormalHeader do
@moduledoc false
alias Screens.Config.Screen
alias Screens.Config.V2.Header.Destination
alias Screens.V2.WidgetInstance.NormalHeader
defstruct screen: nil,
icon: nil,
text: nil,
time: nil
@type icon :: :logo | :x | :g... | 25.245614 | 96 | 0.653926 |
4ae29815e571b2b1a044081734a4377da0ef6a34 | 224 | exs | Elixir | priv/repo/migrations/20171121230847_tags.exs | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | priv/repo/migrations/20171121230847_tags.exs | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | priv/repo/migrations/20171121230847_tags.exs | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | defmodule Wiki.Repo.Migrations.Tags do
use Ecto.Migration
def change do
create table(:games_tags, primary_key: false) do
add :game_id, references(:games)
add :tag_id, references(:tags)
end
end
end
| 20.363636 | 52 | 0.696429 |
4ae2a527ef4aefd321e75e04f62822ec5f78fe86 | 87 | exs | Elixir | test/phoenix_open_browser_test.exs | gfvcastro/phoenix_open_browser | 936214ffe430a1eeb61bdaa31b101ea1c55ee53e | [
"MIT"
] | 2 | 2017-09-11T13:40:17.000Z | 2017-09-11T13:41:26.000Z | test/phoenix_open_browser_test.exs | gfvcastro/phoenix_open_browser | 936214ffe430a1eeb61bdaa31b101ea1c55ee53e | [
"MIT"
] | null | null | null | test/phoenix_open_browser_test.exs | gfvcastro/phoenix_open_browser | 936214ffe430a1eeb61bdaa31b101ea1c55ee53e | [
"MIT"
] | null | null | null | defmodule PhoenixOpenBrowserTest do
use ExUnit.Case
doctest PhoenixOpenBrowser
end
| 17.4 | 35 | 0.850575 |
4ae2b4d14d54df6ef22769484f026959fa72c882 | 4,365 | ex | Elixir | lib/kino/table.ex | elixir-nx/kino | b33e31a5b22202d30da6b787c857ae09e5db94b5 | [
"Apache-2.0"
] | 39 | 2021-05-31T21:52:23.000Z | 2021-07-09T06:52:15.000Z | lib/kino/table.ex | elixir-nx/kino | b33e31a5b22202d30da6b787c857ae09e5db94b5 | [
"Apache-2.0"
] | 15 | 2021-06-07T07:53:56.000Z | 2021-07-01T14:25:00.000Z | lib/kino/table.ex | elixir-nx/kino | b33e31a5b22202d30da6b787c857ae09e5db94b5 | [
"Apache-2.0"
] | 2 | 2021-06-05T08:05:53.000Z | 2021-06-15T09:28:44.000Z | defmodule Kino.Table do
@moduledoc false
@type info :: %{
name: String.t(),
features: list(:refetch | :pagination | :sorting)
}
@type rows_spec :: %{
offset: non_neg_integer(),
limit: pos_integer(),
order_by: nil | term(),
order: :asc | :desc
... | 24.522472 | 93 | 0.578923 |
4ae2eb201238821e34e5d31949f5a7e7616eda19 | 418 | ex | Elixir | lib/sptfy/object/paging.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 5 | 2020-12-14T15:46:26.000Z | 2021-03-20T22:32:58.000Z | lib/sptfy/object/paging.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 9 | 2020-12-25T14:36:11.000Z | 2021-01-25T14:03:18.000Z | lib/sptfy/object/paging.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | null | null | null | defmodule Sptfy.Object.Paging do
@moduledoc """
Module for paging struct.
"""
use Sptfy.Object
defstruct ~w[
href
items
limit
next
offset
previous
total
]a
def new(fields, item_module) do
fields =
fields
|> Helpers.atomize_keys()
|> Map.update(:items, [... | 15.481481 | 84 | 0.610048 |
4ae2f228436221e945b002010b9dea0daa23a449 | 60,767 | ex | Elixir | lib/aws/iot.ex | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | 2 | 2019-11-17T02:31:18.000Z | 2019-11-20T22:00:29.000Z | lib/aws/iot.ex | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | null | null | null | lib/aws/iot.ex | hosh/aws-elixir | 3ef18a94ed3b628b09ba1aaf297161f16c48867e | [
"Apache-2.0"
] | 1 | 2019-11-16T18:08:18.000Z | 2019-11-16T18:08:18.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.IoT do
@moduledoc """
AWS IoT
AWS IoT provides secure, bi-directional communication between
Internet-connected devices (such as sensors, actuators, embedded devices,
or smart appliances) ... | 32.409067 | 154 | 0.675827 |
4ae2fa18bbf4201474935369a9ff8ffcd1e86142 | 3,566 | exs | Elixir | test/algorithms/analytic_hierarchy_test.exs | solar05/descisionex | da5f9a29e37d668e27f077e2da196368d4ce3e5f | [
"MIT"
] | null | null | null | test/algorithms/analytic_hierarchy_test.exs | solar05/descisionex | da5f9a29e37d668e27f077e2da196368d4ce3e5f | [
"MIT"
] | null | null | null | test/algorithms/analytic_hierarchy_test.exs | solar05/descisionex | da5f9a29e37d668e27f077e2da196368d4ce3e5f | [
"MIT"
] | null | null | null | defmodule DescisionexTest.AnalyticHierarchyTest do
use ExUnit.Case
alias Descisionex.AnalyticHierarchy
doctest Descisionex.AnalyticHierarchy
@comparison_matrix [
[1, 3, 1, 1 / 2, 5],
[1 / 3, 1, 1 / 4, 1 / 7, 2],
[1, 4, 1, 1, 6],
[2, 7, 1, 1, 8],
[1 / 5, 1 / 2, 1 / 6, 1 / 8, 1]
]
@nor... | 31.008696 | 90 | 0.645822 |
4ae31a93eb8e219dfdf9850ad30d3a5487930584 | 601 | ex | Elixir | lib/push_ex_web/router_loader.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 78 | 2018-12-02T23:58:37.000Z | 2021-09-30T18:52:45.000Z | lib/push_ex_web/router_loader.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 23 | 2018-11-27T14:57:20.000Z | 2021-09-24T16:14:43.000Z | lib/push_ex_web/router_loader.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 3 | 2019-01-30T02:08:37.000Z | 2021-09-03T20:53:35.000Z | defmodule PushExWeb.RouterLoader do
@moduledoc false
@doc """
Loads an AST from config to be used in the Router. This must be an AST because the
order of compilation prevents using a module directly (without some sort of hack to change
compilation ordering).
"""
defmacro __using__([]) do
with router_... | 28.619048 | 92 | 0.707155 |
4ae320a3d7dbec89e52c994509594b9884a9e28e | 2,857 | exs | Elixir | api/test/trello_clone_api/accounts/accounts_test.exs | arkanoryn/trello-clone | 2d5f5bc5c498c1740054dc56da16ad78c545b755 | [
"Apache-2.0"
] | 1 | 2021-04-17T20:20:59.000Z | 2021-04-17T20:20:59.000Z | api/test/trello_clone_api/accounts/accounts_test.exs | arkanoryn/trello-clone | 2d5f5bc5c498c1740054dc56da16ad78c545b755 | [
"Apache-2.0"
] | null | null | null | api/test/trello_clone_api/accounts/accounts_test.exs | arkanoryn/trello-clone | 2d5f5bc5c498c1740054dc56da16ad78c545b755 | [
"Apache-2.0"
] | null | null | null | defmodule TrelloCloneApi.AccountsTest do
use TrelloCloneApi.DataCase
alias TrelloCloneApi.Accounts
describe "users" do
alias TrelloCloneApi.Accounts.User
@valid_attrs %{email: "some@email.com", password: "some password", username: "username"}
@update_attrs %{
email: "some updated email",
... | 32.465909 | 94 | 0.660133 |
4ae351ffa5188f15236b9d8de5fdad5d55fd14b4 | 3,266 | ex | Elixir | lib/arango/config.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | lib/arango/config.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | null | null | null | lib/arango/config.ex | mpoeter/arangoex | 161ed0223f4e75ca47ca921660f162d01fdab863 | [
"Apache-2.0"
] | 3 | 2018-03-27T09:47:04.000Z | 2019-11-04T22:41:46.000Z | defmodule Arango.Config do
@moduledoc false
# Generates the configuration for an endpoint.
# It starts with the defaults for a given environment
# and then merges in the common config from the Arango config root,
# and then finally any config specified for the particular endpoint
@common_config [
:de... | 25.515625 | 91 | 0.600122 |
4ae353794dfbfaa1abac6554341c291053295e96 | 522 | ex | Elixir | lib/wabanex_web/schema/types/user.ex | EternalLearnerProgramming/Wabanex-NLW | a6fb37af9867d15b723c928ee6eb1a9a24b40925 | [
"MIT"
] | 61 | 2021-06-22T00:15:59.000Z | 2022-01-31T15:13:51.000Z | lib/wabanex_web/schema/types/user.ex | EternalLearnerProgramming/Wabanex-NLW | a6fb37af9867d15b723c928ee6eb1a9a24b40925 | [
"MIT"
] | null | null | null | lib/wabanex_web/schema/types/user.ex | EternalLearnerProgramming/Wabanex-NLW | a6fb37af9867d15b723c928ee6eb1a9a24b40925 | [
"MIT"
] | 56 | 2021-06-21T17:17:36.000Z | 2022-03-15T02:48:59.000Z | defmodule WabanexWeb.Schema.Types.User do
use Absinthe.Schema.Notation
@desc "Logic user representation"
object :user do
field :id, non_null(:uuid4)
field :name, non_null(:string)
field :email, non_null(:string)
field :trainings, list_of(:training)
end
input_object :create_user_input do
... | 29 | 69 | 0.718391 |
4ae37ba6f2f0cb45593ce53bdceaf272ec4a527f | 1,893 | ex | Elixir | deps/phoenix_pubsub/lib/phoenix/pubsub/pg2.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 3 | 2020-06-08T03:47:03.000Z | 2021-09-17T21:48:37.000Z | lib/phoenix/pubsub/pg2.ex | grindrlabs/phoenix_pubsub | 27a9113dfa8a2e125ae74cfff36e6a322c8b97f4 | [
"MIT"
] | null | null | null | lib/phoenix/pubsub/pg2.ex | grindrlabs/phoenix_pubsub | 27a9113dfa8a2e125ae74cfff36e6a322c8b97f4 | [
"MIT"
] | null | null | null | defmodule Phoenix.PubSub.PG2 do
use Supervisor
@moduledoc """
Phoenix PubSub adapter based on PG2.
To use it as your PubSub adapter, simply add it to your Endpoint's config:
config :my_app, MyApp.Endpoint,
pubsub: [name: MyApp.PubSub,
adapter: Phoenix.PubSub.PG2]
## Options
... | 35.716981 | 106 | 0.684628 |
4ae37df9df56c329fded65812f80e521d909b772 | 602 | ex | Elixir | lib/logster/string_formatter.ex | rubysolo/logster | 706de0abc211b2ec9f657bcc5c7c8d2a373ac49f | [
"MIT"
] | null | null | null | lib/logster/string_formatter.ex | rubysolo/logster | 706de0abc211b2ec9f657bcc5c7c8d2a373ac49f | [
"MIT"
] | null | null | null | lib/logster/string_formatter.ex | rubysolo/logster | 706de0abc211b2ec9f657bcc5c7c8d2a373ac49f | [
"MIT"
] | null | null | null | defmodule Logster.StringFormatter do
def format(params) do
params
|> Enum.map(&format_field/1)
|> Enum.intersperse(?\s)
end
defp format_field({key, value}) do
[to_string(key), "=", format_value(value)]
end
defp format_value(value) when is_binary(value), do: value
defp format_value(value) w... | 33.444444 | 96 | 0.724252 |
4ae3b9dbdaa17c81c37d635e7863c86faa6bda4b | 26,384 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/firewalls.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/firewalls.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/firewalls.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 61.074074 | 2,276 | 0.652592 |
4ae3bf74cebb095370cc7ed9d673e7b96c810065 | 747 | ex | Elixir | lib/zaryn/crypto/supervisor.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/crypto/supervisor.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/crypto/supervisor.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.Crypto.Supervisor do
@moduledoc false
use Supervisor
alias Zaryn.Crypto
alias Zaryn.Crypto.Ed25519.LibSodiumPort
alias Zaryn.Crypto.KeystoreSupervisor
def start_link(args) do
Supervisor.start_link(__MODULE__, args, name: Zaryn.CryptoSupervisor)
end
def init(_args) do
load_stor... | 22.636364 | 73 | 0.721553 |
4ae3f53c809ffabfc4f9dbb77b52d1b34cf7a022 | 1,248 | ex | Elixir | test/support/conn_case.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | 32 | 2020-06-08T14:50:46.000Z | 2021-01-01T05:40:44.000Z | test/support/conn_case.ex | ryoung786/jeopardy | 5558fc49013c5a22e556a0040cbc116aa8f63912 | [
"MIT"
] | null | null | null | defmodule JeopardyWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if t... | 28.363636 | 70 | 0.725962 |
4ae3fbe49983ec3bed6a6766c22d55d39ec7dffd | 1,962 | exs | Elixir | test/game/room_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | test/game/room_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | test/game/room_test.exs | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | defmodule Game.RoomTest do
use Data.ModelCase
alias Data.User
alias Game.Room
setup do
{:ok, user: %{id: 10, name: "user"}, room: %{id: 11}}
end
describe "entering a room" do
test "entering a room", %{user: user, room: room} do
state = %{room: room, players: [], npcs: []}
{:noreply, ... | 31.645161 | 129 | 0.592253 |
4ae3fd253a4c87ebd48079c154573c201b83ff21 | 1,958 | exs | Elixir | config/prod.exs | xtagon/chatsnek | a2bc762da02467631d17ddc8b47217f4a49b740b | [
"MIT"
] | 3 | 2020-12-13T15:24:40.000Z | 2021-09-22T17:45:40.000Z | config/prod.exs | xtagon/chatsnek | a2bc762da02467631d17ddc8b47217f4a49b740b | [
"MIT"
] | 8 | 2020-12-14T01:25:44.000Z | 2021-10-03T16:12:23.000Z | config/prod.exs | xtagon/chatsnek | a2bc762da02467631d17ddc8b47217f4a49b740b | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.6 | 66 | 0.712462 |
4ae441f989da6232482aeb7d47100b22efbb0f7f | 2,829 | ex | Elixir | lib/open_telemetry/honeycomb/config.ex | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | null | null | null | lib/open_telemetry/honeycomb/config.ex | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | null | null | null | lib/open_telemetry/honeycomb/config.ex | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | null | null | null | defmodule OpenTelemetry.Honeycomb.Config.AttributeMap do
@moduledoc """
Attribute map configuration.
Controls the dataset attributes used for various span properties _eg._ `"trace.trace_id"` for
the trace identifier, which you didn't set via `OpenTelemetry.Span.set_attribute/2`. Use the map
to match any exis... | 31.087912 | 100 | 0.656062 |
4ae4583a64253b84618dca9953937f09939d4313 | 2,634 | exs | Elixir | test/transaction_test.exs | gilala/postgrex | 9eac7ace9be82c8284f5ba3b81b76ae08533d6d9 | [
"Apache-2.0"
] | null | null | null | test/transaction_test.exs | gilala/postgrex | 9eac7ace9be82c8284f5ba3b81b76ae08533d6d9 | [
"Apache-2.0"
] | null | null | null | test/transaction_test.exs | gilala/postgrex | 9eac7ace9be82c8284f5ba3b81b76ae08533d6d9 | [
"Apache-2.0"
] | null | null | null | defmodule TransactionTest do
use ExUnit.Case, async: false
import Postgrex.TestHelper
alias Postgrex.Connection, as: P
setup do
opts = [ database: "postgrex_test" ]
{:ok, pid} = P.start_link(opts)
{:ok, _} = P.query(pid, "DROP TABLE IF EXISTS transaction", [])
{:ok, _} = P.query(pid, "CREATE TA... | 31.357143 | 72 | 0.596052 |
4ae47822fb6ef26b7ea095e84d89ec0f4ef1487f | 11,617 | ex | Elixir | lib/joken/config.ex | ajkeys/joken | 15c444f3aad90003eb95aefa2129e547bee40dfe | [
"Apache-2.0"
] | null | null | null | lib/joken/config.ex | ajkeys/joken | 15c444f3aad90003eb95aefa2129e547bee40dfe | [
"Apache-2.0"
] | null | null | null | lib/joken/config.ex | ajkeys/joken | 15c444f3aad90003eb95aefa2129e547bee40dfe | [
"Apache-2.0"
] | null | null | null | defmodule Joken.Config do
@moduledoc ~S"""
Main entry point for configuring Joken. This module has two approaches:
## Creating a map of `Joken.Claim` s
If you prefer to avoid using macros, you can create your configuration manually. Joken's
configuration is just a map with keys being binaries (the claim na... | 34.885886 | 100 | 0.663855 |
4ae48221a6399a0f0c80e838499966d769ae301f | 269 | ex | Elixir | elixir/codewars/fizz_buzz.ex | YodaEmbedding/experiments | 567c6a1c18fac2d951fe2af54aaa4917b7d529d2 | [
"MIT"
] | null | null | null | elixir/codewars/fizz_buzz.ex | YodaEmbedding/experiments | 567c6a1c18fac2d951fe2af54aaa4917b7d529d2 | [
"MIT"
] | null | null | null | elixir/codewars/fizz_buzz.ex | YodaEmbedding/experiments | 567c6a1c18fac2d951fe2af54aaa4917b7d529d2 | [
"MIT"
] | null | null | null | # https://www.codewars.com/kata/fizz-buzz
defmodule FizzBuzz do
def fizzbuzz(n) do
1..n
|> Enum.map(fn
x when rem(x, 15) == 0 -> "FizzBuzz"
x when rem(x, 3) == 0 -> "Fizz"
x when rem(x, 5) == 0 -> "Buzz"
x -> x
end)
end
end
| 19.214286 | 42 | 0.505576 |
4ae4a4cd2e8bdbbbd21ff4efceec59bdc207056b | 24 | exs | Elixir | .iex.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | 117 | 2017-09-09T00:02:32.000Z | 2022-02-10T15:36:28.000Z | .iex.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | 193 | 2017-09-09T22:49:18.000Z | 2022-03-30T13:05:25.000Z | .iex.exs | camelohq/cocktail | 9b25d8f24d148397be6537ab1414abdbdec1ce8d | [
"MIT"
] | 20 | 2018-01-04T14:58:42.000Z | 2021-11-25T13:59:10.000Z | alias Cocktail.Schedule
| 12 | 23 | 0.875 |
4ae4f25d77ed471796e1ee7a06bc3f61166d2698 | 2,758 | ex | Elixir | lib/web/views/submission_export_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | lib/web/views/submission_export_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | lib/web/views/submission_export_view.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | null | null | null | NimbleCSV.define(ChallengeGov.SubmissionExports.CSV, separator: ",", escape: "\"")
defmodule Web.SubmissionExportView do
use Web, :view
alias ChallengeGov.Phases
alias ChallengeGov.SubmissionExports
alias ChallengeGov.SubmissionExports.CSV
alias Web.ChallengeView
alias Web.SharedView
def submission_exp... | 23.372881 | 86 | 0.632705 |
4ae4f972b5c7bd00e8a4c5fa6de82b3960bf700f | 76 | exs | Elixir | prism/test/prism_web/views/page_view_test.exs | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | 5 | 2019-10-19T16:44:47.000Z | 2020-05-05T16:33:58.000Z | prism/test/prism_web/views/page_view_test.exs | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | null | null | null | prism/test/prism_web/views/page_view_test.exs | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | null | null | null | defmodule PrismWeb.PageViewTest do
use PrismWeb.ConnCase, async: true
end
| 19 | 36 | 0.815789 |
4ae4fe353c703a4f2404b3ac9f469fc56c700721 | 139 | ex | Elixir | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/mailer.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-01-16T15:40:04.000Z | 2020-01-11T19:34:42.000Z | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/mailer.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 4 | 2018-03-10T14:18:37.000Z | 2018-03-13T20:43:06.000Z | {{cookiecutter.app_name}}/lib/{{cookiecutter.app_name}}_web/mailer.ex | StephaneRob/cookiecutter-phoenix | c71a01a582fe8d57999d646cea7cbd820a4c73ca | [
"BSD-2-Clause"
] | 1 | 2019-10-11T20:52:31.000Z | 2019-10-11T20:52:31.000Z | defmodule {{cookiecutter.app_name.split('_')|map('title')|join}}Web.Mailer do
use Bamboo.Mailer, otp_app: :{{cookiecutter.app_name}}
end
| 34.75 | 77 | 0.741007 |
4ae50899b0d370d1b9538f7c1c12dff50cdd6363 | 5,040 | ex | Elixir | lib/addict/interactors/addict_manager_interactor.ex | aforward-oss/addict | dfb20b7299614becc5c472564a1e6ba6d7994615 | [
"MIT"
] | null | null | null | lib/addict/interactors/addict_manager_interactor.ex | aforward-oss/addict | dfb20b7299614becc5c472564a1e6ba6d7994615 | [
"MIT"
] | null | null | null | lib/addict/interactors/addict_manager_interactor.ex | aforward-oss/addict | dfb20b7299614becc5c472564a1e6ba6d7994615 | [
"MIT"
] | null | null | null | defmodule Addict.BaseManagerInteractor do
@moduledoc """
Addict BaseManagerInteractor is used as a base manager to be extended if needed.
Its responsability is to provide simple primitives for
user operations.
"""
defmacro __using__(_) do
quote do
require Logger
alias Addict.Passwor... | 31.111111 | 182 | 0.627579 |
4ae50935e04a0a37ac3cf636709e230825a49f89 | 741 | exs | Elixir | day10/mix.exs | jwarwick/aoc_2016 | 62a1d975835570f3fa7b60d32aa2e84da706be53 | [
"MIT"
] | null | null | null | day10/mix.exs | jwarwick/aoc_2016 | 62a1d975835570f3fa7b60d32aa2e84da706be53 | [
"MIT"
] | null | null | null | day10/mix.exs | jwarwick/aoc_2016 | 62a1d975835570f3fa7b60d32aa2e84da706be53 | [
"MIT"
] | null | null | null | defmodule Day10.Mixfile do
use Mix.Project
def project do
[app: :day10,
version: "0.1.0",
elixir: "~> 1.5-dev",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for mo... | 21.794118 | 79 | 0.623482 |
4ae52c0017e1e35300d974692536dd1a202d8d9a | 157 | exs | Elixir | priv/repo/migrations/20201112154739_add_user_token.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201112154739_add_user_token.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201112154739_add_user_token.exs | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | defmodule Scoop.Repo.Migrations.AddUserToken do
use Ecto.Migration
def change do
alter table(:users) do
add :token, :string
end
end
end
| 15.7 | 47 | 0.694268 |
4ae5427ff4d8309d3ab7787011d68b456ae7e079 | 48 | exs | Elixir | test/exkraken_test.exs | 1st8/exkraken | 6f4222dd1abef970d2a2d993696719c6e848111f | [
"MIT"
] | 1 | 2017-08-13T14:22:32.000Z | 2017-08-13T14:22:32.000Z | test/exkraken_test.exs | 1st8/exkraken | 6f4222dd1abef970d2a2d993696719c6e848111f | [
"MIT"
] | null | null | null | test/exkraken_test.exs | 1st8/exkraken | 6f4222dd1abef970d2a2d993696719c6e848111f | [
"MIT"
] | null | null | null | defmodule ExkrakenTest do
use ExUnit.Case
end
| 12 | 25 | 0.8125 |
4ae54e7192d66f0669c97b125786458edff3ff1f | 65 | ex | Elixir | lib/empty_web/views/user_settings_view.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | lib/empty_web/views/user_settings_view.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | lib/empty_web/views/user_settings_view.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | defmodule EmptyWeb.UserSettingsView do
use EmptyWeb, :view
end
| 16.25 | 38 | 0.815385 |
4ae5648a70ccf0a6a1783743d53a8605ac061cbc | 1,657 | ex | Elixir | lib/csv/encoding/encode.ex | TylerTemp/csv | eb1d9bc873374a8acdfd22f3ac55f3d2bdae6153 | [
"MIT"
] | null | null | null | lib/csv/encoding/encode.ex | TylerTemp/csv | eb1d9bc873374a8acdfd22f3ac55f3d2bdae6153 | [
"MIT"
] | null | null | null | lib/csv/encoding/encode.ex | TylerTemp/csv | eb1d9bc873374a8acdfd22f3ac55f3d2bdae6153 | [
"MIT"
] | null | null | null | defprotocol CSV.Encode do
@fallback_to_any true
@moduledoc """
Implement encoding for your data types.
"""
@doc """
The encode function to implement, gets passed the data and env as a keyword
list containing the currently used separator and delimiter.
"""
def encode(data, env \\ [])
end
defimpl CSV.... | 24.731343 | 78 | 0.592034 |
4ae59936e66619ab8e59f6667412b77c5030a241 | 3,269 | exs | Elixir | test/csv_test.exs | karlseguin/csv_parser | 25f748ebe7b43deb55a8128259af8915cba5f056 | [
"0BSD"
] | 3 | 2020-03-03T18:06:04.000Z | 2020-05-18T12:17:26.000Z | test/csv_test.exs | karlseguin/csv_parser | 25f748ebe7b43deb55a8128259af8915cba5f056 | [
"0BSD"
] | null | null | null | test/csv_test.exs | karlseguin/csv_parser | 25f748ebe7b43deb55a8128259af8915cba5f056 | [
"0BSD"
] | null | null | null | defmodule CsvParser.Tests.Csv do
use CsvParser.Tests.Base
@one "test/data/one.csv"
@gaps "test/data/gaps.csv"
@common "test/data/common.csv"
@jagged_rows "test/data/jagged_rows.csv"
test "reads a file with default options" do
expected = [
{:ok, ["Id", "First Name", "Age", "Date"]},
{:ok, ["1562", "Dulce... | 35.150538 | 95 | 0.523096 |
4ae6039853e77715d46617fd120b47bc47068ca1 | 264 | ex | Elixir | lib/phone/br/es.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/br/es.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/br/es.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.BR.ES do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(55)(2[78])([2-5|89].{7}|9[89].{7}|78.{6})$/
def area_name, do: "Espírito Santo"
def area_type, do: "state"
def area_abbreviation, do: "ES"
matcher(["5527", "5528"])
end
| 20.307692 | 65 | 0.617424 |
4ae60fa74ce6f543d0b44958b38b39c0f2085cfd | 5,577 | ex | Elixir | lib/pigeon/apns/config.ex | stefanzvkvc/pigeon | 3de4179db924e0f003edb0a480a60e616699739e | [
"MIT"
] | 1 | 2021-09-05T13:34:21.000Z | 2021-09-05T13:34:21.000Z | lib/pigeon/apns/config.ex | stefanzvkvc/pigeon | 3de4179db924e0f003edb0a480a60e616699739e | [
"MIT"
] | null | null | null | lib/pigeon/apns/config.ex | stefanzvkvc/pigeon | 3de4179db924e0f003edb0a480a60e616699739e | [
"MIT"
] | null | null | null | defmodule Pigeon.APNS.Config do
@moduledoc ~S"""
Configuration for APNS Workers using certificates.
"""
defstruct cert: nil,
key: nil,
name: nil,
port: 443,
ping_period: 600_000,
uri: nil
@typedoc ~S"""
Certificate APNS configuration struct
Th... | 28.6 | 97 | 0.615026 |
4ae624f7935d68a045dee47306b6aab6d61e6702 | 14,421 | exs | Elixir | test/ex_doc/formatter/html/autolink_test.exs | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html/autolink_test.exs | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/formatter/html/autolink_test.exs | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.AutolinkTest do
use ExUnit.Case, async: true
alias ExDoc.Formatter.HTML.Autolink
@elixir_docs "https://hexdocs.pm/"
@erlang_docs "http://www.erlang.org/doc/man/"
# local_doc
test "autolink fun/arity in docs" do
assert Autolink.local_doc("`example/2`", ["example/2"]) ==... | 51.688172 | 150 | 0.614174 |
4ae62be4606131630c1f0cfc734087cc9f8b4150 | 3,089 | exs | Elixir | test/mtpo_web/controllers/round_controller_test.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | test/mtpo_web/controllers/round_controller_test.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | test/mtpo_web/controllers/round_controller_test.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | defmodule MtpoWeb.RoundControllerTest do
use MtpoWeb.ConnCase
alias Mtpo.{Rounds, Users, Guesses}
@mod_attrs %{name: "summoningsalt", perm_level: :mod, whitelisted: true}
@user_attrs %{name: "andrewg", perm_level: :user}
def mod do
{:ok, user} = Users.create_user(@mod_attrs)
user
end
def user d... | 31.20202 | 79 | 0.66753 |
4ae6446048c455a6fff81904033fdbac25580e1f | 300 | exs | Elixir | priv/repo/migrations/20151128192049_create_user.exs | jbr/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 335 | 2015-06-19T18:27:51.000Z | 2020-11-25T19:00:27.000Z | priv/repo/migrations/20151128192049_create_user.exs | thisdata/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 33 | 2015-06-24T17:00:01.000Z | 2017-11-23T09:53:29.000Z | priv/repo/migrations/20151128192049_create_user.exs | thisdata/phoenix_guardian | 54152b8ca0ffa6afb4076e93814a54c68430f3e8 | [
"MIT"
] | 95 | 2015-06-30T22:18:00.000Z | 2022-01-14T13:47:10.000Z | defmodule PhoenixGuardian.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
execute("CREATE EXTENSION citext;")
create table(:users) do
add :name, :string
add :email, :citext
timestamps
end
create index(:users, [:email], unique: true)
end
end
| 17.647059 | 55 | 0.666667 |
4ae64da8a22dfee262c872db8491bf59aa758e79 | 769 | ex | Elixir | lib/hl7/2.3.1/segments/ub2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/ub2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/ub2.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.UB2 do
@moduledoc false
require Logger
alias HL7.V2_3_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_ub2: nil,
co_insurance_days_9: nil,
condition_code_24_30: nil,
covered_days_7: nil,
non_covered_days_8: nil,
value_amo... | 26.517241 | 51 | 0.703511 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.