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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
977cd25a2899dd4ff1600e4863bcf43c72b9fcc7 | 66 | exs | Elixir | chat-api/test/test_helper.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | null | null | null | chat-api/test/test_helper.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | 3 | 2018-01-23T10:53:08.000Z | 2018-01-23T10:58:23.000Z | chat-api/test/test_helper.exs | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(Chat.Repo, :manual)
| 13.2 | 50 | 0.772727 |
977d414a138a293b279032c6d52862780e9e25c5 | 6,987 | ex | Elixir | lib/plug/session/cookie.ex | victorolinasc/plug | 9c459a396a3406d73371daf2631fd3682b254c86 | [
"Apache-2.0"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | deps/plug/lib/plug/session/cookie.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 4 | 2021-03-04T13:00:52.000Z | 2021-03-12T12:42:09.000Z | deps/plug/lib/plug/session/cookie.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | null | null | null | defmodule Plug.Session.COOKIE do
@moduledoc """
Stores the session in a cookie.
This cookie store is based on `Plug.Crypto.MessageVerifier`
and `Plug.Crypto.MessageEncryptor` which encrypts and signs
each cookie to ensure they can't be read nor tampered with.
Since this store uses crypto features, it requ... | 31.472973 | 97 | 0.678689 |
977d4b3c03fe6c55bfc58fb96b1d829fdad440e4 | 1,898 | ex | Elixir | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1/model/list_traffic_stats_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1/model/list_traffic_stats_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gmail_postmaster_tools/lib/google_api/gmail_postmaster_tools/v1/model/list_traffic_stats_response.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... | 37.96 | 157 | 0.750263 |
977d4ed73779a0914d2b36fc07604288e36bbe72 | 2,356 | exs | Elixir | apps/ewallet/priv/repo/seeders/auth_token.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet/priv/repo/seeders/auth_token.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/priv/repo/seeders/auth_token.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | # This is the seeding script for AuthToken.
alias EWallet.{CLI, Seeder}
alias EWalletDB.{AuthToken, User}
seeds = [
# Auth tokens for ewallet_api. The users with the given provider_user_id must already be seeded.
%{user: User.get_by_provider_user_id("provider_user_id01"), owner_app: :ewallet_api},
%{user: User.g... | 42.071429 | 98 | 0.668081 |
977d5cae40661dbe7c0f27c05abd39cd11ed4506 | 3,785 | ex | Elixir | lib/json_janitor.ex | mbramson/json_janitor | 1cf2b85d1503977e93a689d373d824c2f1c46804 | [
"MIT"
] | null | null | null | lib/json_janitor.ex | mbramson/json_janitor | 1cf2b85d1503977e93a689d373d824c2f1c46804 | [
"MIT"
] | null | null | null | lib/json_janitor.ex | mbramson/json_janitor | 1cf2b85d1503977e93a689d373d824c2f1c46804 | [
"MIT"
] | null | null | null | defmodule JsonJanitor do
@moduledoc """
`JsonJanitor` helps sanitize elixir terms so that they can be serialized to
JSON.
It makes some opinionated decisions to keep as much structure as possible
while guaranteeing that the resulting structure can be serialized to JSON.
"""
@doc """
Accepts anything a... | 27.627737 | 81 | 0.681374 |
977d6510dad1b3939be40872972aa8d742bf7831 | 1,912 | exs | Elixir | mix.exs | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | 9 | 2021-08-23T23:21:31.000Z | 2022-03-27T23:19:55.000Z | mix.exs | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | null | null | null | mix.exs | tamanugi/realworld-phoenix | 1c0f90234926550a9124863b3946934b8f2e19a4 | [
"MIT"
] | 1 | 2021-09-06T07:26:37.000Z | 2021-09-06T07:26:37.000Z | defmodule RealworldPhoenix.MixProject do
use Mix.Project
def project do
[
app: :realworld_phoenix,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
alia... | 27.710145 | 84 | 0.573745 |
977d80d1f4f989cf5efffeb7d42b4ec6ba0fab99 | 3,448 | exs | Elixir | test/gdex/websocket/client_test.exs | fracek/gdex | 20c56076991d3eb660bf1e424d6560cc5d96e97f | [
"Apache-2.0"
] | 7 | 2017-12-12T19:08:40.000Z | 2021-11-11T04:58:55.000Z | test/gdex/websocket/client_test.exs | fracek/gdex | 20c56076991d3eb660bf1e424d6560cc5d96e97f | [
"Apache-2.0"
] | null | null | null | test/gdex/websocket/client_test.exs | fracek/gdex | 20c56076991d3eb660bf1e424d6560cc5d96e97f | [
"Apache-2.0"
] | 2 | 2018-11-21T17:05:56.000Z | 2019-04-07T19:33:12.000Z | defmodule Gdex.Websocket.ClientTest do
use ExUnit.Case, async: false
alias Gdex.Config
alias Gdex.Websocket.State
defmodule MyHandler do
use Gdex.Websocket
def handle_connect(_gdax, state) do
send self(), :handle_connect_called
{:ok, state}
end
def handle_disconnect(reason, _gdax,... | 30.785714 | 105 | 0.687065 |
977da5630f4e9b42004150280b91709679b82136 | 1,476 | exs | Elixir | mix.exs | nallwhy/life_cycle_hook | c577e059f0e4c99fe617f377ceedc413df09af45 | [
"MIT"
] | 6 | 2022-02-21T19:00:16.000Z | 2022-03-20T06:34:40.000Z | mix.exs | nallwhy/life_cycle_hook | c577e059f0e4c99fe617f377ceedc413df09af45 | [
"MIT"
] | 1 | 2022-02-15T00:03:29.000Z | 2022-02-15T11:40:08.000Z | mix.exs | nallwhy/life_cycle_hook | c577e059f0e4c99fe617f377ceedc413df09af45 | [
"MIT"
] | 1 | 2022-02-13T09:36:12.000Z | 2022-02-13T09:36:12.000Z | defmodule LifeCycleHook.MixProject do
use Mix.Project
@source_url "https://github.com/nallwhy/life_cycle_hook"
@version "0.8.0"
def project do
[
app: :life_cycle_hook,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.... | 22.707692 | 79 | 0.554201 |
977db06cd7199b1527cb3f63de8eea6ced1fd484 | 1,220 | ex | Elixir | test/support/conn_case.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | 12 | 2020-12-31T21:53:57.000Z | 2021-02-12T15:18:17.000Z | test/support/conn_case.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | null | null | null | test/support/conn_case.ex | juliandicks/phoenix-startbootstrap-sb-admin-2 | 609e78528684b00ab7228abc136c1c2b692590de | [
"MIT"
] | 2 | 2021-05-13T22:09:56.000Z | 2021-10-03T02:45:54.000Z | defmodule DemoWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the t... | 27.727273 | 66 | 0.719672 |
977ddf09a06713144d258b0b1f59340552ab268c | 630 | ex | Elixir | apps/note_it/lib/groups/group.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it/lib/groups/group.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it/lib/groups/group.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | defmodule NoteIt.Group do
use Ecto.Schema
import Ecto.Changeset
alias NoteIt.{User, Note}
schema "groups" do
field :name, :string
belongs_to :owner, User
has_many :notes, Note
many_to_many :users, User, join_through: "groups_users"
timestamps()
end
@required_fields [:name]
def chan... | 23.333333 | 67 | 0.665079 |
977df1ce5ddcff4ab2fb87d687bbbc77e63d9631 | 7,405 | exs | Elixir | lib/elixir/test/elixir/version_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/version_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/version_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule VersionTest do
use ExUnit.Case, async: true
doctest Version
alias Version.Parser, as: P
alias Version, as: V
test "compare/2 with valid versions" do
assert :gt == V.compare("1.0.1", "1.0.0")
assert :gt == V.compare("1.1.0", "1.0.1")
... | 32.056277 | 108 | 0.499392 |
977df99f1680853b712ba9e6ab7a920b028c7c1a | 17,528 | ex | Elixir | lib/x509/rdn_sequence.ex | r-icarus/x509 | 50bfc29d79a22d29903323c016cfd726a5fe2d78 | [
"BSD-3-Clause"
] | null | null | null | lib/x509/rdn_sequence.ex | r-icarus/x509 | 50bfc29d79a22d29903323c016cfd726a5fe2d78 | [
"BSD-3-Clause"
] | null | null | null | lib/x509/rdn_sequence.ex | r-icarus/x509 | 50bfc29d79a22d29903323c016cfd726a5fe2d78 | [
"BSD-3-Clause"
] | null | null | null | defmodule X509.RDNSequence do
@moduledoc """
Convenience functions for creating `:rdnSquence` tuples, as defined in
Erlang's `:public_key` module as the `issuer_name()` type, and representing
the X.509 RDNSequence type. RDNSequences are primarily used for the Subject
and Issuer fields of certificates, as well... | 37.694624 | 98 | 0.679427 |
977dfd3628fc6e1187a0125260cf62d5ab20987b | 1,996 | ex | Elixir | apps/astarte_appengine_api/lib/astarte_appengine_api/application.ex | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:22.000Z | 2020-02-04T13:15:22.000Z | apps/astarte_appengine_api/lib/astarte_appengine_api/application.ex | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-01-20T09:52:48.000Z | 2020-01-20T09:52:48.000Z | apps/astarte_appengine_api/lib/astarte_appengine_api/application.ex | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:50.000Z | 2020-02-04T13:15:50.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... | 33.266667 | 75 | 0.741483 |
977e2b6354c9c231ce7965b2a6a729ede61af7e5 | 64 | ex | Elixir | lib/davis/stream_handler.ex | jquadrino/davis | 28b405725855303b7e78ed5db22ded223dfb2dc8 | [
"Apache-2.0"
] | 1 | 2019-08-01T22:51:17.000Z | 2019-08-01T22:51:17.000Z | lib/davis/stream_handler.ex | jquadrino/davis | 28b405725855303b7e78ed5db22ded223dfb2dc8 | [
"Apache-2.0"
] | null | null | null | lib/davis/stream_handler.ex | jquadrino/davis | 28b405725855303b7e78ed5db22ded223dfb2dc8 | [
"Apache-2.0"
] | null | null | null | defmodule Davis.StreamHandler do
use Davis.Stream.Handler
end
| 16 | 32 | 0.828125 |
977e2bd0186884acbe436b9ce6aaa0c84aafe2f5 | 64 | ex | Elixir | lib/tnd/compendiums/vehicle_weapon.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | lib/tnd/compendiums/vehicle_weapon.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | 1 | 2021-05-11T14:31:58.000Z | 2021-05-11T14:31:58.000Z | lib/tnd/compendiums/vehicle_weapon.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | defmodule Tnd.Compendiums.VehicleWeapon do
use Tnd.Schema
end
| 16 | 42 | 0.828125 |
977e39e9521a19ff0dec0b36d3423aceafad2f55 | 2,842 | ex | Elixir | lib/basic/addresses.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | lib/basic/addresses.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | lib/basic/addresses.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | defmodule Basic.Addresses do
@moduledoc """
The Addresses context.
"""
import Ecto.Query, warn: false
alias Basic.Repo
alias Basic.Addresses.Address
@doc """
Returns the list of addresses.
## Examples
iex> list_addresses()
[%Address{}, ...]
"""
def list_addresses do
Repo.all(... | 21.208955 | 141 | 0.581281 |
977e488272b58046a908566ab8a3f3d80e608519 | 112 | ex | Elixir | phoenixApp/lib/phoenixApp/repo.ex | felipe-higino/learning-elixir-nlw4 | 5eb093bf205c3f5362189f6cc7cd0d3f0de7076d | [
"MIT"
] | null | null | null | phoenixApp/lib/phoenixApp/repo.ex | felipe-higino/learning-elixir-nlw4 | 5eb093bf205c3f5362189f6cc7cd0d3f0de7076d | [
"MIT"
] | null | null | null | phoenixApp/lib/phoenixApp/repo.ex | felipe-higino/learning-elixir-nlw4 | 5eb093bf205c3f5362189f6cc7cd0d3f0de7076d | [
"MIT"
] | null | null | null | defmodule PhoenixApp.Repo do
use Ecto.Repo,
otp_app: :phoenixApp,
adapter: Ecto.Adapters.Postgres
end
| 18.666667 | 35 | 0.741071 |
977e90cc790e3ad4e275fa476a42a6d39db2d8f6 | 68 | ex | Elixir | lib/squarestore_web/views/tos_view.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | lib/squarestore_web/views/tos_view.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | lib/squarestore_web/views/tos_view.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | defmodule SquarestoreWeb.TosView do
use SquarestoreWeb, :view
end
| 17 | 35 | 0.823529 |
977e9a9fd989fa58bf19c109f8f9d950d83dee6a | 177 | exs | Elixir | exercises/03-processes/02-send-receive/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/03-processes/02-send-receive/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/03-processes/02-send-receive/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Exercise do
def print() do
receive do
message -> IO.puts(message)
end
end
end
pid = spawn(&Exercise.print/0)
send(pid, "Hello")
:timer.sleep(1000)
| 13.615385 | 33 | 0.649718 |
977eab384cb13ebb7060b251aa51c4ca4149081a | 2,060 | ex | Elixir | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/span_score.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/span_score.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/comment_analyzer/lib/google_api/comment_analyzer/v1alpha1/model/span_score.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.867925 | 369 | 0.717961 |
977ead3ff37000a838869bf04c1506b0bf479df5 | 898 | ex | Elixir | lib/console_web/abilities.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console_web/abilities.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console_web/abilities.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule ConsoleWeb.Abilities do
alias Console.Organizations.Membership
def can?(%Membership{role: "admin"}, _action, _controller) do
true
end
def can?(%Membership{role: "manager"}, action, controller) do
cond do
controller == ConsoleWeb.DataCreditController -> false
controller == Console... | 32.071429 | 93 | 0.693764 |
977eb5bdcb2d287ead70ad68b48ad51a2de83d00 | 920 | ex | Elixir | lib/elixoids/asteroid/rock.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 5 | 2016-07-05T13:42:33.000Z | 2020-12-07T14:12:16.000Z | lib/elixoids/asteroid/rock.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 70 | 2016-06-04T11:31:27.000Z | 2020-11-21T20:00:09.000Z | lib/elixoids/asteroid/rock.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 1 | 2016-07-05T17:10:05.000Z | 2016-07-05T17:10:05.000Z | defmodule Elixoids.Asteroid.Rock do
@moduledoc "Attributes of an asteroid"
alias Elixoids.World.Point
alias Elixoids.World.Velocity
defstruct pos: nil, velocity: %Velocity{}, radius: 0.0
# 45º
@quarter_pi_radians :math.pi() / 4.0
@doc """
Cleave the rock into 2 pieces
"""
def cleave(rock), do: E... | 23.589744 | 72 | 0.66413 |
977ee9207b7bda949f6744896a03a226e4f22c8c | 2,710 | ex | Elixir | lib/xdr/transactions/operations/liquidity_pool_withdraw.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/operations/liquidity_pool_withdraw.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/operations/liquidity_pool_withdraw.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.LiquidityPoolWithdraw do
@moduledoc """
Representation of Stellar `LiquidityPoolWithdraw` type.
"""
alias StellarBase.XDR.{PoolID, Int64}
@behaviour XDR.Declaration
@struct_spec XDR.Struct.new(
pool_id: PoolID,
amount: Int64,
... | 23.565217 | 71 | 0.565314 |
977eef40f40a9a0b81ded2622ec4d8809951bffa | 2,725 | exs | Elixir | apps/roll35_core/test/roll35_core/data/category_test.exs | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | 1 | 2021-08-07T09:43:28.000Z | 2021-08-07T09:43:28.000Z | apps/roll35_core/test/roll35_core/data/category_test.exs | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | 24 | 2020-11-24T19:18:46.000Z | 2022-02-28T08:03:36.000Z | apps/roll35_core/test/roll35_core/data/category_test.exs | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | null | null | null | defmodule Roll35Core.Data.CategoryTest do
@moduledoc false
use ExUnit.Case, async: true
alias Roll35Core.Data.Category
alias Roll35Core.Types
alias Roll35Core.TestHarness
@not_minor [:rod, :staff]
@testfile Path.join("priv", "category.yaml")
describe "Roll35Core.Data.Category.load_data/0" do
set... | 25.231481 | 87 | 0.61945 |
977ef7c433297a1875b0721739fa38090ebb81e6 | 194 | ex | Elixir | web/controllers/page_controller.ex | jschoch/reflux_eventbroker_react_phoenix_elixir | 31a6ca7ccf5914a5c02f16c5a3cbf0bdb3d0be2d | [
"MIT"
] | 5 | 2015-08-18T09:25:47.000Z | 2021-01-19T04:52:18.000Z | web/controllers/page_controller.ex | jschoch/reflux_eventbroker_react_phoenix_elixir | 31a6ca7ccf5914a5c02f16c5a3cbf0bdb3d0be2d | [
"MIT"
] | 1 | 2015-08-26T17:37:23.000Z | 2015-08-29T12:38:56.000Z | web/controllers/page_controller.ex | jschoch/reflux_eventbroker_react_phoenix_elixir | 31a6ca7ccf5914a5c02f16c5a3cbf0bdb3d0be2d | [
"MIT"
] | null | null | null | defmodule RefluxEventbrokerReactPhoenixElixir.PageController do
use RefluxEventbrokerReactPhoenixElixir.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 24.25 | 63 | 0.809278 |
977f000baea84da352ddb8bd2fedf172006abd78 | 508 | ex | Elixir | lib/macetada_plug/ElixirPlug.ex | macetada/plug | 9b68083442a2e2eb9586dcb598ff54aa564a6211 | [
"Unlicense"
] | null | null | null | lib/macetada_plug/ElixirPlug.ex | macetada/plug | 9b68083442a2e2eb9586dcb598ff54aa564a6211 | [
"Unlicense"
] | null | null | null | lib/macetada_plug/ElixirPlug.ex | macetada/plug | 9b68083442a2e2eb9586dcb598ff54aa564a6211 | [
"Unlicense"
] | null | null | null | defmodule ElixirPlug do
import Plug.Conn
def init(options) do
options
end
def call(conn, _opts) do
conn
|> put_resp_content_type("text/plain")
|> send_resp(200, """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
... | 18.814815 | 74 | 0.643701 |
977f10ef7924821be02ab43c516839cb9a7b3413 | 31 | ex | Elixir | lib/black_magic21.ex | Kernael/Blackmagic21 | 011d0d51bbc5baf6fb7a9bdba0b7a55215e7a9fd | [
"MIT"
] | null | null | null | lib/black_magic21.ex | Kernael/Blackmagic21 | 011d0d51bbc5baf6fb7a9bdba0b7a55215e7a9fd | [
"MIT"
] | null | null | null | lib/black_magic21.ex | Kernael/Blackmagic21 | 011d0d51bbc5baf6fb7a9bdba0b7a55215e7a9fd | [
"MIT"
] | null | null | null | defmodule BlackMagic21 do
end
| 7.75 | 25 | 0.83871 |
977f2cc9769c5289c2e389eb4d6ecc22f5adb1f5 | 2,386 | ex | Elixir | lib/jerboa/format/body.ex | ACollectionOfAtoms/jerboa | 16000d450bb60b544b5c91f0fd7540a31b6c90b8 | [
"Apache-2.0"
] | 14 | 2016-12-22T10:38:34.000Z | 2021-03-11T23:20:26.000Z | lib/jerboa/format/body.ex | ACollectionOfAtoms/jerboa | 16000d450bb60b544b5c91f0fd7540a31b6c90b8 | [
"Apache-2.0"
] | 94 | 2016-12-22T13:13:29.000Z | 2021-02-10T14:22:32.000Z | lib/jerboa/format/body.ex | ACollectionOfAtoms/jerboa | 16000d450bb60b544b5c91f0fd7540a31b6c90b8 | [
"Apache-2.0"
] | 6 | 2017-04-03T20:23:00.000Z | 2022-03-06T10:14:30.000Z | defmodule Jerboa.Format.Body do
@moduledoc false
alias Jerboa.Format.Body.Attribute
alias Jerboa.Format.AttributeFormatError
alias Jerboa.Format.Meta
alias Jerboa.Format.MessageIntegrity
@message_integrity MessageIntegrity.type_code
@attr_header_bytes 4
@spec encode(Meta.t) :: Meta.t
def encode(%Me... | 28.070588 | 81 | 0.644174 |
977f4c1c2f2bae90be53105a68fe51753bcbcf79 | 2,881 | ex | Elixir | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/pivot.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/pivot.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_data/lib/google_api/analytics_data/v1alpha/model/pivot.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... | 48.830508 | 394 | 0.729608 |
977f6464650c55534321ba0ca378fce10c8c9cfd | 4,528 | exs | Elixir | mix.exs | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | 1 | 2019-04-29T12:35:49.000Z | 2019-04-29T12:35:49.000Z | mix.exs | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | null | null | null | mix.exs | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | null | null | null | defmodule Hex.MixProject do
use Mix.Project
@version "0.19.1-dev"
{:ok, system_version} = Version.parse(System.version())
@elixir_version {system_version.major, system_version.minor, system_version.patch}
def project do
[
app: :hex,
version: @version,
elixir: "~> 1.0",
aliases: ... | 28.658228 | 95 | 0.613958 |
977fb84f549e928edcce7d444fd4e926d355551a | 1,554 | ex | Elixir | lib/add_on.ex | Packlane/braintree-elixir | 018ed351c64cdac577bf4acb93f73c1adddf70da | [
"MIT"
] | null | null | null | lib/add_on.ex | Packlane/braintree-elixir | 018ed351c64cdac577bf4acb93f73c1adddf70da | [
"MIT"
] | null | null | null | lib/add_on.ex | Packlane/braintree-elixir | 018ed351c64cdac577bf4acb93f73c1adddf70da | [
"MIT"
] | null | null | null | defmodule Braintree.AddOn do
@moduledoc """
Add-ons and discounts are created in the Control Panel. You cannot create or
update them through the API.
Add-ons and discounts can be applied manually on a case-by-case basis, or you
can associate them with certain plans to apply them automatically to new
subscr... | 28.777778 | 79 | 0.618404 |
977fbf78f3205e819884354d002765f089350f1e | 2,007 | exs | Elixir | test/bonny/server/watcher/response_buffer_test.exs | victoriavilasb/bonny | c5f2b3f69d8f4750d796a619d71692d76445b509 | [
"MIT"
] | 227 | 2018-12-30T20:13:47.000Z | 2022-03-26T03:49:07.000Z | test/bonny/server/watcher/response_buffer_test.exs | victoriavilasb/bonny | c5f2b3f69d8f4750d796a619d71692d76445b509 | [
"MIT"
] | 104 | 2018-12-20T02:16:28.000Z | 2022-03-28T07:18:06.000Z | test/bonny/server/watcher/response_buffer_test.exs | victoriavilasb/bonny | c5f2b3f69d8f4750d796a619d71692d76445b509 | [
"MIT"
] | 24 | 2019-02-14T10:18:09.000Z | 2022-02-08T04:18:32.000Z | defmodule Bonny.Server.Watcher.ResponseBufferTest do
use ExUnit.Case
alias Bonny.Server.Watcher.ResponseBuffer
test "get_lines with nothing" do
{events, _buffer} =
ResponseBuffer.new()
|> ResponseBuffer.get_lines()
assert [] == events
end
test "get_lines when adding one chunk" do
{e... | 25.0875 | 57 | 0.620827 |
977fd60219001f8ce4c071f7aa50d1fe7ffffdb4 | 427 | exs | Elixir | test/lib/auth0_ex/management/client_test.exs | warmwaffles/auth0_ex | d0d7ad895c4db79d366c9c55e289a944c891936c | [
"Apache-2.0"
] | 38 | 2016-08-31T12:44:19.000Z | 2021-06-17T18:23:21.000Z | test/lib/auth0_ex/management/client_test.exs | warmwaffles/auth0_ex | d0d7ad895c4db79d366c9c55e289a944c891936c | [
"Apache-2.0"
] | 24 | 2017-01-12T17:53:10.000Z | 2022-03-14T13:43:12.000Z | test/lib/auth0_ex/management/client_test.exs | warmwaffles/auth0_ex | d0d7ad895c4db79d366c9c55e289a944c891936c | [
"Apache-2.0"
] | 24 | 2017-01-27T20:51:57.000Z | 2022-03-11T19:58:40.000Z | defmodule Auth0Ex.Management.ClientTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias Auth0Ex.Management.Client
setup_all do
HTTPoison.start()
end
test "get all client" do
use_cassette "client_all" do
{:ok, all_clients} = Client.all(%{fields: "name"})
assert i... | 22.473684 | 56 | 0.681499 |
977fed6a36b8a1228c311e03a6bf83ae4aea23d0 | 295 | exs | Elixir | config/config.exs | 0x6a68/recaptcha | f93e57144b312764feca6cc669a762bf0f0116cd | [
"MIT"
] | null | null | null | config/config.exs | 0x6a68/recaptcha | f93e57144b312764feca6cc669a762bf0f0116cd | [
"MIT"
] | 1 | 2021-03-30T07:27:48.000Z | 2021-03-30T07:27:48.000Z | config/config.exs | steady-media/recaptcha | f93e57144b312764feca6cc669a762bf0f0116cd | [
"MIT"
] | null | null | null | use Mix.Config
config :recaptcha,
verify_url: "https://www.google.com/recaptcha/api/siteverify",
timeout: 5000,
public_key: "RECAPTCHA_PUBLIC_KEY",
secret: "RECAPTCHA_PRIVATE_KEY",
http_client: Recaptcha.Http
config :recaptcha, :json_library, Jason
import_config "#{Mix.env()}.exs"
| 22.692308 | 64 | 0.752542 |
97800e41bf3acfbe0ed493ff2f93456cd9b61e40 | 2,201 | ex | Elixir | lib/ble_live_sample_web/live/page_live.ex | khamada611/ble_live_sample | 058fa90048e5ef474f9185d370e7e3202e649041 | [
"Apache-2.0"
] | 4 | 2019-04-06T15:36:48.000Z | 2019-10-20T05:55:10.000Z | lib/ble_live_sample_web/live/page_live.ex | khamada611/ble_live_sample | 058fa90048e5ef474f9185d370e7e3202e649041 | [
"Apache-2.0"
] | null | null | null | lib/ble_live_sample_web/live/page_live.ex | khamada611/ble_live_sample | 058fa90048e5ef474f9185d370e7e3202e649041 | [
"Apache-2.0"
] | 1 | 2021-05-04T10:59:57.000Z | 2021-05-04T10:59:57.000Z | defmodule BleLiveSampleWeb.PageLive do
use BleLiveSampleWeb, :live_view
require Logger
@impl true
def mount(_params, _session, socket) do
img_file = "/images/puronama/puronama_selectdev.png"
serif = "Select BLE heart rate device, please."
{:ok, assign(socket, pronama: img_file, serif: serif, heart_... | 37.948276 | 150 | 0.676511 |
9780165dba7bfb2d9d478490d5499f43e6998575 | 709 | ex | Elixir | lib/bpr_api_web/gettext.ex | booster-pocket-router/bpr-api | c2164aaa0de149a80f85712555f0e32bb45922ff | [
"MIT"
] | null | null | null | lib/bpr_api_web/gettext.ex | booster-pocket-router/bpr-api | c2164aaa0de149a80f85712555f0e32bb45922ff | [
"MIT"
] | null | null | null | lib/bpr_api_web/gettext.ex | booster-pocket-router/bpr-api | c2164aaa0de149a80f85712555f0e32bb45922ff | [
"MIT"
] | null | null | null | defmodule BprApiWeb.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 BprApiWeb.Gettext
# Simple translation
gettext("Here is the... | 28.36 | 72 | 0.67701 |
978016b965f11a50de460daf8dcf6145f65eb991 | 2,149 | ex | Elixir | lib/vow/zero_or_more.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | 2 | 2020-06-18T06:24:24.000Z | 2021-02-21T02:16:37.000Z | lib/vow/zero_or_more.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | 45 | 2019-11-21T10:49:14.000Z | 2021-08-02T10:21:01.000Z | lib/vow/zero_or_more.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | null | null | null | defmodule Vow.ZeroOrMore do
@moduledoc false
use Vow.Utils.AccessShortcut,
type: :passthrough
defstruct vow: nil
@type t :: %__MODULE__{
vow: Vow.t()
}
@spec new(Vow.t()) :: t
def new(vow) do
%__MODULE__{vow: vow}
end
defimpl Vow.RegexOperator do
@moduledoc false
i... | 25.583333 | 93 | 0.562122 |
9780480db913789eafdb8e68eff60d2d39ddaafe | 119 | ex | Elixir | lib/control/applicative/writer.ex | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | 23 | 2015-10-04T20:49:56.000Z | 2022-01-09T19:35:52.000Z | lib/control/applicative/writer.ex | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | null | null | null | lib/control/applicative/writer.ex | slogsdon/elixir-control | 4136ce4fa6b62368b5f3bdf38708c7e28c4b256b | [
"MIT"
] | 2 | 2015-10-11T22:07:56.000Z | 2015-12-21T13:56:07.000Z | defimpl Control.Applicative, for: Data.Writer do
def apply(w, f) do
f |> Control.Functor.fmap(w.value)
end
end
| 19.833333 | 48 | 0.697479 |
978060bba48a35f9273201a2f2e32b7f7354cc95 | 326 | ex | Elixir | lib/badges/students/group.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | lib/badges/students/group.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | lib/badges/students/group.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | defmodule Badges.Students.Group do
use Ecto.Schema
import Ecto.Changeset
schema "groups" do
field :name, :string
has_many :students, Badges.Students.Student
timestamps()
end
@doc false
def changeset(group, attrs) do
group
|> cast(attrs, [:name])
|> validate_required([:name])
en... | 16.3 | 47 | 0.668712 |
9780639f6826ee9b0812a874483887db7d83a740 | 2,444 | exs | Elixir | test/river/response_test.exs | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 86 | 2016-08-19T21:59:28.000Z | 2022-01-31T20:14:18.000Z | test/river/response_test.exs | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 7 | 2016-09-27T14:44:16.000Z | 2017-08-08T14:57:45.000Z | test/river/response_test.exs | peburrows/river | e8968535d02a86e70a7942a690c8e461fed55913 | [
"MIT"
] | 4 | 2016-09-26T10:57:24.000Z | 2018-04-03T14:30:19.000Z | defmodule River.ResponseTest do
use ExUnit.Case, async: true
require River.FrameTypes
alias River.{Response, Frame, FrameTypes}
test "adding a data frame appends the payload to the body" do
assert %Response{
body: "full body",
frames: [%Frame{type: FrameTypes.data()}]
}... | 32.157895 | 93 | 0.536416 |
9780897fc381a264eb703618adbe36617ef86cd1 | 556 | ex | Elixir | web/models/list_item.ex | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | null | null | null | web/models/list_item.ex | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | null | null | null | web/models/list_item.ex | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | null | null | null | defmodule FutureCyborg.ListItem do
use FutureCyborg.Web, :model
schema "list_items" do
field :name, :string
belongs_to :shopping_list, FutureCyborg.ShoppingList
timestamps
end
@required_fields ~w(name shopping_list_id)
@optional_fields ~w()
@doc """
Creates a changeset based on the `model`... | 22.24 | 61 | 0.715827 |
978099cc934c8d264d723ca0b9194f7a168c3af8 | 778 | ex | Elixir | test/support/channel_case.ex | mpope9/Websheets | 9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | mpope9/Websheets | 9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc | [
"Apache-2.0"
] | 2 | 2018-12-23T03:51:26.000Z | 2018-12-23T04:53:18.000Z | test/support/channel_case.ex | mpope9/Websheets | 9509cfa5f0a58c0e21be64ddfea5c3228fd32cbc | [
"Apache-2.0"
] | null | null | null | defmodule WebsheetsWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts ... | 22.882353 | 58 | 0.727506 |
9780a155b7d11d99324381640618074d7b3507b3 | 10,451 | ex | Elixir | lib/nomad_client/api/nodes.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | 8 | 2021-09-04T21:22:53.000Z | 2022-02-22T22:48:38.000Z | lib/nomad_client/api/nodes.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | lib/nomad_client/api/nodes.ex | mrmstn/nomad_client | a586022e5eb4d166acba08b55b198ec079d4b118 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule NomadClient.Api.Nodes do
@moduledoc """
API calls for all endpoints tagged `Nodes`.
"""
alias NomadClient.Connection
import NomadClient.Req... | 35.188552 | 164 | 0.652856 |
9780cb31484a505eba9a67c3664931592beba19b | 1,832 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_web_detection_web_label.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_web_detection_web_label.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_web_detection_web_label.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... | 33.309091 | 219 | 0.730895 |
9781365e6c68ff211d47453934c40883d148ff52 | 3,663 | ex | Elixir | lib/asciinema/asciicasts/asciicast.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | lib/asciinema/asciicasts/asciicast.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | lib/asciinema/asciicasts/asciicast.ex | sergey-nechaev/asciinema-server | 64f87acec9c9b45fefa8bed8f70b41f0068ccb2b | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.Asciicasts.Asciicast do
use Ecto.Schema
import Ecto.Changeset
alias Asciinema.Accounts.User
alias Asciinema.Asciicasts.Asciicast
@default_theme "asciinema"
schema "asciicasts" do
field :version, :integer
field :file, :string
field :terminal_columns, :integer
field :term... | 29.071429 | 209 | 0.708982 |
978143a2030ae21b4ac9f09a7d3f30965071752c | 14,890 | exs | Elixir | lib/elixir/test/elixir/kernel/warning_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/elixir/test/elixir/kernel/warning_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/warning_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.WarningTest do
use ExUnit.Case
import ExUnit.CaptureIO
defp capture_err(fun) do
capture_io(:stderr, fun)
end
test "unused variable" do
assert capture_err(fn ->
Code.eval_string """
defmodule Sample do
def hello(arg... | 22.80245 | 186 | 0.572129 |
9781660f33e7cc55a695468f936462d7ba78f503 | 1,426 | ex | Elixir | clients/double_click_search/lib/google_api/double_click_search/v2/model/report_files.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_search/lib/google_api/double_click_search/v2/model/report_files.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_search/lib/google_api/double_click_search/v2/model/report_files.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 29.708333 | 83 | 0.746143 |
97816a2301f2198c613b1bd519a16cb2d495f816 | 1,140 | exs | Elixir | config/config.exs | spkane31/cc-rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 1 | 2020-06-28T19:31:07.000Z | 2020-06-28T19:31:07.000Z | config/config.exs | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 5 | 2019-07-25T17:00:39.000Z | 2019-07-25T17:12:07.000Z | config/config.exs | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"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.
# General application configuration
use Mix.Config
config :rankings, Rankings.Repo,
database: "ra... | 30.810811 | 86 | 0.764035 |
9781caddc22a239e15571905aea5bff2dc0b44d7 | 974 | ex | Elixir | lib/postscript/subscriber.ex | malomohq/postscript-elixir | 580a0be4c455ed6cc332df8e80344e8cff8610c9 | [
"MIT"
] | null | null | null | lib/postscript/subscriber.ex | malomohq/postscript-elixir | 580a0be4c455ed6cc332df8e80344e8cff8610c9 | [
"MIT"
] | 2 | 2021-03-16T21:16:04.000Z | 2021-03-18T07:04:35.000Z | lib/postscript/subscriber.ex | malomohq/postscript-elixir | 580a0be4c455ed6cc332df8e80344e8cff8610c9 | [
"MIT"
] | null | null | null | defmodule Postscript.Subscriber do
alias Postscript.{ Operation }
@doc """
Create a subscriber.
"""
@spec create(Keyword.t()) :: Operation.t()
def create(opts) do
%Operation{}
|> Map.put(:method, :post)
|> Map.put(:params, opts)
|> Map.put(:path, "/subscribers")
end
@doc """
Find a s... | 20.723404 | 56 | 0.565708 |
9781ccc666fac8e08581b161509fc6676a57d266 | 623 | exs | Elixir | nerves.exs | harmon25/nerves_system_rpi3_kiosk | 2f5e289455a9bda493a61bf025b23430bd37223f | [
"Apache-2.0"
] | null | null | null | nerves.exs | harmon25/nerves_system_rpi3_kiosk | 2f5e289455a9bda493a61bf025b23430bd37223f | [
"Apache-2.0"
] | null | null | null | nerves.exs | harmon25/nerves_system_rpi3_kiosk | 2f5e289455a9bda493a61bf025b23430bd37223f | [
"Apache-2.0"
] | null | null | null | use Mix.Config
version =
Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
pkg = :nerves_system_rpi3_kiosk
config pkg, :nerves_env,
type: :system,
version: version,
compiler: :nerves_package,
# artifact_url: [
# "https://github.com/nerves-project/#{pkg}/releases/download/v#{version}/#{pkg}-... | 20.096774 | 104 | 0.640449 |
9781da43222cf152804a6e854d1a3df3e9410e80 | 2,003 | exs | Elixir | config/prod.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 5 | 2019-07-27T14:57:38.000Z | 2020-11-01T00:26:32.000Z | config/prod.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 6 | 2019-07-29T03:45:23.000Z | 2021-05-10T03:49:39.000Z | config/prod.exs | kuroda/live_dendron | dd21ed5c53456765ea0c50a22bdf915c0c55c92f | [
"MIT"
] | 2 | 2019-07-29T02:17:02.000Z | 2020-02-17T17:59:05.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.767857 | 66 | 0.717424 |
9781ec7e31d0088dd6f7236762d899a31073e79c | 204 | ex | Elixir | lib/gatehouse_web/controllers/TestTokenController.ex | trutvo/gatehouse | 027d4dd35703d84e15b9b2297347350b9a8f5a6b | [
"Apache-2.0"
] | 1 | 2019-07-21T03:48:31.000Z | 2019-07-21T03:48:31.000Z | lib/gatehouse_web/controllers/TestTokenController.ex | trutvo/gatehouse | 027d4dd35703d84e15b9b2297347350b9a8f5a6b | [
"Apache-2.0"
] | 1 | 2021-03-07T17:54:41.000Z | 2021-03-07T17:54:41.000Z | lib/gatehouse_web/controllers/TestTokenController.ex | trutvo/gatehouse | 027d4dd35703d84e15b9b2297347350b9a8f5a6b | [
"Apache-2.0"
] | 2 | 2019-06-14T06:25:25.000Z | 2019-07-21T03:48:33.000Z | defmodule GatehouseWeb.TestTokenController do
use GatehouseWeb, :controller
def index(conn, _params) do
token = Guardian.Plug.current_claims(conn, [])
json conn, token
end
end | 25.5 | 54 | 0.696078 |
97823e6c120c5d1f7d23ea99106175babc1f8b38 | 1,825 | exs | Elixir | app/config/prod.exs | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | null | null | null | app/config/prod.exs | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | null | null | null | app/config/prod.exs | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | 1 | 2022-01-26T02:57:38.000Z | 2022-01-26T02:57:38.000Z | import 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,
# w... | 35.096154 | 66 | 0.703562 |
97827c15bcb102f1ee818a24e1e5e2658ccc7ef3 | 233 | ex | Elixir | apps/banking_api/lib/banking_api/operations.ex | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | apps/banking_api/lib/banking_api/operations.ex | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | apps/banking_api/lib/banking_api/operations.ex | francieleportugal/banking-api | 846c81dde3816042f32c2182985a2060485c5e7c | [
"Apache-2.0"
] | null | null | null | defmodule BankingApi.Operations do
@cash_withdrawal "e1eaecbf-bc86-4b26-b5d8-bb291b5ced04"
@transfer "c6be16bd-f3be-4019-9734-09967ce554a6"
defmacro cash_withdrawal, do: @cash_withdrawal
defmacro transfer, do: @transfer
end
| 29.125 | 57 | 0.802575 |
9782817495c83f48e6dab10ff2c77e52cae3600c | 5,283 | ex | Elixir | lib/tabula.ex | aerosol/Tabula | 1ed4bd1f955819ec887e319be1e1b0e73ef9090a | [
"MIT"
] | 89 | 2015-10-12T21:15:34.000Z | 2022-03-18T15:26:21.000Z | lib/tabula.ex | aerosol/Tabula | 1ed4bd1f955819ec887e319be1e1b0e73ef9090a | [
"MIT"
] | 15 | 2015-10-24T20:58:51.000Z | 2020-11-15T13:20:36.000Z | lib/tabula.ex | aerosol/Tabula | 1ed4bd1f955819ec887e319be1e1b0e73ef9090a | [
"MIT"
] | 9 | 2015-10-12T21:15:38.000Z | 2021-02-02T15:26:51.000Z | defmodule Tabula do
@moduledoc """
Tabula can transform a list of maps (structs too, e.g. Ecto schemas)
or Keywords into an ASCII/GitHub Markdown table.
"""
import Enum, only: [
concat: 2,
intersperse: 2,
map: 2,
max: 1,
with_index: 1,
zip: 2
]
@index "#"
@newline '\n'
@she... | 24.345622 | 88 | 0.568806 |
9782a89994dc0f18569ba78e5c92c9ed66daa0b8 | 3,587 | exs | Elixir | apps/admin_api/test/admin_api/v1/views/token_view_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/views/token_view_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/views/token_view_test.exs | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 29.644628 | 78 | 0.542515 |
9782e568064b08657d4b90651bfaa475acb02806 | 2,682 | ex | Elixir | lib/meeseeks/document/node.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/document/node.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/document/node.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Document.Node do
@moduledoc false
alias Meeseeks.{Document, Extractor}
alias Meeseeks.Document.{
Comment,
Data,
Doctype,
Element,
ProcessingInstruction,
Text
}
@type t :: struct
# types
@types [Comment, Data, Doctype, Element, ProcessingInstruction, Text]
... | 22.728814 | 72 | 0.671887 |
97836be97ff705343d5a7a8896ea0fb6905b3229 | 8,535 | exs | Elixir | test/phoenix_live_view/integrations/components_test.exs | bartekupartek/phoenix_live_view | 652daf654ed04fe306e848ca292fe683ad2898b1 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/components_test.exs | bartekupartek/phoenix_live_view | 652daf654ed04fe306e848ca292fe683ad2898b1 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/components_test.exs | bartekupartek/phoenix_live_view | 652daf654ed04fe306e848ca292fe683ad2898b1 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.ComponentTest do
use ExUnit.Case, async: false
use Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveViewTest.{Endpoint, DOM, StatefulComponent}
@endpoint Endpoint
@moduletag :capture_log
@moduletag session: %{names: ["chris", "jose"], from: nil}
setup config ... | 32.576336 | 107 | 0.522671 |
97837aeceadfc6733d76044abe3942c43a13f440 | 2,716 | exs | Elixir | test/commands_test.exs | jeffweiss/exirc | d56e1d93ef83d350606e489021a276f8a49e9480 | [
"MIT"
] | 147 | 2015-01-12T15:05:12.000Z | 2022-03-17T06:32:41.000Z | test/commands_test.exs | jeffweiss/exirc | d56e1d93ef83d350606e489021a276f8a49e9480 | [
"MIT"
] | 74 | 2015-01-24T23:07:53.000Z | 2021-04-23T14:27:43.000Z | test/commands_test.exs | jeffweiss/exirc | d56e1d93ef83d350606e489021a276f8a49e9480 | [
"MIT"
] | 51 | 2015-02-13T21:00:38.000Z | 2022-03-03T15:38:12.000Z | defmodule ExIRC.CommandsTest do
use ExUnit.Case, async: true
use ExIRC.Commands
test "Commands are formatted properly" do
expected = <<0o001, "TESTCMD", 0o001, ?\r, ?\n>>
assert expected == ctcp!("TESTCMD") |> IO.iodata_to_binary
expected = <<"PRIVMSG #testchan :", 0o001, "ACTION mind explodes!!", 0... | 55.428571 | 95 | 0.620398 |
978390367834c0f1db3547e9d8dccdba3243ab3e | 1,454 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/image_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/image_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/image_config.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... | 30.93617 | 108 | 0.740028 |
978391fff1fc84932aef9b57b5571dc11f4b6580 | 1,167 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/volume.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/volume.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/volume.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 30.710526 | 133 | 0.748072 |
9783a43f78c39d4dd825c45b271ede5a064faa94 | 3,332 | ex | Elixir | lib/teiserver/chat/libs/room_message_lib.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver/chat/libs/room_message_lib.ex | Jazcash/teiserver | fec14784901cb2965d8c1350fe84107c57451877 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/chat/libs/room_message_lib.ex | Jazcash/teiserver | fec14784901cb2965d8c1350fe84107c57451877 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Chat.RoomMessageLib do
use CentralWeb, :library
alias Teiserver.Chat.RoomMessage
# Functions
@spec icon :: String.t()
def icon, do: "far fa-???"
@spec colours :: {String.t(), String.t(), String.t()}
def colours, do: Central.Helpers.StylingHelper.colours(:default)
@spec make_favouri... | 26.870968 | 72 | 0.654262 |
9783e3fff4fbfb9252165f4304ab478d573adbb2 | 1,210 | exs | Elixir | config/config.exs | ScrimpyCat/SimpleMarkdownExtensionCLI | 9694d96f2fce5d500f10e39c428ae01952e95aec | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ScrimpyCat/SimpleMarkdownExtensionCLI | 9694d96f2fce5d500f10e39c428ae01952e95aec | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ScrimpyCat/SimpleMarkdownExtensionCLI | 9694d96f2fce5d500f10e39c428ae01952e95aec | [
"BSD-2-Clause"
] | 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
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.666667 | 73 | 0.764463 |
9783e633d3ae61f91bd2c65e1aeadedbf7232b2e | 4,862 | ex | Elixir | lib/wallaby/experimental/selenium.ex | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | null | null | null | lib/wallaby/experimental/selenium.ex | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | null | null | null | lib/wallaby/experimental/selenium.ex | studzien/wallaby | 263f37054d544293e52b751316a5699af54f238f | [
"MIT"
] | null | null | null | defmodule Wallaby.Experimental.Selenium do
@moduledoc false
use Supervisor
@behaviour Wallaby.Driver
alias Wallaby.{Driver, Element, Session}
alias Wallaby.Experimental.Selenium.WebdriverClient
@type start_session_opts ::
{:remote_url, String.t} |
{:capabilities, map} |
{:create_session_fn, (... | 27.011111 | 90 | 0.675442 |
978445fc2cf9b221c6688c418cec703cb3a7bc05 | 1,771 | exs | Elixir | config/runtime.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | config/runtime.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | config/runtime.exs | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | import Config
import IP
import Madari.ConfigUtil
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not de... | 25.666667 | 74 | 0.710333 |
9784506e05f2becd97edfb3860fb0937c6f2d35f | 3,149 | ex | Elixir | app/lib/app_web/router.ex | kljensen/yale-class-chat | b03e72deed967249a64404bff68b1cf22e7e1e6a | [
"Unlicense"
] | 1 | 2020-02-10T21:35:17.000Z | 2020-02-10T21:35:17.000Z | app/lib/app_web/router.ex | kljensen/yale-class-chat | b03e72deed967249a64404bff68b1cf22e7e1e6a | [
"Unlicense"
] | 86 | 2020-01-24T14:53:27.000Z | 2021-05-18T19:16:30.000Z | app/lib/app_web/router.ex | kljensen/yale-class-chat | b03e72deed967249a64404bff68b1cf22e7e1e6a | [
"Unlicense"
] | null | null | null | defmodule AppWeb.Router do
use AppWeb, :router
import Phoenix.LiveView.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :store_path_in_session
plug AppWeb.Plug.SetCurrentUser... | 33.5 | 90 | 0.691331 |
97845dcbddda35a523667f01c6ff45ab0553d3c7 | 1,783 | exs | Elixir | clients/pub_sub_lite/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/pub_sub_lite/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/pub_sub_lite/mix.exs | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.61194 | 103 | 0.649467 |
978468da64d8b6076bf852dda00ac4423f38824c | 471 | ex | Elixir | lib/blue_book/crypto/address.ex | herman-rogers/blue_book | 84c1d173c4e953e68f5a8df1dd1afce0ab57d876 | [
"MIT"
] | null | null | null | lib/blue_book/crypto/address.ex | herman-rogers/blue_book | 84c1d173c4e953e68f5a8df1dd1afce0ab57d876 | [
"MIT"
] | null | null | null | lib/blue_book/crypto/address.ex | herman-rogers/blue_book | 84c1d173c4e953e68f5a8df1dd1afce0ab57d876 | [
"MIT"
] | null | null | null | defmodule BlueBook.Schema.Address do
use Ecto.Schema
import Ecto.Changeset
alias BlueBook.Schema.Transaction
schema "addresses" do
field :address, :string
field :owner, :string
field :owner_type, :string
has_many :transactions, Transaction
timestamps()
end
@doc false
def changeset(... | 20.478261 | 57 | 0.694268 |
97849041d54b97acce183b60148d582ddd692dd0 | 58 | exs | Elixir | test/test_helper.exs | optick-archive/bloodhound | 53d390195e0227544d4a09250c37e647a5674e59 | [
"MIT"
] | null | null | null | test/test_helper.exs | optick-archive/bloodhound | 53d390195e0227544d4a09250c37e647a5674e59 | [
"MIT"
] | null | null | null | test/test_helper.exs | optick-archive/bloodhound | 53d390195e0227544d4a09250c37e647a5674e59 | [
"MIT"
] | null | null | null | ExUnit.start
# For mix tests
Mix.shell Mix.Shell.Process
| 11.6 | 27 | 0.775862 |
97849096560d9929ff689595d808f4d61b29462e | 6,980 | ex | Elixir | clients/books/lib/google_api/books/v1/api/onboarding.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/onboarding.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/books/lib/google_api/books/v1/api/onboarding.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... | 47.162162 | 196 | 0.639685 |
9784a0da4edbdc4df0b17e12888ec127eb962356 | 890 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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/metadata.ex | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"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.962963 | 74 | 0.760674 |
9784a4cdb06fa180a1308adee8013322e7554f54 | 183 | ex | Elixir | lib/quantum/task_registry/init_opts.ex | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | 1,092 | 2018-03-23T02:29:33.000Z | 2022-03-30T19:17:30.000Z | lib/quantum/task_registry/init_opts.ex | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | 168 | 2018-03-22T12:52:28.000Z | 2022-03-19T22:49:17.000Z | lib/quantum/task_registry/init_opts.ex | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | 79 | 2018-03-22T12:50:24.000Z | 2022-03-07T08:40:50.000Z | defmodule Quantum.TaskRegistry.InitOpts do
@moduledoc false
# Init Options for Quantum.TaskRegistry
@type t :: %__MODULE__{}
@enforce_keys []
defstruct @enforce_keys
end
| 16.636364 | 42 | 0.743169 |
9784beb0b771349623fcbb77c7e7e8e9a1f38d7e | 12,522 | ex | Elixir | clients/people/lib/google_api/people/v1/api/other_contacts.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/api/other_contacts.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/api/other_contacts.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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... | 54.443478 | 617 | 0.652132 |
9784f8debb3671e5c9f9910b29756d6b087d96cd | 8,434 | exs | Elixir | test/elixir/test/design_docs_query_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2020-09-11T19:23:27.000Z | 2020-09-11T19:23:27.000Z | test/elixir/test/design_docs_query_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2018-02-08T23:08:43.000Z | 2018-02-08T23:08:43.000Z | test/elixir/test/design_docs_query_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule DesignDocsQueryTest do
use CouchTestCase
@moduletag :design_docs
@moduletag kind: :single_node
@moduledoc """
Test CouchDB /{db}/_design_docs
"""
setup_all do
db_name = random_db_name()
{:ok, _} = create_db(db_name)
on_exit(fn -> delete_db(db_name) end)
bulk_save(db_name, mak... | 30.669091 | 86 | 0.620465 |
97850579741b877962c9cd1ac25e0106b3fa8053 | 11,328 | ex | Elixir | lib/livebook/live_markdown/markdown_helpers.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/live_markdown/markdown_helpers.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/live_markdown/markdown_helpers.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.LiveMarkdown.MarkdownHelpers do
@moduledoc false
@doc """
Wraps `EarmarkParser.as_ast/2`.
"""
@spec markdown_to_ast(String.t()) :: {:ok | :error, EarmarkParser.ast(), list()}
def markdown_to_ast(markdown) do
EarmarkParser.as_ast(markdown)
end
@doc """
Wraps `EarmarkParser.as_a... | 26.46729 | 104 | 0.614848 |
97850686a5eda82269925646696fc3ddbc651fc0 | 6,307 | exs | Elixir | .credo.exs | paulfioravanti/survey_tool_elixir | aacf14c97d9e00697c81e6d27f16506644a337c8 | [
"MIT"
] | 1 | 2020-01-18T23:27:50.000Z | 2020-01-18T23:27:50.000Z | .credo.exs | paulfioravanti/survey_tool_elixir | aacf14c97d9e00697c81e6d27f16506644a337c8 | [
"MIT"
] | null | null | null | .credo.exs | paulfioravanti/survey_tool_elixir | aacf14c97d9e00697c81e6d27f16506644a337c8 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.224242 | 88 | 0.60853 |
978510aee0caa7d42ac9c38487c735c0eac67c9a | 619 | exs | Elixir | test/views/error_view_test.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | test/views/error_view_test.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | test/views/error_view_test.exs | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | defmodule StaticData.ErrorViewTest do
use StaticData.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(StaticData.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
test ... | 28.136364 | 66 | 0.654281 |
978527047e3566fc3a9bd02e97695d8a55ce3c53 | 1,169 | exs | Elixir | test/operate/vm/extension/base_test.exs | operate-bsv/agent | 4f3d69b7eb33f3afe5c880c10e39485b18b27ec5 | [
"Apache-2.0"
] | 13 | 2019-02-14T05:27:03.000Z | 2019-08-14T03:35:52.000Z | test/operate/vm/extension/base_test.exs | operate-bsv/agent | 4f3d69b7eb33f3afe5c880c10e39485b18b27ec5 | [
"Apache-2.0"
] | 3 | 2019-11-28T11:38:39.000Z | 2021-12-15T01:23:09.000Z | test/operate/vm/extension/base_test.exs | operate-bsv/agent | 4f3d69b7eb33f3afe5c880c10e39485b18b27ec5 | [
"Apache-2.0"
] | 2 | 2019-12-16T10:46:51.000Z | 2020-10-10T11:23:46.000Z | defmodule Operate.VM.Extension.BaseTest do
use ExUnit.Case
alias Operate.VM
doctest Operate.VM.Extension.Base
setup_all do
%{ vm: VM.init }
end
describe "Operate.VM.Extension.Base.encode16/1 and Operate.VM.Extension.Base.decode16/1" do
test "must encode binary string as hex string", ctx do
a... | 34.382353 | 93 | 0.677502 |
9785513b98d5ad97f45c457483a583d9ad5c30f4 | 727 | ex | Elixir | lib/phoenix_hello_web/gettext.ex | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 6 | 2019-06-11T22:16:47.000Z | 2021-05-19T10:32:58.000Z | lib/phoenix_hello_web/gettext.ex | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 2 | 2021-08-22T19:41:42.000Z | 2021-12-16T15:26:14.000Z | lib/phoenix_hello_web/gettext.ex | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 16 | 2019-06-12T19:39:41.000Z | 2022-03-26T07:34:44.000Z | defmodule PhoenixHelloWeb.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 PhoenixHelloWeb.Gettext
# Simple translation
gettext(... | 29.08 | 72 | 0.685007 |
97856c1b61471488e8b73964392b63eb4db6a188 | 13,713 | exs | Elixir | test/ecto/multi_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | test/ecto/multi_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | test/ecto/multi_test.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.MultiTest do
use ExUnit.Case, async: true
doctest Ecto.Multi
alias Ecto.Multi
alias Ecto.Changeset
alias Ecto.TestRepo
defmodule Comment do
use Ecto.Schema
schema "comments" do
field :x, :integer
field :parent_x, :integer
end
end
def run_ok(repo, _changes), do:... | 32.190141 | 158 | 0.59914 |
9785882faa0d1b8fa9de5696305bba4e8df0d0f8 | 1,610 | ex | Elixir | clients/content/lib/google_api/content/v2/model/pickup_carrier_service.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/pickup_carrier_service.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/pickup_carrier_service.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... | 32.2 | 127 | 0.715528 |
97858ff6f6a4f087cb6ee8f77ae8775b066728b8 | 4,753 | ex | Elixir | lib/ash_policy_authorizer/filter_check.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | lib/ash_policy_authorizer/filter_check.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | lib/ash_policy_authorizer/filter_check.ex | TheFirstAvenger/ash_policy_authorizer | 05eef4ee9038b06abbd4f945507067348c45a424 | [
"MIT"
] | null | null | null | defmodule AshPolicyAuthorizer.FilterCheck do
@moduledoc """
A type of check that is represented by a filter statement
That filter statement can be templated, currently only supporting `{:_actor, field}`
which will replace that portion of the filter with the appropriate field value from the actor and
`{:_acto... | 28.291667 | 100 | 0.590785 |
9785ad8b128cf545583427accb1c5415f2aba0d9 | 1,189 | exs | Elixir | priv/repo/migrations/20160601131257_add_restrict_constraints.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20160601131257_add_restrict_constraints.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20160601131257_add_restrict_constraints.exs | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repo.Migrations.AddRestrictConstraints do
use Ecto.Migration
def up do
execute "ALTER TABLE releases DROP CONSTRAINT IF EXISTS releases_package_id_fkey"
execute "ALTER TABLE requirements DROP CONSTRAINT IF EXISTS requirements_dependency_id_fkey"
execute """
ALTER TABLE re... | 33.027778 | 98 | 0.722456 |
9785d316a6b338233a24388b3914e971040fc69b | 873 | ex | Elixir | lib/application_auth/accounts/application.ex | oscarjg/application_auth | c4f5bb3eb4a29db2e11714829e495c880b2adf28 | [
"MIT"
] | null | null | null | lib/application_auth/accounts/application.ex | oscarjg/application_auth | c4f5bb3eb4a29db2e11714829e495c880b2adf28 | [
"MIT"
] | null | null | null | lib/application_auth/accounts/application.ex | oscarjg/application_auth | c4f5bb3eb4a29db2e11714829e495c880b2adf28 | [
"MIT"
] | null | null | null | defmodule ApplicationAuth.Accounts.Application do
use Ecto.Schema
import Ecto.Changeset
alias ApplicationAuth.Accounts.{User, ApplicationCredential}
schema "applications" do
field(:name, :string)
belongs_to(:user, User)
has_one(:credential, ApplicationCredential)
timestamps()
end
def ch... | 26.454545 | 101 | 0.717068 |
9785e751162588c8261f36b51a6b9ff2c756d856 | 19,020 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/creative_field_values.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/creative_field_values.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/creative_field_values.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... | 40.903226 | 187 | 0.620662 |
9785ec4fa8f60b6df740688b9c241d9557677758 | 3,810 | ex | Elixir | lib/ex_doc/language.ex | devtayls/ex_doc | 0319ace1782c9a6cd4ade57a5df6f8649d9b2683 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,206 | 2015-01-02T02:05:12.000Z | 2022-03-29T17:18:10.000Z | lib/ex_doc/language.ex | devtayls/ex_doc | 0319ace1782c9a6cd4ade57a5df6f8649d9b2683 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,266 | 2015-01-03T03:26:04.000Z | 2022-03-31T09:43:53.000Z | lib/ex_doc/language.ex | LaudateCorpus1/ex_doc | 0612bac649cbb44ef09c20dedcf7e588a150606c | [
"Apache-2.0",
"CC-BY-4.0"
] | 300 | 2015-01-03T04:07:24.000Z | 2022-03-29T08:10:56.000Z | defmodule ExDoc.Language do
@moduledoc false
@typep spec_ast() :: term()
@typedoc """
The map has the following keys:
* `:module` - the module
* `:docs` - the docs chunk
* `:language` - the language callback
* `:id` - module page name
* `:title` - module display title
* `:type` -... | 26.09589 | 88 | 0.555643 |
9785f912850093fbb0c94f8e261c141402fa71cd | 102 | exs | Elixir | test/e2e/.formatter.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/e2e/.formatter.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/e2e/.formatter.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | [
import_deps: [:hologram, :phoenix],
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"]
]
| 20.4 | 59 | 0.539216 |
97860015ee0989a7b931c2d11254bfc4eaae0eee | 2,506 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_reject_return_line_item_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/orders_reject_return_line_item_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/orders_reject_return_line_item_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.419355 | 203 | 0.694733 |
97860fe29130c1046db2bcbe720643dae6e84eb3 | 864 | ex | Elixir | apps/tanx_web/test/support/conn_case.ex | 4eek/tanx | 32750c15966d6272db9d96fa620fb277a61520e4 | [
"MIT"
] | 112 | 2016-05-10T17:17:08.000Z | 2022-01-25T22:41:29.000Z | apps/tanx_web/test/support/conn_case.ex | 4eek/tanx | 32750c15966d6272db9d96fa620fb277a61520e4 | [
"MIT"
] | 3 | 2016-05-10T04:39:02.000Z | 2019-07-19T12:50:07.000Z | apps/tanx_web/test/support/conn_case.ex | 4eek/tanx | 32750c15966d6272db9d96fa620fb277a61520e4 | [
"MIT"
] | 22 | 2016-05-17T01:51:51.000Z | 2022-03-15T03:21:02.000Z | defmodule TanxWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the te... | 26.181818 | 58 | 0.728009 |
97861c7134ee68476dcefc0c147dc9711b27fcc2 | 59 | exs | Elixir | config/dev.exs | krystofbe/pandex | 74aa3ae34e3be373a39c5291808bd27b59393385 | [
"MIT"
] | null | null | null | config/dev.exs | krystofbe/pandex | 74aa3ae34e3be373a39c5291808bd27b59393385 | [
"MIT"
] | null | null | null | config/dev.exs | krystofbe/pandex | 74aa3ae34e3be373a39c5291808bd27b59393385 | [
"MIT"
] | null | null | null | config :ex_doc, :markdown_processor, ExDoc.Markdown.Pandoc
| 29.5 | 58 | 0.830508 |
97861eca25a2869bea826f0ae49b3fd1963cfe2f | 1,204 | ex | Elixir | lib/dns/resource.ex | rdtq/elixir-dns | d55bb2a061a6cc1572ba4d96eb9fa468188d2f3d | [
"BSD-3-Clause"
] | 95 | 2016-02-01T07:45:39.000Z | 2022-03-16T19:20:05.000Z | lib/dns/resource.ex | rdtq/elixir-dns | d55bb2a061a6cc1572ba4d96eb9fa468188d2f3d | [
"BSD-3-Clause"
] | 37 | 2016-08-07T18:58:52.000Z | 2022-02-20T15:48:28.000Z | lib/dns/resource.ex | rdtq/elixir-dns | d55bb2a061a6cc1572ba4d96eb9fa468188d2f3d | [
"BSD-3-Clause"
] | 32 | 2016-08-07T18:46:54.000Z | 2022-02-10T20:11:04.000Z | defmodule DNS.Resource do
@moduledoc """
Struct definition for serializing and parsing DNS resource.
"""
require Record
record = Record.extract(:dns_rr, from_lib: "kernel/src/inet_dns.hrl")
keys = :lists.map(&elem(&1, 0), record)
vals = :lists.map(&{&1, [], nil}, keys)
pairs = :lists.zip(keys, vals)
... | 24.08 | 73 | 0.690199 |
97862d138119e3b690134f08fa95777c561bcff2 | 194 | ex | Elixir | lib/notified/receiver.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 13 | 2021-05-13T22:29:17.000Z | 2021-11-21T09:57:12.000Z | lib/notified/receiver.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 14 | 2021-09-01T14:01:36.000Z | 2022-03-01T14:02:44.000Z | lib/notified/receiver.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 2 | 2021-05-20T18:03:50.000Z | 2022-01-25T23:07:18.000Z | defprotocol Notified.Receiver do
@type receiver :: struct
@type notification :: Notified.Notification.t()
@spec send(receiver, notification) :: :ok
def send(receiver, notification)
end
| 24.25 | 49 | 0.742268 |
978643a4f3b9350d9f393da7bdc8066152a11046 | 2,572 | ex | Elixir | apps/rig_cloud_events/lib/rig_cloud_events/plug_utils.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | apps/rig_cloud_events/lib/rig_cloud_events/plug_utils.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | apps/rig_cloud_events/lib/rig_cloud_events/plug_utils.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigCloudEvents.PlugUtils do
@moduledoc """
Common code for dealing with CloudEvents in controllers.
The CloudEvents specification defines how CloudEvents must be accepted depending on
the transport; see [HTTP Transport Binding for CloudEvents].
We _deviate_ a bit from the spec by interpreting requ... | 30.258824 | 117 | 0.673017 |
97866a4dcaec28bb51dfc0539553f2136f260408 | 43,231 | ex | Elixir | lib/oli/delivery/sections.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli/delivery/sections.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | lib/oli/delivery/sections.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Sections do
@moduledoc """
The Sections context.
"""
import Ecto.Query, warn: false
alias Oli.Repo
alias Oli.Repo.{Paging, Sorting}
alias Oli.Delivery.Sections.Section
alias Oli.Delivery.Sections.Enrollment
alias Lti_1p3.Tool.ContextRole
alias Lti_1p3.DataProviders.EctoProvid... | 31.671062 | 201 | 0.644884 |
97866f59b79902dfebc063b0390b4aedba1f409a | 513 | ex | Elixir | web/router.ex | brisandbeans/thumber | 05f72d5ad65eaa4b6d6cea4d406767fb566d813a | [
"MIT"
] | null | null | null | web/router.ex | brisandbeans/thumber | 05f72d5ad65eaa4b6d6cea4d406767fb566d813a | [
"MIT"
] | null | null | null | web/router.ex | brisandbeans/thumber | 05f72d5ad65eaa4b6d6cea4d406767fb566d813a | [
"MIT"
] | null | null | null | defmodule Thumber.Router do
use Thumber.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Thumber do
pipe_throu... | 19 | 57 | 0.672515 |
9786aeede54e4100af3296d9e8d281c5c7a8160b | 228 | ex | Elixir | lib/bloggex_web/plugs/current_user.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | 1 | 2020-01-14T03:17:51.000Z | 2020-01-14T03:17:51.000Z | lib/bloggex_web/plugs/current_user.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | lib/bloggex_web/plugs/current_user.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | defmodule BloggexWeb.Plug.CurrentUser do
import Plug.Conn
def init(opts), do: opts
def call(conn, _opts) do
assign(
conn,
:current_user,
Bloggex.Guardian.Plug.current_resource(conn)
)
end
end
| 16.285714 | 50 | 0.666667 |
9786afa07ec85ae68a07dc80fdb1fb66498cf978 | 2,051 | exs | Elixir | config/prod.exs | supernintendo/rustler_live_view_toy | 4faeb662daae4238142d3f560ef22d5cd26bb3c6 | [
"Apache-2.0"
] | 1 | 2019-10-07T09:30:16.000Z | 2019-10-07T09:30:16.000Z | config/prod.exs | supernintendo/rustler_live_view_toy | 4faeb662daae4238142d3f560ef22d5cd26bb3c6 | [
"Apache-2.0"
] | 2 | 2021-03-09T19:17:39.000Z | 2021-05-10T16:30:30.000Z | config/prod.exs | supernintendo/rustler_live_view_toy | 4faeb662daae4238142d3f560ef22d5cd26bb3c6 | [
"Apache-2.0"
] | 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.625 | 68 | 0.724037 |
9787136544a8dd2cf2d57f120e3da3a461bcc8d9 | 360 | ex | Elixir | lib/ex_dns/zone.ex | kipcole9/dns | f32448954f5c8f13ba714099f47e0e80e1091cf5 | [
"Apache-2.0"
] | 3 | 2019-08-09T05:24:23.000Z | 2021-11-16T18:44:00.000Z | lib/ex_dns/zone.ex | kipcole9/dns | f32448954f5c8f13ba714099f47e0e80e1091cf5 | [
"Apache-2.0"
] | null | null | null | lib/ex_dns/zone.ex | kipcole9/dns | f32448954f5c8f13ba714099f47e0e80e1091cf5 | [
"Apache-2.0"
] | null | null | null | defmodule ExDns.Zone do
defstruct [:directives, :resources]
import ExDns.Resource.Validation
def new(args) do
args
|> structify_if_valid(__MODULE__)
end
def name(zone) do
soa(zone).name
end
def soa(zone) do
Enum.filter(zone.resources, fn resource ->
resource.__struct__ == ExDns.Re... | 17.142857 | 47 | 0.669444 |
9787493b46e5c9995a90977729dab268604694d3 | 938 | ex | Elixir | lib/inch_ex/code_object/doc.ex | asaaki/inch_ex | 38874a6050663f97c9cbfea29e9b413b4eea1a7b | [
"MIT"
] | 200 | 2015-01-05T19:08:30.000Z | 2022-02-23T01:57:09.000Z | lib/inch_ex/code_object/doc.ex | asaaki/inch_ex | 38874a6050663f97c9cbfea29e9b413b4eea1a7b | [
"MIT"
] | 57 | 2015-01-03T12:07:28.000Z | 2021-10-31T10:26:31.000Z | lib/inch_ex/code_object/doc.ex | asaaki/inch_ex | 38874a6050663f97c9cbfea29e9b413b4eea1a7b | [
"MIT"
] | 101 | 2015-01-18T17:20:20.000Z | 2022-03-07T23:28:53.000Z | defmodule InchEx.CodeObject.Docstring do
@code_example_regex ~r/(^ \S+.+\n){1,}/m
def present?(item), do: item |> get() |> to_string() != ""
def get(%{"doc" => doc}) when is_binary(doc), do: doc
def get(_), do: nil
def mentions?(doc, name) when is_binary(doc) do
doc =~ ~r/\`#{name}\`/ or doc =~ ~r/\... | 24.051282 | 83 | 0.623667 |
97875483423b2929acc10743b13ebdade5fc6555 | 2,157 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/ssl_certificate_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/ssl_certificate_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/ssl_certificate_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... | 39.944444 | 194 | 0.721836 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.