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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a4f23f52715b094ddf30926f3760f0a57a4d613 | 33,992 | ex | Elixir | lib/ex_admin/register.ex | jcarlos7121/ex_admin | 60a07320efaf549814d29f3593715543aef51e6b | [
"MIT"
] | 1,347 | 2015-10-05T18:23:49.000Z | 2022-01-09T18:38:36.000Z | lib/ex_admin/register.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 402 | 2015-10-03T13:53:32.000Z | 2021-07-08T09:52:22.000Z | lib/ex_admin/register.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 333 | 2015-10-12T22:56:57.000Z | 2021-05-26T18:40:24.000Z | defmodule ExAdmin.Register do
@moduledoc """
Allows registering a resource or a page to be displayed with ExAdmin.
For each model you wanted rendered by ExAdmin, use the
`register_resource` call. For each general page (like a dashboard),
use the `register_page` call.
To allow ExAdmin to manage the resourc... | 29.37943 | 99 | 0.640857 |
1a4f5de5e92eb7d50d263125319426ee2ade00ff | 5,096 | exs | Elixir | mix.exs | churcho/absinthe | 4b2b2aa85eed2c608629519172f7d1bf6254b142 | [
"MIT"
] | null | null | null | mix.exs | churcho/absinthe | 4b2b2aa85eed2c608629519172f7d1bf6254b142 | [
"MIT"
] | null | null | null | mix.exs | churcho/absinthe | 4b2b2aa85eed2c608629519172f7d1bf6254b142 | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Mixfile do
use Mix.Project
@version "1.5.0-alpha.1"
def project do
[
app: :absinthe,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: pa... | 26.821053 | 94 | 0.582221 |
1a4f859b55b467c983b901ac315f3053fcba712b | 728 | ex | Elixir | projects/standup/lib/standup/authors/authors.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2020-02-11T06:00:11.000Z | 2020-02-11T06:00:11.000Z | projects/standup/lib/standup/authors/authors.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2017-09-23T19:41:29.000Z | 2017-09-25T05:12:38.000Z | projects/standup/lib/standup/authors/authors.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | null | null | null | defmodule Standup.Authors do
import Ecto.Query, warn: false
alias Standup.Repo
alias Standup.Accounts.User
alias Standup.Authors.Author
#
# Authors
#
def list_authors do
Repo.all(Author)
end
def get_author!(id), do: Repo.get!(Author, id)
def get_author_by_user_id(id), do: Repo.get_by(Autho... | 18.666667 | 69 | 0.660714 |
1a4fc84558d8a134d62bcecb58fb4cc57bfd4fd6 | 2,456 | ex | Elixir | lib/cassandra_graphql_web/graphql/types.ex | sgeos/cassandra-graphql | 9d566c23d6499ff7a3a6f05fec3eef2dce54bc0d | [
"BSD-3-Clause"
] | null | null | null | lib/cassandra_graphql_web/graphql/types.ex | sgeos/cassandra-graphql | 9d566c23d6499ff7a3a6f05fec3eef2dce54bc0d | [
"BSD-3-Clause"
] | null | null | null | lib/cassandra_graphql_web/graphql/types.ex | sgeos/cassandra-graphql | 9d566c23d6499ff7a3a6f05fec3eef2dce54bc0d | [
"BSD-3-Clause"
] | null | null | null | defmodule CassandraGraphqlWeb.GraphQL.Types do
use Absinthe.Schema.Notation
@desc """
Pong
"""
object :pong do
field :success, :boolean
field :pong, :string # "pong"
field :date, :date # date when message is generated
field :time, :time # time when message is generated
field :datetime, :d... | 23.169811 | 97 | 0.620521 |
1a4fce813c37f643f43bb6510f7b8dabcf855c81 | 2,015 | ex | Elixir | lib/wunderground/geolookup/geolookup.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 2 | 2017-08-23T21:48:07.000Z | 2017-10-16T21:35:36.000Z | lib/wunderground/geolookup/geolookup.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 8 | 2017-08-23T10:02:35.000Z | 2017-09-03T11:35:36.000Z | lib/wunderground/geolookup/geolookup.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 1 | 2021-06-22T15:02:15.000Z | 2021-06-22T15:02:15.000Z | defmodule Wunderground.Geolookup do
@moduledoc """
Handles API requests for handling Geolookup of a given location.
"""
alias Wunderground.Query
alias Wunderground.API
@derive [Poison.Encoder]
defstruct ~w(type country country_iso3166 country_name state city tz_short tz_long lat lon zip
... | 27.22973 | 96 | 0.634739 |
1a4ff1b8a27c111419472c4ad2354bfa66f5c96b | 954 | ex | Elixir | lib/mix/lib/mix/scm/path.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/lib/mix/scm/path.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/scm/path.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.SCM.Path do
@behaviour Mix.SCM
@moduledoc false
def fetchable? do
false
end
def format(opts) do
opts[:path]
end
def format_lock(_opts) do
nil
end
def accepts_options(app, opts) do
cond do
raw = opts[:path] ->
Keyword.put opts, :dest, Path.expand(raw)
... | 17.666667 | 97 | 0.597484 |
1a4ff7a771be8416a60a7759fbf4432288b3c404 | 3,079 | ex | Elixir | apps/admin_app/lib/admin_app_web/controllers/product_brand_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/admin_app/lib/admin_app_web/controllers/product_brand_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/admin_app/lib/admin_app_web/controllers/product_brand_controller.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule AdminAppWeb.ProductBrandController do
use AdminAppWeb, :controller
alias Snitch.Data.Model.ProductBrand, as: ProductBrandModel
alias Snitch.Data.Schema.ProductBrand, as: ProductBrandSchema
alias Snitch.Core.Tools.MultiTenancy.Repo
alias Snitch.Data.Model.Image
def index(conn, _params) do
pro... | 31.418367 | 86 | 0.631049 |
1a4ff848ca77a0be145307f2faaed15b7af27a58 | 2,478 | ex | Elixir | lib/booking/user.ex | mattiaslundberg/booking | 469d1469f306b2ab62ce1ee971a825101af6fc7e | [
"MIT"
] | null | null | null | lib/booking/user.ex | mattiaslundberg/booking | 469d1469f306b2ab62ce1ee971a825101af6fc7e | [
"MIT"
] | 2 | 2021-03-10T16:49:07.000Z | 2021-05-11T12:50:22.000Z | lib/booking/user.ex | mattiaslundberg/booking | 469d1469f306b2ab62ce1ee971a825101af6fc7e | [
"MIT"
] | null | null | null | defmodule Booking.User do
use Ecto.Schema
import Ecto.Changeset
alias Booking.Repo
@moduledoc """
Representation of user in the system
"""
@hash_fun Application.get_env(:booking, :hash_fun)
@salt_len 16
@salt_separator "<|>"
schema "users" do
field :email, :string
field :name, :string
... | 27.842697 | 98 | 0.654157 |
1a5044b3187a7ff2152a46ac6f860cc804cd71e3 | 10,222 | exs | Elixir | test/phoenix_component_test.exs | tmjoen/phoenix_live_view | 20feab3ebbcc61ca78f5db53d57bde28654e7dd5 | [
"MIT"
] | null | null | null | test/phoenix_component_test.exs | tmjoen/phoenix_live_view | 20feab3ebbcc61ca78f5db53d57bde28654e7dd5 | [
"MIT"
] | null | null | null | test/phoenix_component_test.exs | tmjoen/phoenix_live_view | 20feab3ebbcc61ca78f5db53d57bde28654e7dd5 | [
"MIT"
] | null | null | null | defmodule Phoenix.ComponentTest do
use ExUnit.Case, async: true
use Phoenix.Component
defp h2s(template) do
template
|> Phoenix.HTML.Safe.to_iodata()
|> IO.iodata_to_binary()
end
describe "rendering" do
defp hello(assigns) do
~H"""
Hello <%= @name %>
"""
end
test ... | 33.296417 | 179 | 0.484543 |
1a5054662a72bde9a342fc9e6be6476e59d84cb3 | 4,538 | ex | Elixir | lib/mix/lib/mix/cli.ex | theodowling/elixir | 93a3c5f95823df8f24b0bb977e445f4604e5b93f | [
"Apache-2.0"
] | 1 | 2020-01-14T18:44:56.000Z | 2020-01-14T18:44:56.000Z | lib/mix/lib/mix/cli.ex | theodowling/elixir | 93a3c5f95823df8f24b0bb977e445f4604e5b93f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/cli.ex | theodowling/elixir | 93a3c5f95823df8f24b0bb977e445f4604e5b93f | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | defmodule Mix.CLI do
@moduledoc false
@doc """
Runs Mix according to the command line arguments.
"""
def main(args \\ System.argv()) do
Mix.Local.append_archives()
Mix.Local.append_paths()
if env_variable_activated?("MIX_QUIET"), do: Mix.shell(Mix.Shell.Quiet)
if env_variable_activated?("MIX... | 25.351955 | 105 | 0.629132 |
1a508497505481f94115d4f4626172ff75d1dff1 | 160 | ex | Elixir | lib/bio/pellet.ex | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | lib/bio/pellet.ex | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | lib/bio/pellet.ex | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | defmodule Bio.Pellet do
alias Bio.Physic
@enforce_keys [:physic]
defstruct [:physic]
def new(%Physic{} = physic), do: %__MODULE__{physic: physic}
end
| 17.777778 | 62 | 0.7 |
1a5094464beaf44188bde38d9858826adfabf969 | 1,391 | exs | Elixir | lib/mix/test/mix/tasks/escriptize_test.exs | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/mix/test/mix/tasks/escriptize_test.exs | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/escriptize_test.exs | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.EscriptizeTest do
use MixTest.Case
defmodule Escript do
def project do
[ app: :escripttest,
version: "0.0.1",
escript_embed_elixir: true ]
end
end
defmodule EscriptWithPath do
def project do
[ app: ... | 26.245283 | 91 | 0.663551 |
1a50b8b5fe830a7f10ba6b3ee0d82aa0ff0b2fe7 | 1,839 | exs | Elixir | rel/config.exs | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | rel/config.exs | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | rel/config.exs | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# T... | 32.263158 | 81 | 0.729201 |
1a50cc68a2d2de94f66d3b11761da1f6483918cf | 7,483 | ex | Elixir | lib/aws/request.ex | kianmeng/aws-elixir | 07017efc4cd9f5c245f7851736204ac91e15ec18 | [
"Apache-2.0"
] | null | null | null | lib/aws/request.ex | kianmeng/aws-elixir | 07017efc4cd9f5c245f7851736204ac91e15ec18 | [
"Apache-2.0"
] | null | null | null | lib/aws/request.ex | kianmeng/aws-elixir | 07017efc4cd9f5c245f7851736204ac91e15ec18 | [
"Apache-2.0"
] | null | null | null | defmodule AWS.Request do
@moduledoc false
alias AWS.Client
alias AWS.ServiceMetadata
alias AWS.Signature
@valid_protocols ~w(query json rest-json rest-xml)
@doc """
Request an AWS Service using a POST request with a protocol.
"""
def request_post(%Client{} = client, %ServiceMetadata{} = metadata, a... | 27.310219 | 96 | 0.603501 |
1a5109d20f3cb90956ac7d993db7bed1061d1fdf | 3,511 | ex | Elixir | lib/epicenter/cases/lab_result.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | lib/epicenter/cases/lab_result.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | lib/epicenter/cases/lab_result.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Cases.LabResult do
use Ecto.Schema
import Ecto.Changeset
alias Epicenter.Cases.LabResult
alias Epicenter.Cases.Person
alias Epicenter.Extra
@required_attrs ~w{person_id}a
@optional_attrs ~w{analyzed_on reported_on request_accession_number request_facility_code request_facility_name ... | 34.087379 | 154 | 0.728567 |
1a510aa543bb4769200df573cbb451e9856fd1dc | 1,218 | ex | Elixir | elixir/quick-elixir-blog/blog_phoenix/lib/blog_phoenix/endpoint.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/quick-elixir-blog/blog_phoenix/lib/blog_phoenix/endpoint.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/quick-elixir-blog/blog_phoenix/lib/blog_phoenix/endpoint.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | defmodule BlogPhoenix.Endpoint do
use Phoenix.Endpoint, otp_app: :blog_phoenix
socket "/socket", BlogPhoenix.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 P... | 28.325581 | 69 | 0.720854 |
1a5112a2b685ef4927d0d96eb0e6937ec3643743 | 808 | exs | Elixir | test/native_test.exs | Multiverse-io/ex_html5ever | be4c22c8094dd420d65ec8da5120cdd8568b8479 | [
"MIT"
] | 1 | 2021-08-06T07:10:54.000Z | 2021-08-06T07:10:54.000Z | test/native_test.exs | Multiverse-io/ex_html5ever | be4c22c8094dd420d65ec8da5120cdd8568b8479 | [
"MIT"
] | null | null | null | test/native_test.exs | Multiverse-io/ex_html5ever | be4c22c8094dd420d65ec8da5120cdd8568b8479 | [
"MIT"
] | null | null | null | defmodule ExHtml5ever.NativeTest do
use ExUnit.Case
alias ExHtml5ever.Native, as: Html5ever
describe "lint/1" do
test "parses valid HTML without errors" do
assert :ok ==
Html5ever.lint("""
<!DOCTYPE html>
<head><title>title</title></head>
<bod... | 26.064516 | 69 | 0.441832 |
1a511613466b3f0989a4504034ec0939a9e92e0d | 1,055 | ex | Elixir | lib/mix/tasks/publish.ex | fremantle-capital/package | 8db16e162d61c567d4df27df3688aba1e0efc0c0 | [
"MIT"
] | 8 | 2019-07-19T22:44:40.000Z | 2021-02-09T19:28:21.000Z | lib/mix/tasks/publish.ex | fremantle-capital/package | 8db16e162d61c567d4df27df3688aba1e0efc0c0 | [
"MIT"
] | 25 | 2020-02-05T21:37:30.000Z | 2021-02-22T05:42:06.000Z | lib/mix/tasks/publish.ex | fremantle-capital/package | 8db16e162d61c567d4df27df3688aba1e0efc0c0 | [
"MIT"
] | 1 | 2020-05-11T16:13:10.000Z | 2020-05-11T16:13:10.000Z | defmodule Mix.Tasks.Wrap.Publish do
@moduledoc """
Publish the latest docker images that have been built on the local docker instance
"""
use Mix.Task
@cli_config [
name: "wrap.publish",
description:
"Publish the latest docker images that have been built on the local docker instance",
abou... | 21.1 | 91 | 0.604739 |
1a514782c385e9fafdd78549000288c116bc996f | 143 | exs | Elixir | test/nostrum/permission_test.exs | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | test/nostrum/permission_test.exs | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | test/nostrum/permission_test.exs | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.PermissionTest do
use ExUnit.Case, async: true
alias Nostrum.Permission
require Permission
doctest Permission
end
| 14.3 | 35 | 0.79021 |
1a51615ce6c346eb9d06a7be1e48eb34f2e7eb19 | 7,976 | ex | Elixir | apps/evm/lib/evm/exec_env.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/evm/lib/evm/exec_env.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/evm/lib/evm/exec_env.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule EVM.ExecEnv do
alias EVM.AccountRepo
alias EVM.{BlockHeaderInfo, Configuration, MachineCode}
@moduledoc """
Stores information about the execution environment which led
to this EVM being called. This is, for instance, the sender of
a payment or message to a contract, or a sub-contract call.
We... | 30.559387 | 117 | 0.670762 |
1a516cf5cd405b1e27906c01983f0f4ac21446b1 | 975 | ex | Elixir | test/_support/server_case.ex | ityonemo/erps | f3cd859313941b9838c91a32e9c32e84194b0bb5 | [
"BSD-3-Clause"
] | 4 | 2020-03-06T19:04:35.000Z | 2021-01-01T21:23:03.000Z | test/_support/server_case.ex | ityonemo/erps | f3cd859313941b9838c91a32e9c32e84194b0bb5 | [
"BSD-3-Clause"
] | 27 | 2020-02-25T01:45:00.000Z | 2020-07-02T18:39:22.000Z | test/_support/server_case.ex | ityonemo/erps | f3cd859313941b9838c91a32e9c32e84194b0bb5 | [
"BSD-3-Clause"
] | null | null | null | # credo:disable-for-this-file Credo.Check.Readability.ModuleDoc
defmodule ErpsTest.ServerCase do
#
# Test Case for developing server tests. Note this
# means that a minimal CLIENT is created.
#
use ExUnit.CaseTemplate
using do
quote do
defmodule Client do
use Erps.Client
@loc... | 25 | 109 | 0.637949 |
1a519e9fde760c4d4543a8cc14efc0c50631ae42 | 1,129 | exs | Elixir | config/config.exs | revelrylabs/ecto_sort | 9bbb4761c375bf170e2b894b78447f614cc9f17e | [
"MIT"
] | 6 | 2019-07-30T02:17:22.000Z | 2021-08-04T10:49:50.000Z | config/config.exs | revelrylabs/ecto_sort | 9bbb4761c375bf170e2b894b78447f614cc9f17e | [
"MIT"
] | 62 | 2019-06-25T14:09:31.000Z | 2021-08-03T11:14:09.000Z | config/config.exs | revelrylabs/ecto_sort | 9bbb4761c375bf170e2b894b78447f614cc9f17e | [
"MIT"
] | 1 | 2021-11-16T06:50:11.000Z | 2021-11-16T06:50:11.000Z | # 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.419355 | 73 | 0.751107 |
1a51b5a4c369588502551d4b7cb44b6dba8c6181 | 1,330 | exs | Elixir | test/tesla/middleware/normalize_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | test/tesla/middleware/normalize_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | test/tesla/middleware/normalize_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.NormalizeTest do
use ExUnit.Case
alias Tesla.Middleware.Normalize
defp call(args) do
Normalize.call(struct!(Tesla.Env, args), [], [])
end
describe "status" do
test "when nil" do
env = call(status: nil)
assert env.status == nil
end
test "when num" do
... | 20.461538 | 54 | 0.558647 |
1a52007bf052bf48da698a285752aa67b9699207 | 61 | exs | Elixir | test/fnv1a_test.exs | jeremytregunna/elixir-fnv1a | 42a71a3d75026534dd899a2552ce3d44e7ec4030 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2017-04-06T02:20:48.000Z | 2020-01-16T07:39:30.000Z | test/fnv1a_test.exs | jeremytregunna/elixir-fnv1a | 42a71a3d75026534dd899a2552ce3d44e7ec4030 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/fnv1a_test.exs | jeremytregunna/elixir-fnv1a | 42a71a3d75026534dd899a2552ce3d44e7ec4030 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-12-15T16:28:54.000Z | 2021-12-15T16:28:54.000Z | defmodule Fnv1aTest do
use ExUnit.Case
doctest Fnv1a
end
| 12.2 | 22 | 0.786885 |
1a520f46b2971f538ca8616e346402b977647413 | 2,728 | ex | Elixir | lib/web/controllers/analytics_controller.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/web/controllers/analytics_controller.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/web/controllers/analytics_controller.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule Web.AnalyticsController do
use Web, :controller
alias ChallengeGov.Agencies
alias ChallengeGov.Analytics
alias ChallengeGov.Reports.DapReports
plug(Web.Plugs.EnsureRole, [:super_admin, :admin, :challenge_manager])
def index(conn, params) do
%{current_user: user} = conn.assigns
filter =... | 36.373333 | 85 | 0.752566 |
1a5211a3d26919129234557d7ff134217f5485a7 | 1,587 | exs | Elixir | mix.exs | rbino/exjsonpath | 31f3c8b7536d1932673c6753eb5fbe83310f72c8 | [
"Apache-2.0"
] | null | null | null | mix.exs | rbino/exjsonpath | 31f3c8b7536d1932673c6753eb5fbe83310f72c8 | [
"Apache-2.0"
] | null | null | null | mix.exs | rbino/exjsonpath | 31f3c8b7536d1932673c6753eb5fbe83310f72c8 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of ExJsonPath.
#
# Copyright 2019 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 a... | 24.415385 | 74 | 0.625079 |
1a521d69f310bbb6e2e085f674288ebccd9032f9 | 138 | ex | Elixir | web/controllers/tp_charger_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_charger_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_charger_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpChargerImportJobController do
use CgratesWebJsonapi.CsvImportJob, module: CgratesWebJsonapi.TpCharger
end
| 34.5 | 73 | 0.891304 |
1a52663fa69c0f89062d33166bbcfe737fe3d444 | 1,986 | ex | Elixir | lib/ex_aliyun_ots/sequence.ex | hou8/ex_aliyun_ots | 46aaca99fa6c9aa9640bb206a1ab31e400b73404 | [
"MIT"
] | null | null | null | lib/ex_aliyun_ots/sequence.ex | hou8/ex_aliyun_ots | 46aaca99fa6c9aa9640bb206a1ab31e400b73404 | [
"MIT"
] | null | null | null | lib/ex_aliyun_ots/sequence.ex | hou8/ex_aliyun_ots | 46aaca99fa6c9aa9640bb206a1ab31e400b73404 | [
"MIT"
] | null | null | null | defmodule ExAliyunOts.Sequence do
import ExAliyunOts.Logger, only: [info: 1, error: 1]
import ExAliyunOts,
only: [create_table: 4, delete_table: 2, delete_row: 4, update_row: 4]
import ExAliyunOts.DSL, only: [condition: 1]
alias ExAliyunOts.Const.{ReturnType, PKType}
require ReturnType
require PKType
... | 26.48 | 86 | 0.690836 |
1a528d303918e50270d994f40c01d6e48121ee35 | 848 | exs | Elixir | apps/light_bridge/mix.exs | sarat1669/seeker | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | 1 | 2019-07-10T10:00:56.000Z | 2019-07-10T10:00:56.000Z | apps/light_bridge/mix.exs | spawnfest/factor18 | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | null | null | null | apps/light_bridge/mix.exs | spawnfest/factor18 | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | null | null | null | defmodule LightBridge.MixProject do
use Mix.Project
def project do
[
app: :light_bridge,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
start_permanent: ... | 23.555556 | 88 | 0.564858 |
1a52b87fe4cff52dcf3bc7345f8179680d092ba6 | 977 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/deserializer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/fusion_tables/lib/google_api/fusion_tables/v2/deserializer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/fusion_tables/lib/google_api/fusion_tables/v2/deserializer.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.576923 | 77 | 0.766633 |
1a52d24814a63960f7f1c5e2508a5dd774e13b8d | 40,775 | ex | Elixir | lib/aws/generated/codeartifact.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/codeartifact.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/codeartifact.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Codeartifact do
@moduledoc """
AWS CodeArtifact is a fully managed artifact repository compatible with
language-native package managers and build tools such as npm, Apache Maven, and
pip.
... | 25.806962 | 153 | 0.629945 |
1a52eaee5caa341189ad6bc8304b075ae6af1153 | 1,020 | exs | Elixir | test/mongoose_push_pools_test.exs | rslota/MongoosePush | ae7ca89f0f53d7564a2d69c75bd97f0f68d1e2e5 | [
"Apache-2.0"
] | null | null | null | test/mongoose_push_pools_test.exs | rslota/MongoosePush | ae7ca89f0f53d7564a2d69c75bd97f0f68d1e2e5 | [
"Apache-2.0"
] | null | null | null | test/mongoose_push_pools_test.exs | rslota/MongoosePush | ae7ca89f0f53d7564a2d69c75bd97f0f68d1e2e5 | [
"Apache-2.0"
] | null | null | null | defmodule MongoosePushPoolsTest do
use ExUnit.Case
import MongoosePush.Pools
doctest MongoosePush.Pools
setup do
# Validate config/text.exs that is need for this test suite
apns_pools = Keyword.keys(Application.get_env(:mongoose_push, :apns))
[:dev1, :dev2, :prod1, :prod2] = Enum.sort(apns_pools)
... | 27.567568 | 73 | 0.666667 |
1a52f7b41e06a2364003418b2e297bb5bc914dde | 1,590 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_secondary_reason.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_secondary_reason.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_secondary_reason.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.8 | 114 | 0.725786 |
1a533da6043a21c13a308b09a677224b524460d9 | 421 | exs | Elixir | mix.exs | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | mix.exs | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | null | null | null | mix.exs | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | null | null | null | defmodule BluntU.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# th... | 19.136364 | 59 | 0.63658 |
1a537e92df11beb600b3fa8cab601e9bea8ad378 | 102 | exs | Elixir | test/ueberauth_streamlabs_test.exs | RealVidy/ueberauth_streamlabs | 2b86eb99ef6ecb084448a7cadaf3ddb8ab303373 | [
"MIT"
] | null | null | null | test/ueberauth_streamlabs_test.exs | RealVidy/ueberauth_streamlabs | 2b86eb99ef6ecb084448a7cadaf3ddb8ab303373 | [
"MIT"
] | null | null | null | test/ueberauth_streamlabs_test.exs | RealVidy/ueberauth_streamlabs | 2b86eb99ef6ecb084448a7cadaf3ddb8ab303373 | [
"MIT"
] | null | null | null | defmodule UeberauthStreamlabsTest do
use ExUnit.Case, async: true
doctest UeberauthStreamlabs
end
| 20.4 | 36 | 0.833333 |
1a538e1b57cff1125b9451797762a6e4b0543c17 | 255 | ex | Elixir | lib/qb_backend.ex | LittleKidogo/quick_bytes_system | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | 1 | 2018-08-10T02:53:13.000Z | 2018-08-10T02:53:13.000Z | lib/qb_backend.ex | LittleKidogo/quick_bytes_backend | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | 34 | 2018-08-07T09:53:18.000Z | 2018-10-24T21:12:01.000Z | lib/qb_backend.ex | LittleKidogo/quick_bytes_backend | 3f8c1d75b26c5835f70eed3a464351e806a104d9 | [
"MIT"
] | null | null | null | defmodule QbBackend do
@moduledoc """
QbBackend keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.5 | 66 | 0.756863 |
1a539e1ec598defcb5099d6e94b75240af7c4463 | 6,223 | exs | Elixir | lib/elixir/test/elixir/string_io_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/test/elixir/string_io_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_io_test.exs | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule StringIOTest do
use ExUnit.Case, async: true
doctest StringIO
test "open and close" do
{:ok, pid} = StringIO.open("")
assert StringIO.close(pid) == {:ok, {"", ""}}
end
test "contents" do
{:ok, pid} = StringIO.open("abc")
IO.write(pid, ... | 26.147059 | 71 | 0.551181 |
1a53a4ef47a557188a8eff984c82aa8460971cfa | 872 | ex | Elixir | test/support/conn_case.ex | slavo2/phoenix-sample | da5c4046426d8bcd713273383815938060c6dd6a | [
"MIT"
] | null | null | null | test/support/conn_case.ex | slavo2/phoenix-sample | da5c4046426d8bcd713273383815938060c6dd6a | [
"MIT"
] | null | null | null | test/support/conn_case.ex | slavo2/phoenix-sample | da5c4046426d8bcd713273383815938060c6dd6a | [
"MIT"
] | null | null | null | defmodule SampleWeb.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 ... | 24.914286 | 58 | 0.728211 |
1a53d4fa695aa43783d9a71688b6e26ff067fb8b | 1,426 | ex | Elixir | clients/cloud_monitoring/lib/google_api/cloud_monitoring/v2beta2/model/point.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_monitoring/lib/google_api/cloud_monitoring/v2beta2/model/point.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_monitoring/lib/google_api/cloud_monitoring/v2beta2/model/point.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.688889 | 117 | 0.738429 |
1a53fcdb9c80a81a32c3c2e3d535cad1c2f2893f | 4,086 | exs | Elixir | scripts/connecting_routes.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | scripts/connecting_routes.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | scripts/connecting_routes.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | # Script to find connecting routes for stops along a given route pattern.
# Used to determine which connections should be shown on vehicle screens.
#
# Example usage: API_V3_KEY=<your_key_here> mix run scripts/connecting_routes.exs --route-pattern Orange-3-0
{opts, _, _ } =
System.argv()
|> OptionParser.parse(stri... | 37.145455 | 185 | 0.682575 |
1a5411e3fcd5baf56ee3f0c731024fc8e2c7757a | 17,286 | ex | Elixir | lib/elixir/lib/task/supervisor.ex | schabou/elixir | 7634f3f4c9380bdadd0e74eb76e9f7ae8cf27a1d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task/supervisor.ex | schabou/elixir | 7634f3f4c9380bdadd0e74eb76e9f7ae8cf27a1d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/task/supervisor.ex | schabou/elixir | 7634f3f4c9380bdadd0e74eb76e9f7ae8cf27a1d | [
"Apache-2.0"
] | null | null | null | defmodule Task.Supervisor do
@moduledoc """
A task supervisor.
This module defines a supervisor which can be used to dynamically
supervise tasks.
A task supervisor is started with no children, often under a
supervisor and a name:
children = [
{Task.Supervisor, name: MyApp.TaskSupervisor}
... | 36.0125 | 97 | 0.67708 |
1a54127f3e54acdd59cde85943ef19a63848c593 | 913 | ex | Elixir | lib/storm/collection_worker.ex | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | null | null | null | lib/storm/collection_worker.ex | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | 1 | 2021-03-28T22:57:30.000Z | 2021-04-10T23:05:04.000Z | lib/storm/collection_worker.ex | enter-haken/storm | 9730508c119763bcf5efe852387603dcc7eeb648 | [
"MIT"
] | null | null | null | defmodule Storm.CollectionWorker do
use GenServer
require Logger
def start_link(state) do
GenServer.start_link(__MODULE__, state)
end
def init(%Storm.Collection{id: id} = state) do
Logger.info("collection #{id} started.")
{:ok, state}
end
def handle_call(:get, _from, state) do
{:reply... | 19.847826 | 72 | 0.645126 |
1a543abe0df8334ab9a4011f9bf3bc8d63df16c7 | 334 | ex | Elixir | web/router.ex | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | web/router.ex | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | web/router.ex | velimir0xff/alcsmg | 7f8845b4e4698009a44769fc593a551c5f9387ee | [
"MIT"
] | null | null | null | defmodule Alcsmg.Router do
use Phoenix.Router
pipeline :api do
plug :accepts, ~w(json)
end
scope path: "/api/alcs/v1", alias: Alcsmg, as: :api_v1 do
pipe_through :api
resources "/inspections", InspectionController, only: [:show, :create]
post "/github-webhook", GithubHookController, :cre... | 22.266667 | 74 | 0.682635 |
1a5451a980c66eca07e92983f09393238734a8e5 | 5,956 | exs | Elixir | apps/neoscan/test/schema_test.exs | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan/test/schema_test.exs | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan/test/schema_test.exs | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | defmodule Neoscan.SchemaTest do
use Neoscan.DataCase
import Neoscan.Factory
import Ecto.Query
alias Neoscan.Repo
alias Neoscan.Address
alias Neoscan.AddressHistory
alias Neoscan.AddressBalance
alias Neoscan.Vout
alias Neoscan.Flush
test "create block" do
_block = insert(:block)
end
test "c... | 25.895652 | 97 | 0.673942 |
1a547ad9545573a811652907902acd298178d100 | 227 | exs | Elixir | priv/clickhouse_repo/migrations/20210323130440_add_sample_by.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/clickhouse_repo/migrations/20210323130440_add_sample_by.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/clickhouse_repo/migrations/20210323130440_add_sample_by.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.ClickhouseRepo.Migrations.AddSampleBy do
use Ecto.Migration
def change do
execute "ALTER TABLE events MODIFY SAMPLE BY user_id"
execute "ALTER TABLE sessions MODIFY SAMPLE BY user_id"
end
end
| 25.222222 | 60 | 0.784141 |
1a54a4c11969b4e48e043e563f4dfcf2ba3747ec | 1,566 | exs | Elixir | test/sparql/query/result/solution_mapping_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | test/sparql/query/result/solution_mapping_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | test/sparql/query/result/solution_mapping_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.Query.Result.SolutionMappingTest do
use SPARQL.Test.Case
alias SPARQL.Query.Result.SolutionMapping
describe "compatible?/2" do
@compatible_mappings [
{%{a: 1}, %{}},
{%{a: 1}, %{a: 1}},
{%{a: 1}, %{b: 2}},
{%{a: 1}, %{a: 1, b: 2}},
{%{a: 1, b: 2}, %{a: 1, c: 3}... | 28.472727 | 83 | 0.559387 |
1a54a6c4cb6dbcecf371a4e0e230728d3bf93c6e | 11,655 | exs | Elixir | test/slax/commands/project_test.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 11 | 2016-07-05T18:56:21.000Z | 2021-09-15T22:23:54.000Z | test/slax/commands/project_test.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 181 | 2016-06-23T00:47:13.000Z | 2022-03-10T11:23:44.000Z | test/slax/commands/project_test.exs | HoffsMH/slax | b91ee30b9fd71a4cb7826f50b605ce580b7c1651 | [
"MIT"
] | 7 | 2019-01-30T21:38:28.000Z | 2022-03-01T07:13:39.000Z | defmodule Slax.Commands.NewProjectTest do
use Slax.ModelCase, async: true
import Mox
@subject Slax.Commands.NewProject
def response(text, status, response) do
fn path, _, _ ->
assert String.contains?(path, text)
{:ok,
%HTTPoison.Response{
status_code: status,
body: re... | 29.431818 | 96 | 0.576577 |
1a5541508a11102ff2ed959432f93274dfb78a11 | 1,779 | exs | Elixir | mix.exs | RumataEstor/exmatch | a4e2d46c1dfe6bf67f6fe5949113fbd7c543066d | [
"Apache-2.0"
] | 7 | 2022-03-16T06:23:25.000Z | 2022-03-28T05:42:00.000Z | mix.exs | RumataEstor/exmatch | a4e2d46c1dfe6bf67f6fe5949113fbd7c543066d | [
"Apache-2.0"
] | 1 | 2022-03-28T05:41:43.000Z | 2022-03-28T05:41:43.000Z | mix.exs | RumataEstor/exmatch | a4e2d46c1dfe6bf67f6fe5949113fbd7c543066d | [
"Apache-2.0"
] | null | null | null | defmodule Exmatch.MixProject do
use Mix.Project
def project do
check_version!(
app: :exmatch,
description: description(),
version: "0.10.0",
elixir: "~> 1.10",
elixirc_options: [warnings_as_errors: true],
elixirc_paths: ["lib"] ++ if(Mix.env() in [:test], do: ["test/support"... | 24.708333 | 128 | 0.560989 |
1a554c1fb377dac7ae4834c67b74b50146bef29d | 435 | ex | Elixir | lib/roger/partition/global/state_persister/stub.ex | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 17 | 2017-01-24T19:00:53.000Z | 2021-08-23T15:14:42.000Z | lib/roger/partition/global/state_persister/stub.ex | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 8 | 2017-04-25T13:22:48.000Z | 2021-03-18T11:58:15.000Z | lib/roger/partition/global/state_persister/stub.ex | bettyblocks/roger | 7bd55ff9ce67e01f90a97b1131fecf3a326767d1 | [
"MIT"
] | 3 | 2018-01-23T21:51:47.000Z | 2019-09-11T07:23:57.000Z | defmodule Roger.Partition.Global.StatePersister.Stub do
@moduledoc """
Stub module for `Roger.Partition.Global` state persistence.
This is the default implementation, which **does not** persist any
global partition state.
"""
alias Roger.Partition.Global.StatePersister
@behaviour StatePersister
def... | 19.772727 | 68 | 0.71954 |
1a556f41217637d36e9702d61d718fe9d7377017 | 1,973 | exs | Elixir | test/trento_web/controllers/sap_system_controller_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | test/trento_web/controllers/sap_system_controller_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | test/trento_web/controllers/sap_system_controller_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule TrentoWeb.SapSystemControllerTest do
use TrentoWeb.ConnCase, async: true
import Trento.Factory
describe "list" do
test "should list all sap_systems", %{conn: conn} do
[
%{
id: sap_system_id_1,
sid: sap_system_sid_1
},
%{
id: sap_system_id... | 24.060976 | 69 | 0.421186 |
1a557b2b1f3dc2565d446c1266cdefc1bc1509fe | 10,470 | ex | Elixir | lib/cldr/language_tag/rfc5646/rfc5646_grammar.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | lib/cldr/language_tag/rfc5646/rfc5646_grammar.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | lib/cldr/language_tag/rfc5646/rfc5646_grammar.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(NimbleParsec) do
defmodule Cldr.Rfc5646.Grammar do
@moduledoc false
import NimbleParsec
import Cldr.Rfc5646.Core
# langtag = language
# ["-" script]
# ["-" region]
# *("-" variant)
# *("-" ex... | 33.883495 | 98 | 0.505253 |
1a55b69f4b744a3ec17e26443e3a497b05c2c3a9 | 746 | ex | Elixir | lib/dynamo/utils/once.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 415 | 2015-01-04T15:59:47.000Z | 2022-02-02T21:12:46.000Z | lib/dynamo/utils/once.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 9 | 2015-02-06T16:09:46.000Z | 2018-08-08T06:33:50.000Z | lib/dynamo/utils/once.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | 44 | 2015-02-01T15:49:50.000Z | 2021-11-29T09:08:37.000Z | defmodule Dynamo.Utils.Once do
@moduledoc """
A convenience that allows a module to be used
just once via `use_once`.
"""
@doc false
defmacro __using__(_) do
Module.register_attribute(__CALLER__.module, :__use_once, accumulate: true, persist: false)
quote do
import unquote(__MODULE__), only: ... | 24.064516 | 95 | 0.684987 |
1a55bcc95c73eaab355230b7bef4b8547a925a65 | 1,793 | ex | Elixir | lib/near_api/rpc/access_keys.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 7 | 2021-12-27T19:02:30.000Z | 2022-03-30T14:08:46.000Z | lib/near_api/rpc/access_keys.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 4 | 2021-12-29T21:16:02.000Z | 2022-01-01T22:07:17.000Z | lib/near_api/rpc/access_keys.ex | alexfilatov/near_api | 85d92f0ad4fae3a1135adba6a48a1c284870bed8 | [
"MIT"
] | 1 | 2022-02-21T18:17:36.000Z | 2022-02-21T18:17:36.000Z | defmodule NearApi.RPC.AccessKeys do
@moduledoc """
NEAR RPC - Access Keys API
"""
import NearApi.Helpers, only: [public_key: 0, api_call: 1]
@doc """
Returns information about a single access key for given account.
If permission of the key is FunctionCall, it will return more details such as the allowanc... | 30.913793 | 125 | 0.647518 |
1a55bfb972867cf23501c228135d5f5281400787 | 24,964 | exs | Elixir | lib/mix/test/mix/tasks/compile.elixir_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile.elixir_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/compile.elixir_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.Compile.ElixirTest do
import ExUnit.CaptureIO
alias Mix.Task.Compiler.Diagnostic
use MixTest.Case
setup do
Mix.Project.push(MixTest.Case.Sample)
:ok
end
def trace(event, _e) do
send(__MODULE__, event)
:ok
end
@el... | 30.518337 | 153 | 0.581638 |
1a55c9c9f0f982b831d2fba70ff9a99c9766a60a | 625 | ex | Elixir | lib/policies/filter_resource.ex | paridin/policies | 4d3d83b1729be4d9624f8eead7d82014a5fd4daa | [
"Apache-2.0"
] | null | null | null | lib/policies/filter_resource.ex | paridin/policies | 4d3d83b1729be4d9624f8eead7d82014a5fd4daa | [
"Apache-2.0"
] | null | null | null | lib/policies/filter_resource.ex | paridin/policies | 4d3d83b1729be4d9624f8eead7d82014a5fd4daa | [
"Apache-2.0"
] | null | null | null | defmodule Policies.FilterResource do
@moduledoc """
This policies helps us to filter
"""
def resource(%{assigns: %{current_user: user}} = _conn, :filter_mvno_id, %{
results: data,
roles: filtered_roles
}) do
case in_roles(user.role, filtered_roles) do
true ->
data
... | 21.551724 | 77 | 0.6176 |
1a55ea795152e2b167eb0112995c1b39423bd901 | 775 | exs | Elixir | test/changelog/icecast_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2020-05-20T16:58:17.000Z | 2020-05-20T16:58:17.000Z | test/changelog/icecast_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | test/changelog/icecast_test.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | defmodule Changelog.IcecastTest do
use ExUnit.Case
import Mock
alias Changelog.Icecast
describe "get_stats" do
test "is not streaming on decode error" do
with_mock(HTTPoison, [get!: fn(_) -> %{status_code: 200, body: ""} end]) do
stats = Icecast.get_stats()
assert called HTTPoison.g... | 26.724138 | 98 | 0.619355 |
1a561825c59a16d385adcf58fbc7b876687b4309 | 2,115 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/regression_metrics.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/regression_metrics.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/regression_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... | 35.847458 | 112 | 0.707801 |
1a561eebe61391754d90c8584737727117273b95 | 1,330 | ex | Elixir | lib/receivex/parser.ex | cpursley/receivex | abbd463e75f7f23071f90649387bdaf64b19ca4b | [
"MIT"
] | null | null | null | lib/receivex/parser.ex | cpursley/receivex | abbd463e75f7f23071f90649387bdaf64b19ca4b | [
"MIT"
] | null | null | null | lib/receivex/parser.ex | cpursley/receivex | abbd463e75f7f23071f90649387bdaf64b19ca4b | [
"MIT"
] | null | null | null | defmodule Receivex.Parser do
@moduledoc false
def parse_timestamp(timestamp) when is_binary(timestamp), do: timestamp
def parse_timestamp(timestamp) when is_integer(timestamp), do: Integer.to_string(timestamp)
def parse_timestamp(timestamp) when is_float(timestamp), do: Float.to_string(timestamp)
def parse_t... | 28.297872 | 93 | 0.646617 |
1a5624f5afcc0bb4f3dd42411b0a7c26cf425a11 | 1,816 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orderinvoices_create_charge_invoice_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orderinvoices_create_charge_invoice_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orderinvoices_create_charge_invoice_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... | 33.62963 | 216 | 0.737885 |
1a564a426e8914bc512c87e602ab98f348de0ba0 | 1,924 | exs | Elixir | mix.exs | yagniio/commanded-ecto-projections | de7f1a45da45b56012ec0436fc3631129d0526b4 | [
"MIT"
] | null | null | null | mix.exs | yagniio/commanded-ecto-projections | de7f1a45da45b56012ec0436fc3631129d0526b4 | [
"MIT"
] | null | null | null | mix.exs | yagniio/commanded-ecto-projections | de7f1a45da45b56012ec0436fc3631129d0526b4 | [
"MIT"
] | null | null | null | defmodule Commanded.Projections.Ecto.Mixfile do
use Mix.Project
@version "0.8.0"
def project do
[
app: :commanded_ecto_projections,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
build_em... | 22.114943 | 78 | 0.568087 |
1a564e7dd7b0fcde8f53b332c47272a71a7ba09c | 7,764 | exs | Elixir | test/ex_config/mod_test.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | test/ex_config/mod_test.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | test/ex_config/mod_test.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | defmodule ExConfig.ModTest do
use ExUnit.Case, async: true
@compile {:no_warn_undefined, ExConfig.ModTestModule}
@compile {:no_warn_undefined, ExConfig.ModTestModule.Kw1}
@otp_app ExConfigTestApp
@mod_name ExConfig.ModTestModule
defp mod_create(content, mod \\ @mod_name),
do: Module.create(mod, content... | 39.212121 | 102 | 0.585652 |
1a565eef658e795256cacd475b70405e7c144d9d | 7,353 | exs | Elixir | test/retry_set_test.exs | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | null | null | null | test/retry_set_test.exs | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | null | null | null | test/retry_set_test.exs | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | 1 | 2018-12-04T03:50:36.000Z | 2018-12-04T03:50:36.000Z | defmodule Verk.RetrySetTest do
use ExUnit.Case
alias Verk.SortedSet
import Verk.RetrySet
import :meck
defmodule DummyJob do
def retry_at(_failed_at, _retry_count) do
4
end
end
setup do
new [SortedSet, Redix]
:rand.seed(:exs1024, {123, 123534, 345345})
on_exit fn -> :meck.unload... | 27.852273 | 117 | 0.590915 |
1a5674b3557c493e67848b856c6c404e5c8384bf | 7,599 | ex | Elixir | lib/stripe/connect/person.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/person.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 1 | 2020-05-20T21:04:19.000Z | 2020-05-20T21:04:19.000Z | lib/stripe/connect/person.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T08:42:34.000Z | 2021-06-28T08:42:34.000Z | defmodule Stripe.Person do
@moduledoc """
Work with Stripe Connect person objects.
You can:
- Create a person
- Retrieve a person with a specified `id`
- Update a person
- Delete a person
- List all persons on an account
Stripe API reference: https://stripe.com/docs/api/persons
"""
use Stripe.... | 31.53112 | 98 | 0.574023 |
1a5675bd104cb2b63adaaac1b511af5d0c261465 | 1,802 | ex | Elixir | lib/petal_components/table.ex | HGData/petal_components | 194a66ea8fd3ca062240ed0c6c725dd217519313 | [
"MIT"
] | null | null | null | lib/petal_components/table.ex | HGData/petal_components | 194a66ea8fd3ca062240ed0c6c725dd217519313 | [
"MIT"
] | null | null | null | lib/petal_components/table.ex | HGData/petal_components | 194a66ea8fd3ca062240ed0c6c725dd217519313 | [
"MIT"
] | null | null | null | defmodule PetalComponents.Table do
use Phoenix.Component
def table(assigns) do
assigns =
assigns
|> assign_new(:class, fn -> "" end)
|> assign_new(:extra_assigns, fn ->
assigns_to_attributes(assigns, ~w(
class
)a)
end)
~H"""
<table class="min-w-full ov... | 22.525 | 142 | 0.54162 |
1a5685e9a5b4120b59631bac8f8e84f1ffb24829 | 990 | ex | Elixir | test/support/channel_case.ex | wmnnd/phoenix_live_view_collection | 61e0acf0cda8533c185edfc6011457c466ab5e09 | [
"MIT"
] | 5 | 2022-02-11T19:51:00.000Z | 2022-03-05T08:28:39.000Z | test/support/channel_case.ex | wmnnd/phoenix_live_view_collection | 61e0acf0cda8533c185edfc6011457c466ab5e09 | [
"MIT"
] | 2 | 2022-02-12T12:31:23.000Z | 2022-02-18T20:13:22.000Z | test/support/channel_case.ex | wmnnd/phoenix_live_view_collection | 61e0acf0cda8533c185edfc6011457c466ab5e09 | [
"MIT"
] | 2 | 2022-02-11T20:14:33.000Z | 2022-03-05T08:28:49.000Z | defmodule LiveViewCollectionWeb.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 data structures and query the data layer.
Finally, if the test case ... | 28.285714 | 75 | 0.750505 |
1a5695dd24630462b3e96758e574fa7d6999b1bb | 381 | ex | Elixir | lib/crit_web/plugs/add_audit_log.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | lib/crit_web/plugs/add_audit_log.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | null | null | null | lib/crit_web/plugs/add_audit_log.ex | jesseshieh/crit19 | 0bba407fea09afed72cbb90ca579ba34c537edef | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule CritWeb.Plugs.AddAuditLog do
import CritWeb.Plugs.Accessors
def init(opts), do: opts
def call(conn, _opts) do
if audit_assigned?(conn) do # Allow tests to override standard audit log.
conn
else
server_module = Crit.Audit.ToEcto.Server
process_name = server_module
assig... | 23.8125 | 78 | 0.711286 |
1a56a601441acef0b971fc3f4de6d21e2feb7352 | 1,352 | ex | Elixir | maru_testing/lib/maru_testing.ex | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 27 | 2016-12-28T15:00:19.000Z | 2021-11-09T12:55:23.000Z | maru_testing/lib/maru_testing.ex | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 5 | 2017-02-13T13:11:55.000Z | 2019-07-22T19:38:09.000Z | maru_testing/lib/maru_testing.ex | elixir-maru/maru_examples | f0dcbf3c17c9df8b89b378953b71b54a53047806 | [
"MIT"
] | 8 | 2017-02-08T10:18:50.000Z | 2020-06-01T11:42:04.000Z | defmodule MaruTesting do
end
defmodule PlugNULL do
def init([]), do: []
def call(conn, []) do
conn
end
end
defmodule PlugPutA0 do
def init([]), do: []
def call(conn, []) do
conn |> Plug.Conn.put_private(:maru_plug_ta, 0)
end
end
defmodule PlugPutB1 do
def init([]), do: []
def call(conn, []) d... | 13 | 51 | 0.663462 |
1a56d66e1a1dcbc357f037cb406d347b558f8d2d | 639 | ex | Elixir | lib/shippex/transaction.ex | kianmeng/shippex | 0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718 | [
"MIT"
] | null | null | null | lib/shippex/transaction.ex | kianmeng/shippex | 0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718 | [
"MIT"
] | null | null | null | lib/shippex/transaction.ex | kianmeng/shippex | 0e4e562bdf1070c3fd39c9fa21bddaf51c9ea718 | [
"MIT"
] | null | null | null | defmodule Shippex.Transaction do
@moduledoc false
alias Shippex.{Transaction, Shipment, Rate, Label, Carrier}
@enforce_keys [:shipment, :rate, :label, :carrier]
defstruct [:shipment, :rate, :label, :carrier]
@type t :: %__MODULE__{
shipment: Shipment.t(),
rate: Rate.t(),
label... | 29.045455 | 80 | 0.622848 |
1a56e4b5e8bcd5bf41c23284c1426b1e4fcdb150 | 136 | ex | Elixir | lib/ex_polygon/market_holiday.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/market_holiday.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/market_holiday.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | defmodule ExPolygon.MarketHoliday do
@type t :: %ExPolygon.MarketHoliday{}
defstruct ~w(exchange name status date open close)a
end
| 22.666667 | 53 | 0.772059 |
1a56f146c96d9e70810f4fac05cad91d707c5c10 | 1,315 | ex | Elixir | lib/absinthe/blueprint/schema/directive_definition.ex | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/blueprint/schema/directive_definition.ex | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/blueprint/schema/directive_definition.ex | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Blueprint.Schema.DirectiveDefinition do
@moduledoc false
alias Absinthe.Blueprint
@enforce_keys [:name]
defstruct [
:name,
:module,
:identifier,
description: nil,
directives: [],
arguments: [],
locations: [],
repeatable: false,
source_location: nil,
e... | 24.351852 | 79 | 0.638023 |
1a56fb425910c509d707685a1852219d0e2ed2dd | 1,549 | ex | Elixir | phoenix/budgets/lib/budgets_web/views/error_helpers.ex | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | phoenix/budgets/lib/budgets_web/views/error_helpers.ex | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | phoenix/budgets/lib/budgets_web/views/error_helpers.ex | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | defmodule BudgetsWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(... | 32.270833 | 76 | 0.665591 |
1a56fbea648b3cdb064e960878a8996c8e362bdd | 2,748 | ex | Elixir | apps/ewallet_config/lib/ewallet_config/stored_setting.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_config/lib/ewallet_config/stored_setting.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_config/lib/ewallet_config/stored_setting.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 25.682243 | 74 | 0.658661 |
1a570318f65740ecb0c60ca365befaf64686fd4c | 1,887 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/custom_rich_media_events.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/custom_rich_media_events.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/custom_rich_media_events.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... | 37.74 | 219 | 0.747748 |
1a573f9fabb87714b1c323b6af034d13f0166810 | 17,604 | exs | Elixir | test/lib/absinthe/plug_test.exs | maciej-pawlak/absinthe_plug | c5d2ef3c0cc6922eebe5b06c9bb2327389a50ada | [
"MIT"
] | null | null | null | test/lib/absinthe/plug_test.exs | maciej-pawlak/absinthe_plug | c5d2ef3c0cc6922eebe5b06c9bb2327389a50ada | [
"MIT"
] | null | null | null | test/lib/absinthe/plug_test.exs | maciej-pawlak/absinthe_plug | c5d2ef3c0cc6922eebe5b06c9bb2327389a50ada | [
"MIT"
] | null | null | null | defmodule Absinthe.PlugTest do
use Absinthe.Plug.TestCase
alias Absinthe.Plug.TestSchema
alias Absinthe.Plug.TestPubSub
@foo_result ~s({"data":{"item":{"name":"Foo"}}})
@bar_result ~s({"data":{"item":{"name":"Bar"}}})
@variable_query """
query FooQuery($id: ID!){
item(id: $id) {
name
}
}... | 30.092308 | 97 | 0.568394 |
1a5749fc21e061d282df5dfc86f61e337c2e326f | 7,310 | ex | Elixir | lib/wechat.ex | feng19/wechat | 431c22818c60cd01fc5c676aa060feb303d0c444 | [
"Apache-2.0"
] | 7 | 2021-01-22T04:07:29.000Z | 2021-12-14T14:01:30.000Z | lib/wechat.ex | feng19/wechat | 431c22818c60cd01fc5c676aa060feb303d0c444 | [
"Apache-2.0"
] | 1 | 2021-03-17T15:44:26.000Z | 2021-03-17T15:44:26.000Z | lib/wechat.ex | feng19/wechat | 431c22818c60cd01fc5c676aa060feb303d0c444 | [
"Apache-2.0"
] | 2 | 2021-03-17T14:35:56.000Z | 2021-08-10T07:44:10.000Z | defmodule WeChat do
@moduledoc """
WeChat SDK for Elixir
## 定义 `Client` 模块
### 公众号(默认):
defmodule YourApp.WeChatAppCodeName do
@moduledoc "CodeName"
use WeChat,
appid: "wx-appid",
appsecret: "appsecret"
end
### 小程序:
defmodule YourApp.WeChatAppCodeName... | 28.007663 | 126 | 0.656224 |
1a574cd534dc32298258cc8ef426e9927aa0aeb5 | 1,553 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_delete_all_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_delete_all_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_delete_all_response.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... | 32.354167 | 91 | 0.754024 |
1a5767a57457456169b6fc56c4e9c1ffad8394bd | 1,841 | exs | Elixir | src/scripts/basic-type.exs | sylhare/Elixir | 4a5e50653fd750a282c614f9ca0b94d92fecaa9f | [
"MIT"
] | null | null | null | src/scripts/basic-type.exs | sylhare/Elixir | 4a5e50653fd750a282c614f9ca0b94d92fecaa9f | [
"MIT"
] | null | null | null | src/scripts/basic-type.exs | sylhare/Elixir | 4a5e50653fd750a282c614f9ca0b94d92fecaa9f | [
"MIT"
] | null | null | null | ## ---------------------------
## -- Basic types
## ---------------------------
# There are numbers
3 # integer
0x1F # integer
3.0 # float
# Atoms, that are literals, a constant with name. They start with `:`.
:hello # atom
# Tuples that are stored contiguously in memory.
{1,2,3} # tuple
# We can access a tuple... | 23.602564 | 81 | 0.586095 |
1a577667e3f92a328a2f0d1e4874ce17ddce3506 | 1,399 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180613114307_create_exchange_pair_table.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/priv/repo/migrations/20180613114307_create_exchange_pair_table.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/priv/repo/migrations/20180613114307_create_exchange_pair_table.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.815789 | 88 | 0.721944 |
1a57915fb226794adf278283c0be60c26d64659b | 1,534 | ex | Elixir | lib/gh_web/views/error_helpers.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | lib/gh_web/views/error_helpers.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | lib/gh_web/views/error_helpers.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | defmodule GhWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:span... | 31.958333 | 71 | 0.662321 |
1a57db8e8a8cb8d77e6c46970af3ea4ea049829a | 659 | ex | Elixir | lib/expokefight_web/views/battles_view.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | lib/expokefight_web/views/battles_view.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | lib/expokefight_web/views/battles_view.ex | vbertazzo/expokefight | 19b6bd39af43e17c3ee14eab845cb24fb71d6d80 | [
"MIT"
] | null | null | null | defmodule ExpokefightWeb.BattlesView do
use ExpokefightWeb, :view
def render("create.json", %{battle: battle}) do
%{battle: render_one(battle, __MODULE__, "battle.json", as: :battle)}
end
def render("index.json", %{battles: battles}) do
%{battles: render_many(battles, __MODULE__, "battle.json", as: :b... | 26.36 | 76 | 0.660091 |
1a57fb473e1187898873478537e47e43d3fb1d80 | 1,127 | exs | Elixir | clients/ad_sense/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/mix.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | defmodule GoogleApi.AdSense.V14.Mixfile do
use Mix.Project
def project do
[app: :google_api_ad_sense,
version: "0.0.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
so... | 23.978723 | 108 | 0.594499 |
1a580aa6c48679af0bc50cf20dc2c163b26c14dd | 62 | ex | Elixir | plugins/one_wiki/lib/one_wiki_web/views/page_view.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_wiki/lib/one_wiki_web/views/page_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_wiki/lib/one_wiki_web/views/page_view.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWikiWeb.PageView do
use OneWikiWeb, :view
end
| 12.4 | 32 | 0.790323 |
1a5846bc34f7cfd52eb1323816f117639dba3086 | 7,337 | exs | Elixir | .credo.exs | delight-data/sms_factor_elixir | 2ca684387df6c069eb0a14e723233dde42d01fea | [
"MIT"
] | 1 | 2021-05-28T15:29:39.000Z | 2021-05-28T15:29:39.000Z | .credo.exs | delight-data/sms_factor_elixir | 2ca684387df6c069eb0a14e723233dde42d01fea | [
"MIT"
] | 1 | 2021-07-12T11:56:24.000Z | 2021-07-12T11:56:24.000Z | .credo.exs | delight-data/sms_factor_elixir | 2ca684387df6c069eb0a14e723233dde42d01fea | [
"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.615789 | 97 | 0.61333 |
1a5855d808d213f8d27d26df7f3e9e0cb25ae330 | 708 | ex | Elixir | gallows/lib/gallows_web/gettext.ex | wronfim/hangman_game | c4dc4b9f122e773fe87ac4dc88206b792c1b239e | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/gnome/game/gallows/lib/gallows_web/gettext.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | learning/gnome/game/gallows/lib/gallows_web/gettext.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule GallowsWeb.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 GallowsWeb.Gettext
# Simple translation
gettext "Here is t... | 28.32 | 72 | 0.680791 |
1a5862f26027d4fda854aec907e2953ca0a083fc | 3,498 | ex | Elixir | web/jobs/snapshots_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/jobs/snapshots_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | web/jobs/snapshots_tasks.ex | sahilpaudel/AfterGlow | 0859ec14b47c8c5704cc8e5cba86d39aa258fff5 | [
"MIT"
] | null | null | null | defmodule AfterGlow.SnapshotsTasks do
alias AfterGlow.Snapshots
alias AfterGlow.Snapshots.Snapshot
alias AfterGlow.CacheWrapper.Repo
alias AfterGlow.Async
import Ecto.Query
def save(snapshot) do
Repo.transaction(fn ->
try do
snapshot =
from(s in Snapshot, where: s.id == ^snapsho... | 24.291667 | 89 | 0.566609 |
1a5874810b41d06735d602bd115ced945606bef2 | 1,286 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/disable_service_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_user/lib/google_api/service_user/v1/model/disable_service_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_user/lib/google_api/service_user/v1/model/disable_service_request.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... | 30.619048 | 84 | 0.767496 |
1a5885f0c480c1d7318f6ebb4975accc14d76b53 | 1,761 | ex | Elixir | clients/ad_mob/lib/google_api/ad_mob/v1/model/mediation_report_spec_sort_condition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_mob/lib/google_api/ad_mob/v1/model/mediation_report_spec_sort_condition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_mob/lib/google_api/ad_mob/v1/model/mediation_report_spec_sort_condition.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.226415 | 96 | 0.716638 |
1a58b73fe32c666b3ea12fee5b187877d9b38b21 | 2,412 | ex | Elixir | lib/animina/accounts/user_notifier.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 1 | 2021-04-17T20:36:24.000Z | 2021-04-17T20:36:24.000Z | lib/animina/accounts/user_notifier.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 3 | 2021-04-15T19:45:43.000Z | 2021-04-16T06:08:24.000Z | lib/animina/accounts/user_notifier.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | null | null | null | defmodule Animina.Accounts.UserNotifier do
import Swoosh.Email
# For simplicity, this module simply logs messages to the terminal.
# You should replace it by a proper email or notification tool, such as:
#
# * Swoosh - https://hexdocs.pm/swoosh
# * Bamboo - https://hexdocs.pm/bamboo
#
defp deliver(... | 25.125 | 86 | 0.669569 |
1a590773d201d544b50f6118ed88bd74c3dac46c | 702 | ex | Elixir | web/gettext.ex | whiterook6/learning_pheonix | 5825ddc484c99ca828c42116d9b16806fd85a76e | [
"MIT"
] | null | null | null | web/gettext.ex | whiterook6/learning_pheonix | 5825ddc484c99ca828c42116d9b16806fd85a76e | [
"MIT"
] | null | null | null | web/gettext.ex | whiterook6/learning_pheonix | 5825ddc484c99ca828c42116d9b16806fd85a76e | [
"MIT"
] | null | null | null | defmodule Penguin.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 Penguin.Gettext
# Simple translation
gettext "Here is the str... | 28.08 | 72 | 0.678063 |
1a592fd6848e0133926e59c6a30ceadce5e27b50 | 365 | ex | Elixir | 2-card-server/lib/card_server/producer.ex | Holmes89/elixir-lessons | b800a943dc7fa45008fd9ea0bf1ae3318ec6fc61 | [
"MIT"
] | null | null | null | 2-card-server/lib/card_server/producer.ex | Holmes89/elixir-lessons | b800a943dc7fa45008fd9ea0bf1ae3318ec6fc61 | [
"MIT"
] | null | null | null | 2-card-server/lib/card_server/producer.ex | Holmes89/elixir-lessons | b800a943dc7fa45008fd9ea0bf1ae3318ec6fc61 | [
"MIT"
] | null | null | null | defmodule CardServer.Producer do
use GenStage
def start_link(initial \\ 0) do
GenStage.start_link(__MODULE__, 0, name: __MODULE__)
end
def init(card) do
{:producer, card}
end
def handle_demand(demand, state) do
deck= CardServer.Deck.new_shuffled_deck(demand)
events = tl deck
card = hd... | 19.210526 | 56 | 0.690411 |
1a595846da1f3b969bc120b0995d6566827c54b3 | 54,318 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/api/projects.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... | 46.110357 | 607 | 0.616352 |
1a59cca139772eec6d8e6b9dda0afa217c24b0c2 | 5,220 | ex | Elixir | lib/extr_text.ex | kuroda/extr_text | a59526e75d8335291b83f944d1e6db9cfe183194 | [
"MIT"
] | null | null | null | lib/extr_text.ex | kuroda/extr_text | a59526e75d8335291b83f944d1e6db9cfe183194 | [
"MIT"
] | 5 | 2021-11-22T02:12:28.000Z | 2021-12-04T05:22:13.000Z | lib/extr_text.ex | kuroda/extr_text | a59526e75d8335291b83f944d1e6db9cfe183194 | [
"MIT"
] | null | null | null | defmodule ExtrText do
@moduledoc """
ExtrText is an Elixir library for extracting text and meta information from `.docx`, `.xlsx`,
`.pptx` files.
"""
@doc """
Extracts properties (metadata) from the specified OOXML data.
"""
@spec get_metadata(binary()) :: {:ok, ExtrText.Metadata.t()} | {:error, String... | 28.216216 | 98 | 0.608429 |
1a59df1195c0e7eedc4395997dd3ba2099b5053a | 4,220 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/binding.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/binding.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/binding.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 79.622642 | 1,972 | 0.754265 |
1a59e86e2ffc249e0c99dc71a45c66776055c7c1 | 1,753 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/existence_filter.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/existence_filter.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/existence_filter.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... | 35.06 | 252 | 0.733029 |
1a59ede38188628532959c9fe0c6a7197ae7f776 | 1,082 | ex | Elixir | lib/flix_web/channels/user_socket.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 3 | 2021-03-21T23:52:16.000Z | 2021-06-02T03:47:00.000Z | lib/flix_web/channels/user_socket.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 44 | 2021-04-09T04:04:13.000Z | 2022-03-29T06:29:37.000Z | lib/flix_web/channels/user_socket.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | null | null | null | defmodule FlixWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", FlixWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ie... | 30.055556 | 83 | 0.692237 |
1a59f174c23f9a90da50a87eec3554b5a216299c | 1,901 | ex | Elixir | lib/cadet/assessments/assessment.ex | jiachen247/cadet | 4219acaa9ba1d3672b2220d9d1acb2cb671443a3 | [
"MIT"
] | null | null | null | lib/cadet/assessments/assessment.ex | jiachen247/cadet | 4219acaa9ba1d3672b2220d9d1acb2cb671443a3 | [
"MIT"
] | null | null | null | lib/cadet/assessments/assessment.ex | jiachen247/cadet | 4219acaa9ba1d3672b2220d9d1acb2cb671443a3 | [
"MIT"
] | null | null | null | defmodule Cadet.Assessments.Assessment do
@moduledoc """
The Assessment entity stores metadata of a students' assessment
(mission, sidequest, path, and contest)
"""
use Cadet, :model
use Arc.Ecto.Schema
alias Cadet.Assessments.{AssessmentType, Question, SubmissionStatus, Upload}
schema "assessments" d... | 31.163934 | 91 | 0.700684 |
1a5a14c4fd114b80e89a9380734a48f5ab4f9824 | 219 | ex | Elixir | lib/blockfrost/response/cardano/blocks/specific_block_in_slot_in_epoch_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 13 | 2021-08-31T03:54:37.000Z | 2022-01-30T17:39:40.000Z | lib/blockfrost/response/cardano/blocks/specific_block_in_slot_in_epoch_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | 6 | 2021-08-30T04:45:52.000Z | 2021-09-23T09:15:08.000Z | lib/blockfrost/response/cardano/blocks/specific_block_in_slot_in_epoch_response.ex | blockfrost/blockfrost-elixir | b1f8ea7ae47cd3a7037e1c9ed0d3691fc775bdec | [
"Apache-2.0"
] | null | null | null | defmodule Blockfrost.Response.SpecificBlockInSlotInEpochResponse do
use Blockfrost.Response.BaseSchema
@type t :: Blockfrost.Shared.Block.t()
@doc false
defdelegate cast(body), to: Blockfrost.Shared.Block
end
| 24.333333 | 67 | 0.794521 |
1a5a42a945c421153a4f159b5d4c60fae4f7b1d2 | 1,149 | exs | Elixir | config/config.exs | drobban/bottle | 57a502e765a65d635f48ec6d6cbfae1e87dfea75 | [
"Unlicense"
] | null | null | null | config/config.exs | drobban/bottle | 57a502e765a65d635f48ec6d6cbfae1e87dfea75 | [
"Unlicense"
] | null | null | null | config/config.exs | drobban/bottle | 57a502e765a65d635f48ec6d6cbfae1e87dfea75 | [
"Unlicense"
] | null | null | null | # use Mix.Config
# 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 y... | 23.9375 | 60 | 0.643168 |
1a5aa41f3d86ec6e6c6bf87a15a4f9f3c00209ae | 5,808 | ex | Elixir | day21/lib/day21.ex | bjorng/advent-of-code-2019 | b3612eefb5097f07ae139b5b7c637fabd3c86bef | [
"Apache-2.0"
] | 5 | 2019-12-08T05:14:27.000Z | 2020-10-26T04:06:22.000Z | day21/lib/day21.ex | bjorng/advent-of-code-2019 | b3612eefb5097f07ae139b5b7c637fabd3c86bef | [
"Apache-2.0"
] | 1 | 2019-12-22T18:20:36.000Z | 2019-12-22T19:06:48.000Z | day21/lib/day21.ex | bjorng/advent-of-code-2019 | b3612eefb5097f07ae139b5b7c637fabd3c86bef | [
"Apache-2.0"
] | null | null | null | defmodule Day21 do
def part1(input) do
machine = Intcode.new(input)
commands =
# I figured out this program in my head while away from my
# computer. I found out afterwards that the program can be
# simplified. It is not necessary to use the B sensor at all
# (and there is no need to t... | 25.813333 | 76 | 0.603478 |
1a5ab8d50bc21ee45385ff9112eeec1ef558851c | 77 | ex | Elixir | web/views/layout_view.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2016-07-06T02:06:31.000Z | 2016-07-06T02:06:31.000Z | web/views/layout_view.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | 1 | 2017-04-07T12:58:38.000Z | 2017-04-07T12:58:38.000Z | web/views/layout_view.ex | mule/phoenix-elm-auth | 6b7b3019c53673bf3b4b2b41fa3eec8f75d08947 | [
"MIT"
] | null | null | null | defmodule PhoenixAuthKata.LayoutView do
use PhoenixAuthKata.Web, :view
end
| 19.25 | 39 | 0.831169 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.