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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9106189e3e3e3f1593c8181c07f31d2ad3036f5e | 2,217 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disk_types_scoped_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk_types_scoped_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk_types_scoped_list_warning.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... | 41.055556 | 194 | 0.724402 |
91061f1a4a93ecab7fd0873f2527eea49d6f5aba | 6,050 | exs | Elixir | apps/neoscan/test/transactions_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan/test/transactions_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan/test/transactions_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | defmodule Neoscan.TransactionsTest do
use Neoscan.DataCase
import Neoscan.Factory
alias Neoscan.Transactions
alias Neoscan.Flush
@governing_token Application.fetch_env!(:neoscan, :governing_token)
test "get/1" do
asset = insert(:asset)
transaction =
insert(:transaction, %{vouts: [insert(:v... | 39.032258 | 98 | 0.704793 |
910660c828bbeafb9f41bb9d22b2d0f9e4a2dce1 | 1,354 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/read_write.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/read_write.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/read_write.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 31.488372 | 100 | 0.758493 |
910668e27100a6d3cc63fe9872e7125ce44d430c | 115 | ex | Elixir | lib/hexpm/repository/installs.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/installs.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/installs.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Installs do
use Hexpm.Web, :context
def all do
Repo.all(Install.all)
end
end
| 14.375 | 38 | 0.721739 |
910689a26c7491a70e16a21dd4a66aeda0e3ecba | 1,275 | ex | Elixir | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/config.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:22.000Z | 2020-02-04T13:15:22.000Z | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/config.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 5 | 2019-11-18T17:06:34.000Z | 2019-12-19T10:03:59.000Z | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/config.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 2 | 2018-02-05T19:23:18.000Z | 2019-11-19T11:44:40.000Z | #
# This file is part of Astarte.
#
# Copyright 2018 Ispirata 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 appl... | 28.333333 | 88 | 0.74902 |
9106b08ba83150becd55d74ae5cbee8776855ca8 | 153 | ex | Elixir | socket_gallows/lib/socket_gallows_web/controllers/page_controller.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | socket_gallows/lib/socket_gallows_web/controllers/page_controller.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | socket_gallows/lib/socket_gallows_web/controllers/page_controller.ex | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | defmodule SocketGallowsWeb.PageController do
use SocketGallowsWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 19.125 | 44 | 0.75817 |
9106c11d9ab15706ea2a022ee69a7c6dec545532 | 393 | ex | Elixir | lib/blog_web/controllers/plug/require_auth.ex | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | null | null | null | lib/blog_web/controllers/plug/require_auth.ex | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | 17 | 2021-04-22T00:58:05.000Z | 2021-09-26T04:03:12.000Z | lib/blog_web/controllers/plug/require_auth.ex | gissandrogama/blog | fedd7fbf908b11d651debdac2a040128a50ecd2f | [
"MIT"
] | null | null | null | defmodule BlogWeb.Plug.RequireAuth do
@moduledoc """
This module of plug that verify user authenticate
"""
use BlogWeb, :controller
def init(_), do: nil
def call(conn, _) do
if conn.assigns[:user] do
conn
else
conn
|> put_flash(:error, "Você precisa está logado!")
|> redire... | 19.65 | 55 | 0.620865 |
9106c54ac7195e44971d270ae8408ee9c5afe445 | 245 | ex | Elixir | lib/crit.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | lib/crit.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit do
@moduledoc """
Crit keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.5 | 66 | 0.746939 |
9106d2bd658596bf119cd91ffca7d27b7a4af1ba | 2,233 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/materialized_view_definition.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/materialized_view_definition.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/materialized_view_definition.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.875 | 211 | 0.720555 |
9106e43cfce924f1bef3dac6306cd53ebf12b7bd | 11,527 | exs | Elixir | test/services/multipart_test.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 14 | 2016-09-12T02:45:12.000Z | 2021-02-08T04:13:29.000Z | test/services/multipart_test.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 3 | 2016-09-12T05:17:35.000Z | 2016-09-14T16:35:04.000Z | test/services/multipart_test.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 1 | 2018-02-12T04:30:52.000Z | 2018-02-12T04:30:52.000Z | defmodule Athel.MultipartTest do
# credo:disable-for-this-file Credo.Check.Consistency.TabsOrSpaces
use ExUnit.Case, async: true
import Athel.Multipart
@headers %{"MIME-VERSION" => "1.0",
"CONTENT-TYPE" => %{value: "multipart/mixed", params: %{"BOUNDARY" => "lapalabra"}}}
test "unsupported MIM... | 28.461728 | 139 | 0.61742 |
9106f5ef90f15ecda3a83e93bd62dc181d9bf248 | 181 | ex | Elixir | lib/web/views/layout_view.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | 7 | 2019-12-13T19:23:47.000Z | 2022-01-22T23:02:42.000Z | lib/web/views/layout_view.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | 11 | 2021-03-10T01:57:00.000Z | 2021-08-31T18:30:54.000Z | lib/web/views/layout_view.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | null | null | null | defmodule Web.LayoutView do
use Web, :view
import Web.Gettext, only: [gettext: 1]
def tab_active?(tab, tab), do: "active"
def tab_active?(_current_tab, _tab), do: ""
end
| 18.1 | 45 | 0.679558 |
9106f63604e56bd6610ee93377979ca96a7191c5 | 1,987 | ex | Elixir | lib/super_issuer/contract_template.ex | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 2 | 2021-02-12T09:21:56.000Z | 2021-02-22T08:52:20.000Z | lib/super_issuer/contract_template.ex | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | 4 | 2021-02-22T08:53:43.000Z | 2021-06-09T09:24:46.000Z | lib/super_issuer/contract_template.ex | WeLightProject/WeLight-Portal | 6e701469423e3a62affdc415c4e8c186d603d324 | [
"MIT"
] | null | null | null | defmodule SuperIssuer.ContractTemplate do
use Ecto.Schema
import Ecto.Changeset
alias SuperIssuer.{Chain, Contract}
alias SuperIssuer.Repo
alias SuperIssuer.Ethereum.ABI
alias SuperIssuer.ContractTemplate, as: Ele
schema "contract_template" do
field :name, :string
field :abi, {:array, :map}
f... | 19.673267 | 45 | 0.591344 |
9107209b414ef8f2749913154cd51f038839f868 | 563 | exs | Elixir | test/arkecosystem/crypto/transactions/serializers/timelock_transfer_test.exs | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | test/arkecosystem/crypto/transactions/serializers/timelock_transfer_test.exs | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | test/arkecosystem/crypto/transactions/serializers/timelock_transfer_test.exs | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | defmodule ArkEcosystem.Crypto.Transactions.Serializers.TimelockTransferTest do
use ExUnit.Case, async: false
alias ArkEcosystem.Crypto.Transactions.Serializer
alias ArkEcosystem.Test.TestHelper
setup_all do
ArkEcosystem.Crypto.Configuration.Network.set(ArkEcosystem.Crypto.Networks.Devnet)
:ok
end
... | 28.15 | 86 | 0.774423 |
910733af637f2a130d86e58db966b3e21df71a0b | 198 | ex | Elixir | elixir/chessboard/lib/chessboard.ex | joabehenrique/exercism-tracks | 397c7e685a7952b2bdbf694c285e74b67bfa864f | [
"MIT"
] | null | null | null | elixir/chessboard/lib/chessboard.ex | joabehenrique/exercism-tracks | 397c7e685a7952b2bdbf694c285e74b67bfa864f | [
"MIT"
] | null | null | null | elixir/chessboard/lib/chessboard.ex | joabehenrique/exercism-tracks | 397c7e685a7952b2bdbf694c285e74b67bfa864f | [
"MIT"
] | null | null | null | defmodule Chessboard do
def rank_range, do: 1..8
def file_range, do: ?A..?H
def ranks, do: Enum.to_list(rank_range())
def files, do: Enum.map(file_range(), fn valor -> <<valor>> end)
end
| 19.8 | 66 | 0.661616 |
910733baddbe6ccb507302ac8cfbb6d4227b383a | 1,636 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/filter_lowercase_details.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics/lib/google_api/analytics/v3/model/filter_lowercase_details.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/filter_lowercase_details.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 ... | 32.72 | 136 | 0.727384 |
910734ab96e15fc087ecb9cf136d959bface65b3 | 282 | exs | Elixir | priv/repo/migrations/20210514161201_create_buses.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | 1 | 2021-06-27T20:02:11.000Z | 2021-06-27T20:02:11.000Z | priv/repo/migrations/20210514161201_create_buses.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210514161201_create_buses.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | defmodule StudentList.Repo.Migrations.CreateBuses do
use Ecto.Migration
def change do
create table(:buses) do
add :name, :string
add :display_order, :integer
add :should_display, :boolean, default: false, null: false
timestamps()
end
end
end
| 20.142857 | 64 | 0.680851 |
91073c6b3840c669b8fa9fdce89d4c9905b909e0 | 541 | ex | Elixir | impl/ex/lib/schema/root.ex | riddler/statifier | 4f4e2d1cdbb0e570a06ddf087caf2f986d1024b5 | [
"MIT"
] | 9 | 2020-08-06T23:45:07.000Z | 2020-12-21T01:47:06.000Z | impl/ex/lib/schema/root.ex | riddler/statifier | 4f4e2d1cdbb0e570a06ddf087caf2f986d1024b5 | [
"MIT"
] | 19 | 2020-03-12T03:57:46.000Z | 2020-09-11T03:40:48.000Z | impl/ex/lib/schema/root.ex | riddler/statifier | 4f4e2d1cdbb0e570a06ddf087caf2f986d1024b5 | [
"MIT"
] | null | null | null | defmodule Statifier.Schema.Root do
@moduledoc """
The Root of a state machine
The initial state of the machine is determined by the `initial` property or
the first child state of the machine.
"""
alias Statifier.Schema.State
# TODO: Need to add context/datamodel eventually
@type t :: %__MODULE__{
... | 23.521739 | 77 | 0.665434 |
9107411f6c85af288d21fd5e1e2d98493d329e7e | 116 | ex | Elixir | lib/transferdrop/repo.ex | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | lib/transferdrop/repo.ex | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | lib/transferdrop/repo.ex | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | defmodule Transferdrop.Repo do
use Ecto.Repo,
otp_app: :transferdrop,
adapter: Ecto.Adapters.Postgres
end
| 19.333333 | 35 | 0.75 |
910751c7a89929f80ed8f498109182329ef196fd | 2,622 | ex | Elixir | lib/scenes/legacy/game2.ex | codecurious-bln/elixir_snake | b0021fa32180d328a0d5794f5d8984a27e213e51 | [
"MIT"
] | 9 | 2019-10-18T14:09:33.000Z | 2020-05-09T02:22:15.000Z | lib/scenes/legacy/game2.ex | codecurious-bln/elixir_snake | b0021fa32180d328a0d5794f5d8984a27e213e51 | [
"MIT"
] | 23 | 2019-10-26T11:09:04.000Z | 2020-03-02T08:17:28.000Z | lib/scenes/legacy/game2.ex | codecurious-bln/elixir_snake | b0021fa32180d328a0d5794f5d8984a27e213e51 | [
"MIT"
] | 1 | 2019-10-31T15:53:18.000Z | 2019-10-31T15:53:18.000Z | defmodule Snake.Scene.Legacy.Game2 do
use Scenic.Scene
import Scenic.Primitives, only: [rrect: 3, text: 3]
alias Scenic.Graph
alias Scenic.ViewPort
# Constants
@graph Graph.build(font: :roboto, font_size: 36)
@tile_size 32
@tile_radius 8
@frame_ms 192
# Initialize the game scene
def init(_arg,... | 26.22 | 96 | 0.643783 |
9107be1b198270b76f948e6d7a7a1b4b80e65bb1 | 147 | ex | Elixir | lib/elixir_apiai.ex | konstantinzolotarev/elixir_apiai | 403f77d6701c2b2884e717c1dd2ce736e6be149c | [
"MIT"
] | 1 | 2020-01-20T18:53:35.000Z | 2020-01-20T18:53:35.000Z | lib/elixir_apiai.ex | konstantinzolotarev/elixir_apiai | 403f77d6701c2b2884e717c1dd2ce736e6be149c | [
"MIT"
] | null | null | null | lib/elixir_apiai.ex | konstantinzolotarev/elixir_apiai | 403f77d6701c2b2884e717c1dd2ce736e6be149c | [
"MIT"
] | null | null | null | defmodule ElixirApiai do
@moduledoc """
Documentation for ElixirApiai.
"""
def start, do: :application.ensure_all_started(:httpoison)
end
| 18.375 | 60 | 0.741497 |
9107d40ad408c84cc1bf8168bed5559abf28e3e5 | 1,938 | exs | Elixir | test/phoenix_interop_test.exs | ijcd/taggart | 603aac1bea00f17ad2eebdb40e3720d4f42fc5a7 | [
"Apache-2.0"
] | 36 | 2017-10-27T10:08:37.000Z | 2021-12-26T07:54:05.000Z | test/phoenix_interop_test.exs | ijcd/taggart | 603aac1bea00f17ad2eebdb40e3720d4f42fc5a7 | [
"Apache-2.0"
] | null | null | null | test/phoenix_interop_test.exs | ijcd/taggart | 603aac1bea00f17ad2eebdb40e3720d4f42fc5a7 | [
"Apache-2.0"
] | 4 | 2017-11-08T15:58:15.000Z | 2020-04-21T21:34:13.000Z | defmodule PhoenixInteropTest do
import Phoenix.HTML
use Taggart.ConnCase
use Taggart.HTML
test "inside a phoenix form", %{conn: conn} do
alias Phoenix.HTML.Form
form = Form.form_for(conn, "/users", [as: :user], fn f ->
taggart do
label do
"Name:"
Form.text_input(f, :... | 28.5 | 171 | 0.516512 |
9107d9f9f66c26ca7b4f86935b443d80d0c9f68f | 3,537 | exs | Elixir | test/game/command/wield_test.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/game/command/wield_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/game/command/wield_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Command.WieldTest do
use ExVenture.CommandCase
alias Data.Save
alias Game.Command.Wield
doctest Game.Command.Wield
setup do
start_and_clear_items()
insert_item(%{id: 1, level: 1, name: "Sword", keywords: [], type: "weapon"})
insert_item(%{id: 2, level: 1, name: "Axe", keywords: [... | 31.864865 | 96 | 0.605881 |
9107e48fbd76f9b5f519e639128b16a396398be8 | 1,672 | ex | Elixir | lib/fuschia/mailer/html.ex | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | 1 | 2022-02-21T18:25:14.000Z | 2022-02-21T18:25:14.000Z | lib/fuschia/mailer/html.ex | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | 32 | 2021-07-27T20:48:30.000Z | 2022-03-26T10:35:43.000Z | lib/fuschia/mailer/html.ex | cciuenf/fuschia | cc21d38445a8236142191efd66a3e3997b25cf42 | [
"BSD-3-Clause"
] | null | null | null | defmodule Fuschia.Mailer.HTML do
@moduledoc false
@doc """
Inject the `assigns` values into the `email` template's .eex tags
from the "homologacao" or "financiamento" `project` and then render
the resulting HTML page into a base template.
Returns an HTML page in string format.
"""
@spec assemble_body(S... | 33.44 | 93 | 0.69378 |
9107f45e7af0848db3a29e67450673a439e7c5a1 | 1,973 | ex | Elixir | c/lib/mini_forth/secp256k1.ex | cadar/mini_forth | 90db454492309a5d8d0c9f358ccd586f3d70bdeb | [
"BSD-2-Clause"
] | 17 | 2020-08-26T12:18:21.000Z | 2022-03-22T09:43:09.000Z | c/lib/mini_forth/secp256k1.ex | cadar/mini_forth | 90db454492309a5d8d0c9f358ccd586f3d70bdeb | [
"BSD-2-Clause"
] | 16 | 2020-08-26T16:31:02.000Z | 2020-09-28T08:23:55.000Z | c/lib/mini_forth/secp256k1.ex | cadar/mini_forth | 90db454492309a5d8d0c9f358ccd586f3d70bdeb | [
"BSD-2-Clause"
] | 4 | 2020-08-26T13:16:47.000Z | 2022-03-03T09:27:22.000Z | ## Origin Code: https://github.com/comboy/bitcoin-elixir
## LICENSE: https://github.com/comboy/bitcoin-elixir/blob/develop/LICENSE
defmodule MiniForth.Secp256k1 do
@moduledoc """
ECDSA Secp256k1 curve operations.
By default erlang's :crypto.verify is used to make it less problematic when using
as a library (n... | 32.344262 | 155 | 0.754181 |
910800eb0d346e7ae5fd352ac29784a1346d9855 | 4,217 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.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... | 79.566038 | 1,972 | 0.751956 |
91081af7dc063b802c51c8e64b618b1fcfd63090 | 12,306 | ex | Elixir | clients/plus/lib/google_api/plus/v1/api/people.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus/lib/google_api/plus/v1/api/people.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus/lib/google_api/plus/v1/api/people.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.448819 | 263 | 0.644807 |
91081e8234e35f772c3d9f795645ec242c8cf479 | 4,617 | exs | Elixir | test/pow/phoenix/controllers/session_controller_test.exs | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | test/pow/phoenix/controllers/session_controller_test.exs | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | test/pow/phoenix/controllers/session_controller_test.exs | dweremeichik/pow | 8c45624c1bf40487680abf5a077549fad2de2141 | [
"MIT"
] | null | null | null | defmodule Pow.Phoenix.SessionControllerTest do
use Pow.Test.Phoenix.ConnCase
alias Plug.Conn
alias Pow.Plug
describe "new/2" do
test "already signed in", %{conn: conn} do
conn =
conn
|> Plug.assign_current_user(%{id: 1}, [])
|> get(Routes.pow_session_path(conn, :new))
... | 39.127119 | 129 | 0.643491 |
9108415a7fb0d7bb655706da02f7a924879d9cfc | 292 | ex | Elixir | farmbot_core/lib/farmbot_core/log_storage/supervisor.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/lib/farmbot_core/log_storage/supervisor.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/log_storage/supervisor.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Logger.Supervisor do
@moduledoc false
use Supervisor
def start_link(args) do
Supervisor.start_link(__MODULE__, args, name: __MODULE__)
end
def init([]) do
opts = [strategy: :one_for_all]
Supervisor.init([FarmbotCore.Logger.Repo], opts)
end
end
| 20.857143 | 61 | 0.726027 |
91084d07db9f1ec8205748276eb7b412dee6bb7e | 266 | exs | Elixir | example/backend/config/test.exs | ol88/phoenix-socket-dart | 72283cbbd314d2201975fbd49dadb984bd6b5b6a | [
"BSD-3-Clause"
] | 30 | 2020-11-10T07:32:36.000Z | 2022-02-06T20:34:34.000Z | example/backend/config/test.exs | ambareesha7/phoenix-socket-dart | ae21f0ad4545b9abfc9a6a024afd06a9b87ce36c | [
"BSD-3-Clause"
] | 35 | 2020-05-23T17:33:56.000Z | 2022-02-14T00:53:06.000Z | example/backend/config/test.exs | ambareesha7/phoenix-socket-dart | ae21f0ad4545b9abfc9a6a024afd06a9b87ce36c | [
"BSD-3-Clause"
] | 19 | 2020-11-10T14:22:05.000Z | 2022-02-15T10:22:43.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :backend, BackendWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.181818 | 56 | 0.736842 |
91086f9871ed7e0866fff6f66abbc629f4909133 | 4,051 | exs | Elixir | .credo.exs | kimlindholm/drab_spike | f7573dade90d1cc3dcb54a30aa5a1c09445516fa | [
"MIT"
] | null | null | null | .credo.exs | kimlindholm/drab_spike | f7573dade90d1cc3dcb54a30aa5a1c09445516fa | [
"MIT"
] | 8 | 2019-10-31T11:27:57.000Z | 2022-02-09T23:00:28.000Z | .credo.exs | kimlindholm/drab_spike | f7573dade90d1cc3dcb54a30aa5a1c09445516fa | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "web/", "apps/", "test/", "spec/"],
excluded: [~r"/_build/", ~r"/deps/"]
},
requires: [],
strict: true,
color: true,
check_for_updates: false,
#
# You can customize the para... | 41.336735 | 81 | 0.662306 |
9108d37cc56e54a256fef588518cf24189c419f1 | 1,813 | ex | Elixir | lib/gocardless/client_apis/payment.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 5 | 2017-06-23T16:09:20.000Z | 2020-03-08T15:25:41.000Z | lib/gocardless/client_apis/payment.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 9 | 2017-06-26T10:29:34.000Z | 2018-10-18T11:05:57.000Z | lib/gocardless/client_apis/payment.ex | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 2 | 2017-06-23T19:09:07.000Z | 2021-07-14T20:48:59.000Z | defmodule Gocardless.ClientApi.Payment do
defmacro __using__(_) do
quote do
alias Gocardless.Api.Payment
@behaviour Gocardless.Behaviour.Payment
# Payment API
def list_payments(params \\ %{}) do
GenServer.call(@client_name, {:list_payments, params})
end
def get_paymen... | 30.728814 | 77 | 0.65251 |
9108e05b00d494550ca72a74b72aee051c935a2b | 4,984 | exs | Elixir | backend/test/spades_game/ai/game_ai_bid_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/test/spades_game/ai/game_ai_bid_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/test/spades_game/ai/game_ai_bid_test.exs | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule GameAiBidTest do
use ExUnit.Case, async: true
doctest SpadesGame.GameAI.Bid
alias SpadesGame.{Card, Deck}
alias SpadesGame.GameAI.Bid
# Check the total bids
# Deck.new_shuffled() |> Enum.chunk_every(13) |> Enum.map(fn x -> {Deck.sort(x), GameAI.soft_bid(x)} end) |> Enum.map(fn {h, b} -> b end) |... | 26.094241 | 151 | 0.52187 |
9108e72e45d9700ca4d425f4ed8b6a97e2d198d1 | 39,409 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/customers.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/customers.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/api/customers.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.259056 | 196 | 0.61892 |
910906d8578c28ff2d28065fca4c631b6d493834 | 1,860 | exs | Elixir | lib/elixir/docs.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2021-02-22T14:21:02.000Z | 2021-02-22T14:21:02.000Z | lib/elixir/docs.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/docs.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | # Returns config for Elixir docs
[
extras: Path.wildcard("lib/elixir/pages/*.md") ++ ["CHANGELOG.md"],
groups_for_functions: [
Guards: &(&1[:guard] == true)
],
skip_undefined_reference_warnings_on: ["lib/elixir/pages/compatibility-and-deprecations.md"],
groups_for_modules: [
# [Kernel, Kernel.SpecialF... | 17.383178 | 95 | 0.523118 |
91090e0724171082e88e70082d364d095219676b | 2,164 | exs | Elixir | config/prod.exs | iandeherdt/phoenixginapp | 4079a71130a8609b36118080757e10a80d50ebac | [
"Apache-2.0"
] | null | null | null | config/prod.exs | iandeherdt/phoenixginapp | 4079a71130a8609b36118080757e10a80d50ebac | [
"Apache-2.0"
] | null | null | null | config/prod.exs | iandeherdt/phoenixginapp | 4079a71130a8609b36118080757e10a80d50ebac | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# GinapiWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don... | 33.292308 | 67 | 0.720425 |
910940ceb9afd16b38cf07c2bafc8b462aa67cd3 | 1,655 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_delivery_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_delivery_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/order_delivery_details.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.1 | 115 | 0.734139 |
910945d522f09485b10f1c82eaa5e790ea6cfbc8 | 1,707 | ex | Elixir | lib/materia_commerce_web/controllers/item_controller.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 1 | 2019-11-19T07:38:38.000Z | 2019-11-19T07:38:38.000Z | lib/materia_commerce_web/controllers/item_controller.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 31 | 2018-12-26T02:05:55.000Z | 2021-05-14T03:33:07.000Z | lib/materia_commerce_web/controllers/item_controller.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaCommerceWeb.ItemController do
use MateriaCommerceWeb, :controller
alias MateriaCommerce.Products
alias MateriaCommerce.Products.Item
alias MateriaUtils.Calendar.CalendarUtil
action_fallback(MateriaWeb.FallbackController)
def index(conn, _params) do
items = Products.list_items()
r... | 26.671875 | 97 | 0.674282 |
910971751c80e40a5d45f96b81bbb98de996a78e | 673 | ex | Elixir | lib/juntos_web/live/modal_component.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 1 | 2019-11-15T15:39:24.000Z | 2019-11-15T15:39:24.000Z | lib/juntos_web/live/modal_component.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 166 | 2020-06-30T16:07:48.000Z | 2021-11-25T00:02:24.000Z | lib/juntos_web/live/modal_component.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | null | null | null | defmodule JuntosWeb.ModalComponent do
@moduledoc false
use JuntosWeb, :live_component
@impl true
def render(assigns) do
~L"""
<div id="<%= @id %>" class="phx-modal"
phx-capture-click="close"
phx-window-keydown="close"
phx-key="escape"
phx-target="#<%= @id %>"
phx-page-load... | 24.035714 | 82 | 0.59584 |
910990fca759641919fe785d5ce8bc452d589d9a | 121 | ex | Elixir | lib/cat_on_duty/sheduler.ex | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 3 | 2020-11-23T15:30:04.000Z | 2020-12-01T17:11:49.000Z | lib/cat_on_duty/sheduler.ex | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 1 | 2020-12-29T09:09:03.000Z | 2020-12-29T09:09:03.000Z | lib/cat_on_duty/sheduler.ex | psolvy/cat_on_duty | b03ba225286c85407ca21576c39225f058b22b56 | [
"MIT"
] | 1 | 2021-08-11T10:10:16.000Z | 2021-08-11T10:10:16.000Z | defmodule CatOnDuty.Scheduler do
@moduledoc "Module for sheluder activation"
use Quantum, otp_app: :cat_on_duty
end
| 20.166667 | 45 | 0.793388 |
910a02788f4f92a53eae61d3538d51d00ca49eeb | 917 | ex | Elixir | lib/man_api/repo.ex | Nebo15/printout.api | 292f20add1c92396194dc232eca43c5a93966a1f | [
"MIT"
] | 7 | 2017-06-08T21:15:11.000Z | 2021-12-28T16:57:10.000Z | lib/man_api/repo.ex | Nebo15/man.api | 292f20add1c92396194dc232eca43c5a93966a1f | [
"MIT"
] | 11 | 2017-04-16T17:59:55.000Z | 2019-01-28T17:18:36.000Z | lib/man_api/repo.ex | Nebo15/printout.api | 292f20add1c92396194dc232eca43c5a93966a1f | [
"MIT"
] | 3 | 2017-07-27T16:10:42.000Z | 2021-12-28T17:00:44.000Z | defmodule Man.Repo do
@moduledoc """
Repo for Ecto database.
More info: https://hexdocs.pm/ecto/Ecto.Repo.html
"""
use Ecto.Repo, otp_app: :man_api
use Ecto.Pagging.Repo
@doc """
Dynamically loads the repository configuration from the environment variables.
"""
def init(_, config) do
url = Sys... | 22.925 | 94 | 0.678299 |
910a084a9e27bbbea6b2b203098c58ad5426f7f4 | 547 | exs | Elixir | config/test.exs | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"MIT"
] | null | null | null | config/test.exs | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"MIT"
] | null | null | null | config/test.exs | joekain/oid_migration_issue | b92329d5f43c0548da5ef5099913ae5aa96a8e8b | [
"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 :oid_migration_issue, OidMigrationIssue.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :... | 27.35 | 56 | 0.760512 |
910a2dae5ee2f53a14d6cacf43f9fd5d413e3272 | 708 | ex | Elixir | rumbrella/apps/rumbl/lib/rumbl/repo.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | rumbrella/apps/rumbl/lib/rumbl/repo.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | rumbrella/apps/rumbl/lib/rumbl/repo.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | defmodule Rumbl.Repo do
use Ecto.Repo, otp_app: :rumbl
end
# @moduledoc """
# In memory repository
# """
# def all(Rumbl.User) do
# [%Rumbl.User{id: "1", name: "José", username: "josevalim", password: "elixir"},
# %Rumbl.User{id: "2", name: "Bruce", username: "redrapids", password: "7langs"},... | 24.413793 | 86 | 0.573446 |
910a3e5c60fd69e3edd11cf174a89136b9122c9d | 3,352 | ex | Elixir | apps/status/lib/status/datadog_event/alarm_consumer.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/status/lib/status/datadog_event/alarm_consumer.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/status/lib/status/datadog_event/alarm_consumer.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Status.DatadogEvent.AlarmConsumer do
@moduledoc """
Installs a alarm handler and publishes the alarms as events
"""
use GenServer
require Logger
@doc """
Returns child_specs for the given `AlarmConsumer` setup, to be included e.g. in Supervisor's children.
Mandatory params are in Keyword for... | 37.662921 | 179 | 0.713902 |
910a836d40cb4c923ec517fe407312459858821e | 1,132 | ex | Elixir | apps/cms/lib/partial/paragraph/callout.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/cms/lib/partial/paragraph/callout.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/cms/lib/partial/paragraph/callout.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule CMS.Partial.Paragraph.Callout do
@moduledoc """
Represents the entity_reference ("Callout") Paragraph type
in the CMS. There is only one field -- a deeper entity reference
field which we will be parsing for the actual content data.
"""
alias CMS.Field.{Image, Link}
alias Phoenix.HTML
import ... | 26.325581 | 66 | 0.611307 |
910a9096bc2024aebc025b8e8aad07d805e0bb0c | 63 | exs | Elixir | elixir/24.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/24.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/24.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | bin = <<1, 2>>
bin
|> IO.inspect
bin
|> byte_size
|> IO.puts
| 7 | 14 | 0.555556 |
910aa12adc80242154a13cc39db4ac80157147a9 | 10,983 | exs | Elixir | test/blue_jet/identity/user_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | test/blue_jet/identity/user_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | test/blue_jet/identity/user_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Identity.UserTest do
use BlueJet.DataCase
alias BlueJet.Identity.{Account, User, AccountMembership, PhoneVerificationCode}
test "writable_fields/0" do
assert User.writable_fields == [
:status,
:username,
:email,
:phone_number,
:name,
:first_name,
:... | 27.805063 | 98 | 0.582446 |
910aadba999bf0a4a326802db175817155c1526b | 6,886 | ex | Elixir | lib/ueberauth/strategies/helpers.ex | stephenmoloney/ueberauth | cab484ac8ba320eac93761c5a8978ec83fabc710 | [
"MIT"
] | null | null | null | lib/ueberauth/strategies/helpers.ex | stephenmoloney/ueberauth | cab484ac8ba320eac93761c5a8978ec83fabc710 | [
"MIT"
] | null | null | null | lib/ueberauth/strategies/helpers.ex | stephenmoloney/ueberauth | cab484ac8ba320eac93761c5a8978ec83fabc710 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Helpers do
@moduledoc """
Provides helper methods for use within your strategy.
These helpers are provided as a convenience for accessing the options passed
to the specific pipelined strategy, considering the pipelined options and
falling back to defaults.
"""
import Plug.Con... | 29.054852 | 92 | 0.672814 |
910aae196c29a9b0010f5258844668100b44fa93 | 1,563 | exs | Elixir | mix.exs | queer/agma | f240a7bdf743049b8b1b994ee340b6cce47551bf | [
"BSD-3-Clause"
] | 2 | 2021-02-26T13:26:04.000Z | 2021-03-27T23:13:17.000Z | mix.exs | queer/agma | f240a7bdf743049b8b1b994ee340b6cce47551bf | [
"BSD-3-Clause"
] | null | null | null | mix.exs | queer/agma | f240a7bdf743049b8b1b994ee340b6cce47551bf | [
"BSD-3-Clause"
] | null | null | null | defmodule Agma.MixProject do
use Mix.Project
def project do
[
app: :agma,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
... | 25.209677 | 84 | 0.581574 |
910acb49ad995f1a4580fa4764878c0b2f6c19f0 | 1,700 | ex | Elixir | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_frequency_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_frequency_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_frequency_range.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... | 34 | 117 | 0.739412 |
910b03b4220dc84704294ac85e13e2c2777ededa | 2,283 | ex | Elixir | lib/mix/phoenix.ex | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | lib/mix/phoenix.ex | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | lib/mix/phoenix.ex | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | defmodule Mix.Phoenix do
# Conveniences for Phoenix tasks.
@moduledoc false
@doc """
Copies files from source dir to target dir
according to the given map.
Files are evaluated against EEx according to
the given binding.
"""
def copy_from(source_dir, target_dir, binding, mapping) when is_list(mapping... | 24.815217 | 82 | 0.618922 |
910b160c6a00925f2852169e7b799e52b02e0ef0 | 1,057 | exs | Elixir | mix.exs | apellizzn/rxp-hpp-elixir | dfb405adce22fa7811210e9f3f4da84627e2fbc0 | [
"MIT"
] | 1 | 2018-04-06T15:49:56.000Z | 2018-04-06T15:49:56.000Z | mix.exs | mikamai/rxp-hpp-elixir | dfb405adce22fa7811210e9f3f4da84627e2fbc0 | [
"MIT"
] | null | null | null | mix.exs | mikamai/rxp-hpp-elixir | dfb405adce22fa7811210e9f3f4da84627e2fbc0 | [
"MIT"
] | null | null | null | defmodule RxpHpp.Mixfile do
use Mix.Project
def project do
[
app: :rxp_hpp_elixir,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
description: description(),
package: package()
]
end
# Run "mix help compile.app" to learn a... | 22.020833 | 73 | 0.558184 |
910b1ab3e3983aaef36b800fda7cfde33907e898 | 801 | ex | Elixir | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/destination_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/destination_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/destination_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.EventHub.Model.DestinationProperties do
@moduledoc """
Properties describing the storage account, blob container an... | 26.7 | 108 | 0.735331 |
910b26d39679c24d7d4e809f34394d49c71a2d6e | 65 | exs | Elixir | test/test_helper.exs | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | test/test_helper.exs | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | test/test_helper.exs | tk04/ref | 6547a58344141e09300284943264dfe02f1e84f3 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Ref.Repo, :manual)
| 21.666667 | 49 | 0.769231 |
910b50211096d25848f777f889fe27a4a68d860f | 7,017 | exs | Elixir | test/tablespoon/transport/pmpp_multiplex_test.exs | paulswartz/tablespoon | 3637ee22cce16755fa50461058a079fa18d33b1b | [
"MIT"
] | 2 | 2020-04-03T14:39:23.000Z | 2020-12-17T23:12:58.000Z | test/tablespoon/transport/pmpp_multiplex_test.exs | mbta/tablespoon | 4303ad8498f3e619b081ffbd6892156e0214b61e | [
"MIT"
] | 107 | 2019-09-16T12:52:17.000Z | 2022-02-28T10:25:15.000Z | test/tablespoon/transport/pmpp_multiplex_test.exs | mbta/tablespoon | 4303ad8498f3e619b081ffbd6892156e0214b61e | [
"MIT"
] | null | null | null | defmodule Tablespoon.Transport.PMPPMultiplexTest do
@moduledoc false
use ExUnit.Case
alias Tablespoon.Transport.PMPPMultiplex
@id_mfa {__MODULE__, :id, []}
describe "send + stream" do
test "receives an echo message" do
t = PMPPMultiplex.new(transport: Echo.new(), address: 2, id_mfa: @id_mfa)
... | 29.116183 | 98 | 0.601112 |
910b692eaa2ae3a405c3659673918acc276c1787 | 2,211 | ex | Elixir | lib/mix/tasks/verify_fuzzer.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | lib/mix/tasks/verify_fuzzer.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/verify_fuzzer.ex | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule Mix.Tasks.CanvasApi.VerifyFuzzer do
@moduledoc """
Verify a canvas that had a ShareDB fuzzer run on it.
## Examples
mix canvas_api.verify_fuzzer 0uP6L5iDsi5xI1xrN7v0Z3
"""
@shortdoc "Verify a fuzzer canvas"
require Logger
use Mix.Task
alias CanvasAPI.{Canvas, Repo}
defstruct key:... | 24.566667 | 68 | 0.620986 |
910b86738c8ed9759916d4bf7baa029eae4280d0 | 1,030 | ex | Elixir | src/lib/changelog/slack/messages.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/changelog/slack/messages.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | lib/changelog/slack/messages.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.Slack.Messages do
def welcome do
~s"""
Welcome to Changelog's Community Slack team! :clap:
This is an inclusive place where we chat about tech, life, our shows, or just whatever. *There are no imposters here*. By hanging out in this Slack, you are agreeing to abide by our Code of Cond... | 51.5 | 283 | 0.72233 |
910bcced7350266877a295f64a4c205ce11ac932 | 588 | exs | Elixir | elixir/priv/repo/migrations/20210130012603_create_companies.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20210130012603_create_companies.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20210130012603_create_companies.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | defmodule Homework.Repo.Migrations.CreateCompanies do
use Ecto.Migration
def change do
create table(:companies, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:available_credit, :integer)
add(:credit_line, :integer)
add(:name, :string)
add(:tid, :string)
time... | 24.5 | 80 | 0.658163 |
910bd0043bdb298bd3d3913da6c04ead6be04e5e | 5,162 | ex | Elixir | lib/ueberauth/strategy/google.ex | nicolasblanco/ueberauth_google | f49343d0509bf69f5de9b0537ed1e265173e3885 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/google.ex | nicolasblanco/ueberauth_google | f49343d0509bf69f5de9b0537ed1e265173e3885 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/google.ex | nicolasblanco/ueberauth_google | f49343d0509bf69f5de9b0537ed1e265173e3885 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Google do
@moduledoc """
Google Strategy for Überauth.
"""
use Ueberauth.Strategy,
ignores_csrf_attack: true,
uid_field: :sub,
default_scope: "email",
hd: nil,
userinfo_endpoint: "https://www.googleapis.com/oauth2/v3/userinfo"
alias Ueberauth.Auth.Info
alia... | 27.457447 | 89 | 0.652848 |
910bec2175dd409905c256ebb5fb527520fc28ac | 1,768 | exs | Elixir | clients/cloud_trace/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/mix.exs | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"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... | 26.38806 | 102 | 0.648756 |
910c106d71bb74fde5cb089cf5d30971b8f00905 | 1,310 | exs | Elixir | mix.exs | qixxit/traktor | 9d7f332570768d3d1e4339c2a3e2c71bc92c12e5 | [
"BSD-2-Clause"
] | 8 | 2018-12-27T08:02:49.000Z | 2020-06-25T01:57:15.000Z | mix.exs | qixxit/traktor | 9d7f332570768d3d1e4339c2a3e2c71bc92c12e5 | [
"BSD-2-Clause"
] | null | null | null | mix.exs | qixxit/traktor | 9d7f332570768d3d1e4339c2a3e2c71bc92c12e5 | [
"BSD-2-Clause"
] | 1 | 2019-01-09T18:06:23.000Z | 2019-01-09T18:06:23.000Z | defmodule Traktor.MixProject do
use Mix.Project
@github_url "https://github.com/qixxit/traktor"
@example_github_url "https://github.com/qixxit/two_phase_commit_example"
@article_url "https://medium.com/blog_post_url"
@description "A library to execute actions in a traceable manner."
def project do
[
... | 21.833333 | 74 | 0.589313 |
910c3bebc2e541a4bba6299f6c8c2824bde6cf77 | 207 | ex | Elixir | lib/mapi/response/etf.ex | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"MIT"
] | 3 | 2018-02-05T03:37:27.000Z | 2020-02-19T23:58:22.000Z | lib/mapi/response/etf.ex | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"MIT"
] | null | null | null | lib/mapi/response/etf.ex | codedge-llc/mapi | 5e0db722658534bc06c7538b202083e6e7be240c | [
"MIT"
] | null | null | null | defmodule Mapi.Response.Etf do
@moduledoc false
@behaviour Mapi.Response
def content_type, do: "application/octet-stream"
def format_result(result) do
:erlang.term_to_binary(result)
end
end
| 17.25 | 50 | 0.753623 |
910c3c7a48c0f2310918d2663cf9fa89eb554234 | 9,051 | ex | Elixir | lib/elvaco_cmi4110.ex | alexnanzer/element-parsers | df946803266fcf8bdeee31d8a1249cf18cbd5bb3 | [
"MIT"
] | 1 | 2021-04-06T09:30:10.000Z | 2021-04-06T09:30:10.000Z | lib/elvaco_cmi4110.ex | alexnanzer/element-parsers | df946803266fcf8bdeee31d8a1249cf18cbd5bb3 | [
"MIT"
] | null | null | null | lib/elvaco_cmi4110.ex | alexnanzer/element-parsers | df946803266fcf8bdeee31d8a1249cf18cbd5bb3 | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
require Logger
# Parser for Elvaco CMi4110 devices according to "CMi4110 User's Manual English.pdf"
#
# CMi4110 is a cost-effective MCM, which is mounted in a Landis+Gyr UH50 meter to, in a very energy-efficient way, deliver high-precision meter data using ... | 35.494118 | 177 | 0.598829 |
910c529244404e70f0fa0c33d0ff99d3d0f040a8 | 6,593 | ex | Elixir | api/lib/contracts/agreements.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | 1 | 2020-08-17T21:31:04.000Z | 2020-08-17T21:31:04.000Z | api/lib/contracts/agreements.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | null | null | null | api/lib/contracts/agreements.ex | abmBispo/Contracts | 9e7fad225d6da26ba719f55943dc5a3de03fb02b | [
"MIT"
] | 1 | 2021-03-21T16:17:29.000Z | 2021-03-21T16:17:29.000Z | defmodule Contracts.Agreements do
@moduledoc """
The Agreements context.
"""
import Ecto.Query, warn: false
alias Contracts.Repo
alias Contracts.Agreements.Contract
@doc """
Returns the list of contracts.
## Examples
iex> list_contracts()
[%Contract{}, ...]
"""
def list_contracts... | 20.16208 | 85 | 0.607159 |
910c562151dee0aaf4aab8ce39019051f0d3e0ea | 1,062 | ex | Elixir | lib/nano_ci_web/channels/user_socket.ex | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | null | null | null | lib/nano_ci_web/channels/user_socket.ex | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | 2 | 2021-03-10T07:07:31.000Z | 2021-05-11T02:49:06.000Z | lib/nano_ci_web/channels/user_socket.ex | mattiaslundberg/nano-ci | 3c433d23f93ac95b2cd01d4630c95a8c084d2a99 | [
"MIT"
] | null | null | null | defmodule NanoCiWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", NanoCiWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels... | 31.235294 | 83 | 0.695857 |
910c5e8f4f295804370ff83f8c9216db2c4a09f1 | 443 | ex | Elixir | rna-transcription/lib/rna_transcription.ex | matheuscas/my-exercism-io-elixir-track | 6c676d84f6bc4dd24192e2aea04324c238f436ee | [
"MIT"
] | null | null | null | rna-transcription/lib/rna_transcription.ex | matheuscas/my-exercism-io-elixir-track | 6c676d84f6bc4dd24192e2aea04324c238f436ee | [
"MIT"
] | null | null | null | rna-transcription/lib/rna_transcription.ex | matheuscas/my-exercism-io-elixir-track | 6c676d84f6bc4dd24192e2aea04324c238f436ee | [
"MIT"
] | null | null | null | defmodule RnaTranscription do
@doc """
Transcribes a character list representing DNA nucleotides to RNA
## Examples
iex> RnaTranscription.to_rna('ACTG')
'UGAC'
"""
@spec to_rna([char]) :: [char]
def to_rna(dna) do
dna_rna = %{'G' => 'C', 'C' => 'G', 'T' => 'A', 'A' => 'U',}
# [n] was tricky to... | 23.315789 | 66 | 0.580135 |
910c7d2334f42e418f36b8e4a474084d94bb958f | 2,874 | ex | Elixir | lib/rubber/bulk.ex | evuez/elastix-reloaded | 6a14253d13c5163518dd9e4967ccc160eff2e622 | [
"MIT"
] | 4 | 2018-02-12T16:35:02.000Z | 2020-04-23T21:17:20.000Z | lib/rubber/bulk.ex | evuez/rubber | 6a14253d13c5163518dd9e4967ccc160eff2e622 | [
"MIT"
] | null | null | null | lib/rubber/bulk.ex | evuez/rubber | 6a14253d13c5163518dd9e4967ccc160eff2e622 | [
"MIT"
] | null | null | null | defmodule Rubber.Bulk do
@moduledoc """
The bulk API makes it possible to perform many index/delete operations in a single API call.
[Elastic documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html)
"""
import Rubber.HTTP, only: [prepare_url: 2]
alias Rubber.{HTTP, JSO... | 32.659091 | 140 | 0.621434 |
910c9ba926228e708b48540d34f55d23e25ea639 | 159 | exs | Elixir | elixir/016/016.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 36 | 2015-01-24T08:11:52.000Z | 2021-03-21T00:32:00.000Z | elixir/016/016.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | null | null | null | elixir/016/016.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 4 | 2015-01-24T08:17:42.000Z | 2022-01-11T16:10:56.000Z | IO.puts :math.pow(2, 1000)
|> round
|> Integer.to_string
|> String.codepoints
|> Enum.map(&(String.to_integer(&1)))
|> Enum.reduce(0, &(&1 + &2))
|> to_string
| 19.875 | 37 | 0.63522 |
910ca205e1ff98920af2d6775c7792a62e52c1d9 | 1,691 | ex | Elixir | lib/built_with_elixir_web.ex | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | 8 | 2018-04-15T19:01:14.000Z | 2018-11-19T16:13:56.000Z | lib/built_with_elixir_web.ex | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | 8 | 2018-04-14T03:32:12.000Z | 2018-05-15T04:28:27.000Z | lib/built_with_elixir_web.ex | ospaarmann/built_with_elixir | 5919107c79f200b2035352c7ef9714f8a8f6ff4c | [
"MIT"
] | 2 | 2021-09-22T13:44:09.000Z | 2021-12-21T14:26:03.000Z | defmodule BuiltWithElixirWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use BuiltWithElixirWeb, :controller
use BuiltWithElixirWeb, :view
The definitions below will be executed for ev... | 24.507246 | 69 | 0.707865 |
910cbff9d13548e3416a6583df6ba9bc41bc8377 | 115 | exs | Elixir | test/rational_test.exs | twist-vector/elixir-rational | 029482d5a6c00bd40cc243a9264f6ed4806664c7 | [
"Apache-2.0"
] | 2 | 2015-11-13T22:37:50.000Z | 2020-01-13T21:15:18.000Z | test/rational_test.exs | twist-vector/elixir-rational | 029482d5a6c00bd40cc243a9264f6ed4806664c7 | [
"Apache-2.0"
] | null | null | null | test/rational_test.exs | twist-vector/elixir-rational | 029482d5a6c00bd40cc243a9264f6ed4806664c7 | [
"Apache-2.0"
] | 2 | 2016-03-18T05:29:20.000Z | 2021-04-16T02:39:47.000Z | defmodule RationalTest do
use ExUnit.Case
# Tests currently embedded in documentation
doctest Rational
end
| 14.375 | 45 | 0.791304 |
910cc22ec03bebec98862f622177eecf763a8ec9 | 207 | exs | Elixir | priv/repo/migrations/20170725142521_add_uniq_index_to_steem_comments.exs | cyberpunk-ventures/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 26 | 2017-03-04T20:07:09.000Z | 2018-08-15T10:16:06.000Z | priv/repo/migrations/20170725142521_add_uniq_index_to_steem_comments.exs | cyberpunk-ventures/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 18 | 2017-03-18T13:59:31.000Z | 2018-09-06T10:08:33.000Z | priv/repo/migrations/20170725142521_add_uniq_index_to_steem_comments.exs | metachaos-systems/glasnost | d6853a191ac2094dbe160953094a6d0c7e6c0778 | [
"MIT"
] | 9 | 2017-03-16T19:02:04.000Z | 2018-06-02T23:44:52.000Z | defmodule Glasnost.Repo.Migrations.AddUniqIndexToSteemComments do
use Ecto.Migration
@disable_ddl_transaction true
def change do
create index(:steem_comments, [:id], concurrently: true)
end
end
| 23 | 65 | 0.78744 |
910cd82bebd39c9d77a21489ad64b338303ebb17 | 1,744 | ex | Elixir | debian/manpage.1.ex | imbaoyu/rtcproxy | 4ec9d1c64640b0888b9c279066adc543e793a895 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | 4 | 2015-01-21T02:50:13.000Z | 2019-02-02T04:33:14.000Z | debian/manpage.1.ex | imbaoyu/rtcproxy | 4ec9d1c64640b0888b9c279066adc543e793a895 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | null | null | null | debian/manpage.1.ex | imbaoyu/rtcproxy | 4ec9d1c64640b0888b9c279066adc543e793a895 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | 4 | 2016-06-22T14:47:11.000Z | 2021-08-31T12:17:55.000Z | .\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH RTPPROXY SECTION "May 31, 2005"
.\" Please adjust this date whenever revising the ma... | 29.066667 | 71 | 0.672018 |
910cdddffb185767a84dd8778d84fa6c348f6965 | 2,011 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/video_targeting.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/video_targeting.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/video_targeting.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 37.943396 | 238 | 0.746892 |
910ce0ff26a8101effe5d020ddf09039df466ea4 | 13,509 | ex | Elixir | lib/absinthe/schema/notation/sdl_render.ex | dnsbty/absinthe | 37d72813e1d89b05413e6f58f4563f89a84c94f8 | [
"MIT"
] | null | null | null | lib/absinthe/schema/notation/sdl_render.ex | dnsbty/absinthe | 37d72813e1d89b05413e6f58f4563f89a84c94f8 | [
"MIT"
] | null | null | null | lib/absinthe/schema/notation/sdl_render.ex | dnsbty/absinthe | 37d72813e1d89b05413e6f58f4563f89a84c94f8 | [
"MIT"
] | null | null | null | defmodule Absinthe.Schema.Notation.SDL.Render do
@moduledoc false
import Inspect.Algebra
alias Absinthe.Blueprint
@line_width 120
def inspect(term, %{pretty: true}) do
term
|> render()
|> concat(line())
|> format(@line_width)
|> to_string
end
def inspect(term, options) do
Inspe... | 25.488679 | 101 | 0.619883 |
910ce57cc70393c466fe3de587e65bb1ba1120af | 1,593 | exs | Elixir | mix.exs | pojiro/nerves_hub_cli | 7b0f92b253078302b6c66f7371a716d1e366d6d0 | [
"Apache-2.0"
] | null | null | null | mix.exs | pojiro/nerves_hub_cli | 7b0f92b253078302b6c66f7371a716d1e366d6d0 | [
"Apache-2.0"
] | null | null | null | mix.exs | pojiro/nerves_hub_cli | 7b0f92b253078302b6c66f7371a716d1e366d6d0 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubCLI.MixProject do
use Mix.Project
@version "0.11.1"
@source_url "https://github.com/nerves-hub/nerves_hub_cli"
def project do
[
app: :nerves_hub_cli,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),... | 21.821918 | 82 | 0.552417 |
910cffc056d1a50cd0966443db0dfafd941dfe34 | 308 | exs | Elixir | test/ex_notification/auth_test.exs | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | 1 | 2021-11-30T20:44:22.000Z | 2021-11-30T20:44:22.000Z | test/ex_notification/auth_test.exs | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | null | null | null | test/ex_notification/auth_test.exs | maxneuvians/ex_notification | 6d024bbd08d9875c918b044a3f49f62cf85842d0 | [
"MIT"
] | null | null | null | defmodule ExNotification.AuthTest do
use ExUnit.Case
test "adds a Authorization to a Tesla struct" do
{:ok, result} = ExNotification.Auth.call(%Tesla.Env{}, [], nil)
{header, value} = hd(result.headers)
assert header == "Authorization"
assert String.contains?(value, "Bearer")
end
end
| 28 | 67 | 0.691558 |
910d2422677e0e8ff19879aca5c9162fe91515d1 | 2,994 | exs | Elixir | mix.exs | chrisdambrosio/nerves_custom_rpi4 | d6547e112295e57ac155a2f9a16808afbc56fc75 | [
"Apache-2.0"
] | null | null | null | mix.exs | chrisdambrosio/nerves_custom_rpi4 | d6547e112295e57ac155a2f9a16808afbc56fc75 | [
"Apache-2.0"
] | null | null | null | mix.exs | chrisdambrosio/nerves_custom_rpi4 | d6547e112295e57ac155a2f9a16808afbc56fc75 | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi4.MixProject do
use Mix.Project
@github_organization "nerves-project"
@app :nerves_system_rpi4
@source_url "https://github.com/#{@github_organization}/#{@app}"
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
... | 22.681818 | 82 | 0.578824 |
910d3c05f2fc553671737ec4eba8435546f8a350 | 2,889 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_get_values_by_data_filter_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.869565 | 169 | 0.72378 |
910d3d4a6e57f79861f739d0537cc46da695e4bc | 430 | exs | Elixir | priv/repo/migrations/20210401055122_create_answers.exs | hanam1ni/codewar-web | 0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad | [
"MIT"
] | 2 | 2021-06-29T02:22:28.000Z | 2022-02-15T06:32:15.000Z | priv/repo/migrations/20210401055122_create_answers.exs | hanam1ni/codewar-web | 0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad | [
"MIT"
] | 14 | 2021-05-06T04:27:19.000Z | 2021-08-24T11:15:33.000Z | priv/repo/migrations/20210401055122_create_answers.exs | hanam1ni/codewar-web | 0d7c46ac32d85b1d76c604226e0f3d6f2b76b0ad | [
"MIT"
] | 1 | 2021-08-20T07:50:19.000Z | 2021-08-20T07:50:19.000Z | defmodule Codewar.Repo.Migrations.CreateAnswers do
use Ecto.Migration
def change do
create table(:answers, primary_key: false) do
add :id, :uuid, primary_key: true, null: false
add :username, :string, null: false
add :answer, :text, null: false
add :is_valid, :boolean, default: false
... | 25.294118 | 72 | 0.67907 |
910d57857eb44055ef23daee7f3a0bb4ebd884ff | 158 | ex | Elixir | lib/calculator_web/controllers/calculator_controller.ex | NAR/calculator | 7103306f9643029d354ad0f60c46d8aef96b9c7e | [
"MIT"
] | null | null | null | lib/calculator_web/controllers/calculator_controller.ex | NAR/calculator | 7103306f9643029d354ad0f60c46d8aef96b9c7e | [
"MIT"
] | null | null | null | lib/calculator_web/controllers/calculator_controller.ex | NAR/calculator | 7103306f9643029d354ad0f60c46d8aef96b9c7e | [
"MIT"
] | null | null | null | defmodule CalculatorWeb.CalculatorController do
use CalculatorWeb, :controller
def index(conn, _params) do
render(conn, "calculator.html")
end
end
| 19.75 | 47 | 0.765823 |
910d5f4ebf9a0b061e0a155a3099019e216953b3 | 2,274 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/optimization_activity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/optimization_activity.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/optimization_activity.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... | 42.111111 | 255 | 0.746702 |
910d6cab9805525ff2153e6bce5200057457818c | 2,243 | ex | Elixir | web/controllers/round_controller.ex | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | web/controllers/round_controller.ex | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | web/controllers/round_controller.ex | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule HandimanApi.RoundController do
use HandimanApi.Web, :controller
alias HandimanApi.Round
alias HandimanApi.Tee
plug :scrub_params, "data" when action in [:create, :update]
def index(conn, _params) do
rounds = Repo.all(Round)
render(conn, "index.json", %{data: rounds, conn: conn})
end
... | 32.507246 | 133 | 0.627285 |
910df6a260b87f2bd79d9d16376a7718951a4fe1 | 15,538 | ex | Elixir | lib/resource.ex | adamzaninovich/policy_wonk | e372ce25462b4693de36ba673d17de4e7318fd5f | [
"MIT"
] | 178 | 2016-09-15T11:46:23.000Z | 2022-01-09T18:11:02.000Z | lib/resource.ex | adamzaninovich/policy_wonk | e372ce25462b4693de36ba673d17de4e7318fd5f | [
"MIT"
] | 10 | 2016-09-22T14:49:54.000Z | 2021-02-05T18:10:59.000Z | lib/resource.ex | adamzaninovich/policy_wonk | e372ce25462b4693de36ba673d17de4e7318fd5f | [
"MIT"
] | 12 | 2016-09-16T11:21:14.000Z | 2021-12-20T17:59:02.000Z | defmodule PolicyWonk.Resource do
@moduledoc """
# Overview
A resource loader is a function that loads (or prepares) a single resource. The result is put
into the conn's assigns field.
A simple resource loader:
def resource( _conn, :user, %{"id" => user_id} ) do
case MyAppWeb.Account.get_us... | 35.801843 | 115 | 0.64088 |
910e2f85c78f720ed0a319b472bc287945d50323 | 719 | exs | Elixir | webrtc/videoroom_advanced/mix.exs | membraneframework/membrane_demo | 09143134d12a8307519a0a151498d5dfc869811f | [
"Apache-2.0"
] | 84 | 2020-08-01T14:57:29.000Z | 2022-03-27T13:28:23.000Z | webrtc/videoroom_advanced/mix.exs | membraneframework/membrane_demo | 09143134d12a8307519a0a151498d5dfc869811f | [
"Apache-2.0"
] | 75 | 2020-08-24T08:01:53.000Z | 2022-03-17T10:41:22.000Z | webrtc/videoroom_advanced/mix.exs | membraneframework/membrane_demo | 09143134d12a8307519a0a151498d5dfc869811f | [
"Apache-2.0"
] | 17 | 2020-09-15T21:04:23.000Z | 2022-03-31T07:43:48.000Z | defmodule VideoRoom.MixProject do
use Mix.Project
def project do
[
app: :membrane_videoroom_demo,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
mod: {VideoRoom.Application, []},
extra_appl... | 20.542857 | 78 | 0.52573 |
910e3ac93376538294d7a6dbb07b05b14f839c38 | 1,543 | ex | Elixir | lib/bls/keys.ex | timjp87/elixir_bls | a8d92204b450ddd26859da7d9d41238484141d90 | [
"MIT"
] | 1 | 2020-02-03T06:24:02.000Z | 2020-02-03T06:24:02.000Z | lib/bls/keys.ex | timjp87/elixir-bls | a8d92204b450ddd26859da7d9d41238484141d90 | [
"MIT"
] | 1 | 2020-05-31T17:21:48.000Z | 2020-05-31T17:21:48.000Z | lib/bls/keys.ex | timjp87/elixir-bls | a8d92204b450ddd26859da7d9d41238484141d90 | [
"MIT"
] | null | null | null | defmodule Bls.Keys do
@moduledoc """
Module for generating public and secret keys in various ways.
"""
defmodule AggregatePublicKey do
def new() do
Bls.agpk_new()
end
def add(agpk, pk) do
Bls.agpk_add(agpk, pk)
end
def add_aggregate(agpk1, agpk2) do
... | 20.851351 | 91 | 0.578743 |
910e7065879703a66cea7f20196cd23af5855bbb | 2,919 | exs | Elixir | test/cachex/actions/put_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | test/cachex/actions/put_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | test/cachex/actions/put_test.exs | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.Actions.PutTest do
use CachexCase
# This test verifies the addition of new entries to the cache. We ensure that
# values can be added and can be given expiration values. We also test the case
# in which a cache has a default expiration value, and the ability to override
# this as necessary.
... | 33.170455 | 93 | 0.627612 |
910ec0ed770a2e295179a03d500a99fbe531af95 | 280 | ex | Elixir | code examples/example-9-5.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/example-9-5.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/example-9-5.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | # recipient of say_hello-messages
def recipient do
receive do
:finished ->
IO.puts "Recipient process finished"
:log ->
IO.puts "Recipient received log message"
recipient
what ->
IO.puts "Recipient received #{what}"
recipient
end
end
| 20 | 46 | 0.642857 |
910ecd5b778efab3bcd94db50778ad068b5f13f3 | 872 | ex | Elixir | clients/iam/lib/google_api/iam/v1/metadata.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/iam/lib/google_api/iam/v1/metadata.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/metadata.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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.296296 | 74 | 0.755734 |
910ed68158dca364ade9f0cf846f79810fd30e95 | 431 | ex | Elixir | lib/rocketpay/number.ex | buzs/rocketpay | 8af4de660aac1db4a074fd15b0f41b3790497757 | [
"MIT"
] | null | null | null | lib/rocketpay/number.ex | buzs/rocketpay | 8af4de660aac1db4a074fd15b0f41b3790497757 | [
"MIT"
] | null | null | null | lib/rocketpay/number.ex | buzs/rocketpay | 8af4de660aac1db4a074fd15b0f41b3790497757 | [
"MIT"
] | null | null | null | defmodule Rocketpay.Numbers do
def sum_from_file(filename) do
"#{filename}.csv"
|> File.read()
|> handle_file()
end
defp handle_file({:ok, result}) do
result =
result
|> String.split(",")
|> Stream.map(fn number -> String.to_integer(number) end)
|> Enum.sum()
{:ok, ... | 21.55 | 80 | 0.591647 |
910eddf445bb0ec836275c2bd25568ef613a3678 | 680 | ex | Elixir | lib/history/lending_rates/lending_rate.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 20 | 2021-08-06T01:09:48.000Z | 2022-03-28T18:44:56.000Z | lib/history/lending_rates/lending_rate.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 13 | 2021-08-21T21:17:02.000Z | 2022-03-27T06:33:51.000Z | lib/history/lending_rates/lending_rate.ex | fremantle-industries/history | a8a33744279ff4ca62620785f9a2e9c0c99e4de7 | [
"MIT"
] | 2 | 2021-09-23T11:31:59.000Z | 2022-01-09T16:19:35.000Z | defmodule History.LendingRates.LendingRate do
use Ecto.Schema
import Ecto.Changeset
schema "lending_rates" do
field(:time, :utc_datetime)
field(:token, :string)
field(:base, :string)
field(:quote, :string)
field(:rate, :decimal)
field(:venue, :string)
timestamps()
end
@doc false... | 22.666667 | 71 | 0.661765 |
910ee25a7479eb97798c659fcc38d726de2697a9 | 3,358 | exs | Elixir | test/pipeline_test.exs | herald-library/herald | f35da8c9450c330cbd1ecd01e7e0107ba18cbd56 | [
"MIT"
] | 7 | 2020-04-30T20:20:41.000Z | 2021-04-11T14:26:02.000Z | test/pipeline_test.exs | herald-library/herald | f35da8c9450c330cbd1ecd01e7e0107ba18cbd56 | [
"MIT"
] | 10 | 2020-05-15T00:30:03.000Z | 2021-08-03T06:13:22.000Z | test/pipeline_test.exs | herald-library/herald | f35da8c9450c330cbd1ecd01e7e0107ba18cbd56 | [
"MIT"
] | null | null | null | defmodule Herald.PipelineTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
setup do
[queue: "queue"]
end
setup %{queue: _queue} do
[
message: ~s({
"id": "#{UUID.uuid4()}",
"age": #{Enum.random(10..85)},
"name": "#{Faker.Name.name()}",
"extra": #{Enum... | 23.647887 | 94 | 0.569684 |
910f098415a7b59d43851f712cc1d778ec45922e | 2,800 | ex | Elixir | lib/tilex/posts.ex | SeriousM/tilex | 4cfc2bd64cfa29503714b90e145db25e0f0a21b2 | [
"MIT"
] | null | null | null | lib/tilex/posts.ex | SeriousM/tilex | 4cfc2bd64cfa29503714b90e145db25e0f0a21b2 | [
"MIT"
] | null | null | null | lib/tilex/posts.ex | SeriousM/tilex | 4cfc2bd64cfa29503714b90e145db25e0f0a21b2 | [
"MIT"
] | null | null | null | defmodule Tilex.Posts do
import Ecto.Query
alias Ecto.Adapters.SQL
alias Tilex.{Channel, Developer, Post, Repo}
def all(page) do
page
|> posts
|> Repo.all()
end
def by_channel(channel_name, page) do
channel = Repo.get_by!(Channel, name: channel_name)
query =
page
|> posts... | 23.931624 | 68 | 0.556071 |
910f2b187a3e0e5794c2b4ec0e3127a8f6c7f9b8 | 877,194 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/api/organizations.ex | Doerge/elixir-google-api | 673cc7c78118684f969b8e2d62d03a273f04ad1b | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/api/organizations.ex | Doerge/elixir-google-api | 673cc7c78118684f969b8e2d62d03a273f04ad1b | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/api/organizations.ex | Doerge/elixir-google-api | 673cc7c78118684f969b8e2d62d03a273f04ad1b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.589445 | 196 | 0.61355 |
910f64ec3b1a0db1158f84b4f19211f352c5f1c3 | 1,943 | ex | Elixir | lib/formatter.ex | influxdata/telemetry_influxdb | d3ec2d2c4389e373890fdf4e36ebcb07cab12435 | [
"MIT"
] | null | null | null | lib/formatter.ex | influxdata/telemetry_influxdb | d3ec2d2c4389e373890fdf4e36ebcb07cab12435 | [
"MIT"
] | 3 | 2020-07-15T18:12:34.000Z | 2021-10-09T02:04:36.000Z | lib/formatter.ex | influxdata/telemetry_influxdb | d3ec2d2c4389e373890fdf4e36ebcb07cab12435 | [
"MIT"
] | 4 | 2020-01-27T05:42:17.000Z | 2022-03-25T10:32:44.000Z | defmodule TelemetryInfluxDB.Formatter do
@moduledoc false
@type tags() :: map()
@type event_name() :: [atom()]
@type event_measurements :: map()
@spec format(event_name(), event_measurements, tags()) :: binary
def format(event, measurements, tags \\ %{}, timestamp \\ nil) do
line = Enum.join(event, ".... | 34.696429 | 95 | 0.674215 |
910f6a5bb114a5c6fd6a94f101e29fab6505b8c9 | 1,300 | exs | Elixir | rel/config.exs | rhumbertgz/bully_rpi | aa64a7bf52ec3add85d6bf2e03520caa2d8cf712 | [
"MIT"
] | null | null | null | rel/config.exs | rhumbertgz/bully_rpi | aa64a7bf52ec3add85d6bf2e03520caa2d8cf712 | [
"MIT"
] | null | null | null | rel/config.exs | rhumbertgz/bully_rpi | aa64a7bf52ec3add85d6bf2e03520caa2d8cf712 | [
"MIT"
] | null | null | null | use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: :dev
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/co... | 33.333333 | 81 | 0.753077 |
910f6f8dbca46479630dce712f97b601f950ce05 | 3,345 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/update_borders_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/update_borders_request.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/update_borders_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... | 51.461538 | 397 | 0.707324 |
910f9c6d69225ba8af36cefc4c05e7d07559c8d8 | 1,416 | ex | Elixir | lib/surface/components/form.ex | zven21/surface | e54914a92e23c80f95753d3385c0f0e89a184611 | [
"MIT"
] | null | null | null | lib/surface/components/form.ex | zven21/surface | e54914a92e23c80f95753d3385c0f0e89a184611 | [
"MIT"
] | null | null | null | lib/surface/components/form.ex | zven21/surface | e54914a92e23c80f95753d3385c0f0e89a184611 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form do
@moduledoc """
Defines a **form** that lets the user submit information.
Provides a wrapper for `Phoenix.HTML.Form.form_for/3`. Additionally,
adds the form instance that is returned by `form_for/3` into the context,
making it available to any child input.
All options p... | 26.716981 | 75 | 0.670198 |
910fec17e4542e47583512ddf8fd690f8f1e423b | 812 | ex | Elixir | lib/ex_bitmex/rest/user/affiliate_status.ex | eduardoscottini/ex_bitmex | f8528bd635922e1777a5b01ea4941d625da7396e | [
"MIT"
] | 6 | 2019-02-13T04:05:19.000Z | 2020-12-31T07:40:09.000Z | lib/ex_bitmex/rest/user/affiliate_status.ex | eduardoscottini/ex_bitmex | f8528bd635922e1777a5b01ea4941d625da7396e | [
"MIT"
] | 28 | 2021-03-29T06:46:42.000Z | 2022-03-28T11:03:38.000Z | lib/ex_bitmex/rest/user/affiliate_status.ex | yurikoval/ex_bitmex | d9492789fb319fbdf78d90a99f7c0e40c95c1885 | [
"MIT"
] | 4 | 2019-05-03T21:27:10.000Z | 2021-01-12T09:26:34.000Z | defmodule ExBitmex.Rest.User.AffiliateStatus do
alias ExBitmex.Rest
@type credentials :: ExBitmex.Credentials.t() | nil
@type params :: map
@type affiliate_status :: ExBitmex.AffiliateStatus.t()
@type rate_limit :: ExBitmex.RateLimit.t()
@path "/user/affiliateStatus"
def get(%ExBitmex.Credentials{} = c... | 25.375 | 67 | 0.687192 |
910ff655ffa7a273b35ec95da3aab6fe4fa102e8 | 3,551 | ex | Elixir | apps/astarte_appengine_api/lib/astarte_appengine_api_web/views/error_view.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | null | null | null | apps/astarte_appengine_api/lib/astarte_appengine_api_web/views/error_view.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | null | null | null | apps/astarte_appengine_api/lib/astarte_appengine_api_web/views/error_view.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata 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 appl... | 28.869919 | 83 | 0.697268 |
910ffbd590d56be9382462cfff5dd23215d0d568 | 2,020 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_color_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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_v1p2beta1_color_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_color_info.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 ... | 36.727273 | 118 | 0.722772 |
91100c56a42bd08c16091358bc3e3d9aef534331 | 529 | ex | Elixir | lib/surface_bootstrap/dropdown/item.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | 17 | 2021-02-18T20:10:52.000Z | 2021-12-30T14:41:00.000Z | lib/surface_bootstrap/dropdown/item.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | 9 | 2021-03-21T20:15:48.000Z | 2021-06-23T07:45:20.000Z | lib/surface_bootstrap/dropdown/item.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | 10 | 2021-03-21T20:10:37.000Z | 2021-12-28T00:06:06.000Z | defmodule SurfaceBootstrap.DropDown.Item do
@moduledoc """
Defines an Item for the Dropdown.
This component supports the following slot content
- `<a class="dropdown-item">`
- `<hr class="dropdown-divider">`
This means the slot content should be one of the following
- `<a class="dropdown-item"">`
- `<L... | 29.388889 | 60 | 0.6862 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.