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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79319e99f1e3eff1291d4a41f6d13f9a571807d2 | 1,713 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/delete_footer_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/delete_footer_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/delete_footer_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... | 36.446809 | 406 | 0.747227 |
7931acc9c846e5f76c6c2c6ba94273d8b5eaeddf | 2,114 | exs | Elixir | test/lib/code_corps/analytics/segment_traits_builder_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/analytics/segment_traits_builder_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/analytics/segment_traits_builder_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Analytics.SegmentTraitsBuilderTest do
@moduledoc false
use CodeCorps.DbAccessCase
alias CodeCorps.Analytics.SegmentTraitsBuilder
describe "build/1" do
# NOTE: These tests only make sure there's a function clause for each
# supported struct and do not assert the traits content. Si... | 40.653846 | 81 | 0.727058 |
7931cf622f4c8fd609aad84a7bc99b41a4a56a37 | 874 | ex | Elixir | lib/tanegashima/user.ex | massn/Tanegashima | d7a473500dfccf6e15f89848f22e4194b87108cb | [
"MIT"
] | 4 | 2016-02-17T13:15:51.000Z | 2017-04-29T16:12:55.000Z | lib/tanegashima/user.ex | massn/Tanegashima | d7a473500dfccf6e15f89848f22e4194b87108cb | [
"MIT"
] | 1 | 2017-05-25T06:55:18.000Z | 2021-02-27T21:03:15.000Z | lib/tanegashima/user.ex | massn/Tanegashima | d7a473500dfccf6e15f89848f22e4194b87108cb | [
"MIT"
] | 1 | 2017-04-29T16:12:56.000Z | 2017-04-29T16:12:56.000Z | defmodule Tanegashima.User do
@moduledoc"""
Elixir wrapper for Pushbullet-User-API.
"""
defstruct [:active, :created, :email, :email_normalized, :iden, :image_url, :max_upload_size,
:modified, :name, :referred_count, :referrer_iden]
@type t :: %__MODULE__{}
@user_api "https://api.pushbullet.... | 32.37037 | 95 | 0.636156 |
7931d29530e1b6cfd32d0b376d43927b0e7774b7 | 199 | exs | Elixir | chatourius/test/controllers/page_controller_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | chatourius/test/controllers/page_controller_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | chatourius/test/controllers/page_controller_test.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | defmodule Chatourius.PageControllerTest do
use Chatourius.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.111111 | 60 | 0.683417 |
7931f24657287631b15756c77d648482f7b9211c | 4,040 | exs | Elixir | apps/ewallet_db/test/ewallet_db/user_backup_code_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/test/ewallet_db/user_backup_code_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/test/ewallet_db/user_backup_code_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-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 ... | 35.130435 | 136 | 0.690842 |
7931fd8fe50f006a518d19a32dad83a2557942d1 | 3,612 | ex | Elixir | lib/helper.ex | heywhy/elixir-request-validator | 928094c9eed3808844b3cc0bfca445148a6df710 | [
"MIT"
] | 2 | 2020-10-07T05:23:37.000Z | 2022-01-11T05:44:12.000Z | lib/helper.ex | heywhy/elixir-request-validator | 928094c9eed3808844b3cc0bfca445148a6df710 | [
"MIT"
] | null | null | null | lib/helper.ex | heywhy/elixir-request-validator | 928094c9eed3808844b3cc0bfca445148a6df710 | [
"MIT"
] | 1 | 2020-10-04T03:55:42.000Z | 2020-10-04T03:55:42.000Z | defmodule Request.Validator.Helper do
alias Request.Validator.Rules.Map_
@doc """
A wrapper around the `{:in_list, options}` rule.
iex> Request.Validator.Helper.in_list(["male", "female"])
{:in_list, ~w[male female]}
iex> Request.Validator.Helper.in_list(~w[tech law finance])
{:in_list, ["tech", "law", ... | 28.896 | 97 | 0.643411 |
7931fe003a4bcb12c753738754aa850c0619ad3f | 1,799 | ex | Elixir | lib/files_sorted_by_sizes.ex | innaky/files_sorted_by_sizes | 9f4db07e273886a502944d1cca4db2d12ed02e48 | [
"MIT"
] | null | null | null | lib/files_sorted_by_sizes.ex | innaky/files_sorted_by_sizes | 9f4db07e273886a502944d1cca4db2d12ed02e48 | [
"MIT"
] | 1 | 2020-06-24T02:33:19.000Z | 2020-06-24T02:33:19.000Z | lib/files_sorted_by_sizes.ex | innaky/files_sorted_by_sizes | 9f4db07e273886a502944d1cca4db2d12ed02e48 | [
"MIT"
] | null | null | null | defmodule FilesSortedBySizes do
@moduledoc """
Return a list of list with filenames of a directory sorted by size.
"""
@doc """
List greater Directory. Return a list of list with filenames of a directory sorted by size.
But is functional only with a file directory.
## Examples
iex> FilesSortedByS... | 22.772152 | 93 | 0.645914 |
79324202145c52f493364155a80a5eaf75b1f06f | 71 | ex | Elixir | test/support/function_int.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 16 | 2016-02-12T15:15:58.000Z | 2021-08-24T21:48:34.000Z | test/support/function_int.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 1 | 2016-02-17T04:58:38.000Z | 2016-02-17T04:58:38.000Z | test/support/function_int.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 2 | 2016-02-17T03:21:23.000Z | 2016-03-08T09:23:27.000Z | defmodule TestFunctionInt do
def hello() do
IO.puts(1)
end
end
| 11.833333 | 28 | 0.690141 |
79326389d9693d8b482fc97dac52f43dd41c010d | 1,181 | ex | Elixir | clients/policy_simulator/lib/google_api/policy_simulator/v1/connection.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/connection.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/connection.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... | 35.787879 | 114 | 0.744285 |
793268554fdef2ea89cde2abd392cbe311edd03c | 1,580 | exs | Elixir | test/rendering/wrapped_attributes_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 312 | 2015-12-28T05:25:47.000Z | 2022-02-16T05:18:16.000Z | test/rendering/wrapped_attributes_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 105 | 2015-12-27T21:20:58.000Z | 2022-02-24T05:23:38.000Z | test/rendering/wrapped_attributes_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 45 | 2016-01-12T04:02:01.000Z | 2021-09-14T16:19:18.000Z | defmodule RenderWrappedAttributesTest do
use ExUnit.Case, async: true
import Slime, only: [render: 1, render: 2]
test "rendering of boolean attributes" do
assert render(~s(div [ab="ab" a] a)) == ~s(<div a ab="ab">a</div>)
assert render(~s(div [a b="b"] c)) == ~s(<div a b="b">c</div>)
assert render(~... | 36.744186 | 110 | 0.584177 |
79327d6294b9c2ec9056a1b93b335dce9fbbc98f | 1,270 | ex | Elixir | lib/rocketseat_nlw_heat_impulse_elixir_web/router.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | lib/rocketseat_nlw_heat_impulse_elixir_web/router.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | lib/rocketseat_nlw_heat_impulse_elixir_web/router.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | defmodule RocketseatNlwHeatImpulseElixirWeb.Router do
use RocketseatNlwHeatImpulseElixirWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", RocketseatNlwHeatImpulseElixirWeb do
pipe_through :api
post "/message", MessagesController, :create
end
# Enables LiveDashboard only... | 30.238095 | 87 | 0.729134 |
793287b829b003c7689bde96a2fec31f4dce55ce | 21,886 | ex | Elixir | lib/ex_unit/lib/ex_unit/case.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/case.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/case.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.DuplicateTestError do
defexception [:message]
end
defmodule ExUnit.DuplicateDescribeError do
defexception [:message]
end
defmodule ExUnit.Case do
@moduledoc """
Helpers for defining test cases.
This module must be used in other modules as a way to configure
and prepare them for testing.
... | 30.229282 | 103 | 0.66723 |
7932923663f6fd09892c729f69ed87fdbbaf12e5 | 99 | exs | Elixir | auth/test/views/layout_view_test.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 274 | 2017-08-25T06:39:51.000Z | 2022-03-15T21:03:27.000Z | auth/test/views/layout_view_test.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 15 | 2017-10-03T17:05:48.000Z | 2021-11-23T00:33:23.000Z | auth/test/views/layout_view_test.exs | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 42 | 2017-08-28T20:08:47.000Z | 2022-01-18T07:51:02.000Z | defmodule GoogleOAuth2Example.LayoutViewTest do
use GoogleOAuth2Example.ConnCase, async: true
end | 33 | 47 | 0.868687 |
7932b90761b146b01f2d0069551b60a87483870a | 1,549 | exs | Elixir | test/references_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | test/references_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | null | null | null | test/references_test.exs | sandisk/tentacat | 523791d47d8454e87dc75cf77181b1fc78c125cf | [
"MIT"
] | 1 | 2018-11-02T15:59:28.000Z | 2018-11-02T15:59:28.000Z | defmodule Tentacat.ReferencesTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.References
doctest Tentacat.References
@client Tentacat.Client.new(%{access_token: "8e663c8614ced27c09b963f806ac46776a29db50"})
setup_all do
HTTPoison.start()
end
tes... | 24.983871 | 97 | 0.635249 |
7932df4bda555b66e138a951a896d2a44322adc5 | 10,075 | ex | Elixir | lib/phoenix/channel/server.ex | keichan34/phoenix | e0e5284c6e9910743a0fdef7251d461fd06d4d5e | [
"MIT"
] | null | null | null | lib/phoenix/channel/server.ex | keichan34/phoenix | e0e5284c6e9910743a0fdef7251d461fd06d4d5e | [
"MIT"
] | null | null | null | lib/phoenix/channel/server.ex | keichan34/phoenix | e0e5284c6e9910743a0fdef7251d461fd06d4d5e | [
"MIT"
] | null | null | null | defmodule Phoenix.Channel.Server do
use GenServer
require Logger
alias Phoenix.PubSub
alias Phoenix.Socket
alias Phoenix.Socket.Broadcast
alias Phoenix.Socket.Message
alias Phoenix.Socket.Reply
@moduledoc false
## Transport API
@doc """
Joins the channel in socket with authentication payload.
... | 27.377717 | 124 | 0.619355 |
7932e4595610c26627b9458ac93dd7575960ea3d | 1,565 | ex | Elixir | test/support/repo_case.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | test/support/repo_case.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | test/support/repo_case.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | defmodule Incident.RepoCase 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,
it cannot be async. For this reason, every tes... | 27.946429 | 77 | 0.704792 |
793307ade2e0af490f0244f0c5ac371e4faad020 | 163 | ex | Elixir | exercises/lists/reduce.ex | v6/elixir-workshop | 93d8a7e52671d7f9a9135ad41864b21c58d4cda2 | [
"MIT"
] | null | null | null | exercises/lists/reduce.ex | v6/elixir-workshop | 93d8a7e52671d7f9a9135ad41864b21c58d4cda2 | [
"MIT"
] | null | null | null | exercises/lists/reduce.ex | v6/elixir-workshop | 93d8a7e52671d7f9a9135ad41864b21c58d4cda2 | [
"MIT"
] | 1 | 2020-08-19T23:09:15.000Z | 2020-08-19T23:09:15.000Z | defmodule MyList do
def reduce([], value, _) do
value
end
def reduce([head | tail], value, func) do
reduce(tail, func.(head, value), func)
end
end
| 18.111111 | 43 | 0.631902 |
7933136ae1eb3770ac156ed6b7adb5d60af41693 | 210 | exs | Elixir | priv/repo/migrations/20200611220612_add_test_result_id_to_abouts.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | priv/repo/migrations/20200611220612_add_test_result_id_to_abouts.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200611220612_add_test_result_id_to_abouts.exs | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETL.Repo.Migrations.AddTestResultIdToAbouts do
use Ecto.Migration
def change do
alter table(:abouts) do
add :test_result_id, references(:test_results), null: false
end
end
end
| 21 | 65 | 0.742857 |
7933241d80559421937a3a2b64cea11aeb41bc23 | 6,849 | exs | Elixir | test/ecto/model/schema_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | 1 | 2016-08-15T21:23:28.000Z | 2016-08-15T21:23:28.000Z | test/ecto/model/schema_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | test/ecto/model/schema_test.exs | yrashk/ecto | 1462d5ad4cbb7bf74c292ec405852bc196808daf | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Model.SchemaTest do
use ExUnit.Case, async: true
defmodule User do
use Ecto.Model
schema "users" do
# Type defaults to string
field :name
end
end
defmodule Comment do
defstruct []
end
defmodule DefaultUser do
@schema_defaults primary_key: {:uuid, :string, [... | 28.185185 | 100 | 0.641846 |
793347d737590ea6a0ee0329669c4de552f51c78 | 16,617 | exs | Elixir | lib/mix/test/mix/tasks/release_test.exs | steven-solomon/elixir | ee83248b8dd78ad67ef1282efc791006e8712d9e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/release_test.exs | steven-solomon/elixir | ee83248b8dd78ad67ef1282efc791006e8712d9e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/release_test.exs | steven-solomon/elixir | ee83248b8dd78ad67ef1282efc791006e8712d9e | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.ReleaseTest do
use MixTest.Case
@erts_version :erlang.system_info(:version)
@hostname :inet_db.gethostname()
defmacrop release_node(name), do: :"#{name}@#{@hostname}"
describe "customize" do
test "rel with eex" do
in_fixture... | 38.376443 | 97 | 0.566649 |
79334cae67056795f12041695cfa0789371f7d65 | 421 | ex | Elixir | lib/ex_pwned/utils.ex | techgaun/ex_pwned | 776dc6638aaa17b0e2c11afee6295054b87aeffd | [
"Apache-2.0"
] | 18 | 2017-03-04T11:35:34.000Z | 2020-04-29T22:24:26.000Z | lib/ex_pwned/utils.ex | techgaun/ex_pwned | 776dc6638aaa17b0e2c11afee6295054b87aeffd | [
"Apache-2.0"
] | 11 | 2018-05-16T04:36:57.000Z | 2020-04-07T19:47:40.000Z | lib/ex_pwned/utils.ex | techgaun/ex_pwned | 776dc6638aaa17b0e2c11afee6295054b87aeffd | [
"Apache-2.0"
] | 8 | 2018-05-16T18:15:51.000Z | 2020-06-23T16:58:52.000Z | defmodule ExPwned.Utils do
@moduledoc """
Collection of helper functions for ExPwned
"""
def ua,
do: {"User-Agent", Application.get_env(:ex_pwned, :user_agent) || "ExPwned Elixir Client"}
def api_version, do: {"api-version", 2}
def headers, do: [ua(), api_version()]
def base_url, do: "https://haveib... | 30.071429 | 94 | 0.695962 |
793399e9ee7b7adfce41800d896948dab886b3ea | 2,187 | ex | Elixir | web/models/currency_balance.ex | lexa62/hb | c6b2169ad3e5af546da3f7ad0d499f5d5d29d044 | [
"MIT"
] | null | null | null | web/models/currency_balance.ex | lexa62/hb | c6b2169ad3e5af546da3f7ad0d499f5d5d29d044 | [
"MIT"
] | null | null | null | web/models/currency_balance.ex | lexa62/hb | c6b2169ad3e5af546da3f7ad0d499f5d5d29d044 | [
"MIT"
] | null | null | null | defmodule Hb.CurrencyBalance do
use Hb.Web, :model
alias Hb.{Account, Currency, Repo, Transaction}
schema "currency_balances" do
field :initial_amount, Money.Ecto.Type
field :current_amount, Money.Ecto.Type
belongs_to :account, Account
belongs_to :currency, Currency
timestamps()
end
@d... | 37.067797 | 108 | 0.616827 |
7933e996bf230447202f419c4115a81d09913afe | 402 | ex | Elixir | lib/app_web/auth_error_handler.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | lib/app_web/auth_error_handler.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | lib/app_web/auth_error_handler.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | defmodule AppWeb.AuthErrorHandler do
import Plug.Conn
@behaviour Guardian.Plug.ErrorHandler
@impl Guardian.Plug.ErrorHandler
@spec auth_error(Plug.Conn.t(), {any, any}, any) :: Plug.Conn.t()
def auth_error(conn, {type, _reason}, _opts) do
body = Jason.encode!(%{message: to_string(type)})
conn
|... | 25.125 | 67 | 0.699005 |
7933f96819c8e338db9561a70e69e1de84bae5c1 | 493 | ex | Elixir | lib/bus_kiosk_web/views/error_view.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | 2 | 2020-02-21T15:40:27.000Z | 2020-12-06T21:50:39.000Z | lib/bus_kiosk_web/views/error_view.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | 3 | 2020-02-19T17:06:24.000Z | 2020-04-20T14:33:07.000Z | lib/bus_kiosk_web/views/error_view.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | null | null | null | defmodule BusKioskWeb.ErrorView do
use BusKioskWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template na... | 29 | 61 | 0.736308 |
7933f99c1e837d57b3ebbfdaf437daec0f0311fb | 183 | exs | Elixir | priv/repo/migrations/20190605192812_add_deleted_at_to_teams.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | priv/repo/migrations/20190605192812_add_deleted_at_to_teams.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | priv/repo/migrations/20190605192812_add_deleted_at_to_teams.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Repo.Migrations.AddDeletedAtToTeams do
use Ecto.Migration
def change do
alter table(:teams) do
add(:deleted_at, :utc_datetime)
end
end
end
| 18.3 | 61 | 0.73224 |
79340c0ce97ca6f049ad6e4034b115841f91a3f0 | 2,198 | exs | Elixir | config/prod.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | config/prod.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | config/prod.exs | raincrash/pasteboard | e6b6f027bd18e1e4494c62c8127b89363b7466f5 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.30303 | 67 | 0.716106 |
79346045d6e4a8c0beb48e981fb4750b1c90ea77 | 2,345 | ex | Elixir | lib/j_viewer.ex | mtvch/j-viewer | 54d5a0a8bc6a37a77e94d2b4c5bf9db0c0c6e5a7 | [
"MIT"
] | 1 | 2021-08-05T05:39:00.000Z | 2021-08-05T05:39:00.000Z | lib/j_viewer.ex | mtvch/j-viewer | 54d5a0a8bc6a37a77e94d2b4c5bf9db0c0c6e5a7 | [
"MIT"
] | null | null | null | lib/j_viewer.ex | mtvch/j-viewer | 54d5a0a8bc6a37a77e94d2b4c5bf9db0c0c6e5a7 | [
"MIT"
] | null | null | null | defmodule JViewer do
@moduledoc """
JViewer is an excellent way to declaratively represent elixir data in a JSON encodable format.
"""
alias JViewer.Types.Object
@type schema() :: JViewer.Types.Object.t()
@spec represent(map, schema(), any()) :: map()
@doc """
Represents __data__ in a JSON encodable ... | 23.686869 | 96 | 0.570149 |
79346ad8a25fa24fedde1646c5a93709faae9881 | 900 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/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.333333 | 74 | 0.763333 |
79347b1384739054c7319dd0cd8f9cc8942aa863 | 1,851 | ex | Elixir | lib/liveview_todos/list_aggregate.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | null | null | null | lib/liveview_todos/list_aggregate.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | 2 | 2021-03-09T14:03:26.000Z | 2021-05-10T06:02:53.000Z | lib/liveview_todos/list_aggregate.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | null | null | null | defmodule LiveviewTodos.ListAggregate do
@moduledoc """
"""
@deps %{repo: LiveviewTodos.Repo}
use GenServer, restart: :transient
alias LiveviewTodos.List
alias LiveviewTodos.ListAggregate.State
alias LiveviewTodos.TargetedTopic
alias LiveviewTodos.DomainEvent
require Logger
defmodule State do
... | 23.43038 | 85 | 0.650999 |
7934afc9933a728e0dd345303c39fe82a3f03a3b | 358 | ex | Elixir | lib/ambry/media/media/chapter.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry/media/media/chapter.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry/media/media/chapter.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Media.Media.Chapter do
@moduledoc """
A chapter
"""
use Ecto.Schema
import Ecto.Changeset
@primary_key false
@derive {Jason.Encoder, only: [:time, :title]}
embedded_schema do
field :time, :decimal
field :title, :string
end
def changeset(chapter, attrs) do
cast(chapt... | 15.565217 | 48 | 0.664804 |
7934c8f7c246dbe20b4f92c3dff99e631aec1e57 | 3,664 | exs | Elixir | test/integration/chromium/cdp_session_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 30 | 2021-06-01T16:59:35.000Z | 2022-03-25T16:56:19.000Z | test/integration/chromium/cdp_session_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 35 | 2021-06-10T17:05:31.000Z | 2022-02-11T22:30:36.000Z | test/integration/chromium/cdp_session_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 4 | 2021-08-13T20:38:18.000Z | 2022-01-31T04:32:35.000Z | defmodule Playwright.Chromium.CDPSessionTest do
use Playwright.TestCase, async: true
alias Playwright.{Browser, BrowserContext, CDPSession, Page}
describe "BrowserContext.new_cdp_session/1" do
test "a page-attached CDP session", %{page: page} do
context = Page.context(page)
assert %CDPSession{} =... | 29.548387 | 75 | 0.646834 |
7934d3f1ebc67cf6c5a07e0bf890f6381acdc4c8 | 2,066 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/location_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/location_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/location_metadata.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... | 38.981132 | 193 | 0.74153 |
7934f5c9730b240fbaf7e4b474fe49038b461e62 | 4,887 | ex | Elixir | deps/phoenix/lib/phoenix/router/scope.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/router/scope.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/router/scope.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Scope do
alias Phoenix.Router.Scope
@moduledoc false
@stack :phoenix_router_scopes
@pipes :phoenix_pipeline_scopes
defstruct path: nil, alias: nil, as: nil, pipes: [], host: nil, private: %{}, assigns: %{}
@doc """
Initializes the scope.
"""
def init(module) do
Module.p... | 27.301676 | 101 | 0.634745 |
7934f5f1d17831e8c28a8b2a70cad2fc7a7e3a2a | 61 | ex | Elixir | lib/ledemo_web/views/layout_view.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | null | null | null | lib/ledemo_web/views/layout_view.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | 7 | 2021-05-10T15:57:48.000Z | 2021-05-27T13:05:14.000Z | lib/ledemo_web/views/layout_view.ex | andyl/live_editable_demo | 645d628d8717d706da207db9fe9f6f71ecfce303 | [
"MIT"
] | null | null | null | defmodule LedemoWeb.LayoutView do
use LedemoWeb, :view
end
| 15.25 | 33 | 0.803279 |
7934fe579bdfdd7ace06d75e558203a1b24b02ff | 1,058 | exs | Elixir | clients/plus/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus/test/test_helper.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.388889 | 83 | 0.73724 |
793501e8c56286f335814f66a9f47067f310faee | 435 | ex | Elixir | lib/http/client_api.ex | LucidModules/ueberauth_line | 686e41ddeef83ecaf55e21ca0bf0337645deb9c1 | [
"MIT"
] | null | null | null | lib/http/client_api.ex | LucidModules/ueberauth_line | 686e41ddeef83ecaf55e21ca0bf0337645deb9c1 | [
"MIT"
] | null | null | null | lib/http/client_api.ex | LucidModules/ueberauth_line | 686e41ddeef83ecaf55e21ca0bf0337645deb9c1 | [
"MIT"
] | null | null | null | defmodule Http.ClientApi do
@type t :: module
@type body :: map()
@type headers :: tuple()
@type url :: String.t()
@type response :: map()
# TODO: types like post_params, get_params, etc?
@doc """
HTTP GET request.
"""
@callback get(headers, url) :: {:ok, response} | {:error, String.t()}
@do... | 19.772727 | 78 | 0.590805 |
793512221e25a421154f9ae2478aa6fb3478b693 | 2,707 | ex | Elixir | lib/game/socials.ex | the3hm/seraph_mud | c098a22184a0a6bcbd56cacf7b0f176dd173260d | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/game/socials.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/game/socials.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Socials do
@moduledoc """
Agent for keeping track of socials in the system
"""
use GenServer
alias Data.Social
alias Data.Repo
@key :socials
@doc false
def start_link() do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
@spec social(integer()) :: Social.t() | nil... | 18.93007 | 62 | 0.599557 |
793514f4cb3a33adf582eeef78af8465692f2e57 | 983 | ex | Elixir | client/lib/rudp_client.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | 1 | 2017-07-14T03:19:56.000Z | 2017-07-14T03:19:56.000Z | client/lib/rudp_client.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | null | null | null | client/lib/rudp_client.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | null | null | null | defmodule RudpClient do
use Application
require Logger
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
supervisor(RudpClient.Collector.Supervisor, []),
supervisor(RudpClient.Worker.Supervisor, []),
]
opts = [strategy: :on... | 32.766667 | 114 | 0.646999 |
79351d2d2fc3b8fcf66ae4d0d7041ff15f6109c3 | 2,317 | exs | Elixir | mix.exs | kek/wobserver | b58fbf70b398517f1ffd44c43dc9fc6df350784e | [
"MIT"
] | null | null | null | mix.exs | kek/wobserver | b58fbf70b398517f1ffd44c43dc9fc6df350784e | [
"MIT"
] | null | null | null | mix.exs | kek/wobserver | b58fbf70b398517f1ffd44c43dc9fc6df350784e | [
"MIT"
] | null | null | null | defmodule Wobserver.Mixfile do
use Mix.Project
def project do
[
app: :wobserver,
version: "0.1.8",
elixir: "~> 1.4",
description: "Web based metrics, monitoring, and observer.",
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod... | 25.184783 | 79 | 0.524817 |
7935236a6bc9274a5dd26590a22ea1896b68b3d4 | 1,977 | ex | Elixir | deps/credo/lib/credo/check/refactor/function_arity.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/credo/lib/credo/check/refactor/function_arity.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/credo/lib/credo/check/refactor/function_arity.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Refactor.FunctionArity do
@moduledoc """
A function can take as many parameters as needed, but even in a functional
language there can be too many parameters.
Can optionally ignore private functions (check configuration options).
"""
@explanation [
check: @moduledoc,
params: ... | 32.409836 | 131 | 0.686394 |
7935406804ba66e4243f21ce7c82c479bda1aec0 | 1,362 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/media.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/media.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/media.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... | 28.978723 | 89 | 0.729075 |
79354c3b525bba28b0f699e859b447d79ca33d1a | 1,578 | ex | Elixir | lib/community_web/endpoint.ex | aleccool213/elixir-graphql-example | 8f89f4898cda7b7544321ff8dda2f76ea22d4c58 | [
"MIT"
] | 1 | 2018-01-16T10:28:38.000Z | 2018-01-16T10:28:38.000Z | lib/community_web/endpoint.ex | aleccool213/elixir-graphql-example | 8f89f4898cda7b7544321ff8dda2f76ea22d4c58 | [
"MIT"
] | null | null | null | lib/community_web/endpoint.ex | aleccool213/elixir-graphql-example | 8f89f4898cda7b7544321ff8dda2f76ea22d4c58 | [
"MIT"
] | null | null | null | defmodule CommunityWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :community
socket "/socket", CommunityWeb.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 Pl... | 28.178571 | 95 | 0.705323 |
79354e12a3ce229e4667faa9249000fe5731caaa | 2,512 | exs | Elixir | test/config_test.exs | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | null | null | null | test/config_test.exs | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | 1 | 2019-02-08T01:08:31.000Z | 2019-02-20T00:24:51.000Z | test/config_test.exs | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | null | null | null | defmodule ConfigTest do
use ExUnit.Case
test "Version read from file" do
assert NewRelic.Config.agent_version() == Mix.Project.config()[:version]
end
test "Logger output device" do
inital_logger = NewRelic.Logger.initial_logger()
System.put_env("NEW_RELIC_LOG", "stdout")
assert :stdio == NewR... | 29.209302 | 86 | 0.701035 |
793591cf2def2caea76d29ca3f26129b25ec6e13 | 3,046 | ex | Elixir | lib/ex_change_rate_web/schemas.ex | ding-an-sich/ex_change_rate | 89858694dc98cef6d21089599120600a075c93db | [
"MIT"
] | null | null | null | lib/ex_change_rate_web/schemas.ex | ding-an-sich/ex_change_rate | 89858694dc98cef6d21089599120600a075c93db | [
"MIT"
] | null | null | null | lib/ex_change_rate_web/schemas.ex | ding-an-sich/ex_change_rate | 89858694dc98cef6d21089599120600a075c93db | [
"MIT"
] | null | null | null | defmodule ExChangeRateWeb.Schemas do
@moduledoc """
Open Api schema
"""
alias OpenApiSpex.Schema
require OpenApiSpex
defmodule ExchangeRateCreateParams do
@moduledoc """
ExchangeRateCreateParams schema
"""
OpenApiSpex.schema(%{
title: "Exchange rate operation create params",
des... | 27.196429 | 92 | 0.554826 |
7935a3593760becaadc602cc506be3dc8bafa43c | 264 | exs | Elixir | priv/repo/migrations/20160702103007_create_user.exs | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | priv/repo/migrations/20160702103007_create_user.exs | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | priv/repo/migrations/20160702103007_create_user.exs | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | defmodule Elapi.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string, null: false
add :password_hash, :string
timestamps
end
create unique_index(:users, [:email])
end
end
| 17.6 | 45 | 0.670455 |
7935a806ce7791c8ec35ce74c6297556a42aac37 | 2,487 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_annotate_file_response.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_annotate_file_response.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_annotate_file_response.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.681818 | 185 | 0.749899 |
7935c98cfdc08786961af0c60a2253304c070c90 | 1,161 | ex | Elixir | apps/neoscan_sync/lib/neoscan_sync/token_syncer.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan_sync/lib/neoscan_sync/token_syncer.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan_sync/lib/neoscan_sync/token_syncer.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | defmodule NeoscanSync.TokenSyncer do
alias Neoscan.Repo
alias Neoscan.Asset
use GenServer
require Logger
@update_interval 30_000
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
@impl true
def init(:ok) do
Process.send_after(self(), :sync, 0)
{:ok, nil}
... | 20.732143 | 61 | 0.620155 |
7935d5699bf8698096e7360e5e88ccb60b1ed1ff | 123 | ex | Elixir | elixir/little-elixir-otp/metex/lib/api/weather.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/little-elixir-otp/metex/lib/api/weather.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/little-elixir-otp/metex/lib/api/weather.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Metex.API.Weather do
def temperature_of(location) do
Process.sleep(500)
"#{location}: 3.5°C"
end
end
| 17.571429 | 33 | 0.691057 |
7935d852b8a5b65f9e70def121f419a10e876c63 | 199 | exs | Elixir | priv/repo/migrations/20190522191038_add_speaker_name_to_videos.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | priv/repo/migrations/20190522191038_add_speaker_name_to_videos.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | priv/repo/migrations/20190522191038_add_speaker_name_to_videos.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.Repo.Migrations.AddSpeakerNameToVideos do
use Ecto.Migration
def change do
alter table(:videos) do
add :speaker_name, :string
remove :source_name
end
end
end
| 18.090909 | 55 | 0.713568 |
7935e72db131b66236c7a072ae56fee4776d4eee | 38 | ex | Elixir | host_core/lib/host_core/web_assembly.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/web_assembly.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/web_assembly.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.WebAssembly do
end
| 12.666667 | 33 | 0.868421 |
7935f0aa6ec3e8a4847c7e3c4e025bea4b3a46b7 | 571 | exs | Elixir | config/database.exs | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | null | null | null | config/database.exs | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | 2 | 2019-12-18T18:08:10.000Z | 2020-11-30T23:01:37.000Z | config/database.exs | crosscloudci/ex_ci_proxy | 906b8d2f51f4324893f205ab647edaf34c271170 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :ex_ci_proxy, ExCiProxy.Repo,
adapter: Ecto.Adapters.Postgres,
username: System.get_env("DB_USERNAME"),
password: System.get_env("DB_PASSWORD"),
database: System.get_env("DB_NAME"),
hostname: System.get_env("DB_HOST"),
pool_size: System.get_env("DB_POOL_SIZE")
# config :guardian, Guardian,
# al... | 31.722222 | 46 | 0.723292 |
7936223fb2bd413a4372d2adcfa7832671ecfcf2 | 2,733 | ex | Elixir | lib/exred_nodetest.ex | exredorg/exred_nodetest | 62f3eb374c6fb77494e07410613f2fbf07e6bbe7 | [
"MIT"
] | null | null | null | lib/exred_nodetest.ex | exredorg/exred_nodetest | 62f3eb374c6fb77494e07410613f2fbf07e6bbe7 | [
"MIT"
] | null | null | null | lib/exred_nodetest.ex | exredorg/exred_nodetest | 62f3eb374c6fb77494e07410613f2fbf07e6bbe7 | [
"MIT"
] | null | null | null | defmodule Exred.NodeTest do
@moduledoc """
A helper module to set up tests for Exred nodes.
See example usage below. The `module` and `config` arguments can be specified either on the
`use` line or in the `start_node` call.
`module is the node module that will be tested
`config` is the config overrides to ... | 28.175258 | 112 | 0.594951 |
79362e0b697b7666d0ee9f9fd4ea6e6156ba89e9 | 1,107 | exs | Elixir | test/krill_execute_test.exs | eksperimental/krill | 9db9b917f4bde12626b6a72f4fb7283b7dd701e9 | [
"MIT"
] | null | null | null | test/krill_execute_test.exs | eksperimental/krill | 9db9b917f4bde12626b6a72f4fb7283b7dd701e9 | [
"MIT"
] | null | null | null | test/krill_execute_test.exs | eksperimental/krill | 9db9b917f4bde12626b6a72f4fb7283b7dd701e9 | [
"MIT"
] | null | null | null | defmodule Krill_ExecuteTest do
use ExUnit.Case, async: false
require Command.Sample
require Logger
import Krill
import ExUnit.CaptureIO
setup do
conf = local_config(:sample)
{:ok, conf: conf}
end
test "Mix.Tasks.Krill.Execute.run(:sample)", %{conf: conf} do
assert capture_io(fn ->
C... | 23.0625 | 63 | 0.598013 |
7936603715696391c6d786d881d4b041d8563600 | 696 | ex | Elixir | test/support/live_views/live_in_component.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/support/live_views/live_in_component.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/support/live_views/live_in_component.ex | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule LiveElementTest.LiveInComponent.Root do
use LiveElement
def mount(_params, _session, socket) do
{:ok, socket}
end
def render(assigns) do
~H"<%= live_component LiveElementTest.LiveInComponent.Component, id: :nested_component %>"
end
end
defmodule LiveElementTest.LiveInComponent.Component d... | 19.333333 | 94 | 0.70546 |
79366e1f6373f3a4c980af7d4938e49f1bc6ea07 | 12,451 | ex | Elixir | lib/oli_web/live/projects/visibility.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/live/projects/visibility.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/live/projects/visibility.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule OliWeb.Projects.VisibilityLive do
use Phoenix.LiveView
alias Oli.Authoring.Course
alias Oli.Accounts
alias Oli.Institutions
alias Oli.Publishing
use Phoenix.HTML
def mount(
_params,
%{
"project_slug" => project_slug
},
socket
) do
project = Co... | 39.652866 | 167 | 0.464621 |
7936a646295c5921fdf60fe1cc8052bebd952db3 | 1,749 | ex | Elixir | lib/bandit/initial_handler.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | lib/bandit/initial_handler.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | lib/bandit/initial_handler.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | null | null | null | defmodule Bandit.InitialHandler do
@moduledoc false
# The initial protocol implementation used for all connections. Switches to a
# specific protocol implementation based on configuration, ALPN negotiation, and
# line heuristics.
use ThousandIsland.Handler
# Attempts to guess the protocol in use, returnin... | 31.8 | 98 | 0.671812 |
7936aa8eccf19ce2dd71e2e269031719b3329cc7 | 955 | exs | Elixir | test/acceptance/html/links_images/simple_pure_links_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 734 | 2015-01-05T19:08:00.000Z | 2022-03-28T14:04:21.000Z | test/acceptance/html/links_images/simple_pure_links_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 343 | 2015-01-01T04:56:57.000Z | 2022-02-15T11:00:57.000Z | test/acceptance/html/links_images/simple_pure_links_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 169 | 2015-02-26T15:18:05.000Z | 2022-03-18T08:00:42.000Z | defmodule Acceptance.Html.LinksImages.SimplePureLinksTest do
use Support.AcceptanceTestCase
describe "simple pure links not yet enabled" do
test "old behavior" do
markdown = "https://github.com/pragdave/earmark"
html = "<p>\nhttps://github.com/pragdave/earmark</p>\n"
messages = []
... | 34.107143 | 212 | 0.660733 |
7936add5c7fe155dfb68472ced7ed9d9e56139bf | 2,792 | ex | Elixir | apps/rig_inbound_gateway/lib/rig_inbound_gateway/request_logger/kafka.ex | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/lib/rig_inbound_gateway/request_logger/kafka.ex | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/lib/rig_inbound_gateway/request_logger/kafka.ex | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | defmodule RigInboundGateway.RequestLogger.Kafka do
@moduledoc """
Kafka request logger implementation.
"""
use Rig.Config, [:log_topic]
require Logger
alias Rig.Kafka, as: RigKafka
alias RigAuth.Jwt.Utils, as: Jwt
alias UUID
@behaviour RigInboundGateway.RequestLogger
@impl RigInboundGateway.Reque... | 27.372549 | 94 | 0.608166 |
7937137b63b0f3adbf4c6e6b30cd939fc8af0b0e | 1,624 | ex | Elixir | installer/phoenix/templates/phx_api/password_reset_controller.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/password_reset_controller.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/password_reset_controller.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 20 | 2016-07-02T11:37:33.000Z | 2018-10-26T19:12:41.000Z | defmodule <%= base %>.PasswordResetController do
use <%= base %>.Web, :controller
alias <%= base %>.{Mailer, User}
plug Openmaize.ResetPassword,
[mail_function: &Mailer.receipt_confirm/1] when action in [:update]
def create(conn, %{"password_reset" => %{"email" => email} = user_params}) do
{key, link... | 36.909091 | 87 | 0.650862 |
793721649ac59092aab768df46bfc31790c6d17e | 1,082 | exs | Elixir | test/two_argument_test.exs | ludwikbukowski/decorator | 697c688bc89961d738939d7771f7eeea6251eea1 | [
"MIT"
] | null | null | null | test/two_argument_test.exs | ludwikbukowski/decorator | 697c688bc89961d738939d7771f7eeea6251eea1 | [
"MIT"
] | null | null | null | test/two_argument_test.exs | ludwikbukowski/decorator | 697c688bc89961d738939d7771f7eeea6251eea1 | [
"MIT"
] | null | null | null | # two arguments
defmodule DecoratorTest.Fixture.TwoArgumentDecorator do
use Decorator.Define, [two: 2]
def two(one, two, body, _context) do
quote do
{unquote(one), unquote(two), unquote(body)}
end
end
end
defmodule DecoratorTest.Fixture.MyTwoFunctionTestModule do
use DecoratorTest.Fixture.TwoAr... | 20.415094 | 58 | 0.727357 |
79372fde5d0fea22567ae43793c5beebca249e8e | 1,459 | exs | Elixir | config/config.exs | rerb/ueberauth_example | 1a08d578dfeaca5b77d213b1abbc53913f2a3b37 | [
"MIT"
] | 210 | 2015-11-19T01:54:04.000Z | 2021-11-14T18:14:57.000Z | config/config.exs | rerb/ueberauth_example | 1a08d578dfeaca5b77d213b1abbc53913f2a3b37 | [
"MIT"
] | 63 | 2015-11-19T00:08:29.000Z | 2021-09-07T03:04:36.000Z | config/config.exs | rerb/ueberauth_example | 1a08d578dfeaca5b77d213b1abbc53913f2a3b37 | [
"MIT"
] | 102 | 2015-11-20T11:47:12.000Z | 2022-03-23T11:10:38.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
# Configures the endpoint
config :ueberauth_examp... | 33.159091 | 94 | 0.730637 |
7937453d3fab57a090da13598f83fc0d9189100f | 5,548 | ex | Elixir | lib/bson/types.ex | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | lib/bson/types.ex | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | lib/bson/types.ex | Talkdesk/mongodb | d6c240c4faf2f73d408b24a028e96f0b30fcb031 | [
"Apache-2.0"
] | null | null | null | defmodule BSON.Binary do
@moduledoc """
Represents BSON binary type
"""
defstruct [binary: nil, subtype: :generic]
defimpl Inspect do
def inspect(%BSON.Binary{binary: value, subtype: :generic}, _opts) do
"#BSON.Binary<#{Base.encode16(value, case: :lower)}>"
end
def inspect(%BSON.Binary{bi... | 26.673077 | 93 | 0.580029 |
793761c52622ae42312b2967c2d2f077390860f4 | 923 | ex | Elixir | test/support/channel_case.ex | joshnuss/phoenix-billing-demo | f72f4de6c975624b2b8b6c189126df32992b5936 | [
"MIT"
] | 62 | 2015-09-19T02:06:39.000Z | 2021-03-15T04:35:50.000Z | test/support/channel_case.ex | joshnuss/phoenix-billing-demo | f72f4de6c975624b2b8b6c189126df32992b5936 | [
"MIT"
] | 4 | 2015-09-23T03:42:23.000Z | 2017-01-14T18:03:20.000Z | test/support/channel_case.ex | joshnuss/phoenix-billing-demo | f72f4de6c975624b2b8b6c189126df32992b5936 | [
"MIT"
] | 8 | 2015-09-19T16:14:40.000Z | 2020-10-28T21:38:18.000Z | defmodule Store.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be as... | 22.512195 | 64 | 0.700975 |
79378c7078a14873e3f7d8b8e48d8ac1aaa71721 | 6,214 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/metric_threshold.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/metric_threshold.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/metric_threshold.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 91.382353 | 677 | 0.761506 |
7937f542bdc2e74e98c835e37446527c4106ab72 | 2,243 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/metric_descriptor_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/metric_descriptor_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/metric_descriptor_metadata.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 ... | 42.320755 | 307 | 0.742309 |
7938634a945a1319c942f5f215a85e79fdc47d3a | 1,930 | ex | Elixir | lib/identicon.ex | el-ro/identicon | 44c5ddf8a79d9f4ed061331c85d32423a68f042b | [
"MIT"
] | null | null | null | lib/identicon.ex | el-ro/identicon | 44c5ddf8a79d9f4ed061331c85d32423a68f042b | [
"MIT"
] | null | null | null | lib/identicon.ex | el-ro/identicon | 44c5ddf8a79d9f4ed061331c85d32423a68f042b | [
"MIT"
] | null | null | null | defmodule Identicon do
@moduledoc """
Documentation for `Identicon`.
"""
@doc """
Hello world.
## Examples
iex> Identicon.hello()
:world
"""
def main(input) do
input
|> hash_input
|> pick_color
|> build_grid
|> filter_odd_squares
|> build_pixel_map
|> draw_ima... | 20.978261 | 73 | 0.598964 |
793866ef790765b16641daa4d0e3273c954fb9bb | 595 | exs | Elixir | mix.exs | pal-alex/form | 9dd1496db37d26233f3f0263477f0f1cc991d274 | [
"ISC"
] | null | null | null | mix.exs | pal-alex/form | 9dd1496db37d26233f3f0263477f0f1cc991d274 | [
"ISC"
] | null | null | null | mix.exs | pal-alex/form | 9dd1496db37d26233f3f0263477f0f1cc991d274 | [
"ISC"
] | null | null | null | defmodule FORM.Mixfile do
use Mix.Project
def application, do: [mod: {:form, []}]
def project do
[
app: :form,
version: "4.11.14",
description: "FORM Business X-Forms",
package: package(),
deps: deps()
]
end
def package do
[
files: ~w(doc include man lib priv ... | 19.193548 | 75 | 0.536134 |
79388257e6e253440147edf4cf29524e92c555dc | 1,466 | ex | Elixir | lib/cotoami_web/controllers/oauth2_controller.ex | fmorita/cotoami | e3eb92ad15829f99cf3e8974077f135e789924cf | [
"Apache-2.0"
] | null | null | null | lib/cotoami_web/controllers/oauth2_controller.ex | fmorita/cotoami | e3eb92ad15829f99cf3e8974077f135e789924cf | [
"Apache-2.0"
] | null | null | null | lib/cotoami_web/controllers/oauth2_controller.ex | fmorita/cotoami | e3eb92ad15829f99cf3e8974077f135e789924cf | [
"Apache-2.0"
] | null | null | null | defmodule CotoamiWeb.OAuth2Controller do
use CotoamiWeb, :controller
require Logger
alias Cotoami.AmishiService
alias CotoamiWeb.AuthPlug
alias CotoamiWeb.OAuth2.Google
alias CotoamiWeb.OAuth2.GitHub
def providers do
:cotoami
|> Application.get_env(__MODULE__, [])
|> Keyword.get(:providers)
... | 32.577778 | 115 | 0.699181 |
793882650adc08f585748fd1e76dbe55bc2c148e | 1,146 | exs | Elixir | mix.exs | illiatdesdindes/hivebot | 694cd58f0d8b9b9db467cfad3a1a585b8e8fb3ae | [
"MIT"
] | 1 | 2016-08-09T21:27:53.000Z | 2016-08-09T21:27:53.000Z | mix.exs | illiatdesdindes/hivebot | 694cd58f0d8b9b9db467cfad3a1a585b8e8fb3ae | [
"MIT"
] | null | null | null | mix.exs | illiatdesdindes/hivebot | 694cd58f0d8b9b9db467cfad3a1a585b8e8fb3ae | [
"MIT"
] | null | null | null | defmodule Hivebot.Mixfile do
use Mix.Project
def project do
[
app: :hivebot,
version: "0.1.0",
elixir: "~> 1.8",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Configuration for the OTP application
#
# Type "mix hel... | 25.466667 | 96 | 0.546248 |
7938a9eabd2d13caedee05f76d9c1338b18fe223 | 585 | ex | Elixir | apps/artemis/lib/artemis/contexts/auth_provider/create_auth_provider.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 10 | 2019-07-05T19:59:20.000Z | 2021-05-23T07:36:11.000Z | apps/artemis/lib/artemis/contexts/auth_provider/create_auth_provider.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/auth_provider/create_auth_provider.ex | chrislaskey/atlas_platform | 969aea95814f62d3471f93000ee5ad77edb9d1bf | [
"MIT"
] | 4 | 2019-07-05T20:04:08.000Z | 2021-05-13T16:28:33.000Z | defmodule Artemis.CreateAuthProvider do
use Artemis.Context
alias Artemis.AuthProvider
alias Artemis.Repo
def call!(params, user) do
case call(params, user) do
{:error, _} -> raise(Artemis.Context.Error, "Error creating auth provider")
{:ok, result} -> result
end
end
def call(params, ... | 20.892857 | 81 | 0.659829 |
7938bfad7beefe398c601e331012da94f12e17f4 | 1,740 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/test_iam_permissions_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/test_iam_permissions_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/test_iam_permissions_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 ... | 34.8 | 135 | 0.741954 |
7938ea7e309e380a55a4a12db5e15379b248d034 | 501 | ex | Elixir | lib/elixirdo/instance/monad_trans/maybe/monad_state.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | lib/elixirdo/instance/monad_trans/maybe/monad_state.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | 5 | 2018-07-20T12:36:25.000Z | 2018-08-01T04:55:46.000Z | lib/elixirdo/instance/monad_trans/maybe/monad_state.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | defmodule Elixirdo.Instance.MonadTrans.Maybe.MonadState do
use Elixirdo.Base
use Elixirdo.Typeclass.Monad.State, import_monad_state: true
alias Elixirdo.Instance.MonadTrans.Maybe, as: MaybeT
import_type MaybeT.maybe_t()
definstance monad_state(maybe_t(m), m: monad_state) do
def get() do
MonadStat... | 21.782609 | 62 | 0.710579 |
79390c8da3a0a57dfd9ce262d9737d826716daa2 | 1,297 | ex | Elixir | test/support/conn_case.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | defmodule IntermediateGitWeb.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.
Finall... | 29.477273 | 77 | 0.736315 |
79390fca5434ff53ea3f121d81a2fbf918a5aa14 | 1,808 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/refresh_data_source_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/refresh_data_source_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/refresh_data_source_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... | 36.16 | 281 | 0.760509 |
7939139ee12d9b79be71b3b7474a37e0305bc94e | 362 | exs | Elixir | test/absinthe/integration/execution/aliases/weird_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/aliases/weird_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/aliases/weird_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Elixir.Absinthe.Integration.Execution.Aliases.WeirdTest do
use ExUnit.Case, async: true
@query """
query {
thing(id: "foo") {
fOO_Bar_baz: name
}
}
"""
test "scenario #1" do
assert {:ok, %{data: %{"thing" => %{"fOO_Bar_baz" => "Foo"}}}} ==
Absinthe.run(@query, Absi... | 21.294118 | 69 | 0.59116 |
7939389c49314da92627118a505cf849695e7a4f | 239 | ex | Elixir | lib/phone/es/s.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/es/s.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/es/s.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.ES.S do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(34)(942|842)(.{6})$/
def area_name, do: "Cantabria"
def area_type, do: "province"
def area_abbreviation, do: "S"
matcher(["34942", "34842"])
end
| 18.384615 | 42 | 0.644351 |
7939394be3a84bf0e3a69ee6288d5c70b811bbd8 | 544 | ex | Elixir | lib/phxpay_web/controllers/accounts_controller.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | lib/phxpay_web/controllers/accounts_controller.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | lib/phxpay_web/controllers/accounts_controller.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | defmodule PhxpayWeb.AccountsController do
use PhxpayWeb, :controller
alias Phxpay.Account
action_fallback PhxpayWeb.FallbackController
def deposit(conn, params) do
with {:ok, %Account{} = account} <- Phxpay.deposit(params) do
conn
|> put_status(:ok)
|> render("update.json", account: acc... | 21.76 | 66 | 0.652574 |
7939565917d50b8744f03520bb330621d7f9c786 | 131 | exs | Elixir | test/system_test.exs | Phiriq/chlorine | 30da3362949a8264125ce2d90a96f0f5318cf589 | [
"MIT"
] | 1 | 2021-06-30T03:40:47.000Z | 2021-06-30T03:40:47.000Z | test/system_test.exs | Phiriq/chlorine | 30da3362949a8264125ce2d90a96f0f5318cf589 | [
"MIT"
] | null | null | null | test/system_test.exs | Phiriq/chlorine | 30da3362949a8264125ce2d90a96f0f5318cf589 | [
"MIT"
] | null | null | null | defmodule Chlorine.SystemTest do
use ExUnit.Case
defmodule MockSystem do
use Chlorine.System, for: [Age, Human]
end
end
| 16.375 | 42 | 0.740458 |
7939b3eef9db8f8e855fcd5dfabd5dad5e0fd249 | 83 | exs | Elixir | test/views/page_view_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | defmodule AlumniBook.PageViewTest do
use AlumniBookWeb.ConnCase, async: true
end
| 20.75 | 41 | 0.831325 |
7939c25a259b711c54726692552d9914a1376328 | 1,208 | ex | Elixir | lib/ext/api/sync_group.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/ext/api/sync_group.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/ext/api/sync_group.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.API.SyncGroup do
@moduledoc "Handles dependency ordering."
alias FarmbotOS.Asset.{
Device,
FarmEvent,
FarmwareEnv,
FbosConfig,
FirmwareConfig,
Peripheral,
PinBinding,
Point,
PointGroup,
Regimen,
SensorReading,
Sensor,
Sequence,
Tool
}
... | 18.029851 | 69 | 0.603477 |
7939c5a59ff414ca56e55739de6134e9e8854a83 | 7,802 | exs | Elixir | test/webclient_test.exs | bitpay/elixir-client | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 35 | 2015-01-18T02:16:11.000Z | 2021-11-14T01:55:34.000Z | test/webclient_test.exs | philosodad/bitpay-elixir | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 3 | 2015-06-24T15:18:57.000Z | 2017-05-17T17:52:05.000Z | test/webclient_test.exs | bitpay/elixir-client | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 13 | 2015-01-16T21:11:22.000Z | 2021-10-29T23:23:59.000Z | defmodule WebClientTest do
use ExUnit.Case, async: false
alias BitPay.WebClient, as: WebClient
import Mock
test 'post method does not try to get token if public facade input' do
client = %WebClient{}
with_mock HTTPotion, [post: fn("https://bitpay.com/testpoint", _body, _headers) -> %HTTPotion.Response... | 86.688889 | 1,322 | 0.694309 |
7939cfe723a3f716feef550795b24db2af7a5074 | 625 | ex | Elixir | lib/chain/transactionreceipt.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 8 | 2021-03-12T15:35:09.000Z | 2022-03-06T06:37:49.000Z | lib/chain/transactionreceipt.ex | diodechain/diode_server_ex | 5cf47e5253a0caafd335d0af4dba711d4dcad42d | [
"Apache-2.0"
] | 15 | 2019-09-06T07:58:01.000Z | 2021-03-06T17:04:46.000Z | lib/chain/transactionreceipt.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 5 | 2021-10-01T12:52:28.000Z | 2022-02-02T19:29:56.000Z | # Diode Server
# Copyright 2021 Diode
# Licensed under the Diode License, Version 1.1
defmodule Chain.TransactionReceipt do
defstruct msg: nil,
# state: nil,
evmout: nil,
gas_used: nil,
return_data: nil,
data: nil,
logs: [],
trace: ni... | 26.041667 | 47 | 0.512 |
7939e7d11f97d913d6fc93394268501f2d82acc4 | 86 | exs | Elixir | test/makeup_live_web/views/page_view_test.exs | axelson/makeup_live_format | 122cd01b6b8c89099ede56a8cadea43523d62c51 | [
"MIT"
] | 6 | 2020-01-18T15:57:42.000Z | 2020-07-05T08:28:56.000Z | test/makeup_live_web/views/page_view_test.exs | axelson/makeup_live_format | 122cd01b6b8c89099ede56a8cadea43523d62c51 | [
"MIT"
] | 2 | 2020-01-17T18:26:24.000Z | 2020-02-04T01:34:48.000Z | test/makeup_live_web/views/page_view_test.exs | axelson/makeup_live_format | 122cd01b6b8c89099ede56a8cadea43523d62c51 | [
"MIT"
] | 1 | 2020-01-13T17:56:00.000Z | 2020-01-13T17:56:00.000Z | defmodule MakeupLiveWeb.PageViewTest do
use MakeupLiveWeb.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
793a041bfbb068cdd6948c6ebdaa23231b546d32 | 3,187 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/serializers/wallet_serializer.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/serializers/wallet_serializer.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/serializers/wallet_serializer.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-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 ... | 30.644231 | 74 | 0.696266 |
793a15015cd2f0d9c5f90827ced6d67a901413e6 | 5,269 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/backend_bucket_cdn_policy.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/backend_bucket_cdn_policy.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/backend_bucket_cdn_policy.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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... | 77.485294 | 720 | 0.752325 |
793a2d49523e3df53e98d9610e43bf9554548ed2 | 652 | ex | Elixir | test/support/repos.ex | ottobar/paper_trail | 046590026ec50605f3cabfaf48354b8acbf969a9 | [
"MIT"
] | 484 | 2016-06-19T19:33:31.000Z | 2022-03-30T00:04:06.000Z | test/support/repos.ex | ottobar/paper_trail | 046590026ec50605f3cabfaf48354b8acbf969a9 | [
"MIT"
] | 125 | 2016-12-13T14:28:45.000Z | 2022-03-01T00:07:06.000Z | test/support/repos.ex | ottobar/paper_trail | 046590026ec50605f3cabfaf48354b8acbf969a9 | [
"MIT"
] | 80 | 2016-09-09T02:12:41.000Z | 2022-03-29T20:51:12.000Z | defmodule PaperTrail.Repo do
use Ecto.Repo, otp_app: :paper_trail, adapter: Ecto.Adapters.Postgres
end
defmodule PaperTrail.UUIDRepo do
use Ecto.Repo, otp_app: :paper_trail, adapter: Ecto.Adapters.Postgres
end
defmodule PaperTrail.UUIDWithCustomNameRepo do
use Ecto.Repo, otp_app: :paper_trail, adapter: Ecto.Ada... | 21.032258 | 71 | 0.722393 |
793a50605a327b34a24816a0e8d30def44d49e18 | 2,998 | exs | Elixir | test/booklist_web/controllers/library_controller_test.exs | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/booklist/test/booklist_web/controllers/library_controller_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | test/booklist_web/controllers/library_controller_test.exs | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | defmodule BooklistWeb.LibraryControllerTest do
use BooklistWeb.ConnCase
alias Booklist.Admin
@create_attrs %{name: "some name", super_search_key: "some super_search_key", url: "some url"}
@update_attrs %{name: "some updated name", super_search_key: "some updated super_search_key", url: "some updated url"}
@... | 33.685393 | 120 | 0.676785 |
793a5b743632b999571a83994d44531863403f41 | 2,345 | ex | Elixir | lib/nx_math.ex | zacky1972/nx_math | c8995ece124287ddc1af8c88eefdd21b79d2e9c4 | [
"Apache-2.0"
] | null | null | null | lib/nx_math.ex | zacky1972/nx_math | c8995ece124287ddc1af8c88eefdd21b79d2e9c4 | [
"Apache-2.0"
] | null | null | null | lib/nx_math.ex | zacky1972/nx_math | c8995ece124287ddc1af8c88eefdd21b79d2e9c4 | [
"Apache-2.0"
] | null | null | null | defmodule NxMath do
import Nx.Defn
@moduledoc """
Documentation for `NxMath`.
"""
@log2 Nx.log(2)
defnp factorial(x) do
{factorial, _} =
while {factorial = 1, x}, Nx.greater(x, 1) do
{factorial * x, x - 1}
end
factorial
end
defnp broadcast(s, t, {type, bit}) do
Nx.br... | 22.76699 | 133 | 0.562047 |
793a68359e8ed0652af12ad76f1c50541f6135bc | 1,026 | exs | Elixir | integration_test/cases/browser/visible_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 1 | 2019-01-30T12:08:17.000Z | 2019-01-30T12:08:17.000Z | integration_test/cases/browser/visible_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 2 | 2019-04-10T08:23:27.000Z | 2021-01-25T16:37:23.000Z | integration_test/cases/browser/visible_test.exs | carl-al/wallaby | a4c9811902370b15db17fc62d451035ee7464eea | [
"MIT"
] | 1 | 2019-01-29T16:03:55.000Z | 2019-01-29T16:03:55.000Z | defmodule Wallaby.Integration.Browser.VisibleTest do
use Wallaby.Integration.SessionCase, async: true
describe "visible?/1" do
setup :visit_page
test "determines if the element is visible to the user", %{page: page} do
page
|> find(Query.css("#visible"))
|> Element.visible?
|> asse... | 22.304348 | 77 | 0.607212 |
793a830bad84822485778174937449344a2a8ff7 | 2,578 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client_user.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.805556 | 105 | 0.715283 |
793a8feed9b4ceb832c70b3fd6928ac8c2e8ed82 | 2,826 | ex | Elixir | lib/asciinema/asciicasts/asciicast.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | 893 | 2017-09-14T14:18:29.000Z | 2022-03-31T21:45:08.000Z | lib/asciinema/asciicasts/asciicast.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | 103 | 2017-09-29T22:15:33.000Z | 2022-03-27T21:47:43.000Z | lib/asciinema/asciicasts/asciicast.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | 152 | 2017-09-07T12:43:15.000Z | 2022-03-10T18:47:47.000Z | defmodule Asciinema.Asciicasts.Asciicast do
use Ecto.Schema
import Ecto.Changeset
alias Asciinema.Accounts.User
alias Asciinema.Asciicasts.Asciicast
@default_theme "asciinema"
@timestamps_opts [type: :utc_datetime_usec]
schema "asciicasts" do
field :version, :integer
field :filename, :string
... | 25.459459 | 93 | 0.681529 |
793abab0df34f0c37b727c74c61268afa0427cb0 | 150 | ex | Elixir | elixir/64.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/64.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/64.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | defmodule Example do
@attr "one"
def first, do: @attr
@attr "two"
def second, do: @attr
end
IO.puts "#{Example.first} #{Example.second}"
| 11.538462 | 44 | 0.633333 |
793acd891a7dcce4a3c61bcfffc209e66796e202 | 385 | ex | Elixir | test/support/commands/increment_counter.ex | toniqsystems/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 103 | 2018-02-09T23:13:21.000Z | 2021-08-18T04:22:41.000Z | test/support/commands/increment_counter.ex | tonic-sys/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 20 | 2018-04-05T16:10:53.000Z | 2021-07-01T08:21:50.000Z | test/support/commands/increment_counter.ex | tonic-sys/event_store | 2d3c8cb2b477bc0e3ef2dc048a924f9874e0abe0 | [
"Apache-2.0"
] | 3 | 2018-09-13T06:03:10.000Z | 2019-07-11T15:22:53.000Z | defmodule Maestro.SampleAggregate.Commands.IncrementCounter do
@moduledoc """
increment counter command
"""
alias Maestro.Types.Event
@behaviour Maestro.Aggregate.CommandHandler
def eval(aggregate, _command) do
[
%Event{
aggregate_id: aggregate.id,
type: "counter_incremented",
... | 19.25 | 62 | 0.657143 |
793aec3f9a863bb11804aa791b0e728763c4224e | 1,113 | exs | Elixir | test/recurly/transaction_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 8 | 2016-08-11T00:45:46.000Z | 2020-05-04T18:55:48.000Z | test/recurly/transaction_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 10 | 2016-08-15T20:01:56.000Z | 2019-05-10T02:09:35.000Z | test/recurly/transaction_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 4 | 2017-10-16T14:29:58.000Z | 2019-05-09T23:20:56.000Z | defmodule Recurly.TransactionTest do
use ExUnit.Case, async: true
alias Recurly.Transaction
import Utils
@readable_fields ~w(
account
action
amount_in_cents
currency
details
invoice
ip_address
original_transaction
payment_method
recurring_type
reference
refundabl... | 19.189655 | 73 | 0.71788 |
793aed93081a2f58437cd1ffc953b6aed6b06041 | 1,483 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_upload.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_upload.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_upload.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... | 31.553191 | 122 | 0.745111 |
793af3eae50272ad79226b144365de9a0dd0c819 | 5,461 | exs | Elixir | priv/repo/seeds.exs | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-06-18T17:46:14.000Z | 2020-01-21T03:19:41.000Z | priv/repo/seeds.exs | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 18 | 2016-06-18T18:05:43.000Z | 2018-03-06T08:19:41.000Z | priv/repo/seeds.exs | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-10-26T19:51:06.000Z | 2018-09-18T09:06:14.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Academy.Repo.insert!(%Academy.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will ... | 23.437768 | 84 | 0.658854 |
793afcbb56513dc00971bd3e510432ef522538bc | 2,697 | exs | Elixir | test/facebook/config_test.exs | Copser/facebook.ex | bd7590a9d39d2d26ff1b06be790c2affc18a515d | [
"MIT"
] | 138 | 2015-01-16T06:20:33.000Z | 2022-01-14T20:15:50.000Z | test/facebook/config_test.exs | Copser/facebook.ex | bd7590a9d39d2d26ff1b06be790c2affc18a515d | [
"MIT"
] | 57 | 2015-01-04T20:14:05.000Z | 2021-04-07T13:25:01.000Z | test/facebook/config_test.exs | Copser/facebook.ex | bd7590a9d39d2d26ff1b06be790c2affc18a515d | [
"MIT"
] | 70 | 2015-04-18T12:15:56.000Z | 2022-02-02T07:08:33.000Z | defmodule Facebook.ConfigTest do
use ExUnit.Case, async: false
alias Facebook.Config
describe "init/1" do
test "uses default values when no other values are specified" do
:ok = Application.stop(:facebook)
{:ok, _} = Application.ensure_all_started(:facebook)
assert Config.graph_url() == "ht... | 28.389474 | 97 | 0.605858 |
793b05558e0721f2ca93ee3ba99430a8c69d7234 | 88 | exs | Elixir | test/lucidboard_web/views/layout_view_test.exs | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 86 | 2019-01-07T20:49:04.000Z | 2021-10-02T21:15:42.000Z | test/lucidboard_web/views/layout_view_test.exs | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 26 | 2019-03-27T12:06:52.000Z | 2020-09-20T05:21:09.000Z | test/lucidboard_web/views/layout_view_test.exs | borodark/lucidboard | 487a9a54053977ea9704121d4a6a4343012d4421 | [
"MIT"
] | 19 | 2015-01-06T19:02:49.000Z | 2020-05-25T08:54:00.000Z | defmodule LucidboardWeb.LayoutViewTest do
use LucidboardWeb.ConnCase, async: true
end
| 22 | 41 | 0.840909 |
793b1726a557a7d7433b6b10588550a8aa49c410 | 155 | ex | Elixir | lib/la_famiglia_web/plugs/timer.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 5 | 2016-10-20T10:00:59.000Z | 2017-11-19T08:14:18.000Z | lib/la_famiglia_web/plugs/timer.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 39 | 2020-04-22T05:27:32.000Z | 2022-03-13T17:22:26.000Z | lib/la_famiglia_web/plugs/timer.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | null | null | null | defmodule LaFamigliaWeb.Plugs.Timer do
def init(default), do: default
def call(conn, _default) do
LaFamiglia.DateTime.clock!()
conn
end
end
| 17.222222 | 38 | 0.716129 |
793b29cfaaeec6494a4eef6862d473e86bc07982 | 1,965 | exs | Elixir | clients/search_console/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/search_console/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/search_console/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.328358 | 185 | 0.667176 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.