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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33690d4786d6327c6123c2da2fd684197daabd6e | 1,427 | ex | Elixir | lib/ex338_web/emails/trade_email.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | lib/ex338_web/emails/trade_email.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | lib/ex338_web/emails/trade_email.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338Web.TradeEmail do
@moduledoc false
use Phoenix.Swoosh, view: Ex338Web.EmailView, layout: {Ex338Web.LayoutView, :email}
@commish {"338 Commish", "no-reply@338admin.com"}
def cancel(conn, league, trade, recipients, fantasy_team) do
new()
|> to(recipients)
|> from(@commish)
|> sub... | 28.54 | 86 | 0.652418 |
33690ec18230a36d205524f9c78bbfb0dfa5f8c6 | 4,485 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/user_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/user_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/user_info.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... | 41.915888 | 145 | 0.643924 |
33690f97e8a78200f0b52e25f96e1e8a8b843ba3 | 4,924 | ex | Elixir | lib/ja_serializer/relationship.ex | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/relationship.ex | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/relationship.ex | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | defmodule JaSerializer.AssociationNotLoadedError do
defexception [:message]
def exception(opts) do
msg = """
The #{opts[:rel]} relationship returned %Ecto.Association.NotLoaded{}.
Please pre-fetch the relationship before serialization or override the
#{opts[:name]}/2 function in your serializer.
... | 30.968553 | 138 | 0.595857 |
33691744f3ab3e7cd6df9326b6fe3a3cfe2d2637 | 5,745 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/api/savedadstyles.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/savedadstyles.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/savedadstyles.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... | 43.854962 | 211 | 0.652045 |
33692bdd462663e3bcdb5149add5ad1abb6551d7 | 294 | exs | Elixir | apps/re/priv/repo/migrations/20181101132756_embed_address_coberage_notification.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/migrations/20181101132756_embed_address_coberage_notification.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/priv/repo/migrations/20181101132756_embed_address_coberage_notification.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Repo.Migrations.EmbedAddressCoberageNotification do
use Ecto.Migration
def change do
alter table(:notify_when_covered) do
add :state, :string
add :city, :string
add :neighborhood, :string
remove :user_id
remove :address_id
end
end
end
| 19.6 | 64 | 0.690476 |
33692e24ec978e15ec3d3ba49de1c15cd678a7a2 | 2,474 | ex | Elixir | lib/blue_jet/app/notification/email_template/factory.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/notification/email_template/factory.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/notification/email_template/factory.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Notification.EmailTemplate.Factory do
alias BlueJet.Notification.EmailTemplate
def password_reset(account) do
password_reset_html =
File.read!("lib/blue_jet/app/notification/email_templates/password_reset.html")
password_reset_text =
File.read!("lib/blue_jet/app/notification/... | 31.316456 | 90 | 0.707761 |
33694cbd53704e0f07dc6ab05f44a63dfabaf6f7 | 574 | ex | Elixir | lib/models/command.ex | SmartCasual/elixir-zeromq | 91430a6a662399d2d96be731a778e29e8425ce7f | [
"MIT"
] | null | null | null | lib/models/command.ex | SmartCasual/elixir-zeromq | 91430a6a662399d2d96be731a778e29e8425ce7f | [
"MIT"
] | null | null | null | lib/models/command.ex | SmartCasual/elixir-zeromq | 91430a6a662399d2d96be731a778e29e8425ce7f | [
"MIT"
] | null | null | null | defmodule ZeroMQ.Command do
defstruct name: nil,
data: nil
def parse(<<name_size::1 * 8, name::binary-size(name_size), data::binary>>) do
%__MODULE__{
name: name,
data: data,
}
end
end
defimpl String.Chars, for: ZeroMQ.Command do
def to_string(command) do
unless is_binary(c... | 22.076923 | 82 | 0.642857 |
33695570b362e7d06f6d9ec1e53174efc470de25 | 1,361 | exs | Elixir | mix.exs | cyberpunk-ventures/livecoin_ex | 50e915ae20f3ebc4e3d45ee75e16c236027583c5 | [
"MIT"
] | 2 | 2017-01-22T10:55:29.000Z | 2017-01-26T12:14:01.000Z | mix.exs | cyberpunk-ventures/livecoin_ex | 50e915ae20f3ebc4e3d45ee75e16c236027583c5 | [
"MIT"
] | null | null | null | mix.exs | cyberpunk-ventures/livecoin_ex | 50e915ae20f3ebc4e3d45ee75e16c236027583c5 | [
"MIT"
] | null | null | null | defmodule LivecoinEx.Mixfile do
use Mix.Project
def project do
[app: :livecoin_ex,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description()
]
end
# Configurat... | 23.877193 | 79 | 0.608376 |
3369b83c0470390b21b0b37342e689dc95817724 | 30,040 | exs | Elixir | lib/elixir/test/elixir/string_test.exs | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_test.exs | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_test.exs | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule StringTest do
use ExUnit.Case, async: true
doctest String
test "next_codepoint/1" do
assert String.next_codepoint("ésoj") == {"é", "soj"}
assert String.next_codepoint(<<255>>) == {<<255>>, ""}
assert String.next_codepoint("") == nil
end
#... | 40.21419 | 97 | 0.569574 |
3369bbdff6e3d225cc369ca6443bb003cca9de84 | 2,136 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/dynamic_source_split.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/dynamic_source_split.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/dynamic_source_split.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.836364 | 145 | 0.747659 |
3369c4c2cedfcda88f9b81680723fb68293303d5 | 436 | ex | Elixir | lib/todo/service/item.ex | bbassett/todo | 2b3a2b8c7663e3d32491603bee2de63446994f5c | [
"MIT"
] | null | null | null | lib/todo/service/item.ex | bbassett/todo | 2b3a2b8c7663e3d32491603bee2de63446994f5c | [
"MIT"
] | null | null | null | lib/todo/service/item.ex | bbassett/todo | 2b3a2b8c7663e3d32491603bee2de63446994f5c | [
"MIT"
] | null | null | null | defmodule Todo.Service.Item do
use Todo.DB.Model
alias Todo.DB.Postgres
schema "items" do
field :list_id, :integer
field :title, :string
field :description, :string
field :due_date, Ecto.Date
field :complete, :boolean
end
def get_by_list(id) do
query = from ... | 22.947368 | 36 | 0.594037 |
3369eaa557c3c020dd946f5f3bd7daff50dedb93 | 5,304 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/message.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/message.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/message.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 59.595506 | 464 | 0.692685 |
336a5ed7be6686435f3057af08a93e0084363ca4 | 8,653 | ex | Elixir | lib/vivid.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 26 | 2017-01-03T01:18:38.000Z | 2019-02-21T09:26:20.000Z | lib/vivid.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | null | null | null | lib/vivid.ex | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 2 | 2017-03-18T22:45:49.000Z | 2017-05-08T07:24:58.000Z | defmodule Vivid do
defmacro __using__(_opts) do
quote do
alias Vivid.{
Arc,
Bounds,
Buffer,
Circle,
Font,
Frame,
Group,
Font,
Frame,
Group,
Line,
Path,
Point,
Polygon,
Rasterize,
R... | 41.401914 | 77 | 0.200046 |
336a6c29ba97cf2b555e197b80891b7408b003c3 | 3,691 | ex | Elixir | apps/proxy/test/support/ex_chain/fake_ex_chain.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | apps/proxy/test/support/ex_chain/fake_ex_chain.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | apps/proxy/test/support/ex_chain/fake_ex_chain.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | null | null | null | defmodule Staxx.Proxy.ExChain.FakeExChain do
@behaviour Staxx.Proxy.ExChain
use GenServer
def start_link(_),
do: GenServer.start_link(__MODULE__, %{chains: %{}, snapshots: %{}}, name: __MODULE__)
@impl GenServer
def init(state),
do: {:ok, state}
@impl GenServer
def handle_call(:chains, _, %{ch... | 24.443709 | 97 | 0.60065 |
336a7a85216f9140d31a01721e136f3ba96b106a | 573 | exs | Elixir | test/views/error_view_test.exs | cesarreyesa/timeline | fb7b7bdfc64a28420d690999dd3777ba3838afbb | [
"Apache-2.0"
] | null | null | null | test/views/error_view_test.exs | cesarreyesa/timeline | fb7b7bdfc64a28420d690999dd3777ba3838afbb | [
"Apache-2.0"
] | null | null | null | test/views/error_view_test.exs | cesarreyesa/timeline | fb7b7bdfc64a28420d690999dd3777ba3838afbb | [
"Apache-2.0"
] | null | null | null | defmodule Timeline.ErrorViewTest do
use Timeline.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(Timeline.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.html" ... | 26.045455 | 66 | 0.678883 |
336a83ff744947419efeffd17a09ef711a5d16e4 | 425 | exs | Elixir | apps/legion/test/identity/information/political/region_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/test/identity/information/political/region_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/test/identity/information/political/region_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Identity.Information.Political.RegionTest do
@moduledoc false
use Legion.DataCase
alias Legion.Identity.Information.Political.Region
@attr %{name: "name", code: 1234}
test "changeset will error no matter what" do
refute Region.changeset(%Region{}, @attr).valid?
end
test "changeset... | 25 | 65 | 0.743529 |
336a8e246bcdc3d3922efacb6c5ccba2c6d11b01 | 268 | ex | Elixir | lib/application.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | 7 | 2018-03-04T14:33:46.000Z | 2020-10-26T17:32:23.000Z | lib/application.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | 5 | 2018-08-01T07:29:02.000Z | 2018-12-31T12:59:16.000Z | lib/application.ex | elbow-jason/durango | a31b5636789ef275f19963343eda03d10ebc3ca0 | [
"MIT"
] | null | null | null | defmodule Durango.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = []
Durango.Repo.Auth.start_table
opts = [strategy: :one_for_one, name: Scraper.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 19.142857 | 61 | 0.720149 |
336aca1f67dce8b5b4f6dd62ac291b3bb4792ade | 687 | ex | Elixir | lib/ambry/series/series_flat.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry/series/series_flat.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry/series/series_flat.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Series.SeriesFlat do
@moduledoc """
A flattened view of series.
"""
use Ambry.FlatSchema
alias Ambry.Ecto.Types.PersonName
schema "series_flat" do
field :name, :string
field :books, :integer
field :authors, {:array, PersonName}
timestamps()
end
def filter(query, :sea... | 21.46875 | 106 | 0.608443 |
336ae114212d341f44332a655abdaab3b9f19981 | 9,332 | ex | Elixir | lib/phoenix_live_view/static.ex | simonprev/phoenix_live_view | 55a54726650e53ac68c30fc9b49d2a5895ce2053 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/static.ex | simonprev/phoenix_live_view | 55a54726650e53ac68c30fc9b49d2a5895ce2053 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/static.ex | simonprev/phoenix_live_view | 55a54726650e53ac68c30fc9b49d2a5895ce2053 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Static do
# Holds the logic for static rendering.
@moduledoc false
alias Phoenix.LiveView.{Socket, Utils, Diff}
# Token version. Should be changed whenever new data is stored.
@token_vsn 2
# Max session age in seconds. Equivalent to 2 weeks.
@max_session_age 1_209_600
@doc... | 29.625397 | 99 | 0.644985 |
336aeab8ebe78296dafe38d01e3542ea634f5969 | 745 | ex | Elixir | lesson2.ex | Joret0/Elexir-Course | 14b788dd18d0051b7c71a9aa05f83d8b63fa5abd | [
"MIT"
] | null | null | null | lesson2.ex | Joret0/Elexir-Course | 14b788dd18d0051b7c71a9aa05f83d8b63fa5abd | [
"MIT"
] | null | null | null | lesson2.ex | Joret0/Elexir-Course | 14b788dd18d0051b7c71a9aa05f83d8b63fa5abd | [
"MIT"
] | null | null | null | defmodule Homework do
def first_task() do
# Using a pattern match, assign "Alice" to a variable "first_name", and "Addison" to variable "last_name"
{a, b} = {"Alice", "Addison"}
# Assign the number to the variable "age", and the letter to "sex"
{"age", "sex"} = {32, "f"}
# Create a patter, that... | 31.041667 | 109 | 0.562416 |
336b17620e1f1b61e604b5462466b6a94a73130c | 4,393 | ex | Elixir | lib/mixpanel/dispatcher.ex | bluecodecom/mixpanel_api_ex | f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638 | [
"MIT"
] | null | null | null | lib/mixpanel/dispatcher.ex | bluecodecom/mixpanel_api_ex | f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638 | [
"MIT"
] | 3 | 2019-08-22T13:04:04.000Z | 2021-02-24T10:20:56.000Z | lib/mixpanel/dispatcher.ex | bluecodecom/mixpanel_api_ex | f8c6cd8dcbac957c77e0f41f0c65f6d7b127b638 | [
"MIT"
] | null | null | null | defmodule Mixpanel.Dispatcher do
@doc """
Tracks an event.
## Arguments
* `event` - A name for the event
* `properties` - A collection of properties associated with this event.
* `opts` - The options
## Options
* `:distinct_id` - The value of distinct_id will be treated as a string, and u... | 47.236559 | 380 | 0.697929 |
336b1a27567f45288b92159de697d1caba33df91 | 374 | ex | Elixir | web/views/error_view.ex | ClubNix/familix | acedc6487e0b462ad5747fc3eb0acd6441a4b91c | [
"MIT"
] | 1 | 2017-03-02T08:45:43.000Z | 2017-03-02T08:45:43.000Z | web/views/error_view.ex | minijackson/familix | acedc6487e0b462ad5747fc3eb0acd6441a4b91c | [
"MIT"
] | null | null | null | web/views/error_view.ex | minijackson/familix | acedc6487e0b462ad5747fc3eb0acd6441a4b91c | [
"MIT"
] | null | null | null | defmodule Familix.ErrorView do
use Familix.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template,... | 20.777778 | 47 | 0.697861 |
336b213a5effb0346885ace0fd74055d5c45b97c | 2,869 | ex | Elixir | lib/mix/tasks/query.ex | MikaAK/absinthe_generator | 2025daeac092c5a2fa8030bcddf770fd3104cd0f | [
"MIT"
] | 1 | 2022-02-28T14:58:08.000Z | 2022-02-28T14:58:08.000Z | lib/mix/tasks/query.ex | MikaAK/absinthe_generator | 2025daeac092c5a2fa8030bcddf770fd3104cd0f | [
"MIT"
] | null | null | null | lib/mix/tasks/query.ex | MikaAK/absinthe_generator | 2025daeac092c5a2fa8030bcddf770fd3104cd0f | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Absinthe.Gen.Query do
@shortdoc "Generates an absinthe query schema and inserts the record in the base schema.ex"
@moduledoc """
Generates an Absinthe Query
### Options
#{NimbleOptions.docs(AbsintheGenerator.Query.definitions())}
### Specifying Queries
The following format can be u... | 28.979798 | 151 | 0.707215 |
336b265ac356979e4d9a1c3bccbe4d1d2bc49f1b | 178 | exs | Elixir | kousa/priv/repo/migrations/20210202143344_has_logged_in.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/priv/repo/migrations/20210202143344_has_logged_in.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/priv/repo/migrations/20210202143344_has_logged_in.exs | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Beef.Repo.Migrations.HasLoggedIn do
use Ecto.Migration
def change do
alter table(:users) do
add :hasLoggedIn, :boolean, default: false
end
end
end
| 17.8 | 48 | 0.707865 |
336bbf4e70ef0cd14b4905399fdda66ad925dd3a | 1,492 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_set_default_processor_version_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_set_default_processor_version_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1_set_default_processor_version_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... | 30.44898 | 105 | 0.77748 |
336bc79111417510a27aa8f01b23d3d5b938fb4e | 378 | exs | Elixir | priv/repo/migrations/20200316174449_create_credentials.exs | GalPin-Ark/chit_chat | 8cb492b7c6daca82fdbd536f6dbc185c02991730 | [
"MIT"
] | 1 | 2021-09-10T16:49:36.000Z | 2021-09-10T16:49:36.000Z | priv/repo/migrations/20200516193817_create_credentials.exs | areski/ex-chitchat | 0ec14e9af6acba40d6708f924b76fb4fbe592dcf | [
"MIT"
] | 2 | 2020-05-22T18:42:14.000Z | 2021-01-25T16:34:38.000Z | priv/repo/migrations/20200516193817_create_credentials.exs | areski/ex-chitchat | 0ec14e9af6acba40d6708f924b76fb4fbe592dcf | [
"MIT"
] | null | null | null | defmodule ChitChat.Repo.Migrations.CreateCredentials do
use Ecto.Migration
def change do
create table(:credentials) do
add :email, :string
add :password_hash, :string
add :user_id, references(:users, on_delete: :nothing)
timestamps()
end
create unique_index(:credentials, [:ema... | 22.235294 | 59 | 0.687831 |
336be968160f5f9b999d92df02d8b4258e24ea51 | 3,790 | ex | Elixir | deps/plug_wait1/lib/plug/adapters/wait1/conn.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | deps/plug_wait1/lib/plug/adapters/wait1/conn.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | deps/plug_wait1/lib/plug/adapters/wait1/conn.ex | conorfoley/dota_hero_combos | d75a3f0673fc1f1d0845c9d5c692c0605d3b445d | [
"MIT"
] | null | null | null | defmodule Plug.Adapters.Wait1.Conn do
@behaviour Plug.Conn.Adapter
@moduledoc false
alias :cowboy_req, as: Request
alias Plug.Adapters.Wait1.Conn.QS
@doc """
Initialize the connection for future connections on this request.
"""
def init(req, transport) do
{host, req} = Request.host req
{port, ... | 25.608108 | 89 | 0.595778 |
336c06432d4630f176209caf802facfaeb288801 | 581 | exs | Elixir | mix.exs | frojasg/adventofcode | 4ae0edc3c68899ba15fb650a2f1b34079c78c3b0 | [
"Apache-2.0"
] | null | null | null | mix.exs | frojasg/adventofcode | 4ae0edc3c68899ba15fb650a2f1b34079c78c3b0 | [
"Apache-2.0"
] | null | null | null | mix.exs | frojasg/adventofcode | 4ae0edc3c68899ba15fb650a2f1b34079c78c3b0 | [
"Apache-2.0"
] | null | null | null | defmodule Adventofcode.MixProject do
use Mix.Project
def project do
[
app: :adventofcode,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.034483 | 87 | 0.583477 |
336c40d049db19bb3c5bbd41164321c7bd3536b9 | 1,532 | exs | Elixir | mix.exs | MBXSystems/eximap | 4ad1a9fa2ae4d73e61ef3b41398272ae0ec2f762 | [
"Apache-2.0"
] | null | null | null | mix.exs | MBXSystems/eximap | 4ad1a9fa2ae4d73e61ef3b41398272ae0ec2f762 | [
"Apache-2.0"
] | null | null | null | mix.exs | MBXSystems/eximap | 4ad1a9fa2ae4d73e61ef3b41398272ae0ec2f762 | [
"Apache-2.0"
] | null | null | null | defmodule Eximap.Mixfile do
use Mix.Project
@version "0.1.2-dev"
def project do
[
app: :eximap,
version: @version,
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
description: "A simp... | 24.709677 | 84 | 0.570496 |
336c6b9d8556145c82802b72aadc2d90a20b396e | 2,409 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/bid_response_without_bids_status_row.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/bid_response_without_bids_status_row.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/bid_response_without_bids_status_row.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... | 41.534483 | 181 | 0.756746 |
336c738d8e8e390981f8bf26c60f4e1ba2083cc4 | 2,894 | exs | Elixir | test/lib/dayron/config_test.exs | inaka/Dayron | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 169 | 2016-05-05T17:21:45.000Z | 2022-01-31T20:23:07.000Z | test/lib/dayron/config_test.exs | inaka/Dayron | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 51 | 2016-04-22T20:46:37.000Z | 2022-02-22T00:15:40.000Z | test/lib/dayron/config_test.exs | inaka/RestRepo | d6773dacdc681766bfcb41dd792c102ab7217b1c | [
"Apache-2.0"
] | 26 | 2016-05-21T09:52:26.000Z | 2022-02-11T18:07:14.000Z | defmodule Dayron.ConfigTest do
use ExUnit.Case, async: true
alias Dayron.Config
defmodule MyAdapter do
end
defmodule MyLogger do
end
setup do
Application.put_env(:dayron_test, Dayron.Repo,
url: "http://api.example.com",
headers: [access_token: "token"]
)
end
test "parses ... | 32.886364 | 155 | 0.698341 |
336c8e0f8a2f7720be8f3dff55c8c91fdc095710 | 1,453 | ex | Elixir | lib/calypte/traverse.ex | liveforeverx/calypte | 161e137ace124647b005c4d92ed5fe8014072556 | [
"Apache-2.0"
] | 7 | 2019-07-17T22:48:57.000Z | 2021-04-14T20:22:46.000Z | lib/calypte/traverse.ex | liveforeverx/calypte | 161e137ace124647b005c4d92ed5fe8014072556 | [
"Apache-2.0"
] | null | null | null | lib/calypte/traverse.ex | liveforeverx/calypte | 161e137ace124647b005c4d92ed5fe8014072556 | [
"Apache-2.0"
] | 1 | 2019-08-06T11:26:11.000Z | 2019-08-06T11:26:11.000Z | defmodule Calypte.Traverse do
@moduledoc """
Traverse of a structure
"""
alias Calypte.Traversable
@type traversable :: any
@doc """
Performs a depth-first, pre-order traversal using an accumulator.
"""
@spec prewalk(traversable, any, (traversable, any -> {traversable, any})) :: {traversable, any}
... | 29.06 | 98 | 0.694425 |
336c9edd71164437d8267f28c4d83e8f58cd262d | 929 | exs | Elixir | test/co2_offset/converters/car_test.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 15 | 2018-12-26T10:31:16.000Z | 2020-12-01T09:27:01.000Z | test/co2_offset/converters/car_test.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 267 | 2018-12-26T07:46:17.000Z | 2020-04-04T17:05:47.000Z | test/co2_offset/converters/car_test.exs | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 1 | 2019-07-12T13:53:25.000Z | 2019-07-12T13:53:25.000Z | defmodule Co2Offset.Converters.CarTest do
use Co2Offset.DataCase
alias Co2Offset.Converters.Car
describe "convert" do
test "co2_from_km returns a correct amount of co2 for 1 km" do
assert(0.132 = Car.convert(1.0, :co2_from_km))
end
test "co2_from_km/1 returns a correct amount of co2 for 3km" ... | 23.820513 | 72 | 0.636168 |
336cb5e143c4f275010a671920b1dbb7e76b97dc | 7,766 | exs | Elixir | bin/codegen.exs | deadtrickster/ucum.beam | c356031e4bc67c3238c8e2ec980fa3def28a05f8 | [
"MIT"
] | null | null | null | bin/codegen.exs | deadtrickster/ucum.beam | c356031e4bc67c3238c8e2ec980fa3def28a05f8 | [
"MIT"
] | null | null | null | bin/codegen.exs | deadtrickster/ucum.beam | c356031e4bc67c3238c8e2ec980fa3def28a05f8 | [
"MIT"
] | null | null | null | defmodule Ucum.Codegen do
require Record
@parser_template """
-module(ucum_parser).
-export([parse/1,
symbol/1]).
-include("model.hrl").
-define(DECIMAL(Value), Value).
%% ===================================================================
%% API
%% ====================================... | 24.575949 | 89 | 0.502447 |
336d0750c44600be009018c80b7f8b27a01b2575 | 1,598 | exs | Elixir | mix.exs | mbreuer23/phoenix-live-props | ad85c5bdabdbb7cc51a17b8351eec8878f2abee0 | [
"MIT"
] | 11 | 2020-07-02T17:02:18.000Z | 2021-10-31T11:27:53.000Z | mix.exs | mbreuer23/phoenix-live-props | ad85c5bdabdbb7cc51a17b8351eec8878f2abee0 | [
"MIT"
] | null | null | null | mix.exs | mbreuer23/phoenix-live-props | ad85c5bdabdbb7cc51a17b8351eec8878f2abee0 | [
"MIT"
] | 1 | 2021-01-04T20:29:07.000Z | 2021-01-04T20:29:07.000Z | defmodule LiveProps.MixProject do
use Mix.Project
@version "0.2.2"
def project do
[
app: :live_props,
version: @version,
description: "Props and State for Phoenix LiveView",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
... | 24.96875 | 87 | 0.583229 |
336d1c58aa7cad66cd78473fa0e46f7c59932079 | 188 | ex | Elixir | lib/rediscl/query/result/append.ex | yusuf-demir/elixir-rediscl | 94add4947502399f21b82dab7921d7acd6e22188 | [
"MIT"
] | 14 | 2018-07-21T14:09:25.000Z | 2021-08-28T14:10:46.000Z | lib/rediscl/query/result/append.ex | yusuf-demir/elixir-rediscl | 94add4947502399f21b82dab7921d7acd6e22188 | [
"MIT"
] | 2 | 2018-07-29T16:04:24.000Z | 2021-08-28T14:11:55.000Z | lib/rediscl/query/result/append.ex | yusuf-demir/elixir-rediscl | 94add4947502399f21b82dab7921d7acd6e22188 | [
"MIT"
] | 3 | 2019-02-17T18:56:25.000Z | 2021-08-28T13:47:02.000Z | defmodule Rediscl.Query.Pipe.Result.Append do
@moduledoc """
Result of append query
"""
defstruct [:append]
@type t :: %__MODULE__{
append: Integer.t()
}
end
| 17.090909 | 45 | 0.606383 |
336d3330995f0ac754821878f5cb14df9aea85ff | 1,780 | ex | Elixir | clients/notebooks/lib/google_api/notebooks/v1/model/instance_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/notebooks/lib/google_api/notebooks/v1/model/instance_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/notebooks/lib/google_api/notebooks/v1/model/instance_config.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... | 35.6 | 214 | 0.739888 |
336d418bcb0832f3da4b30bf504569db83ec92c9 | 2,303 | ex | Elixir | clients/content/lib/google_api/content/v2/model/account_tax_tax_rule.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/account_tax_tax_rule.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/account_tax_tax_rule.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 ... | 39.033898 | 185 | 0.707338 |
336d6e9ad3be3f5f77549941d5db6c00b03de4d7 | 1,878 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounts_list_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/accounts_list_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/accounts_list_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.433962 | 153 | 0.716187 |
336d7957b7ce10ed49b94a55c94cb7b426809b29 | 4,509 | ex | Elixir | lib/cldr/trans/gen_function_migration.ex | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | null | null | null | lib/cldr/trans/gen_function_migration.ex | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | null | null | null | lib/cldr/trans/gen_function_migration.ex | kianmeng/cldr_trans | da3f01eb16cd25e8936d30805bfff5e3ab589409 | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Ecto.Adapters.SQL) do
defmodule Mix.Tasks.Cldr.Trans.Gen.TranslateFunction do
use Mix.Task
import Mix.Generator
import Mix.Ecto, except: [migrations_path: 1]
import Macro, only: [camelize: 1, underscore: 1]
@shortdoc "Generates an Ecto migration to create the translate_fie... | 30.06 | 151 | 0.563318 |
336e1ef04bae096431722cda7f35e52e682b0d53 | 1,120 | exs | Elixir | config/config.exs | khattori/refmon | 99d4e4df200a4146f785a83c2297f9d8303a2f47 | [
"MIT"
] | null | null | null | config/config.exs | khattori/refmon | 99d4e4df200a4146f785a83c2297f9d8303a2f47 | [
"MIT"
] | null | null | null | config/config.exs | khattori/refmon | 99d4e4df200a4146f785a83c2297f9d8303a2f47 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
import 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 parent... | 36.129032 | 73 | 0.755357 |
336e28e6a65f475b27fcd24a6cc8bf5adfc08ef2 | 2,426 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/bucket_retention_policy.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_retention_policy.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/bucket_retention_policy.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... | 50.541667 | 607 | 0.778236 |
336e3a1244f2d206b7eba80679c8d2b020600bb1 | 1,125 | exs | Elixir | clients/blogger/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/blogger/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/blogger/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.290323 | 73 | 0.752889 |
336e53b9fc56fd0d10ac7ae03b1a77391ffdeb56 | 999 | ex | Elixir | lib/memoloop.ex | bakenezumi/memoz | 57b66bb655561565109766399c25ebce04588860 | [
"Apache-2.0"
] | 1 | 2017-07-16T14:03:18.000Z | 2017-07-16T14:03:18.000Z | lib/memoloop.ex | bakenezumi/memoz | 57b66bb655561565109766399c25ebce04588860 | [
"Apache-2.0"
] | null | null | null | lib/memoloop.ex | bakenezumi/memoz | 57b66bb655561565109766399c25ebce04588860 | [
"Apache-2.0"
] | null | null | null | defmodule MemoLoop do
@moduledoc """
A memoize recursive loop macro.
"""
@doc """
The first Parameter is initial parameter of function block.
The second Parameter is function block, it can be recursed by `recur`.
### Example
import MemoLoop
loop 100 do
0 -... | 23.232558 | 77 | 0.510511 |
336e5e7777330a3597b892009fb127fc89141b53 | 1,321 | ex | Elixir | api/lib/auth/router.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/auth/router.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/auth/router.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | defmodule Api.Auth.Router do
use Plug.Router
import Api.RouterUtils
alias Api.Core.Config
alias Api.Core.Utils
alias Api.Auth.Rights
plug :match
plug :dispatch
# TODO move somewhere else
get "/info" do
bearer = List.first get_req_header(conn, "authorization")
rights_context = Rights.authent... | 26.42 | 84 | 0.665405 |
336e60ac968806072a5febdd9812830b32815c35 | 1,663 | ex | Elixir | lib/top5_web.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | lib/top5_web.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | lib/top5_web.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Top5Web 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 Top5Web, :controller
use Top5Web, :view
The definitions below will be executed for every view,
controller... | 23.757143 | 84 | 0.653638 |
336ebe2bcfc8c05c81f627b6f681333b613e6daa | 70 | ex | Elixir | lib/horizons_web/views/user_session_view.ex | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | lib/horizons_web/views/user_session_view.ex | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | lib/horizons_web/views/user_session_view.ex | BCrawfordScott/horizons | 04ee6ba579517e6a35c1347de4be1bceea8e4b36 | [
"MIT"
] | null | null | null | defmodule HorizonsWeb.UserSessionView do
use HorizonsWeb, :view
end
| 17.5 | 40 | 0.828571 |
336ec99222dfac569c396384da079f6525958b39 | 931 | exs | Elixir | test/budget_app/operations/income/update_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | test/budget_app/operations/income/update_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | test/budget_app/operations/income/update_test.exs | djordje/budget_app.backend | 3febe64892e700f3174b8eddbc4b96260c444308 | [
"MIT"
] | null | null | null | defmodule BudgetApp.Operations.Income.UpdateTest do
use BudgetAppWeb.ConnCase, async: true
alias BudgetApp.Operations.Income.Update
test "saves updated record to the DB" do
income = insert(:income)
{:ok, updated_income} = Update.exec(income.id, amount: income.amount + 20)
assert updated_income.amoun... | 34.481481 | 78 | 0.707841 |
336eda275d4cb5bf8c9157f49cc9b1d9f56fb0f6 | 465 | exs | Elixir | rockelivery/priv/repo/migrations/20210904001421_create_users_table.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | rockelivery/priv/repo/migrations/20210904001421_create_users_table.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | rockelivery/priv/repo/migrations/20210904001421_create_users_table.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule Rockelivery.Repo.Migrations.CreateUsersTable do
use Ecto.Migration
def up do
create table(:users) do
add(:email, :string)
add(:name, :string)
add(:tax_id, :string)
add(:password_hash, :string)
add(:birth_date, :date)
add(:cep, :string)
add(:address, :string)
... | 19.375 | 57 | 0.623656 |
336ee77f5b874652196912d677060370f528e844 | 3,751 | ex | Elixir | lib/backoffice/layout_view.ex | NduatiK/backoffice | a19de7b83244de25325a6a96f5da63e7f4ea9ae6 | [
"MIT"
] | 194 | 2021-03-25T17:16:37.000Z | 2022-03-08T11:49:46.000Z | lib/backoffice/layout_view.ex | NduatiK/backoffice | a19de7b83244de25325a6a96f5da63e7f4ea9ae6 | [
"MIT"
] | 34 | 2021-03-26T13:21:06.000Z | 2021-06-26T19:30:44.000Z | lib/backoffice/layout_view.ex | NduatiK/backoffice | a19de7b83244de25325a6a96f5da63e7f4ea9ae6 | [
"MIT"
] | 12 | 2021-04-01T19:46:16.000Z | 2022-02-05T05:35:50.000Z | defmodule Backoffice.LayoutView do
use Phoenix.HTML
use Phoenix.View,
root: "lib/backoffice/templates",
namespace: Backoffice
def live_socket_path(conn) do
[Enum.map(conn.script_name, &["/" | &1]) | conn.private.live_socket_path]
end
def render_stylesheets do
layout = Application.get_env(:... | 31 | 188 | 0.555852 |
336ee839c45cd838acf35b8c5c64eb5957bb9482 | 10,930 | ex | Elixir | lib/sentry/client.ex | relip/sentry-elixir | 8b07e86b01ed5e3de7d546cb429570d1d080070b | [
"MIT"
] | null | null | null | lib/sentry/client.ex | relip/sentry-elixir | 8b07e86b01ed5e3de7d546cb429570d1d080070b | [
"MIT"
] | null | null | null | lib/sentry/client.ex | relip/sentry-elixir | 8b07e86b01ed5e3de7d546cb429570d1d080070b | [
"MIT"
] | null | null | null | defmodule Sentry.Client do
@behaviour Sentry.HTTPClient
# Max message length per https://github.com/getsentry/sentry/blob/0fcec33ac94ad81a205f86f208072b0f57b39ff4/src/sentry/conf/server.py#L1021
@max_message_length 8_192
@moduledoc ~S"""
This module is the default client for sending an event to Sentry via HT... | 30.875706 | 726 | 0.641995 |
336f08cc9065e8e367d3d02ea1377489355f4614 | 3,796 | ex | Elixir | lib/discord_ex/voice/controller.ex | LuaiKam/discord_ex | 4fdbc1e8035c646fff5fef94d709c2465238b04f | [
"MIT"
] | 62 | 2016-07-22T22:01:50.000Z | 2021-12-27T22:00:03.000Z | lib/discord_ex/voice/controller.ex | LuaiKam/discord_ex | 4fdbc1e8035c646fff5fef94d709c2465238b04f | [
"MIT"
] | 32 | 2016-08-05T03:46:04.000Z | 2018-04-12T17:36:36.000Z | lib/discord_ex/voice/controller.ex | LuaiKam/discord_ex | 4fdbc1e8035c646fff5fef94d709c2465238b04f | [
"MIT"
] | 26 | 2016-08-06T01:32:15.000Z | 2018-09-12T20:51:34.000Z | defmodule DiscordEx.Voice.Controller do
@moduledoc """
Voice control to make voice interaction a lot easier.
"""
alias DiscordEx.Voice.Buffer
alias DiscordEx.Voice.Encoder
alias DiscordEx.Voice.UDP
require Logger
def listen_socket(voice_client) do
task = Task.async fn ->
send(voice_client, {... | 28.328358 | 86 | 0.648841 |
336f2f7e044578d1958c72fbef23a1f7dba11390 | 26,085 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/interconnect_attachments.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/interconnect_attachments.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/interconnect_attachments.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... | 52.17 | 511 | 0.655472 |
336f31719b600ad7437fd9d848c9fb91ccfaef17 | 59 | exs | Elixir | test/day5_test.exs | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | test/day5_test.exs | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | test/day5_test.exs | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | defmodule Day5Test do
use ExUnit.Case
doctest Day5
end
| 11.8 | 21 | 0.779661 |
336f42b965137889962e706621c137463bd9b0d1 | 803 | ex | Elixir | lib/poker/hand/two_pair.ex | secretworry/poker_elixir | 2c967bdf4f405e5d154d770cd293d05816e7e90d | [
"MIT"
] | null | null | null | lib/poker/hand/two_pair.ex | secretworry/poker_elixir | 2c967bdf4f405e5d154d770cd293d05816e7e90d | [
"MIT"
] | null | null | null | lib/poker/hand/two_pair.ex | secretworry/poker_elixir | 2c967bdf4f405e5d154d770cd293d05816e7e90d | [
"MIT"
] | null | null | null | defmodule Poker.Hand.TwoPair do
use Poker.Hand
alias Poker.Card
import Poker.Card, only: [is_rank: 1]
@type two_pair_t :: %__MODULE__{pair_ranks: {Card.rank_t, Card.rank_t}, residual_ranks: list(Card.rank_t)}
@enforce_key ~w{pair_ranks residual_ranks}a
defstruct [:pair_ranks, :residual_ranks]
def new(... | 36.5 | 108 | 0.722291 |
336f60db0ab0deeced09fb33d0bab88fc4aa1017 | 773 | ex | Elixir | lib/joken/claim.ex | balena/joken | 405f7a297b8be8d3cdc28603835a543bc9deaf9e | [
"Apache-2.0"
] | 1 | 2019-02-11T20:46:56.000Z | 2019-02-11T20:46:56.000Z | lib/joken/claim.ex | balena/joken | 405f7a297b8be8d3cdc28603835a543bc9deaf9e | [
"Apache-2.0"
] | null | null | null | lib/joken/claim.ex | balena/joken | 405f7a297b8be8d3cdc28603835a543bc9deaf9e | [
"Apache-2.0"
] | null | null | null | defmodule Joken.Claim do
@moduledoc """
Structure for a dynamic claim. It is used for holding functions that generate
and validate claims.
"""
@type t :: %__MODULE__{
generate: fun() | nil,
validate: fun() | nil,
options: list()
}
# We have options here for customizi... | 24.15625 | 81 | 0.609314 |
336f959129390963ce22532ffae72cc8f10e25a6 | 8,537 | ex | Elixir | lib/spandex_phoenix.ex | novaugust/spandex_phoenix | 6f31cb5ba989349eb255c9f7990192fded6da489 | [
"MIT"
] | null | null | null | lib/spandex_phoenix.ex | novaugust/spandex_phoenix | 6f31cb5ba989349eb255c9f7990192fded6da489 | [
"MIT"
] | null | null | null | lib/spandex_phoenix.ex | novaugust/spandex_phoenix | 6f31cb5ba989349eb255c9f7990192fded6da489 | [
"MIT"
] | null | null | null | defmodule SpandexPhoenix do
@moduledoc """
A Plug wrapper for use in a Plug.Router or Phoenix.Endpoint to trace the entire request with Spandex.
> NOTE: If you want to `use` this in combination with `Plug.ErrorHandler` or
similar "wrapper" plugs, this one should be last so that it traces the
effects of the o... | 31.156934 | 118 | 0.662176 |
336fc7bced03d2f621d7dd8b4baceacbb842bbbb | 1,074 | exs | Elixir | examples/progress_and_queue_status.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 717 | 2015-06-15T19:30:54.000Z | 2022-03-22T06:10:09.000Z | examples/progress_and_queue_status.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 106 | 2015-06-25T05:38:05.000Z | 2021-12-08T23:17:19.000Z | examples/progress_and_queue_status.exs | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 60 | 2015-06-07T00:48:37.000Z | 2022-03-06T08:20:23.000Z | #
# Workers can update their current status with `Honeydew.Progress.progress/1`.
# You can view the status of all your workers with `Honeydew.status/1`.
#
#
# elixir -S mix run progress_and_queue_status.exs
#
defmodule HeavyTask do
import Honeydew.Progress
@behaviour Honeydew.Worker
def work_really_hard(secs)... | 21.48 | 78 | 0.680633 |
336fe5401a648a880abd6bf73df217fcc4fdf01a | 1,927 | ex | Elixir | clients/people/lib/google_api/people/v1/connection.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/connection.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/connection.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.145833 | 77 | 0.714063 |
336fee9891f089978c80e42c272c01b57805d97d | 1,258 | ex | Elixir | apps/utils/lib/helpers/path_resolver.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/utils/lib/helpers/path_resolver.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/utils/lib/helpers/path_resolver.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.25641 | 74 | 0.72337 |
337000d90941fe3b75a98f61d3a868168094fafc | 1,976 | ex | Elixir | lib/vault/auth/approle.ex | philss/libvault | 154d8321b414b83914ce108a7e8d97dc706ab01a | [
"MIT"
] | 40 | 2019-01-27T03:42:03.000Z | 2021-12-15T17:31:27.000Z | lib/vault/auth/approle.ex | philss/libvault | 154d8321b414b83914ce108a7e8d97dc706ab01a | [
"MIT"
] | 17 | 2018-12-04T20:13:26.000Z | 2021-02-12T03:27:14.000Z | lib/vault/auth/approle.ex | philss/libvault | 154d8321b414b83914ce108a7e8d97dc706ab01a | [
"MIT"
] | 7 | 2019-02-13T22:54:00.000Z | 2021-06-10T10:32:36.000Z | defmodule Vault.Auth.Approle do
@moduledoc """
Approle Auth Adapter.
[Vault Docs](https://www.vaultproject.io/api/auth/approle/index.html)
"""
@behaviour Vault.Auth.Adapter
@doc """
login with a role id, and secret id. Defaults the auth path to `approle`
## Examples
```
# Atom Map
{:ok, token,... | 27.068493 | 98 | 0.620951 |
337008193a90decb728615508ee98350dfc8ec45 | 1,757 | ex | Elixir | lib/runlet/ctrl/flow.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 4 | 2020-01-12T19:04:46.000Z | 2021-09-20T14:37:22.000Z | lib/runlet/ctrl/flow.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | null | null | null | lib/runlet/ctrl/flow.ex | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 1 | 2021-09-20T14:37:25.000Z | 2021-09-20T14:37:25.000Z | defmodule Runlet.Ctrl.Flow do
@moduledoc "dynamically change flow control for a running event stream"
@doc """
Alters the flow control for a running process to 1/minute.
"""
@spec exec(Runlet.t(), Runlet.PID.t()) :: Enumerable.t()
def exec(%Runlet{uid: uid} = env, pid) do
exec(env, pid, 1, 1, uid)
en... | 26.621212 | 82 | 0.585088 |
33702e0ae929e4ad6f0eaa404cfb72d053f3ddf8 | 270 | ex | Elixir | lib/honeybadger/filter/default.ex | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 175 | 2015-07-04T16:01:53.000Z | 2022-03-30T10:18:03.000Z | lib/honeybadger/filter/default.ex | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 225 | 2015-07-03T22:08:58.000Z | 2022-02-03T14:16:20.000Z | lib/honeybadger/filter/default.ex | blitzstudios/honeybadger-elixir | 81ec81c8e7303847de784c2fb7a189b8521c296c | [
"MIT"
] | 69 | 2015-09-17T13:56:28.000Z | 2022-03-20T17:49:17.000Z | defmodule Honeybadger.Filter.Default do
@moduledoc """
The default implementation for the `filter` configuration. Removes
keys listed in `filter_keys` from maps and respects the
`filter_disable_*` configuration values.
"""
use Honeybadger.Filter.Mixin
end
| 27 | 69 | 0.766667 |
337054c58127a79836eca46e4ff8523de09710ff | 794 | ex | Elixir | lib/home_appliances_store_web/controllers/fallback_controller.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | lib/home_appliances_store_web/controllers/fallback_controller.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | lib/home_appliances_store_web/controllers/fallback_controller.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | defmodule HomeAppliancesStoreWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use HomeAppliancesStoreWeb, :controller
# This clause handles errors returned by Ecto's insert/updat... | 31.76 | 78 | 0.7267 |
3370574e61350c8a91a2077e95d842f7e5378d8f | 2,340 | ex | Elixir | clients/content/lib/google_api/content/v21/model/regionalinventory_custom_batch_response_entry.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/regionalinventory_custom_batch_response_entry.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/regionalinventory_custom_batch_response_entry.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... | 41.785714 | 172 | 0.737179 |
3370777a98ffbfc51a36d6f0948b548637a38a5f | 136 | exs | Elixir | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/{{cookiecutter.phoenix_app_slug}}_web/views/page_view_test.exs | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | 14 | 2019-08-01T07:55:50.000Z | 2021-04-24T09:14:09.000Z | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/{{cookiecutter.phoenix_app_slug}}_web/views/page_view_test.exs | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | 1 | 2019-08-02T03:03:40.000Z | 2019-08-02T03:03:40.000Z | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/{{cookiecutter.phoenix_app_slug}}_web/views/page_view_test.exs | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | null | null | null | defmodule {{cookiecutter.phoenix_app_module}}Web.PageViewTest do
use {{cookiecutter.phoenix_app_module}}Web.ConnCase, async: true
end
| 34 | 66 | 0.823529 |
337080f725741e33a98c478a8ef8db6667ec7918 | 4,310 | ex | Elixir | lib/data_daemon/hound.ex | mariaclrd/data_daemon | f1b4dfd07959d9d0b23389005c41c883d0caf295 | [
"MIT"
] | 4 | 2019-02-16T01:09:30.000Z | 2022-03-03T09:56:20.000Z | lib/data_daemon/hound.ex | mariaclrd/data_daemon | f1b4dfd07959d9d0b23389005c41c883d0caf295 | [
"MIT"
] | 5 | 2018-11-03T12:52:59.000Z | 2019-04-27T10:13:33.000Z | lib/data_daemon/hound.ex | mariaclrd/data_daemon | f1b4dfd07959d9d0b23389005c41c883d0caf295 | [
"MIT"
] | 2 | 2020-02-06T10:28:38.000Z | 2020-09-09T11:22:29.000Z | defmodule DataDaemon.Hound do
@moduledoc false
@doc false
@spec open(
module :: module,
host :: binary | charlist | {byte, byte, byte, byte},
port :: binary | integer
) :: :ok | {:error, atom}
def open(module, host, port) do
true = Code.ensure_loaded?(:gen_udp)
h ... | 25.654762 | 97 | 0.511369 |
3370a9b82e1e13228991938d5a987f1b88df6fa5 | 72 | ex | Elixir | lib/flowr_web/views/dashboard/dashboard_view.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | lib/flowr_web/views/dashboard/dashboard_view.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | lib/flowr_web/views/dashboard/dashboard_view.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule FlowrWeb.Dashboard.DashboardView do
use FlowrWeb, :view
end
| 18 | 45 | 0.819444 |
3370d16b4722c6a5f17c739039a3924fb3112204 | 1,059 | ex | Elixir | plugins/one_webrtc/lib/one_webrtc/models/schema/client_device.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_webrtc/lib/one_webrtc/models/schema/client_device.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_webrtc/lib/one_webrtc/models/schema/client_device.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWebrtc.Schema.ClientDevice do
use OneWebrtc.Shared, :schema
# @primary_key {:id, :binary_id, autogenerate: true}
# @foreign_key_type :binary_id
schema "client_devices" do
field :ip_addr, :integer
field :handsfree_input_id, :string
field :handsfree_output_id, :string
field :headset... | 29.416667 | 67 | 0.72899 |
3371098250f4c348fb7bc210e54b9ec15a3d7878 | 1,602 | ex | Elixir | lib/gentry.ex | spreedly/gentry | 3acf32549f539ba5d2cdb011fcccd95ea0a605dd | [
"MIT"
] | 3 | 2018-01-18T16:02:30.000Z | 2019-04-04T16:57:09.000Z | lib/gentry.ex | spreedly/gentry | 3acf32549f539ba5d2cdb011fcccd95ea0a605dd | [
"MIT"
] | null | null | null | lib/gentry.ex | spreedly/gentry | 3acf32549f539ba5d2cdb011fcccd95ea0a605dd | [
"MIT"
] | null | null | null | defmodule Gentry do
@moduledoc """
This is a convenience module for running synchronous tasks.
Each task is run in a separate spawned process.
"""
require Logger
@doc """
Run the task (function) in an isolated process.
The return of the task is interrogated for success or failure.
* `:ok` The... | 34.826087 | 171 | 0.649189 |
33710e2ca1844d75ceb7c201097c10eb57163442 | 2,853 | exs | Elixir | test/bitpal_api/channels/invoice_channel_test.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | test/bitpal_api/channels/invoice_channel_test.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | test/bitpal_api/channels/invoice_channel_test.exs | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPalApi.InvoiceChannelTest do
use BitPalApi.ChannelCase, async: true
alias BitPal.BackendMock
setup tags do
{:ok, invoice, _stub, _invoice_handler} =
HandlerSubscriberCollector.create_invoice(
required_confirmations: tags[:required_confirmations] || 0,
amount: tags[:amount] ... | 24.808696 | 84 | 0.630214 |
3371420b705751eb3244ffc46a98e857cdfd07f6 | 1,105 | exs | Elixir | test/inmana/restaurant_test.exs | erickmp07/inmana | 580d050d7d90ba80656a4f999060a25b08f8a763 | [
"MIT"
] | null | null | null | test/inmana/restaurant_test.exs | erickmp07/inmana | 580d050d7d90ba80656a4f999060a25b08f8a763 | [
"MIT"
] | null | null | null | test/inmana/restaurant_test.exs | erickmp07/inmana | 580d050d7d90ba80656a4f999060a25b08f8a763 | [
"MIT"
] | null | null | null | defmodule Inmana.RestaurantTest do
use Inmana.DataCase, async: true
alias Ecto.Changeset
alias Inmana.Restaurant
describe "changeset/1" do
test "when all params are valid, returns a valid changeset" do
params = %{name: "Restaurant name", email: "restaurant@restaurant.com"}
... | 29.864865 | 83 | 0.532127 |
33714a001e6a4db34d7b93022f2432996b381119 | 1,661 | ex | Elixir | lib/crit/common.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | lib/crit/common.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | lib/crit/common.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.Common do
# This handles the case of a form for updating a top level structure (such as
# `Animal`) that allows the simultaneous updating *or* insertion of nested
# ("has_many") structures (like `ServiceGap`s). Insertion means filling in
# an initially blank subform. This function is used to rem... | 32.568627 | 79 | 0.692956 |
337163c7386608df98eebb20c280427659b6070b | 285 | exs | Elixir | priv/repo/migrations/20500930144804_create_test_table.exs | morgz/money_sql | 94cfece0ed6d7b7e9d38e5d729f9f67a18a1ce21 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20500930144804_create_test_table.exs | morgz/money_sql | 94cfece0ed6d7b7e9d38e5d729f9f67a18a1ce21 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20500930144804_create_test_table.exs | morgz/money_sql | 94cfece0ed6d7b7e9d38e5d729f9f67a18a1ce21 | [
"Apache-2.0"
] | null | null | null | defmodule Money.Repo.Migrations.CreateMoneyTable do
use Ecto.Migration
def change do
create table(:organizations) do
add :name, :string
add :employee_count, :integer
add :payroll, :money_with_currency
timestamps()
end
end
end
| 21.923077 | 51 | 0.645614 |
3371861d2771371c9838c6f493012ba6c6b5cb23 | 531 | ex | Elixir | lib/reach_web/views/error_view.ex | UBCAnimeClub/buzzer | 39836c664307ababccc3789829549446d81eae96 | [
"MIT"
] | 1 | 2018-06-08T03:20:01.000Z | 2018-06-08T03:20:01.000Z | lib/reach_web/views/error_view.ex | UBCAnimeClub/buzzer | 39836c664307ababccc3789829549446d81eae96 | [
"MIT"
] | 12 | 2018-08-19T20:05:27.000Z | 2022-02-12T15:34:18.000Z | lib/reach_web/views/error_view.ex | UBCAnimeClub/buzzer | 39836c664307ababccc3789829549446d81eae96 | [
"MIT"
] | null | null | null | defmodule ReachWeb.ErrorView do
use ReachWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from
#... | 31.235294 | 83 | 0.717514 |
3371985659039653594f4ae0bfae462d9c044b6c | 61 | ex | Elixir | lib/metro/web/views/layout_view.ex | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | lib/metro/web/views/layout_view.ex | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | lib/metro/web/views/layout_view.ex | fusillicode/metro | 7a7c1b2cfe5423fe1ea5f206157ab70c9db927dd | [
"MIT"
] | null | null | null | defmodule Metro.Web.LayoutView do
use Metro.Web, :view
end
| 15.25 | 33 | 0.770492 |
3371af424cdcf32063448211d40aef52ddbf91a1 | 384 | ex | Elixir | examples/ecto_poll_queue/lib/ecto_poll_queue_example/ocr_book.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 717 | 2015-06-15T19:30:54.000Z | 2022-03-22T06:10:09.000Z | examples/ecto_poll_queue/lib/ecto_poll_queue_example/ocr_book.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 106 | 2015-06-25T05:38:05.000Z | 2021-12-08T23:17:19.000Z | examples/ecto_poll_queue/lib/ecto_poll_queue_example/ocr_book.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 60 | 2015-06-07T00:48:37.000Z | 2022-03-06T08:20:23.000Z | # "Optical Character Recognition"
defmodule EctoPollQueueExample.OCRBook do
alias EctoPollQueueExample.Repo
alias EctoPollQueueExample.Book
def run(primary_keys) do
book = Repo.get_by(Book, primary_keys)
if book.from do
send(book.from, {:ocr_job_ran, primary_keys})
end
if book.should_fai... | 20.210526 | 51 | 0.721354 |
3371b9e45f0059ca5bc7fcf202f71e91a3eca636 | 92 | exs | Elixir | test/knapsack_test.exs | sbwhitehouse/knapsack | 891e3404f029f685dc6fd9f39b7a66b97f886a12 | [
"MIT"
] | null | null | null | test/knapsack_test.exs | sbwhitehouse/knapsack | 891e3404f029f685dc6fd9f39b7a66b97f886a12 | [
"MIT"
] | 1 | 2019-10-17T02:51:10.000Z | 2019-10-17T02:51:10.000Z | test/knapsack_test.exs | sbwhitehouse/knapsack | 891e3404f029f685dc6fd9f39b7a66b97f886a12 | [
"MIT"
] | 3 | 2019-10-17T02:23:40.000Z | 2019-10-17T03:07:09.000Z | defmodule KnapsackTest do
use ExUnit.Case
doctest Knapsack
test "" do
end
end
| 10.222222 | 25 | 0.684783 |
3371c3efac1856d7020442482e8a46a8c60e9a9f | 846 | ex | Elixir | lib/arbejd_q/migrations/v1.ex | xpgdk/arbejd_q | 3fedc326569dc32dce6993ff36b4ca7dafe4c95d | [
"MIT"
] | null | null | null | lib/arbejd_q/migrations/v1.ex | xpgdk/arbejd_q | 3fedc326569dc32dce6993ff36b4ca7dafe4c95d | [
"MIT"
] | null | null | null | lib/arbejd_q/migrations/v1.ex | xpgdk/arbejd_q | 3fedc326569dc32dce6993ff36b4ca7dafe4c95d | [
"MIT"
] | null | null | null | defmodule ArbejdQ.Migrations.V1 do
@moduledoc """
Database migrations used by ArbejdQ version 1.
"""
import Ecto.Migration
def up do
_ = create table(:arbejdq_jobs, primary_key: false) do
add :id, :uuid, primary_key: true
add :queue, :string, size: 255
add :worker_module, :text
a... | 24.882353 | 58 | 0.666667 |
3371c7e789292ab4814e8664e7a0e3628c27cc55 | 1,058 | ex | Elixir | lib/scrawler/services/crawler/parse_logic.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | lib/scrawler/services/crawler/parse_logic.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | lib/scrawler/services/crawler/parse_logic.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | require Logger
defmodule Scrawler.Services.Crawler.ParseLogic do
@moduledoc """
Implements callbacks for Crawlie parser.
"""
@behaviour Crawlie.ParserLogic
alias Scrawler.Utils.Uri
@doc """
Parses page
"""
def parse(_url, body, _options) do
try do
{:ok, Floki.parse(body)}
rescue
... | 19.592593 | 59 | 0.619093 |
3371c858f234e6dcf2e356a3a787bf678f9a7b74 | 3,285 | ex | Elixir | lib/mailroom/inbox/match_utils.ex | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | 15 | 2016-10-03T18:03:29.000Z | 2021-11-26T14:36:14.000Z | lib/mailroom/inbox/match_utils.ex | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | 7 | 2016-11-03T21:51:13.000Z | 2021-12-07T14:45:37.000Z | lib/mailroom/inbox/match_utils.ex | chess4ever/mailroom | 314b5f954453a9c86ff1aeebca4a941124f78cd6 | [
"MIT"
] | 5 | 2016-11-03T21:20:27.000Z | 2021-11-18T13:37:52.000Z | defmodule Mailroom.Inbox.MatchUtils do
alias Mailroom.IMAP.{Envelope, BodyStructure}
def match_recipient(%{recipients: recipients}, pattern) do
match_in_list(recipients, pattern)
end
def match_to(%{to: to}, pattern) do
match_in_list(to, pattern)
end
def match_to(_, _pattern), do: false
def mat... | 26.071429 | 98 | 0.641705 |
3371d5782c5fdceeabfaae9b282b205300e5e038 | 1,471 | ex | Elixir | lib/op_api_web/views/error_helpers.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | 3 | 2019-11-06T23:40:55.000Z | 2020-06-20T22:33:25.000Z | lib/op_api_web/views/error_helpers.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | lib/op_api_web/views/error_helpers.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | defmodule OpApiWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:s... | 32.688889 | 74 | 0.668933 |
3371d59c75bfe626de03d936f5600e5f30eddf33 | 4,481 | exs | Elixir | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/test/$PROJECT_NAME$/accounts/accounts_test.exs | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 54 | 2018-01-24T00:22:57.000Z | 2019-01-15T20:03:52.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/test/$PROJECT_NAME$/accounts/accounts_test.exs | infinitered/mithril | 0bbad29f86c63d9a827dcaaf6fed78a176ab90d7 | [
"MIT"
] | 3 | 2018-02-05T18:00:39.000Z | 2018-05-04T00:05:20.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$/test/$PROJECT_NAME$/accounts/accounts_test.exs | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 3 | 2018-02-15T19:08:23.000Z | 2018-09-28T13:49:27.000Z | <% MixTemplates.ignore_file_and_directory_unless(assigns[:accounts] != nil) %>
defmodule <%= @project_name_camel_case %>.AccountsTest do
use <%= @project_name_camel_case %>.DataCase
import <%= @project_name_camel_case %>.AccountsFactory, only: [
create_user: 1,
create_token: 1,
create_reset_password_to... | 32.23741 | 109 | 0.642044 |
3371d6bb02be0311ab9c67b639f475717cdfc25c | 172 | ex | Elixir | lib/elixir_google_scraper/repo.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | lib/elixir_google_scraper/repo.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | lib/elixir_google_scraper/repo.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | defmodule ElixirGoogleScraper.Repo do
use Ecto.Repo,
otp_app: :elixir_google_scraper,
adapter: Ecto.Adapters.Postgres
use Phoenix.Pagination, per_page: 12
end
| 21.5 | 38 | 0.773256 |
3371e4ccf0bab83c68692e2c78c955f49a8f6851 | 985 | exs | Elixir | config/config.exs | my-flow/raftex | 6be505fbe1625132a933813e0534d414850b9f1d | [
"MIT"
] | 25 | 2015-03-17T01:57:47.000Z | 2022-03-01T18:40:03.000Z | config/config.exs | my-flow/raftex | 6be505fbe1625132a933813e0534d414850b9f1d | [
"MIT"
] | 1 | 2015-06-23T07:40:07.000Z | 2015-06-23T07:40:07.000Z | config/config.exs | my-flow/raftex | 6be505fbe1625132a933813e0534d414850b9f1d | [
"MIT"
] | 6 | 2015-06-23T05:07:34.000Z | 2022-03-01T18:40:10.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the router
config :phoenix, Raftex.Router,
url: [host: "localhost"],
... | 31.774194 | 110 | 0.758376 |
33720ae676c2e183139eda0124a7e89400ddadfb | 6,700 | exs | Elixir | test/trento/application/integration/discovery/policies/host_policy_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | test/trento/application/integration/discovery/policies/host_policy_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | test/trento/application/integration/discovery/policies/host_policy_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.Integration.Discovery.HostPolicyTest do
use ExUnit.Case
use Trento.DataCase
import Trento.Integration.DiscoveryFixturesHelper
alias Trento.Integration.Discovery.HostPolicy
alias Trento.Domain.Commands.{
RegisterHost,
UpdateProvider,
UpdateSlesSubscriptions
}
alias Trento.D... | 35.078534 | 114 | 0.480597 |
33720fba6576b5a9dea2d6de4a26f244c023679e | 177 | ex | Elixir | lib/hl7/2.5.1/datatypes/jcc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/jcc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5.1/datatypes/jcc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5_1.DataTypes.Jcc do
@moduledoc false
use HL7.DataType,
fields: [
job_code: nil,
job_class: nil,
job_description_text: nil
]
end
| 16.090909 | 37 | 0.649718 |
337223839c65977bc3a5706fa480e1fe8221fef7 | 1,086 | ex | Elixir | lib/conduit/content_type/erlang_binary.ex | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | null | null | null | lib/conduit/content_type/erlang_binary.ex | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | null | null | null | lib/conduit/content_type/erlang_binary.ex | log4b/conduit | 5ecf5aa0edd831f54c28d596f1cb2d414fc99c6e | [
"MIT"
] | null | null | null | defmodule Conduit.ContentType.ErlangBinary do
use Conduit.ContentType
@moduledoc """
Handles converting to and from erlang binary.
"""
@doc """
Formats the body to erlang binary.
## Examples
iex> import Conduit.Message
iex> message =
iex> %Conduit.Message{}
iex> |> put_body... | 22.625 | 72 | 0.617864 |
337251354119c70ada27341f52228211c638a2f3 | 1,076 | ex | Elixir | apps/tai/lib/tai/orders/transitions/accept_create.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/orders/transitions/accept_create.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/orders/transitions/accept_create.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.Transitions.AcceptCreate do
@moduledoc """
The create request has been received and accepted by the venue. The result
of the created order will either be returned immediately in the response or
received asynchronously on the connection stream.
"""
use Ecto.Schema
import Ecto.Changese... | 25.023256 | 80 | 0.740706 |
337254b2da08ad28d465e20098db00f9755c4013 | 3,785 | ex | Elixir | lib/assent/strategies/facebook.ex | lmeier/assent | 3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41 | [
"MIT"
] | null | null | null | lib/assent/strategies/facebook.ex | lmeier/assent | 3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41 | [
"MIT"
] | null | null | null | lib/assent/strategies/facebook.ex | lmeier/assent | 3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41 | [
"MIT"
] | null | null | null | defmodule Assent.Strategy.Facebook do
@moduledoc """
Facebook OAuth 2.0 strategy.
The Facebook user endpoint does not provide data on email verification, email
is considered unverified. More here:
https://developers.facebook.com/docs/facebook-login/multiple-providers#postfb1
## Configuration
- `:user_u... | 30.039683 | 90 | 0.625099 |
33728f43d004c0e6bde002a391d3d4272e8de0de | 1,188 | exs | Elixir | test/concentrate/group_filter/vehicle_past_stop_test.exs | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 19 | 2018-01-22T18:39:20.000Z | 2022-02-22T16:15:30.000Z | test/concentrate/group_filter/vehicle_past_stop_test.exs | mbta/concentrate | bae6e05713ed079b7da53867a01dd007861fb656 | [
"MIT"
] | 216 | 2018-01-22T14:22:39.000Z | 2022-03-31T10:30:31.000Z | test/concentrate/group_filter/vehicle_past_stop_test.exs | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 5 | 2018-01-22T14:18:15.000Z | 2021-04-26T18:34:19.000Z | defmodule Concentrate.GroupFilter.VehiclePastStopTest do
@moduledoc false
use ExUnit.Case, async: true
import Concentrate.GroupFilter.VehiclePastStop
alias Concentrate.{TripDescriptor, VehiclePosition, StopTimeUpdate}
describe "filter/1" do
test "removes StopTimeUpdates if they come after the vehicle's s... | 30.461538 | 92 | 0.659933 |
3372b647966fa10902db5bd2d96f198bf88df225 | 2,639 | exs | Elixir | test/unit/rule_test.exs | acac99/credo-module-function-order-rule | a60a8641e682dde1517bc38df37c91bb23359b2b | [
"MIT"
] | 1 | 2019-09-19T10:29:24.000Z | 2019-09-19T10:29:24.000Z | test/unit/rule_test.exs | acac99/credo-module-function-ordering | a60a8641e682dde1517bc38df37c91bb23359b2b | [
"MIT"
] | null | null | null | test/unit/rule_test.exs | acac99/credo-module-function-ordering | a60a8641e682dde1517bc38df37c91bb23359b2b | [
"MIT"
] | null | null | null | defmodule Test.Unit.CredoModuleFunctionOrdering.Rule do
use CredoModuleFunctionOrdering.TestHelper
@described_check CredoModuleFunctionOrdering.Rule
setup_all do
import Supervisor.Spec, warn: false
children = [
worker(Credo.CLI.Output.Shell, []),
worker(Credo.Service.SourceFileScopes, []),
... | 26.928571 | 96 | 0.608185 |
3372cd998ebcb907788e8228e5d702aff75ef19a | 413 | ex | Elixir | lib/task_bunny/partition/state_persister/stub.ex | jnylen/task_bunny | 72f014960b71b3e4b2685f9296c28819cd85929f | [
"MIT"
] | null | null | null | lib/task_bunny/partition/state_persister/stub.ex | jnylen/task_bunny | 72f014960b71b3e4b2685f9296c28819cd85929f | [
"MIT"
] | 55 | 2020-05-12T05:18:41.000Z | 2022-03-24T04:04:17.000Z | lib/task_bunny/partition/state_persister/stub.ex | jnylen/task_bunny | 72f014960b71b3e4b2685f9296c28819cd85929f | [
"MIT"
] | null | null | null | defmodule TaskBunny.Partition.StatePersister.Stub do
@moduledoc """
Stub module for `TaskBunny.Partition` state persistence.
This is the default implementation, which **does not** persist any
global partition state.
"""
alias TaskBunny.Partition.StatePersister
@behaviour StatePersister
def init(), do... | 20.65 | 68 | 0.72155 |
3372d13cf54d915f888238728cc73c541858ea75 | 27,176 | ex | Elixir | lib/generated/create_topics.ex | kevint-simplifi/kayrock | 9c88e99ec913728107ec99f9af94dc1d25e0e0d8 | [
"MIT"
] | 24 | 2019-06-26T22:08:13.000Z | 2022-01-27T00:10:41.000Z | lib/generated/create_topics.ex | kevint-simplifi/kayrock | 9c88e99ec913728107ec99f9af94dc1d25e0e0d8 | [
"MIT"
] | 10 | 2020-04-10T07:48:53.000Z | 2021-03-26T10:50:25.000Z | lib/generated/create_topics.ex | kevint-simplifi/kayrock | 9c88e99ec913728107ec99f9af94dc1d25e0e0d8 | [
"MIT"
] | 11 | 2019-10-30T12:53:09.000Z | 2022-03-09T23:16:42.000Z | defmodule(Kayrock.CreateTopics) do
@api :create_topics
@moduledoc "Kayrock-generated module for the Kafka `#{@api}` API\n"
_ = " THIS CODE IS GENERATED BY KAYROCK"
(
@vmin 0
@vmax 2
)
defmodule(V0.Request) do
@vsn 0
@api :create_topics
@schema create_topic_requests:
{:arr... | 33.222494 | 130 | 0.527561 |
3372db23d0062f7cb5d139b7e77fd6663f1036b7 | 3,306 | ex | Elixir | lib/oli_web.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | lib/oli_web.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | lib/oli_web.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | defmodule OliWeb 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 OliWeb, :controller
use OliWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep... | 21.607843 | 79 | 0.660315 |
3372e81a59718e2c53af318bf1665809c53ccbee | 15,085 | ex | Elixir | apps/gitgud_web/lib/gitgud_web/live/commit_diff_live.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | apps/gitgud_web/lib/gitgud_web/live/commit_diff_live.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | apps/gitgud_web/lib/gitgud_web/live/commit_diff_live.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | defmodule GitGud.Web.CommitDiffLive do
@moduledoc """
Live view responsible for rendering diffs between Git commits.
"""
use GitGud.Web, :live_view
alias GitRekt.GitRepo
alias GitRekt.GitAgent
alias GitGud.DB
alias GitGud.DBQueryable
alias GitGud.User
alias GitGud.CommitLineReview
alias GitGud... | 41.671271 | 219 | 0.695923 |
33732bdcdfa5c3a82fbdc80a2f101347a26b6829 | 967 | ex | Elixir | lib/digoc/domain/record.ex | bunnylushington/digoc | a4acb7798cd20a3741dafa12ccd9a2de46a83012 | [
"MIT"
] | 1 | 2019-08-09T05:35:04.000Z | 2019-08-09T05:35:04.000Z | lib/digoc/domain/record.ex | bunnylushington/digoc | a4acb7798cd20a3741dafa12ccd9a2de46a83012 | [
"MIT"
] | null | null | null | lib/digoc/domain/record.ex | bunnylushington/digoc | a4acb7798cd20a3741dafa12ccd9a2de46a83012 | [
"MIT"
] | null | null | null | defmodule DigOc.Domain.Record do
import DigOc, only: [response: 1]
import DigOc.Request, only: [postreq: 2, putreq: 2, delreq: 1]
@doc """
Create a new domain record.
"""
def new(domain, params), do: postreq("domains/#{ domain }/records", params)
@doc """
Like `new/2` but return only the response bo... | 22.488372 | 77 | 0.615305 |
33733ac577a09a6701b42b375a989fc9e0d7eb8f | 1,621 | exs | Elixir | test/proof_test.exs | meivantodorov/merkle_patricia_tree | 97eef4b3be0d9b4c2ff8c1706d54dafedab2ea1a | [
"MIT"
] | null | null | null | test/proof_test.exs | meivantodorov/merkle_patricia_tree | 97eef4b3be0d9b4c2ff8c1706d54dafedab2ea1a | [
"MIT"
] | null | null | null | test/proof_test.exs | meivantodorov/merkle_patricia_tree | 97eef4b3be0d9b4c2ff8c1706d54dafedab2ea1a | [
"MIT"
] | 1 | 2018-04-17T16:17:15.000Z | 2018-04-17T16:17:15.000Z | defmodule MerklePatriciaTreeProofTest do
use ExUnit.Case
alias MerklePatriciaTree.Trie
alias MerklePatriciaTree.DB.LevelDB
alias MerklePatriciaTree.Proof
@tag :proof_test_success
@tag timeout: 30_000_000
test "Proof Success Tests" do
{trie, list} = create_random_trie_test()
Enum.each(list, fn {... | 30.584906 | 93 | 0.658236 |
33734fc50c18029022485e1ea8fb315f4630a90a | 711 | ex | Elixir | lib/bankapi_web/gettext.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | null | null | null | lib/bankapi_web/gettext.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | 24 | 2021-03-26T17:42:17.000Z | 2021-03-31T11:47:17.000Z | lib/bankapi_web/gettext.ex | guibes/bankapi | df43b30e7a845d0509b17c1086c70ab651b97c42 | [
"MIT"
] | 1 | 2021-03-26T17:49:53.000Z | 2021-03-26T17:49:53.000Z | defmodule BankapiWeb.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 BankapiWeb.Gettext
# Simple translation
gettext("Here is t... | 28.44 | 72 | 0.677918 |
3373622c1f902e814e034a733a3b78fb903a617e | 512 | ex | Elixir | web/controllers/plugs/user_session.ex | cadorfo/SchoolAgenda | 5dd99f3482f103f7a3ac5ef83a07a36d15bbe17d | [
"MIT"
] | null | null | null | web/controllers/plugs/user_session.ex | cadorfo/SchoolAgenda | 5dd99f3482f103f7a3ac5ef83a07a36d15bbe17d | [
"MIT"
] | null | null | null | web/controllers/plugs/user_session.ex | cadorfo/SchoolAgenda | 5dd99f3482f103f7a3ac5ef83a07a36d15bbe17d | [
"MIT"
] | null | null | null | defmodule SchoolAgenda.Plugs.UserSession do
import Plug.Conn
alias SchoolAgenda.User
alias SchoolAgenda.Repo
def init(options), do: options
def call(conn, _opts) do
id = conn |> get_session(:user_id)
if id do
conn = login_user(conn,id)
end
conn
end
def login_user(conn, user_id) do... | 18.962963 | 45 | 0.634766 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.