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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3875cc6f128bbff36c95c60f1ac6b18f936a8c72 | 1,575 | exs | Elixir | elixir/epi_book/test/chapter_8/max_stack_test.exs | wtfleming/data-structures-and-algorithms | f3d55b6642ee0219606c65ac6f1f8c5b402bdf70 | [
"MIT"
] | null | null | null | elixir/epi_book/test/chapter_8/max_stack_test.exs | wtfleming/data-structures-and-algorithms | f3d55b6642ee0219606c65ac6f1f8c5b402bdf70 | [
"MIT"
] | null | null | null | elixir/epi_book/test/chapter_8/max_stack_test.exs | wtfleming/data-structures-and-algorithms | f3d55b6642ee0219606c65ac6f1f8c5b402bdf70 | [
"MIT"
] | null | null | null | defmodule Chapter8.MaxStackTest do
use ExUnit.Case
doctest Chapter8.MaxStack
test "push and peek work" do
stack = Chapter8.MaxStack.new
|> Chapter8.MaxStack.push(1)
assert Chapter8.MaxStack.peek(stack) == 1
stack = Chapter8.MaxStack.new
|> Chapter8.MaxStack.push(1)
|> Chapter8.MaxStack.p... | 23.863636 | 48 | 0.654603 |
3875e9bcfd4331c1e6e0dd8b03d8de69ff4652ff | 820 | exs | Elixir | mix.exs | zeam-vm/pelemay_nx_bridge | f514f27b6e2d30e7784eb7d4acec0bebf3cb41e5 | [
"Apache-2.0"
] | null | null | null | mix.exs | zeam-vm/pelemay_nx_bridge | f514f27b6e2d30e7784eb7d4acec0bebf3cb41e5 | [
"Apache-2.0"
] | null | null | null | mix.exs | zeam-vm/pelemay_nx_bridge | f514f27b6e2d30e7784eb7d4acec0bebf3cb41e5 | [
"Apache-2.0"
] | null | null | null | if :erlang.system_info(:otp_release) < '24' do
Mix.raise("Nx requires Erlang/OTP 24+")
end
defmodule PelemayNxBridge.MixProject do
use Mix.Project
def project do
[
app: :pelemay_nx_bridge,
version: "0.1.0-dev",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(... | 23.428571 | 82 | 0.580488 |
3875f482a345678c029f99f9bdbdb8c7f1135efc | 2,286 | exs | Elixir | test/top5/accounts/accounts_test.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | test/top5/accounts/accounts_test.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | test/top5/accounts/accounts_test.exs | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Top5.AccountsTest do
use Top5.DataCase
alias Top5.Accounts
describe "users" do
alias Top5.Accounts.User
@valid_attrs %{email: "some email", password: "some password", username: "some username"}
@update_attrs %{email: "some updated email", password: "some updated password", userna... | 33.130435 | 119 | 0.639108 |
3876097ba2f1879d0ef717380921e01d50725ebe | 647 | ex | Elixir | lib/con_cache/registry.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | lib/con_cache/registry.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | lib/con_cache/registry.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | defmodule ConCache.Registry do
@moduledoc false
use ExActor.Tolerant, export: :con_cache_registry
defstart start_link do
_ = :ets.new(:con_cache_registry, [:set, :named_table, {:read_concurrency, true}, :protected])
initial_state(nil)
end
defcall register(cache) do
:ets.insert(:con_cache_regist... | 23.107143 | 98 | 0.695518 |
38764f3d28fa5ae74142a89a67da6c8740d8aa5b | 6,240 | ex | Elixir | lib/blinkchain/hal.ex | sparrell/blinkchain | 1d053e39f464365218589317f24439a82314cf9e | [
"MIT"
] | 42 | 2018-12-10T19:19:13.000Z | 2021-11-15T13:07:20.000Z | lib/blinkchain/hal.ex | sparrell/blinkchain | 1d053e39f464365218589317f24439a82314cf9e | [
"MIT"
] | 11 | 2016-10-02T01:55:22.000Z | 2018-10-05T22:43:54.000Z | lib/blinkchain/hal.ex | sparrell/blinkchain | 1d053e39f464365218589317f24439a82314cf9e | [
"MIT"
] | 14 | 2016-09-22T16:51:18.000Z | 2018-10-19T15:55:13.000Z | defmodule Blinkchain.HAL do
@moduledoc false
use GenServer
alias Blinkchain.{
Color,
Config,
Point
}
alias Blinkchain.Config.{
Canvas,
Channel,
Strip
}
defmodule State do
@moduledoc false
defstruct [:config, :port, :subscriber]
end
def start_link(opts) do
confi... | 31.044776 | 118 | 0.622115 |
3876548d1a97a91f6d1e75a5e44dcf418f7b4463 | 47,169 | exs | Elixir | test/ex_scems_test.exs | chulkilee/ex_scems | cd2ea54f386ba25ae294ef451aac6a8f6c333cb7 | [
"MIT"
] | null | null | null | test/ex_scems_test.exs | chulkilee/ex_scems | cd2ea54f386ba25ae294ef451aac6a8f6c333cb7 | [
"MIT"
] | null | null | null | test/ex_scems_test.exs | chulkilee/ex_scems | cd2ea54f386ba25ae294ef451aac6a8f6c333cb7 | [
"MIT"
] | null | null | null | defmodule ExSCEMSTest do
use ExUnit.Case, async: true
doctest ExSCEMS
alias ExSCEMS.Response
alias ExSCEMS.{Contact, Customer, Entitlement, LineItem, Product}
@session_id "FAKE_SESSION_ID"
setup do
bypass = Bypass.open()
client = ExSCEMS.build_client("http://127.0.0.1:#{bypass.port}", @session_i... | 33.382166 | 96 | 0.575972 |
38766c7e09a2231b2c92ecf04b78d075135bbee7 | 679 | ex | Elixir | chess/lib/chess/uci.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chess/lib/chess/uci.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chess/lib/chess/uci.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chess.UCI do
use GenServer
alias Chess.UCI, as: State
defstruct []
def process(pid, data) do
GenServer.call(pid, {:process, data})
end
def start_link(args) do
GenServer.start_link(__MODULE__, args)
end
def init(_args) do
{:ok, %State{}}
end
def handle_call({:process, "uci"}... | 20.575758 | 72 | 0.624448 |
38766ce448c986ca38e24b052f86b14695216d3d | 685 | ex | Elixir | examples/bank/lib/bank/commands/send_money.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | examples/bank/lib/bank/commands/send_money.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | examples/bank/lib/bank/commands/send_money.ex | OleMchls/incident | 220e46598719fc50d10c96e5a848080172bf6f9b | [
"MIT"
] | null | null | null | defmodule Bank.Commands.SendMoney do
@moduledoc """
Send Money command using `Ecto.Schema` and `Ecto.Changeset` to define and validate fields.
"""
@behaviour Incident.Command
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:aggregate_id, :string)
field(:trans... | 22.096774 | 92 | 0.70073 |
3876752d18781f03a0a4019452e1a8351b42be3d | 3,049 | exs | Elixir | test/acceptance/ast/fenced_code_blocks_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | null | null | null | test/acceptance/ast/fenced_code_blocks_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | null | null | null | test/acceptance/ast/fenced_code_blocks_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | null | null | null | defmodule Acceptance.Ast.FencedCodeBlocksTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, as_ast: 2]
import EarmarkAstDsl
describe "Fenced code blocks" do
test "no lang" do
markdown = "```\n<\n >\n```\n"
ast = pre_code("<\n >")
messages = []
asser... | 27.468468 | 95 | 0.474254 |
3876a22c4fad435e9b51dacfafb0ef5389b9c315 | 4,204 | ex | Elixir | lib/exq/mock.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | null | null | null | lib/exq/mock.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | null | null | null | lib/exq/mock.ex | JamesFerguson/exq | 4457ea50ad4c8a6a7e127da5acafc130960822bb | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Mock do
alias Exq.Support.Config
alias Exq.Adapters.Queue.Redis
alias Exq.Support.Job
use GenServer
@timeout 30000
defmodule State do
@moduledoc false
defstruct default_mode: :redis, jobs: %{}, modes: %{}
end
### Public api
@doc """
Start Mock server
* `mode` - The defaul... | 23.886364 | 86 | 0.599429 |
3876b75197a051cfa823e70ef50d88f19e40ff14 | 2,667 | exs | Elixir | mix.exs | directionalpad/nostrum | ee94c8336f8c07a5df92260b5c30add278473776 | [
"MIT"
] | null | null | null | mix.exs | directionalpad/nostrum | ee94c8336f8c07a5df92260b5c30add278473776 | [
"MIT"
] | null | null | null | mix.exs | directionalpad/nostrum | ee94c8336f8c07a5df92260b5c30add278473776 | [
"MIT"
] | null | null | null | defmodule Nostrum.Mixfile do
@moduledoc false
use Mix.Project
def project do
[
app: :nostrum,
version: "0.5.0-rc2",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: "An e... | 22.411765 | 67 | 0.541432 |
3876b8bc080a0a62702141b4e6a91eaa0e516398 | 390 | exs | Elixir | priv/repo/migrations/20190117135714_add_uid_to_pageviews.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | priv/repo/migrations/20190117135714_add_uid_to_pageviews.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | priv/repo/migrations/20190117135714_add_uid_to_pageviews.exs | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | defmodule Plausible.Repo.Migrations.AddUidToPageviews do
use Ecto.Migration
use Plausible.Repo
def change do
alter table(:pageviews) do
add :user_id, :binary_id
end
flush()
Repo.update_all(Plausible.Pageview, set: [user_id: "00029281-7f8b-462d-a9f0-0d2ddfc6ea02"])
alter table(:pagevi... | 20.526316 | 95 | 0.7 |
3876d182cdfe6d25e50341f87d4cd95f9b4d2221 | 187 | ex | Elixir | lib/ex_poloniex/api.ex | fremantle-capital/poloniex_elixir | 2283936d9c48522e954392b8a6587cbbd2de8cbd | [
"MIT"
] | null | null | null | lib/ex_poloniex/api.ex | fremantle-capital/poloniex_elixir | 2283936d9c48522e954392b8a6587cbbd2de8cbd | [
"MIT"
] | null | null | null | lib/ex_poloniex/api.ex | fremantle-capital/poloniex_elixir | 2283936d9c48522e954392b8a6587cbbd2de8cbd | [
"MIT"
] | null | null | null | defmodule ExPoloniex.Api do
def trading(command, params) do
ExPoloniex.HTTP.post("tradingApi", command, params)
end
def trading(command) do
trading(command, %{})
end
end
| 18.7 | 55 | 0.705882 |
3876d3afa03ae5a1891a753fef1a7f6dc6a295ca | 10,712 | ex | Elixir | lib/logger_json.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 148 | 2017-04-10T06:22:02.000Z | 2022-03-31T11:19:14.000Z | lib/logger_json.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 81 | 2017-04-09T15:17:03.000Z | 2022-03-01T16:25:32.000Z | lib/logger_json.ex | GregMefford/logger_json | 3332c7cdd7a5dc57f85771809c03ff1469a2901a | [
"MIT"
] | 62 | 2018-05-31T06:49:55.000Z | 2022-01-24T09:15:04.000Z | defmodule LoggerJSON do
@moduledoc """
JSON console back-end for Elixir Logger.
It can be used as drop-in replacement for default `:console` Logger back-end in cases where you use
use Google Cloud Logger or other JSON-based log collectors.
## Log Format
LoggerJSON provides two JSON formatters out of the ... | 30.005602 | 120 | 0.650019 |
38771c9f66137026803b9740cb2bd20fbec78555 | 4,587 | exs | Elixir | test/dialyxir/project_test.exs | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | test/dialyxir/project_test.exs | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | test/dialyxir/project_test.exs | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | defmodule Dialyxir.ProjectTest do
alias Dialyxir.Project
use ExUnit.Case
import ExUnit.CaptureIO, only: [capture_io: 1]
defp in_project(app, f) when is_atom(app) do
Mix.Project.in_project(app, "test/fixtures/#{Atom.to_string(app)}", fn _ -> f.() end)
end
defp in_project(apps, f) when is_list(apps) do... | 30.377483 | 116 | 0.645302 |
387755d0efc9fa08d0c14f97d9725942de35befc | 5,246 | ex | Elixir | lib/participant.ex | ryo33/xee_double_auction | c77903deb7415db7f8b8c3b65bb4d38153a1e3e1 | [
"MIT"
] | null | null | null | lib/participant.ex | ryo33/xee_double_auction | c77903deb7415db7f8b8c3b65bb4d38153a1e3e1 | [
"MIT"
] | 4 | 2016-08-19T02:54:51.000Z | 2016-09-07T02:57:09.000Z | lib/participant.ex | xeejp/double_auction.exs | c77903deb7415db7f8b8c3b65bb4d38153a1e3e1 | [
"MIT"
] | 2 | 2018-09-20T14:15:59.000Z | 2018-09-21T09:14:39.000Z | defmodule DoubleAuction.Participant do
use Timex
require Logger
def filter_data(data, id) do
participants_rule = if data.mode == "result" do
"users"
else
{"personal", %{
id => true,
:_spread => [[id]]
}}
end
rule = %{
user_number: "userNumber",
mode: ... | 31.793939 | 129 | 0.599886 |
38775c981f7fa210a70da1c0fd2f6638377c3c47 | 408 | ex | Elixir | apps/re/lib/listings/utils/opts.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/lib/listings/utils/opts.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/listings/utils/opts.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Listings.Opts do
@moduledoc """
Module for managing options
"""
use Ecto.Schema
import Ecto.Changeset
schema "params" do
field :page_size, :integer
field :excluded_listing_ids, {:array, :integer}, default: []
end
@fields ~w(page_size excluded_listing_ids)a
def build(params \\ ... | 18.545455 | 64 | 0.661765 |
38776ff59e0aabcdaccac6420395e711bc410fde | 5,705 | exs | Elixir | test/ecto/repo/autogenerate_test.exs | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | test/ecto/repo/autogenerate_test.exs | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | test/ecto/repo/autogenerate_test.exs | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | alias Ecto.TestRepo
defmodule Ecto.Repo.AutogenerateTest do
use ExUnit.Case, async: true
defmodule Manager do
use Ecto.Schema
@timestamps_opts [inserted_at: :created_on]
schema "manager" do
timestamps updated_at: :updated_on, type: :utc_datetime
end
end
defmodule Company do
use Ect... | 32.414773 | 90 | 0.695355 |
3877819d78915910f7dc7ce77736c9831312d1a5 | 3,469 | ex | Elixir | apps/valkyrie/lib/valkyrie/broadway.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/valkyrie/lib/valkyrie/broadway.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/valkyrie/lib/valkyrie/broadway.ex | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | defmodule Valkyrie.Broadway do
@moduledoc """
Broadway implementation for Valkyrie
"""
@producer_module Application.get_env(:valkyrie, :broadway_producer_module, OffBroadway.Kafka.Producer)
use Broadway
import SmartCity.Data, only: [end_of_data: 0]
import SmartCity.Event, only: [data_standardization_end:... | 33.355769 | 107 | 0.67224 |
3877a61028fd53da0167221625f7f7a561e98e59 | 106 | ex | Elixir | lib/pokedex/repo.ex | erickgnavar/pokedex-api | ed6dbe831192e684e9605b35844bde80b085ab2e | [
"MIT"
] | null | null | null | lib/pokedex/repo.ex | erickgnavar/pokedex-api | ed6dbe831192e684e9605b35844bde80b085ab2e | [
"MIT"
] | null | null | null | lib/pokedex/repo.ex | erickgnavar/pokedex-api | ed6dbe831192e684e9605b35844bde80b085ab2e | [
"MIT"
] | null | null | null | defmodule Pokedex.Repo do
use Ecto.Repo,
otp_app: :pokedex,
adapter: Ecto.Adapters.Postgres
end
| 17.666667 | 35 | 0.726415 |
3877bdba521b7ab716c7179c1c24c5208da585fb | 1,465 | exs | Elixir | test/firmware/lua_uart_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_core/test/firmware/lua_uart_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_core/test/firmware/lua_uart_test.exs | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Firmware.LuaUARTTest do
use ExUnit.Case
use Mimic
setup :verify_on_exit!
alias FarmbotCore.Firmware.LuaUART
test "open/2" do
lua = %{fake_lua: true}
expect(Circuits.UART, :start_link, 1, fn ->
{:ok, self()}
end)
expect(Circuits.UART, :open, 1, fn pid, device, op... | 24.016393 | 79 | 0.589761 |
3877d19a12fab6d6d9766d8ba1987924d5e523a3 | 2,042 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/page_info.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/page_info.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/page_info.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... | 35.206897 | 116 | 0.721841 |
3877d7c8f20f98fa3aac43a3926ea66a636aee1e | 351 | exs | Elixir | priv/repo/seeds.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# LibLeaf.Repo.insert!(%LibLeaf.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will... | 29.25 | 61 | 0.706553 |
3877deea952bfae26ba7fc821e7d048e2612e6e1 | 1,800 | exs | Elixir | test/websubhub_web/controllers/hub_controller_test.exs | clone1018/WebSubHub | 1d26916b45d312ae5d8cc3fd786a6cec84c9f8e1 | [
"MIT"
] | 21 | 2022-01-09T23:04:48.000Z | 2022-03-24T14:55:20.000Z | test/websubhub_web/controllers/hub_controller_test.exs | clone1018/WebSubHub | 1d26916b45d312ae5d8cc3fd786a6cec84c9f8e1 | [
"MIT"
] | 1 | 2022-03-26T15:10:53.000Z | 2022-03-29T11:23:03.000Z | test/websubhub_web/controllers/hub_controller_test.exs | clone1018/WebSubHub | 1d26916b45d312ae5d8cc3fd786a6cec84c9f8e1 | [
"MIT"
] | null | null | null | defmodule WebSubHubWeb.HubControllerTest do
use WebSubHubWeb.ConnCase
setup do
{:ok, pid} = FakeServer.start(:my_server)
subscriber_port = FakeServer.port!(pid)
on_exit(fn ->
FakeServer.stop(pid)
end)
[subscriber_pid: pid, subscriber_url: "http://localhost:#{subscriber_port}"]
end
... | 28.125 | 92 | 0.553889 |
3877f8965b1a8926aeef23c025138c4f585257dd | 6,570 | ex | Elixir | lib/codes/codes_h91.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_h91.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_h91.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_H91 do
alias IcdCode.ICDCode
def _H9101 do
%ICDCode{full_code: "H9101",
category_code: "H91",
short_code: "01",
full_name: "Ototoxic hearing loss, right ear",
short_name: "Ototoxic hearing loss, right ear",
category_name: "Ototoxic... | 33.520408 | 74 | 0.607154 |
3877f9c5bfcba44caf6523e4b80238aef55dd938 | 2,005 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_management/lib/google_api/service_management/v1/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.1 | 316 | 0.731172 |
387807836e64a02113c0e2a9f7d12b1edb888deb | 12,152 | ex | Elixir | lib/gutenex.ex | jbowtie/gutenex | 28ea1dfd3453da924838c30a0c538598c9d17bb2 | [
"MIT"
] | 6 | 2017-06-25T03:21:40.000Z | 2021-01-26T14:45:07.000Z | lib/gutenex.ex | jbowtie/gutenex | 28ea1dfd3453da924838c30a0c538598c9d17bb2 | [
"MIT"
] | null | null | null | lib/gutenex.ex | jbowtie/gutenex | 28ea1dfd3453da924838c30a0c538598c9d17bb2 | [
"MIT"
] | 1 | 2017-11-18T10:20:09.000Z | 2017-11-18T10:20:09.000Z | defmodule Gutenex do
use GenServer
alias Gutenex.PDF
alias Gutenex.PDF.Context
alias Gutenex.PDF.Text
alias Gutenex.PDF.Font
alias OpenType.Font, as: OpenTypeFont
alias Gutenex.Geometry
#######################
## Setup ##
#######################
@doc """
Starts the PDF generation ... | 25.211618 | 98 | 0.594552 |
38780bae2aa36e5a8a482c0ab1bd2a1215db8d2b | 438 | ex | Elixir | api/lib/api/directory/university.ex | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | 1 | 2021-10-04T23:26:37.000Z | 2021-10-04T23:26:37.000Z | api/lib/api/directory/university.ex | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | 5 | 2021-10-04T23:09:14.000Z | 2022-02-25T09:35:25.000Z | api/lib/api/directory/university.ex | Feggah/university-api | 4cd6bf3f9cbfe0e5c27338e25c406a548ff3bf72 | [
"MIT"
] | null | null | null | defmodule Api.Directory.University do
use Ecto.Schema
import Ecto.Changeset
schema "universities" do
field :city, :string
field :initials, :string
field :name, :string
field :students, :integer
timestamps()
end
@doc false
def changeset(university, attrs) do
university
|> cast(... | 20.857143 | 62 | 0.671233 |
387817b2e2742ed764db2524f258d77802e6fad3 | 217 | exs | Elixir | apps/data/priv/repo/migrations/20190918031448_add_social_tags_to_games.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/data/priv/repo/migrations/20190918031448_add_social_tags_to_games.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/data/priv/repo/migrations/20190918031448_add_social_tags_to_games.exs | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule GrapevineData.Repo.Migrations.AddSocialTagsToGames do
use Ecto.Migration
def change do
alter table(:games) do
add(:twitter_username, :string)
add(:facebook_url, :text)
end
end
end
| 19.727273 | 63 | 0.714286 |
38784eace58b8cf68c4d5bd348f849ca1b43beec | 9,603 | ex | Elixir | lib/ecto/query/inspect.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/inspect.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/inspect.ex | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | import Inspect.Algebra
import Kernel, except: [to_string: 1]
alias Ecto.Query.{DynamicExpr, JoinExpr, QueryExpr}
defimpl Inspect, for: Ecto.Query.DynamicExpr do
def inspect(%DynamicExpr{binding: binding} = dynamic, opts) do
{expr, binding, params, _, _} =
Ecto.Query.Builder.Dynamic.fully_expand(%Ecto.Quer... | 31.178571 | 108 | 0.615641 |
38785f68b8f6f34ba70e2e8770228ac227da3f11 | 3,817 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/cities.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/cities.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/cities.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.873563 | 187 | 0.662038 |
3878af9223d31b2eafb0f1985d8bda6cd4ece953 | 1,760 | ex | Elixir | day_06/lib/day_06/checksum.ex | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_06/lib/day_06/checksum.ex | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_06/lib/day_06/checksum.ex | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | defmodule Day06.Checksum do
@moduledoc """
"""
def count_orbits(file_path) do
orbit_info = generate_orbit_info(file_path)
Map.keys(orbit_info)
|> Enum.reduce(0, fn planet, total ->
count_steps_to_centre_of_everything(planet, orbit_info, total)
end)
end
def count_transfers(file_path, ... | 23.157895 | 80 | 0.666477 |
3878c47cf2cf348958d1ccdd1f098a38a60a46bb | 847 | ex | Elixir | lib/api/resolvers/node_resolver.ex | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | 16 | 2021-12-14T12:25:59.000Z | 2021-12-16T21:56:27.000Z | lib/api/resolvers/node_resolver.ex | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | 19 | 2021-12-06T08:35:30.000Z | 2022-03-23T18:20:46.000Z | lib/api/resolvers/node_resolver.ex | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | null | null | null | defmodule NabooAPI.Resolvers.NodeResolver do
alias Naboo.Domains
alias Naboo.Domain.Node
def all_nodes(_root, _args, _info) do
{:ok, Domains.list_nodes()}
end
def get_node(_root, %{id: id}, _do) do
Domains.get_node(id)
end
def update_node(_root, args, _info) do
with %Node{} = node <- Domain... | 21.175 | 61 | 0.612751 |
3878d1858a5b77ea30cac700a336090538902585 | 9,245 | exs | Elixir | test/livebook/live_markdown/export_test.exs | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | null | null | null | test/livebook/live_markdown/export_test.exs | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | null | null | null | test/livebook/live_markdown/export_test.exs | benjreinhart/livebook | 0500ad5c6237167ce9769d8cc78fca360834f576 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.LiveMarkdown.ExportTest do
use ExUnit.Case, async: true
alias Livebook.LiveMarkdown.Export
alias Livebook.Notebook
test "acceptance" do
notebook = %{
Notebook.new()
| name: "My Notebook",
metadata: %{"author" => "Sherlock Holmes"},
sections: [
%{
... | 21.95962 | 98 | 0.38291 |
3878d8c81e4fed4cba8f2d424de1c08afd29cd62 | 3,144 | ex | Elixir | lib/auth.ex | genesisblockhq/firebase-admin-ex | 853268e4e306419fb8cd056f0e57bdbe17283137 | [
"MIT"
] | null | null | null | lib/auth.ex | genesisblockhq/firebase-admin-ex | 853268e4e306419fb8cd056f0e57bdbe17283137 | [
"MIT"
] | null | null | null | lib/auth.ex | genesisblockhq/firebase-admin-ex | 853268e4e306419fb8cd056f0e57bdbe17283137 | [
"MIT"
] | null | null | null | defmodule FirebaseAdminEx.Auth do
alias FirebaseAdminEx.{Request, Response}
alias FirebaseAdminEx.Auth.ActionCodeSettings
@auth_endpoint "https://identitytoolkit.googleapis.com/v1/"
@auth_scope "https://www.googleapis.com/auth/cloud-platform"
@doc """
Create an email/password user
"""
@spec create_use... | 36.988235 | 95 | 0.669529 |
3878dc6f395695a30b9856a9d961ca1d0a5a44a3 | 379 | exs | Elixir | apps/ecto_gen_error_reproduce/priv/repo/seeds.exs | TheMaikXX/ecto_gen_error_reproduce_umbrella | 14af47d24b17a9478c4a67715995fa45fc9cc02a | [
"MIT"
] | null | null | null | apps/ecto_gen_error_reproduce/priv/repo/seeds.exs | TheMaikXX/ecto_gen_error_reproduce_umbrella | 14af47d24b17a9478c4a67715995fa45fc9cc02a | [
"MIT"
] | null | null | null | apps/ecto_gen_error_reproduce/priv/repo/seeds.exs | TheMaikXX/ecto_gen_error_reproduce_umbrella | 14af47d24b17a9478c4a67715995fa45fc9cc02a | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# EctoGenErrorReproduce.Repo.insert!(%EctoGenErrorReproduce.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update... | 31.583333 | 77 | 0.728232 |
3878dc80004c3dcc815ed4a2adcf0c6d03b835f6 | 2,606 | ex | Elixir | lib/urepo/api/router.ex | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | lib/urepo/api/router.ex | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | lib/urepo/api/router.ex | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | defmodule Urepo.API.Router do
@moduledoc false
use Plug.Router
import Urepo.Endpoint, only: [route: 2]
plug(:auth)
plug(:match)
plug(:dispatch)
get "/packages" do
send_erlang(conn, 200, [])
end
get "/packages/:name" do
case Urepo.Repo.get_releases(name) do
{:ok, releases} ->
... | 23.267857 | 92 | 0.564467 |
3878e44549c816d8ffa7256faea92aa5831734d0 | 1,203 | ex | Elixir | src/lib/planning_poker_web/router.ex | datajohnny/phoenix_docker_sample | 1dfea4ebff1ba2c4c59e5d01cbe1e8d31086152f | [
"MIT"
] | null | null | null | src/lib/planning_poker_web/router.ex | datajohnny/phoenix_docker_sample | 1dfea4ebff1ba2c4c59e5d01cbe1e8d31086152f | [
"MIT"
] | null | null | null | src/lib/planning_poker_web/router.ex | datajohnny/phoenix_docker_sample | 1dfea4ebff1ba2c4c59e5d01cbe1e8d31086152f | [
"MIT"
] | null | null | null | defmodule PlanningPokerWeb.Router do
use PlanningPokerWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {PlanningPokerWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipelin... | 27.340909 | 104 | 0.712386 |
387900c35fdcfbec28ac3e61cbde351394c65107 | 2,491 | exs | Elixir | chapter1/module02/challenges/report_generator/test/report_generator_test.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | chapter1/module02/challenges/report_generator/test/report_generator_test.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | chapter1/module02/challenges/report_generator/test/report_generator_test.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | defmodule ReportGeneratorTest do
use ExUnit.Case
describe "generate_from/2" do
test "should generate report from a given file" do
filename = "report_test.csv"
response = ReportGenerator.generate_from(filename)
expected_response = %{
all_hours: %{
"Cleiton" => 30,
... | 31.1375 | 88 | 0.373745 |
38790f0c4c00b87fa38f50d9c243c8f66434d68d | 24,289 | ex | Elixir | clients/access_approval/lib/google_api/access_approval/v1/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/lib/google_api/access_approval/v1/api/projects.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... | 45.741996 | 544 | 0.625962 |
38798b80b82cf765ba9a5b3e04049fda07ef4879 | 340 | exs | Elixir | farmbot_core/priv/config/migrations/20180411201055_add regimen indexes.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_core/priv/config/migrations/20180411201055_add regimen indexes.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/config/migrations/20180411201055_add regimen indexes.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Config.Repo.Migrations.AddRegimenIndexs do
use Ecto.Migration
def change do
alter table("persistent_regimens") do
add(:farm_event_id, :integer)
end
create(
unique_index("persistent_regimens", [:regimen_id, :time, :farm_event_id],
name: :regimen_start_time
... | 21.25 | 79 | 0.688235 |
3879b084089ac0de1cf0fc19df674acc8f981132 | 2,540 | ex | Elixir | lib/ecto/query/builder/cte.ex | iautom8things/ecto | 9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf | [
"Apache-2.0"
] | 3,931 | 2016-06-16T11:38:48.000Z | 2022-03-31T21:24:19.000Z | lib/ecto/query/builder/cte.ex | iautom8things/ecto | 9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf | [
"Apache-2.0"
] | 2,343 | 2016-06-16T11:18:09.000Z | 2022-03-27T23:44:43.000Z | deps/ecto/lib/ecto/query/builder/cte.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 1,300 | 2016-06-17T13:56:59.000Z | 2022-03-31T01:46:20.000Z | import Kernel, except: [apply: 3]
defmodule Ecto.Query.Builder.CTE do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes the CTE name.
iex> escape(quote(do: "FOO"), __ENV__)
"FOO"
"""
@spec escape(Macro.t, Macro.Env.t) :: Macro.t
def escape(name, _env) when is_bitstring(name), do:... | 28.863636 | 108 | 0.629921 |
3879ed442c2078809798b5109cc276ed93d43b1c | 456 | ex | Elixir | lib/magirator_app_channel/stores/id_store.ex | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | lib/magirator_app_channel/stores/id_store.ex | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | lib/magirator_app_channel/stores/id_store.ex | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | defmodule MagiratorAppChannel.IdStore do
alias Bolt.Sips, as: Bolt
def next_id() do
query = """
MERGE (id:GlobalUniqueId)
ON CREATE SET id.count = 1
ON MATCH SET id.count = id.count + 1
RETURN id.count AS generated_id
"""
result... | 24 | 46 | 0.502193 |
3879fde2b511a5ac7b3ca43a1c254da6ce6a805a | 9,383 | exs | Elixir | lib/eex/test/eex_test.exs | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/eex/test/eex_test.exs | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/eex/test/eex_test.exs | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
require EEx
defmodule EExTest.Compiled do
def before_compile do
fill_in_stacktrace
{__ENV__.line, hd(tl(System.stacktrace))}
end
EEx.function_from_string :def, :string_sample, "<%= a + b %>", [:a, :b]
filename = Path.join(__DIR__, "fixtures/eex_template_w... | 22.234597 | 109 | 0.612597 |
387a33fb377cd856f1c8a686c14aa061c189f643 | 465 | ex | Elixir | web/models/bar.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | web/models/bar.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | web/models/bar.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | defmodule FooApi.Bar do
use FooApi.Web, :model
schema "bars" do
field :barnism, :string
timestamps
end
@required_fields ~w(barnism)
@optional_fields ~w()
@doc """
Creates a changeset based on the `model` and `params`.
If no params are provided, an invalid changeset is returned
with no val... | 19.375 | 61 | 0.683871 |
387a69978b75ad7561da03da08eb368a85a5ac85 | 4,846 | exs | Elixir | 12-new-project/facade/test/schedule_server_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 12-new-project/facade/test/schedule_server_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 12-new-project/facade/test/schedule_server_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule ScheduleServerTest do
use ExUnit.Case
doctest ScheduleServer
def check_default_values(server) do
assert server.is_read == false
assert server.is_running == false
assert server.has_context == false
end
test "Creates a ScheduleServer" do
server = %ScheduleServer{}
check_default_v... | 32.092715 | 84 | 0.71688 |
387a8213b16106d9911c3f6de9509b95e1a237c6 | 1,660 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.2 | 203 | 0.722289 |
387a9e70fcf6ce59811ee162238047f140bf2884 | 1,115 | exs | Elixir | config/config.exs | johnotander/is_url | ac351c37c30d0b63dc0ae79aa05696a7bba500ba | [
"MIT"
] | 2 | 2015-12-18T20:59:51.000Z | 2017-09-26T21:09:23.000Z | config/config.exs | johnotander/is_url | ac351c37c30d0b63dc0ae79aa05696a7bba500ba | [
"MIT"
] | null | null | null | config/config.exs | johnotander/is_url | ac351c37c30d0b63dc0ae79aa05696a7bba500ba | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# 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... | 35.967742 | 73 | 0.750673 |
387aab4c5d424a915327f5bbbe2187e9974d7e75 | 695 | ex | Elixir | lib/ash/error/query/no_such_attribute_or_relationship.ex | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | lib/ash/error/query/no_such_attribute_or_relationship.ex | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | lib/ash/error/query/no_such_attribute_or_relationship.ex | zimt28/ash | ea4c0e78b58762dfb947af2fa9649b25bfdc78cf | [
"MIT"
] | null | null | null | defmodule Ash.Error.Query.NoSuchAttributeOrRelationship do
@moduledoc "Used when a key in a filter contains something that is neither an attribute or a relationship"
use Ash.Error.Exception
def_ash_error([:attribute_or_relationship, :resource], class: :invalid)
defimpl Ash.ErrorKind do
def id(_), do: Ecto... | 30.217391 | 108 | 0.730935 |
387aceab6e5d827827b12aba63ab6cd93453a6dd | 907 | ex | Elixir | chapter_13/todo_release/lib/todo/server/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_12/todo_distributed/lib/todo/server/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_12/todo_distributed/lib/todo/server/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Todo.Server.Client do
alias Todo.Server
defdelegate start_link(params), to: Server
def where_is(name) do
case :global.whereis_name({Server, name}) do
:undefined -> nil
pid -> pid
end
end
def all(pid), do: GenServer.call(pid, {:all})
def by_date(pid, date), do: GenServer.call... | 33.592593 | 85 | 0.689085 |
387aceba677daf8ef400dece44d8e6ccd221a928 | 2,446 | exs | Elixir | mix.exs | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | null | null | null | mix.exs | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | null | null | null | mix.exs | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | null | null | null | defmodule Quantum.Mixfile do
@moduledoc false
use Mix.Project
@version "2.3.3"
def project do
[
app: :quantum,
build_embedded: Mix.env() == :prod,
deps: deps(),
description: "Cron-like job scheduler for Elixir.",
docs: docs(),
elixir: ">= 1.5.1",
name: "Quantum",... | 26.879121 | 97 | 0.543336 |
387ae98ff2682fdfc5d41df4c98d207325151cef | 1,121 | exs | Elixir | config/config.exs | rtvu/lexicon | 06fa0f0b20d718824df4dbedb908f7663cdab388 | [
"MIT"
] | null | null | null | config/config.exs | rtvu/lexicon | 06fa0f0b20d718824df4dbedb908f7663cdab388 | [
"MIT"
] | null | null | null | config/config.exs | rtvu/lexicon | 06fa0f0b20d718824df4dbedb908f7663cdab388 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# 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.16129 | 73 | 0.752007 |
387afdb92772cbe4451a13cc05d7084f61dfe1b3 | 3,214 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_criteria.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_criteria.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/report_criteria.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... | 51.015873 | 272 | 0.735532 |
387b367affd2a9aac9e2f171089288f37814f54b | 510 | exs | Elixir | test/ex_openrtb/data_test.exs | justuswilhelm/ex_openrtb | 72f2559e7a76d63867efda2a8fa16169d931348c | [
"MIT",
"Unlicense"
] | 2 | 2019-01-16T17:54:06.000Z | 2021-02-13T19:14:29.000Z | test/ex_openrtb/data_test.exs | justuswilhelm/ex_openrtb | 72f2559e7a76d63867efda2a8fa16169d931348c | [
"MIT",
"Unlicense"
] | null | null | null | test/ex_openrtb/data_test.exs | justuswilhelm/ex_openrtb | 72f2559e7a76d63867efda2a8fa16169d931348c | [
"MIT",
"Unlicense"
] | 1 | 2018-02-18T16:19:14.000Z | 2018-02-18T16:19:14.000Z | defmodule ExOpenRTB.DataTest do
use ExUnit.Case, async: true
import ExOpenRTB.Test
test_decode %ExOpenRTB.Data{
id: "6",
name: "Data Provider 1",
segment: [
%ExOpenRTB.Segment{
id: "12341318394918",
name: "auto intenders"
},
%ExOpenRTB.Segment{
id: "123413183... | 20.4 | 35 | 0.556863 |
387b703cbfb6ae848c3f50fc97de3a24592e0aea | 12,201 | ex | Elixir | lib/livebook/file_system/s3.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/file_system/s3.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/file_system/s3.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.FileSystem.S3 do
@moduledoc false
# File system backed by an S3 bucket.
defstruct [:bucket_url, :access_key_id, :secret_access_key]
@type t :: %__MODULE__{
bucket_url: String.t(),
access_key_id: String.t(),
secret_access_key: String.t()
}
@doc """
... | 29.329327 | 147 | 0.624539 |
387b8d6e517ca180fa4d544f17161d19896caac0 | 627 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_url_path_map.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_url_path_map.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/application_gateway_url_path_map.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Network.Model.ApplicationGatewayUrlPathMap do
@moduledoc """
UrlPathMaps give a url path to the backend mapping inf... | 24.115385 | 101 | 0.738437 |
387b969754c655e24d961cdf195248b413b4a10f | 42,358 | exs | Elixir | test/ecto/type_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2019-07-25T17:42:33.000Z | 2019-07-25T17:42:33.000Z | test/ecto/type_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | test/ecto/type_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.TypeTest do
use ExUnit.Case, async: true
defmodule Custom do
use Ecto.Type
def type, do: :custom
def load(_), do: {:ok, :load}
def dump(_), do: {:ok, :dump}
def cast(_), do: {:ok, :cast}
def equal?(true, _), do: true
def equal?(_, _), do: false
def embed_as... | 44.681435 | 134 | 0.577341 |
387ba01c3f3fcfec6d3cc5a2db354c45158f53f8 | 2,674 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/symbol.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/symbol.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/symbol.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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.2 | 137 | 0.67988 |
387bacbc1de3453a6298cca4e02697c8dedea55b | 1,266 | ex | Elixir | apps/welcome/lib/welcome_web/views/error_helpers.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/welcome/lib/welcome_web/views/error_helpers.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/welcome/lib/welcome_web/views/error_helpers.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | defmodule WelcomeWeb.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_ta... | 30.878049 | 76 | 0.670616 |
387baf3a14f33f8556c6fd93aae6d76ad221f38b | 1,477 | exs | Elixir | mix.exs | mathieuprog/virtual_fields_filler | dc9661df23e1c40833cb2dcc05c4a68c803f9f5f | [
"Apache-2.0"
] | 1 | 2022-02-15T23:26:27.000Z | 2022-02-15T23:26:27.000Z | mix.exs | mathieuprog/virtual_fields_filler | dc9661df23e1c40833cb2dcc05c4a68c803f9f5f | [
"Apache-2.0"
] | null | null | null | mix.exs | mathieuprog/virtual_fields_filler | dc9661df23e1c40833cb2dcc05c4a68c803f9f5f | [
"Apache-2.0"
] | 1 | 2021-06-21T13:34:38.000Z | 2021-06-21T13:34:38.000Z | defmodule VirtualFieldsFiller.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :virtual_fields_filler,
elixir: "~> 1.9",
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
# Hex
version: @version,
package: package()... | 20.232877 | 74 | 0.539607 |
387bbbe98cf33380d043ccd4935361161fc01bae | 7,691 | ex | Elixir | lib/edgedb/protocol/message.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 30 | 2021-05-19T08:54:44.000Z | 2022-03-11T22:52:25.000Z | lib/edgedb/protocol/message.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-11-17T21:26:01.000Z | 2022-03-12T09:49:25.000Z | lib/edgedb/protocol/message.ex | nsidnev/edgedb-elixir | bade2b9daba2e83bfaa5915b2addb74f41610968 | [
"MIT"
] | 3 | 2021-08-29T14:55:41.000Z | 2022-03-12T01:30:35.000Z | defmodule EdgeDB.Protocol.Message do
import EdgeDB.Protocol.Converters
import EdgeDB.Protocol.Types.Header
alias EdgeDB.Protocol.Datatypes
@callback encode_message(term()) :: iodata()
@callback decode_message(bitstring()) :: term()
@optional_callbacks encode_message: 1, decode_message: 1
defmacro __usi... | 26.429553 | 89 | 0.604603 |
387bd0177ce51dd6825c9cee5c983d6142fda955 | 3,454 | exs | Elixir | test/unit/matcha/rewrite/guards_test.exs | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | 6 | 2019-10-03T15:03:31.000Z | 2021-12-22T17:38:56.000Z | test/unit/matcha/rewrite/guards_test.exs | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | 11 | 2021-12-07T23:47:10.000Z | 2021-12-21T08:52:16.000Z | test/unit/matcha/rewrite/guards_test.exs | christhekeele/matcha | 47697bd8aa3d95c5c64667ace5ef6629b4ab84d8 | [
"MIT"
] | null | null | null | defmodule Matcha.Rewrite.Guards.Test do
@moduledoc false
use ExUnit.Case, async: true
doctest Matcha.Rewrite
require Record
Record.defrecordp(:user, [:name, :age])
import TestGuards
require Matcha
describe "guard logic" do
test "boolean in guard" do
spec =
Matcha.spec do
... | 22.575163 | 93 | 0.465837 |
387c02f3c9958fc8260db7310f7d21d223d775d0 | 1,437 | exs | Elixir | test/type/inspect/numbers_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | 97 | 2020-09-22T01:52:19.000Z | 2022-03-21T17:50:13.000Z | test/type/inspect/numbers_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | 106 | 2020-09-22T18:55:28.000Z | 2021-11-30T01:51:04.000Z | test/type/inspect/numbers_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | 3 | 2020-10-27T22:36:56.000Z | 2022-01-25T21:00:24.000Z | defmodule TypeTest.Type.Inspect.NumbersTest do
use ExUnit.Case, async: true
import TypeTest.InspectCase
@moduletag :inspect
@source TypeTest.TypeExample.Numbers
test "literal integers" do
assert "47" == inspect_type(@source, :literal_int)
assert "-47" == inspect_type(@source, :literal_neg_int)
en... | 29.326531 | 78 | 0.684064 |
387c040888fd3cb0d93af11268dafc13be2f315c | 264 | exs | Elixir | test/set_2/challenge_9_test.exs | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | 3 | 2016-08-21T21:19:25.000Z | 2019-10-11T14:00:15.000Z | test/set_2/challenge_9_test.exs | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | null | null | null | test/set_2/challenge_9_test.exs | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | 2 | 2016-01-19T06:22:38.000Z | 2019-10-11T13:38:46.000Z | defmodule SetTwo.ChallengeNineTest do
use ExUnit.Case, async: true
import SetTwo.ChallengeNine
doctest SetTwo.ChallengeNine
test "pads a block to a specific length" do
assert pad("YELLOW SUBMARINE", 20) == "YELLOW SUBMARINE\x04\x04\x04\x04"
end
end
| 26.4 | 76 | 0.753788 |
387c1bf200848abb472d5b672e099067d520d326 | 956 | ex | Elixir | lib/postoffice_web/controllers/api/fallback_controller.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 15 | 2020-01-24T10:33:57.000Z | 2020-10-24T07:57:14.000Z | lib/postoffice_web/controllers/api/fallback_controller.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 24 | 2020-01-24T09:52:56.000Z | 2021-02-19T09:15:12.000Z | lib/postoffice_web/controllers/api/fallback_controller.ex | andrewgy8/postoffice | eadd84c613e20af9fd4afe4591c3a336733d3f0b | [
"Apache-2.0"
] | 5 | 2020-01-25T18:03:44.000Z | 2021-02-23T10:07:03.000Z | defmodule PostofficeWeb.Api.FallbackController do
use PostofficeWeb, :controller
def call(conn, {:error, changeset}) do
status = select_status(changeset.errors)
conn
|> put_status(status)
|> render("error.json", changeset: changeset)
end
def call(conn, {:relationship_does_not_exists, errors})... | 20.782609 | 60 | 0.625523 |
387c3d03c2773064ae17ad3adbfd7c7934bb6192 | 392 | ex | Elixir | lib/timex.ex | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | 2 | 2018-05-25T17:19:19.000Z | 2020-11-21T06:54:33.000Z | lib/timex.ex | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | null | null | null | lib/timex.ex | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | null | null | null | defmodule Timex do
defmacro __using__(_) do
quote do
alias Timex.DateTime, as: DateTime
alias Timex.Date, as: Date
alias Timex.Date.Convert, as: DateConvert
alias Timex.DateFormat, as: DateFormat
alias Timex.Time, as: Time
alias Timex.TimezoneInfo, as: Tim... | 30.153846 | 48 | 0.637755 |
387c5e4b5d37cfa6fd91ddda18c94e092594eae7 | 1,744 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/model/ad_style.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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.296296 | 117 | 0.734518 |
387c5f75c7c5605c612c587d5c78ccb0655af44e | 721 | ex | Elixir | braccino_ui/lib/braccino_ui_web/gettext.ex | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | braccino_ui/lib/braccino_ui_web/gettext.ex | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | braccino_ui/lib/braccino_ui_web/gettext.ex | darcros/braccino | 33f4d945daf8eac36e4e88ef412dd53cb1389376 | [
"MIT"
] | null | null | null | defmodule BraccinoUiWeb.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 BraccinoUiWeb.Gettext
# Simple translation
gettext("Her... | 28.84 | 72 | 0.682386 |
387c725d789b0117f3ba88b2149cee5981ab1f61 | 251 | ex | Elixir | lib/mix_test_watch/hot_runner/gen_task.ex | gasparch/mix-test.watch | 6be7f440bedb04ee191c187a6eeed433fd001572 | [
"MIT"
] | 1 | 2021-01-04T16:42:18.000Z | 2021-01-04T16:42:18.000Z | lib/mix_test_watch/hot_runner/gen_task.ex | mkaszubowski/mix-test.watch | 6be7f440bedb04ee191c187a6eeed433fd001572 | [
"MIT"
] | null | null | null | lib/mix_test_watch/hot_runner/gen_task.ex | mkaszubowski/mix-test.watch | 6be7f440bedb04ee191c187a6eeed433fd001572 | [
"MIT"
] | null | null | null | defmodule MixTestWatch.GenTask do
@moduledoc """
Runs a mix task, even if it has been run before.
"""
def run(task, args \\ [])
when is_binary(task)
and is_list(args)
do
Mix.Task.reenable(task)
Mix.Task.run(task, args)
end
end
| 19.307692 | 50 | 0.657371 |
387c7a03489fe9f0bd6dd4620f8850711d5bac27 | 2,523 | ex | Elixir | lib/edgedb/error/parser.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/error/parser.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/error/parser.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Error.Parser do
@moduledoc false
@tags_to_atoms %{
"SHOULD_RETRY" => :should_retry,
"SHOULD_RECONNECT" => :should_reconnect
}
@error_definition_regex ~r/^(?<error_code>0x(_[0-9A-Fa-f]{2}){4})\s*(?<error_name>\w+)/
@error_tag_regex ~r/\s+#(\w+)/
@edgedb_errors_file Path.join(
... | 24.259615 | 89 | 0.493064 |
387c8b76284d0de428ffe6b27cfff50762119e1f | 2,248 | exs | Elixir | config/prod.exs | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | config/prod.exs | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | config/prod.exs | parndt/git_ecto_sandbox | 11855a7fc5cdf63594c8fdf2a5baa704d8badb0a | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 34.060606 | 69 | 0.72242 |
387cc4cca9947b412f909a58e9d595af4c08b175 | 995 | ex | Elixir | lib/sptfy/client/return_type.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 5 | 2020-12-14T15:46:26.000Z | 2021-03-20T22:32:58.000Z | lib/sptfy/client/return_type.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | 9 | 2020-12-25T14:36:11.000Z | 2021-01-25T14:03:18.000Z | lib/sptfy/client/return_type.ex | Joe-noh/sptfy | ce94ec2ec61529ab6fe708248a2360f95ec388ea | [
"MIT"
] | null | null | null | defmodule Sptfy.Client.ReturnType do
@moduledoc false
@doc false
@spec ast(mapping :: Sptfy.Client.BodyMapper.mapping()) :: tuple() | :ok | nil
def ast({:single, module: module}) do
ok(t(module))
end
def ast({:list, opts}) do
module = Keyword.get(opts, :module)
ok([t(module)])
end
def as... | 18.425926 | 91 | 0.567839 |
387ce0b43c44439ff3d12014ddad686174861c4d | 255 | ex | Elixir | lib/my_website.ex | altjohndev/my-website | 87d7259744e4d4d0575145aa9131ab7ce4b4f270 | [
"Unlicense"
] | null | null | null | lib/my_website.ex | altjohndev/my-website | 87d7259744e4d4d0575145aa9131ab7ce4b4f270 | [
"Unlicense"
] | 2 | 2021-03-10T08:46:52.000Z | 2021-05-11T04:14:45.000Z | lib/my_website.ex | altjohndev/my-website | 87d7259744e4d4d0575145aa9131ab7ce4b4f270 | [
"Unlicense"
] | null | null | null | defmodule MyWebsite do
@moduledoc """
MyWebsite 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 |
387cf429b64e02e62c07902703af3ba325d55e84 | 117,416 | ex | Elixir | lib/aws/iam.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/iam.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/iam.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.IAM do
@moduledoc """
AWS Identity and Access Management
AWS Identity and Access Management (IAM) is a web service for securely
controlling access to AWS services. With IAM, you can centr... | 43.568089 | 138 | 0.750392 |
387d14abf5656ce95b9638a1c9d31ec558a4c7aa | 693 | exs | Elixir | exercise_2.28.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | 2 | 2019-08-26T13:17:27.000Z | 2020-09-24T13:16:07.000Z | exercise_2.28.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | exercise_2.28.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | defmodule Fringe do
def of(tree), do: reverse(of(tree, []))
defp of([], fringe), do: fringe
defp of([head | tail], fringe) when is_list(head), do: of(tail, of(head, fringe))
defp of([head | tail], fringe), do: of(tail, [head | fringe])
defp reverse(items), do: reverse(items, [])
defp reverse([], reverse... | 26.653846 | 83 | 0.632035 |
387d4565c70738ddbff8566026c85c47ac774311 | 2,946 | exs | Elixir | test/level_web/graphql/mutations/publicize_group_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | test/level_web/graphql/mutations/publicize_group_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | test/level_web/graphql/mutations/publicize_group_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule LevelWeb.GraphQL.PublicizeGroupTest do
use LevelWeb.ConnCase, async: true
import LevelWeb.GraphQL.TestHelpers
alias Level.Groups
@query """
mutation PublicizeGroup(
$space_id: ID!,
$group_id: ID!
) {
publicizeGroup(
spaceId: $space_id,
groupId: $group_id,
... | 27.792453 | 88 | 0.513238 |
387d4e9ec2d389d5c39446bb37f8c70ebc063f27 | 1,790 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/list_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/list_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/list_locations_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... | 35.8 | 166 | 0.73743 |
387d721c029e26444f093964d007ce70166a1336 | 1,980 | ex | Elixir | lib/elixir_complete/cli.ex | medek/elixir_complete | d946069005bdf3a00fe035520fa47058a7d6c9b1 | [
"0BSD"
] | null | null | null | lib/elixir_complete/cli.ex | medek/elixir_complete | d946069005bdf3a00fe035520fa47058a7d6c9b1 | [
"0BSD"
] | null | null | null | lib/elixir_complete/cli.ex | medek/elixir_complete | d946069005bdf3a00fe035520fa47058a7d6c9b1 | [
"0BSD"
] | null | null | null | defmodule ElixirComplete.CLI do
@moduledoc """
Entry point for escript built version of ElixirComplete
"""
def main(args) do
status = args |> parse_args |> process_args
if status == :ok do
{:ok, _} = ElixirComplete.start(ElixirComplete, :permenent)
:timer.sleep(:infinity)
end
end
... | 36.666667 | 124 | 0.532323 |
387d79e66e0d47f07c2ed3bd63906d19271e571d | 596 | ex | Elixir | lib/sample_genstage/application.ex | abmBispo/sample-genstage | c6e2af7efd64f3baaa423c1f4a05b05120723843 | [
"MIT"
] | null | null | null | lib/sample_genstage/application.ex | abmBispo/sample-genstage | c6e2af7efd64f3baaa423c1f4a05b05120723843 | [
"MIT"
] | null | null | null | lib/sample_genstage/application.ex | abmBispo/sample-genstage | c6e2af7efd64f3baaa423c1f4a05b05120723843 | [
"MIT"
] | null | null | null | defmodule SampleGenstage.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
{SampleGenstage.Producer, "initial message"},
{SampleGenstage.ProducerCons... | 27.090909 | 68 | 0.711409 |
387dc0878a57a204cf8e8accbc23266cf8501603 | 1,256 | ex | Elixir | lib/uptom/email.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 6 | 2017-05-12T04:20:09.000Z | 2020-11-07T02:00:56.000Z | lib/uptom/email.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | null | null | null | lib/uptom/email.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 2 | 2020-05-18T08:06:22.000Z | 2020-12-19T14:24:40.000Z | defmodule Uptom.Email do
use Phoenix.Swoosh, view: Uptom.EmailView, layout: {Uptom.LayoutView, :email}
import Swoosh.Email
def alert(email_address, name, url, result) do
{status, details} = result
status_text = if status == :up, do: "UP", else: "DOWN"
details_text = cond do
details[:status_cod... | 38.060606 | 92 | 0.568471 |
387ddeefc9c1bf5ce46ca1da78bbc00c283bae9b | 329 | ex | Elixir | lib/email_guard/disposable_list.ex | andyjones11/email_guard | 26fbb300186f9a8b745a52786604443fa94af3bd | [
"MIT"
] | null | null | null | lib/email_guard/disposable_list.ex | andyjones11/email_guard | 26fbb300186f9a8b745a52786604443fa94af3bd | [
"MIT"
] | null | null | null | lib/email_guard/disposable_list.ex | andyjones11/email_guard | 26fbb300186f9a8b745a52786604443fa94af3bd | [
"MIT"
] | null | null | null | defmodule EmailGuard.DisposableList do
@moduledoc """
Contains list of providers of disposable
email address (aka temp or burner emails).
Credits to: https://github.com/wesbos/burner-email-providers
"""
@behaviour EmailGuard.List
@impl EmailGuard.List
use EmailGuard.List, filename: "disposable_list.... | 21.933333 | 62 | 0.753799 |
387dff431467f1f7db14063fab009ccdcea6514d | 1,990 | ex | Elixir | clients/elixir/lib/fast_api/api/text_text_language_generation.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | 1 | 2022-03-30T11:33:28.000Z | 2022-03-30T11:33:28.000Z | clients/elixir/lib/fast_api/api/text_text_language_generation.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | null | null | null | clients/elixir/lib/fast_api/api/text_text_language_generation.ex | theunifai/unifai-sdk | b010bd37e5a418881ee3747bd8ec6e8e18e08234 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule FastAPI.Api.TextTextLanguageGeneration do
@moduledoc """
API calls for all endpoints tagged `TextTextLanguageGeneration`.
"""
alias FastAPI.C... | 28.428571 | 123 | 0.661809 |
387e0697065dcf529df6222df74e138732bff9b9 | 2,508 | exs | Elixir | apps/ewallet/priv/repo/seeders/minted_token.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/priv/repo/seeders/minted_token.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/priv/repo/seeders/minted_token.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | # This is the seeding script for MintedToken.
alias Ecto.UUID
alias EWallet.{CLI, MintGate, Seeder}
alias EWalletDB.{Account, MintedToken, Repo}
seeds = [
%{
symbol: "PLAY",
name: "TurboPlay",
subunit_to_unit: 10_000,
genesis_amount: 10_000_000_000_000, # 1,000,000,000 PLAY
account_id: Acc... | 27.866667 | 82 | 0.642344 |
387e081660d0780eeaed8a5454e13f0b9035f754 | 920 | ex | Elixir | lib/sanbase_web/graphql/middlewares/post_permissions.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/middlewares/post_permissions.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/middlewares/post_permissions.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Middlewares.PostPermissions do
@behaviour Absinthe.Middleware
alias Absinthe.Resolution
alias SanbaseWeb.Graphql.Helpers.Utils
@allowed_fields_for_anon_users [
"id",
"title",
"shortDesc",
"votes",
"user",
"createdAt",
"updatedAt",
"state",
"rea... | 20 | 89 | 0.676087 |
387e11fe9e39a33a82d581ed7ba094d0baa80d65 | 1,658 | ex | Elixir | clients/content/lib/google_api/content/v21/model/list_return_policy_online_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/list_return_policy_online_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/list_return_policy_online_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... | 35.276596 | 140 | 0.759349 |
387e6a6e355ca4fdddc16ed2439dd9610a3c64df | 1,109 | exs | Elixir | patterns/rpc/elixir/rpc/config/config.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | patterns/rpc/elixir/rpc/config/config.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | patterns/rpc/elixir/rpc/config/config.exs | thetonymaster/thetonymaster.github.io | 2e24d46dd377fed6ab6d1609e5afe24b4953a0f2 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# 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... | 35.774194 | 73 | 0.749324 |
387e893e5243f80a2964d021e6c1bb3fc833527f | 3,441 | exs | Elixir | priv/repo/seeds.exs | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 41 | 2017-10-04T00:33:46.000Z | 2021-04-09T01:33:34.000Z | priv/repo/seeds.exs | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 74 | 2017-09-20T03:36:17.000Z | 2018-11-20T20:46:16.000Z | priv/repo/seeds.exs | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 12 | 2017-10-04T10:02:49.000Z | 2021-12-28T22:57:20.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# OpenPantry.Repo.insert!(%OpenPantry.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they... | 26.267176 | 138 | 0.583551 |
387e899fa086795ae92524a5f2b00e06d77e3487 | 1,519 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_cloud_storage_key.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_cloud_storage_key.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_cloud_storage_key.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.645833 | 98 | 0.757077 |
387eac93767ea72f0d23e5d5422d48e49f3fb18f | 1,221 | exs | Elixir | test/chat_api_web/channels/notification_channel_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 1 | 2020-10-02T18:33:47.000Z | 2020-10-02T18:33:47.000Z | test/chat_api_web/channels/notification_channel_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | test/chat_api_web/channels/notification_channel_test.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.NotificationChannelTest do
use ChatApiWeb.ChannelCase
setup do
account = account_fixture()
user = user_fixture(account)
conversation = conversation_fixture(account, customer_fixture(account))
{:ok, _, socket} =
ChatApiWeb.UserSocket
|> socket("user_id", %{current_u... | 27.133333 | 93 | 0.647011 |
387f34bc4c202ea1e8f68486f5e99b07c50cb98f | 527 | exs | Elixir | test/peek_code/customers_test.exs | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | null | null | null | test/peek_code/customers_test.exs | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | null | null | null | test/peek_code/customers_test.exs | itorisaias/peek_code | 4f748e45fddc9e817fd4a5ad4d5811451efaa11c | [
"BSD-Source-Code",
"Adobe-Glyph"
] | 1 | 2021-03-05T00:21:07.000Z | 2021-03-05T00:21:07.000Z | defmodule PeekCode.CustomersTest do
use PeekCode.DataCase
alias PeekCode.Customers
@success %{
email: "gustavo@peek.com",
first_name: "Gustavo",
last_name: "Oliveira"
}
test "list_customers/0 returns all customers" do
Customers.create_customer(@success)
assert Customers.list_customers()... | 22.913043 | 68 | 0.711575 |
387f71994fda0c4d26bdc5538b1fea145d6b5fb3 | 14,731 | ex | Elixir | lib/maxwell/conn.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 130 | 2016-03-24T02:48:26.000Z | 2021-04-10T19:29:06.000Z | lib/maxwell/conn.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 78 | 2016-06-28T06:33:01.000Z | 2021-12-15T01:37:54.000Z | lib/maxwell/conn.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 24 | 2016-04-09T16:44:19.000Z | 2020-12-01T10:57:22.000Z | defmodule Maxwell.Conn do
@moduledoc """
The Maxwell connection.
This module defines a `Maxwell.Conn` struct and the main functions
for working with Maxwell connections.
### Request fields
These fields contain request information:
* `url` - the requested url as a binary, example: `"www.example.com:... | 30.002037 | 104 | 0.626638 |
387f74df7d3d521b779cef887f141d9899bb742b | 1,266 | ex | Elixir | apps/tracing_1/lib/rest_api_web/views/error_helpers.ex | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/tracing_1/lib/rest_api_web/views/error_helpers.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/tracing_1/lib/rest_api_web/views/error_helpers.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | defmodule RestApiWeb.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_ta... | 30.878049 | 76 | 0.670616 |
387f75b4f0b73739690b4e7e6cb261e3a718085c | 1,929 | exs | Elixir | test/integration/page/screenshot_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 30 | 2021-06-01T16:59:35.000Z | 2022-03-25T16:56:19.000Z | test/integration/page/screenshot_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 35 | 2021-06-10T17:05:31.000Z | 2022-02-11T22:30:36.000Z | test/integration/page/screenshot_test.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 4 | 2021-08-13T20:38:18.000Z | 2022-01-31T04:32:35.000Z | defmodule Page.ScreenshotTest do
use Playwright.TestCase, async: true
require Logger
alias Playwright.Page
# NOTE: in addition to the explicit assertions made by these tests, we're also
# demonstrating a couple other capabilities/quirks:
#
# - Given the frame data size for a screenshot is (almost certain... | 37.823529 | 105 | 0.645931 |
387f83e4f70ea5a500451d8ab77e3df98e66f396 | 1,250 | exs | Elixir | clients/jobs/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/jobs/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Jobs.V2.Mixfile do
use Mix.Project
@version "0.5.0"
def project do
[app: :google_api_jobs,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: de... | 25.510204 | 154 | 0.604 |
38800a9dff923ee4a91ddfd594ae635acc77ff2e | 84 | exs | Elixir | microservice/test/views/page_view_test.exs | eduardobarbiero/microservice-contacts | 330d1855c8b9296e030bfe62cabc3a1c20cef500 | [
"MIT"
] | null | null | null | microservice/test/views/page_view_test.exs | eduardobarbiero/microservice-contacts | 330d1855c8b9296e030bfe62cabc3a1c20cef500 | [
"MIT"
] | null | null | null | microservice/test/views/page_view_test.exs | eduardobarbiero/microservice-contacts | 330d1855c8b9296e030bfe62cabc3a1c20cef500 | [
"MIT"
] | null | null | null | defmodule Microservice.PageViewTest do
use Microservice.ConnCase, async: true
end
| 21 | 40 | 0.833333 |
38802391744c7cb63dd78e9526dcccd058b3946f | 148 | ex | Elixir | web/controllers/page_controller.ex | chulkilee/hello_graphql_phoenix | d6357b000ce682c1bb037de6a9de876198baee50 | [
"BSD-3-Clause"
] | 87 | 2016-03-02T11:40:29.000Z | 2022-03-02T21:21:47.000Z | web/controllers/page_controller.ex | chulkilee/hello_graphql_phoenix | d6357b000ce682c1bb037de6a9de876198baee50 | [
"BSD-3-Clause"
] | 12 | 2015-12-22T19:58:48.000Z | 2016-02-26T06:08:29.000Z | web/controllers/page_controller.ex | chulkilee/hello_graphql_phoenix | d6357b000ce682c1bb037de6a9de876198baee50 | [
"BSD-3-Clause"
] | 13 | 2016-05-22T08:41:15.000Z | 2017-07-20T15:27:40.000Z | defmodule HelloGraphQL.PageController do
use HelloGraphQL.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.5 | 40 | 0.75 |
388024a7ade90547abb8d1dcbf3b5227a6f94f3e | 476 | ex | Elixir | apps/badger_web/lib/badger_web/controllers/plug/auth.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | apps/badger_web/lib/badger_web/controllers/plug/auth.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | 9 | 2021-03-09T20:25:18.000Z | 2021-05-27T12:58:03.000Z | apps/badger_web/lib/badger_web/controllers/plug/auth.ex | andyl/badger | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | defmodule BadgerWeb.Plug.Auth do
import Plug.Conn
def init(opts), do: opts
def call(conn, _opts) do
usr_id = get_session(conn, :usr_id)
user = usr_id && BadgerData.Api.User.user_get(usr_id)
assign(conn, :current_user, user)
end
def login(conn, user) do
conn
|> assign(:current_user, user... | 20.695652 | 57 | 0.672269 |
388051567aefd0358f6f780f280001ef3896d4d3 | 1,325 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/parameter.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/parameter.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/parameter.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 28.804348 | 77 | 0.749434 |
38805a3e6c8e64a604b8ca9e9e9ddbc1edf55009 | 75 | exs | Elixir | test/adventofcode_test.exs | scmx/advent-of-code-2021-elixir | 5712c62947e3d5266deebee11ab59f2d803edbe3 | [
"MIT"
] | 2 | 2019-01-16T16:10:31.000Z | 2019-05-14T04:41:15.000Z | test/adventofcode_test.exs | scmx/advent-of-code-2021-elixir | 5712c62947e3d5266deebee11ab59f2d803edbe3 | [
"MIT"
] | null | null | null | test/adventofcode_test.exs | scmx/advent-of-code-2021-elixir | 5712c62947e3d5266deebee11ab59f2d803edbe3 | [
"MIT"
] | 1 | 2020-12-10T10:47:21.000Z | 2020-12-10T10:47:21.000Z | defmodule AdventofcodeTest do
use ExUnit.Case
doctest Adventofcode
end
| 15 | 29 | 0.826667 |
388072ec93ddd5e7a2ac544520f756146377d229 | 2,964 | exs | Elixir | mix.exs | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 8 | 2020-09-10T09:18:17.000Z | 2022-03-25T03:43:25.000Z | mix.exs | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | null | null | null | mix.exs | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 4 | 2020-12-28T06:13:51.000Z | 2021-04-27T18:00:06.000Z | defmodule Noven.MixProject do
use Mix.Project
def project do
[
app: :noven,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
r... | 30.244898 | 84 | 0.559717 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.