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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2cffe6cf1e15a7f35027b1555d0c47de3f79537 | 242 | ex | Elixir | lib/mp_api_web/views/password_reset_view.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | lib/mp_api_web/views/password_reset_view.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | lib/mp_api_web/views/password_reset_view.ex | jsvelasquezv/mp_api | 9a2262188b5b12c0e2ecd9284a8e7f445d2be4a0 | [
"MIT"
] | null | null | null | defmodule MpApiWeb.PasswordResetView do
use MpApiWeb, :view
def render("error.json", %{error: message}) do
%{errors: %{detail: message}}
end
def render("info.json", %{info: message}) do
%{info: %{detail: message}}
end
end
| 20.166667 | 48 | 0.652893 |
b2d00240d83b46d162842fd1721cb7dd689d5369 | 1,163 | ex | Elixir | lib/scaffolding/v1/behaviours/audit_engine_behaviour.ex | noizu/elixir_scaffolding | 607e1b0fd6eeb244c86876e55a0b03c29dd08395 | [
"MIT"
] | 1 | 2018-07-03T10:15:05.000Z | 2018-07-03T10:15:05.000Z | lib/scaffolding/v1/behaviours/audit_engine_behaviour.ex | noizu/elixir_scaffolding | 607e1b0fd6eeb244c86876e55a0b03c29dd08395 | [
"MIT"
] | 1 | 2018-04-03T17:18:19.000Z | 2018-04-03T17:18:19.000Z | lib/scaffolding/v1/behaviours/audit_engine_behaviour.ex | noizu/elixir_scaffolding | 607e1b0fd6eeb244c86876e55a0b03c29dd08395 | [
"MIT"
] | 2 | 2018-03-05T11:46:01.000Z | 2018-07-03T10:15:07.000Z | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.Scaffolding.AuditEngineBehaviour do
@moduledoc """
This... | 46.52 | 126 | 0.634566 |
b2d00a52fc73e14694a7715b73e59a34c11b8792 | 1,275 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/overlays/token_overlay.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/web/v1/overlays/token_overlay.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/overlays/token_overlay.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Web.V1.TokenOverlay do
@moduledoc """
Overlay for the Token schema.
"""
@behaviour EWallet.Web.V1.Overlay
alias EWallet.Web.V1.AccountOverlay
def preload_assocs,
do: [
:account
]
def default_preload_assocs, do: []
def search_fields,
do: [
:id,
:symbol,... | 17.22973 | 54 | 0.562353 |
b2d0464d7ae060cf8eb0b6cf95f6390652aa3c70 | 9,113 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/api/first_and_third_party_audiences.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/api/first_and_third_party_audiences.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/api/first_and_third_party_audiences.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... | 50.071429 | 549 | 0.653901 |
b2d07e3f7843fd75bc187e73b9d90af01389eabc | 556 | ex | Elixir | lib/tortoise311/package/pingreq.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 2 | 2021-12-23T21:51:31.000Z | 2022-02-20T22:29:24.000Z | lib/tortoise311/package/pingreq.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 11 | 2021-11-18T01:23:15.000Z | 2022-03-28T18:15:18.000Z | lib/tortoise311/package/pingreq.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 3 | 2021-11-19T16:23:38.000Z | 2022-03-18T11:36:54.000Z | defmodule Tortoise311.Package.Pingreq do
@moduledoc false
alias Tortoise311.Package
@opcode 12
@opaque t :: %__MODULE__{
__META__: Package.Meta.t()
}
defstruct __META__: %Package.Meta{opcode: @opcode, flags: 0}
@spec decode(<<_::16>>) :: t
def decode(<<@opcode::4, 0::4, 0>>) do
... | 21.384615 | 72 | 0.561151 |
b2d0837e6709164daeb02a6c73f85a95781ce10e | 64 | ex | Elixir | lib/ex_admin/compile_error.ex | devonestes/ex_admin | e135ae7c28de78fc87baf519ff8a32da12e8bf66 | [
"MIT"
] | 1,347 | 2015-10-05T18:23:49.000Z | 2022-01-09T18:38:36.000Z | lib/ex_admin/compile_error.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 402 | 2015-10-03T13:53:32.000Z | 2021-07-08T09:52:22.000Z | lib/ex_admin/compile_error.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 333 | 2015-10-12T22:56:57.000Z | 2021-05-26T18:40:24.000Z | defmodule ExAdmin.CompileError do
defexception [:message]
end
| 16 | 33 | 0.8125 |
b2d096718a414c584558b07a4631d7d774e51555 | 16,720 | ex | Elixir | lib/digital_ocean/database.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 5 | 2020-09-20T19:35:32.000Z | 2021-12-15T08:57:22.000Z | lib/digital_ocean/database.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 8 | 2020-09-25T14:30:03.000Z | 2022-02-21T18:04:48.000Z | lib/digital_ocean/database.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 4 | 2020-09-25T14:26:11.000Z | 2021-08-09T06:43:18.000Z | defmodule DigitalOcean.Database do
alias DigitalOcean.{ Operation }
@doc """
Create a new database cluster or create a database cluster from a backup.
## Example creating a database cluster
iex> DigitalOcean.Database.create(
...> name: "backend",
...> region: "nyc3",
...> engine... | 30.180505 | 137 | 0.622488 |
b2d0a2b88618068fa147bdc69422bbe519368d55 | 979 | ex | Elixir | rocketpay/lib/rocketpay/users/create.ex | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | 3 | 2021-02-24T02:55:37.000Z | 2021-07-14T18:55:40.000Z | rocketpay/lib/rocketpay/users/create.ex | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | null | null | null | rocketpay/lib/rocketpay/users/create.ex | Samuel-Ricardo/RocketPay | aeec9d00fd04de8b1541f5369dcdcb2cb5e03807 | [
"MIT"
] | 1 | 2021-03-13T01:32:40.000Z | 2021-03-13T01:32:40.000Z | defmodule Rocketpay.Users.Create do
alias Ecto.Multi
alias Rocketpay.{Account, Repo, User}
def call (params) do
Multi.new()
|> Multi.insert(:create_user, User.changeset(params))
|> Multi.run(:create_account, fn repo, %{create_user: user} ->
insert_account(repo, user)
end)
|> M... | 20.829787 | 67 | 0.630235 |
b2d1131bea49958f69d8fd7db7ed02b5634c434b | 1,024 | exs | Elixir | test/elixir_search_extractor/account/oauth2/auth_test.exs | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | test/elixir_search_extractor/account/oauth2/auth_test.exs | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | 32 | 2021-05-24T06:52:33.000Z | 2021-07-19T05:04:40.000Z | test/elixir_search_extractor/account/oauth2/auth_test.exs | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | defmodule ElixirSearchExtractor.Account.Oauth2.AuthTest do
use ElixirSearchExtractor.DataCase, async: true
import ElixirSearchExtractor.AccountsFixtures
alias ElixirSearchExtractor.Account.Oauth2.Auth
describe "authenticate/2" do
test "authenticates user if valid email and password is given" do
user... | 33.032258 | 87 | 0.734375 |
b2d11d8e53cfa72fe6f5d523452480532ad58a9d | 3,767 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/v1beta1.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/v1beta1.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/v1beta1.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... | 45.939024 | 452 | 0.713831 |
b2d1450325801fa4991f94ad96538bed13adfc1e | 6,789 | ex | Elixir | lib/cli/commands.ex | sndnv/track | 3d3727f752877f51a69700c0efff13d3eed978fa | [
"Apache-2.0"
] | null | null | null | lib/cli/commands.ex | sndnv/track | 3d3727f752877f51a69700c0efff13d3eed978fa | [
"Apache-2.0"
] | null | null | null | lib/cli/commands.ex | sndnv/track | 3d3727f752877f51a69700c0efff13d3eed978fa | [
"Apache-2.0"
] | null | null | null | defmodule Cli.Commands do
@moduledoc """
Handlers for all commands supported by the application.
For each command, the user's input is parsed, the command is executed and (if available) the output is returned.
"""
@doc """
Calls the appropriate command based on the supplied arguments.
"""
def args_to... | 24.687273 | 114 | 0.537929 |
b2d15f8dbb68e97cfc41c0837b65acc9a4558b45 | 1,691 | ex | Elixir | lib/diversity_in_tech_web.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | 8 | 2018-06-22T05:43:30.000Z | 2020-04-13T20:31:40.000Z | lib/diversity_in_tech_web.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | lib/diversity_in_tech_web.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | defmodule DiversityInTechWeb 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 DiversityInTechWeb, :controller
use DiversityInTechWeb, :view
The definitions below will be executed for ev... | 24.507246 | 69 | 0.707865 |
b2d17e70856d608e0dccfcdaa35b09cd4858cee1 | 534 | exs | Elixir | config/test.exs | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | config/test.exs | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"MIT"
] | null | null | null | config/test.exs | taylonr/couchjitsu_track | 0a31c450ac734f9d8b69849cb766de0e99f178c4 | [
"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 :couchjitsu_track, CouchjitsuTrack.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :couch... | 26.7 | 56 | 0.754682 |
b2d1a2c21a8596143ff6a8d7207ff2b78cf166be | 993 | ex | Elixir | test/support/fixture_helper.ex | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 2 | 2018-03-03T18:23:07.000Z | 2018-05-03T00:36:02.000Z | test/support/fixture_helper.ex | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 1 | 2018-03-04T17:55:11.000Z | 2018-03-04T17:55:11.000Z | test/support/fixture_helper.ex | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | null | null | null | defmodule CatalogApi.FixtureHelper do
@moduledoc false
@response_headers [
{"Access-Control-Allow-Methods", "GET"},
{"Access-Control-Allow-Origin", "*"},
{"Content-Type", "application/json"},
{"Date", "Sat, 17 Feb 2018 23:03:56 GMT"},
{"Server", "nginx/1.1.19"},
{"Content-Length", "113"},
... | 27.583333 | 89 | 0.640483 |
b2d1b87cb0b278566eabb34bc7c2d7715a52e331 | 161,318 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/api/projects.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/api/projects.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/api/projects.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... | 47.251904 | 1,547 | 0.616757 |
b2d1f7d0478366cc7e73ead4772b60cdf34a2c7d | 15,516 | ex | Elixir | lib/plug/ssl.ex | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | lib/plug/ssl.ex | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | lib/plug/ssl.ex | codeadict/plug | c5e5cc04fe890054b0a03fbb9baeb2fcc49679a6 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.SSL do
@moduledoc """
A plug to force SSL connections and enable HSTS.
If the scheme of a request is `https`, it'll add a `strict-transport-security`
header to enable HTTP Strict Transport Security by default.
Otherwise, the request will be redirected to a corresponding location
with the `h... | 34.101099 | 107 | 0.685937 |
b2d20343d1cf9722f5e75ff64a4fbe8a2c579bae | 1,719 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_snippet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_snippet.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/live_chat_moderator_snippet.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... | 34.38 | 136 | 0.74171 |
b2d22542a78de2a155e28d494c2da80e10958981 | 1,097 | ex | Elixir | repository_summary/lib/auth/guardian.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | repository_summary/lib/auth/guardian.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | repository_summary/lib/auth/guardian.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | defmodule RepositorySummaryWeb.Auth.Guardian do
use Guardian, otp_app: :repository_summary
import Plug.Conn
alias RepositorySummary.{Error, User}
alias RepositorySummary.User.Find, as: UserFind
@ttl_time {1, :minute}
def subject_for_token(%User{id: id}, _claims), do: {:ok, id}
def resource_from_claim... | 31.342857 | 92 | 0.667274 |
b2d23b97f191233e766f61420b0d226aa576475f | 1,030 | ex | Elixir | lib/wooper.ex | ktornwall/wooper | 95b55d95853cf9c20f0dfaa7b6c5285956c02693 | [
"MIT"
] | 1 | 2017-05-11T08:06:52.000Z | 2017-05-11T08:06:52.000Z | lib/wooper.ex | ktornwall/wooper | 95b55d95853cf9c20f0dfaa7b6c5285956c02693 | [
"MIT"
] | null | null | null | lib/wooper.ex | ktornwall/wooper | 95b55d95853cf9c20f0dfaa7b6c5285956c02693 | [
"MIT"
] | null | null | null | defmodule Wooper do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.1875 | 84 | 0.71068 |
b2d24efc16f6d144fbe8722aaa33527f527eec12 | 959 | exs | Elixir | config/config.exs | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"MIT"
] | null | null | null | config/config.exs | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"MIT"
] | null | null | null | config/config.exs | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"MIT"
] | null | null | null | # 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.
use Mix.Config
# Configures the endpoint
config :phenodata, Phenodata.Endpoint,
url: [host: "local... | 31.966667 | 86 | 0.758081 |
b2d25d6256f307ff617bd70cb01acb07aa9af4d5 | 823 | exs | Elixir | mix.exs | bluevoxInc/gpio_counter | d082c4afaffe5c88d3d1825dba57f58085befc90 | [
"Apache-2.0"
] | null | null | null | mix.exs | bluevoxInc/gpio_counter | d082c4afaffe5c88d3d1825dba57f58085befc90 | [
"Apache-2.0"
] | null | null | null | mix.exs | bluevoxInc/gpio_counter | d082c4afaffe5c88d3d1825dba57f58085befc90 | [
"Apache-2.0"
] | null | null | null | defmodule GpioCounter.Mixfile do
use Mix.Project
def project do
[app: :gpio_counter,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.ap... | 22.243243 | 79 | 0.619684 |
b2d25eb2e56493f9588b8579674076007f6effdb | 67 | ex | Elixir | web/views/layout_view.ex | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | 4 | 2016-10-16T22:22:52.000Z | 2019-05-24T13:44:15.000Z | web/views/layout_view.ex | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | 1 | 2016-10-21T00:16:16.000Z | 2017-09-24T02:24:23.000Z | web/views/layout_view.ex | sysdia-solutions/thumbifier | b2b71571bb8a33159e5d90ecb5ea3931eafdd62b | [
"MIT"
] | null | null | null | defmodule Thumbifier.LayoutView do
use Thumbifier.Web, :view
end
| 16.75 | 34 | 0.80597 |
b2d28504f36abde1ace71a2a23063c459734a128 | 317 | ex | Elixir | lib/postgres_sync_copy/application.ex | floriank/postgres_sync_copy | 1763a1ec922d7d02b0a60299687f1dcbf09f9523 | [
"MIT"
] | null | null | null | lib/postgres_sync_copy/application.ex | floriank/postgres_sync_copy | 1763a1ec922d7d02b0a60299687f1dcbf09f9523 | [
"MIT"
] | null | null | null | lib/postgres_sync_copy/application.ex | floriank/postgres_sync_copy | 1763a1ec922d7d02b0a60299687f1dcbf09f9523 | [
"MIT"
] | null | null | null | defmodule PostgresSyncCopy.Application do
use Application
def start(_type, _args) do
import Supervisor.Spec
applications = [
supervisor(PostgresSyncCopy.Repo, [])
]
opts = [strategy: :one_for_one, name: PostgresSyncCopy.Supervisor]
Supervisor.start_link(applications, opts)
end
end
| 21.133333 | 70 | 0.722397 |
b2d2b998a04b958edea5ea6bdcfc30967b14d201 | 220 | ex | Elixir | lib/sanbase_web/admin/auth/uniswap_staking.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/auth/uniswap_staking.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/auth/uniswap_staking.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.Accounts.UniswapStaking do
use ExAdmin.Register
register_resource Sanbase.Accounts.User.UniswapStaking do
show uniswap_staking do
attributes_table(all: true)
end
end
end
| 22 | 59 | 0.786364 |
b2d2cd1cd074b7d14727bc2be20cce7abede4513 | 3,683 | exs | Elixir | test/controllers/group_controller_test.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 14 | 2016-09-12T02:45:12.000Z | 2021-02-08T04:13:29.000Z | test/controllers/group_controller_test.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 3 | 2016-09-12T05:17:35.000Z | 2016-09-14T16:35:04.000Z | test/controllers/group_controller_test.exs | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 1 | 2018-02-12T04:30:52.000Z | 2018-02-12T04:30:52.000Z | defmodule AthelWeb.GroupControllerTest do
use AthelWeb.ConnCase
alias Athel.Group
alias Athel.Repo
test "index no groups", %{conn: conn} do
conn = get conn, "/groups"
resp = html_response(conn, 200)
assert resp =~ "Groups"
assert resp =~ "No groups"
end
test "index groups", %{conn: conn} d... | 30.438017 | 116 | 0.654901 |
b2d32537771c49fc4a39bcd2267d0c2f638d5683 | 1,196 | exs | Elixir | clients/service_control/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/service_control/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/service_control/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApi.ServiceControl.V1.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :google_api_service_control,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: pac... | 24.916667 | 132 | 0.620401 |
b2d344332817d49e0d58b49c284ff6d16c2cfe09 | 3,810 | ex | Elixir | lib/astarte_data_updater_plant/data_updater/server.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 5 | 2018-01-30T15:08:23.000Z | 2019-12-20T15:06:56.000Z | lib/astarte_data_updater_plant/data_updater/server.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 17 | 2018-01-31T15:50:22.000Z | 2019-12-05T17:26:06.000Z | lib/astarte_data_updater_plant/data_updater/server.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 2 | 2018-01-31T15:43:04.000Z | 2019-11-15T12:00:05.000Z | #
# 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... | 31.75 | 92 | 0.714436 |
b2d346d08d37f6d613f769b193ca16147e891aec | 3,088 | exs | Elixir | test/commodity_api/iam/user/personal_information/personal_information_controller_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | test/commodity_api/iam/user/personal_information/personal_information_controller_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | test/commodity_api/iam/user/personal_information/personal_information_controller_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 30.88 | 78 | 0.690415 |
b2d382324aee17d989bbd19569fe01c407f340de | 95 | ex | Elixir | lib/coinmarketcap_api/response.ex | metachaos-systems/coinmarketcap_api_ex | e99f006b492620ac629515d519ac089736335759 | [
"MIT"
] | 2 | 2019-08-12T12:42:42.000Z | 2021-09-16T20:13:05.000Z | lib/coinmarketcap_api/response.ex | metachaos-systems/coinmarketcap_api_ex | e99f006b492620ac629515d519ac089736335759 | [
"MIT"
] | null | null | null | lib/coinmarketcap_api/response.ex | metachaos-systems/coinmarketcap_api_ex | e99f006b492620ac629515d519ac089736335759 | [
"MIT"
] | null | null | null | defmodule CoinmarketcapApi.Response do
defstruct [:data, :metadata]
use ExConstructor
end
| 15.833333 | 38 | 0.789474 |
b2d38aca776e7e1abb7cafca3561bccd92d1f316 | 4,098 | ex | Elixir | lib/ex_admin/query.ex | c80609a/ex_admin | c89e7e573599cedea8e963424b4e78417779b84a | [
"MIT"
] | null | null | null | lib/ex_admin/query.ex | c80609a/ex_admin | c89e7e573599cedea8e963424b4e78417779b84a | [
"MIT"
] | null | null | null | lib/ex_admin/query.ex | c80609a/ex_admin | c89e7e573599cedea8e963424b4e78417779b84a | [
"MIT"
] | null | null | null | defmodule ExAdmin.Query do
@moduledoc false
import Ecto.Query, except: [count: 1]
require Logger
# alias ExAdmin.Helpers
import ExQueb
alias ExAdmin.Schema
@doc false
def get_scope(scopes, nil) do
(Enum.find(scopes, fn {_, v} -> v[:default] == true end) || hd(scopes)) |> elem(0)
end
def get_s... | 24.538922 | 88 | 0.607857 |
b2d3a79d7542312af9831c21e685a0265a7d9fb4 | 3,072 | ex | Elixir | lib/ueberauth/strategy/twitter/oauth.ex | jerodsanto/ueberauth_twitter | 4ed9135fd5fd09ee40d079ebc194ff79e6bc6dab | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/twitter/oauth.ex | jerodsanto/ueberauth_twitter | 4ed9135fd5fd09ee40d079ebc194ff79e6bc6dab | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/twitter/oauth.ex | jerodsanto/ueberauth_twitter | 4ed9135fd5fd09ee40d079ebc194ff79e6bc6dab | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Twitter.OAuth do
@moduledoc """
OAuth1 for Twitter.
Add `consumer_key` and `consumer_secret` to your configuration:
config :ueberauth, Ueberauth.Strategy.Twitter.OAuth,
consumer_key: System.get_env("TWITTER_CONSUMER_KEY"),
consumer_secret: System.get_env("TWITTER_CONSUMER_... | 27.428571 | 92 | 0.647135 |
b2d3b797626b003be406eda2c68680cefe7d1e5f | 514 | ex | Elixir | gen/envoy/config/filter/network/rbac/v2/rbac.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | gen/envoy/config/filter/network/rbac/v2/rbac.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | gen/envoy/config/filter/network/rbac/v2/rbac.pb.ex | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | defmodule Envoy.Config.Filter.Network.Rbac.V2.RBAC do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
rules: Envoy.Config.Rbac.V2alpha.RBAC.t() | nil,
shadow_rules: Envoy.Config.Rbac.V2alpha.RBAC.t() | nil,
stat_prefix: String.t()
}
defstruct [:rules... | 32.125 | 65 | 0.677043 |
b2d3bb334b9f1cd8e2906f5b6b0af66af0f7ac65 | 1,567 | ex | Elixir | lib/ann/training/backpropagation/update_weights.ex | rdk08/annex | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | 1 | 2021-02-04T07:03:31.000Z | 2021-02-04T07:03:31.000Z | lib/ann/training/backpropagation/update_weights.ex | rdk08/ann | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | null | null | null | lib/ann/training/backpropagation/update_weights.ex | rdk08/ann | 68380ae23f079cac1dcef7bdfbe6541e19f41864 | [
"MIT"
] | null | null | null | defmodule ANN.Training.Backpropagation.UpdateWeights do
alias ANN.{Layer, Network, Neuron, Signal}
@spec update(%Network{}, float, module) :: %Network{}
def update(%Network{} = network, learning_rate, activation_fn) do
layers =
network.layers
|> Enum.map(&Task.async(fn -> update_layer(&1, learnin... | 31.34 | 115 | 0.667518 |
b2d3cebf0a09e9132071e85192e6ebb57a3a93da | 3,801 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/metros.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/metros.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/api/metros.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... | 43.193182 | 196 | 0.652197 |
b2d3cfb81fa9f8613363866a2fed13bed9b7e326 | 74 | exs | Elixir | src/dguweb/test/views/layout_view_test.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 2 | 2016-08-09T16:46:52.000Z | 2016-08-09T16:46:59.000Z | src/dguweb/test/views/layout_view_test.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 48 | 2016-07-14T15:12:41.000Z | 2016-09-27T16:19:54.000Z | src/dguweb/test/views/layout_view_test.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 1 | 2021-04-10T21:23:44.000Z | 2021-04-10T21:23:44.000Z | defmodule DGUWeb.LayoutViewTest do
use DGUWeb.ConnCase, async: true
end
| 18.5 | 34 | 0.810811 |
b2d3f04449eca8af95b952a6804dabe47987533f | 9,130 | ex | Elixir | lib/livebook/evaluator/io_proxy.ex | alaadahmed/livebook | 24668c6edb6ee638a3f5291b27bd42a3dfc0c18d | [
"Apache-2.0"
] | 1,846 | 2021-04-13T14:46:36.000Z | 2021-07-14T20:37:40.000Z | lib/livebook/evaluator/io_proxy.ex | alaadahmed/livebook | 24668c6edb6ee638a3f5291b27bd42a3dfc0c18d | [
"Apache-2.0"
] | 223 | 2021-04-13T14:55:06.000Z | 2021-07-15T00:25:23.000Z | lib/livebook/evaluator/io_proxy.ex | alaadahmed/livebook | 24668c6edb6ee638a3f5291b27bd42a3dfc0c18d | [
"Apache-2.0"
] | 130 | 2021-04-13T15:43:55.000Z | 2021-07-12T16:57:46.000Z | defmodule Livebook.Evaluator.IOProxy do
@moduledoc false
# An IO device process used by `Evaluator` as its `:stdio`.
#
# The process implements [The Erlang I/O Protocol](https://erlang.org/doc/apps/stdlib/io_protocol.html)
# and can be thought of as a *virtual* IO device.
#
# Upon receiving an IO request... | 27.835366 | 105 | 0.663855 |
b2d3f36c36233b652a8f9ecc18623b1861efcf39 | 738 | ex | Elixir | lib/dstreams_web/gettext.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | lib/dstreams_web/gettext.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | lib/dstreams_web/gettext.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | defmodule DstreamsWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import DstreamsWeb.Gettext
# Simple translation
gettex... | 29.52 | 73 | 0.657182 |
b2d4280a126674a3cab464b40b88e952d59d6d3e | 4,152 | ex | Elixir | lib/credo/cli/command/diff/diff_command.ex | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | null | null | null | lib/credo/cli/command/diff/diff_command.ex | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | null | null | null | lib/credo/cli/command/diff/diff_command.ex | andersonmcook/credo | cea1ac63dc378316f5e6dd050165a00e5b20ca2f | [
"MIT"
] | null | null | null | defmodule Credo.CLI.Command.Diff.DiffCommand do
@moduledoc false
alias Credo.CLI.Command.Diff.DiffOutput
alias Credo.CLI.Switch
alias Credo.CLI.Task
alias Credo.Execution
alias Credo.CLI.Command.Diff.Task.GetGitDiff
alias Credo.CLI.Command.Diff.Task.PrintBeforeInfo
alias Credo.CLI.Command.Diff.Task.Fi... | 28.438356 | 82 | 0.654383 |
b2d45553dd9b7fea9c079dd46c4e2957bb6c4d14 | 1,904 | ex | Elixir | clients/content/lib/google_api/content/v21/model/shippingsettings_get_supported_holidays_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/shippingsettings_get_supported_holidays_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/shippingsettings_get_supported_holidays_response.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... | 34.618182 | 175 | 0.743172 |
b2d499b984fe9666b985bf284dd35fd483e4ee26 | 6,337 | exs | Elixir | test/aggregates/event_persistence_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | 1 | 2022-02-20T10:42:07.000Z | 2022-02-20T10:42:07.000Z | test/aggregates/event_persistence_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | test/aggregates/event_persistence_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | defmodule Commanded.Aggregates.EventPersistenceTest do
use ExUnit.Case
import Commanded.Enumerable, only: [pluck: 2]
alias Commanded.Aggregates.{Aggregate, AppendItemsHandler, ExampleAggregate, ExecutionContext}
alias Commanded.Aggregates.ExampleAggregate.Commands.{AppendItems, NoOp}
alias Commanded.{Defaul... | 32.497436 | 98 | 0.69828 |
b2d4a8153c12a7044c7a7046c94dd6bb971c7fda | 2,731 | ex | Elixir | lib/ace/governor.ex | filipecabaco/Ace | e5497f182c103f62ba42d8bccf429e016d4efe73 | [
"MIT"
] | null | null | null | lib/ace/governor.ex | filipecabaco/Ace | e5497f182c103f62ba42d8bccf429e016d4efe73 | [
"MIT"
] | null | null | null | lib/ace/governor.ex | filipecabaco/Ace | e5497f182c103f62ba42d8bccf429e016d4efe73 | [
"MIT"
] | null | null | null | defmodule Ace.Governor do
@moduledoc """
A governor maintains servers ready to handle clients.
A governor process starts with a reference to supervision that can start servers.
It will then wait until the server has accepted a connection.
Once it's server has accepted a connection the governor will start a n... | 33.716049 | 116 | 0.707067 |
b2d4b66c189df584e992e8380b5ab9f62c8a3c42 | 3,643 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_transformation_summary.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_transformation_summary.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_transformation_summary.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.90411 | 268 | 0.765578 |
b2d4ca2b0ef2f6087d5b095a1bbe9ff8d94546a3 | 1,382 | exs | Elixir | mix.exs | drewrey/c3p0 | 8b74af0d7a61c90480bbaf24803100063765ec7e | [
"MIT"
] | null | null | null | mix.exs | drewrey/c3p0 | 8b74af0d7a61c90480bbaf24803100063765ec7e | [
"MIT"
] | null | null | null | mix.exs | drewrey/c3p0 | 8b74af0d7a61c90480bbaf24803100063765ec7e | [
"MIT"
] | 1 | 2020-10-29T05:28:35.000Z | 2020-10-29T05:28:35.000Z | defmodule C3P0.MixProject do
use Mix.Project
@version "0.3.1"
def project do
[
app: :c3p0,
version: @version,
elixir: "~> 1.9",
description: description(),
consolidate_protocols: Mix.env() != :test,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(M... | 23.033333 | 84 | 0.555716 |
b2d4ce34209b317e2c0ca79233f9ae892188101a | 1,352 | exs | Elixir | config/config.exs | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | boqolo/boqolo | ba9a2ebcf379f5056b3836756179b49163f91d72 | [
"BSD-3-Clause"
] | null | null | null | # This file is responsible for configuring your umbrella
# and **all applications** and their dependencies with the
# help of the Config module.
#
# Note that all applications in your umbrella share the
# same configuration and dependencies, which is why they
# all use the same configuration file. If you want different... | 33.8 | 89 | 0.760355 |
b2d4f4c4b561ecab36a5df9a8142a47114e51efa | 4,450 | exs | Elixir | channel-sender/bench/single_socket_delivery_bench.exs | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 2 | 2022-01-11T21:03:44.000Z | 2022-03-15T15:13:11.000Z | channel-sender/bench/single_socket_delivery_bench.exs | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 3 | 2021-12-21T21:04:20.000Z | 2022-03-15T16:16:45.000Z | channel-sender/bench/single_socket_delivery_bench.exs | santitigaga/async-dataflow | 66132c7353ae0b3b9d5a3704699b5ba130b4da9d | [
"MIT"
] | 2 | 2022-02-08T22:33:36.000Z | 2022-03-25T19:55:18.000Z | alias ChannelSenderEx.Core.Security.ChannelAuthenticator
alias ChannelSenderEx.Core.RulesProvider.Helper
alias ChannelSenderEx.Core.ProtocolMessage
alias ChannelSenderEx.Transport.EntryPoint
alias ChannelSenderEx.Core.ChannelSupervisor
alias ChannelSenderEx.Core.ChannelRegistry
alias ChannelSenderEx.Transport.Encoders.... | 34.230769 | 122 | 0.699551 |
b2d4fda022ddb14dbe1695befa28529fa7ba06ca | 2,184 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1beta1/model/google_type_money.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_type_money.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_type_money.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.016949 | 109 | 0.700549 |
b2d5083ea93d121d2ddbe6875099fe697f53d8ef | 4,769 | ex | Elixir | lib/nanoid/secure.ex | railsmechanic/nanoid | 41c6285110c8e83f4dcccb9a2000d1218b70abe0 | [
"MIT"
] | 170 | 2018-01-03T12:03:33.000Z | 2022-03-30T09:31:50.000Z | lib/nanoid/secure.ex | railsmechanic/nanoid | 41c6285110c8e83f4dcccb9a2000d1218b70abe0 | [
"MIT"
] | 12 | 2018-01-03T22:08:38.000Z | 2022-03-31T01:23:31.000Z | lib/nanoid/secure.ex | railsmechanic/nanoid | 41c6285110c8e83f4dcccb9a2000d1218b70abe0 | [
"MIT"
] | 13 | 2018-01-03T07:37:44.000Z | 2021-01-20T15:57:12.000Z | defmodule Nanoid.Secure do
@moduledoc """
Generate a secure URL-friendly unique ID. This method uses the secure and non predictable random generator.
By default, the ID will have 21 symbols with a collision probability similar to UUID v4.
"""
use Bitwise
alias Nanoid.Configuration
@doc """
Generates a ... | 38.772358 | 130 | 0.7251 |
b2d508932ecc69bbd1b3249f3706b582d915b1a0 | 1,447 | ex | Elixir | lib/protocols/diffable.ex | DanilaMihailov/differ | 181c76effb8fbc94c60b6429c7d6b25c5d16ffab | [
"Apache-2.0"
] | 2 | 2020-02-07T17:27:12.000Z | 2020-06-15T19:31:00.000Z | lib/protocols/diffable.ex | DanilaMihailov/differ | 181c76effb8fbc94c60b6429c7d6b25c5d16ffab | [
"Apache-2.0"
] | null | null | null | lib/protocols/diffable.ex | DanilaMihailov/differ | 181c76effb8fbc94c60b6429c7d6b25c5d16ffab | [
"Apache-2.0"
] | null | null | null | defprotocol Differ.Diffable do
@fallback_to_any true
@moduledoc """
Allows to compute `diff` between terms
"""
@typedoc """
Diffable term
"""
@type t() :: term()
@typedoc """
Operators that define how to change data
* `:del` - delete
* `:ins` - insert
* `:eq` - doesnt change
* `:diff` - n... | 24.116667 | 81 | 0.62405 |
b2d54e0c0ac1a304a6ddb77bd326b742b85e1343 | 1,109 | ex | Elixir | lib/wechat/menu.ex | ZXYCir/wechat | 817cfb84243413d02e7169e1b9fa3c1a4be70ab4 | [
"MIT"
] | 36 | 2016-09-08T06:12:34.000Z | 2018-08-14T03:45:16.000Z | lib/wechat/menu.ex | ZXYCir/wechat | 817cfb84243413d02e7169e1b9fa3c1a4be70ab4 | [
"MIT"
] | 15 | 2016-09-06T04:25:19.000Z | 2017-12-14T12:08:14.000Z | lib/wechat/menu.ex | ZXYCir/wechat | 817cfb84243413d02e7169e1b9fa3c1a4be70ab4 | [
"MIT"
] | 10 | 2016-09-06T03:58:10.000Z | 2017-12-14T06:36:51.000Z | defmodule Wechat.Menu do
@moduledoc """
Menu APIs.
"""
alias Wechat.Request
@doc """
Create menu.
"""
def create(client, menu) do
Request.post(client, "cgi-bin/menu/create", menu)
end
@doc """
Get menu.
"""
def get(client) do
Request.get(client, "cgi-bin/menu/get")
end
@doc """... | 19.45614 | 75 | 0.650135 |
b2d556460521f6a7805d95d3dc22c255b8a80ddd | 1,509 | ex | Elixir | test/support/data.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-01-21T09:15:24.000Z | 2021-02-04T21:21:56.000Z | test/support/data.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-04-06T05:20:09.000Z | 2020-06-09T09:56:20.000Z | test/support/data.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-22T08:44:35.000Z | 2020-04-22T08:44:35.000Z | defmodule GimTest.Data do
@moduledoc false
def check({path, _url, md5_sum}) do
if File.exists?(path) do
if md5_sum == md5_hash(path) do
:ok
else
{:error, :hash}
end
else
{:error, :nofile}
end
end
def download({path, url, md5_sum}) do
with :ok <- download... | 21.557143 | 80 | 0.531478 |
b2d5596404841becb74c6c3e7b9c707da11b89ef | 13,523 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/accelerator_types.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/accelerator_types.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/accelerator_types.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 53.031373 | 414 | 0.667529 |
b2d55b7d40384ec1a321490813c63755c2d88ba2 | 1,639 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/async_annotate_file_response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/async_annotate_file_response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/async_annotate_file_response.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... | 34.145833 | 117 | 0.76144 |
b2d58ed60b89810de9ca2531fd0fd4b98173df53 | 703 | ex | Elixir | web/gettext.ex | genamerica/ChatLocal | 0a7076a8f25219a0bc694780f3e436eadd357aea | [
"MIT"
] | 11 | 2016-09-10T01:24:32.000Z | 2021-03-20T22:54:55.000Z | web/gettext.ex | genamerica/ChatLocal | 0a7076a8f25219a0bc694780f3e436eadd357aea | [
"MIT"
] | null | null | null | web/gettext.ex | genamerica/ChatLocal | 0a7076a8f25219a0bc694780f3e436eadd357aea | [
"MIT"
] | 2 | 2017-03-01T04:16:41.000Z | 2018-01-02T10:14:52.000Z | defmodule Chatroom.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](http://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Chatroom.Gettext
# Simple translation
gettext "Here is the st... | 28.12 | 71 | 0.678521 |
b2d5b4f47d7af4b668cec8c9e00f6bfbc1b55b26 | 1,520 | exs | Elixir | test/bitcoin/der_sig_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | test/bitcoin/der_sig_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | test/bitcoin/der_sig_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.DERSigTest do
use ExUnit.Case
alias Bitcoin.DERSig
test "simple parse" do
sig =
Binary.from_hex(
"3048022200002b83d59c1d23c08efd82ee0662fec23309c3adbcbd1f0b8695378db4b14e736602220000334a96676e58b1bb01784cb7c556dd8ce1c220171904da22e18fe1e7d1510db5"
)
struct = %DERSi... | 29.803922 | 158 | 0.764474 |
b2d5cacd1b232c8e9319f09d46b68bcce3728011 | 1,278 | exs | Elixir | config/dev.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | config/dev.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | config/dev.exs | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :budget_api, BudgetApi.Endpoint,
http: [port: ... | 29.72093 | 74 | 0.712833 |
b2d5cd9a718a8d161555cedcbfecd2b730cedbef | 1,554 | ex | Elixir | lib/doax3_web/endpoint.ex | execb5/doax3-web-app | fab56d3358629cdbd45c8d11e5e3284e23a95817 | [
"MIT"
] | 1 | 2018-10-04T13:47:14.000Z | 2018-10-04T13:47:14.000Z | lib/doax3_web/endpoint.ex | execb5/doax3-web-app | fab56d3358629cdbd45c8d11e5e3284e23a95817 | [
"MIT"
] | 2 | 2017-09-20T04:23:14.000Z | 2017-09-20T14:37:40.000Z | lib/doax3_web/endpoint.ex | execb5/doax3-web-app | fab56d3358629cdbd45c8d11e5e3284e23a95817 | [
"MIT"
] | null | null | null | defmodule Doax3Web.Endpoint do
use Phoenix.Endpoint, otp_app: :doax3
socket "/socket", Doax3Web.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 27.75 | 95 | 0.700129 |
b2d5d8911154cb18e8fb08e705c8d728fd146f33 | 463 | exs | Elixir | apps/elixir.mastery_persistence/priv/repo/migrations/20201026152056_create_responses.exs | grekko/mastery | f80dfcb660f23187970442ea237e4128ce3ac262 | [
"MIT"
] | null | null | null | apps/elixir.mastery_persistence/priv/repo/migrations/20201026152056_create_responses.exs | grekko/mastery | f80dfcb660f23187970442ea237e4128ce3ac262 | [
"MIT"
] | null | null | null | apps/elixir.mastery_persistence/priv/repo/migrations/20201026152056_create_responses.exs | grekko/mastery | f80dfcb660f23187970442ea237e4128ce3ac262 | [
"MIT"
] | null | null | null | defmodule MasteryPersistence.Repo.Migrations.CreateResponses do
use Ecto.Migration
def change do
create table(:responses) do
add(:quiz_title, :string, null: false)
add(:template_name, :string, null: false)
add(:to, :text, null: false)
add(:email, :string, null: false)
add(:answer,... | 24.368421 | 63 | 0.650108 |
b2d5ebff4fdcfc30f02c957aac97646acadec5c8 | 298 | exs | Elixir | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/priv/repo/migrations/20190124203002_add_user_id_to_topics.exs | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | 15 | 2017-09-19T08:09:01.000Z | 2019-04-29T00:37:51.000Z | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/priv/repo/migrations/20190124203002_add_user_id_to_topics.exs | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | null | null | null | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/priv/repo/migrations/20190124203002_add_user_id_to_topics.exs | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | 17 | 2018-02-27T03:15:54.000Z | 2019-04-24T09:26:46.000Z | defmodule Discuss.Repo.Migrations.AddUserIdToTopics do
use Ecto.Migration
def change do
alter table(:topics) do
# Adding a new columns user_id
# that references to the users table (matching user_id from the users table)
add :user_id, references(:users)
end
end
end
| 24.833333 | 82 | 0.714765 |
b2d5f87f532baf158ea7a694842513a0f9692e09 | 3,465 | exs | Elixir | mix.exs | keathley/tesla | 40dc5ee58e9c638031b8e1082e7ec9b3ba8d617d | [
"MIT"
] | null | null | null | mix.exs | keathley/tesla | 40dc5ee58e9c638031b8e1082e7ec9b3ba8d617d | [
"MIT"
] | null | null | null | mix.exs | keathley/tesla | 40dc5ee58e9c638031b8e1082e7ec9b3ba8d617d | [
"MIT"
] | null | null | null | defmodule Tesla.Mixfile do
use Mix.Project
@version "1.2.1"
def project do
[
app: :tesla,
version: @version,
description: description(),
package: package(),
source_ref: "v#{@version}",
source_url: "https://github.com/teamon/tesla",
elixir: "~> 1.4",
elixirc_pa... | 26.860465 | 85 | 0.572872 |
b2d5fe545104004826b1ef04fae26866a002a28b | 1,320 | exs | Elixir | config/config.exs | skylerparr/expicker | 7c7f52deb548d164fc81fd8a1cdf26a9367d91a3 | [
"MIT"
] | null | null | null | config/config.exs | skylerparr/expicker | 7c7f52deb548d164fc81fd8a1cdf26a9367d91a3 | [
"MIT"
] | null | null | null | config/config.exs | skylerparr/expicker | 7c7f52deb548d164fc81fd8a1cdf26a9367d91a3 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :logger, level: :info
config :expicker, Expicker.Repo,
adapter: Ecto.Adapters.Postgres,
database: "expicker_repo",
username: "postgres",
password: "postgres",
hostna... | 32.195122 | 73 | 0.746212 |
b2d60ac049510296ddfc18829aa1722535ab135e | 881 | exs | Elixir | mix.exs | rohanpujaris/module_mocker | 7684fc4a0f3dd51b8f3c643bc756215780f7a0bb | [
"MIT"
] | 1 | 2016-10-25T19:10:38.000Z | 2016-10-25T19:10:38.000Z | mix.exs | rohanpujaris/module_mocker | 7684fc4a0f3dd51b8f3c643bc756215780f7a0bb | [
"MIT"
] | null | null | null | mix.exs | rohanpujaris/module_mocker | 7684fc4a0f3dd51b8f3c643bc756215780f7a0bb | [
"MIT"
] | null | null | null | defmodule ModuleMocker.Mixfile do
use Mix.Project
def project do
[app: :module_mocker,
version: "0.2.0",
description: description,
package: packages,
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def application do... | 22.025 | 84 | 0.601589 |
b2d60bab94e0ea2ffe0cf775df31641e3acb0d30 | 2,669 | ex | Elixir | clients/domains_rdap/lib/google_api/domains_rdap/v1/model/rdap_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/domains_rdap/lib/google_api/domains_rdap/v1/model/rdap_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/domains_rdap/lib/google_api/domains_rdap/v1/model/rdap_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... | 41.061538 | 188 | 0.692019 |
b2d619773e7f474b1b0c6820ca90548254a20f58 | 4,296 | ex | Elixir | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/delivery_pipeline.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/delivery_pipeline.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/delivery_pipeline.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... | 58.054054 | 565 | 0.711592 |
b2d6253d750a4a037fa4c0a43d32637ccda6debc | 5,330 | ex | Elixir | lib/oli_web/controllers/resource_controller.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli_web/controllers/resource_controller.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli_web/controllers/resource_controller.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule OliWeb.ResourceController do
use OliWeb, :controller
import OliWeb.ProjectPlugs
alias Oli.Activities.Realizer.Query.Source
alias Oli.Authoring.Editing.PageEditor
alias Oli.Accounts
alias Oli.Activities
alias Oli.Publishing.AuthoringResolver
alias OliWeb.Common.Breadcrumb
alias Oli.PartCompo... | 35.533333 | 107 | 0.649156 |
b2d63b8b2b172f073c4be85d5796392f9e179007 | 406 | ex | Elixir | web/views/bootstrap_view.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | web/views/bootstrap_view.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | web/views/bootstrap_view.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.V1.BootstrapView do
use Cog.Web, :view
def render("status.json", %{status: status}) do
%{bootstrap: %{bootstrap_status: status}}
end
def render("bootstrapped.json", _) do
%{errors: %{bootstrap: "Already bootstrapped"}}
end
def render("bootstrap.json", %{user: user}) do
%{bootstr... | 23.882353 | 51 | 0.642857 |
b2d640ec6542aadf410356166d0cc57dc0ada5be | 603 | exs | Elixir | priv/repo/migrations/20190219202720_create_season.exs | elarkham/animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | 1 | 2018-01-02T06:59:08.000Z | 2018-01-02T06:59:08.000Z | priv/repo/migrations/20190219202720_create_season.exs | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190219202720_create_season.exs | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | defmodule Animu.Repo.Migrations.CreateSeason do
use Ecto.Migration
def change do
create table(:season) do
add :year, :integer
add :cour, :citext
add :name, :string
add :slug, :citext
add :sort, :citext
end
create unique_index(:season, [:cour, :year], name: :season_cour_ye... | 25.125 | 79 | 0.658375 |
b2d6815b58bd34a682dc8eb7521fa6926e113887 | 1,738 | exs | Elixir | test/kuddle/tokenizer_test.exs | IceDragon200/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | 12 | 2021-09-14T15:35:13.000Z | 2022-03-20T20:10:55.000Z | test/kuddle/tokenizer_test.exs | sthagen/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | null | null | null | test/kuddle/tokenizer_test.exs | sthagen/kuddle | 2c65f8a90f883387bf1e10e70ec6ec14d89065b1 | [
"MIT"
] | 1 | 2021-09-15T13:53:38.000Z | 2021-09-15T13:53:38.000Z | defmodule Kuddle.TokenizerTest do
use ExUnit.Case, async: true
import Kuddle.Tokenizer
describe "tokenize/1 (good form)" do
test "cannot tokenize out of range utf-8 value" do
assert {:ok, [{:term, "n"}], "\u{10FFFF}"} = tokenize("n\u{10FFFF}")
assert {:ok, tokens, ""} = tokenize("n\u{10FFFE}")
... | 20.447059 | 74 | 0.445339 |
b2d6939c7d6f2a63300da9a951e746bbcb086e64 | 2,094 | ex | Elixir | lib/implied/photo.ex | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | 18 | 2016-02-20T12:19:08.000Z | 2021-05-26T07:57:09.000Z | lib/implied/photo.ex | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | 17 | 2018-07-20T19:10:58.000Z | 2022-02-24T04:07:37.000Z | lib/implied/photo.ex | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | 7 | 2016-11-06T23:13:55.000Z | 2021-02-20T09:36:49.000Z | defmodule Microformats2.Items.Implied.Photo do
@moduledoc false
import Microformats2.Helpers
alias Microformats2.Items
def implied_value(root, doc_url, doc, opts) do
val = implied_photo_attrval(root, doc_url, doc, opts)
if blank?(val),
do: implied_photo_deep(root, doc_url, doc, opts),
els... | 30.794118 | 98 | 0.608883 |
b2d6bc98d7d7d30da3a6e59ac027877a958e1345 | 5,383 | ex | Elixir | lib/kane/subscription.ex | peburrows/murdoch | 731d73b4c0c0734a777991f330638c89ed1d16ec | [
"MIT"
] | 99 | 2016-04-28T13:45:44.000Z | 2021-12-03T06:48:28.000Z | lib/kane/subscription.ex | peburrows/murdoch | 731d73b4c0c0734a777991f330638c89ed1d16ec | [
"MIT"
] | 29 | 2016-04-29T23:22:35.000Z | 2022-03-15T16:41:34.000Z | lib/kane/subscription.ex | peburrows/murdoch | 731d73b4c0c0734a777991f330638c89ed1d16ec | [
"MIT"
] | 46 | 2016-03-21T18:21:38.000Z | 2022-03-23T07:49:42.000Z | defmodule Kane.Subscription do
defstruct name: nil, topic: nil, ack_deadline: 10, filter: nil
alias Kane.Topic
alias Kane.Message
alias Kane.Client
@type s :: %__MODULE__{name: binary}
def create(%__MODULE__{} = sub) do
case Kane.Client.put(path(sub, :create), data(sub, :create)) do
{:ok, body, ... | 27.747423 | 97 | 0.603753 |
b2d6d6c8f5efd9b401ec0a9849be1a511a048d50 | 355 | exs | Elixir | priv/repo/seeds.exs | LKlemens/fancy_chat | 15ecd005a9b4cc8e3bb5548a942069896811d234 | [
"MIT"
] | 1 | 2020-07-27T14:33:02.000Z | 2020-07-27T14:33:02.000Z | priv/repo/seeds.exs | LKlemens/fancy_chat | 15ecd005a9b4cc8e3bb5548a942069896811d234 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | LKlemens/fancy_chat | 15ecd005a9b4cc8e3bb5548a942069896811d234 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# FancyChat.Repo.insert!(%FancyChat.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 29.583333 | 61 | 0.709859 |
b2d6f71caacffa8872def25c33c6ba1b21d2908b | 542 | ex | Elixir | lib/instream/data/read.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | lib/instream/data/read.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | lib/instream/data/read.ex | manulitic/instream | 5ad521dcf6a456325ba30b4c0dbb40f1f5107f32 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Data.Read do
@moduledoc false
alias Instream.Query
@doc """
Creates a reading query object from a raw query string.
Valid options for read queries are:
- `:method` - whether to use a "GET" or "POST" request (as atom)
- `:precision` - see `Instream.Encoder.Precision` for available va... | 22.583333 | 72 | 0.638376 |
b2d726da9c5f87d3c156919e3bd7d430d427ccb5 | 3,468 | ex | Elixir | lib/stargate/receiver/acknowledger.ex | jeffgrunewald/stargate | d80e5376a831c8fae232434e4d305784464f196a | [
"Apache-2.0"
] | 33 | 2019-11-09T09:12:18.000Z | 2022-02-24T05:22:20.000Z | lib/stargate/receiver/acknowledger.ex | tspannhw/stargate | d80e5376a831c8fae232434e4d305784464f196a | [
"Apache-2.0"
] | 7 | 2019-11-28T06:52:18.000Z | 2021-10-07T09:09:16.000Z | lib/stargate/receiver/acknowledger.ex | tspannhw/stargate | d80e5376a831c8fae232434e4d305784464f196a | [
"Apache-2.0"
] | 7 | 2020-06-30T10:37:59.000Z | 2021-11-26T06:54:23.000Z | defmodule Stargate.Receiver.Acknowledger do
@moduledoc """
Defines the `Stargate.Receiver.Acknowledger` GenStage process
that acts as the final consumer in the receive pipeline to
acknowledge successful processing of messages back to Pulsar
to allow more messages to be sent and for the cluster to
delete mes... | 30.156522 | 95 | 0.664648 |
b2d72b90c3c25f0804a1a05457ac85c9f5178335 | 2,451 | ex | Elixir | lib/stone.ex | MillionIntegrals/stone | 63cc7530241b53667a28afc2259c3199d912b839 | [
"MIT"
] | null | null | null | lib/stone.ex | MillionIntegrals/stone | 63cc7530241b53667a28afc2259c3199d912b839 | [
"MIT"
] | null | null | null | lib/stone.ex | MillionIntegrals/stone | 63cc7530241b53667a28afc2259c3199d912b839 | [
"MIT"
] | null | null | null | defmodule Stone do
@moduledoc ~S"""
This project tries to reduce boilerplate when writing Elixir `GenServer`s by
making use of language metaprogramming capabilities.
## Functionality
This project helps remove boilerplate common when implementing `GenServer`
behaviour in Elixir. In particular, it can be us... | 24.267327 | 80 | 0.671155 |
b2d79b6c71273604f143aba7e655576d6a0c3d15 | 2,421 | ex | Elixir | lib/auto_api/states/vehicle_location_state.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | lib/auto_api/states/vehicle_location_state.ex | highmobility/auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 5 | 2020-07-16T07:20:21.000Z | 2021-09-22T10:18:04.000Z | lib/auto_api/states/vehicle_location_state.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 38.428571 | 114 | 0.713755 |
b2d7a4c20a6f223fd5984df804a1cbaf15de6120 | 1,898 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/connection_types_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/connection_types_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/connection_types_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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.215686 | 163 | 0.75764 |
b2d7c822e09bc9b172cef8045789488c47f6cc6e | 1,759 | exs | Elixir | mix.exs | barthez/erlex | cd0ee37c0a04b7dca24f7f69878513fb57760c60 | [
"Apache-2.0"
] | null | null | null | mix.exs | barthez/erlex | cd0ee37c0a04b7dca24f7f69878513fb57760c60 | [
"Apache-2.0"
] | null | null | null | mix.exs | barthez/erlex | cd0ee37c0a04b7dca24f7f69878513fb57760c60 | [
"Apache-2.0"
] | null | null | null | defmodule Erlex.MixProject do
use Mix.Project
def project do
[
app: :erlex,
version: "0.2.5",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
test_coverage: [tool: ExCoverall... | 23.144737 | 95 | 0.538374 |
b2d801ab016a982160505dce1c828c3ad6b9200d | 94 | exs | Elixir | test/phx_i18n_example_web/views/page_view_test.exs | paulfioravanti/phx_liveview_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"MIT"
] | 9 | 2020-01-18T23:27:36.000Z | 2021-12-22T04:56:14.000Z | test/phx_i18n_example_web/views/page_view_test.exs | paulfioravanti/phx_liveview_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"MIT"
] | 6 | 2020-03-29T10:53:33.000Z | 2021-05-22T12:22:54.000Z | test/phx_i18n_example_web/views/page_view_test.exs | paulfioravanti/phx_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"MIT"
] | null | null | null | defmodule PhxI18nExampleWeb.PageViewTest do
use PhxI18nExampleWeb.ConnCase, async: true
end
| 23.5 | 45 | 0.851064 |
b2d81bd5a2466bc98ceb1d66eac2475b2821526a | 1,369 | exs | Elixir | mix.exs | dunyakirkali/format_parser.ex | 418a6ff5d83be4bcaaa057b4f7eb652c1add2ae6 | [
"Apache-2.0"
] | 4 | 2021-03-25T22:04:48.000Z | 2021-12-24T21:25:33.000Z | mix.exs | dunyakirkali/format_parser.ex | 418a6ff5d83be4bcaaa057b4f7eb652c1add2ae6 | [
"Apache-2.0"
] | 15 | 2021-03-23T04:09:06.000Z | 2022-03-24T04:08:14.000Z | mix.exs | dunyakirkali/format_parser.ex | 418a6ff5d83be4bcaaa057b4f7eb652c1add2ae6 | [
"Apache-2.0"
] | null | null | null | defmodule FormatParser.Mixfile do
use Mix.Project
def project do
[
app: :format_parser,
version: "1.3.2",
elixir: "~> 1.4",
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description(),
test_coverage: [tool: ExCoveralls],
... | 22.816667 | 72 | 0.563915 |
b2d85b905135b6953b36dafad21dc6bf2feecf79 | 415 | exs | Elixir | priv/repo/migrations/20181113082544_create_queue_source_presets.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | priv/repo/migrations/20181113082544_create_queue_source_presets.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | priv/repo/migrations/20181113082544_create_queue_source_presets.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | defmodule Cineplex.Repo.Migrations.CreateQueueSourcePresets do
use Ecto.Migration
def change do
create table(:queue_source_presets) do
add :name, :string
add :parameters, :map
add :source_id, references(:queue_sources)
timestamps()
end
create index(:queue_source_presets, [:so... | 23.055556 | 74 | 0.708434 |
b2d87d3669f9ba60b5488f7194a43f9f477fd723 | 1,855 | ex | Elixir | lib/bitcoin/chain_params/testnet.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | lib/bitcoin/chain_params/testnet.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/chain_params/testnet.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.ChainParams.Testnet do
@moduledoc """
List of constants associated with the Bitcoin testnet (v3).
https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp
"""
defmacro __using__(_opts) do
quote do
@genesis_block "01000000000000000000000000000000000000000000000000000... | 36.372549 | 593 | 0.731536 |
b2d89907c67072a22be54b152627c87230598c20 | 12,734 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disk.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/disk.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 74.034884 | 490 | 0.717921 |
b2d8a27e571d8ddab751158d6dc541116a98dd08 | 2,349 | ex | Elixir | lib/mix/lib/mix/tasks/compile.protocols.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.protocols.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.protocols.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Protocols do
use Mix.Task
@moduledoc ~S"""
Consolidates all protocols in all paths.
This task is automatically invoked whenever the project
enables `:consolidate_protocols` or `:build_embedded` in
its configuration.
## Consolidation
Protocol consolidation is useful in pro... | 28.646341 | 95 | 0.695189 |
b2d8a5658ed6e86803870e0ecd5ec38b6a509cfc | 52 | ex | Elixir | lib/ueberauth_eve_sso.ex | lukasni/ueberauth-eve-sso | d0ebf3e37317f0482df0258a02089d0559c8995a | [
"MIT"
] | null | null | null | lib/ueberauth_eve_sso.ex | lukasni/ueberauth-eve-sso | d0ebf3e37317f0482df0258a02089d0559c8995a | [
"MIT"
] | null | null | null | lib/ueberauth_eve_sso.ex | lukasni/ueberauth-eve-sso | d0ebf3e37317f0482df0258a02089d0559c8995a | [
"MIT"
] | null | null | null | defmodule UeberauthEVESSO do
@moduledoc false
end
| 13 | 28 | 0.826923 |
b2d92b23edc021b550cf1e1315189b8f8f7fb556 | 193 | ex | Elixir | lib/phone/cn.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/cn.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/cn.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.CN do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(86)()(.+)/
def country, do: "China"
def a2, do: "CN"
def a3, do: "CHN"
matcher :regex, ["86"]
end
| 14.846154 | 32 | 0.590674 |
b2d9858963573b56851291993f123a0b87d92ac8 | 2,640 | ex | Elixir | elixir/lib/syslog.ex | jtarchie/syslog | 2281c7b3147bd611ad68e32ba7d06003670a3862 | [
"MIT"
] | null | null | null | elixir/lib/syslog.ex | jtarchie/syslog | 2281c7b3147bd611ad68e32ba7d06003670a3862 | [
"MIT"
] | 1 | 2018-04-28T04:53:46.000Z | 2018-06-19T03:28:56.000Z | elixir/lib/syslog.ex | jtarchie/syslog | 2281c7b3147bd611ad68e32ba7d06003670a3862 | [
"MIT"
] | null | null | null | defmodule Syslog do
@compile [:native, {:hipe, [:verbose, :o3]}]
use Bitwise
defmodule Element do
@type t :: %__MODULE__{
id: String.t(),
properties: list(Property.t())
}
defstruct [:id, :properties]
end
defmodule Property do
@type t :: %__MODULE__{
... | 23.783784 | 95 | 0.574242 |
b2d9b307af6244a6c0c52d1f313ff9601745e0c1 | 515 | exs | Elixir | api/test/responda_me_web/controllers/api/register_user_controller_test.exs | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | api/test/responda_me_web/controllers/api/register_user_controller_test.exs | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | api/test/responda_me_web/controllers/api/register_user_controller_test.exs | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | defmodule Responda.MeWeb.Api.RegisterUserControllerTest do
use Responda.MeWeb.ConnCase, async: true
import Responda.Me.AccountsFixtures
describe "POST /api/users/sessions" do
test "can register a user", %{conn: conn} do
conn = post(conn, Routes.api_register_user_path(conn, :create),
first_name... | 27.105263 | 69 | 0.68932 |
b2da014e7b6c8dfa98a1e845d98a30a007fc33cf | 8,730 | ex | Elixir | lib/oli_web/controllers/institution_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/controllers/institution_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/controllers/institution_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.InstitutionController do
use OliWeb, :controller
import Phoenix.HTML.Tag
alias Oli.Institutions
alias Oli.Institutions.Institution
alias Oli.Predefined
alias Oli.Slack
alias OliWeb.Common.{Breadcrumb}
alias Oli.Branding
require Logger
def root_breadcrumbs() do
OliWeb.Admin.A... | 31.516245 | 134 | 0.629782 |
b2da05d5f64e938a97548ff588131ce71b0fd426 | 992 | ex | Elixir | apps/server/co-api/lib/co_api/application.ex | gabe-santana/chess.open | 72db43245d144f9e9f94076eebbec94d2fc52a77 | [
"MIT"
] | null | null | null | apps/server/co-api/lib/co_api/application.ex | gabe-santana/chess.open | 72db43245d144f9e9f94076eebbec94d2fc52a77 | [
"MIT"
] | null | null | null | apps/server/co-api/lib/co_api/application.ex | gabe-santana/chess.open | 72db43245d144f9e9f94076eebbec94d2fc52a77 | [
"MIT"
] | null | null | null | defmodule CoApi.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
CoApi.Repo,
# Start the Telemetry supervisor
CoApiWeb.Te... | 28.342857 | 63 | 0.696573 |
b2da11422688c7b329d1b9f885a52a76ed9f1f6b | 4,180 | ex | Elixir | lib/token.ex | allenan/magic-admin-elixir | e5888eae099b2ab7773b5ed7a8dfbd3721402ff4 | [
"Apache-2.0"
] | 1 | 2022-02-01T02:53:03.000Z | 2022-02-01T02:53:03.000Z | lib/token.ex | allenan/magic-admin-elixir | e5888eae099b2ab7773b5ed7a8dfbd3721402ff4 | [
"Apache-2.0"
] | 1 | 2022-03-14T15:02:16.000Z | 2022-03-14T15:02:16.000Z | lib/token.ex | allenan/magic-admin-elixir | e5888eae099b2ab7773b5ed7a8dfbd3721402ff4 | [
"Apache-2.0"
] | null | null | null | defmodule Magic.Token do
@moduledoc """
Provides methods to interact with the DID Token.
"""
@nbf_grace_period 300
@typedoc """
A DID Token generated by a Magic user on the client-side.
"""
@type did_token :: String.t()
@typedoc """
A map of claims made by the DID Token
"""
@type claim :: %{
... | 27.866667 | 96 | 0.67488 |
b2da4aa8ea24ac689b435c7747d13b8e24ddd51d | 1,557 | ex | Elixir | lib/absinthe/schema/verification/unions.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-10-10T02:57:52.000Z | 2019-10-10T02:57:52.000Z | lib/absinthe/schema/verification/unions.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-09-23T21:26:01.000Z | 2019-09-23T21:26:01.000Z | lib/absinthe/schema/verification/unions.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Schema.Verification.Unions do
@moduledoc false
alias Absinthe.Schema
alias Absinthe.Type
@spec check(Schema.t()) :: Schema.t()
def check(schema) do
schema
|> unions
|> Enum.reduce(schema, fn %{types: concrete_types} = union, acc ->
check_resolvers(union, concrete_types, ... | 28.309091 | 119 | 0.640334 |
b2da787f71d776425d0a843410cf1a17cf0a78fd | 681 | ex | Elixir | lib/ofh/users/auth_user.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | lib/ofh/users/auth_user.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | lib/ofh/users/auth_user.ex | gnucifer/open-food-hub | 24632b6e8a01253c716db976d78a313746d5e38f | [
"BSD-3-Clause"
] | null | null | null | defmodule Ofh.Users.AuthUser do
use Ecto.Schema
import Ecto.Changeset
alias Ofh.Users.AuthUser
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "auth_users" do
field :auth_uid, :string
field :extra, :string
field :info, :string
field :provider, :string... | 25.222222 | 93 | 0.700441 |
b2da98633ea290efc6a0889467750cf390a342f1 | 12,901 | ex | Elixir | lib/menu/menu_item.ex | elixir-desktop/ex_sni | 9bbd4f18e271ddd66db54afd6409149fc6bebe4f | [
"MIT"
] | null | null | null | lib/menu/menu_item.ex | elixir-desktop/ex_sni | 9bbd4f18e271ddd66db54afd6409149fc6bebe4f | [
"MIT"
] | 1 | 2022-01-14T10:43:25.000Z | 2022-01-14T10:43:25.000Z | lib/menu/menu_item.ex | elixir-desktop/ex_sni | 9bbd4f18e271ddd66db54afd6409149fc6bebe4f | [
"MIT"
] | null | null | null | defmodule ExSni.Menu.Item do
alias ExSni.Icon.Info, as: IconInfo
alias ExSni.Menu
defstruct id: 0,
uid: "",
type: :standard,
enabled: true,
visible: true,
label: "",
icon: nil,
checked: false,
children: [],
... | 26.545267 | 99 | 0.601194 |
b2da9d179c4814791aca1cf1738bb270df2c6d5e | 1,615 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/check_consistency_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/check_consistency_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/check_consistency_response.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... | 34.361702 | 197 | 0.756037 |
b2dab301d3c26720b0614eaec7adfe24c295e745 | 1,090 | exs | Elixir | priv/repo/seeds.exs | SophieDeBenedetto/railway-ui | ceb253bccf63f278e93502e4dc6b113b31f6d8b2 | [
"MIT"
] | 2 | 2019-11-12T21:04:11.000Z | 2020-02-09T18:07:27.000Z | priv/repo/seeds.exs | SophieDeBenedetto/railway-ui | ceb253bccf63f278e93502e4dc6b113b31f6d8b2 | [
"MIT"
] | 4 | 2019-12-02T17:31:57.000Z | 2021-03-09T22:59:48.000Z | priv/repo/seeds.exs | SophieDeBenedetto/railway-ui | ceb253bccf63f278e93502e4dc6b113b31f6d8b2 | [
"MIT"
] | 2 | 2020-02-05T18:23:26.000Z | 2020-04-26T13:50:10.000Z | defmodule Seeder do
@repo Application.get_env(:railway_ipc, :repo)
alias RailwayIpc.Persistence.{ConsumedMessage, PublishedMessage}
def consumed_message_factory do
%ConsumedMessage{
uuid: Ecto.UUID.generate(),
message_type: "BatchCreated",
user_uuid: Ecto.UUID.generate(),
correlation_... | 27.25 | 86 | 0.645872 |
b2dab7c78adab9b8bbd038fcd8442b48cf0f4728 | 2,266 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_evaluation_metrics.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_evaluation_metrics.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_evaluation_metrics.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... | 36.548387 | 155 | 0.776699 |
b2dafc45cba697fadd4d80dd2178912af6518dd5 | 1,255 | ex | Elixir | elixir/rocketpay/lib/rocketpay_web/views/error_helpers.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | elixir/rocketpay/lib/rocketpay_web/views/error_helpers.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | elixir/rocketpay/lib/rocketpay_web/views/error_helpers.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.ErrorHelpers do
@moduledoc """
Conveniências para traduzir e construir mensagens de erro.
"""
@doc """
Traduz uma mensagem de erro usando gettext.
"""
def translate_error({msg, opts}) do
# Ao usar gettext, normalmente passamos as strings que queremos
# para traduzir como um... | 36.911765 | 78 | 0.694024 |
b2db26f912c292f0418b5c84cbd9bf0718d3ce5f | 2,018 | exs | Elixir | config/prod.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | config/prod.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | config/prod.exs | markglenn/shelving | d76a2df11186ace3fbca14e00a2b5010692b5ee0 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.035714 | 66 | 0.71556 |
b2db2aa8e53ea6be5c2db05741890adcd36f1d50 | 41,976 | ex | Elixir | lib/flop_phoenix.ex | OnigiriJack/flop_phoenix | 1f9f64ac9fef82b9e502c4d0f48207b202fcc691 | [
"MIT"
] | null | null | null | lib/flop_phoenix.ex | OnigiriJack/flop_phoenix | 1f9f64ac9fef82b9e502c4d0f48207b202fcc691 | [
"MIT"
] | null | null | null | lib/flop_phoenix.ex | OnigiriJack/flop_phoenix | 1f9f64ac9fef82b9e502c4d0f48207b202fcc691 | [
"MIT"
] | null | null | null | defmodule Flop.Phoenix do
@moduledoc """
Components for Phoenix and Flop.
## Introduction
Please refer to the [Readme](README.md) for an introduction.
## Customization
The default classes, attributes, texts and symbols can be overridden by
passing the `opts` assign. Since you probably will use the sam... | 35.067669 | 134 | 0.640223 |
b2db8382e9ef32830db086ddae55c7edf546392a | 1,573 | ex | Elixir | lib/html_playback_web/views/replay_player_view.ex | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | null | null | null | lib/html_playback_web/views/replay_player_view.ex | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | 2 | 2021-03-09T11:51:15.000Z | 2021-05-10T01:10:16.000Z | lib/html_playback_web/views/replay_player_view.ex | dbernazal/html_playback | 489c4a26ad3aafb9484a143f9352f0ce5dd26a7f | [
"MIT"
] | null | null | null | defmodule HtmlPlaybackWeb.ReplayPlayerView do
use Phoenix.LiveView
def render(assigns) do
HtmlPlaybackWeb.PageView.render("replay_player.html", assigns)
end
def handle_event("play", _value, socket) do
send(self(), {:render_snapshot, socket.assigns.snapshots})
{:noreply, assign(socket, snapshot_val... | 31.46 | 78 | 0.692308 |
b2db91907bb33b29c845314b99e9154c9476be6a | 358 | ex | Elixir | lib/types/workspace.ex | FreedomBen/tex | 8c94703c3dbd7e6adc40d4f29ff45568a6a152df | [
"MIT"
] | null | null | null | lib/types/workspace.ex | FreedomBen/tex | 8c94703c3dbd7e6adc40d4f29ff45568a6a152df | [
"MIT"
] | null | null | null | lib/types/workspace.ex | FreedomBen/tex | 8c94703c3dbd7e6adc40d4f29ff45568a6a152df | [
"MIT"
] | null | null | null | defmodule Tex.Types.Workspace do
@moduledoc false
use TypedStruct
use Tex.Util.StructBuilder
alias Tex.Types.Library
typedstruct do
field :name, String.t(), enforce: true, default: ""
field :path, String.t(), enforce: true, default: ""
field :installed_libraries, list(Library.t()), enforce: tru... | 21.058824 | 77 | 0.689944 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.