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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a1e998e7e73d2a675735d08b4edcb828e86046d | 17,141 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/leaderboard_configurations.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... | 43.505076 | 240 | 0.62896 |
4a1eb2b17c33bce2864f51090b901671e0b41987 | 1,142 | ex | Elixir | lib/shippo/operation/shipment.ex | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | lib/shippo/operation/shipment.ex | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | lib/shippo/operation/shipment.ex | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Shippo.Operation.Shipment do
@moduledoc """
[Shippo Shipments](https://goshippo.com/docs/reference#shipments)
"""
alias Shippo.Operation
@doc """
Creates a new shipment object.
"""
@spec create(params :: map(), opts :: keyword()) :: Operation.t()
def create(params, opts \\ []) do
Opera... | 24.826087 | 96 | 0.617338 |
4a1eca3dbdafb3d34703f5b8f3d11cd1fac5099f | 192 | ex | Elixir | apps/feedex_ui/lib/feedex_ui/live/home_live.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_ui/lib/feedex_ui/live/home_live.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_ui/lib/feedex_ui/live/home_live.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FeedexUi.HomeLive do
@moduledoc """
Live View for Home Page
"""
use FeedexUi, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, socket}
end
end
| 14.769231 | 41 | 0.666667 |
4a1ed76cc86399d96853f2a0f29ba871b45dda26 | 1,873 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.46 | 190 | 0.7496 |
4a1f14180fd60ddbf1dec44f94ca6cf6a7a37db9 | 9,697 | ex | Elixir | lib/finch.ex | learc83/finch | 55fc36e1d335b8817677d2257da51b314ec52aad | [
"MIT"
] | null | null | null | lib/finch.ex | learc83/finch | 55fc36e1d335b8817677d2257da51b314ec52aad | [
"MIT"
] | null | null | null | lib/finch.ex | learc83/finch | 55fc36e1d335b8817677d2257da51b314ec52aad | [
"MIT"
] | null | null | null | defmodule Finch do
@external_resource "README.md"
@moduledoc "README.md"
|> File.read!()
|> String.split("<!-- MDOC !-->")
|> Enum.fetch!(1)
alias Finch.{PoolManager, Request, Response}
use Supervisor
@default_pool_size 50
@default_pool_count 1
@default_connect_t... | 32.760135 | 104 | 0.646798 |
4a1f1edc45c191d1d6046b397adadbd694334129 | 627 | ex | Elixir | web/models/oauth/authorization.ex | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | web/models/oauth/authorization.ex | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | web/models/oauth/authorization.ex | deadmp/core | 4c244af3326f362ac6411e8996fb1cff0b5a29e6 | [
"MIT"
] | null | null | null | defmodule Core.OAuth.Authorization do
@moddoc false
use Ecto.Schema
import Ecto.Changeset
alias Core.OAuth.Authorization
schema "oauth_authorizations" do
field :token, :binary_id
field :refresh_token, :binary_id
field :scope, :string
field :expires, :integer
belongs_to :user, Core.User
... | 24.115385 | 68 | 0.698565 |
4a1f48c60a7400196a4bfae9712264103d7b6116 | 2,173 | exs | Elixir | config/prod.exs | pwgn/elixbwe | ce8baedfb923d36991ff944de368ce7008e72805 | [
"MIT"
] | 1 | 2019-03-17T15:04:36.000Z | 2019-03-17T15:04:36.000Z | config/prod.exs | pwgn/elixbwe | ce8baedfb923d36991ff944de368ce7008e72805 | [
"MIT"
] | null | null | null | config/prod.exs | pwgn/elixbwe | ce8baedfb923d36991ff944de368ce7008e72805 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# ElixbweWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Do... | 33.430769 | 67 | 0.721583 |
4a1f85b66075bd257a88ace06b6c7ddbccb492d9 | 6,369 | ex | Elixir | lib/nsq/connection/buffer.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | 89 | 2015-11-17T01:15:02.000Z | 2022-01-31T20:17:17.000Z | lib/nsq/connection/buffer.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | 20 | 2016-06-17T14:15:22.000Z | 2019-09-23T13:31:18.000Z | lib/nsq/connection/buffer.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | 33 | 2016-01-28T15:20:43.000Z | 2021-12-18T14:36:19.000Z | defmodule NSQ.Connection.Buffer do
require Logger
use GenServer
@initial_state %{
buffered_data: "",
buffered_data_size: 0,
compressed_data: "",
compression: :plaintext,
socket: nil,
timeout: nil,
type: nil,
zin: nil,
zout: nil,
}
def start_link(type, opts \\ []) do
{... | 26.648536 | 86 | 0.613597 |
4a1f9282a17d00d2bec71f10a9ec2117c0bbbc22 | 5,242 | exs | Elixir | test/groupher_server/cms/abuse_reports/account_report_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/abuse_reports/account_report_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/abuse_reports/account_report_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | # report_account
defmodule GroupherServer.Test.CMS.AbuseReports.AccountReport do
@moduledoc false
use GroupherServer.TestTools
alias Helper.ORM
alias GroupherServer.CMS
alias GroupherServer.Accounts
alias Accounts.Model.User
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:us... | 38.82963 | 95 | 0.661389 |
4a1f997c9ef0e56b0ea1dc0ebcdbac036f9499cb | 1,304 | ex | Elixir | apps/model/lib/model/trip.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/model/lib/model/trip.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/model/lib/model/trip.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule Model.Trip do
@moduledoc """
Trip represents the journey a vehicle takes through a set of stops.
"""
use Recordable, [
:id,
:service_id,
:route_id,
:headsign,
:name,
:direction_id,
:block_id,
:shape_id,
:wheelchair_accessible,
:alternate_route,
:route_type,... | 24.603774 | 69 | 0.594325 |
4a1fa4cfdbe8be40b37be08605245db15b258753 | 494 | exs | Elixir | test/monit_chrome_test.exs | ananth99/process_monit | 879d73c3ea3c984474c821eae6e6448b530ce4be | [
"MIT"
] | null | null | null | test/monit_chrome_test.exs | ananth99/process_monit | 879d73c3ea3c984474c821eae6e6448b530ce4be | [
"MIT"
] | null | null | null | test/monit_chrome_test.exs | ananth99/process_monit | 879d73c3ea3c984474c821eae6e6448b530ce4be | [
"MIT"
] | null | null | null | defmodule MonitChromeTest do
use ExUnit.Case, async: true
doctest MonitChromeTest
test "chrome process monitor" do
{:ok, chrome} = GenServer.start_link MonitChrome, :ok, []
# Chrome needs to be open for the test to pass
assert GenServer.call chrome, {:chrome_info, 5000} != nil
# Kill chrome proce... | 35.285714 | 61 | 0.710526 |
4a1fc323f3591ad791275a67e7cd6d451e93720e | 471 | ex | Elixir | lib/artus/page_title.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | lib/artus/page_title.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | lib/artus/page_title.ex | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | defmodule Artus.PageTitle do
@moduledoc "Page title builder injector and builder"
@suffix "BIAS"
def page_title(assigns), do: assigns |> get |> put_suffix
defp put_suffix(nil), do: @suffix
defp put_suffix(title), do: title <> " - " <> @suffix
defp get(%{view_module: Artus.Admin.PageView}), do: "Admin"
... | 29.4375 | 88 | 0.670913 |
4a1fc990ff27a1af5c6a86a39e311805d00b4163 | 1,963 | ex | Elixir | test/support/test_helpers.ex | erikthiem/content_security_policy | eba3bcdcd54a8c756a9b183475cdc33a6b08f2d8 | [
"MIT"
] | 3 | 2019-11-04T07:25:00.000Z | 2020-08-17T15:12:45.000Z | test/support/test_helpers.ex | erikthiem/content_security_policy | eba3bcdcd54a8c756a9b183475cdc33a6b08f2d8 | [
"MIT"
] | null | null | null | test/support/test_helpers.ex | erikthiem/content_security_policy | eba3bcdcd54a8c756a9b183475cdc33a6b08f2d8 | [
"MIT"
] | 1 | 2020-02-06T14:40:56.000Z | 2020-02-06T14:40:56.000Z | defmodule ContentSecurityPolicy.TestHelpers do
@moduledoc """
Contains helper functions for testing `ContentSecurityPolicy` internally.
"""
alias ContentSecurityPolicy.Directive
alias ContentSecurityPolicy.Policy
@valid_directives Policy.__struct__()
|> Map.keys()
|... | 28.042857 | 80 | 0.706572 |
4a1fcd774838b7ba6851810491f3133f54a1e3d2 | 2,271 | ex | Elixir | lib/protobuf/protoc/generator/util.ex | tyrchen/protobuf-elixir | 0b976ddc1651093a8a5d418ce409ddf638dce1a1 | [
"MIT"
] | 1 | 2021-06-13T20:26:58.000Z | 2021-06-13T20:26:58.000Z | lib/protobuf/protoc/generator/util.ex | ArcBlock/protobuf-elixir | 0b976ddc1651093a8a5d418ce409ddf638dce1a1 | [
"MIT"
] | null | null | null | lib/protobuf/protoc/generator/util.ex | ArcBlock/protobuf-elixir | 0b976ddc1651093a8a5d418ce409ddf638dce1a1 | [
"MIT"
] | 1 | 2020-03-25T22:37:45.000Z | 2020-03-25T22:37:45.000Z | defmodule Protobuf.Protoc.Generator.Util do
def trans_name(name) do
Recase.to_snake(name)
end
def trans_type(type) do
type
|> atom_to_string()
|> String.split(".")
|> List.last()
|> Recase.to_snake()
|> to_gql()
end
def join_name(list) do
Enum.join(list, ".")
end
def mod... | 24.684783 | 103 | 0.608102 |
4a1fd95006b1afd562968bd60445f25a114b2075 | 16,816 | exs | Elixir | lib/mix/test/mix/tasks/deps_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/deps_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/deps_test.exs | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.DepsTest do
use MixTest.Case
defmodule DepsApp do
def project do
[ app: :deps, version: "0.1.0",
deps: [
{:ok, "0.1.0", github: "elixir-lang/ok"},
{:invalidvsn, "0.2.0", path: "deps/invalidvsn"},
... | 29.501754 | 128 | 0.599726 |
4a1ff07fc271cf8804a8dfcfe773b090e1744af0 | 905 | exs | Elixir | config/test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | config/test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | config/test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :vutuv, VutuvWeb.Endpoint,
http: [port: 4002],
server: true
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :vutuv, Vutuv.Repo,
use... | 25.857143 | 71 | 0.756906 |
4a20245848eae57b2a81fe6b7cc1a61956b9d0e1 | 425 | exs | Elixir | priv/repo/migrations/20200906002555_add_cldr_unit_type_to_postgres.exs | kianmeng/cldr_units_sql | 7ea5c9673b4986c21baf035eaf07451f9ad37d1c | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20200906002555_add_cldr_unit_type_to_postgres.exs | kianmeng/cldr_units_sql | 7ea5c9673b4986c21baf035eaf07451f9ad37d1c | [
"Apache-2.0"
] | 2 | 2021-07-08T21:14:50.000Z | 2022-03-07T20:43:44.000Z | priv/repo/migrations/20200906002555_add_cldr_unit_type_to_postgres.exs | kianmeng/cldr_units_sql | 7ea5c9673b4986c21baf035eaf07451f9ad37d1c | [
"Apache-2.0"
] | 2 | 2021-07-08T20:24:57.000Z | 2022-03-06T13:54:41.000Z | defmodule Cldr.Unit.SQL.Repo.Migrations.AddCldrUnitTypeToPostgres do
use Ecto.Migration
def up do
execute("CREATE TYPE public.cldr_unit AS (unit varchar, value numeric);")
execute(
"CREATE TYPE public.cldr_unit_with_usage AS (unit varchar, value numeric, usage varchar);"
)
end
def down do
... | 26.5625 | 96 | 0.729412 |
4a202da6d7cdc5ff17c7a22d61a06d45c2d0794d | 1,699 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/add_roles_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/add_roles_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/add_roles_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.148936 | 194 | 0.757504 |
4a202fa35408e4219b589357f27c60fc1e4cb3a6 | 294 | exs | Elixir | priv/repo/migrations/20200109222434_create_links.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | 2 | 2020-09-07T03:42:36.000Z | 2021-05-04T23:58:43.000Z | priv/repo/migrations/20200109222434_create_links.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | 20 | 2020-01-15T03:26:48.000Z | 2020-02-02T20:53:39.000Z | priv/repo/migrations/20200109222434_create_links.exs | chrisbodhi/nuzzelish | 4273dc34e5cc2eab11a6c512272b03a60f302e64 | [
"MIT"
] | null | null | null | defmodule Nuzzelish.Repo.Migrations.CreateLinks do
use Ecto.Migration
def change do
create table(:links) do
add :url, :string
add :title, :string
add :description, :string
add :site_name, :string
add :image, :string
timestamps()
end
end
end
| 17.294118 | 50 | 0.636054 |
4a203c72234e6076ef744e1841bc57a38a813e37 | 644 | ex | Elixir | lib/changelog/schema/news/news_item_topic.ex | matryer/changelog.com | 62680eeeb53b42c6e9aa6d77df8b035d25bb8037 | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog/schema/news/news_item_topic.ex | matryer/changelog.com | 62680eeeb53b42c6e9aa6d77df8b035d25bb8037 | [
"MIT"
] | null | null | null | lib/changelog/schema/news/news_item_topic.ex | matryer/changelog.com | 62680eeeb53b42c6e9aa6d77df8b035d25bb8037 | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Changelog.NewsItemTopic do
use Changelog.Schema
alias Changelog.{NewsItem, Topic}
schema "news_item_topics" do
field :position, :integer
field :delete, :boolean, virtual: true
belongs_to :news_item, NewsItem, foreign_key: :item_id
belongs_to :topic, Topic
timestamps()
end
de... | 23.851852 | 79 | 0.703416 |
4a204f916deccb1c130742de6f21362af5dbda93 | 1,799 | ex | Elixir | clients/language/lib/google_api/language/v1/model/classification_category.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/classification_category.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/language/lib/google_api/language/v1/model/classification_category.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.98 | 198 | 0.738188 |
4a208c169e0eec077cb1ea10d669457e60c3a2a4 | 9,461 | exs | Elixir | lib/elixir/test/elixir/regex_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/regex_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/regex_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule RegexTest do
use ExUnit.Case, async: true
doctest Regex
test "multiline" do
refute Regex.match?(~r/^b$/, "a\nb\nc")
assert Regex.match?(~r/^b$/m, "a\nb\nc")
end
test "precedence" do
assert {"aa", :unknown} |> elem(0) =~ ~r/(a)\1/
end
... | 35.567669 | 108 | 0.536201 |
4a20b3da7151c533d2d780c8dfc73a9585cd1e41 | 2,599 | exs | Elixir | mix.exs | xing/bors-ng | dda01288f2843d1ac29aa27b82b90625060bb750 | [
"Apache-2.0"
] | null | null | null | mix.exs | xing/bors-ng | dda01288f2843d1ac29aa27b82b90625060bb750 | [
"Apache-2.0"
] | 20 | 2022-01-24T17:16:28.000Z | 2022-03-28T17:20:34.000Z | mix.exs | xing/bors-ng | dda01288f2843d1ac29aa27b82b90625060bb750 | [
"Apache-2.0"
] | null | null | null | defmodule BorsNg.Mixfile do
use Mix.Project
def project do
[
name: "Bors-NG",
app: :bors,
version: "0.1.0",
source_url: "https://github.com/bors-ng/bors-ng",
homepage_url: "https://bors.tech/",
docs: [
main: "hacking",
extras: ["HACKING.md", "CONTRIBUTING.md"... | 28.25 | 79 | 0.52097 |
4a20cd01021167d43ce9e9238658401d15544d44 | 3,581 | exs | Elixir | test/tesla/middleware/alchemetrics_test.exs | globocom/alchemetrics-tesla | 4b1c464766653b8adab00f95b9abb5015f9de900 | [
"MIT"
] | 8 | 2017-09-18T22:52:13.000Z | 2019-05-08T05:56:45.000Z | test/tesla/middleware/alchemetrics_test.exs | globocom/alchemetrics-tesla | 4b1c464766653b8adab00f95b9abb5015f9de900 | [
"MIT"
] | null | null | null | test/tesla/middleware/alchemetrics_test.exs | globocom/alchemetrics-tesla | 4b1c464766653b8adab00f95b9abb5015f9de900 | [
"MIT"
] | 5 | 2017-09-19T10:25:43.000Z | 2018-10-08T11:36:39.000Z | defmodule Tesla.Middleware.AlchemetricsTest do
use ExUnit.Case
import Mock
alias Support.TeslaClient
alias Support.TeslaClientWithBaseUrl
alias Support.TeslaClientWithBaseUrlAfter
setup_with_mocks([{Alchemetrics, [], [report: fn
_,function when is_function(function) -> function.()
_,_ -> nil
end,... | 28.648 | 120 | 0.614633 |
4a20d24298c00e84d0f513f79cb0ad6f214d1c1b | 1,244 | ex | Elixir | web/views/error_helpers.ex | kluthen/upsilon_battle | 3e01bb162def2c42c78936afc07b4a74c67624ac | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | kluthen/upsilon_battle | 3e01bb162def2c42c78936afc07b4a74c67624ac | [
"MIT"
] | 2 | 2017-07-05T06:48:59.000Z | 2017-07-13T14:16:25.000Z | web/views/error_helpers.ex | kluthen/upsilon_battle | 3e01bb162def2c42c78936afc07b4a74c67624ac | [
"MIT"
] | null | null | null | defmodule UpsilonBattle.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
if error = form.errors[field] do
content_tag :span, translate_error(er... | 30.341463 | 79 | 0.672026 |
4a20e8efb31254e0f1e7a4e59d1f8e60ba0d34a4 | 59,332 | exs | Elixir | test/engine_test.exs | pzingg/phoenix_markdown | ef7b5f76f339babec688021080a70708d9ddf1c1 | [
"MIT"
] | 71 | 2016-07-05T16:29:01.000Z | 2022-03-09T22:21:09.000Z | test/engine_test.exs | pzingg/phoenix_markdown | ef7b5f76f339babec688021080a70708d9ddf1c1 | [
"MIT"
] | 9 | 2016-10-03T21:59:25.000Z | 2020-01-28T16:41:17.000Z | test/engine_test.exs | pzingg/phoenix_markdown | ef7b5f76f339babec688021080a70708d9ddf1c1 | [
"MIT"
] | 14 | 2016-07-06T17:55:12.000Z | 2022-02-22T17:39:16.000Z | defmodule PhoenixMarkdown.EngineTest do
use ExUnit.Case
alias PhoenixMarkdown.Engine
# ============================================================================
# vanilla markdown
test "compile a vanilla markdown template with smart tags turned off" do
Mix.Config.persist(phoenix_markdown: [earmark: %... | 43.94963 | 132 | 0.255646 |
4a20ffda87d2018ee8499f7833013177bb3f169c | 510 | exs | Elixir | test/ja_resource/repo_test.exs | GetThru/ja_resource | 1035b86e74823b14389e07855d67133bcf4381b5 | [
"Apache-2.0"
] | 72 | 2016-11-18T03:16:37.000Z | 2021-12-04T16:34:34.000Z | test/ja_resource/repo_test.exs | GetThru/ja_resource | 1035b86e74823b14389e07855d67133bcf4381b5 | [
"Apache-2.0"
] | 48 | 2016-11-17T16:40:12.000Z | 2021-02-16T01:24:32.000Z | test/ja_resource/repo_test.exs | GetThru/ja_resource | 1035b86e74823b14389e07855d67133bcf4381b5 | [
"Apache-2.0"
] | 22 | 2017-01-29T11:39:07.000Z | 2020-10-07T09:08:55.000Z | defmodule JaResource.RepoTest do
use ExUnit.Case
Application.put_env(:ja_resource, :repo, MyApp.Repo)
defmodule ExampleDefaultController do
use JaResource
end
defmodule ExampleCustomController do
use JaResource
def repo, do: MyApp.SecondaryRepo
end
test "Repo should be poplulated from set... | 21.25 | 62 | 0.760784 |
4a211a0ca3a6bbe7fee71d4aea39ce08d975c09f | 1,846 | ex | Elixir | clients/elixir/generated/lib/cloud_manager_api/api/branches.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 3 | 2020-06-23T05:31:52.000Z | 2020-11-26T05:34:57.000Z | clients/elixir/generated/lib/cloud_manager_api/api/branches.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 2 | 2021-01-21T01:19:54.000Z | 2021-12-09T22:30:22.000Z | clients/elixir/generated/lib/cloud_manager_api/api/branches.ex | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 1 | 2020-11-18T11:48:13.000Z | 2020-11-18T11:48:13.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule CloudManagerAPI.Api.Branches do
@moduledoc """
API calls for all endpoints tagged `Branches`.
"""
alias CloudManagerAPI.Connection
import C... | 39.276596 | 168 | 0.711268 |
4a2138734412516a8f9df28b4abdaf28edaa515e | 576 | exs | Elixir | mix.exs | BigTom/metronome | c1ccdc69251a893e679c9ea40d9941943d200cc0 | [
"MIT"
] | null | null | null | mix.exs | BigTom/metronome | c1ccdc69251a893e679c9ea40d9941943d200cc0 | [
"MIT"
] | null | null | null | mix.exs | BigTom/metronome | c1ccdc69251a893e679c9ea40d9941943d200cc0 | [
"MIT"
] | null | null | null | defmodule Metronome.MixProject do
use Mix.Project
def project do
[
app: :metronome,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extr... | 19.862069 | 87 | 0.579861 |
4a214db8a4c996fd79b3c27ba4c0441f22066bcd | 370 | ex | Elixir | web/views/error_view.ex | lsimoneau/panda-ci | 24804b310eda9800a721e71e97bcb0304554517d | [
"MIT"
] | null | null | null | web/views/error_view.ex | lsimoneau/panda-ci | 24804b310eda9800a721e71e97bcb0304554517d | [
"MIT"
] | null | null | null | web/views/error_view.ex | lsimoneau/panda-ci | 24804b310eda9800a721e71e97bcb0304554517d | [
"MIT"
] | null | null | null | defmodule Panda.ErrorView do
use Panda.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, ass... | 20.555556 | 47 | 0.694595 |
4a21790180a62c1c87f88f8c622ae5358dc12a5b | 51,998 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_disks.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_disks.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_disks.ex | 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... | 51.078585 | 2,276 | 0.625832 |
4a218751c55d58b5aabe7c08dfaffad3d784b749 | 636 | ex | Elixir | lib/nlw_05_elixir/restaurant.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | lib/nlw_05_elixir/restaurant.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | lib/nlw_05_elixir/restaurant.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | defmodule Nlw05Elixir.Restaurant do
use Ecto.Schema
import Ecto.Changeset
alias Nlw05Elixir.Supply
@primary_key {:id, :binary_id, autogenerate: true}
@required_params [:email, :name]
@derive {Jason.Encoder, only: @required_params ++ [:id]}
schema "restaurants" do
field :email, :string
field :na... | 21.931034 | 58 | 0.677673 |
4a21b6c0b4f1b3aef99c08618ee30c3e1dc22657 | 704 | exs | Elixir | mix.exs | chriskjaer/lorem | 9b135c155fe173d7a80c7490607a0829728f07fe | [
"MIT"
] | null | null | null | mix.exs | chriskjaer/lorem | 9b135c155fe173d7a80c7490607a0829728f07fe | [
"MIT"
] | null | null | null | mix.exs | chriskjaer/lorem | 9b135c155fe173d7a80c7490607a0829728f07fe | [
"MIT"
] | null | null | null | defmodule Lorem.Mixfile do
use Mix.Project
def project do
[app: :lorem,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more inf... | 21.333333 | 77 | 0.605114 |
4a21d5ab77a2f71fc3471e87265c4c6d41c351cc | 3,215 | exs | Elixir | test/lib/dwolla/funding_source_test.exs | pay-it-off/dwolla-elixir | ea71c44ed1b02be5cf416225b872490a4f7e4bf9 | [
"MIT"
] | null | null | null | test/lib/dwolla/funding_source_test.exs | pay-it-off/dwolla-elixir | ea71c44ed1b02be5cf416225b872490a4f7e4bf9 | [
"MIT"
] | null | null | null | test/lib/dwolla/funding_source_test.exs | pay-it-off/dwolla-elixir | ea71c44ed1b02be5cf416225b872490a4f7e4bf9 | [
"MIT"
] | 1 | 2022-02-13T17:14:59.000Z | 2022-02-13T17:14:59.000Z | defmodule Dwolla.FundingSourceTest do
use ExUnit.Case
import Dwolla.Factory
alias Dwolla.FundingSource
alias Plug.Conn
setup do
bypass = Bypass.open()
Application.put_env(:dwolla, :root_uri, "http://localhost:#{bypass.port}/")
{:ok, bypass: bypass}
end
describe "funding-source" do
test... | 29.495413 | 96 | 0.615863 |
4a2202888e94f013349a35fad1773ba07a8494c4 | 3,688 | exs | Elixir | test/mix/tasks/phx.gen.channel_test.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 7 | 2021-01-31T04:51:08.000Z | 2022-01-09T06:59:28.000Z | test/mix/tasks/phx.gen.channel_test.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 2 | 2022-02-19T12:43:20.000Z | 2022-02-27T23:30:32.000Z | test/mix/tasks/phx.gen.channel_test.exs | matthewp/phoenix | af86b95db365faada58d326e98de65c811690bc7 | [
"MIT"
] | 2 | 2021-02-06T08:40:23.000Z | 2021-03-20T16:35:47.000Z | Code.require_file "../../../installer/test/mix_helper.exs", __DIR__
defmodule PhoenixWeb.DupChannel do
end
defmodule Mix.Tasks.Phx.Gen.ChannelTest do
use ExUnit.Case
import MixHelper
alias Mix.Tasks.Phx.Gen
setup do
Mix.Task.clear()
:ok
end
test "generates channel" do
in_tmp_project "generat... | 35.461538 | 92 | 0.643709 |
4a22041ed98dc6b94cba3c48f263be4952ab5f37 | 144 | ex | Elixir | test_support/Example.ex | RobertDober/read_doc | 60aa55d2c9c4dcbfca28ef15a9584c0c1842bd3b | [
"Apache-2.0"
] | 1 | 2018-05-17T16:40:12.000Z | 2018-05-17T16:40:12.000Z | test_support/Example.ex | RobertDober/read_doc | 60aa55d2c9c4dcbfca28ef15a9584c0c1842bd3b | [
"Apache-2.0"
] | null | null | null | test_support/Example.ex | RobertDober/read_doc | 60aa55d2c9c4dcbfca28ef15a9584c0c1842bd3b | [
"Apache-2.0"
] | null | null | null | defmodule Support.Example do
@moduledoc """
modduledoc for example
"""
@doc """
A function doc
"""
def a_function(), do: nil
end
| 13.090909 | 28 | 0.625 |
4a22088e8e3fcbb0d09cd4058eabf1c581c91acc | 4,294 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/binding.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/binding.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/binding.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 81.018868 | 1,972 | 0.756404 |
4a2212e0a9fc64b2a97c720a17f389fc1389aecf | 4,201 | ex | Elixir | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/api/sites.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/api/sites.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/api/sites.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 46.164835 | 196 | 0.666984 |
4a22472bb127ae458c267b9123c86cf3d225e0bb | 86 | exs | Elixir | test/views/page_view_test.exs | plank-tools/oauth2_example | 22e9ad9d41676bd161ee854511babf814bf701e7 | [
"MIT"
] | 145 | 2015-01-07T21:29:53.000Z | 2022-01-08T18:27:35.000Z | test/views/page_view_test.exs | plank-tools/oauth2_example | 22e9ad9d41676bd161ee854511babf814bf701e7 | [
"MIT"
] | 19 | 2015-02-22T04:20:09.000Z | 2018-11-20T15:06:26.000Z | test/views/page_view_test.exs | plank-tools/oauth2_example | 22e9ad9d41676bd161ee854511babf814bf701e7 | [
"MIT"
] | 56 | 2015-04-10T05:19:05.000Z | 2021-12-02T19:44:06.000Z | defmodule OAuth2Example.PageViewTest do
use OAuth2Example.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
4a22759347a55c679d210fc667b11eb445d1f32c | 86 | ex | Elixir | lib/lib_lunar_ex/venus.ex | TehSnappy/lib_lunar_ex | a4cd4a3cdec44c2adaefbf1791b8863db568cbbd | [
"MIT"
] | null | null | null | lib/lib_lunar_ex/venus.ex | TehSnappy/lib_lunar_ex | a4cd4a3cdec44c2adaefbf1791b8863db568cbbd | [
"MIT"
] | null | null | null | lib/lib_lunar_ex/venus.ex | TehSnappy/lib_lunar_ex | a4cd4a3cdec44c2adaefbf1791b8863db568cbbd | [
"MIT"
] | 1 | 2019-10-12T03:23:41.000Z | 2019-10-12T03:23:41.000Z | defmodule LibLunarEx.Venus do
use LibLunarEx.Body
def planet_number(), do: 2
end
| 14.333333 | 29 | 0.755814 |
4a2286ca62d343c040b51e97ac0661246b65758f | 2,938 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/device_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_publisher/lib/google_api/android_publisher/v2/model/device_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/device_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.155844 | 125 | 0.661334 |
4a228b9dba32aca321a6a5d86ad22d152c3ca496 | 315 | exs | Elixir | config/prod.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | 1 | 2018-01-14T09:41:05.000Z | 2018-01-14T09:41:05.000Z | config/prod.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | null | null | null | config/prod.exs | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | null | null | null | use Mix.Config
config :phoenix, BeamToolboxWeb.Router,
port: System.get_env("PORT"),
ssl: false,
code_reload: false,
cookies: true,
session_key: "_beam_toolbox_web_key",
session_secret: "@TFCIFT_#V0ZN_^X)&UD1!3D_FFI8CH1E#0=12_!6&P4JWFY1S3VXX18F$TM0H(1NQH%I"
config :phoenix, :logger,
level: :error
| 22.5 | 89 | 0.736508 |
4a22fb878889bba835501fa1f4bed5fc3e7da7c8 | 152 | ex | Elixir | lib/wabanex/users/create.ex | fabramosdev/wabanex | 9ae5762071149c33261d68f0f237898bc86805ce | [
"MIT"
] | null | null | null | lib/wabanex/users/create.ex | fabramosdev/wabanex | 9ae5762071149c33261d68f0f237898bc86805ce | [
"MIT"
] | null | null | null | lib/wabanex/users/create.ex | fabramosdev/wabanex | 9ae5762071149c33261d68f0f237898bc86805ce | [
"MIT"
] | null | null | null | defmodule Wabanex.Users.Create do
alias Wabanex.{Repo,User}
def call(params) do
params
|> User.changeset()
|> Repo.insert()
end
end
| 15.2 | 33 | 0.651316 |
4a2312a4d91e2b70970e1de66db2aaf3f4895059 | 507 | ex | Elixir | client/lib/collector/sup.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | 1 | 2017-07-14T03:19:56.000Z | 2017-07-14T03:19:56.000Z | client/lib/collector/sup.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | null | null | null | client/lib/collector/sup.ex | vfournie/rudp-playground | 33b72e69e9bfab75df2febeab0c8c3e9b5fffd16 | [
"MIT"
] | null | null | null | defmodule RudpClient.Collector.Supervisor do
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
# Initialize the :ets table that will contain the stats
:ets.new(:rudp_stats, [:set, :public, :named_table, {:read_concu... | 25.35 | 115 | 0.639053 |
4a23398ff2c8cc871b9a66b179fecb00c0da8594 | 6,652 | exs | Elixir | elixir/test/homework/transactions_test.exs | XanderHarris/web-homework | d0b5c2bbbd055341d51f02f824a2020188f6c094 | [
"MIT"
] | null | null | null | elixir/test/homework/transactions_test.exs | XanderHarris/web-homework | d0b5c2bbbd055341d51f02f824a2020188f6c094 | [
"MIT"
] | null | null | null | elixir/test/homework/transactions_test.exs | XanderHarris/web-homework | d0b5c2bbbd055341d51f02f824a2020188f6c094 | [
"MIT"
] | null | null | null | defmodule Homework.TransactionsTest do
use Homework.DataCase
alias Ecto.UUID
alias Homework.Merchants
alias Homework.Transactions
alias Homework.Users
alias Homework.Companies
describe "transactions" do
alias Homework.Transactions.Transaction
setup do
{:ok, merchant1} =
Merchants.... | 32.607843 | 156 | 0.656494 |
4a23621a8e19a8930d1861e13cae5d0574572b68 | 345 | ex | Elixir | lib/hl7/2.4/segments/ecd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/ecd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/ecd.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.ECD do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
reference_command_number: nil,
remote_control_command: DataTypes.Ce,
response_required: nil,
requested_completion_time: DataTypes.Tq,
p... | 20.294118 | 46 | 0.689855 |
4a237d136898d06b13f27174183aa1736e3debe7 | 1,987 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/video.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/slides/lib/google_api/slides/v1/model/video.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/slides/lib/google_api/slides/v1/model/video.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... | 35.482143 | 159 | 0.697534 |
4a242057152adee893d8db3cefb18298c519856e | 2,308 | ex | Elixir | lib/linkir_web.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | lib/linkir_web.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | lib/linkir_web.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | defmodule LinkirWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use LinkirWeb, :controller
use LinkirWeb, :view
The definitions below will be executed for every view,
controller, etc... | 22.407767 | 78 | 0.680243 |
4a24232663ed4c8032c3a19014f93a5cf2456c12 | 170 | exs | Elixir | test/transmog/invalid_key_path_error_test.exs | dhaspden/transmog | 1adb99a59cd44940486f69f78b64bff4374c612b | [
"MIT"
] | 3 | 2019-10-18T01:11:11.000Z | 2020-04-27T06:21:58.000Z | test/transmog/invalid_key_path_error_test.exs | dhaspden/transmog | 1adb99a59cd44940486f69f78b64bff4374c612b | [
"MIT"
] | 5 | 2019-10-18T01:02:55.000Z | 2019-11-26T18:04:20.000Z | test/transmog/invalid_key_path_error_test.exs | dhaspden/transmog | 1adb99a59cd44940486f69f78b64bff4374c612b | [
"MIT"
] | 1 | 2019-10-19T15:11:01.000Z | 2019-10-19T15:11:01.000Z | defmodule Transmog.InvalidKeyPathErrorTest do
@moduledoc false
use ExUnit.Case, async: true
alias Transmog.InvalidKeyPathError
doctest InvalidKeyPathError
end
| 17 | 45 | 0.817647 |
4a244071df5f1a53ee604dd8db67b44420957227 | 5,969 | ex | Elixir | lib/audit/billing/process.ex | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | lib/audit/billing/process.ex | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | lib/audit/billing/process.ex | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | defmodule Audit.Billing.Process do
# use GenServer
use GenFSM
use Timex
require Logger
# require Audit.Cache.Model
@auth_body Poison.encode!(%{"auth" => %{"tenantName" => Application.get_env(:audit, :tenantname),
"passwordCredentials" => %{"username" => Application.get_env(:audit... | 38.019108 | 123 | 0.601106 |
4a247edf7e34a3dcebedc2a32534d1fb3faa8f98 | 2,178 | ex | Elixir | examples/lib/examples_web/controllers/order_controller.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 37 | 2018-09-20T03:05:26.000Z | 2022-03-11T07:24:54.000Z | examples/lib/examples_web/controllers/order_controller.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 6 | 2018-10-17T15:35:11.000Z | 2018-11-01T21:34:43.000Z | examples/lib/examples_web/controllers/order_controller.ex | OctopusRage/pharams | ae7b114e41fca82ba9412bf51a91997619a223fe | [
"MIT"
] | 4 | 2019-12-15T20:39:58.000Z | 2021-08-16T04:08:49.000Z | defmodule ExamplesWeb.OrderController do
use ExamplesWeb, :controller
use Pharams, key_type: :string
alias ExamplesWeb.AddressValidator
alias Ecto.UUID
pharams :index do
optional(:page, :one, ExamplesWeb.PaginationValidator)
optional :price, :one do
optional(:gte, :float, number: [greater_tha... | 24.75 | 88 | 0.656566 |
4a24adef549cd89d4f6011be46fdc5cfc8967867 | 1,932 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/run_build_trigger_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/run_build_trigger_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/run_build_trigger_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.45283 | 187 | 0.723085 |
4a24cc11869f41cc4dcad4ae6f92707e904ca81c | 364 | ex | Elixir | apps/writer/lib/writer.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/writer/lib/writer.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/writer/lib/writer.ex | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Writer do
@callback start_link(term) :: GenServer.on_start()
@callback child_spec(term) :: Supervisor.child_spec()
@callback write(GenServer.server(), [term]) :: :ok | {:error, term}
@callback write(GenServer.server(), [term], keyword) :: :ok | {:error, term}
@callback write([term]) :: :ok | {:error... | 36.4 | 78 | 0.675824 |
4a24f0a5265e63af2a5b9932f78503abe1af15c2 | 350 | exs | Elixir | test/films_test.exs | danielpilon/letterbexd | b6a7e4e5572607c725c3c2c8e4cddec5877006c7 | [
"MIT"
] | null | null | null | test/films_test.exs | danielpilon/letterbexd | b6a7e4e5572607c725c3c2c8e4cddec5877006c7 | [
"MIT"
] | null | null | null | test/films_test.exs | danielpilon/letterbexd | b6a7e4e5572607c725c3c2c8e4cddec5877006c7 | [
"MIT"
] | null | null | null | defmodule FilmsTest do
use ExUnit.Case
test "returns followees films by rating" do
{:ok, films} = Films.by_rating("user1", [:five])
assert Enum.count(films) == 1
end
test "return followees films by range of ratings" do
{:ok, films} = Films.by_rating("user1", [:four_and_half, :five])
assert Enu... | 25 | 68 | 0.668571 |
4a2570f5697e843b27a05a93ba30d4548e7e616a | 2,240 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_matrix.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_matrix.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_matrix.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.721311 | 304 | 0.718304 |
4a25b74b1330c1245f316b83706b00156cc41b34 | 536 | ex | Elixir | lib/batch_elixir/stats/statix.ex | OnceApp/batch_elixir | eabd12abaef7b703c95a30641be27c1658c2a64f | [
"MIT"
] | 3 | 2019-02-11T11:32:44.000Z | 2019-03-01T15:58:46.000Z | lib/batch_elixir/stats/statix.ex | OnceApp/batch_elixir | eabd12abaef7b703c95a30641be27c1658c2a64f | [
"MIT"
] | 1 | 2019-02-05T17:20:15.000Z | 2019-02-11T11:03:14.000Z | lib/batch_elixir/stats/statix.ex | OnceApp/batch_elixir | eabd12abaef7b703c95a30641be27c1658c2a64f | [
"MIT"
] | 1 | 2019-08-08T16:40:26.000Z | 2019-08-08T16:40:26.000Z | defmodule BatchElixir.Stats.Statix do
use Statix
use GenServer
def start_link do
GenServer.start_link(__MODULE__, :ok, name: BatchElixir.Stats)
end
def init(:ok) do
__MODULE__.connect()
{:ok, nil}
end
def handle_cast({:increment, key, value}, _state) do
__MODULE__.increment(key, value)
... | 19.142857 | 66 | 0.669776 |
4a25c339d85eff3b6b292a70fce0fc3ee3b6d53f | 661 | ex | Elixir | apps/massa_proxy/lib/massa_proxy/cluster/global_registry.ex | marcellanz/massa | 97423e2e45b37d372bba51c76c1dd8433ac85b8c | [
"Apache-2.0"
] | null | null | null | apps/massa_proxy/lib/massa_proxy/cluster/global_registry.ex | marcellanz/massa | 97423e2e45b37d372bba51c76c1dd8433ac85b8c | [
"Apache-2.0"
] | 16 | 2021-11-01T08:19:03.000Z | 2022-03-30T08:17:43.000Z | apps/massa_proxy/lib/massa_proxy/cluster/global_registry.ex | marcellanz/massa | 97423e2e45b37d372bba51c76c1dd8433ac85b8c | [
"Apache-2.0"
] | null | null | null | defmodule MassaProxy.GlobalRegistry do
use Horde.Registry
require Logger
def child_spec() do
%{
id: __MODULE__,
start: {__MODULE__, :start_link, [%{}]}
}
end
def start_link(_) do
Horde.Registry.start_link(__MODULE__, [keys: :unique, members: :auto], name: __MODULE__)
end
def ini... | 21.322581 | 94 | 0.621785 |
4a261305551a44e297275a6918e4cac148c21164 | 6,285 | ex | Elixir | lib/freshcom/core/filter.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | lib/freshcom/core/filter.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | lib/freshcom/core/filter.ex | dclausen/freshcom | 7e1d6397c8ab222cfd03830232cee0718f050490 | [
"BSD-3-Clause"
] | null | null | null | defmodule Freshcom.Filter do
@moduledoc """
[%{"$and" => [
%{"$or" => [%{"role" => "test1Test"}, %{"role" => "test2"}]},
%{"role" => "lol"},
%{"$or" => [%{"role" => "tt1"}, %{"role" => "tt2"}]}
]}]
"""
import Ecto.Query
import FCSupport.Normalization, only: [stringify_list: 1]
alias Ecto.Que... | 30.07177 | 102 | 0.643119 |
4a261b5f0e04f42e42b2efa0ed3b8b195903e55e | 2,447 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/bulk_edit_line_item_assigned_targeting_options_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/bulk_edit_line_item_assigned_targeting_options_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/bulk_edit_line_item_assigned_targeting_options_request.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... | 36.522388 | 206 | 0.760523 |
4a2627019c0278a299cd87b6f1ae6e8d20f9c0f6 | 176 | exs | Elixir | priv/repo/migrations/20190101014338_add_location.exs | ChristopherJHart/disclist | 3a1ce880856ad87f588e902e72004b887064eeb8 | [
"Apache-2.0"
] | 1 | 2021-11-18T03:25:47.000Z | 2021-11-18T03:25:47.000Z | priv/repo/migrations/20190101014338_add_location.exs | ChristopherJHart/disclist | 3a1ce880856ad87f588e902e72004b887064eeb8 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20190101014338_add_location.exs | ChristopherJHart/disclist | 3a1ce880856ad87f588e902e72004b887064eeb8 | [
"Apache-2.0"
] | 1 | 2021-11-18T03:25:48.000Z | 2021-11-18T03:25:48.000Z | defmodule Disclist.Repo.Migrations.AddLocation do
use Ecto.Migration
def change do
alter table("craigslist_results") do
add :location, :string
end
end
end
| 17.6 | 49 | 0.721591 |
4a263dd3e459c4aa93af3a06d326457100ee92ec | 3,977 | ex | Elixir | deps/gherkin/lib/gherkin/parser/generic_line.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/gherkin/lib/gherkin/parser/generic_line.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | deps/gherkin/lib/gherkin/parser/generic_line.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | defmodule Gherkin.Parser.GenericLine do
@moduledoc false
require Logger
alias Gherkin.Parser.Helpers.Feature, as: FeatureParser
alias Gherkin.Parser.Helpers.Scenario, as: ScenarioParser
alias Gherkin.Parser.Helpers.Steps, as: StepsParser
alias Gherkin.Parser.Helpers.Tables, as: TableParser
alias Gherkin.P... | 30.829457 | 90 | 0.689967 |
4a26651ccb2a519f4d01d1549f099d333f79e7eb | 1,418 | ex | Elixir | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_purge_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_purge_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2alpha_purge_metadata.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... | 33.761905 | 132 | 0.777856 |
4a266f0f24d7f4a37a00ba3e27af054260d9c46e | 6,690 | exs | Elixir | test/ecto/query/builder_test.exs | mbuhot/ecto | e6c4c7df0af055ba4bae8737908b98ae85352d2f | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder_test.exs | mbuhot/ecto | e6c4c7df0af055ba4bae8737908b98ae85352d2f | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder_test.exs | mbuhot/ecto | e6c4c7df0af055ba4bae8737908b98ae85352d2f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.BuilderTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder
doctest Ecto.Query.Builder
defp escape(quoted, vars, env) do
{escaped, {params, :acc}} = escape(quoted, :any, {%{}, :acc}, vars, env)
{escaped, params}
end
test "escape" do
assert {Macro.escape(quote do... | 38.67052 | 131 | 0.545441 |
4a26918662c0b4048a40c47a599bb7fcc66e16ea | 266 | exs | Elixir | config/test.exs | mayel/polaris | 9b610f83883d009847a72452635d18427f1c7872 | [
"Apache-2.0"
] | 2 | 2020-05-02T00:16:35.000Z | 2020-06-18T11:43:17.000Z | config/test.exs | mayel/polaris | 9b610f83883d009847a72452635d18427f1c7872 | [
"Apache-2.0"
] | 2 | 2021-03-10T10:35:32.000Z | 2021-05-11T06:13:28.000Z | config/test.exs | mayel/polaris | 9b610f83883d009847a72452635d18427f1c7872 | [
"Apache-2.0"
] | 2 | 2020-12-03T10:41:14.000Z | 2022-01-17T20:22:50.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :polaris, PolarisWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.181818 | 56 | 0.736842 |
4a26f24d539b0533054d6b74b86dd04ea5c3bdd9 | 4,880 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/presentation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/presentation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/presentation.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... | 68.732394 | 775 | 0.729713 |
4a270a9fa3debfdc3bcc340fa1a187779e1e5ac0 | 74 | ex | Elixir | lib/mazaryn_web/live/search_live/index.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | lib/mazaryn_web/live/search_live/index.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | lib/mazaryn_web/live/search_live/index.ex | mazarynxyz/Mazaryn | b84d08d236cbcd356c8b7ec6215c5c0b411b9617 | [
"Apache-2.0"
] | null | null | null | defmodule MazarynWeb.SearchLive.Index do
use MazarynWeb, :live_view
end
| 18.5 | 40 | 0.824324 |
4a270aea99c32e9e041d8bd3243fd4acfac42b9c | 1,801 | exs | Elixir | mix.exs | tmbb/makeup_elixir | a39c7d9424d102e3ac5a8277fbe323de9e6a311c | [
"BSD-2-Clause"
] | 14 | 2018-07-11T17:37:33.000Z | 2020-08-03T15:22:45.000Z | mix.exs | tmbb/makeup_elixir | a39c7d9424d102e3ac5a8277fbe323de9e6a311c | [
"BSD-2-Clause"
] | 8 | 2018-03-31T22:17:55.000Z | 2020-04-22T14:00:46.000Z | mix.exs | tmbb/makeup_elixir | a39c7d9424d102e3ac5a8277fbe323de9e6a311c | [
"BSD-2-Clause"
] | 9 | 2018-07-11T14:42:30.000Z | 2020-04-23T09:06:01.000Z | defmodule MakeupElixir.Mixfile do
use Mix.Project
@version "0.16.0"
@url "https://github.com/elixir-makeup/makeup_elixir"
def project do
[
app: :makeup_elixir,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
... | 23.38961 | 94 | 0.596891 |
4a270dbe7bc3c8e277da7112ed372db2d5368685 | 1,911 | exs | Elixir | apps/game_services_web/test/game_services_web/controllers/registration_controller_test.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 4 | 2018-11-09T16:57:06.000Z | 2021-03-02T22:57:17.000Z | apps/game_services_web/test/game_services_web/controllers/registration_controller_test.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | 29 | 2018-10-26T08:29:37.000Z | 2018-12-09T21:02:05.000Z | apps/game_services_web/test/game_services_web/controllers/registration_controller_test.exs | Alezrik/game_services_umbrella | 9b9dd6707c200b10c5a73568913deb4d5d8320be | [
"MIT"
] | null | null | null | defmodule GameServicesWeb.RegistrationControllerTest do
use GameServicesWeb.ConnCase
use ExUnitProperties
# setup do
# Explicitly get a connection before each test
# :ok = Ecto.Adapters.SQL.Sandbox.checkout(GameServices.Repo)
# Ecto.Adapters.SQL.Sandbox.mode(GameServices.Repo, {:shared, self()}... | 33.526316 | 81 | 0.643119 |
4a2716d80ef6d8d80330115d8bc4d37339e0940e | 525 | ex | Elixir | lib/beet_diet_web/router.ex | Vaysman/beer-diet | 14bf38e08afc25bd3f0139d8fff75f0df1821793 | [
"MIT"
] | null | null | null | lib/beet_diet_web/router.ex | Vaysman/beer-diet | 14bf38e08afc25bd3f0139d8fff75f0df1821793 | [
"MIT"
] | null | null | null | lib/beet_diet_web/router.ex | Vaysman/beer-diet | 14bf38e08afc25bd3f0139d8fff75f0df1821793 | [
"MIT"
] | null | null | null | defmodule BeetDietWeb.Router do
use BeetDietWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug Phoenix.LiveView.Flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
... | 18.75 | 39 | 0.68 |
4a27304b2ce6a15de7a9bd9229a1a97666bbcfed | 8,640 | exs | Elixir | lib/eex/test/eex/tokenizer_test.exs | gleam-lang/elixir | 6d5afa21dd41c936fc0c8fa3049a17a7332164b1 | [
"Apache-2.0"
] | 4 | 2019-03-04T10:05:55.000Z | 2019-03-06T17:30:59.000Z | lib/eex/test/eex/tokenizer_test.exs | gleam-lang/elixir | 6d5afa21dd41c936fc0c8fa3049a17a7332164b1 | [
"Apache-2.0"
] | 5 | 2015-02-07T14:46:40.000Z | 2020-09-20T16:43:42.000Z | lib/eex/test/eex/tokenizer_test.exs | gleam-lang/elixir | 6d5afa21dd41c936fc0c8fa3049a17a7332164b1 | [
"Apache-2.0"
] | 2 | 2018-04-03T08:57:41.000Z | 2019-03-04T08:20:04.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule EEx.TokenizerTest do
use ExUnit.Case, async: true
require EEx.Tokenizer, as: T
@opts %{indentation: 0, trim: false}
test "simple chars lists" do
assert T.tokenize('foo', 1, 1, @opts) == {:ok, [{:text, 1, 1, 'foo'}, {:eof, 1, 4}]}
end
test "s... | 28.235294 | 100 | 0.448611 |
4a273c1b96cbabc2e997d918efbbef488e5c61ab | 1,491 | exs | Elixir | test/grizzly/zwave/commands/antitheft_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | test/grizzly/zwave/commands/antitheft_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | test/grizzly/zwave/commands/antitheft_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.ZWave.Commands.AntitheftSetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.AntitheftSet
test "creates the command and validates params" do
params = [
state: :locked,
magic_code: "hocuspocus",
manufacturer_id: 126,
antitheft_hint: "rabbit",
lo... | 26.157895 | 65 | 0.634474 |
4a274a3119deb7040e9ef8772c7984b6cf79a126 | 179 | exs | Elixir | priv/repo/migrations/20151127152056_add_vendedor_to_subastas.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | priv/repo/migrations/20151127152056_add_vendedor_to_subastas.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | priv/repo/migrations/20151127152056_add_vendedor_to_subastas.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | defmodule IascSubastas.Repo.Migrations.AddVendedorToSubastas do
use Ecto.Migration
def change do
alter table(:subastas) do
add :vendedor, :string
end
end
end
| 17.9 | 63 | 0.731844 |
4a277e22010c0b75c09bc5f101583cfe492d7a19 | 1,564 | ex | Elixir | lib/codes/codes_p94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_p94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_p94.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_P94 do
alias IcdCode.ICDCode
def _P940 do
%ICDCode{full_code: "P940",
category_code: "P94",
short_code: "0",
full_name: "Transient neonatal myasthenia gravis",
short_name: "Transient neonatal myasthenia gravis",
category_name: "Tra... | 30.076923 | 74 | 0.611893 |
4a278681431ed8a0df6feaba72043cbbf9a97372 | 2,511 | exs | Elixir | exercises/phone-number/test/phone_number_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | exercises/phone-number/test/phone_number_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | null | null | null | exercises/phone-number/test/phone_number_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | null | null | null | defmodule PhoneTest do
use ExUnit.Case
test "cleans number" do
assert Phone.number("(212) 555-0100") == "2125550100"
end
@tag :pending
test "cleans number with dots" do
assert Phone.number("212.555.0100") == "2125550100"
end
@tag :pending
test "valid when 11 digits and first is 1" do
asse... | 24.378641 | 74 | 0.671844 |
4a27900f7dfd1455f9a346aab11ae096a3bdb7d2 | 1,496 | ex | Elixir | lib/ex_venture/application.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/ex_venture/application.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | lib/ex_venture/application.ex | shanesveller/ex_venture | 68507da11442a9e0423073fcd305e9021f649ca1 | [
"MIT"
] | null | null | null | defmodule ExVenture.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
@server Application.get_env(:ex_venture, :networking)[:server]
@report_errors Application.get_env(:ex_venture, :errors)[:report]
use Application
... | 26.245614 | 77 | 0.671123 |
4a27961baff097f9aa632f2068c1379b44c41398 | 296 | exs | Elixir | test/asset/sensor_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/asset/sensor_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/asset/sensor_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Asset.SensorTest do
use ExUnit.Case
alias FarmbotOS.Asset.Sensor
test "changeset" do
s = %Sensor{id: 123, pin: 456, mode: 0}
result = Sensor.render(s)
assert s.id == result[:id]
assert s.pin == result[:pin]
assert s.mode == result[:mode]
end
end
| 21.142857 | 43 | 0.652027 |
4a27a674aceba5418da557c65d179ce3f1c4fc83 | 1,247 | exs | Elixir | installer/mix.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | installer/mix.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | installer/mix.exs | clickavia/phoenix | 60ff50fc7c8cf4fbac462961cbbdd370049df6b3 | [
"MIT"
] | null | null | null | defmodule Phx.New.MixProject do
use Mix.Project
@version "1.4.14"
@github_path "phoenixframework/phoenix"
@url "https://github.com/#{@github_path}"
def project do
[
app: :phx_new,
start_permanent: Mix.env() == :prod,
version: @version,
elixir: "~> 1.5",
deps: deps(),
... | 21.877193 | 107 | 0.57498 |
4a27cac21dc55c22dc109ac632b4187781ec0758 | 418 | ex | Elixir | example/lib/wizard_example/application.ex | paulanthonywilson/vintage_net_wizard | 338877f79b96e9ba1c2482260b95a1a44d7c66d8 | [
"Apache-2.0"
] | 50 | 2019-08-02T18:56:53.000Z | 2022-02-19T20:00:52.000Z | example/lib/wizard_example/application.ex | paulanthonywilson/vintage_net_wizard | 338877f79b96e9ba1c2482260b95a1a44d7c66d8 | [
"Apache-2.0"
] | 93 | 2019-06-21T02:36:09.000Z | 2022-03-21T09:47:27.000Z | example/lib/wizard_example/application.ex | paulanthonywilson/vintage_net_wizard | 338877f79b96e9ba1c2482260b95a1a44d7c66d8 | [
"Apache-2.0"
] | 14 | 2019-09-16T23:50:11.000Z | 2022-03-18T16:36:21.000Z | defmodule WizardExample.Application do
use Application
@spec start(Application.start_type(), any()) :: {:error, any} | {:ok, pid()}
def start(_type, _args) do
opts = [strategy: :one_for_one, name: WizardExample.Supervisor]
gpio_pin = Application.get_env(:wizard_example, :gpio_pin, 17)
children = [
... | 24.588235 | 78 | 0.688995 |
4a280f26c99c642e83000af6d4ed75561d2216a3 | 126 | ex | Elixir | lib/club/colors/events/color_added.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | lib/club/colors/events/color_added.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | lib/club/colors/events/color_added.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.Colors.Events.ColorAdded do
use Commanded.Event,
version: 1,
from: Club.Colors.Commands.AddColor
end
| 21 | 42 | 0.753968 |
4a281ce65d732ba287c7d63fbe468ea32caff417 | 758 | exs | Elixir | priv/repo/migrations/20211128161429_create_users_auth_tables.exs | databrecht/uswidi | 422c5d957af769a12799b6d3ea56ad1e9f769873 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211128161429_create_users_auth_tables.exs | databrecht/uswidi | 422c5d957af769a12799b6d3ea56ad1e9f769873 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211128161429_create_users_auth_tables.exs | databrecht/uswidi | 422c5d957af769a12799b6d3ea56ad1e9f769873 | [
"MIT"
] | null | null | null | defmodule Uswidi.Repo.Migrations.CreateUsersAuthTables do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:users) do
add :email, :citext, null: false
add :hashed_password, :string, null: false
add :confirmed_at, :naive_datetime
time... | 27.071429 | 75 | 0.672823 |
4a281dd6b23b1c09cedb5a43fc751f3324558ddd | 247 | ex | Elixir | lib/hubby.ex | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | lib/hubby.ex | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | lib/hubby.ex | alissonfpmorais/hubby | 5e8510f4cd30aca1f36864119240ec54f7069b5b | [
"MIT"
] | null | null | null | defmodule Hubby do
@moduledoc """
Hubby keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.7 | 66 | 0.748988 |
4a281e98713c209299ffdd5035010a298c8acddb | 1,917 | ex | Elixir | lib/jsonterm/encoder.ex | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | lib/jsonterm/encoder.ex | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | lib/jsonterm/encoder.ex | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | defmodule Nap.JsonTerm.Encoder do
use Nap.JsonTerm.Types
def encode!(term) do
encoded = do_encode(term)
[@json_term_type, encoded]
end
defp do_encode(term) when is_number(term) or is_boolean(term) or is_nil(term), do: term
defp do_encode(term) when is_list(term), do: [@list_type, Enum.map(term, &do... | 31.95 | 93 | 0.654669 |
4a281fa062389cf477089e08fb94c423700febf4 | 6,071 | ex | Elixir | lib/prima_auth0_ex/token_provider.ex | primait/auth0_ex | 15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82 | [
"MIT"
] | 5 | 2021-12-01T10:50:40.000Z | 2022-02-15T13:07:02.000Z | lib/prima_auth0_ex/token_provider.ex | primait/auth0_ex | 15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82 | [
"MIT"
] | 11 | 2021-12-22T09:19:28.000Z | 2022-03-24T06:15:04.000Z | lib/prima_auth0_ex/token_provider.ex | primait/auth0_ex | 15ef5d6d91d8fe00ff703a4f58e1cb32bb169a82 | [
"MIT"
] | null | null | null | defmodule PrimaAuth0Ex.TokenProvider do
@moduledoc """
GenServer that handles the storage and refresh of tokens.
Every time a token for a new audience is requested, it retrieves it either from a cache (when possible)
or from an authorization provider.
Then, it runs periodic checks to ensure that all tokens a... | 30.507538 | 116 | 0.679789 |
4a2821424ac6aabf33fce80866644a0e559774db | 1,158 | ex | Elixir | lib/day_09_stream_processing.ex | scmx/advent-of-code-2017-elixir | 7435028bf7cd4d0c880144363aab2e3d80ab7ceb | [
"MIT"
] | 1 | 2018-11-26T11:34:41.000Z | 2018-11-26T11:34:41.000Z | lib/day_09_stream_processing.ex | scmx/advent-of-code-2017-elixir | 7435028bf7cd4d0c880144363aab2e3d80ab7ceb | [
"MIT"
] | null | null | null | lib/day_09_stream_processing.ex | scmx/advent-of-code-2017-elixir | 7435028bf7cd4d0c880144363aab2e3d80ab7ceb | [
"MIT"
] | 1 | 2018-01-23T08:12:26.000Z | 2018-01-23T08:12:26.000Z | defmodule Adventofcode.Day09StreamProcessing do
defstruct level: 0, score: 0, garbage: false, garbage_score: 0
def total_score(input), do: process(input).score
def garbage_score(input), do: process(input).garbage_score
def process(input, state \\ %__MODULE__{})
def process("", state), do: state
def pro... | 27.571429 | 75 | 0.639033 |
4a28354444b8b1be38e4717dcc0546f92f4f573b | 603 | exs | Elixir | test/stormcaster_web/views/error_view_test.exs | nuclearfurnace/stormcaster | 2ba34f2a6ee18dfa0b8fa546ba82483827785c4c | [
"MIT"
] | null | null | null | test/stormcaster_web/views/error_view_test.exs | nuclearfurnace/stormcaster | 2ba34f2a6ee18dfa0b8fa546ba82483827785c4c | [
"MIT"
] | null | null | null | test/stormcaster_web/views/error_view_test.exs | nuclearfurnace/stormcaster | 2ba34f2a6ee18dfa0b8fa546ba82483827785c4c | [
"MIT"
] | null | null | null | defmodule StormcasterWeb.ErrorViewTest do
use StormcasterWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(StormcasterWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test ... | 27.409091 | 72 | 0.694859 |
4a283e1a6de836b22cbfa8e1884b6e05d157b327 | 2,608 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/o_auth_requirements.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/o_auth_requirements.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_management/lib/google_api/service_management/v1/model/o_auth_requirements.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... | 55.489362 | 967 | 0.774156 |
4a285984ad6b06cf84651e52c5de1d6f97d4309f | 3,562 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_cloud_asset_v1_access_control_list.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_cloud_asset_v1_access_control_list.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/google_cloud_asset_v1_access_control_list.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... | 67.207547 | 662 | 0.7726 |
4a2871811c35f464852352dba401d7cf4ca1adc9 | 22,647 | ex | Elixir | lib/phoenix_live_view/html_engine.ex | workwithmax/phoenix_live_view | b924092cc440fff9377a63157de73ca15cd69d2b | [
"MIT"
] | 4,659 | 2019-03-14T20:22:43.000Z | 2022-03-31T20:13:30.000Z | lib/phoenix_live_view/html_engine.ex | workwithmax/phoenix_live_view | b924092cc440fff9377a63157de73ca15cd69d2b | [
"MIT"
] | 1,745 | 2019-03-14T22:04:38.000Z | 2022-03-31T17:26:25.000Z | lib/phoenix_live_view/html_engine.ex | qdentity/phoenix_live_view | d0b116c7f951c1651715b7918ee312f4dcb7f8c5 | [
"MIT"
] | 744 | 2019-03-14T20:48:05.000Z | 2022-03-25T14:35:04.000Z | defmodule Phoenix.LiveView.HTMLEngine do
@moduledoc """
The HTMLEngine that powers `.heex` templates and the `~H` sigil.
It works by adding a HTML parsing and validation layer on top
of EEx engine. By default it uses `Phoenix.LiveView.Engine` as
its "subengine".
"""
# TODO: Use @impl true instead of @do... | 29.759527 | 99 | 0.627898 |
4a28aa822cc5e1249da33393dd5976d4e810c670 | 96 | exs | Elixir | test/benchee/benchmark/scenario_test.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 636 | 2016-06-06T07:58:36.000Z | 2019-03-19T15:27:37.000Z | test/benchee/benchmark/scenario_test.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 198 | 2016-06-18T08:19:15.000Z | 2019-03-19T15:32:37.000Z | test/benchee/benchmark/scenario_test.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 43 | 2016-06-08T08:04:30.000Z | 2019-02-13T17:10:24.000Z | defmodule Benchee.ScenarioTest do
use ExUnit.Case, async: true
doctest Benchee.Scenario
end
| 19.2 | 33 | 0.802083 |
4a28ce4a666b6c279e28c214061375191996fa6b | 719 | ex | Elixir | apps/service_acquire/lib/acquire_web/gettext.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_acquire/lib/acquire_web/gettext.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_acquire/lib/acquire_web/gettext.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule AcquireWeb.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 AcquireWeb.Gettext
# Simple translation
gettext("Here is t... | 28.76 | 72 | 0.681502 |
4a28da9fe0f0f6e5ca698c1ca6ba548ff0d52a67 | 272 | ex | Elixir | test/support/models/article_like.ex | m0rt3nlund/query_builder | 68bfdf7b642ded1a9056a85776c3fc5296b2b7b7 | [
"Apache-2.0"
] | 47 | 2019-12-20T08:35:20.000Z | 2022-03-23T15:11:45.000Z | test/support/models/article_like.ex | m0rt3nlund/query_builder | 68bfdf7b642ded1a9056a85776c3fc5296b2b7b7 | [
"Apache-2.0"
] | 7 | 2020-05-14T09:25:53.000Z | 2021-10-01T04:58:22.000Z | test/support/models/article_like.ex | m0rt3nlund/query_builder | 68bfdf7b642ded1a9056a85776c3fc5296b2b7b7 | [
"Apache-2.0"
] | 4 | 2020-04-21T13:54:46.000Z | 2021-08-12T22:15:22.000Z | defmodule QueryBuilder.ArticleLike do
use QueryBuilder, assoc_fields: [:article, :user]
use Ecto.Schema
schema "article_likes" do
belongs_to(:article, QueryBuilder.Article)
belongs_to(:user, QueryBuilder.User)
timestamps(type: :utc_datetime)
end
end
| 22.666667 | 51 | 0.75 |
4a28dc215e2dd1c2997ee085619a7455058a9406 | 1,090 | exs | Elixir | deps/postgrex/mix.exs | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/postgrex/mix.exs | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/postgrex/mix.exs | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | defmodule Postgrex.Mixfile do
use Mix.Project
def project do
[app: :postgrex,
version: "0.10.1-dev",
elixir: "~> 1.0",
deps: deps,
name: "Postgrex",
source_url: "https://github.com/ericmj/postgrex",
docs: fn ->
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet... | 24.772727 | 81 | 0.577064 |
4a29065de81618027e32a9be4d403a8b0483487b | 762 | ex | Elixir | lib/chess_web/controllers/api/game_controller.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | lib/chess_web/controllers/api/game_controller.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | lib/chess_web/controllers/api/game_controller.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | defmodule ChessWeb.Api.GameController do
use ChessWeb, :controller
alias Chess.Store.Game
def show(conn, %{"id" => id}) do
game = Repo.get!(Game, id)
render conn, "show.json", game: game
end
def update(conn, %{"id" => id, "move" => move_params}) do
game = Repo.get!(Game, id)
changeset = Gam... | 25.4 | 82 | 0.628609 |
4a29838a2a696669810d1d3e5dd155c91cd35bd5 | 2,214 | exs | Elixir | languages/elixir/exercises/concept/wine-cellar/test/wine_cellar_test.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 3 | 2020-07-25T06:24:00.000Z | 2020-09-14T17:39:11.000Z | languages/elixir/exercises/concept/wine-cellar/test/wine_cellar_test.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 45 | 2020-01-24T17:04:52.000Z | 2020-11-24T17:50:18.000Z | languages/elixir/exercises/concept/wine-cellar/test/wine_cellar_test.exs | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | null | null | null | defmodule WineCellarTest do
use ExUnit.Case
@cellar [
white: {"Chardonnay", 2015, "Italy"},
white: {"Chardonnay", 2014, "France"},
rose: {"Dornfelder", 2018, "Germany"},
red: {"Merlot", 2015, "France"},
white: {"Riesling ", 2017, "Germany"},
white: {"Pinot grigio", 2015, "Germany"},
red... | 32.558824 | 97 | 0.556007 |
4a2986cdb75cd4f4b44cade7b0196a7a1646fc47 | 2,207 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/team_drive_list.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/drive/lib/google_api/drive/v3/model/team_drive_list.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/team_drive_list.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 41.641509 | 316 | 0.727685 |
4a298bcb3eae8d8d2f340f19ed7077753511e24e | 5,642 | exs | Elixir | test/triplex/triplex_test.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | test/triplex/triplex_test.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | test/triplex/triplex_test.exs | keithpitty/triplex | 3ae09fcb165de6cf027fe33d537cfb10facd4d7e | [
"MIT"
] | null | null | null | defmodule TriplexTest do
use ExUnit.Case
alias Triplex.Note
alias Triplex.TestRepo
@migration_version 20_160_711_125_401
@repo TestRepo
@tenant "trilegal"
setup do
if @repo.__adapter__ == Ecto.Adapters.MySQL do
# DDL operations in MySQL automatically issue a transaction commit.
# This i... | 28.785714 | 81 | 0.651719 |
4a298ff8c0f8a2bd3ef4609777911e0e72a3ac52 | 1,089 | ex | Elixir | lib/esquew/api/api.ex | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | lib/esquew/api/api.ex | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | lib/esquew/api/api.ex | bwireman/esquew | 0e4cfdcd00e4b826dd6fd5cf725e8b32d298aad2 | [
"Apache-2.0"
] | null | null | null | defmodule Esquew.Api do
use Plug.Router
@moduledoc """
Root of the Esquew API
"""
@name __MODULE__
defmodule APIResp do
@moduledoc """
Struct for API call response
"""
@enforce_keys [:response]
defstruct status: :ok, response: ""
end
plug(:match)
plug(Plug.Parsers,
parser... | 18.15 | 97 | 0.642792 |
4a29acb531e21183e4150807eea13c5620c8969a | 763 | exs | Elixir | apps/day17/mix.exs | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | apps/day17/mix.exs | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | apps/day17/mix.exs | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | defmodule Day17.Mixfile do
use Mix.Project
def project do
[
app: :day17,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod... | 22.441176 | 88 | 0.563565 |
4a29d0e0e297e3977cc32e40b43dbcda1bfd9dbf | 2,081 | ex | Elixir | lib/auto_api/states/wake_up_state.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/states/wake_up_state.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/states/wake_up_state.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 33.564516 | 87 | 0.719366 |
4a29d41feda32ebd8eade41e5b246015b09e1a16 | 3,128 | ex | Elixir | lib/adapters/ibrowse.ex | polymetis/Elixir-HttpBuilder | aecaa8e1c66ee6153f88d18e51ccaad6e91d745c | [
"MIT"
] | null | null | null | lib/adapters/ibrowse.ex | polymetis/Elixir-HttpBuilder | aecaa8e1c66ee6153f88d18e51ccaad6e91d745c | [
"MIT"
] | null | null | null | lib/adapters/ibrowse.ex | polymetis/Elixir-HttpBuilder | aecaa8e1c66ee6153f88d18e51ccaad6e91d745c | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(:ibrowse) do
defmodule HttpBuilder.Adapters.IBrowse do
alias HttpBuilder.HttpRequest
@moduledoc """
An adapter for using IBrowse. Expects a JSON parser to be
included in the HTTPBuilder configuration for encoding requests.
config ... | 34.755556 | 142 | 0.558504 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.