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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2db92a1a8efa04ec101622619af48d91214ef78 | 1,956 | exs | Elixir | apps/flair/mix.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/flair/mix.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/flair/mix.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | defmodule Flair.MixProject do
use Mix.Project
def project do
[
app: :flair,
version: "0.3.3",
elixir: "~> 1.8",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
start_permanent: Mix.env() == ... | 27.549296 | 88 | 0.517382 |
b2db9d7edee6228e2745668cae8353a9a4f400d9 | 1,582 | exs | Elixir | apps/gitgud_web/mix.exs | almightycouch/gitgud | 21cf81ff29e0ec1601bb96e1621237099d0e677a | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud_web/mix.exs | almightycouch/gitgud | 21cf81ff29e0ec1601bb96e1621237099d0e677a | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud_web/mix.exs | almightycouch/gitgud | 21cf81ff29e0ec1601bb96e1621237099d0e677a | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.Web.Mixfile do
use Mix.Project
def project do
[
app: :gitgud_web,
version: "0.3.8",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_paths: elixirc_... | 23.969697 | 80 | 0.5 |
b2dba3df7baeeceac97420a76d983f9f20c5cc44 | 1,184 | ex | Elixir | lib/licensir/license.ex | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 70 | 2017-12-12T17:12:22.000Z | 2022-03-28T12:05:32.000Z | lib/licensir/license.ex | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 24 | 2017-12-05T12:15:42.000Z | 2021-08-01T15:51:32.000Z | lib/licensir/license.ex | fhunleth/licensir | 3d61fe335dd232cd8af44ecd8dc412273ef7f37b | [
"MIT"
] | 22 | 2018-03-13T20:56:41.000Z | 2021-07-15T21:59:07.000Z | defmodule Licensir.License do
@moduledoc """
Stores license information for a dependency.
"""
@doc """
The struct that keeps information about a dependency's license.
It contains:
* `app` - the depedency's name as an atom
* `version` - the version of the dependency being used
* `license` - the... | 30.358974 | 94 | 0.559122 |
b2dba7696e2f83f239c1baeda5b729080b23a884 | 10,079 | ex | Elixir | lib/ecto/query/builder/select.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/select.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/select.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [apply: 2]
defmodule Ecto.Query.Builder.Select do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Escapes a select.
It allows tuples, lists and variables at the top level. Inside the
tuples and lists query expressions are allowed.
## Examples
iex> escape({1, 2}, [], _... | 31.996825 | 116 | 0.589543 |
b2dba792da2123c8d0105b40c27d17c9a3928b71 | 2,025 | exs | Elixir | mix.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | mix.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | mix.exs | chargio/reservation_book_phoenix | 87f07e390f0da2bed162d55b26d3c73c0f3aea4a | [
"MIT"
] | null | null | null | defmodule ReservationBook.MixProject do
use Mix.Project
def project do
[
app: :reservation_book,
version: "0.1.1",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
alias... | 29.347826 | 84 | 0.577284 |
b2dba80ebdefe248cf3aa7f6e524236388fdc070 | 464 | exs | Elixir | config/test.exs | jdangerx/telepath | 75314db05dd97ea86b5a828ab673fed33ecad5e1 | [
"MIT"
] | null | null | null | config/test.exs | jdangerx/telepath | 75314db05dd97ea86b5a828ab673fed33ecad5e1 | [
"MIT"
] | null | null | null | config/test.exs | jdangerx/telepath | 75314db05dd97ea86b5a828ab673fed33ecad5e1 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :telepath, TelepathWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :telepath, Telepat... | 24.421053 | 56 | 0.734914 |
b2dbdbce579617416a6768aceb48c7405bf27221 | 3,152 | ex | Elixir | platform/target/bootstrap/configurator/configurator.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | platform/target/bootstrap/configurator/configurator.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | platform/target/bootstrap/configurator/configurator.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | defmodule Farmbot.Target.Bootstrap.Configurator do
@moduledoc """
This init module is used to bring up initial configuration.
If it can't find a configuration it will bring up a captive portal for a device to connect to.
"""
@behaviour Farmbot.System.Init
use Farmbot.Logger
alias Farmbot.System.ConfigSto... | 30.307692 | 105 | 0.688452 |
b2dc09df54e13dcb16215fa94303a470e73e2e85 | 2,270 | exs | Elixir | test/test_helper.exs | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | alias Instream.Admin.Database
alias Instream.TestHelpers.Connections
# grab ALL helpers and start connections
File.ls!("test/helpers/connections")
|> Enum.filter(&String.contains?(&1, "connection"))
|> Enum.reject(&(&1 == "init_connection.ex"))
|> Enum.map(fn helper ->
conn =
helper
|> String.replace(".ex", ... | 27.349398 | 89 | 0.673568 |
b2dc11805829210bfa9595bc44e501690e9949c8 | 2,040 | exs | Elixir | mix.exs | Sqlite-Ecto/elixir_sqlite | df7e04bb7f21aae83ac4b5d6ed60d8a960277694 | [
"Apache-2.0"
] | 1 | 2018-11-11T06:32:13.000Z | 2018-11-11T06:32:13.000Z | mix.exs | Sqlite-Ecto/esqlite | df7e04bb7f21aae83ac4b5d6ed60d8a960277694 | [
"Apache-2.0"
] | 1 | 2018-08-01T18:57:57.000Z | 2018-08-01T18:57:57.000Z | mix.exs | Sqlite-Ecto/esqlite | df7e04bb7f21aae83ac4b5d6ed60d8a960277694 | [
"Apache-2.0"
] | 1 | 2018-04-18T18:52:40.000Z | 2018-04-18T18:52:40.000Z | defmodule Sqlite.MixProject do
use Mix.Project
def project do
[
app: :sqlite,
version: "1.1.0",
elixir: "~> 1.4",
compilers: [:elixir_make] ++ Mix.compilers(),
make_clean: ["clean"],
make_env: make_env(),
package: package(),
description: "Elixir NIF for Sqlite3."... | 25.185185 | 76 | 0.535784 |
b2dc5a41fbc7ddb2dd7b6347223ec8cfa47f373a | 1,868 | exs | Elixir | test/orders/create_or_update_test.exs | LuizFerK/Exlivery | 22c91a2ae71506f694b7d7213bf8343b9201cce1 | [
"MIT"
] | null | null | null | test/orders/create_or_update_test.exs | LuizFerK/Exlivery | 22c91a2ae71506f694b7d7213bf8343b9201cce1 | [
"MIT"
] | null | null | null | test/orders/create_or_update_test.exs | LuizFerK/Exlivery | 22c91a2ae71506f694b7d7213bf8343b9201cce1 | [
"MIT"
] | null | null | null | defmodule Exlivery.Orders.CreateOrUpdateTest do
use ExUnit.Case
import Exlivery.Factory
alias Exlivery.Orders.CreateOrUpdate
alias Exlivery.Users.Agent, as: UserAgent
describe "call/1" do
setup do
Exlivery.start_agents()
cpf = "12345678900"
user = build(:user, cpf: cpf)
UserAge... | 24.578947 | 101 | 0.618844 |
b2dc840dc1db9e7e31011ab525f0d5351114fb5d | 1,829 | ex | Elixir | lib/teiserver/agents/idle_agent_server.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/teiserver/agents/idle_agent_server.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/teiserver/agents/idle_agent_server.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | defmodule Teiserver.Agents.IdleAgentServer do
@doc """
Logs on, waits around and sends a ping every @tick_ms
Also requests news and "new login" type information 5 seconds after login and every @info_ms after that
"""
use GenServer
alias Teiserver.Agents.AgentLib
@tick_ms 20000
@info_ms 60000
def han... | 24.065789 | 105 | 0.647895 |
b2dc85cabc31bff57e6b08ce4773c8b5281b2eea | 1,219 | ex | Elixir | lib/elixir_feed_parser.ex | jmn/elixir-feed-parser | 88ab8466036d8a9dc76e67444eb43e04bd6546ba | [
"MIT"
] | 51 | 2015-11-06T09:42:37.000Z | 2022-01-26T06:32:42.000Z | lib/elixir_feed_parser.ex | jmn/elixir-feed-parser | 88ab8466036d8a9dc76e67444eb43e04bd6546ba | [
"MIT"
] | 12 | 2015-11-06T16:11:42.000Z | 2021-02-19T07:03:09.000Z | lib/elixir_feed_parser.ex | jmn/elixir-feed-parser | 88ab8466036d8a9dc76e67444eb43e04bd6546ba | [
"MIT"
] | 16 | 2017-03-26T22:58:26.000Z | 2022-02-02T02:35:48.000Z | defmodule ElixirFeedParser do
@moduledoc false
alias ElixirFeedParser.Parsers.Atom
alias ElixirFeedParser.Parsers.FeedburnerAtom
alias ElixirFeedParser.Parsers.FeedburnerRSS2
alias ElixirFeedParser.Parsers.GoogleDocsAtom
alias ElixirFeedParser.Parsers.ITunesRSS2
alias ElixirFeedParser.Parsers.RSS2
alia... | 29.02381 | 66 | 0.684167 |
b2dcbf7a5d66a7a3acea29b3c06a0fe77ab17cc7 | 584 | exs | Elixir | 30daysofcode/day01_data_types.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | 2 | 2016-09-20T11:56:33.000Z | 2016-10-20T20:11:04.000Z | 30daysofcode/day01_data_types.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | 30daysofcode/day01_data_types.exs | nathanchere/HackerRank_Elixir | 607e4ae10d94edb20296c8979179648af4af3ca6 | [
"MIT"
] | null | null | null | # HackerRank "30 Days of Code" - Day 01 - Data Types
defmodule Solution do
defp add_int(a,b), do: a + b
defp add_double(a,b), do: trunc((a + b) * 10) / 10
def main() do
i = 4
d = 4.0
s = "HackerRank "
result_1 = IO.gets("")
|> String.strip #Because of trailing '\n'
|> String.to_intege... | 17.176471 | 52 | 0.575342 |
b2dcc1f783f0083bb44a115f8220315c141b7f63 | 655 | exs | Elixir | day23/test/day23_test.exs | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | 10 | 2021-12-01T08:49:00.000Z | 2022-03-24T13:24:50.000Z | day23/test/day23_test.exs | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | null | null | null | day23/test/day23_test.exs | bjorng/advent-of-code-2021 | 82c22dfa0ba7e9134e39b9dbc95227bb99f62c8d | [
"Apache-2.0"
] | 1 | 2021-12-16T07:09:11.000Z | 2021-12-16T07:09:11.000Z | defmodule Day23Test do
use ExUnit.Case
doctest Day23
test "part 1 with example" do
assert Day23.part1(example()) == 12521
end
test "part 1 with my input data" do
assert Day23.part1(input()) == 10526
end
test "part 2 with example" do
assert Day23.part2(example()) == 44169
end
test "part... | 17.702703 | 42 | 0.546565 |
b2dcecbd7c0ab0e086c6104af29e03eceeaabd6a | 59 | ex | Elixir | lib/exlog/web/views/page_view.ex | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | lib/exlog/web/views/page_view.ex | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | lib/exlog/web/views/page_view.ex | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | defmodule Exlog.Web.PageView do
use Exlog.Web, :view
end
| 14.75 | 31 | 0.762712 |
b2dcf02d46e001460983d2138240f69e3b95da3a | 1,319 | ex | Elixir | lib/issuehub/formatter.ex | thebigredgeek/issuehub | 953f8fe36bebf7a2d58d2c387d682446681f06c8 | [
"MIT"
] | null | null | null | lib/issuehub/formatter.ex | thebigredgeek/issuehub | 953f8fe36bebf7a2d58d2c387d682446681f06c8 | [
"MIT"
] | null | null | null | lib/issuehub/formatter.ex | thebigredgeek/issuehub | 953f8fe36bebf7a2d58d2c387d682446681f06c8 | [
"MIT"
] | null | null | null | defmodule Issuehub.Formatter do
import Enum, only: [ each: 2,map: 2, map_join: 3, max: 1 ]
def print_table_for_columns(rows, headers) do
with data_by_columns = split_into_columns(rows, headers),
column_widths = widths_of(data_by_columns),
format = format_for(column_widths)
... | 27.479167 | 78 | 0.665656 |
b2dcf443a6cefe24e33de3166af6b85792b2b608 | 283 | ex | Elixir | lib/web/controllers/chat_controller.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/web/controllers/chat_controller.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/web/controllers/chat_controller.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.ChatController do
use Web, :controller
alias GrapevineData.Channels
def index(conn, _params) do
conn
|> assign(:channels, Channels.all())
|> assign(:title, "Grapevine Chat")
|> put_layout("fullscreen.html")
|> render("index.html")
end
end
| 20.214286 | 40 | 0.667845 |
b2dd33afc6de5dfb0f1954f905777ffb69742e00 | 2,718 | exs | Elixir | apps/theta_web/test/theta_web/controllers/user_controller_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta_web/test/theta_web/controllers/user_controller_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta_web/test/theta_web/controllers/user_controller_test.exs | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule ThetaWeb.UserControllerTest do
use ThetaWeb.ConnCase
alias Theta.Account
@create_attrs %{name: "some name", username: "some username"}
@update_attrs %{name: "some updated name", username: "some updated username"}
@invalid_attrs %{name: nil, username: nil}
def fixture(:user) do
{:ok, user} =... | 30.2 | 83 | 0.65011 |
b2dd3d2f972633de73a66a3ff553bd81bc3d9680 | 878 | ex | Elixir | lib/full_stackory_slack_web/controllers/stripe/customer_controller.ex | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | null | null | null | lib/full_stackory_slack_web/controllers/stripe/customer_controller.ex | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | 2 | 2021-03-10T06:19:38.000Z | 2021-05-11T02:11:14.000Z | lib/full_stackory_slack_web/controllers/stripe/customer_controller.ex | full-stackory/full_stackory_slack | a58f73248a91248554548187ab184e7e0b3f3b23 | [
"Apache-2.0"
] | null | null | null | defmodule FullStackorySlackWeb.Stripe.CustomerController do
@moduledoc """
Controller that handles webhook POST requests from Stripe that manipulate the
Customer domain.
"""
use FullStackorySlackWeb, :controller
alias FullStackorySlack.Ecommerce.Stripe.Customer
@doc """
Handle all supported customer a... | 28.322581 | 79 | 0.707289 |
b2dd41d8c1969970dbefcd6b69d0c5ac832823a9 | 3,852 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_test_case.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_test_case.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_test_case.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... | 48.759494 | 338 | 0.725597 |
b2dd4efa7adb6d1c25a39ba9b7a91a2ca3a9906a | 7,101 | exs | Elixir | .credo.exs | klacointe/meilisearch-elixir | cc6000088e89d093edad4db2e4b98167a402bb76 | [
"MIT"
] | 25 | 2020-05-20T09:23:27.000Z | 2022-03-13T19:14:16.000Z | .credo.exs | klacointe/meilisearch-elixir | cc6000088e89d093edad4db2e4b98167a402bb76 | [
"MIT"
] | 7 | 2020-08-20T13:02:00.000Z | 2022-03-25T17:04:49.000Z | .credo.exs | klacointe/meilisearch-elixir | cc6000088e89d093edad4db2e4b98167a402bb76 | [
"MIT"
] | 10 | 2020-07-05T18:47:05.000Z | 2022-03-17T10:10:34.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.177419 | 97 | 0.609773 |
b2dda4662500e143d35789130c533c9f84f94de5 | 965 | ex | Elixir | test/support/channel_case.ex | cogini/elixir-deploy-template | eebe9e335ebbc54ef9388faf50c6fd64936a85aa | [
"MIT"
] | 82 | 2018-01-08T16:57:13.000Z | 2021-12-25T07:34:21.000Z | test/support/channel_case.ex | cogini/elixir-deploy-template | eebe9e335ebbc54ef9388faf50c6fd64936a85aa | [
"MIT"
] | 8 | 2018-05-21T10:31:27.000Z | 2018-11-25T07:17:56.000Z | test/support/channel_case.ex | cogini/elixir-deploy-template | eebe9e335ebbc54ef9388faf50c6fd64936a85aa | [
"MIT"
] | 15 | 2018-05-21T10:18:16.000Z | 2021-03-30T17:14:40.000Z | defmodule DeployTemplateWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case inter... | 25.394737 | 76 | 0.724352 |
b2ddb3d09dcd56dd96657953fc7d25face3c46e5 | 5,034 | ex | Elixir | lib/bamboo/adapters/send_grid_helper.ex | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | lib/bamboo/adapters/send_grid_helper.ex | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | lib/bamboo/adapters/send_grid_helper.ex | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | defmodule Bamboo.SendGridHelper do
@moduledoc """
Functions for using features specific to Sendgrid.
## Example
email
|> with_template("80509523-83de-42b6-a2bf-54b7513bd2aa")
|> substitute("%name%", "Jon Snow")
|> substitute("%location%", "Westeros")
"""
alias Bamboo.Email
@field... | 27.508197 | 100 | 0.681168 |
b2ddc47af2732e082364e2590b98df01b2012f3c | 2,099 | exs | Elixir | test/purple/tags_test.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | test/purple/tags_test.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | test/purple/tags_test.exs | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | defmodule Purple.TagsTest do
use Purple.DataCase
alias Purple.Tags
alias Purple.Tags.Tag
describe "tags" do
test "extract_tags_from_markdown\1" do
assert Tags.extract_tags_from_markdown("#invalid\n```") == []
result =
Tags.extract_tags_from_markdown(~s"""
# header #header1
... | 30.42029 | 132 | 0.549309 |
b2ddda11cf0813447182b0662ac7625e722d6a5f | 469 | exs | Elixir | test/types/any_test.exs | gmartsenkov/dry_validation | 84ac374c724aed7fe35eb642bf3a79e8959b19f6 | [
"MIT"
] | 5 | 2021-02-21T15:07:45.000Z | 2021-11-14T19:40:10.000Z | test/types/any_test.exs | gmartsenkov/dry_validation | 84ac374c724aed7fe35eb642bf3a79e8959b19f6 | [
"MIT"
] | 1 | 2021-02-21T19:27:16.000Z | 2021-02-21T19:27:16.000Z | test/types/any_test.exs | gmartsenkov/dry_validation | 84ac374c724aed7fe35eb642bf3a79e8959b19f6 | [
"MIT"
] | null | null | null | defmodule DryValidation.Types.AnyTest do
use ExSpec
alias DryValidation.Types
describe "cast" do
it "returns the same value it was passed" do
assert Types.Any.cast("text") == "text"
assert Types.Any.cast(5) == 5
assert Types.Any.cast(5.5) == 5.5
end
end
describe "valid" do
it ... | 21.318182 | 48 | 0.637527 |
b2dde9904ef42ce6af4ac66e1f62fd37e62cb793 | 290 | ex | Elixir | lib/rfx/edit/module/rename_module.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | null | null | null | lib/rfx/edit/module/rename_module.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | null | null | null | lib/rfx/edit/module/rename_module.ex | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | null | null | null | defmodule Rfx.Edit.Module.RenameModule do
@moduledoc """
Rename module.
"""
@behaviour Rfx.Edit
@impl true
@doc """
Rename Module
"""
def edit(input_source, new_name: new_name, old_name: old_name) do
input_source
|> String.replace(old_name, new_name)
end
end
| 16.111111 | 67 | 0.675862 |
b2de3cb72fdab0f6d86a2f2dc2482df150e83754 | 1,215 | ex | Elixir | test/support/examples/requests.ex | mitchellhenke/blue_bird | bbf381aedfd1bc8ecc08c8bf9f9f8191ba06099f | [
"MIT"
] | null | null | null | test/support/examples/requests.ex | mitchellhenke/blue_bird | bbf381aedfd1bc8ecc08c8bf9f9f8191ba06099f | [
"MIT"
] | null | null | null | test/support/examples/requests.ex | mitchellhenke/blue_bird | bbf381aedfd1bc8ecc08c8bf9f9f8191ba06099f | [
"MIT"
] | 1 | 2019-05-16T19:43:04.000Z | 2019-05-16T19:43:04.000Z | defmodule BlueBird.Test.Support.Examples.Requests do
@moduledoc false
alias BlueBird.{ApiDoc, Request, Response, Route}
def api_doc do
%ApiDoc{
title: "Trendy API",
host: "https://youarguelikeaninformer.socrates",
routes: [
%Route{
method: "GET",
path: "/request... | 19.918033 | 65 | 0.469959 |
b2de422a5ecc1e11f2affdf2ca152b6813432529 | 220 | exs | Elixir | priv/repo/migrations/20170903052939_create_authors.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | priv/repo/migrations/20170903052939_create_authors.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | priv/repo/migrations/20170903052939_create_authors.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | defmodule Awesome.Repo.Migrations.CreateAuthors do
use Ecto.Migration
def change do
create table(:authors) do
add :user_id, references(:users), on_delete: :delete_all
timestamps()
end
end
end
| 18.333333 | 62 | 0.704545 |
b2de65108639866237637467c6d666852c6a4669 | 1,463 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/replace_all_text_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/docs/lib/google_api/docs/v1/model/replace_all_text_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/docs/lib/google_api/docs/v1/model/replace_all_text_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... | 31.12766 | 125 | 0.742994 |
b2debb586e0f1d258703faaeb20d27ac9137675c | 1,554 | ex | Elixir | test/support/data_case.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | test/support/data_case.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | test/support/data_case.ex | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test ru... | 25.9 | 77 | 0.68018 |
b2dec139ec29af7841bb2af553ed4ec66b6d6d88 | 57 | ex | Elixir | lib/mibli_web/views/page_view.ex | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | lib/mibli_web/views/page_view.ex | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | lib/mibli_web/views/page_view.ex | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | defmodule MibliWeb.PageView do
use MibliWeb, :view
end
| 14.25 | 30 | 0.789474 |
b2dedf010f22cae32b4cd70f00886355dbc918b0 | 1,135 | exs | Elixir | config/config.exs | ramonh/twilio-elixir | 2c5b78e8dc7d892a09f8f1e084308350de9cd125 | [
"MIT"
] | null | null | null | config/config.exs | ramonh/twilio-elixir | 2c5b78e8dc7d892a09f8f1e084308350de9cd125 | [
"MIT"
] | null | null | null | config/config.exs | ramonh/twilio-elixir | 2c5b78e8dc7d892a09f8f1e084308350de9cd125 | [
"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.612903 | 73 | 0.754185 |
b2deffffb67fe33868f1504d0513a3c2cac81e5f | 1,426 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/comment_snippet_author_channel_id.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/comment_snippet_author_channel_id.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/comment_snippet_author_channel_id.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.340426 | 88 | 0.738429 |
b2df2095ad5ff0adc7e921b75ab8ed1bbbd1b4e5 | 1,687 | ex | Elixir | lib/membrane_dashboard_web/endpoint.ex | membraneframework/membrane_dashboard | e9237bcd74a13092af1aae5f3db719a5765df881 | [
"Apache-1.1"
] | 4 | 2021-06-09T13:33:22.000Z | 2022-01-29T12:51:54.000Z | lib/membrane_dashboard_web/endpoint.ex | membraneframework/membrane_dashboard | e9237bcd74a13092af1aae5f3db719a5765df881 | [
"Apache-1.1"
] | 15 | 2021-06-12T22:23:58.000Z | 2022-01-10T09:06:12.000Z | lib/membrane_dashboard_web/endpoint.ex | membraneframework/membrane_dashboard | e9237bcd74a13092af1aae5f3db719a5765df881 | [
"Apache-1.1"
] | null | null | null | defmodule Membrane.DashboardWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :membrane_dashboard
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie... | 30.672727 | 97 | 0.73029 |
b2df236d75afbabc279fa6764f101cf69a2af49d | 1,133 | exs | Elixir | solucoes/desafio_01/mschonfinkel/config/config.exs | felipsimoes/elixir-study-group | 34af61c29cf3b98df1a3edfa7eab83788eeef8cd | [
"MIT"
] | 32 | 2017-12-13T15:37:12.000Z | 2021-03-08T13:37:40.000Z | solucoes/desafio_01/mschonfinkel/config/config.exs | felipsimoes/elixir-study-group | 34af61c29cf3b98df1a3edfa7eab83788eeef8cd | [
"MIT"
] | 7 | 2018-03-01T09:37:30.000Z | 2018-08-29T00:16:12.000Z | solucoes/desafio_01/mschonfinkel/config/config.exs | felipsimoes/elixir-study-group | 34af61c29cf3b98df1a3edfa7eab83788eeef8cd | [
"MIT"
] | 18 | 2017-12-29T23:56:35.000Z | 2019-01-23T17:44:59.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.548387 | 73 | 0.753751 |
b2df93af02413fbdfbd9908a56db1d18325691fc | 619 | exs | Elixir | config/dev.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 1 | 2020-07-02T19:17:09.000Z | 2020-07-02T19:17:09.000Z | config/dev.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 19 | 2020-03-03T18:36:30.000Z | 2022-02-20T21:57:34.000Z | config/dev.exs | gtriisd/lowendinsight-get | c72a265783215e7f42fe28e18a3d1dd47d1278fa | [
"BSD-3-Clause"
] | 2 | 2020-05-14T16:34:14.000Z | 2020-12-16T09:13:42.000Z | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
use Mix.Config
config :lowendinsight_get,
check_repo_size?: String.to_atom(System.get_env("LEI_CHECK_REPO_SIZE") || "fal... | 41.266667 | 85 | 0.747981 |
b2df9bfd38dce3a8bf4041af72473de85881f8a2 | 69 | exs | Elixir | test/opennodex_test.exs | bfolkens/opennodex | 55528a557515af31c38fc9732ae6241fbc279b3d | [
"MIT"
] | 2 | 2019-01-13T01:02:36.000Z | 2019-06-21T07:55:19.000Z | test/opennodex_test.exs | bfolkens/opennodex | 55528a557515af31c38fc9732ae6241fbc279b3d | [
"MIT"
] | 3 | 2019-03-25T17:24:13.000Z | 2020-02-11T05:24:04.000Z | test/opennodex_test.exs | bfolkens/opennodex | 55528a557515af31c38fc9732ae6241fbc279b3d | [
"MIT"
] | null | null | null | defmodule OpenNodexTest do
use ExUnit.Case
doctest OpenNodex
end
| 13.8 | 26 | 0.811594 |
b2dfbe99c8e5915211e1d08ebe0878755db0f6fa | 497 | ex | Elixir | lib/example_web/auth/login.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | 1 | 2020-12-18T17:23:31.000Z | 2020-12-18T17:23:31.000Z | lib/example_web/auth/login.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | null | null | null | lib/example_web/auth/login.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | null | null | null | defmodule ExampleWeb.Auth.Login do
@moduledoc """
Custom login module that checks if the user is confirmed before
allowing the user to log in.
"""
use Phauxth.Login.Base
alias Example.Accounts
@impl true
def authenticate(%{"password" => password} = params, _, opts) do
case Accounts.get_by(params)... | 24.85 | 66 | 0.67002 |
b2dfc1032f0bc3a2fb02b6966fa123b33372c9d1 | 10,934 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/serviceaccountkeys.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/serviceaccountkeys.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/serviceaccountkeys.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... | 44.628571 | 347 | 0.637187 |
b2dfc88ea6af6d79e644b1be3420bc89b9860e61 | 2,750 | exs | Elixir | elixir/test/homework/companies_test.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/test/homework/companies_test.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/test/homework/companies_test.exs | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | defmodule Homework.CompaniesTest do
use Homework.DataCase
alias Homework.Companies
describe "companies" do
alias Homework.Companies.Company
@valid_attrs %{name: "some name", credit_line: 100}
@update_attrs %{
name: "some updated name",
credit_line: 200
}
@invalid_attrs %{name: n... | 32.738095 | 102 | 0.692727 |
b2dfd609655c1cf29d8c1e8ed6be1bf295bd665b | 824 | ex | Elixir | apps/re/lib/favorites/favorites.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/lib/favorites/favorites.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/favorites/favorites.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Favorites do
@moduledoc """
Context for favorites.
"""
@behaviour Bodyguard.Policy
alias Re.{
Favorite,
Repo
}
defdelegate authorize(action, user, params), to: Re.Favorites.Policy
def data(params), do: Dataloader.Ecto.new(Re.Repo, query: &query/2, default_params: params)
def ... | 21.684211 | 93 | 0.663835 |
b2dfdd01a58bc96bdf0e03fd907b72ee405d0f25 | 321 | ex | Elixir | lib/tgdb/resources/publisher.ex | facto/tgdb | 35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d | [
"MIT"
] | null | null | null | lib/tgdb/resources/publisher.ex | facto/tgdb | 35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d | [
"MIT"
] | null | null | null | lib/tgdb/resources/publisher.ex | facto/tgdb | 35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d | [
"MIT"
] | null | null | null | defmodule Tgdb.Publisher do
use Tgdb.Resource
def get_all(params \\ [], opts \\ []) do
get("", "v1", params, opts)
end
def supported_endpoints do
%{
"" => ["v1"],
}
end
def required_params("", "v1") do
~w(
)a
end
def optional_params("", "v1") do
~w(
)a
end
end... | 11.464286 | 42 | 0.514019 |
b2dfeacd83d580bde2259aa083eb6709df443caf | 312 | exs | Elixir | test/ais_front/shipinfos_test.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | null | null | null | test/ais_front/shipinfos_test.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | 18 | 2020-09-24T14:21:23.000Z | 2020-10-01T16:11:58.000Z | test/ais_front/shipinfos_test.exs | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | null | null | null | defmodule AisFront.Core.ShipinfosTest do
use ExUnit.Case, async: true
doctest AisFront.Core.Shipinfos
# @srid_not_recognized %Shipinfos{point: %Point{coordinates: {5.4321, -1.2}}}
# @srid_4326 %Shipinfos{point: %Point{coordinates: {5.4321, -1.2}, srid: 4326}}
# @pp_srid_4326 {"5.4321°", "-1.2°"}
end
| 34.666667 | 81 | 0.698718 |
b2dfed87f9a9cbf71e4221bc0123c624c05e8301 | 1,408 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/undelete_role_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/iam/lib/google_api/iam/v1/model/undelete_role_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/iam/lib/google_api/iam/v1/model/undelete_role_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.957447 | 101 | 0.732244 |
b2e006f1cc94414cb55e7d3e88201ca5a6572425 | 438 | ex | Elixir | test/support/calcinator/resources/test_tag.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | test/support/calcinator/resources/test_tag.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | 1 | 2018-09-24T21:48:46.000Z | 2018-09-24T21:48:46.000Z | test/support/calcinator/resources/test_tag.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | defmodule Calcinator.Resources.TestTag do
@moduledoc """
A schema used in examples in `Calcinator.Resources`
"""
use Ecto.Schema
alias Calcinator.Resources.TestPost
schema "tags" do
field(:name, :string)
# Associations
many_to_many(
:posts,
TestPost,
join_keys: [
t... | 16.222222 | 53 | 0.609589 |
b2e0325b3fd8220f17ea4c8e8d32c7fb13654bbe | 961 | ex | Elixir | jpcarver+elixir/day04/lib/Day04/game.ex | NashFP/avent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | 2 | 2021-11-24T12:54:15.000Z | 2022-01-20T11:02:11.000Z | jpcarver+elixir/day04/lib/Day04/game.ex | NashFP/advent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | null | null | null | jpcarver+elixir/day04/lib/Day04/game.ex | NashFP/advent-2021 | d2f4648e904c9105514fd68db2dfe3b0e682093d | [
"MIT"
] | null | null | null | defmodule Day04.Game do
alias Day04.Game
defstruct ~w(numbers boards)a
def new(file_name) do
file_name
|> File.read!()
|> String.split("\n\n", trim: true)
|> then(fn [numbers_token | board_tokens] ->
%Game{
numbers: parse_numbers(numbers_token),
boards: parse_boards(bo... | 24.025 | 72 | 0.599376 |
b2e044cbff5e2dcec199bdcda97e6886787639d2 | 129 | exs | Elixir | test/yard_test.exs | Horaddrim/yard | 3235e25e4d8e0a6dc644390f6aad11ebbdc6e076 | [
"Apache-2.0"
] | 1 | 2018-08-11T02:52:47.000Z | 2018-08-11T02:52:47.000Z | test/yard_test.exs | Horaddrim/yard | 3235e25e4d8e0a6dc644390f6aad11ebbdc6e076 | [
"Apache-2.0"
] | null | null | null | test/yard_test.exs | Horaddrim/yard | 3235e25e4d8e0a6dc644390f6aad11ebbdc6e076 | [
"Apache-2.0"
] | null | null | null | defmodule YardTest do
use ExUnit.Case
doctest Yard
test "greets the world" do
assert Yard.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
b2e07929ae7035bd820826d579b267e3cecae713 | 1,196 | ex | Elixir | lib/potion_web/endpoint.ex | eslingerbryan/potion | eda03f3f9380e75873c6110321780c2b2aa97f98 | [
"MIT"
] | 2 | 2020-01-21T00:47:14.000Z | 2020-03-25T11:25:26.000Z | lib/potion_web/endpoint.ex | eslingerbryan/potion | eda03f3f9380e75873c6110321780c2b2aa97f98 | [
"MIT"
] | null | null | null | lib/potion_web/endpoint.ex | eslingerbryan/potion | eda03f3f9380e75873c6110321780c2b2aa97f98 | [
"MIT"
] | 1 | 2020-01-21T00:47:16.000Z | 2020-01-21T00:47:16.000Z | defmodule PotionWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :potion
socket "/socket", PotionWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static f... | 26.577778 | 63 | 0.703177 |
b2e0895abcc9b7c1532e30a328bc1ca1885798bf | 521 | ex | Elixir | lib/adyen_checkout_ex/model/bill_desk_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/bill_desk_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/bill_desk_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"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 AdyenCheckoutEx.Model.BillDeskDetails do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"issuer",
:"type"
]
@type t... | 18.607143 | 91 | 0.673704 |
b2e0a608cf8ac1cad5e948b84769748190073996 | 1,673 | ex | Elixir | lib/termDirectory_web.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | 1 | 2019-03-15T15:40:24.000Z | 2019-03-15T15:40:24.000Z | lib/termDirectory_web.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | null | null | null | lib/termDirectory_web.ex | nliechti/termDirectory | 267b3025c14e26575c7a9483692e94a7bf29e5fe | [
"MIT"
] | null | null | null | defmodule TermDirectoryWeb 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 TermDirectoryWeb, :controller
use TermDirectoryWeb, :view
The definitions below will be executed for every vi... | 24.602941 | 69 | 0.69994 |
b2e0aa961c6f038be725da789e56b071b26b8d67 | 1,054 | exs | Elixir | config/config.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | config/config.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | 2 | 2021-03-10T17:42:11.000Z | 2021-05-11T13:38:31.000Z | config/config.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :sdo_phoenix,
ecto_repos: [SdoPhoenix.Re... | 32.9375 | 89 | 0.76945 |
b2e0c7f0d05b54542a026d0f0d3879c6791278fe | 18,218 | ex | Elixir | lib/oli_web/live/delivery/remix_section.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/live/delivery/remix_section.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/live/delivery/remix_section.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.Delivery.RemixSection do
use OliWeb, :live_view
use OliWeb.Common.Modal
import OliWeb.Curriculum.Utils,
only: [
is_container?: 1
]
alias Oli.Repo
alias Oli.Delivery.Sections
alias OliWeb.Router.Helpers, as: Routes
alias Oli.Accounts
alias OliWeb.Delivery.Remix.{
Dro... | 28.244961 | 181 | 0.652322 |
b2e0ce57f829d466a170f839ecdbd71115a44baa | 721 | ex | Elixir | lib/mandrag/docker.ex | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 19 | 2016-01-16T12:43:40.000Z | 2021-03-25T03:24:26.000Z | lib/mandrag/docker.ex | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 4 | 2016-02-06T05:33:06.000Z | 2019-06-25T02:14:04.000Z | lib/mandrag/docker.ex | cschiewek/mandrag | 209a2b26e6a68c7bb7d3d5555747bf3fb654d8c1 | [
"MIT"
] | 1 | 2020-01-20T15:11:24.000Z | 2020-01-20T15:11:24.000Z | defmodule Mandrag.Docker do
@moduledoc """
Documentation for Mandrag.Docker
"""
import Mandrag, only: [app: 0, name: 0]
def repo, do: Application.get_env(:mandrag, :docker_repo, "#{name()}")
def build_args do
Map.merge(Application.get_env(:mandrag, :docker_build_args, %{}), %{name: app()})
end
de... | 21.848485 | 85 | 0.632455 |
b2e0dacaa43898a274db30fa9d7d612726207e9d | 219 | ex | Elixir | lib/providers/push_provider.ex | reteq/push-hub | 87f7a4cdb013949f4a68c24a84775699b5df8709 | [
"Apache-2.0"
] | 1 | 2016-10-13T05:59:44.000Z | 2016-10-13T05:59:44.000Z | lib/providers/push_provider.ex | reteq/push-hub | 87f7a4cdb013949f4a68c24a84775699b5df8709 | [
"Apache-2.0"
] | null | null | null | lib/providers/push_provider.ex | reteq/push-hub | 87f7a4cdb013949f4a68c24a84775699b5df8709 | [
"Apache-2.0"
] | null | null | null | defmodule PushHub.ServiceProvider do
use Behaviour
@doc """
interface for push service provider which can be set in config.exs
"""
defcallback send(String.t, String.t, Any) :: {:ok, any} | {:error, any}
end | 27.375 | 75 | 0.689498 |
b2e12081597ffa728017b964af0d9652ab4517be | 1,228 | ex | Elixir | lib/cos/bucket/versioning.ex | oo6/tencent_cloud_cos | c51cdbac9ea127f8211b6113a2e93afcf8b0141b | [
"MIT"
] | null | null | null | lib/cos/bucket/versioning.ex | oo6/tencent_cloud_cos | c51cdbac9ea127f8211b6113a2e93afcf8b0141b | [
"MIT"
] | null | null | null | lib/cos/bucket/versioning.ex | oo6/tencent_cloud_cos | c51cdbac9ea127f8211b6113a2e93afcf8b0141b | [
"MIT"
] | null | null | null | defmodule COS.Bucket.Versioning do
@moduledoc """
版本控制用于实现在相同存储桶中存放同一对象的多个版本。例如,在一个存储桶中,您可以存放多个对象键同为 picture.jpg 的对象,但其版本 ID 不同,例如100000、100101和120002等。
[腾讯云文档](https://cloud.tencent.com/document/product/436/19883)
"""
alias COS.HTTPClient
@doc """
查询版本控制 - [腾讯云文档](https://cloud.tencent.com/document/pr... | 29.238095 | 104 | 0.609935 |
b2e14f48af3833db32f7605126c053439c36cf04 | 361 | exs | Elixir | 081.exs | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | 081.exs | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | 081.exs | jotakami/ex-euler | 0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2 | [
"MIT"
] | null | null | null | with {:ok, f} <- File.read("p081_matrix.txt") do
m = Matrix.from_csv(f) |> Matrix.transpose |> Map.get(:m) |> Enum.reverse
r = hd(m) |> Enum.reverse |> Enum.scan(&(&1 + &2)) |> Enum.reverse
Enum.reduce(tl(m), r, fn col, right ->
Enum.zip(col, right)
|> Enum.reverse
|> Euler.min_grid_path
|> Enum.r... | 30.083333 | 75 | 0.587258 |
b2e171f5c2c6d9b56a2771219098e764de335509 | 198 | ex | Elixir | lib/slow_protocol.ex | baseballlover723/cover_protocol | 49610df3c1433df35ae390215b2026468d49ac7c | [
"MIT"
] | null | null | null | lib/slow_protocol.ex | baseballlover723/cover_protocol | 49610df3c1433df35ae390215b2026468d49ac7c | [
"MIT"
] | null | null | null | lib/slow_protocol.ex | baseballlover723/cover_protocol | 49610df3c1433df35ae390215b2026468d49ac7c | [
"MIT"
] | null | null | null | defprotocol SlowProtocol do
@fallback_to_any true
@spec validate(map()) :: :ok | {:error, [binary()]}
def validate(item)
end
defimpl SlowProtocol, for: Any do
def validate(_), do: :ok
end
| 18 | 53 | 0.686869 |
b2e1a0657f7ff12c0649aad352819fb7843a6c34 | 2,615 | ex | Elixir | lib/mix/task/radiator.adduser.ex | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | lib/mix/task/radiator.adduser.ex | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | lib/mix/task/radiator.adduser.ex | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Radiator.AddUser do
use Mix.Task
@shortdoc "Add a user."
@moduledoc """
Ingest a public rss podcast feed into radiator.
mix radiator.adduser username email password
"""
@switches [debug: :boolean]
@aliases [d: :debug]
alias Radiator.Auth
defmacrop with_services(_opts \... | 24.669811 | 92 | 0.481071 |
b2e1ad161cc50d840d2f5cb2a3d6b2a4af6bb212 | 3,216 | exs | Elixir | test/honest_chat_web/controllers/user_session_controller_test.exs | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | 3 | 2021-11-19T07:18:30.000Z | 2021-12-23T22:19:48.000Z | test/honest_chat_web/controllers/user_session_controller_test.exs | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | test/honest_chat_web/controllers/user_session_controller_test.exs | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | defmodule HonestChatWeb.UserSessionControllerTest do
use HonestChatWeb.ConnCase, async: true
import HonestChat.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/log_in" do
test "renders log in page", %{conn: conn} do
conn = get(conn, Routes.user_session_path(conn, :ne... | 32.484848 | 89 | 0.603545 |
b2e1d013d98eeae7754d2b5d967c725a8eb8d2ee | 1,649 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__measurement__metric.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__measurement__metric.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__measurement__metric.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.98 | 101 | 0.733172 |
b2e1d0b6d583fc16b38d9bb425d4e32d6e96e92a | 430 | ex | Elixir | lib/chaperon/exporter.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | lib/chaperon/exporter.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | lib/chaperon/exporter.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | defmodule Chaperon.Exporter do
@moduledoc """
Metrics exporter behaviour.
Implemented by all built-in exporter modules (see `Chaperon.Export.*`)
"""
@type metrics_data :: any
@type output_path :: String.t()
@callback encode(Chaperon.Session.t(), Keyword.t()) ::
{:ok, metrics_data} | {:erro... | 28.666667 | 89 | 0.665116 |
b2e1dd60dde82f19d36b5f73bb6a89907902e928 | 482 | ex | Elixir | lib/advanced_pool/common/monitoring_framework/life_cycle_event.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | lib/advanced_pool/common/monitoring_framework/life_cycle_event.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | lib/advanced_pool/common/monitoring_framework/life_cycle_event.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2022 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedPool.MonitoringFramework.LifeCycleEvent do
@vsn 1... | 30.125 | 80 | 0.510373 |
b2e1e3e916f0452f24c8637cdfb27971274ad5c3 | 923 | exs | Elixir | test/ecto/query/builder/join_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/join_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/join_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.JoinTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder.Join
doctest Ecto.Query.Builder.Join
import Ecto.Query
test "invalid joins" do
assert_raise Ecto.Query.CompileError,
~r/invalid join qualifier `:whatever`/, fn ->
qual = :whatever
... | 26.371429 | 74 | 0.590466 |
b2e1ecb4a75a9fd9371c6fb1c0d9a0b8a473a54f | 34,439 | ex | Elixir | lib/aws/generated/efs.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/efs.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/efs.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"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.EFS do
@moduledoc """
Amazon Elastic File System
Amazon Elastic File System (Amazon EFS) provides simple, scalable file storage
for use with Amazon EC2 instances in the AWS Cloud.
With... | 30.9982 | 177 | 0.691803 |
b2e1fde81414dfaa58ad24fb893848d54213e600 | 1,280 | exs | Elixir | test/auto_api/capabilities/capabilities_capability_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | test/auto_api/capabilities/capabilities_capability_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 5 | 2020-07-16T07:20:21.000Z | 2021-09-22T10:18:04.000Z | test/auto_api/capabilities/capabilities_capability_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 47.407407 | 79 | 0.782031 |
b2e22df5468412baa5003662cd589e79efdee29f | 767 | ex | Elixir | lib/type_check/builtin/pos_integer.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/builtin/pos_integer.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | lib/type_check/builtin/pos_integer.ex | ktec/elixir-type_check | 42bde40b4a67e999653c5336294dc651c98a747a | [
"MIT"
] | null | null | null | defmodule TypeCheck.Builtin.PosInteger do
defstruct []
use TypeCheck
@type! t :: %__MODULE__{}
@type! problem_tuple :: {t(), :no_match, map(), any()}
defimpl TypeCheck.Protocols.ToCheck do
def to_check(s, param) do
quote do
case unquote(param) do
x when is_integer(x) and x > 0 ->... | 21.305556 | 80 | 0.597132 |
b2e251501dd332ca1fd6695d63d85fd4697564aa | 551 | ex | Elixir | web/models/facebook/access_token.ex | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | null | null | null | web/models/facebook/access_token.ex | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | null | null | null | web/models/facebook/access_token.ex | seansu4you87/betazoids | a8aac9074f5efaad4cd88ffdf7cdef53d4beb5cd | [
"MIT"
] | null | null | null | defmodule Betazoids.Facebook.AccessToken do
use Betazoids.Web, :model
schema "facebook_access_tokens" do
field :token, :string
field :type, :string, default: ":short"
timestamps
end
@required_fields ~w(token type)
@optional_fields ~w()
@doc """
Creates a changeset based on the `model` and ... | 22.04 | 61 | 0.69873 |
b2e258214c7f3da2676489fb5b2eb74c02ab07fd | 634 | ex | Elixir | lib/mongooseice/evaluator/helper.ex | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | 90 | 2017-09-26T12:20:06.000Z | 2022-01-30T17:58:11.000Z | lib/mongooseice/evaluator/helper.ex | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | 39 | 2017-01-20T08:54:13.000Z | 2017-09-13T11:30:14.000Z | lib/mongooseice/evaluator/helper.ex | glassechidna/MongooseICE | c2ea99f47460fd7293b51eaa72fbce122a60affe | [
"Apache-2.0"
] | 13 | 2018-03-29T07:03:25.000Z | 2022-03-06T10:21:45.000Z | defmodule MongooseICE.Evaluator.Helper do
@moduledoc false
# This module defines several helper functions commonly used in
# request/indication implementations
def maybe(result, check), do: maybe(result, check, [])
def maybe({:continue, params, state}, check, args) do
apply(check, [params, state | args]... | 35.222222 | 71 | 0.694006 |
b2e268baefde3f1e0bba388d0af335664f238b77 | 47,913 | exs | Elixir | lib/elixir/test/elixir/enum_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/enum_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/enum_test.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule EnumTest do
use ExUnit.Case, async: true
doctest Enum
test "all?/2" do
assert Enum.all?([2, 4, 6])
refute Enum.all?([2, nil, 4])
assert Enum.all?([])
assert Enum.all?([2, 4, 6], fn(x) -> rem(x, 2) == 0 end)
refute Enum.all?([2, 3, 4], f... | 33.043448 | 114 | 0.513034 |
b2e28abb575a7987b1a3e79b9755f298a911df4a | 1,691 | exs | Elixir | test/grizzly/zwave/commands/crc_16_encap_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/crc_16_encap_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/crc_16_encap_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.CRC16EncapTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.{CRC16Encap, SwitchMultilevelSet}
alias Grizzly.ZWave.CRC
test "creates the command and validates params" do
{:ok, encap_command} = SwitchMultilevelSet.new(target_value: :off)
params = [command... | 43.358974 | 86 | 0.747487 |
b2e2b8dd278d206a59f53272c35b0d80305cf95c | 7,751 | ex | Elixir | lib/ex_admin/themes/admin_lte2/filter.ex | landonwilkins/ex_admin | bc6fa5c5e82add16b90e92f9abf388f5b04f67ec | [
"MIT"
] | null | null | null | lib/ex_admin/themes/admin_lte2/filter.ex | landonwilkins/ex_admin | bc6fa5c5e82add16b90e92f9abf388f5b04f67ec | [
"MIT"
] | 1 | 2021-07-08T17:24:01.000Z | 2021-11-02T09:49:33.000Z | lib/ex_admin/themes/admin_lte2/filter.ex | landonwilkins/ex_admin | bc6fa5c5e82add16b90e92f9abf388f5b04f67ec | [
"MIT"
] | 2 | 2020-01-14T21:10:46.000Z | 2021-07-07T16:36:49.000Z | Code.ensure_compiled(ExAdmin.Utils)
defmodule ExAdmin.Theme.AdminLte2.Filter do
@moduledoc false
require Logger
require Ecto.Query
import ExAdmin.Utils
import ExAdmin.Gettext
import ExAdmin.Filter
use Xain
def theme_filter_view(conn, defn, q, order, scope) do
markup safe: true do
div ".box.b... | 28.083333 | 106 | 0.497226 |
b2e2d4373052469d858c68256e046bd7281b2164 | 1,103 | ex | Elixir | lib/supply_chain_web/channels/user_socket.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 5 | 2020-12-10T07:24:18.000Z | 2021-12-15T08:26:05.000Z | lib/supply_chain_web/channels/user_socket.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | null | null | null | lib/supply_chain_web/channels/user_socket.ex | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 2 | 2020-12-12T17:06:13.000Z | 2021-04-09T02:12:31.000Z | defmodule SupplyChainWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", SupplyChainWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for al... | 30.638889 | 86 | 0.698096 |
b2e2e8e4088fdf5369389dd84b8caea67c95fc6a | 780 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20171130071250_add_transfer_id_to_mint.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20171130071250_add_transfer_id_to_mint.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20171130071250_add_transfer_id_to_mint.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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 writi... | 32.5 | 74 | 0.752564 |
b2e2ea865c5180e541dba69627be68991bdd4ed9 | 188 | ex | Elixir | lib/riffed.ex | fakeNetflix/pinterest-repo-riffed | 26ecaee4e97628174020c2da4cc477645633dc38 | [
"Apache-2.0"
] | 326 | 2015-12-18T20:40:26.000Z | 2022-02-20T18:14:19.000Z | lib/riffed.ex | fakeNetflix/pinterest-repo-riffed | 26ecaee4e97628174020c2da4cc477645633dc38 | [
"Apache-2.0"
] | 50 | 2015-12-22T18:31:32.000Z | 2020-06-17T22:14:38.000Z | lib/riffed.ex | fakeNetflix/pinterest-repo-riffed | 26ecaee4e97628174020c2da4cc477645633dc38 | [
"Apache-2.0"
] | 37 | 2015-12-20T05:35:34.000Z | 2020-12-24T11:23:43.000Z | defmodule Riffed do
@moduledoc """
See <a href="https://github.pinadmin.com/Pinterest/riffed/blob/master/README.md">README.md</a> for details on getting started with Riffed.
"""
end
| 31.333333 | 140 | 0.728723 |
b2e2eaa0ebd33b13032fde5ae779ba6cde57352d | 457 | ex | Elixir | test/support/case_template.ex | straw-hat-team/straw_hat_mailer | eddbfe736f43bcea7567b8cc94339d57f5f43b22 | [
"MIT"
] | 10 | 2017-12-14T06:09:43.000Z | 2019-07-30T19:56:43.000Z | test/support/case_template.ex | straw-hat-labs/straw_hat_mailer | eddbfe736f43bcea7567b8cc94339d57f5f43b22 | [
"MIT"
] | 79 | 2017-10-15T15:45:51.000Z | 2019-11-01T11:18:06.000Z | test/support/case_template.ex | straw-hat-labs/straw_hat_mailer | eddbfe736f43bcea7567b8cc94339d57f5f43b22 | [
"MIT"
] | 1 | 2017-12-14T06:09:52.000Z | 2017-12-14T06:09:52.000Z | defmodule StrawHat.Mailer.TestSupport.CaseTemplate do
@moduledoc false
use ExUnit.CaseTemplate
alias Ecto.Adapters.SQL.Sandbox
alias StrawHat.Mailer.TestSupport.Repo
using do
quote do
import StrawHat.Mailer.TestSupport.Factory
alias StrawHat.Mailer.TestSupport.Repo
end
end
setup tag... | 18.28 | 53 | 0.702407 |
b2e36b12c656c17c16a05642a21b2469c9c6b091 | 1,361 | ex | Elixir | lib/hedwig_slack/http.ex | kevinmcnamee/hedwig_slack | 0ca4a18e8c1cf7550b34f052b8f086a1d19ea706 | [
"MIT"
] | 45 | 2016-03-24T00:37:55.000Z | 2020-11-28T01:26:18.000Z | lib/hedwig_slack/http.ex | kevinmcnamee/hedwig_slack | 0ca4a18e8c1cf7550b34f052b8f086a1d19ea706 | [
"MIT"
] | 16 | 2016-03-24T02:41:49.000Z | 2022-03-17T02:21:48.000Z | lib/hedwig_slack/http.ex | kevinmcnamee/hedwig_slack | 0ca4a18e8c1cf7550b34f052b8f086a1d19ea706 | [
"MIT"
] | 37 | 2016-03-18T22:11:43.000Z | 2022-03-06T10:51:51.000Z | defmodule HedwigSlack.HTTP do
@endpoint "https://slack.com/api"
def get(path, opts \\ []),
do: request(:get, path, opts)
def post(path, opts \\ []),
do: request(:post, path, opts)
def put(path, opts \\ []),
do: request(:put, path, opts)
def patch(path, opts \\ []),
do: request(:patch, path... | 27.77551 | 98 | 0.601029 |
b2e388df67a24629e4a2d8391090e03192a888f1 | 3,583 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/access_policy.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/access_policy.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/access_policy.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... | 60.728814 | 876 | 0.737371 |
b2e3aa1c9f5c7b59bc41080fc539e879eb0c7424 | 1,242 | ex | Elixir | lib/codes/codes_x05.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_x05.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_x05.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_X05 do
alias IcdCode.ICDCode
def _X05XXXA do
%ICDCode{full_code: "X05XXXA",
category_code: "X05",
short_code: "XXXA",
full_name: "Exposure to ignition or melting of nightwear, initial encounter",
short_name: "Exposure to ignition or melting ... | 36.529412 | 93 | 0.665862 |
b2e3db9bf5c618c0c920192930af18da7947865a | 196 | ex | Elixir | scenic_asteroids/play_ui/lib/play_ui.ex | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | 31 | 2018-12-25T19:52:35.000Z | 2022-03-20T01:06:46.000Z | play_ui/lib/play_ui.ex | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | 4 | 2018-12-23T18:34:20.000Z | 2021-05-10T04:05:45.000Z | play_ui/lib/play_ui.ex | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | 2 | 2019-04-09T18:35:51.000Z | 2020-12-22T15:19:18.000Z | defmodule PlayUi do
@moduledoc """
Documentation for PlayUi.
"""
@doc """
Hello world.
## Examples
iex> PlayUi.hello()
:world
"""
def hello do
:world
end
end
| 10.315789 | 27 | 0.556122 |
b2e3e1e0fe7a386a0967f1149b82c93456d5918d | 13,873 | ex | Elixir | apps/aps/lib/aps.ex | qwertystop/scrub | d3dae0d705c3453ea855f56ce7d594dfb78c5394 | [
"MIT"
] | null | null | null | apps/aps/lib/aps.ex | qwertystop/scrub | d3dae0d705c3453ea855f56ce7d594dfb78c5394 | [
"MIT"
] | null | null | null | apps/aps/lib/aps.ex | qwertystop/scrub | d3dae0d705c3453ea855f56ce7d594dfb78c5394 | [
"MIT"
] | null | null | null | defmodule APS do
@moduledoc """
APS: The Abstract Positioning System
A module which uses APS is called a Zone.
The contents of the world in-game are divided into several
Zones. The APS manages the objects in each Zone,
and any interactions between objects, cross-Zone or otherwise.
Objects in a Zone are ... | 31.035794 | 90 | 0.645571 |
b2e3f9c18ad45fb539e715ede395d7bb16a758dc | 936 | exs | Elixir | test/lib/plaid/transactions_test.exs | pdgonzalez872/plaid-elixir | 90d14c24fc95cb4629920aadc14880bae3f5e28b | [
"MIT"
] | 50 | 2016-10-19T16:34:27.000Z | 2022-03-17T03:55:54.000Z | test/lib/plaid/transactions_test.exs | pdgonzalez872/plaid-elixir | 90d14c24fc95cb4629920aadc14880bae3f5e28b | [
"MIT"
] | 47 | 2017-11-08T19:19:09.000Z | 2022-03-23T00:53:22.000Z | test/lib/plaid/transactions_test.exs | pdgonzalez872/plaid-elixir | 90d14c24fc95cb4629920aadc14880bae3f5e28b | [
"MIT"
] | 40 | 2016-10-27T14:39:14.000Z | 2022-03-01T01:03:17.000Z | defmodule Plaid.TransactionsTest do
use ExUnit.Case
import Plaid.Factory
setup do
bypass = Bypass.open()
Application.put_env(:plaid, :root_uri, "http://localhost:#{bypass.port}/")
{:ok, bypass: bypass}
end
describe "transactions" do
test "transactions/1 requests POST and returns Plaid.Trans... | 27.529412 | 92 | 0.600427 |
b2e44068000b60860573b6200221946233b4f2aa | 36 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/UnaryNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/UnaryNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/UnaryNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | !one when not two
not one when !two
| 12 | 17 | 0.722222 |
b2e44dd5689e1e7545053256088c3ed995b77650 | 1,388 | ex | Elixir | lib/changelog/schema/schema.ex | matryer/changelog.com | 62680eeeb53b42c6e9aa6d77df8b035d25bb8037 | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog/schema/schema.ex | matryer/changelog.com | 62680eeeb53b42c6e9aa6d77df8b035d25bb8037 | [
"MIT"
] | null | null | null | lib/changelog/schema/schema.ex | matryer/changelog.com | 62680eeeb53b42c6e9aa6d77df8b035d25bb8037 | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Changelog.Schema do
defmacro __using__(opts) do
opts = Keyword.merge([default_sort: :inserted_at], opts)
quote do
use Ecto.Schema
use Changelog.Arc.Ecto.Schema
import Ecto
import Ecto.Changeset
import Ecto.Query, only: [from: 1, from: 2]
import EctoEnum, only: [... | 35.589744 | 130 | 0.646254 |
b2e455766ecf228f0e9e0798a6fbe93f5489a87d | 1,059 | ex | Elixir | lib/scoop_web/channels/user_socket.ex | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | lib/scoop_web/channels/user_socket.ex | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | lib/scoop_web/channels/user_socket.ex | scoopteam/backend | c9efa958f5f536870abd722e2c55a1fb907acff2 | [
"MIT"
] | null | null | null | defmodule ScoopWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ScoopWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ... | 31.147059 | 83 | 0.694995 |
b2e45f6089758e1a26e7b0398916417ee5298635 | 1,912 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/filter.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/filter.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/filter.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.407407 | 124 | 0.718096 |
b2e488c4fea2f1a60faa55b31aee4a9d1eebc9dc | 198 | ex | Elixir | test/support/redirector.ex | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | null | null | null | test/support/redirector.ex | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | null | null | null | test/support/redirector.ex | gseddon/ueberauth | a914cbb1894224bdc1ff5653011af5966838cab2 | [
"MIT"
] | 1 | 2019-09-15T15:07:23.000Z | 2019-09-15T15:07:23.000Z | defmodule Support.Redirector do
@moduledoc false
use Ueberauth.Strategy
use Support.Mixins
def handle_request!(conn) do
redirect!(conn, "https://redirectme.example.com/foo")
end
end
| 18 | 57 | 0.742424 |
b2e4896de6e2d1962e6f0b2354aa739b83fbe176 | 2,457 | exs | Elixir | mix.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | mix.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | mix.exs | paulswartz/draft | fc0653d75b39e861c4705545cfb86ad7cd0e2cd2 | [
"MIT"
] | null | null | null | defmodule Draft.MixProject do
use Mix.Project
def project do
[
app: :draft,
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(),
d... | 29.60241 | 86 | 0.560033 |
b2e49af1449d6635aab51e0af88490886dd8bb5d | 4,399 | exs | Elixir | example/test/company_test.exs | rschef/paper_trail | 6ab8b29ee97b46222cc48d376daea70fc5cb8105 | [
"MIT"
] | 484 | 2016-06-19T19:33:31.000Z | 2022-03-30T00:04:06.000Z | example/test/company_test.exs | rschef/paper_trail | 6ab8b29ee97b46222cc48d376daea70fc5cb8105 | [
"MIT"
] | 125 | 2016-12-13T14:28:45.000Z | 2022-03-01T00:07:06.000Z | example/test/company_test.exs | rschef/paper_trail | 6ab8b29ee97b46222cc48d376daea70fc5cb8105 | [
"MIT"
] | 80 | 2016-09-09T02:12:41.000Z | 2022-03-29T20:51:12.000Z | defmodule CompanyTest do
use ExUnit.Case
import Ecto.Query
doctest Company
setup_all do
Repo.delete_all(Person)
Repo.delete_all(Company)
Repo.delete_all(PaperTrail.Version)
:ok
end
test "creating a company creates a company version with correct attributes" do
{:ok, result} =
%Co... | 26.184524 | 102 | 0.584678 |
b2e4b8d7a9671b2bdf021f045d1170b9423dc85f | 9,413 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/product.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/product.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/product.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... | 70.246269 | 353 | 0.709869 |
b2e4f0a269acf64c47d6560a1e1926639ebcae85 | 50,388 | ex | Elixir | lib/aws/generated/iot_site_wise.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/iot_site_wise.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/iot_site_wise.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.IoTSiteWise do
@moduledoc """
Welcome to the IoT SiteWise API Reference.
IoT SiteWise is an Amazon Web Services service that connects [Industrial Internet of Things
(IIoT)](https://en.wik... | 23.623066 | 260 | 0.615662 |
b2e4f80149413d7e870620a19b981e7b3b0de482 | 6,986 | ex | Elixir | web/lib/infolab_light_games/coordinator.ex | simmsb/infolab-lights | 1cd685029c50cde0de84176efd65fb0cabc6c820 | [
"MIT"
] | null | null | null | web/lib/infolab_light_games/coordinator.ex | simmsb/infolab-lights | 1cd685029c50cde0de84176efd65fb0cabc6c820 | [
"MIT"
] | 47 | 2020-08-03T09:30:46.000Z | 2021-03-01T08:18:51.000Z | web/lib/infolab_light_games/coordinator.ex | nitros12/something-secret | 1cd685029c50cde0de84176efd65fb0cabc6c820 | [
"MIT"
] | null | null | null | defmodule Coordinator do
use GenServer
require Logger
@type via_tuple() :: {:via, atom(), {atom(), String.t()}}
defmodule State do
use TypedStruct
typedstruct enforce: true do
field :current_idle_animation, Coordinator.via_tuple() | none()
field :current_game, Coordinator.via_tuple() | no... | 25.683824 | 94 | 0.647295 |
b2e4fffd3d8f49fe54a7b5dab99f08b3bd325d3d | 486 | exs | Elixir | config/test.exs | strofcon/scipse | f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb | [
"Apache-2.0"
] | null | null | null | config/test.exs | strofcon/scipse | f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb | [
"Apache-2.0"
] | null | null | null | config/test.exs | strofcon/scipse | f7597b73dac2e7ffe9f5aa0a403600d9d8ea8eeb | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :scipse, Scipse.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :scipse, Scipse.Repo,
a... | 24.3 | 56 | 0.730453 |
b2e50bc35dd95d811ef6eaac6c2aee465e2bbb52 | 1,962 | exs | Elixir | config/dev.exs | benstafford/team_health | a9a3f637769487733e1dee5d2fc60e999c173f3a | [
"MIT"
] | null | null | null | config/dev.exs | benstafford/team_health | a9a3f637769487733e1dee5d2fc60e999c173f3a | [
"MIT"
] | null | null | null | config/dev.exs | benstafford/team_health | a9a3f637769487733e1dee5d2fc60e999c173f3a | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :team_health, TeamHealthWeb.Endpoint,
http: [p... | 33.254237 | 170 | 0.707951 |
b2e55b82e267ba019c048fc70ca0a3daa8563a90 | 81 | ex | Elixir | web/views/school_curriculum_view.ex | cadorfo/SchoolAgenda | 5dd99f3482f103f7a3ac5ef83a07a36d15bbe17d | [
"MIT"
] | null | null | null | web/views/school_curriculum_view.ex | cadorfo/SchoolAgenda | 5dd99f3482f103f7a3ac5ef83a07a36d15bbe17d | [
"MIT"
] | null | null | null | web/views/school_curriculum_view.ex | cadorfo/SchoolAgenda | 5dd99f3482f103f7a3ac5ef83a07a36d15bbe17d | [
"MIT"
] | null | null | null | defmodule SchoolAgenda.SchoolCurriculumView do
use SchoolAgenda.Web, :view
end
| 20.25 | 46 | 0.839506 |
b2e588ee75f140627488a5c2a348452d2345daba | 30,253 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/vpn_gateways.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/vpn_gateways.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/vpn_gateways.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 50.421667 | 511 | 0.645324 |
b2e59ea1f857dbc45b90cbfb49c0a358c633557e | 938 | ex | Elixir | lib/autoformatbot/utils.ex | maltoe/autoformatbot.ex | cedcf5471165eefe133f9ff6a71c8a91c0ddbcc3 | [
"MIT"
] | null | null | null | lib/autoformatbot/utils.ex | maltoe/autoformatbot.ex | cedcf5471165eefe133f9ff6a71c8a91c0ddbcc3 | [
"MIT"
] | null | null | null | lib/autoformatbot/utils.ex | maltoe/autoformatbot.ex | cedcf5471165eefe133f9ff6a71c8a91c0ddbcc3 | [
"MIT"
] | null | null | null | defmodule Autoformatbot.Utils do
@doc """
Executes system command.
Returns `{:ok, {output, exit_status}}` or `{:error, msg}` on error.
"""
def cmd(exec, args, opts \\ []) do
try do
{:ok, System.cmd(exec, args, Keyword.put(opts, :stderr_to_stdout, true))}
rescue
e in ErlangError -> {:error... | 25.351351 | 86 | 0.602345 |
b2e5b6bd18ee071ab6f32fcb8b4349e02f21c4ed | 830 | exs | Elixir | test/merchant/funding_test.exs | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 108 | 2016-02-03T12:45:03.000Z | 2022-02-19T16:56:36.000Z | test/merchant/funding_test.exs | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 77 | 2016-02-12T15:52:53.000Z | 2022-02-21T14:38:08.000Z | test/merchant/funding_test.exs | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 64 | 2016-04-04T07:07:24.000Z | 2022-03-24T05:42:05.000Z | defmodule Braintree.Merchant.FundingTest do
use ExUnit.Case, async: true
alias Braintree.Merchant.Funding
test "all funding attributes are included" do
funding = %Funding{
descriptor: "descriptor",
destination: "bank",
email: "email@braintree.com",
mobile_phone: "1234567890",
r... | 27.666667 | 58 | 0.690361 |
b2e5c82b78319199b11550120b4ea74cf0c19f78 | 27,993 | ex | Elixir | lib/sparql/algebra/translation.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | lib/sparql/algebra/translation.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | lib/sparql/algebra/translation.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | defmodule SPARQL.Algebra.Translation do
@moduledoc """
Translation of ASTs of the `SPARQL.Language.Decoder` into a `SPARQL.Algebra.Expression`.
<https://www.w3.org/TR/sparql11-query/#sparqlQuery>
"""
alias RDF.IRI
defmodule GroupGraphPattern do
@enforce_keys [:expr]
defstruct fs: [], expr: nil
... | 31.523649 | 163 | 0.615297 |
b2e5cc5828a7cd2354de53c87e2e93fbd262f3ae | 9,140 | exs | Elixir | test/absinthe/federation/schema/entities_field_test.exs | scottming/absinthe_federation | 23664990cc246e000811964abbaafca41d1a5f63 | [
"MIT"
] | 40 | 2021-06-26T08:43:50.000Z | 2022-03-30T15:41:08.000Z | test/absinthe/federation/schema/entities_field_test.exs | scottming/absinthe_federation | 23664990cc246e000811964abbaafca41d1a5f63 | [
"MIT"
] | 22 | 2021-07-14T20:01:08.000Z | 2022-03-31T15:58:02.000Z | test/absinthe/federation/schema/entities_field_test.exs | scottming/absinthe_federation | 23664990cc246e000811964abbaafca41d1a5f63 | [
"MIT"
] | 4 | 2021-08-23T14:38:41.000Z | 2021-11-30T00:16:19.000Z | defmodule Absinthe.Federation.Schema.EntitiesFieldTest do
use Absinthe.Federation.Case, async: true
alias Absinthe.Blueprint.Schema.FieldDefinition
alias Absinthe.Blueprint.TypeReference.List
alias Absinthe.Blueprint.TypeReference.Name
alias Absinthe.Blueprint.TypeReference.NonNull
alias Absinthe.Federati... | 25.179063 | 117 | 0.471882 |
b2e624f38881e279dd09857b9b6051ce630f9f62 | 534 | ex | Elixir | lib/cardigan/table_manager.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 2 | 2020-05-05T06:07:16.000Z | 2020-05-09T02:12:32.000Z | lib/cardigan/table_manager.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | 21 | 2020-05-05T16:06:57.000Z | 2020-07-07T17:25:46.000Z | lib/cardigan/table_manager.ex | Nagasaki45/gigalixir | 8d0d96ddc2eb0d44a25651cfd28c07cc401139c8 | [
"MIT"
] | null | null | null | defmodule Cardigan.TableManager do
def new(game) do
id = Cardigan.Random.id(8)
child_spec = %{
id: Cardigan.Table,
start:
{Cardigan.Table, :start_link,
[{id, game}, [name: {:via, Registry, {Cardigan.TableRegistry, id}}]]}
}
{:ok, _pid} = DynamicSupervisor.start_child(Car... | 23.217391 | 85 | 0.601124 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.