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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73f7b508b8e6a84e8ce6b235a182c83e44b59b3d | 2,055 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_entity.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_entity.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1_entity.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 34.830508 | 177 | 0.741119 |
73f7bd52fe16420e62d215fc406e5f62ecd2cfcf | 4,540 | ex | Elixir | lib/jsonrpc2.ex | InoMurko/jsonrpc2-elixir | 3edb92061231ddc9edc1a69531f7248d3d00d8f3 | [
"Apache-2.0"
] | null | null | null | lib/jsonrpc2.ex | InoMurko/jsonrpc2-elixir | 3edb92061231ddc9edc1a69531f7248d3d00d8f3 | [
"Apache-2.0"
] | null | null | null | lib/jsonrpc2.ex | InoMurko/jsonrpc2-elixir | 3edb92061231ddc9edc1a69531f7248d3d00d8f3 | [
"Apache-2.0"
] | null | null | null | defmodule JSONRPC2 do
@moduledoc ~S"""
`JSONRPC2` is an Elixir library for JSON-RPC 2.0.
It includes request and response utility modules, a transport-agnostic server handler, a
line-based TCP server and client, which are based on [Ranch](https://github.com/ninenines/ranch)
and [shackle](https://github.com... | 27.852761 | 99 | 0.590088 |
73f7e3ca51ec77829024f6e10ff77f1d033f4e03 | 1,320 | ex | Elixir | lib/ecto/query/lock_builder.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/lock_builder.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/lock_builder.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.LockBuilder do
@moduledoc false
alias Ecto.Query.BuilderUtil
@doc """
Validates the expression is an integer or raise.
"""
@spec validate(Macro.t) :: Macro.t | no_return
def validate(expr) when is_boolean(expr) or is_binary(expr), do: expr
def validate(expr) do
raise Ecto.Que... | 29.333333 | 87 | 0.648485 |
73f7f73614a5daadffaedaeb6fcb16ac49d96487 | 845 | ex | Elixir | lib/subscribex/test_subscriber.ex | neggertz/subscribex | 5f40b06a514108dbdc42b4d7a166b7f4aa19e693 | [
"Unlicense"
] | 22 | 2016-08-11T11:51:13.000Z | 2020-01-12T17:22:11.000Z | lib/subscribex/test_subscriber.ex | neggertz/subscribex | 5f40b06a514108dbdc42b4d7a166b7f4aa19e693 | [
"Unlicense"
] | 7 | 2016-10-04T19:26:14.000Z | 2018-12-15T19:18:43.000Z | lib/subscribex/test_subscriber.ex | neggertz/subscribex | 5f40b06a514108dbdc42b4d7a166b7f4aa19e693 | [
"Unlicense"
] | 14 | 2016-08-09T14:27:57.000Z | 2021-04-01T20:18:43.000Z | defmodule Subscribex.TestSubscriber do
@moduledoc false
use Subscribex.Subscriber
@preprocessors &__MODULE__.deserialize/1
def start_link(broker) do
Subscribex.Subscriber.start_link(__MODULE__, broker)
end
def init(broker) do
config = %Config{
auto_ack: false,
broker: broker,
q... | 20.119048 | 70 | 0.669822 |
73f7f86e56e4c9619cad3003f90693abcd383447 | 2,200 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/list_functions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/list_functions_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/list_functions_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... | 41.509434 | 250 | 0.737727 |
73f8038d25ce212f429de75b71f8eef82049272f | 363 | ex | Elixir | exercises/practice/resistor-color-duo/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/resistor-color-duo/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/resistor-color-duo/.meta/example.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule ResistorColorDuo do
@colors %{
black: 0,
brown: 1,
red: 2,
orange: 3,
yellow: 4,
green: 5,
blue: 6,
violet: 7,
grey: 8,
white: 9
}
@doc """
Calculate a resistance value from two colors
"""
@spec value(colors :: [atom]) :: integer
def value([a, b | _]) do
... | 15.782609 | 46 | 0.534435 |
73f8344c6fd1c5da6ba4463ec2e03a38fec1285d | 4,669 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/mini_cbor.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/mini_cbor.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/mini_cbor.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | defmodule MiniCBOR do
@moduledoc """
Wrapper for CBOR encoding library to work with values encoded using structures optimised by Rust
https://twittner.gitlab.io/minicbor/minicbor_derive/index.html library
Changes maps keys for encoded values to integers.
Encodes atoms as index integers.
Map keys... | 26.083799 | 129 | 0.629471 |
73f84274ecfdc6ca9abe5c440569ebd58f03fb61 | 5,045 | ex | Elixir | web/controllers/membership_controller.ex | mark-b-kauffman/phoenixDSK3LO | 999d7f66515a3bf1974d25c3d7ff3b439266452c | [
"BSD-3-Clause",
"MIT"
] | null | null | null | web/controllers/membership_controller.ex | mark-b-kauffman/phoenixDSK3LO | 999d7f66515a3bf1974d25c3d7ff3b439266452c | [
"BSD-3-Clause",
"MIT"
] | null | null | null | web/controllers/membership_controller.ex | mark-b-kauffman/phoenixDSK3LO | 999d7f66515a3bf1974d25c3d7ff3b439266452c | [
"BSD-3-Clause",
"MIT"
] | null | null | null | defmodule PhoenixDSK3LO.MembershipController do
# For managing one membership. 2017.12.12
# TODO: Modify the following to manage one membership.
use PhoenixDSK3LO.Web, :controller
require Logger
alias PhoenixDSK3LO.Lms, as: Lms
@doc """
Notes:
Regarding Availability and Row Status
%{"availability"... | 47.59434 | 158 | 0.656095 |
73f85f7a3a14c771feedd46aca27d61eff32de91 | 247 | ex | Elixir | lib/deuce.ex | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"MIT"
] | 2 | 2022-01-16T23:58:45.000Z | 2022-03-16T09:29:16.000Z | lib/deuce.ex | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"MIT"
] | null | null | null | lib/deuce.ex | fremantle-industries/deuce | b0b95333bc43d55e25f1c6a3a033bc053223a64c | [
"MIT"
] | null | null | null | defmodule Deuce do
@moduledoc """
Deuce keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.7 | 66 | 0.748988 |
73f89d3003cdd780269b78ae61e5e30604b0c26f | 640 | ex | Elixir | deps/postgrex/lib/postgrex/extensions/int8.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extensions/int8.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extensions/int8.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Postgrex.Extensions.Int8 do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "int8send"
@int8_range -9223372036854775808..9223372036854775807
def encode(_) do
range = Macro.escape(@int8_range)
quote location: :keep do
int when is... | 26.666667 | 89 | 0.646875 |
73f8a051a8aaed0eb8d050f23d71dfc38dc3799f | 13,473 | ex | Elixir | lib/fxnk/map.ex | matthewsecrist/fxnk | 3f489f6069ba09b959bb3e8f22c7b9f1fa1d5e45 | [
"MIT"
] | 2 | 2020-10-16T19:05:07.000Z | 2020-12-30T19:59:40.000Z | lib/fxnk/map.ex | matthewsecrist/fxnk | 3f489f6069ba09b959bb3e8f22c7b9f1fa1d5e45 | [
"MIT"
] | 1 | 2020-10-16T19:09:55.000Z | 2020-10-16T21:31:30.000Z | lib/fxnk/map.ex | matthewsecrist/fxnk | 3f489f6069ba09b959bb3e8f22c7b9f1fa1d5e45 | [
"MIT"
] | null | null | null | defmodule Fxnk.Map do
@moduledoc """
`Fxnk.Map` are functions that work with maps.
"""
import Fxnk.Functions, only: [curry: 1]
@doc """
Curried `assemble/2`
## Examples
iex> map = %{red: "red", green: "green", blue: "blue" }
iex> fnmap = %{
...> red: Fxnk.Flow.compose([&String.upcase/1... | 34.724227 | 150 | 0.588139 |
73f8a06fed5a517e77f9b3f6c66ff11c4901f0d0 | 5,199 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_http_proxy.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_http_proxy.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_http_proxy.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 59.079545 | 490 | 0.721485 |
73f8be384747c96f2b64d035c9d75ce95d0f62c4 | 1,772 | ex | Elixir | test/support/model_case.ex | xelcer/phoenix_demo | 84dc516441dd715db7e24b1384c2fea3adffe0f7 | [
"MIT"
] | null | null | null | test/support/model_case.ex | xelcer/phoenix_demo | 84dc516441dd715db7e24b1384c2fea3adffe0f7 | [
"MIT"
] | null | null | null | test/support/model_case.ex | xelcer/phoenix_demo | 84dc516441dd715db7e24b1384c2fea3adffe0f7 | [
"MIT"
] | null | null | null | defmodule Demo.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For thi... | 26.848485 | 84 | 0.681716 |
73f90178b11c772c224b4ac86e3c1272f33a01af | 1,476 | ex | Elixir | lib/live_sup_web/live/admin/team_live/form_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/live/admin/team_live/form_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup_web/live/admin/team_live/form_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Admin.TeamLive.FormComponent do
use LiveSupWeb, :live_component
alias LiveSup.Core.Teams
@impl true
def update(%{team: team} = assigns, socket) do
changeset = Teams.change(team)
{:ok,
socket
|> assign(assigns)
|> assign(:changeset, changeset)}
end
@impl true
... | 26.357143 | 67 | 0.631436 |
73f9191d7689ad5786eb5a29da9bb4973d30dd96 | 237 | exs | Elixir | config/test.exs | sger/ex_rabbitmq_rpc | 7e46b471f9bcd2b9a850d783d34c7c806ca5cab6 | [
"MIT"
] | null | null | null | config/test.exs | sger/ex_rabbitmq_rpc | 7e46b471f9bcd2b9a850d783d34c7c806ca5cab6 | [
"MIT"
] | null | null | null | config/test.exs | sger/ex_rabbitmq_rpc | 7e46b471f9bcd2b9a850d783d34c7c806ca5cab6 | [
"MIT"
] | null | null | null | use Mix.Config
config :logger, level: :error
config :exrabbitmq, :test,
username: "guest",
password: "guest",
host: "localhost",
queue: "ex_rabbitmq_rpc_test",
queue_opts: [auto_delete: true],
consume_opts: [no_ack: false]
| 19.75 | 34 | 0.700422 |
73f93bc1f6084aa128b33b83067d9562fa103c73 | 18,612 | exs | Elixir | test/teslamate_web/live/settings_test.exs | AlwindB/teslamate | 59295ce8cf5c737ff26be4ea999206eb131ba38a | [
"MIT"
] | null | null | null | test/teslamate_web/live/settings_test.exs | AlwindB/teslamate | 59295ce8cf5c737ff26be4ea999206eb131ba38a | [
"MIT"
] | null | null | null | test/teslamate_web/live/settings_test.exs | AlwindB/teslamate | 59295ce8cf5c737ff26be4ea999206eb131ba38a | [
"MIT"
] | 1 | 2019-10-24T13:17:57.000Z | 2019-10-24T13:17:57.000Z | defmodule TeslaMateWeb.SettingsLiveTest do
use TeslaMateWeb.ConnCase
alias TeslaMate.{Settings, Locations, Repo}
describe "global settings" do
test "shows km and C by default", %{conn: conn} do
assert {:ok, _view, html} = live(conn, "/settings")
assert [
{"select", _,
... | 35.723608 | 98 | 0.475016 |
73f93cf27d3858bc46fec330de4918267ba2ffad | 1,337 | ex | Elixir | apps/dtask/lib/dtask/resource_usage/extractor/mem_info.ex | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | apps/dtask/lib/dtask/resource_usage/extractor/mem_info.ex | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | apps/dtask/lib/dtask/resource_usage/extractor/mem_info.ex | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | defmodule DTask.ResourceUsage.Extractor.MemInfo do
@moduledoc false
@behaviour DTask.ResourceUsage.Extractor
@typep value :: number | :nan
@type usage :: %{ram: value, swap: value}
@typep ignored :: term
@regex_mem_total ~r"MemTotal:\s*(\d+) kB"
@regex_mem_avail ~r"MemAvailable:\s*(\d+) kB"
@regex_... | 34.282051 | 81 | 0.584144 |
73f94677e3e2f2d8a31a956a9e238a6116064bdc | 1,382 | ex | Elixir | lib/mix/tasks/tailwind.install.ex | kingdomcoding/tailwind | 0bc48d3b0cf433ad38894ff2eef78dab563640ba | [
"MIT"
] | 311 | 2021-12-20T22:11:07.000Z | 2022-03-31T16:03:30.000Z | lib/mix/tasks/tailwind.install.ex | kingdomcoding/tailwind | 0bc48d3b0cf433ad38894ff2eef78dab563640ba | [
"MIT"
] | 32 | 2021-12-21T05:21:57.000Z | 2022-03-30T13:04:20.000Z | lib/mix/tasks/tailwind.install.ex | kingdomcoding/tailwind | 0bc48d3b0cf433ad38894ff2eef78dab563640ba | [
"MIT"
] | 26 | 2021-12-21T18:49:48.000Z | 2022-03-16T12:53:32.000Z | defmodule Mix.Tasks.Tailwind.Install do
@moduledoc """
Installs tailwind under `_build`.
```bash
$ mix tailwind.install
$ mix tailwind.install --if-missing
```
By default, it installs #{Tailwind.latest_version()} but you
can configure it in your config files, such as:
config :tailwind, :version... | 24.245614 | 68 | 0.623734 |
73f95126044383d0ef7a78deb7027ac18aba1560 | 761 | ex | Elixir | test/support/channel_case.ex | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | 2 | 2016-07-02T21:53:17.000Z | 2016-07-07T16:35:58.000Z | test/support/channel_case.ex | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | null | null | null | test/support/channel_case.ex | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | null | null | null | defmodule LivecodingWorkspace.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 and query models.
Finally, if the test case interacts with the database,
it... | 22.382353 | 56 | 0.726675 |
73f957040e65f37b3b9bafee1b2b075601f74193 | 700 | ex | Elixir | documentation/examples/publisher.ex | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 164 | 2018-03-25T10:02:09.000Z | 2022-03-15T12:39:24.000Z | documentation/examples/publisher.ex | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 239 | 2018-03-14T13:08:42.000Z | 2022-03-20T08:59:16.000Z | documentation/examples/publisher.ex | VanHelmont/gen_rmq | ae6958c7f5d61b64e075020a9760cc5b64d749c3 | [
"MIT"
] | 41 | 2018-05-15T10:07:13.000Z | 2022-02-11T14:36:27.000Z | defmodule ExamplePublisher do
@moduledoc """
Example GenRMQ.Publisher implementation
Sample usage:
```
MIX_ENV=test iex -S mix
iex(1)> ExamplePublisher.start_link()
iex(2)> ExamplePublisher.publish_message("test", "routing_key")
```
"""
@behaviour GenRMQ.Publisher
require Logger
def start_li... | 21.212121 | 65 | 0.704286 |
73f9760ebc9e3fadceb2bf455f4888863c079e25 | 954 | ex | Elixir | web/views/field_view.ex | snocorp/meansweepx | 585cb25ad22dd2231ab01edd840b0613d6abef77 | [
"MIT"
] | null | null | null | web/views/field_view.ex | snocorp/meansweepx | 585cb25ad22dd2231ab01edd840b0613d6abef77 | [
"MIT"
] | null | null | null | web/views/field_view.ex | snocorp/meansweepx | 585cb25ad22dd2231ab01edd840b0613d6abef77 | [
"MIT"
] | null | null | null | defmodule Meansweepx.FieldView do
use Meansweepx.Web, :view
require Ecto.DateTime
def render("show.json", %{field: field}) do
%{data: render_one(field, Meansweepx.FieldView, "field.json")}
end
def render("field.json", %{field: field}) do
grid_matrix = Enum.map(1..field.height, fn(y) ->
Enum.m... | 25.783784 | 67 | 0.589099 |
73f97de0d4e59acdc4dd0336a2eb7b0e92759260 | 628 | exs | Elixir | test/unit/strong_migrations/classifiers/add_index_not_concurrently_test.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 23 | 2021-10-29T19:58:35.000Z | 2021-11-13T21:42:45.000Z | test/unit/strong_migrations/classifiers/add_index_not_concurrently_test.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 1 | 2021-10-31T03:57:47.000Z | 2021-10-31T14:33:45.000Z | test/unit/strong_migrations/classifiers/add_index_not_concurrently_test.exs | surgeventures/strong_migrations | 3c82e34a6e7a372c6de17ba7a0b07da7664baa26 | [
"MIT"
] | 3 | 2021-10-31T02:14:10.000Z | 2021-11-09T08:07:22.000Z | defmodule StrongMigrations.Classifiers.AddIndexNotConcurrentlyTest do
use ExUnit.Case, async: true
alias StrongMigrations.Classifiers.AddIndexNotConcurrently
alias StrongMigrations.Migration
test "it has failed when creating an index not concurrently" do
migration = %{Migration.new("test.exs") | create_in... | 33.052632 | 95 | 0.772293 |
73f97e0571e012c8619e270557858c167162c323 | 2,148 | exs | Elixir | config/prod.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | 144 | 2015-04-30T15:12:46.000Z | 2022-01-07T03:40:26.000Z | config/prod.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | 57 | 2015-04-29T11:26:54.000Z | 2022-01-05T13:35:10.000Z | config/prod.exs | bcoop713/rumbl | 831982b86f8f4e6540b6d481e36e2e3c3470b5b1 | [
"MIT"
] | 46 | 2015-06-12T11:26:15.000Z | 2021-12-15T00:38:26.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.545455 | 67 | 0.709497 |
73f9a9b00807826e598b2e5dc7a0bf1fec05e4c6 | 1,683 | ex | Elixir | lib/vapor/planner.ex | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 533 | 2018-05-27T17:54:58.000Z | 2021-09-26T12:21:20.000Z | lib/vapor/planner.ex | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 68 | 2018-05-28T14:26:52.000Z | 2021-09-11T23:11:34.000Z | lib/vapor/planner.ex | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 37 | 2018-06-22T00:08:38.000Z | 2021-10-06T17:14:19.000Z | defmodule Vapor.Planner do
@moduledoc """
This module provides a DSL for building configuration plans.
```elixir
defmodule MyApp.Config do
use Vapor.Planner
dotenv()
config :env, env([
foo: "FOO",
bar: "BAR",
])
config :file, file("test/support/settings.json", [
foo: "f... | 18.096774 | 75 | 0.592395 |
73f9eee006da386752204b79effd6caf516c3a2b | 887 | ex | Elixir | lib/web/game.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/web/game.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/web/game.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.Game do
@moduledoc """
Helpers for games in the web view
"""
@doc """
Chose a random game that is online and has a home page
"""
@spec highlighted_game([Game.t()]) :: Game.t()
def highlighted_game(games) do
games
|> Enum.map(& &1.game)
|> Enum.filter(& &1.display)
|> Enum.... | 22.175 | 86 | 0.580609 |
73fa17fbbf0e0462bfbcf1f8ef5c214c91d83288 | 9,293 | ex | Elixir | lib/osrs_api.ex | norbert-k/ex_osrs_api | 7884bf2b28628464812269a77e20b1f552a57f38 | [
"MIT"
] | 1 | 2021-04-15T22:26:54.000Z | 2021-04-15T22:26:54.000Z | lib/osrs_api.ex | norbert-k/ex_osrs_api | 7884bf2b28628464812269a77e20b1f552a57f38 | [
"MIT"
] | 1 | 2021-04-19T00:35:24.000Z | 2021-04-19T11:04:19.000Z | lib/osrs_api.ex | norbert-k/ex_osrs_api | 7884bf2b28628464812269a77e20b1f552a57f38 | [
"MIT"
] | null | null | null | defmodule ExOsrsApi.OsrsApi do
@moduledoc """
### OsrsApi
Main module for API requests
"""
use Tesla, only: ~w(get)a, docs: false
alias ExOsrsApi.Ratelimit
alias ExOsrsApi.PlayerHighscores
alias ExOsrsApi.Errors.Error
alias ExOsrsApi.Errors.HttpErrorMetadata
alias ExOsrsApi.PlayerRequest
alias Ex... | 29.040625 | 101 | 0.577854 |
73fa31e045bbe5a64c8d2292776f947335b1430d | 1,863 | ex | Elixir | lib/level/schemas/space.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/schemas/space.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/schemas/space.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Schemas.Space do
@moduledoc """
The Space schema.
"""
use Ecto.Schema
import Ecto.Changeset
import Level.Gettext
alias Level.Schemas.Group
alias Level.Schemas.SpaceUser
@type t :: %__MODULE__{}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
sc... | 22.719512 | 64 | 0.638755 |
73fa6723ae3e61f52130dc95e07749d7d44e95bd | 895 | exs | Elixir | apps/omg_watcher/priv/repo/migrations/20180813143343_create_txoutput_table.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/priv/repo/migrations/20180813143343_create_txoutput_table.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/priv/repo/migrations/20180813143343_create_txoutput_table.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | defmodule OMG.Watcher.Repo.Migrations.CreateTxoutputTable do
use Ecto.Migration
def change do
create table(:txoutputs, primary_key: false) do
add :blknum, :bigint, null: false, primary_key: true
add :txindex, :integer, null: false, primary_key: true
add :oindex, :integer, null: false, primary... | 42.619048 | 85 | 0.690503 |
73fa6d32cf274bf9468b90d3755cc2c3c9d325ad | 218 | ex | Elixir | apps/cronitex_web/lib/cronitex_web/views/cron_monitor_view.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 1 | 2020-11-05T15:38:53.000Z | 2020-11-05T15:38:53.000Z | apps/cronitex_web/lib/cronitex_web/views/cron_monitor_view.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 36 | 2020-10-24T01:28:42.000Z | 2022-02-07T11:11:37.000Z | apps/cronitex_web/lib/cronitex_web/views/cron_monitor_view.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | null | null | null | defmodule CronitexWeb.CronMonitorView do
use CronitexWeb, :view
alias Crontab.CronExpression.Composer
def cron_str(%Crontab.CronExpression{} = cron_expression) do
Composer.compose(cron_expression)
end
end
| 24.222222 | 62 | 0.798165 |
73fabdd4e79812cb5c84c71367fae657339e6338 | 27,728 | exs | Elixir | test/screens/v2/widget_instance/alert_test.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | test/screens/v2/widget_instance/alert_test.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | test/screens/v2/widget_instance/alert_test.exs | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.V2.WidgetInstance.AlertTest do
use ExUnit.Case, async: true
alias Screens.Alerts.Alert
alias Screens.Config.Screen
alias Screens.Config.V2.{BusEink, BusShelter, GlEink, Solari}
alias Screens.RouteType
alias Screens.V2.WidgetInstance.Alert, as: AlertWidget
setup :setup_base
defp setu... | 31.7254 | 122 | 0.607184 |
73fad2eed2910519bb988184889bfcb2b452cd6f | 270 | ex | Elixir | lib/socializer/guardian.ex | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | lib/socializer/guardian.ex | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | lib/socializer/guardian.ex | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | defmodule Socializer.Guardian do
use Guardian, otp_app: :socializer
alias Socializer.User
def subject_for_token(resource, _claims) do
{:ok, to_string(resource.id)}
end
def resource_from_claims(claims) do
{:ok, User.find().(claims["sub"])}
end
end
| 19.285714 | 45 | 0.714815 |
73fae79d3dfe4afbe69492ad42f02e5747e7ef08 | 340 | ex | Elixir | lib/strava/model/time_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/model/time_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/model/time_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.TimeStream do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:original_size,
:resolution,
:series_type,
:data
]
@type t :: %__MODULE__{
original_size: integer(),
resolution: String.t(),
series_type: String.t(),
data: [integ... | 16.190476 | 35 | 0.547059 |
73fb0a1c82ca688e96b513b74dcc575f2a947099 | 503 | ex | Elixir | lib/mix/tasks/phoenix.server.ex | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | lib/mix/tasks/phoenix.server.ex | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | lib/mix/tasks/phoenix.server.ex | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phoenix.Server do
use Mix.Task
@shortdoc "Starts applications and their servers"
@recursive true
@moduledoc """
Starts the application by configuring all endpoints servers to run.
"""
def run(_args) do
Application.put_env :phoenix, :serve_endpoints, true
Mix.Task.run "app.sta... | 20.958333 | 69 | 0.701789 |
73fb1d36c861e07f2846b3afafd5a0642c09910b | 1,975 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/xpn_host_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/xpn_host_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/xpn_host_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.5 | 527 | 0.738228 |
73fbe58e9dc698d456f1dafbbd3865b02e65e2d6 | 1,822 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__discrete_value_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__discrete_value_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__discrete_value_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.740741 | 310 | 0.75247 |
73fc0c85201cab46d2e3d36819f34b2ee07232a2 | 583 | exs | Elixir | mix.exs | Stratus3D/ex_note | 21a54c1a39cfe8395eadec7d2249c345c493f4ea | [
"MIT"
] | null | null | null | mix.exs | Stratus3D/ex_note | 21a54c1a39cfe8395eadec7d2249c345c493f4ea | [
"MIT"
] | null | null | null | mix.exs | Stratus3D/ex_note | 21a54c1a39cfe8395eadec7d2249c345c493f4ea | [
"MIT"
] | null | null | null | defmodule ExNote.Mixfile do
use Mix.Project
def project do
[app: :ex_note,
version: "0.0.1",
elixir: "~> 1.0.5",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: []]
end
# Dependenci... | 18.806452 | 75 | 0.603774 |
73fc31c20df3150d0d9da86c8b038361a67f4b2c | 826 | ex | Elixir | test/support/fixtures/events_fixture.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 7 | 2021-01-22T00:20:04.000Z | 2022-03-30T22:07:32.000Z | test/support/fixtures/events_fixture.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 11 | 2021-10-05T03:59:28.000Z | 2022-03-20T21:54:44.000Z | test/support/fixtures/events_fixture.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 3 | 2021-06-10T02:48:54.000Z | 2021-10-09T03:43:06.000Z | defmodule OhioElixir.EventsFixture do
@moduledoc """
This module defines test helpers for creating
entities via the `OhioElixir.Events` context.
"""
alias OhioElixir.Events
alias OhioElixir.Events.Meeting
alias OhioElixir.Repo
def speaker_fixture(attrs \\ %{}) do
valid_attrs = %{
name: "some... | 21.179487 | 94 | 0.638015 |
73fc8aeb2572dc1c1fbecced088431153b092065 | 7,512 | ex | Elixir | lib/credo/code/strings.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 1 | 2021-12-01T13:37:43.000Z | 2021-12-01T13:37:43.000Z | lib/credo/code/strings.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | lib/credo/code/strings.ex | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.Code.Strings do
@moduledoc """
This module lets you strip strings from source code.
"""
alias Credo.Code.InterpolationHelper
alias Credo.SourceFile
@string_sigil_delimiters [
{"(", ")"},
{"[", "]"},
{"{", "}"},
{"<", ">"},
{"|", "|"},
{"\"", "\""},
{"'", "'"}
... | 26.450704 | 86 | 0.594249 |
73fca08bc7907fcf9ff624922d9678c19abaf91a | 1,419 | exs | Elixir | mix.exs | kommitters/seedex | 5c9a4ce70288488724a6059930b1b31f0f9dd5ed | [
"MIT"
] | null | null | null | mix.exs | kommitters/seedex | 5c9a4ce70288488724a6059930b1b31f0f9dd5ed | [
"MIT"
] | null | null | null | mix.exs | kommitters/seedex | 5c9a4ce70288488724a6059930b1b31f0f9dd5ed | [
"MIT"
] | null | null | null | defmodule Seedex.Mixfile do
use Mix.Project
@version "0.3.1"
def project do
[
app: :seedex,
version: @version,
elixir: "~> 1.13",
description: "Seed data generation for Ecto",
source_url: "https://github.com/danhper/seedex",
elixirc_paths: elixirc_paths(Mix.env()),
... | 24.465517 | 78 | 0.552502 |
73fcaa0bfcf7ae2c6fa4217628b430d8a1e1f301 | 662 | exs | Elixir | weather/mix.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | weather/mix.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | weather/mix.exs | benjohns1/elixer-app | 6e866ec084c5e75442c0b70f66e35f61b5b74d34 | [
"MIT"
] | null | null | null | defmodule Weather.Mixfile do
use Mix.Project
def project do
[
app: :weather,
escript: [ main_module: Weather.CLI ],
version: "0.1.0",
name: "Weather",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn... | 19.470588 | 88 | 0.555891 |
73fcaea98fbd998e39d19ef19bb8748f6ec5499f | 314 | ex | Elixir | test/support/test_helpers.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 2 | 2022-03-18T08:52:29.000Z | 2022-03-18T08:52:33.000Z | test/support/test_helpers.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 8 | 2021-09-15T11:52:45.000Z | 2022-01-10T13:13:53.000Z | test/support/test_helpers.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | null | null | null | defmodule ExComponentSchema.Test.Support.TestHelpers do
@spec load_schema_test(name :: String.t(), schema_tests_path :: String.t()) :: map | no_return
def load_schema_test(name, schema_tests_path) do
schema_tests_path
|> Path.join(name <> ".json")
|> File.read!()
|> Poison.decode!()
end
end
| 31.4 | 96 | 0.694268 |
73fcb3f2ce83b6d2e390b172ea05d785ef2f15d0 | 184 | exs | Elixir | test/fixtures/has_hex_dep/mix.exs | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | 1 | 2019-04-29T12:35:49.000Z | 2019-04-29T12:35:49.000Z | test/fixtures/has_hex_dep/mix.exs | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:19:59.000Z | 2021-06-25T15:19:59.000Z | test/fixtures/has_hex_dep/mix.exs | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | defmodule HasHexDep.Fixture.MixProject do
use Mix.Project
def project do
[app: :has_hex_dep, version: "0.0.1", deps: deps()]
end
defp deps do
[{:ecto, []}]
end
end
| 15.333333 | 55 | 0.63587 |
73fcc13c6328e08ef14066421d95b054f1ac4c35 | 1,628 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/serializers/key_serializer.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/serializers/key_serializer.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/serializers/key_serializer.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"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.56 | 74 | 0.719287 |
73fce62171017db0694516f5a83ba1f0fe3304fa | 539 | ex | Elixir | web/router.ex | aortbals/chatter | a0ac7af7a8bca66d183b0f51320f269066171199 | [
"MIT"
] | null | null | null | web/router.ex | aortbals/chatter | a0ac7af7a8bca66d183b0f51320f269066171199 | [
"MIT"
] | null | null | null | web/router.ex | aortbals/chatter | a0ac7af7a8bca66d183b0f51320f269066171199 | [
"MIT"
] | null | null | null | defmodule Chatter.Router do
use Phoenix.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Chatter do
pipe_through :browser # Use the default browser stack... | 17.966667 | 57 | 0.658627 |
73fcefc5b6df584a92e7959d656d34b3da6d32a4 | 86 | exs | Elixir | .formatter.exs | mneudert/lindel | 8b1dee8932edbe9bce80d39fce71c6b8d0ea7c03 | [
"WTFPL"
] | 4 | 2016-03-14T13:08:27.000Z | 2020-01-14T00:02:17.000Z | .formatter.exs | mneudert/plug_pagecache | d7d8a6e7fd61186b74e1c9151d955becf0d0e023 | [
"Apache-2.0"
] | null | null | null | .formatter.exs | mneudert/plug_pagecache | d7d8a6e7fd61186b74e1c9151d955becf0d0e023 | [
"Apache-2.0"
] | null | null | null | [
inputs: [
"{config,lib,test}/**/*.{ex,exs}",
"{.formatter,mix}.exs"
]
]
| 12.285714 | 38 | 0.453488 |
73fcfcb541c2d68cef59ce73b3963a646a918a65 | 1,366 | exs | Elixir | mix.exs | topaxi/google-api-elixir-client | 61348309772992b12e9d3069b61e215795866501 | [
"MIT"
] | 10 | 2017-02-08T08:42:37.000Z | 2018-04-27T01:04:34.000Z | mix.exs | topaxi/google-api-elixir-client | 61348309772992b12e9d3069b61e215795866501 | [
"MIT"
] | 7 | 2017-02-08T09:02:43.000Z | 2017-07-14T05:12:01.000Z | mix.exs | topaxi/google-api-elixir-client | 61348309772992b12e9d3069b61e215795866501 | [
"MIT"
] | 10 | 2017-02-08T08:42:40.000Z | 2020-07-20T09:56:21.000Z | defmodule Google.Mixfile do
use Mix.Project
def project do
[app: :google_api_client,
version: "1.1.0",
description: "Google API Client for Elixir",
package: package(),
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixir... | 24.836364 | 87 | 0.579063 |
73fd268cc7f23f52dab6f7313e05ad38d21577a2 | 2,419 | ex | Elixir | lib/sftp_client/operations/open_file.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 21 | 2019-08-06T01:39:15.000Z | 2021-04-15T20:08:04.000Z | lib/sftp_client/operations/open_file.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 19 | 2019-07-10T17:10:34.000Z | 2021-04-18T11:16:58.000Z | lib/sftp_client/operations/open_file.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 11 | 2019-07-04T14:56:37.000Z | 2021-04-26T19:09:22.000Z | defmodule SFTPClient.Operations.OpenFile do
@moduledoc """
A module that provides functions to open a file on an SFTP server in order to
read their contents.
"""
import SFTPClient.OperationUtil
alias SFTPClient.Conn
alias SFTPClient.Handle
alias SFTPClient.Operations.CloseHandle
@doc """
Opens a... | 28.127907 | 80 | 0.617197 |
73fd4e28c13eb2a1e33fe8b9c70fd47a91437d1e | 1,894 | ex | Elixir | clients/content/lib/google_api/content/v21/model/custom_attribute.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/custom_attribute.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/custom_attribute.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.735849 | 200 | 0.721225 |
73fdcb359529d96862a38eadae649088022a8b07 | 2,314 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/location.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... | 36.15625 | 129 | 0.687554 |
73fde2854da9d504ea93db1e6c614c81d313b491 | 2,294 | exs | Elixir | test/plug/adapters/test/conn_test.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/test/conn_test.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/test/conn_test.exs | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Adapters.Test.ConnTest do
use ExUnit.Case, async: true
import Plug.Test
test "read_req_body/2" do
conn = conn(:get, "/", "abcdefghij", headers: [{"content-type", "text/plain"}])
{adapter, state} = conn.adapter
assert {:more, "abcde", state} = adapter.read_req_body(state, length: 5)
... | 37.606557 | 101 | 0.59721 |
73fdff6a98667a7bd159a5fd76eb4b48ca782df4 | 1,116 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/eventer/measure.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/lib/omg_watcher/eventer/measure.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/eventer/measure.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 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 writi... | 31.885714 | 82 | 0.733871 |
73fe0612ff948ae2a874334150b54242e2e6334c | 120 | ex | Elixir | lib/console/repo.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | lib/console/repo.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | lib/console/repo.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.Repo do
use Ecto.Repo,
otp_app: :console,
adapter: Ecto.Adapters.Postgres
use Bourne
end
| 15 | 35 | 0.716667 |
73fe0d2962a59726a6743be4fbfec2bca8c41f66 | 1,314 | exs | Elixir | mix.exs | pragdave/quixir | 20381d1b9e7ec5854388dde1569e34a369bfe502 | [
"Apache-2.0"
] | 280 | 2016-07-27T06:58:40.000Z | 2022-03-18T21:27:33.000Z | mix.exs | pragdave/quixir | 20381d1b9e7ec5854388dde1569e34a369bfe502 | [
"Apache-2.0"
] | 17 | 2016-11-30T07:26:05.000Z | 2020-06-04T22:15:23.000Z | mix.exs | pragdave/quixir | 20381d1b9e7ec5854388dde1569e34a369bfe502 | [
"Apache-2.0"
] | 14 | 2016-08-05T14:05:13.000Z | 2018-03-14T15:26:23.000Z | defmodule Quixir.Mixfile do
use Mix.Project
@version "0.9.4"
@package [
licenses: [ "apache 2.0" ],
maintainers: [ "Dave Thomas (pragdave) <dave@pragdave.me>" ],
links: %{
"Github" => "https://github.com/pragdave/quixir",
},
]
@deps (if File.dir?("../pollution") do
[
... | 21.540984 | 69 | 0.479452 |
73fe2a5899c941b2d32b0b8d9732d7214d336fd2 | 236 | ex | Elixir | lib/phone/es/vi.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | lib/phone/es/vi.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | lib/phone/es/vi.ex | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | defmodule Phone.ES.VI do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(34)(945|845)(.{6})/
def area_name, do: "Álava"
def area_type, do: "province"
def area_abbreviation, do: "VI"
matcher(["34945", "34845"])
end
| 18.153846 | 41 | 0.644068 |
73fe42b7cda42a34c7d8348bec12774809022a78 | 718 | exs | Elixir | mix.exs | craigspaeth/elixir-api | 6b89274ef90af6b1255c263321c31c3630b14944 | [
"MIT"
] | null | null | null | mix.exs | craigspaeth/elixir-api | 6b89274ef90af6b1255c263321c31c3630b14944 | [
"MIT"
] | null | null | null | mix.exs | craigspaeth/elixir-api | 6b89274ef90af6b1255c263321c31c3630b14944 | [
"MIT"
] | null | null | null | defmodule Myapp.Mixfile do
use Mix.Project
def project do
[app: :myapp,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more inf... | 19.944444 | 77 | 0.575209 |
73fe49493c0ae414ba44ed256ec41bbcaeb9e482 | 933 | ex | Elixir | lib/codes/codes_n87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_n87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_N87 do
alias IcdCode.ICDCode
def _N870 do
%ICDCode{full_code: "N870",
category_code: "N87",
short_code: "0",
full_name: "Mild cervical dysplasia",
short_name: "Mild cervical dysplasia",
category_name: "Mild cervical dysplasia"
... | 27.441176 | 65 | 0.609861 |
73fe5de781f44ab9d4db824d977ed0f8b492fcfc | 183 | ex | Elixir | lib/jason.ex | thedelchop/monetized | 6366b62738573516340e5dd5a46c4edec0c2f61b | [
"MIT"
] | null | null | null | lib/jason.ex | thedelchop/monetized | 6366b62738573516340e5dd5a46c4edec0c2f61b | [
"MIT"
] | null | null | null | lib/jason.ex | thedelchop/monetized | 6366b62738573516340e5dd5a46c4edec0c2f61b | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Jason) do
defimpl Jason.Encoder, for: Monetized.Money do
def encode(%Monetized.Money{} = money, _options), do: Monetized.Money.to_string(money)
end
end
| 30.5 | 90 | 0.743169 |
73fe82ae62edb8255abe2ebdffa6ee5450cf03d3 | 497 | ex | Elixir | test/helpers/database_supervisor.ex | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | test/helpers/database_supervisor.ex | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | test/helpers/database_supervisor.ex | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.TestHelpers.DatabaseSupervisor do
@moduledoc false
@doc """
Restarts the database supervisor.
"""
@spec restart() :: :ok
def restart do
:ok =
case Process.whereis(Geolix.Database.Supervisor) do
nil ->
:ok
_pid ->
Supervisor.stop(Geolix.Databas... | 19.88 | 62 | 0.62173 |
73feaa956e1b4c7ae72f56466cff0e90edcaac1e | 259 | ex | Elixir | lib/web_driver_client/w3c_wire_protocol_client/response.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/w3c_wire_protocol_client/response.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/w3c_wire_protocol_client/response.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.W3CWireProtocolClient.Response do
@moduledoc false
alias WebDriverClient.HTTPResponse
defstruct [:body, :http_response]
@type t :: %__MODULE__{
body: term,
http_response: HTTPResponse.t()
}
end
| 19.923077 | 59 | 0.69112 |
73feb71b553bd845fee00a323e732cd8879100de | 1,487 | ex | Elixir | apps/chex/lib/chex_web.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | apps/chex/lib/chex_web.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | apps/chex/lib/chex_web.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | defmodule ChexWeb 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 ChexWeb, :controller
use ChexWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 22.876923 | 69 | 0.68191 |
73fec3abf4430700c9254aa62b44a40e55272539 | 122 | exs | Elixir | test/httpdigest_test.exs | Hermanverschooten/httpdigest | 30369b9b40ef8600be527a1b3233ff8d5b2461e3 | [
"MIT"
] | null | null | null | test/httpdigest_test.exs | Hermanverschooten/httpdigest | 30369b9b40ef8600be527a1b3233ff8d5b2461e3 | [
"MIT"
] | null | null | null | test/httpdigest_test.exs | Hermanverschooten/httpdigest | 30369b9b40ef8600be527a1b3233ff8d5b2461e3 | [
"MIT"
] | null | null | null | defmodule HttpdigestTest do
use ExUnit.Case
doctest Httpdigest
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.555556 | 27 | 0.688525 |
73fedcb04907adcaca5c2342c2cf6ff744556951 | 18,857 | ex | Elixir | lib/domo.ex | zetaron/Domo | 2159163378f1ad8dea5cbc31dea2ed827c9024ab | [
"MIT"
] | null | null | null | lib/domo.ex | zetaron/Domo | 2159163378f1ad8dea5cbc31dea2ed827c9024ab | [
"MIT"
] | null | null | null | lib/domo.ex | zetaron/Domo | 2159163378f1ad8dea5cbc31dea2ed827c9024ab | [
"MIT"
] | null | null | null | defmodule Domo do
@moduledoc Domo.Doc.readme_doc("<!-- Documentation -->")
@using_options Domo.Doc.readme_doc("<!-- using_options -->")
@new_raise_doc Domo.Doc.readme_doc("<!-- new!/1 -->")
@new_ok_doc Domo.Doc.readme_doc("<!-- new/2 -->")
@ensure_type_raise_doc Domo.Doc.readme_doc("<!-- ensure_type!/1 -->"... | 34.855823 | 128 | 0.676566 |
73fef35b46292a1cf9b133fcb20174134d3ea050 | 1,794 | exs | Elixir | config/dev.exs | zgohr/distillery-aws-example | 543daeae2d5b0d13a875414fea4f19b40ba68358 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | zgohr/distillery-aws-example | 543daeae2d5b0d13a875414fea4f19b40ba68358 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | zgohr/distillery-aws-example | 543daeae2d5b0d13a875414fea4f19b40ba68358 | [
"Apache-2.0"
] | 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 :distillery_example, ExampleWeb.Endpoint,
http... | 32.035714 | 170 | 0.707358 |
73fef6ce40d36ace36cd4d77c606d83ee0849cad | 44,456 | exs | Elixir | lib/elixir/test/elixir/kernel/errors_test.exs | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2020-01-14T18:44:56.000Z | 2020-01-14T18:44:56.000Z | lib/elixir/test/elixir/kernel/errors_test.exs | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/errors_test.exs | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ErrorsTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
defmacro hello do
quote location: :keep do
def hello, do: :world
end
end
test "no optional arguments in fn" do
assert_eval_raise CompileError,
... | 34.867451 | 155 | 0.536643 |
73ff2bcde5470e8b80e2fc5105697268e3b124d2 | 1,215 | ex | Elixir | lib/groupher_server/delivery/delegates/postman.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/delivery/delegates/postman.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/delivery/delegates/postman.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Delivery.Delegate.Postman do
@moduledoc """
The Delivery context.
"""
alias GroupherServer.Delivery.Delegate.{Mention, Notification}
def send(:mention, artiment, mentions, from_user) do
Mention.handle(artiment, mentions, from_user)
end
def send(:notify, attrs, from_user), d... | 40.5 | 92 | 0.740741 |
73ff41bb3c1d919526037268843b98fbf41b5434 | 217 | ex | Elixir | lib/graphql_with_absinthe_on_phoenix/graphql/mutations.ex | wbotelhos/graphql-with-absinthe-on-phoenix | f831d4c78bbba821ef2dd6deee5e3640aff864a5 | [
"MIT"
] | 1 | 2021-08-03T20:30:49.000Z | 2021-08-03T20:30:49.000Z | lib/graphql_with_absinthe_on_phoenix/graphql/mutations.ex | wbotelhos/graphql-with-absinthe-on-phoenix | f831d4c78bbba821ef2dd6deee5e3640aff864a5 | [
"MIT"
] | null | null | null | lib/graphql_with_absinthe_on_phoenix/graphql/mutations.ex | wbotelhos/graphql-with-absinthe-on-phoenix | f831d4c78bbba821ef2dd6deee5e3640aff864a5 | [
"MIT"
] | null | null | null | defmodule GraphqlWithAbsintheOnPhoenix.GraphQL.Mutations do
use Absinthe.Schema.Notation
alias GraphqlWithAbsintheOnPhoenix.GraphQL.Mutations
import_types(Mutations.Book)
import_types(Mutations.Session)
end
| 24.111111 | 59 | 0.852535 |
73ff654d8edc8e7c8dcde1b71f4744d5b4a8e404 | 903 | ex | Elixir | priv/catalogue/breadcrumb/example01.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 17 | 2021-02-18T20:10:52.000Z | 2021-12-30T14:41:00.000Z | priv/catalogue/breadcrumb/example01.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 9 | 2021-03-21T20:15:48.000Z | 2021-06-23T07:45:20.000Z | priv/catalogue/breadcrumb/example01.ex | dclausen/surface_bootstrap | f282b7c653160fb4b4ca687cf8fb13e68937884f | [
"MIT"
] | 10 | 2021-03-21T20:10:37.000Z | 2021-12-28T00:06:06.000Z | defmodule SurfaceBootstrap.Catalogue.Breadcrumb.Example01 do
use Surface.Catalogue.Example,
subject: SurfaceBootstrap.Breadcrumb,
catalogue: SurfaceBootstrap.Catalogue,
title: "As proplist",
height: "90px",
direction: "vertical"
@moduledoc """
Done in assigns:
```
breadcrumbs = [
... | 17.705882 | 61 | 0.471761 |
73ff6f9707791152c05bfe11958ac36f7a99eb2b | 847 | ex | Elixir | apps/admin_api/lib/admin_api/router.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/lib/admin_api/router.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/lib/admin_api/router.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.88 | 74 | 0.747344 |
73ff879ed5287c50058c20d67a900736c00f15ea | 7,391 | ex | Elixir | lib/glimesh/accounts/user.ex | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | lib/glimesh/accounts/user.ex | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | lib/glimesh/accounts/user.ex | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | defmodule Glimesh.Accounts.User do
use Ecto.Schema
use Waffle.Ecto.Schema
import Ecto.Changeset
@derive {Inspect, except: [:password]}
schema "users" do
field :username, :string
field :displayname, :string
field :email, :string
field :password, :string, virtual: true
field :hashed_passwor... | 29.682731 | 112 | 0.672034 |
73ff8ac9731c9631a5c01a56c548cb64a917689d | 1,026 | ex | Elixir | test/support/data_case.ex | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | test/support/data_case.ex | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | test/support/data_case.ex | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | defmodule EctoJobScheduler.DataBase do
@moduledoc false
use ExUnit.CaseTemplate
alias Ecto.Adapters.SQL.Sandbox
alias Ecto.Changeset
using do
quote do
alias EctoJobScheduler.Test.Repo
import Ecto
import Ecto.Changeset
import Ecto.Query
end
end
setup tags do
:ok = San... | 23.860465 | 77 | 0.668616 |
73ff935ad9c98f68f8ca6980f6ea541ac0ff002f | 1,106 | ex | Elixir | lib/mix/lib/mix/tasks/deps.check.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/mix/lib/mix/tasks/deps.check.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.check.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps.Check do
use Mix.Task
import Mix.Deps, only: [all: 0, format_dep: 1, format_status: 1, check_lock: 2, out_of_date?: 1]
@hidden true
@shortdoc "Check if all dependencies are valid"
@recursive :both
@moduledoc """
Checks if all dependencies are valid and if not, abort.
Prints t... | 28.358974 | 98 | 0.610307 |
73ff95613551ac86f98a3a953b4e17f952d1bf43 | 1,220 | ex | Elixir | 2020/otp/dash/test/support/conn_case.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/dash/test/support/conn_case.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/dash/test/support/conn_case.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule DashWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the t... | 27.727273 | 66 | 0.719672 |
73ff9c922684ecfe253b0f44d4f7499d06aa05c4 | 1,619 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/fhir_filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/fhir_filter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/fhir_filter.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... | 33.729167 | 165 | 0.747993 |
73ffd3e01d81335b9275087c200cc8ae0cb97779 | 499 | ex | Elixir | projects/sirena_email/lib/sirena_email_web/views/error_view.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | projects/sirena_email/lib/sirena_email_web/views/error_view.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | projects/sirena_email/lib/sirena_email_web/views/error_view.ex | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule SirenaEmailWeb.ErrorView do
use SirenaEmailWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the templ... | 29.352941 | 61 | 0.739479 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.