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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08e221a51bebe0595f6ee1b24463ebb13f3b34ce | 709 | ex | Elixir | web/gettext.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | web/gettext.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | web/gettext.ex | roryqueue/code-corps-api | f23007e13fed2d7264fd2e2e97b1497488fb54ba | [
"MIT"
] | null | null | null | defmodule CodeCorps.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 CodeCorps.Gettext
# Simple translation
gettext "Here is the... | 28.36 | 72 | 0.681241 |
08e2272a8d0ec175d9adef0e74e03080289156ff | 934 | ex | Elixir | lib/zaryn_web/live/uploaders/post.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | 1 | 2020-01-04T11:24:44.000Z | 2020-01-04T11:24:44.000Z | lib/zaryn_web/live/uploaders/post.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | null | null | null | lib/zaryn_web/live/uploaders/post.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.Uploaders.Post do
alias ZarynWeb.Router.Helpers, as: Routes
alias Zaryn.Posts.Post
@upload_directory_name "uploads"
@upload_directory_path "priv/static/uploads"
defp ext(entry) do
[ext | _] = MIME.extensions(entry.client_type)
ext
end
def put_image_url(socket, %Post{} = post) d... | 25.944444 | 92 | 0.682013 |
08e245e1ef76ec1683df4630658890564c757c54 | 4,517 | exs | Elixir | test/co2_offset_web/live/calculator_live/show_test.exs | markevich/co2_offset | 98a799d3f30d21b595c9e083d9ee43bb96a4c68c | [
"Apache-2.0"
] | 15 | 2018-12-26T10:31:16.000Z | 2020-12-01T09:27:01.000Z | test/co2_offset_web/live/calculator_live/show_test.exs | markevich/co2_offset | 98a799d3f30d21b595c9e083d9ee43bb96a4c68c | [
"Apache-2.0"
] | 267 | 2018-12-26T07:46:17.000Z | 2020-04-04T17:05:47.000Z | test/co2_offset_web/live/calculator_live/show_test.exs | markevich/co2_offset | 98a799d3f30d21b595c9e083d9ee43bb96a4c68c | [
"Apache-2.0"
] | 1 | 2019-07-12T13:53:25.000Z | 2019-07-12T13:53:25.000Z | defmodule Co2OffsetWeb.DonationLive.ShowTest do
use Co2OffsetWeb.ConnCase
alias Co2Offset.Donations
setup do
donation = insert(:donation, original_distance: 642)
distance_1700 = insert(:distance, distance: 1700)
distance_10000 = insert(:distance, distance: 10_000)
distance_278 = insert(:distance... | 29.717105 | 93 | 0.672128 |
08e249686f82e870e114b4e628ae53c948928c09 | 1,823 | ex | Elixir | lib/tube_streamer/stream.ex | surik/tube_streamer | c353e8512ec6b7521c18e8bdad927d8abad0d346 | [
"MIT"
] | 1 | 2018-02-06T17:28:51.000Z | 2018-02-06T17:28:51.000Z | lib/tube_streamer/stream.ex | surik/tube_streamer | c353e8512ec6b7521c18e8bdad927d8abad0d346 | [
"MIT"
] | null | null | null | lib/tube_streamer/stream.ex | surik/tube_streamer | c353e8512ec6b7521c18e8bdad927d8abad0d346 | [
"MIT"
] | null | null | null | defmodule TubeStreamer.Stream do
use GenServer
defmodule Supervisor do
@moduledoc false
def start_link() do
import Elixir.Supervisor.Spec
children = [
worker(TubeStreamer.Stream, [], restart: :temporary)
]
Elixir.Supervisor.start_link(children, strategy: :simple_one_f... | 26.042857 | 93 | 0.610532 |
08e25d12d025a4d53cb6f0fa3dcc490bc01e9a76 | 602 | ex | Elixir | lib/remedy/schema/thread_member.ex | bdanklin/nostrum | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | 3 | 2021-09-05T09:44:02.000Z | 2022-01-26T15:31:50.000Z | lib/remedy/schema/thread_member.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | lib/remedy/schema/thread_member.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | defmodule Remedy.Schema.ThreadMember do
@moduledoc """
Thread Member Object
"""
use Remedy.Schema
alias Remedy.ISO8601
@type t :: %__MODULE__{
user_id: Snowflake.t(),
join_timestamp: ISO8601.t(),
flags: ThreadMemberFlags.t()
}
@primary_key {:id, Snowflake, autogener... | 23.153846 | 61 | 0.654485 |
08e25e20a370ac585c712bc6266ff0cae1594d2f | 7,495 | exs | Elixir | test/mastani_server_web/query/cms/search_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | test/mastani_server_web/query/cms/search_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | test/mastani_server_web/query/cms/search_test.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Test.Query.CMS.Search do
use MastaniServer.TestTools
# alias MastaniServer.Accounts.User
# alias MastaniServer.CMS
# alias CMS.{Community}
setup do
guest_conn = simu_conn(:guest)
{:ok, _community} = db_insert(:community, %{title: "react"})
{:ok, _community} = db_insert(:c... | 33.609865 | 92 | 0.589726 |
08e27eb6a46a1e66bebb4380c6b99c80f3a76a05 | 1,432 | ex | Elixir | clients/jobs/lib/google_api/jobs/v4/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v4/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v4/model/empty.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... | 34.095238 | 282 | 0.753492 |
08e27ec6a7f363276543a3985b89ef8aa4eb3d0a | 2,382 | ex | Elixir | lib/stone/operations.ex | MillionIntegrals/stone | 63cc7530241b53667a28afc2259c3199d912b839 | [
"MIT"
] | null | null | null | lib/stone/operations.ex | MillionIntegrals/stone | 63cc7530241b53667a28afc2259c3199d912b839 | [
"MIT"
] | null | null | null | lib/stone/operations.ex | MillionIntegrals/stone | 63cc7530241b53667a28afc2259c3199d912b839 | [
"MIT"
] | null | null | null | defmodule Stone.Operations do
@moduledoc """
Basic building blocks for your `GenServer`s.
Use these macros to define your desired functionality.
"""
alias Stone.Declaration
@doc """
Define server starting function(`start`, `start_link`) together with corresponding `init/1`.
"""
defmacro defstart(dec... | 32.630137 | 94 | 0.691856 |
08e288b9b7c5727533eebe1aa0463a78ea990090 | 2,126 | exs | Elixir | test/erlef/wild_apricot_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | test/erlef/wild_apricot_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | test/erlef/wild_apricot_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule Erlef.WidlApricotTest do
use ExUnit.Case, async: true
alias Erlef.WildApricot
describe "login/1" do
test "when contact exists" do
assert {:ok, _contact} = WildApricot.login("basic_member")
end
test "when contact does not exist" do
assert {:error, _contact} = WildApricot.login(... | 29.123288 | 91 | 0.632173 |
08e2a2009b98930b9991c471fd8b8d9c178c565e | 6,683 | ex | Elixir | lib/swoosh/adapters/smtp/helpers.ex | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 1 | 2020-12-22T19:28:30.000Z | 2020-12-22T19:28:30.000Z | lib/swoosh/adapters/smtp/helpers.ex | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | null | null | null | lib/swoosh/adapters/smtp/helpers.ex | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | null | null | null | defmodule Swoosh.Adapters.SMTP.Helpers do
@moduledoc false
alias Swoosh.Email
import Swoosh.Email.Render
@doc false
def sender(%Email{} = email) do
email.headers["Sender"] || elem(email.from, 1)
end
@doc false
def body(email, config) do
{message_config, config} = Keyword.split(config, [:tran... | 27.166667 | 95 | 0.58387 |
08e2ac6badb81dd19c7b6221bd844b6ae6acebf2 | 886 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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... | 32.814815 | 74 | 0.759594 |
08e2d8ebdbc1e78b92760620c9e6fadbb7709042 | 2,803 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/token.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/token.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/token.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... | 41.220588 | 199 | 0.677845 |
08e30f85b3417007e66ab18732c8fa1eb000e159 | 1,226 | ex | Elixir | lib/retrospectivex/accounts/accounts.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 5 | 2018-06-27T17:51:51.000Z | 2020-10-05T09:59:04.000Z | lib/retrospectivex/accounts/accounts.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 1 | 2018-10-08T11:33:12.000Z | 2018-10-08T11:33:12.000Z | lib/retrospectivex/accounts/accounts.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 2 | 2018-10-08T11:31:55.000Z | 2020-10-05T09:59:05.000Z | defmodule Retrospectivex.Accounts do
@moduledoc """
The Accounts context.
"""
alias Retrospectivex.Accounts.Managers.Administrator, as: AdministratorManager
alias Retrospectivex.Accounts.Managers.User, as: UserManager
# Administrator API
defdelegate change_administrator(administrator), to: Administrator... | 37.151515 | 80 | 0.814845 |
08e3262d81711fc934518e3a12a9aa9bb011d868 | 1,303 | ex | Elixir | lib/aws_ingress_operator/ex_aws/elbv2/target_group.ex | bennyhat/aws_ingress_operator | 81a1c873cbea95a8ba721ac1147c421dcaf1de45 | [
"MIT"
] | null | null | null | lib/aws_ingress_operator/ex_aws/elbv2/target_group.ex | bennyhat/aws_ingress_operator | 81a1c873cbea95a8ba721ac1147c421dcaf1de45 | [
"MIT"
] | null | null | null | lib/aws_ingress_operator/ex_aws/elbv2/target_group.ex | bennyhat/aws_ingress_operator | 81a1c873cbea95a8ba721ac1147c421dcaf1de45 | [
"MIT"
] | null | null | null | defmodule AwsIngressOperator.ExAws.Elbv2.TargetGroup do
alias AwsIngressOperator.ExAws.FilterAliases
import AwsIngressOperator.ExAws.Elbv2, only: [make_request: 2, make_request: 3]
def describe_target_groups!(filters) do
action = :describe_target_groups
aliased_filters = FilterAliases.apply_aliases(acti... | 24.12963 | 90 | 0.640061 |
08e39862ad9a373642551165fae24fe5a5ba3c3b | 645 | exs | Elixir | priv/repo/seeds.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | priv/repo/seeds.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Ptr.Repo.insert!(%Ptr.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if... | 23.035714 | 61 | 0.657364 |
08e3a42440064d701a83b57b1faebc2f3f59383b | 1,033 | exs | Elixir | mix.exs | syamilmj/para | ed7a7ae7205a9cd0c9a0557fbab95d337741762f | [
"Apache-2.0"
] | 27 | 2021-09-02T12:50:32.000Z | 2022-03-07T05:28:06.000Z | mix.exs | syamilmj/para | ed7a7ae7205a9cd0c9a0557fbab95d337741762f | [
"Apache-2.0"
] | 3 | 2021-09-01T19:18:32.000Z | 2021-10-14T09:34:07.000Z | mix.exs | syamilmj/para | ed7a7ae7205a9cd0c9a0557fbab95d337741762f | [
"Apache-2.0"
] | null | null | null | defmodule Para.MixProject do
use Mix.Project
@version "0.3.0"
@source_url "https://github.com/syamilmj/para"
def project do
[
app: :para,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
description: "A declarative wa... | 21.081633 | 80 | 0.570184 |
08e41a96b9d91d6d2d2c47830098bb15a37cf323 | 1,525 | ex | Elixir | test/support/data_case.ex | ohr486/Grimoire | 4ad1ff8bb2a31da5b848ca680b33b730d6ae5ce8 | [
"MIT"
] | null | null | null | test/support/data_case.ex | ohr486/Grimoire | 4ad1ff8bb2a31da5b848ca680b33b730d6ae5ce8 | [
"MIT"
] | null | null | null | test/support/data_case.ex | ohr486/Grimoire | 4ad1ff8bb2a31da5b848ca680b33b730d6ae5ce8 | [
"MIT"
] | null | null | null | defmodule Grimoire.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 done to ... | 29.326923 | 89 | 0.696393 |
08e42599ee75c090f7d09d45813c60bb74b5d65d | 2,059 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/reviews_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_publisher/lib/google_api/android_publisher/v2/model/reviews_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/reviews_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.849057 | 110 | 0.742593 |
08e42e29d55d98bc6eadeef5e8d3d87a17542cbc | 5,282 | ex | Elixir | lib/central/account/schemas/user.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central/account/schemas/user.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/account/schemas/user.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Central.Account.User do
use CentralWeb, :schema
@behaviour Bodyguard.Policy
alias Argon2
# import Central.Account.AuthLib, only: [allow?: 2]
@extra_fields [:clan_id]
schema "account_users" do
field :name, :string
field :email, :string
field :password, :string
field :icon, :str... | 26.278607 | 94 | 0.608482 |
08e45dae511b72a1894b3446311ae4700071356e | 2,482 | ex | Elixir | lib/banking_graph/banking/entry.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | lib/banking_graph/banking/entry.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | lib/banking_graph/banking/entry.ex | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | defmodule BankingGraph.Banking.Entry do
use Ecto.Schema
import Ecto.Changeset
alias BankingGraph.Banking
@entry_types [:credit, :debit]
schema "entries" do
field :description, :string
field :type, :string
field :client_id, :integer
field :branch_id, :integer
... | 38.184615 | 121 | 0.612812 |
08e45fb8c6a8b31a7781ee8d2b174bb09d4cb06d | 3,012 | exs | Elixir | xarb/test/xarb_web/controllers/user_confirmation_controller_test.exs | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | xarb/test/xarb_web/controllers/user_confirmation_controller_test.exs | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | xarb/test/xarb_web/controllers/user_confirmation_controller_test.exs | Erik-joh/examensarbete | 951847f0ee5195abc0e3aa5f2b6fff78233127ee | [
"MIT"
] | null | null | null | defmodule XarbWeb.UserConfirmationControllerTest do
use XarbWeb.ConnCase, async: true
alias Xarb.Accounts
alias Xarb.Repo
import Xarb.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/confirm" do
test "renders the confirmation page", %{conn: conn} do
conn = get(co... | 35.435294 | 97 | 0.65073 |
08e464262f8bf9832368208756e56fe3d6fcf42a | 585 | ex | Elixir | installer/phoenix/templates/phx_api/router.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 130 | 2016-06-21T07:58:46.000Z | 2022-01-01T21:45:23.000Z | installer/phoenix/templates/phx_api/router.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 50 | 2016-06-29T16:01:42.000Z | 2019-08-07T21:33:49.000Z | installer/phoenix/templates/phx_api/router.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 20 | 2016-07-02T11:37:33.000Z | 2018-10-26T19:12:41.000Z | defmodule <%= base %>.Router do
use <%= base %>.Web, :router
import <%= base %>.Auth
pipeline :api do
plug :accepts, ["json"]
plug :verify_token
end
scope "/api", <%= base %> do
pipe_through :api
post "/sessions/create", SessionController, :create
resources "/users", UserController, ex... | 27.857143 | 81 | 0.666667 |
08e46912c0db48dce8edfe7be8d40058cce168b0 | 2,737 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/counter_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1beta/model/counter_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/counter_options.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.641509 | 934 | 0.745342 |
08e46bc4bb36ec5b2d1c7abd275f703d84ae3d39 | 963 | exs | Elixir | lib/linking_modules_behaviours_and_use_1/tracer.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | lib/linking_modules_behaviours_and_use_1/tracer.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | 1 | 2020-01-28T00:19:53.000Z | 2020-01-28T00:19:53.000Z | lib/linking_modules_behaviours_and_use_1/tracer.exs | mikan/elixir-practice | 624525605eb2324e0c55a4ddcb68388c0d2ecefc | [
"Apache-2.0"
] | null | null | null | defmodule Tracer do
def dump_args(args) do
args
|> Enum.map(&inspect/1)
|> Enum.join(", ")
end
def dump_defn(name, args) do
"#{name}(#{dump_args(args)})"
end
defmacro def(definition = {name, _, args}, do: content) do
quote do
Kernel.def(unquote(definition)) do
IO.puts "==> ... | 24.075 | 92 | 0.599169 |
08e46ca651aaf82b047f40e43485d7577f83d6a9 | 489 | exs | Elixir | mix.exs | andersonmcook/filter_map | f52e98168724aa5a939cacb0f80a48922bb8a432 | [
"MIT"
] | null | null | null | mix.exs | andersonmcook/filter_map | f52e98168724aa5a939cacb0f80a48922bb8a432 | [
"MIT"
] | null | null | null | mix.exs | andersonmcook/filter_map | f52e98168724aa5a939cacb0f80a48922bb8a432 | [
"MIT"
] | null | null | null | defmodule FilterMap.MixProject do
use Mix.Project
def project do
[
app: :filter_map,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extr... | 17.464286 | 59 | 0.572597 |
08e4dec80f7f3b1908ccbee3bb72a8a56d5eca2b | 170 | ex | Elixir | fixtures/elixir/get_without_headers.ex | kado0413/curlconverter | a532bd415853f350198d891e14c59babed16902e | [
"MIT"
] | 1 | 2022-03-24T04:18:11.000Z | 2022-03-24T04:18:11.000Z | fixtures/elixir/get_without_headers.ex | kado0413/curlconverter | a532bd415853f350198d891e14c59babed16902e | [
"MIT"
] | null | null | null | fixtures/elixir/get_without_headers.ex | kado0413/curlconverter | a532bd415853f350198d891e14c59babed16902e | [
"MIT"
] | null | null | null | request = %HTTPoison.Request{
method: :get,
url: "http://indeed.com",
options: [],
headers: [],
params: [],
body: ""
}
response = HTTPoison.request(request)
| 15.454545 | 37 | 0.605882 |
08e4e187c3b5e660ebe8ff8d2bd05135feb54006 | 3,087 | ex | Elixir | lib/aws/generated/mobileanalytics.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/mobileanalytics.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/mobileanalytics.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Mobileanalytics do
@moduledoc """
Amazon Mobile Analytics is a service for collecting, visualizing, and
understanding app usage data at scale.
"""
@doc """
The PutEvents operation rec... | 33.923077 | 100 | 0.660512 |
08e51aa4fb0690e06e121c7975749182524b7048 | 1,004 | ex | Elixir | lib/community_web/views/error_helpers.ex | idkjs/graphql-elixir-starter | 7728e8ce67c32a2eb57c6be92ebe852da0145930 | [
"MIT"
] | 1 | 2018-01-16T10:28:38.000Z | 2018-01-16T10:28:38.000Z | lib/community_web/views/error_helpers.ex | idkjs/graphql-elixir-starter | 7728e8ce67c32a2eb57c6be92ebe852da0145930 | [
"MIT"
] | null | null | null | lib/community_web/views/error_helpers.ex | idkjs/graphql-elixir-starter | 7728e8ce67c32a2eb57c6be92ebe852da0145930 | [
"MIT"
] | null | null | null | defmodule CommunityWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# Because error messages were defined within Ecto, we must
# call the Gettext module pass... | 33.466667 | 78 | 0.674303 |
08e5213d48b36a985474160b7f6bc9584944f2ed | 2,884 | ex | Elixir | lib/triton/setup/materialized_view.ex | karpov-dn/triton | 65dd7ee4dc2d899ca0e5874e82fa5b8744f99f98 | [
"MIT"
] | 71 | 2017-11-29T03:40:54.000Z | 2022-01-10T22:11:48.000Z | lib/triton/setup/materialized_view.ex | karpov-dn/triton | 65dd7ee4dc2d899ca0e5874e82fa5b8744f99f98 | [
"MIT"
] | 19 | 2018-04-13T18:25:05.000Z | 2020-12-24T05:22:41.000Z | lib/triton/setup/materialized_view.ex | karpov-dn/triton | 65dd7ee4dc2d899ca0e5874e82fa5b8744f99f98 | [
"MIT"
] | 23 | 2017-11-02T21:34:54.000Z | 2021-08-24T08:29:34.000Z | defmodule Triton.Setup.MaterializedView do
def setup(blueprint) do
try do
node_config =
Application.get_env(:triton, :clusters)
|> Enum.find(
&(&1[:conn] ==
Module.concat(blueprint.__from__, Table).__struct__.__keyspace__.__struct__.__conn__)
)
|> Keyw... | 36.506329 | 114 | 0.649098 |
08e5280d645d9e4557606a6a2694ba833ca1c005 | 1,742 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orderpayments_notify_auth_approved_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderpayments_notify_auth_approved_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orderpayments_notify_auth_approved_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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.156863 | 97 | 0.754305 |
08e5598df4c673ef09baba2cf8fd41408667cead | 1,129 | exs | Elixir | test/changelog_web/views/feed_view_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | test/changelog_web/views/feed_view_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | test/changelog_web/views/feed_view_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.FeedViewTest do
use ChangelogWeb.ConnCase, async: true
alias ChangelogWeb.FeedView
describe "episode_title/2" do
test "includes podcast in parentheses when master" do
podcast = %{name: "Master", slug: "master"}
episode = %{title: "Why testing is cool", slug: "bonus", podca... | 38.931034 | 97 | 0.666962 |
08e5634df6243003b5e679dd870099fd03bed9e3 | 474 | exs | Elixir | config/test.exs | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | 1 | 2019-06-20T20:29:10.000Z | 2019-06-20T20:29:10.000Z | config/test.exs | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | 3 | 2020-07-16T23:11:31.000Z | 2021-05-08T14:44:21.000Z | config/test.exs | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :bracketeer, BracketeerWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :bracketeer, B... | 24.947368 | 56 | 0.740506 |
08e56a0d9e6bbd60050123151e5d07c0a7de482c | 23 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_addition_operation_parsing_test_case/AtNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_addition_operation_parsing_test_case/AtNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_addition_operation_parsing_test_case/AtNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @one + @two
@one - @two | 11.5 | 11 | 0.521739 |
08e56ac28b5f3355a5010b39d5107a7a0fe581ab | 3,124 | exs | Elixir | test/swoosh/email/recipient_test.exs | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 1,214 | 2016-03-21T16:56:42.000Z | 2022-03-31T19:10:11.000Z | test/swoosh/email/recipient_test.exs | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 399 | 2016-03-21T23:11:32.000Z | 2022-03-04T10:52:28.000Z | test/swoosh/email/recipient_test.exs | nash-io/swoosh | 05c8676890da07403225c302f9a069fc7d221330 | [
"MIT"
] | 208 | 2016-03-21T21:12:11.000Z | 2022-03-04T06:35:33.000Z | defmodule Swoosh.Email.RecipientTest do
use ExUnit.Case, async: true
alias Swoosh.Email.Recipient
defmodule Avenger do
@derive {Recipient, name: :name, address: :email}
defstruct [:name, :email]
end
defmodule Villian do
@derive {Recipient, address: :email}
defstruct [:we_dont_care_about_the... | 32.206186 | 98 | 0.611076 |
08e577999080659dd2cc3f771c74305e71160295 | 1,683 | exs | Elixir | lib/exercism/twelve-days/twelve_days.exs | sprql/experimentex | 6c8a37ea03b74c5bfece1b2bec21c163a2f2df2f | [
"MIT"
] | null | null | null | lib/exercism/twelve-days/twelve_days.exs | sprql/experimentex | 6c8a37ea03b74c5bfece1b2bec21c163a2f2df2f | [
"MIT"
] | null | null | null | lib/exercism/twelve-days/twelve_days.exs | sprql/experimentex | 6c8a37ea03b74c5bfece1b2bec21c163a2f2df2f | [
"MIT"
] | null | null | null | defmodule TwelveDays do
@days ~w(first
second
third
fourth
fifth
sixth
seventh
eighth
ninth
tenth
eleventh
twelfth)
@presents [
"a Partridge in a Pear Tree",
"two Turtle Doves",
"thr... | 25.892308 | 105 | 0.600119 |
08e577a42e3524e125edf825b27ffaa91ad83818 | 1,337 | ex | Elixir | backend/lib/edgehog/astarte/device/cellular_connection/modem_status.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/lib/edgehog/astarte/device/cellular_connection/modem_status.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/lib/edgehog/astarte/device/cellular_connection/modem_status.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2022 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 28.446809 | 74 | 0.670157 |
08e5845c907073447ac217fa4b4886384c31529f | 7,652 | ex | Elixir | lib/sanbase_web/graphql/document/document_provider.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase_web/graphql/document/document_provider.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase_web/graphql/document/document_provider.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.DocumentProvider do
@moduledoc ~s"""
Custom Absinthe DocumentProvider for more effective caching.
Absinthe phases have one main difference compared to plugs - all phases must run
and cannot be halted. But phases can be jumped over by returning
`{:jump, result, destination_phase}`... | 33.858407 | 97 | 0.668191 |
08e58feeaad295bf0166c8571579c1341545a5a1 | 1,254 | ex | Elixir | lib/tod_web/views/error_helpers.ex | webutil/tod | 0abde2ae2295aee88a40933b66adf9b0c6e5992f | [
"MIT"
] | null | null | null | lib/tod_web/views/error_helpers.ex | webutil/tod | 0abde2ae2295aee88a40933b66adf9b0c6e5992f | [
"MIT"
] | null | null | null | lib/tod_web/views/error_helpers.ex | webutil/tod | 0abde2ae2295aee88a40933b66adf9b0c6e5992f | [
"MIT"
] | null | null | null | defmodule TODWeb.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 :s... | 30.585366 | 72 | 0.667464 |
08e5a6326414ac8c9f98786706b22f45d9c48190 | 301 | ex | Elixir | src/exceptions.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | src/exceptions.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | src/exceptions.ex | James-P-D/ElixirDump | 7e03958e2fc16152eeb0d3f291541d6ae83b5c13 | [
"MIT"
] | null | null | null | # cd("C:\\Users\\jdorr\\Desktop\\Dev\\ElixirDump\\src")
# c("exceptions.ex")
# M.main
defmodule M do
def main do
enums_stuff()
end
def enums_stuff() do
err = try do
5 / 1
rescue
ArithmeticError -> "Divide by zero!"
end
IO.puts err
end
end | 14.333333 | 55 | 0.551495 |
08e5b86c23ea44b591fcc439d618cbf677195167 | 1,764 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/import_context_csv_import_options.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/import_context_csv_import_options.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/import_context_csv_import_options.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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.588235 | 167 | 0.743197 |
08e5cf93f7aca78cd0e6743ead8f9e1df961ac2a | 1,068 | ex | Elixir | lib/matrix.ex | nemanja-m/matrix | 92298697827f30a2d6ba144004c1668fe70b760e | [
"MIT"
] | null | null | null | lib/matrix.ex | nemanja-m/matrix | 92298697827f30a2d6ba144004c1668fe70b760e | [
"MIT"
] | null | null | null | lib/matrix.ex | nemanja-m/matrix | 92298697827f30a2d6ba144004c1668fe70b760e | [
"MIT"
] | null | null | null | defmodule Matrix do
use Application
def start(_type, _args) do
import Supervisor.Spec
# Import defined agents into VM
agent_types = Matrix.AgentManager.import_agent_types
# Generate supervisors for imported agents
agent_supervisors =
Matrix.AgentManager.generate_agent_supervisor_modules... | 27.384615 | 72 | 0.71161 |
08e5d1e28ff3a17ddd281ad4a3ba929e602b154f | 1,068 | ex | Elixir | lib/day1/challenge_two.ex | AJPcodes/advent_of_code_2018 | 1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235 | [
"MIT"
] | 1 | 2018-12-04T19:54:13.000Z | 2018-12-04T19:54:13.000Z | lib/day1/challenge_two.ex | AJPcodes/advent_of_code_2018 | 1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235 | [
"MIT"
] | null | null | null | lib/day1/challenge_two.ex | AJPcodes/advent_of_code_2018 | 1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235 | [
"MIT"
] | null | null | null | defmodule D1.Ch2 do
@input_file_path './challenge_inputs/day_one/challenge_one.txt'
def start do
@input_file_path
|> ChallengeFileLoader.parse_file_to_lines()
|> Enum.map(&String.to_integer(&1))
|> dupe_check
end
defp dupe_check([h | t] = list) do
frequencies = MapSet.new([0])
dupe_ch... | 27.384615 | 74 | 0.71161 |
08e5d678c7c49e9f505354e4d5909f25a759f2b9 | 3,029 | ex | Elixir | priv/perf/apps/load_test/lib/child_chain/utxos.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | priv/perf/apps/load_test/lib/child_chain/utxos.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | priv/perf/apps/load_test/lib/child_chain/utxos.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 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 ... | 29.990099 | 94 | 0.671509 |
08e60c98afd71d51bce8d601ddfc57e1bc4d76d0 | 69 | exs | Elixir | config/test.exs | kianmeng/broadway_cloud_pub_sub | 0d59845c16864aa336e8399b12b33ace7a772cd5 | [
"Apache-2.0"
] | 25 | 2020-02-03T13:35:49.000Z | 2022-03-07T06:09:40.000Z | config/test.exs | kianmeng/broadway_cloud_pub_sub | 0d59845c16864aa336e8399b12b33ace7a772cd5 | [
"Apache-2.0"
] | 29 | 2020-01-25T04:43:37.000Z | 2022-02-28T17:17:12.000Z | config/test.exs | kianmeng/broadway_cloud_pub_sub | 0d59845c16864aa336e8399b12b33ace7a772cd5 | [
"Apache-2.0"
] | 18 | 2020-01-24T15:26:29.000Z | 2022-02-27T01:03:47.000Z | use Mix.Config
# Disable Goth in tests
config :goth, disabled: true
| 13.8 | 28 | 0.753623 |
08e60fd534e874555dc61387de312c696acd43d9 | 142 | exs | Elixir | config/config.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | 1 | 2020-04-29T09:40:11.000Z | 2020-04-29T09:40:11.000Z | config/config.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | null | null | null | config/config.exs | terianil/geetest3 | 8a6edaf3d893b1ef57fe140bfe807f5074686a24 | [
"MIT"
] | null | null | null | use Mix.Config
config :geetest3, :config,
id: {:system, "GEETEST3_ID"},
key: {:system, "GEETEST3_KEY"}
import_config "#{Mix.env()}.exs"
| 17.75 | 32 | 0.661972 |
08e61ab224d88e702693dbc10d643006141d797e | 1,935 | ex | Elixir | lib/utxo_store.ex | endlos/elixium_core | e4849d0934713accde357f7687bd0bcfbe4d2929 | [
"MIT"
] | 1 | 2018-06-28T20:34:05.000Z | 2018-06-28T20:34:05.000Z | lib/utxo_store.ex | endlos/elixium_core | e4849d0934713accde357f7687bd0bcfbe4d2929 | [
"MIT"
] | null | null | null | lib/utxo_store.ex | endlos/elixium_core | e4849d0934713accde357f7687bd0bcfbe4d2929 | [
"MIT"
] | null | null | null | defmodule UltraDark.UtxoStore do
use UltraDark.Store
@moduledoc """
Provides an interface for interacting with the UTXOs stored in level db
"""
@store_dir ".utxo"
def initialize do
initialize(@store_dir)
end
@doc """
Add a utxo to leveldb, indexing it by its txoid
"""
@spec add_utxo(ma... | 23.888889 | 82 | 0.61292 |
08e6391e7c99d927f02d3832635050bcd63bfbaf | 571 | exs | Elixir | samples/deactivate_output.exs | kimshrier/benchee | a295b4fd538c1d1b204f2f565daff94fcd53558c | [
"MIT"
] | null | null | null | samples/deactivate_output.exs | kimshrier/benchee | a295b4fd538c1d1b204f2f565daff94fcd53558c | [
"MIT"
] | null | null | null | samples/deactivate_output.exs | kimshrier/benchee | a295b4fd538c1d1b204f2f565daff94fcd53558c | [
"MIT"
] | null | null | null | # Deactivate the fast warnings if they annoy you
# You can also deactivate the comparison report
Benchee.run(%{
"fast" => fn -> 1 + 1 end,
"also" => fn -> 20 * 20 end
},
time: 2,
warmup: 1,
print: [
benchmarking: false,
configuration: false,
fast_warning: false
],
console: [
comparison: false
])
# tobi@s... | 24.826087 | 70 | 0.598949 |
08e66f7f61f70b92e8d7d45577a78cd323609c18 | 48 | exs | Elixir | HelloWorld.exs | muchshibewow/Hello-World | fe55089dd8a3f1b5252b1ff52f20811c30aafa63 | [
"MIT"
] | 442 | 2018-10-02T09:00:04.000Z | 2019-07-30T10:56:04.000Z | HelloWorld.exs | muchshibewow/Hello-World | fe55089dd8a3f1b5252b1ff52f20811c30aafa63 | [
"MIT"
] | 121 | 2018-10-02T09:01:50.000Z | 2019-07-08T00:28:55.000Z | HelloWorld.exs | muchshibewow/Hello-World | fe55089dd8a3f1b5252b1ff52f20811c30aafa63 | [
"MIT"
] | 1,887 | 2018-10-02T09:03:24.000Z | 2019-07-31T18:32:31.000Z | # elixir HelloWorld.exs
IO.puts "Hello World!"
| 12 | 23 | 0.729167 |
08e676e3007e0659083836ae38dee043e4a56547 | 1,643 | exs | Elixir | test/pix_request_log_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | 1 | 2022-03-15T18:58:21.000Z | 2022-03-15T18:58:21.000Z | test/pix_request_log_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | test/pix_request_log_test.exs | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | defmodule StarkInfraTest.PixRequest.Log do
use ExUnit.Case
@tag :pix_request_log
test "get pix request log" do
log =
StarkInfra.PixRequest.Log.query!(limit: 1)
|> Enum.take(1)
|> hd()
{:ok, unique_log} = StarkInfra.PixRequest.Log.get(log.id)
assert unique_log.id == log.id
end
... | 26.079365 | 94 | 0.645161 |
08e67ae2d263d1f8222dd522d24bc6cf4a7205d0 | 3,041 | exs | Elixir | test/changeset_parser_custom_field_constructor_test.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | 90 | 2019-04-30T00:21:58.000Z | 2022-02-02T15:28:25.000Z | test/changeset_parser_custom_field_constructor_test.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | 18 | 2019-05-01T19:24:16.000Z | 2022-01-04T07:22:43.000Z | test/changeset_parser_custom_field_constructor_test.exs | scottming/absinthe_error_payload | 500f7fa2ad1c17eeba644e7922dd0275994f6f94 | [
"MIT",
"BSD-3-Clause"
] | 25 | 2019-05-24T23:57:24.000Z | 2022-02-25T19:16:23.000Z | defmodule AbsintheErrorPayload.ChangesetParserCustomFieldConstructorTest do
@moduledoc """
Test conversion of changeset errors to ValidationMessage structs
"""
use ExUnit.Case, async: false
import Ecto.Changeset
alias AbsintheErrorPayload.ChangesetParser
alias AbsintheErrorPayload.ValidationMessage
... | 26.443478 | 92 | 0.641236 |
08e68fa14eae6e4c00cb360fd858e6828d0c02f2 | 2,644 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__text_segment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__text_segment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__text_segment.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.771429 | 206 | 0.750378 |
08e6912c194270bda3921b8bae0883028f3608fa | 1,151 | ex | Elixir | lib/pigeon/adm/result_parser.ex | inside-track/pigeon | 596e721b5a2bdafbe61f6626b159a897c670b9f1 | [
"MIT"
] | null | null | null | lib/pigeon/adm/result_parser.ex | inside-track/pigeon | 596e721b5a2bdafbe61f6626b159a897c670b9f1 | [
"MIT"
] | null | null | null | lib/pigeon/adm/result_parser.ex | inside-track/pigeon | 596e721b5a2bdafbe61f6626b159a897c670b9f1 | [
"MIT"
] | null | null | null | defmodule Pigeon.ADM.ResultParser do
@moduledoc false
@doc ~S"""
Parses response and updates notification.
## Examples
iex> parse(%Pigeon.ADM.Notification{}, %{}, fn(x) -> x end)
%Pigeon.ADM.Notification{response: :success}
iex> parse(%Pigeon.ADM.Notification{}, %{"registrationID" => "test... | 30.289474 | 82 | 0.652476 |
08e69fa0c06998f106ea5515108b5ba1697201ea | 8,645 | exs | Elixir | test/types_test.exs | elixir-maru/maru_params | 4bc1d05008e881136aff87667791ed4da1c12bd4 | [
"WTFPL"
] | 4 | 2021-12-29T06:45:02.000Z | 2022-02-10T12:48:57.000Z | test/types_test.exs | elixir-maru/maru_params | 4bc1d05008e881136aff87667791ed4da1c12bd4 | [
"WTFPL"
] | null | null | null | test/types_test.exs | elixir-maru/maru_params | 4bc1d05008e881136aff87667791ed4da1c12bd4 | [
"WTFPL"
] | 1 | 2021-12-29T06:45:03.000Z | 2021-12-29T06:45:03.000Z | defmodule Ecto.Enum do
def values(User, :fruit), do: [:apple]
def values(Nested.User2, :fruit), do: [:apple]
def dump_values(User, :fruit), do: ["apple"]
def dump_values(Nested.User2, :fruit), do: ["apple"]
end
defmodule Maru.Params.OptionTest do
def values(role), do: [values: [:foo, role]]
end
defmodule Ma... | 30.440141 | 94 | 0.518566 |
08e6cda84758df98dc83f18bfe17d9058d3cf0ff | 14,010 | ex | Elixir | lib/aws/ecr.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/ecr.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/ecr.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.ECR do
@moduledoc """
Amazon Elastic Container Registry
Amazon Elastic Container Registry (Amazon ECR) is a managed container image
registry service. Customers can use the familiar Docker... | 36.295337 | 103 | 0.718844 |
08e6cdad7300f5bfcdbe6267f74f045d28be0d38 | 897 | ex | Elixir | lib/mix/tasks/google_apis.format.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | lib/mix/tasks/google_apis.format.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | lib/mix/tasks/google_apis.format.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.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 writing, ... | 29.9 | 75 | 0.740245 |
08e6fd72ecb1515f6a552b1c06388c066a98fed2 | 87,531 | ex | Elixir | apps/neo_node/test/support/http_poison_wrapper.ex | ephdtrg/neo-scan | 100966b6dd10476b9162d01a782e30a8ceb7a88a | [
"MIT"
] | 1 | 2019-12-16T17:21:21.000Z | 2019-12-16T17:21:21.000Z | apps/neo_node/test/support/http_poison_wrapper.ex | ephdtrg/neo-scan | 100966b6dd10476b9162d01a782e30a8ceb7a88a | [
"MIT"
] | null | null | null | apps/neo_node/test/support/http_poison_wrapper.ex | ephdtrg/neo-scan | 100966b6dd10476b9162d01a782e30a8ceb7a88a | [
"MIT"
] | null | null | null | defmodule NeoNode.HTTPPoisonWrapper do
@moduledoc false
@unknown_block %{
code: -100,
message: "Unknown block"
}
@block0 %{
"confirmations" => 2_326_310,
"hash" => "0xd42561e3d30e15be6400b6df2f328e02d2bf6354c41dce433bc57687c82144bf",
"index" => 0,
"merkleroot" => "0x803ff4abe3ea6533bcc... | 37.599227 | 1,368 | 0.602267 |
08e7194468ad595c4869d632b3887905b73be103 | 13,794 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/floodlight_configurations.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/floodlight_configurations.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/floodlight_configurations.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.183486 | 196 | 0.62056 |
08e72d2ce0d725d5ed5d46212354ebb7008b33bc | 66 | ex | Elixir | apps/api_web/lib/api_web/views/admin/session/session_view.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_web/lib/api_web/views/admin/session/session_view.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_web/lib/api_web/views/admin/session/session_view.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiWeb.Admin.SessionView do
use ApiWeb.Web, :view
end
| 16.5 | 37 | 0.787879 |
08e72d738512b00839e387dd25c72622a41c8135 | 528 | exs | Elixir | apps/mishka_database/priv/repo/migrations/20210330132407_blog_likes.exs | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_database/priv/repo/migrations/20210330132407_blog_likes.exs | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_database/priv/repo/migrations/20210330132407_blog_likes.exs | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaDatabase.Repo.Migrations.BlogLikes do
use Ecto.Migration
def change do
create table(:blog_likes, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:post_id, references(:blog_posts, on_delete: :nothing, type: :uuid))
add(:user_id, references(:users, on_delete: :not... | 25.142857 | 78 | 0.659091 |
08e73020d92ee4210cf677689edf115ed942bb4f | 441 | exs | Elixir | test/elixir_keeb_ui_web/views/error_view_test.exs | amalbuquerque/elixir_keeb_ui | d203ccc128547668febd13a35d9472e5b4b3151a | [
"MIT"
] | 3 | 2020-07-07T15:57:55.000Z | 2021-08-12T05:09:38.000Z | test/elixir_keeb_ui_web/views/error_view_test.exs | amalbuquerque/elixir_keeb_ui | d203ccc128547668febd13a35d9472e5b4b3151a | [
"MIT"
] | 3 | 2020-09-28T20:53:30.000Z | 2021-08-31T20:41:04.000Z | test/elixir_keeb_ui_web/views/error_view_test.exs | amalbuquerque/elixir_keeb_ui | d203ccc128547668febd13a35d9472e5b4b3151a | [
"MIT"
] | 1 | 2021-07-16T13:49:09.000Z | 2021-07-16T13:49:09.000Z | defmodule ElixirKeeb.UIWeb.ErrorViewTest do
use ElixirKeeb.UIWeb.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(ElixirKeeb.UIWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 5... | 29.4 | 98 | 0.739229 |
08e74f198117378264a37a07cc79a952bb0e01ea | 2,514 | exs | Elixir | test/jap_haji_web/controllers/verb_controller_test.exs | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | 1 | 2017-11-27T07:11:27.000Z | 2017-11-27T07:11:27.000Z | test/jap_haji_web/controllers/verb_controller_test.exs | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | null | null | null | test/jap_haji_web/controllers/verb_controller_test.exs | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | null | null | null | defmodule JapHajiWeb.VerbControllerTest do
use JapHajiWeb.ConnCase
alias JapHaji.API
alias JapHaji.API.Verb
@create_attrs %{kumi: "ichidan", midashi: "食べる", yomi: "たべる"}
@update_attrs %{kumi: "ichidan", midashi: "食べる", yomi: "たべる"}
@invalid_attrs %{kumi: nil, midashi: nil, yomi: nil}
def fixture(:v... | 28.568182 | 88 | 0.593079 |
08e76383fcc792a9c710d48aa48efe4b0455c95e | 259 | ex | Elixir | lib/boss_first_task.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | 1 | 2018-10-11T06:58:02.000Z | 2018-10-11T06:58:02.000Z | lib/boss_first_task.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | null | null | null | lib/boss_first_task.ex | inaka/beam_olympics-solver | a32fa18a4a7e03900b7274c4a0c4e8b82f1a9768 | [
"Apache-2.0"
] | null | null | null | defmodule BossFirstTask do
@moduledoc """
Solver for bo_first_task
"""
@doc """
Solves the task requirement
"""
def solve do
Boss.submit &solution/1
end
@doc """
Solution for bo_first_task
"""
def solution(x) do
x
end
end
| 12.333333 | 29 | 0.625483 |
08e764952ae837a6a8ff1e795e1f65ab7e3711d9 | 548 | ex | Elixir | lib/tzdata/tzdata_app.ex | DefactoSoftware/tzdata | 60cf09cf924e34dac6ce332283cc39182e771c5f | [
"MIT"
] | 245 | 2015-02-26T10:04:32.000Z | 2022-02-18T04:22:02.000Z | lib/tzdata/tzdata_app.ex | DefactoSoftware/tzdata | 60cf09cf924e34dac6ce332283cc39182e771c5f | [
"MIT"
] | 104 | 2015-06-26T17:35:15.000Z | 2022-03-20T00:07:06.000Z | lib/tzdata/tzdata_app.ex | DefactoSoftware/tzdata | 60cf09cf924e34dac6ce332283cc39182e771c5f | [
"MIT"
] | 78 | 2015-05-16T15:22:59.000Z | 2022-03-13T09:43:50.000Z | defmodule Tzdata.App do
@moduledoc false
use Application
def start(_type, _args) do
children = [Tzdata.EtsHolder]
children = case Application.fetch_env(:tzdata, :autoupdate) do
{:ok, :enabled} -> children ++ [Tzdata.ReleaseUpdater]
{:ok, :disabled} -> children
end
{:ok, pid} = Super... | 26.095238 | 91 | 0.671533 |
08e77899607ae1d4bdec9351b68a59c92fd1618b | 1,647 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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... | 38.302326 | 381 | 0.750455 |
08e7919d7736a994ab1f986ceaa3792f7c14cce3 | 1,406 | ex | Elixir | lib/blockfrost/response/cardano/pools/specific_stake_pool_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | lib/blockfrost/response/cardano/pools/specific_stake_pool_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | lib/blockfrost/response/cardano/pools/specific_stake_pool_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.Response.SpecificStakePoolResponse do
use Blockfrost.Response.BaseSchema
@type t :: %__MODULE__{
pool_id: String.t(),
hex: String.t(),
vrf_key: String.t(),
blocks_minted: integer(),
live_stake: String.t(),
live_size: float(),
... | 30.565217 | 58 | 0.601707 |
08e7a92bccd9d9e5e50d6f322d66d83ee066d931 | 63 | ex | Elixir | lib/jap_haji_web/views/layout_view.ex | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | 1 | 2017-11-27T07:11:27.000Z | 2017-11-27T07:11:27.000Z | lib/jap_haji_web/views/layout_view.ex | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | null | null | null | lib/jap_haji_web/views/layout_view.ex | swarut/jap-haji | 04211ff56add0cbe6e7e09e4b41baa3771125f82 | [
"Apache-2.0"
] | null | null | null | defmodule JapHajiWeb.LayoutView do
use JapHajiWeb, :view
end
| 15.75 | 34 | 0.809524 |
08e7aca6be9cdea4d0c01e2b4f152fc92ceeb5e5 | 987 | exs | Elixir | mix.exs | damonvjanis/telnyx | 917eea167164040c531127c993fda967ec070e5a | [
"MIT"
] | 4 | 2020-10-16T13:27:11.000Z | 2021-02-07T01:45:43.000Z | mix.exs | damonvjanis/telnyx | 917eea167164040c531127c993fda967ec070e5a | [
"MIT"
] | null | null | null | mix.exs | damonvjanis/telnyx | 917eea167164040c531127c993fda967ec070e5a | [
"MIT"
] | null | null | null | defmodule Telnyx.MixProject do
use Mix.Project
def project do
[
app: :telnyx,
version: "0.3.0",
elixir: "~> 1.7",
description: "Telnyx API Elixir Client",
source_url: "https://github.com/damonvjanis/telnyx",
package: package(),
start_permanent: Mix.env() == :prod,
... | 21 | 80 | 0.54002 |
08e7b5a40e24a6df7010fa7ebca4734fd935418d | 152 | ex | Elixir | test/support/s/image.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 100 | 2015-12-25T12:38:41.000Z | 2021-12-31T11:41:20.000Z | test/support/s/image.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 62 | 2015-12-26T01:43:54.000Z | 2019-09-15T16:16:35.000Z | test/support/s/image.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 22 | 2016-04-19T11:54:38.000Z | 2021-09-29T14:48:46.000Z | defmodule Exfile.S.Image do
use Ecto.Schema
schema "images" do
field :image, Exfile.Ecto.File
field :image_content_type, :string
end
end
| 16.888889 | 38 | 0.717105 |
08e7cf5104b3e712057efc3c5081e470c1b0aa26 | 3,835 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/backup.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/backup.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/spanner/lib/google_api/spanner/v1/model/backup.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... | 59 | 550 | 0.726728 |
08e7f652b7bb5bcad0e3feab8628a7ba6752107e | 1,060 | ex | Elixir | apps/blockchain/lib/blockchain/application.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/blockchain/lib/blockchain/application.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/blockchain/lib/blockchain/application.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule Blockchain.Application do
@moduledoc false
use Application
require Logger
def start(_type, _args) do
import Supervisor.Spec, warn: false
if breakpoint_address_hex = System.get_env("BREAKPOINT") do
case Base.decode16(breakpoint_address_hex, case: :mixed) do
{:ok, breakpoint_add... | 28.648649 | 86 | 0.65283 |
08e80136d73432f27dc84e894c2d19b1b5ef6f02 | 539 | exs | Elixir | test/cache_test.exs | erikvullings/json-service | c920346e503e05d98e20b17283d43037c6202d7f | [
"MIT"
] | null | null | null | test/cache_test.exs | erikvullings/json-service | c920346e503e05d98e20b17283d43037c6202d7f | [
"MIT"
] | null | null | null | test/cache_test.exs | erikvullings/json-service | c920346e503e05d98e20b17283d43037c6202d7f | [
"MIT"
] | null | null | null | defmodule JsonService.CacheTest do
use ExUnit.Case
alias JsonService.Cache
setup do
list = %{name: "Home", items: []}
Cache.save(list)
{:ok, list: list}
end
test ".save adds a list to the ETS table" do
info = :ets.info(Cache)
assert info[:size] == 1
end
test ".find gets a list out... | 20.730769 | 75 | 0.643785 |
08e80c5392b8a6d38fa72c51c1ca62d7bc9ee02f | 1,082 | exs | Elixir | apps/andi/runtime.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 1 | 2020-03-18T21:14:39.000Z | 2020-03-18T21:14:39.000Z | apps/andi/runtime.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | apps/andi/runtime.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
kafka_brokers = System.get_env("KAFKA_BROKERS")
live_view_salt = System.get_env("LIVEVIEW_SALT")
get_redix_args = fn host, password ->
[host: host, password: password]
|> Enum.filter(fn
{_, nil} -> false
{_, ""} -> false
_ -> true
end)
end
redix_args = get_redix_args.(System.get_env(... | 23.021277 | 92 | 0.643253 |
08e81a231eb73313f496957d0b7d5d4d96461b72 | 2,124 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/subnetwork_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/subnetwork_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/subnetwork_list_warning.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... | 40.075472 | 241 | 0.719868 |
08e8291277298bc3c7a936b05a8c2e5af45a086b | 4,336 | ex | Elixir | lib/uploadcare_ex.ex | EevanW/uploadcare_ex | a9ad604285a9abb517420a1fec7b5c589ab9417a | [
"MIT"
] | 1 | 2021-08-08T23:32:18.000Z | 2021-08-08T23:32:18.000Z | lib/uploadcare_ex.ex | EevanW/uploadcare_ex | a9ad604285a9abb517420a1fec7b5c589ab9417a | [
"MIT"
] | null | null | null | lib/uploadcare_ex.ex | EevanW/uploadcare_ex | a9ad604285a9abb517420a1fec7b5c589ab9417a | [
"MIT"
] | null | null | null | defmodule UploadcareEx do
alias UploadcareEx.Request
alias UploadcareEx.API.Behaviour, as: ApiBehaviour
alias UploadcareEx.API.Upload, as: UploadApi
alias UploadcareEx.API.Files, as: FilesApi
@behaviour ApiBehaviour
@type response :: %{status_code: number(), body: map() | binary()}
@moduledoc """
Elix... | 29.100671 | 130 | 0.620618 |
08e82930e9b9b5190fbc58fb742c62c4ff439ef6 | 2,676 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_export_data_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_export_data_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_export_data_request.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... | 39.940299 | 303 | 0.741779 |
08e83d949a017403a4164c157c77328f750b9727 | 516 | exs | Elixir | test/ecto/integration/uuid_test.exs | fasib/ecto_sqlite3 | 3ef1bf4d2a93fe07ea2571fb24dc7b6e320cf4cf | [
"MIT"
] | null | null | null | test/ecto/integration/uuid_test.exs | fasib/ecto_sqlite3 | 3ef1bf4d2a93fe07ea2571fb24dc7b6e320cf4cf | [
"MIT"
] | null | null | null | test/ecto/integration/uuid_test.exs | fasib/ecto_sqlite3 | 3ef1bf4d2a93fe07ea2571fb24dc7b6e320cf4cf | [
"MIT"
] | null | null | null | defmodule Ecto.Integration.UUIDTest do
use Ecto.Integration.Case
alias Ecto.Integration.TestRepo
alias EctoSQLite3.Integration.Product
test "handles uuid serialization and deserialization" do
external_id = Ecto.UUID.generate()
product = TestRepo.insert!(%Product{name: "Pupper Beer", external_id: exter... | 27.157895 | 87 | 0.753876 |
08e860c7230e2d28232771edec1402e784952510 | 874 | ex | Elixir | clients/chat/lib/google_api/chat/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # 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... | 32.37037 | 74 | 0.756293 |
08e863e2867620b9f365f0569b0570c04b9cea79 | 19,726 | ex | Elixir | clients/content/lib/google_api/content/v2/api/datafeeds.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/datafeeds.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/api/datafeeds.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.149573 | 174 | 0.672412 |
08e8680d08da3895b24c7ab822c701207bbd9b33 | 312 | exs | Elixir | test/mipha_web/controllers/page_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | test/mipha_web/controllers/page_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | test/mipha_web/controllers/page_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule MiphaWeb.PageControllerTest do
use MiphaWeb.ConnCase
test "GET /", %{conn: conn} do
t1 = insert(:topic)
t2 = insert(:topic)
conn = get(conn, topic_path(conn, :index))
assert conn.status == 200
assert conn.resp_body =~ t1.title
assert conn.resp_body =~ t2.title
end
end
| 20.8 | 46 | 0.660256 |
08e86ea47002c5eba3bed0b1ebb2975dbcac6a46 | 92 | ex | Elixir | lib/changelog/slack/response.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog/slack/response.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | lib/changelog/slack/response.ex | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Changelog.Slack.Response do
defstruct response_type: "in_channel", text: ""
end
| 23 | 49 | 0.782609 |
08e86ec022f42848df83a3d6f5b40f83034d8348 | 1,212 | ex | Elixir | web/router.ex | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | web/router.ex | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | web/router.ex | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | defmodule TrainWhistle.Router do
use TrainWhistle.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json", "json-api"]
plug Guardian.Plug.... | 25.25 | 80 | 0.684818 |
08e887a1071edf0e75ca72f8da868faa362e0f7a | 242 | exs | Elixir | misc-stuff/with.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | misc-stuff/with.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | misc-stuff/with.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | result =
with {:ok, file} = File.open("/etc/passwd"),
content = IO.read(file, :all),
:ok = File.close(file),
[_, uid, gid] = Regex.run(~r/^_app.*?:(\d+):(\d+)/m, content) do
"#{uid} : #{gid}"
end
IO.puts(result)
| 24.2 | 71 | 0.5 |
08e88c6f69ceb0e392919b0ac61f2c2c5c573753 | 3,129 | ex | Elixir | lib/procore/resources/vendors.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-01T01:34:16.000Z | 2020-08-31T15:15:08.000Z | lib/procore/resources/vendors.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-03T03:01:48.000Z | 2021-06-08T18:39:40.000Z | lib/procore/resources/vendors.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 3 | 2018-08-12T03:51:52.000Z | 2020-02-27T14:29:14.000Z | defmodule Procore.Resources.Vendors do
@moduledoc """
Available actions for the vendor resource.
"""
alias Procore.ErrorResult
alias Procore.Request
alias Procore.Resources.Vendors.ResponseBodyTypes
alias Procore.ResponseResult
@doc """
Lists all vendors in a company directory.
"""
@spec list(Te... | 33.645161 | 90 | 0.621604 |
08e8c4cf24d2f838fdb9977e52875d85d3a0b3b4 | 2,187 | exs | Elixir | test/mongoose_push_application_test.exs | rslota/MongoosePush | ae7ca89f0f53d7564a2d69c75bd97f0f68d1e2e5 | [
"Apache-2.0"
] | null | null | null | test/mongoose_push_application_test.exs | rslota/MongoosePush | ae7ca89f0f53d7564a2d69c75bd97f0f68d1e2e5 | [
"Apache-2.0"
] | null | null | null | test/mongoose_push_application_test.exs | rslota/MongoosePush | ae7ca89f0f53d7564a2d69c75bd97f0f68d1e2e5 | [
"Apache-2.0"
] | null | null | null | defmodule MongoosePushApplicationTest do
use ExUnit.Case
import MongoosePush.Application
import MongoosePush.Pools
doctest MongoosePush.Application
setup do
# Validate config/text.exs that is need for this test suite
apns_pools = Keyword.keys(Application.get_env(:mongoose_push, :apns))
[:dev1, :d... | 38.368421 | 74 | 0.705075 |
08e9042e1653b059c628c7c82d89632c6abe9069 | 5,333 | ex | Elixir | lib/eview/helpers/changeset_validations_parser.ex | imax-iva/eview | c9cc7eda9a55101a996113fa31adbf809f801648 | [
"MIT"
] | null | null | null | lib/eview/helpers/changeset_validations_parser.ex | imax-iva/eview | c9cc7eda9a55101a996113fa31adbf809f801648 | [
"MIT"
] | null | null | null | lib/eview/helpers/changeset_validations_parser.ex | imax-iva/eview | c9cc7eda9a55101a996113fa31adbf809f801648 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Ecto) do
defmodule EView.Helpers.ChangesetValidationsParser do
@moduledoc false
# This module converts changeset to a error structure described in API Manifest.
@entry_type "json_data_property"
@jsonpath_root "$"
@jsonpath_joiner "."
def changeset_to_rules(%Ecto.Change... | 31.744048 | 112 | 0.590287 |
08e97035a0806230b31fe36d846148fff8d46311 | 3,455 | ex | Elixir | lib/lob/client.ex | pdgonzalez872/lob-elixir | 4b4b24f267144b15ab1cb19e37eb861ff2a1acc0 | [
"MIT"
] | 11 | 2018-02-07T17:59:17.000Z | 2021-11-21T14:11:15.000Z | lib/lob/client.ex | pdgonzalez872/lob-elixir | 4b4b24f267144b15ab1cb19e37eb861ff2a1acc0 | [
"MIT"
] | 34 | 2018-02-13T19:59:27.000Z | 2022-03-02T19:50:41.000Z | lib/lob/client.ex | pdgonzalez872/lob-elixir | 4b4b24f267144b15ab1cb19e37eb861ff2a1acc0 | [
"MIT"
] | 8 | 2019-01-30T00:39:36.000Z | 2022-03-01T15:32:17.000Z | defmodule Lob.Client do
@moduledoc """
Client responsible for making requests to Lob and handling the responses.
"""
alias HTTPoison.Error
alias Poison.Parser
use HTTPoison.Base
@client_version Mix.Project.config[:version]
@type client_response :: {:ok, map, list} | {:error, any}
defmodule Missin... | 28.089431 | 105 | 0.614472 |
08e98394e05cbc74a429226744a4f529d196bb5d | 1,437 | ex | Elixir | lib/club/application.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | lib/club/application.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | lib/club/application.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.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
Club.ReadRepo,
... | 25.210526 | 63 | 0.682672 |
08e9a49c6ccafa3964b93d46c3f0b040c963f5fe | 69 | exs | Elixir | test/test_helper.exs | alejandronanez/phoenix-absinthe-auth-template | e4e72f52247cb4c880ddc058beaa7b5eecb68980 | [
"MIT"
] | 8 | 2020-06-25T03:15:06.000Z | 2021-12-10T10:52:26.000Z | test/test_helper.exs | alejandronanez/phoenix-absinthe-auth-template | e4e72f52247cb4c880ddc058beaa7b5eecb68980 | [
"MIT"
] | null | null | null | test/test_helper.exs | alejandronanez/phoenix-absinthe-auth-template | e4e72f52247cb4c880ddc058beaa7b5eecb68980 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Ticketo.Repo, :manual)
| 23 | 53 | 0.782609 |
08e9b581c9c4117c1f28506110d3a7f42fd9ec38 | 570 | ex | Elixir | lib/stabby_flies/application.ex | hassanshaikley/ascii-quest | 8b3b3af3b9c6c59b8155fe2e6cb2a794033c29f1 | [
"MIT"
] | 8 | 2019-01-15T09:31:05.000Z | 2020-04-20T13:59:01.000Z | lib/stabby_flies/application.ex | hassanshaikley/ascii-quest | 8b3b3af3b9c6c59b8155fe2e6cb2a794033c29f1 | [
"MIT"
] | 2 | 2019-01-06T02:53:44.000Z | 2019-05-30T20:30:20.000Z | lib/stabby_flies/application.ex | hassanshaikley/ascii-quest | 8b3b3af3b9c6c59b8155fe2e6cb2a794033c29f1 | [
"MIT"
] | 1 | 2019-01-04T04:37:21.000Z | 2019-01-04T04:37:21.000Z | defmodule StabbyFlies.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
StabbyFlies.Repo,
StabbyFliesWeb.Endpoint,
{Registry, [keys: :unique, name: Registry.PlayersServer]},
{StabbyFlies.PlayerSupervisor, []},
{StabbyFlies.GameSupervisor, [... | 23.75 | 65 | 0.696491 |
08ea0c9c3c8d2e4691b1a3c2689c8080b0acd30c | 2,571 | exs | Elixir | mix.exs | Sgoettschkes/168-hours | fd9895b2b3b8fd1dcce0283f03fe46cd0a5c454b | [
"MIT"
] | null | null | null | mix.exs | Sgoettschkes/168-hours | fd9895b2b3b8fd1dcce0283f03fe46cd0a5c454b | [
"MIT"
] | null | null | null | mix.exs | Sgoettschkes/168-hours | fd9895b2b3b8fd1dcce0283f03fe46cd0a5c454b | [
"MIT"
] | null | null | null | defmodule OnehundredsixtyeightHours.MixProject do
use Mix.Project
def project do
[
app: :onehundredsixtyeight_hours,
version: "0.1.0",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
... | 30.607143 | 97 | 0.563205 |
08ea2b189614c17474b49477d226fbe5fb5dc32a | 7,099 | exs | Elixir | .credo.exs | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | .credo.exs | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | .credo.exs | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.166667 | 97 | 0.607409 |
08ea2d2e1b4e1dda235ab7db5125c2b23c9fbc5c | 1,510 | ex | Elixir | web/models/team.ex | digitalronin/ticket-poker | e39ee9975ca0c1a9f06d5ef1ba2b3d22108bd573 | [
"MIT"
] | 4 | 2017-01-03T16:34:07.000Z | 2017-07-12T09:24:03.000Z | web/models/team.ex | digitalronin/ticket-poker | e39ee9975ca0c1a9f06d5ef1ba2b3d22108bd573 | [
"MIT"
] | null | null | null | web/models/team.ex | digitalronin/ticket-poker | e39ee9975ca0c1a9f06d5ef1ba2b3d22108bd573 | [
"MIT"
] | null | null | null | defmodule TicketPoker.Team do
use TicketPoker.Web, :model
@primary_key {:id, :binary_id, autogenerate: true}
schema "teams" do
field :name, :string
field :points, {:array, :integer}
field :points_string, :string, virtual: true
field :coders, {:array, :string}
has_many :tickets, TicketPoker.T... | 23.59375 | 72 | 0.624503 |
08ea7b973cd62dbfc1ad0bd0846e8b8be317802a | 9,254 | ex | Elixir | lib/elixir/unicode/unicode.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/unicode/unicode.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/unicode/unicode.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | # How to update the Unicode files
#
# 1. Update CompositionExclusions.txt by copying original as is
# 2. Update GraphemeBreakProperty.txt by copying original as is
# 3. Update PropList.txt by copying original as is
# 4. Update GraphemeBreakTest.txt by copying original as is
# 5. Update SpecialCasing.txt by removing com... | 28.650155 | 93 | 0.659715 |
08eaa5c6509ba30702975485ab865fff4438ce54 | 2,789 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/update_table_cell_properties_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/slides/lib/google_api/slides/v1/model/update_table_cell_properties_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_table_cell_properties_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 41.014706 | 163 | 0.725708 |
08eaa639af9f89d9546d724a49506fcd003f0e7c | 71 | ex | Elixir | lib/honeystream_web/views/layout_view.ex | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | 6 | 2018-10-27T10:55:41.000Z | 2018-11-06T04:48:33.000Z | lib/honeystream_web/views/layout_view.ex | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | 2 | 2018-10-28T14:18:16.000Z | 2018-10-28T14:18:30.000Z | lib/honeystream_web/views/layout_view.ex | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | null | null | null | defmodule HoneystreamWeb.LayoutView do
use HoneystreamWeb, :view
end
| 17.75 | 38 | 0.830986 |
08eabe68d8aee3b5993dacb217beaa07016cf300 | 1,191 | ex | Elixir | lib/cinemix/endpoint.ex | lucidstack/cinemix | 2bda8ce74052b0492c60ddb7682bed810204c593 | [
"MIT"
] | null | null | null | lib/cinemix/endpoint.ex | lucidstack/cinemix | 2bda8ce74052b0492c60ddb7682bed810204c593 | [
"MIT"
] | null | null | null | lib/cinemix/endpoint.ex | lucidstack/cinemix | 2bda8ce74052b0492c60ddb7682bed810204c593 | [
"MIT"
] | null | null | null | defmodule Cinemix.Endpoint do
use Phoenix.Endpoint, otp_app: :cinemix
socket "/socket", Cinemix.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 27.697674 | 69 | 0.714526 |
08ead66daa05310af8a3a412eff7d05be2aa2cb0 | 3,563 | ex | Elixir | lib/explay/request/auth.ex | sheharyarn/explay | 72a5d1ae131cbbcb277cb47a2e6b5e7cb65d7a75 | [
"MIT"
] | 16 | 2016-10-17T19:58:32.000Z | 2020-04-22T10:33:22.000Z | lib/explay/request/auth.ex | sheharyarn/explay | 72a5d1ae131cbbcb277cb47a2e6b5e7cb65d7a75 | [
"MIT"
] | 2 | 2017-04-12T13:24:09.000Z | 2021-08-29T15:17:14.000Z | lib/explay/request/auth.ex | sheharyarn/explay | 72a5d1ae131cbbcb277cb47a2e6b5e7cb65d7a75 | [
"MIT"
] | 1 | 2017-04-06T15:02:55.000Z | 2017-04-06T15:02:55.000Z | defmodule ExPlay.Request.Auth do
use ExPlay.Request.Base
@moduledoc """
Wrapper module to handle authentication for Google Play user
"""
@doc "Attempts to authenticate the user, returning a new instance with auth_token set"
def authenticate(account) do
response =
account
|> make_auth_requ... | 35.277228 | 173 | 0.62307 |
08ead7deb59dd0e9e4b9487f1b3850a998ba5526 | 3,251 | ex | Elixir | lib/cloudinary/format.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | 1 | 2021-05-23T09:17:44.000Z | 2021-05-23T09:17:44.000Z | lib/cloudinary/format.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | 44 | 2020-05-15T03:36:36.000Z | 2022-03-23T21:39:11.000Z | lib/cloudinary/format.ex | h-ikeda/cloudinary-elixir | 5e70aedb6d1e51839f1e21c49b40293036b99efd | [
"MIT"
] | null | null | null | defmodule Cloudinary.Format do
@moduledoc """
The cloudinary supported formats of images, videos and audios.
## Official documentation
* https://cloudinary.com/documentation/image_transformations#supported_image_formats
* https://cloudinary.com/documentation/video_manipulation_and_delivery#supported_video_for... | 22.734266 | 96 | 0.302061 |
08eae78aeb06d10e7ce0accee187e9591bd964cf | 1,540 | ex | Elixir | test/support/data_case.ex | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | test/support/data_case.ex | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | test/support/data_case.ex | Cadiac/titeenit-backend | 51db7a1f93dc78a769bb309b94b1b893cefdcdc9 | [
"MIT"
] | null | null | null | defmodule Titeenipeli.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 done ... | 29.615385 | 92 | 0.699351 |
08eb0aa60c4328eefa52cf350678a32f8a4f9e45 | 5,413 | ex | Elixir | lib/hpack/context.ex | kiennt/hpack | 6047e69204796c69b789bb9a96689430c92577d4 | [
"MIT"
] | 1 | 2016-03-13T00:03:17.000Z | 2016-03-13T00:03:17.000Z | lib/hpack/context.ex | kiennt/hpack | 6047e69204796c69b789bb9a96689430c92577d4 | [
"MIT"
] | null | null | null | lib/hpack/context.ex | kiennt/hpack | 6047e69204796c69b789bb9a96689430c92577d4 | [
"MIT"
] | null | null | null | defmodule HPACK.Context do
defstruct max_size: 4096, table: [], size: 0, encode: :incremental, huffman: true
@static_table [
{1, ":authority", ""},
{2, ":method", "GET"},
{3, ":method", "POST"},
{4, ":path", "/"},
{5, ":path", "/index.html"},
{6, ":scheme", "http"},
{7, ":scheme", "http... | 28.946524 | 103 | 0.551635 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.