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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73df546811ac529efb7dfefe33b3e4aef075b9f4 | 1,037 | exs | Elixir | test/day_08_space_image_format_test.exs | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | 1 | 2019-12-02T16:27:06.000Z | 2019-12-02T16:27:06.000Z | test/day_08_space_image_format_test.exs | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | null | null | null | test/day_08_space_image_format_test.exs | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | 1 | 2020-12-10T10:47:21.000Z | 2020-12-10T10:47:21.000Z | defmodule Adventofcode.Day08SpaceImageFormatTest do
use Adventofcode.FancyCase
import ExUnit.CaptureIO
import Adventofcode.Day08SpaceImageFormat
describe "least_corrupted_layer/1" do
test "given an image 3 pixels wide and 2 pixels tall" do
assert 1 = "123456789012" |> least_corrupted_layer({3, 2})
... | 22.06383 | 64 | 0.604629 |
73df572f24eee1248edc427da3f84162b8add6ad | 604 | ex | Elixir | lib/teslamate/log/update.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | lib/teslamate/log/update.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | lib/teslamate/log/update.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMate.Log.Update do
use Ecto.Schema
import Ecto.Changeset
alias TeslaMate.Log.Car
schema "updates" do
field :start_date, :utc_datetime_usec
field :end_date, :utc_datetime_usec
field :version, :string
belongs_to :car, Car
end
@doc false
def changeset(update, attrs) do
... | 22.37037 | 54 | 0.68543 |
73df58f77300615d7ce7d169b025d6a164675a37 | 966 | ex | Elixir | lib/lovelace_integration/telegram/consumers/message_handler.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | lib/lovelace_integration/telegram/consumers/message_handler.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | lib/lovelace_integration/telegram/consumers/message_handler.ex | cciuenf/lovelaceccuenf_bot | 22a9d4e25d59cf3e5f1de4c4de8e257a6b44fba9 | [
"MIT"
] | null | null | null | defmodule LovelaceIntegration.Telegram.Consumers.MessageHandler do
@moduledoc """
Stateless GenServer that subscribes to telegram messages and
does something if they require an action
"""
use GenServer
require Logger
alias Lovelace.Events
alias LovelaceIntegration.Telegram
alias LovelaceIntegration.... | 23 | 66 | 0.700828 |
73df6a42ebe7a6f101b3d506fbafc060e4ebe9fe | 1,795 | ex | Elixir | clients/search_console/lib/google_api/search_console/v1/model/wmx_sitemap_content.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/search_console/lib/google_api/search_console/v1/model/wmx_sitemap_content.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/search_console/lib/google_api/search_console/v1/model/wmx_sitemap_content.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.867925 | 119 | 0.708078 |
73df70a8855484924572f9fc1f02bae70081385f | 83 | exs | Elixir | test/test_helper.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | test/test_helper.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | test/test_helper.exs | franknfjr/jaya_currency_converter | 56dfcf40b2ed2c9307fa39d7a5d1121cf4a1a37e | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(JayaCurrencyConverter.Repo, :manual)
| 27.666667 | 67 | 0.819277 |
73df7ebc005054900180c413b6e5508ba1b2b9c4 | 4,766 | exs | Elixir | test/actions/side_load_test.exs | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | test/actions/side_load_test.exs | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | test/actions/side_load_test.exs | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | defmodule Ash.Test.Actions.SideLoadTest do
@moduledoc false
use ExUnit.Case, async: false
import Ash.Changeset
require Ash.Query
defmodule Author do
@moduledoc false
use Ash.Resource,
data_layer: Ash.DataLayer.Ets,
authorizers: [
Ash.Test.Authorizer
]
ets do
priv... | 21.182222 | 89 | 0.578892 |
73dfdf2a4d53866ac81c153ae4264fde8102d855 | 2,035 | ex | Elixir | lib/membrane/element/base.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/base.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/base.ex | treble37/membrane-core | 3f7c7200a80eef370092ef252b5f75dc9eb16cbd | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.Base do
@moduledoc """
Modules in this namespace contain behaviours, default callback implementations
and other stuff useful when creating elements.
Elements are units that produce, process or consume data. They can be linked
with `Membrane.Pipeline`, and thus form a pipeline able ... | 46.25 | 82 | 0.768059 |
73e00208433135d7f625e5c5298214ef1aa892f5 | 2,187 | ex | Elixir | test/support/event_factory.ex | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | test/support/event_factory.ex | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | test/support/event_factory.ex | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | defmodule EventStore.EventFactory do
alias EventStore.{EventData,RecordedEvent}
@serializer Application.get_env(:eventstore, EventStore.Storage)[:serializer] || EventStore.JsonSerializer
defmodule Event do
@derive Jason.Encoder
defstruct event: nil
end
def create_events(number_of_events, initial_ev... | 29.958904 | 115 | 0.681299 |
73e04d2b99122bb0fd6f2957b0a5caf985ef7666 | 3,423 | ex | Elixir | apps/url_dispatcher/lib/mix/tasks/omg.server.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/url_dispatcher/lib/mix/tasks/omg.server.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/url_dispatcher/lib/mix/tasks/omg.server.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.23301 | 95 | 0.720421 |
73e05630f5df61e3cc13fe15b96c3925cfa50637 | 1,029 | ex | Elixir | lib/chat_server/endpoint.ex | aswani521/chat_server | 9400a6137992a48e7bc2dd0aebf05ad56e430fe3 | [
"MIT"
] | null | null | null | lib/chat_server/endpoint.ex | aswani521/chat_server | 9400a6137992a48e7bc2dd0aebf05ad56e430fe3 | [
"MIT"
] | null | null | null | lib/chat_server/endpoint.ex | aswani521/chat_server | 9400a6137992a48e7bc2dd0aebf05ad56e430fe3 | [
"MIT"
] | null | null | null | defmodule ChatServer.Endpoint do
use Phoenix.Endpoint, otp_app: :chat_server
socket "/socket", ChatServer.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug... | 25.725 | 69 | 0.715258 |
73e069561425c8b402dba464dd2833abee32a7c8 | 1,277 | ex | Elixir | lib/blinkchain/config.ex | cloud8421/blinkchain | bf49d0530c77293ae7b419432687ac77f5ce3890 | [
"MIT"
] | null | null | null | lib/blinkchain/config.ex | cloud8421/blinkchain | bf49d0530c77293ae7b419432687ac77f5ce3890 | [
"MIT"
] | null | null | null | lib/blinkchain/config.ex | cloud8421/blinkchain | bf49d0530c77293ae7b419432687ac77f5ce3890 | [
"MIT"
] | null | null | null | defmodule Blinkchain.Config do
@moduledoc """
Represents the placement of the NeoPixel devices on the virtual drawing canvas.
"""
alias Blinkchain.Config
alias Blinkchain.Config.{
Canvas,
Channel
}
@typedoc @moduledoc
@type t :: %__MODULE__{
canvas: Canvas.t(),
channel0: C... | 19.953125 | 111 | 0.61159 |
73e09f9e4420f7b98608e443db37ebe79b39e41c | 3,148 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/weighted_backend_service.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/weighted_backend_service.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/weighted_backend_service.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... | 54.275862 | 306 | 0.766836 |
73e0a8a37b728b692395cc63e4b5dc96a924599c | 2,629 | ex | Elixir | lib/assent/strategies/oauth/base.ex | lmeier/assent | 3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41 | [
"MIT"
] | null | null | null | lib/assent/strategies/oauth/base.ex | lmeier/assent | 3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41 | [
"MIT"
] | null | null | null | lib/assent/strategies/oauth/base.ex | lmeier/assent | 3f5a5d340eb1833cd9d6ada9d7e3056b7e3d4f41 | [
"MIT"
] | null | null | null | defmodule Assent.Strategy.OAuth.Base do
@moduledoc """
OAuth 1.0 strategy base.
## Usage
defmodule MyApp.MyOAuthStratey do
use Assent.Strategy.OAuth
@impl true
def default_config(_config) do
[
site: "https://api.example.com",
authorize_url: "/auth... | 29.211111 | 104 | 0.593762 |
73e0b53af9490230fa5308bcee65c8ae684c3955 | 260 | ex | Elixir | lib/afk/hid_report.ex | nerves-keyboard/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 4 | 2020-10-31T04:55:04.000Z | 2021-10-11T21:44:54.000Z | lib/afk/hid_report.ex | doughsay/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 46 | 2019-12-13T05:46:08.000Z | 2020-10-29T13:07:40.000Z | lib/afk/hid_report.ex | nerves-keyboard/afk | 9b7f55c98aa8c52dee3f134cef112c1361fe75f4 | [
"MIT"
] | 1 | 2020-01-02T13:35:03.000Z | 2020-01-02T13:35:03.000Z | defmodule AFK.HIDReport do
@moduledoc """
Defines a behaviour for converting an `AFK.State` struct into a binary USB HID
report.
Current implementations:
* `AFK.HIDReport.SixKeyRollover`
"""
@callback hid_report(AFK.State.t()) :: binary()
end
| 20 | 80 | 0.711538 |
73e0d6939dbc172dc2e6eb08380cd6ac843b05a5 | 1,580 | exs | Elixir | lib/euler_042.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | 8 | 2015-11-04T05:03:05.000Z | 2022-01-25T19:34:46.000Z | lib/euler_042.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | lib/euler_042.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | defmodule EulerFortyTwo do
@moduledoc """
The nth term of the sequence of triangle numbers is given by, tn =
½n(n+1); so the first ten triangle numbers are:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
By converting each letter in a word to a number corresponding to its
alphabetical position and adding these ... | 28.727273 | 70 | 0.620886 |
73e0f165f65eabdaeabdf3fd915b66fcd25f9c78 | 1,727 | ex | Elixir | lib/tamyda_web.ex | RobertDober/tamyda | ebcf60366a0475554b49c7b531c18c40a748e345 | [
"Apache-2.0"
] | null | null | null | lib/tamyda_web.ex | RobertDober/tamyda | ebcf60366a0475554b49c7b531c18c40a748e345 | [
"Apache-2.0"
] | null | null | null | lib/tamyda_web.ex | RobertDober/tamyda | ebcf60366a0475554b49c7b531c18c40a748e345 | [
"Apache-2.0"
] | null | null | null | defmodule TamydaWeb 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 TamydaWeb, :controller
use TamydaWeb, :view
The definitions below will be executed for every view,
controller, etc... | 23.337838 | 83 | 0.687319 |
73e1106601aee32955c9bec5462a2891f83d3773 | 677 | exs | Elixir | apps/spec_test_runner/mix.exs | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/spec_test_runner/mix.exs | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/spec_test_runner/mix.exs | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | defmodule SpecTestRunner.MixProject do
use Mix.Project
def project do
[
app: :spec_test_runner,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.10",
start_per... | 20.515152 | 59 | 0.565731 |
73e114ca4bbeaf6630922ec93dac99c64a26ef8d | 1,005 | ex | Elixir | test/support/conn_case.ex | Dania02525/widget_saas | 17b853f07be08a851c3e355863c18e15755cb7cb | [
"MIT"
] | 12 | 2016-01-27T01:30:42.000Z | 2019-12-07T20:31:01.000Z | test/support/conn_case.ex | Dania02525/widget_saas | 17b853f07be08a851c3e355863c18e15755cb7cb | [
"MIT"
] | 3 | 2016-11-22T12:22:59.000Z | 2017-08-01T17:26:40.000Z | test/support/conn_case.ex | Dania02525/widget_saas | 17b853f07be08a851c3e355863c18e15755cb7cb | [
"MIT"
] | 5 | 2016-07-11T18:39:02.000Z | 2019-10-23T03:22:49.000Z | defmodule WidgetSaas.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
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the... | 23.928571 | 69 | 0.710448 |
73e11daa5346a1fc3dfd59a5d20e6f1606e919cd | 1,991 | ex | Elixir | clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/model/search_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/model/search_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/knowledge_graph_search/lib/google_api/knowledge_graph_search/v1/model/search_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.87037 | 163 | 0.731793 |
73e1574aeb1f3e2d1014d3c0f38b9ed6dfacd63b | 707 | ex | Elixir | apps/my_app_web/lib/my_app_web/gettext.ex | robmckinnon/phoenix-umbrella-with-node-js-example | 48cce2d9d9fc4564bc5983840c66d09c6594462d | [
"MIT"
] | null | null | null | apps/my_app_web/lib/my_app_web/gettext.ex | robmckinnon/phoenix-umbrella-with-node-js-example | 48cce2d9d9fc4564bc5983840c66d09c6594462d | [
"MIT"
] | null | null | null | apps/my_app_web/lib/my_app_web/gettext.ex | robmckinnon/phoenix-umbrella-with-node-js-example | 48cce2d9d9fc4564bc5983840c66d09c6594462d | [
"MIT"
] | null | null | null | defmodule MyAppWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import MyAppWeb.Gettext
# Simple translation
gettext "Here is the s... | 28.28 | 72 | 0.680339 |
73e16d8e29cd0bd4da14cce4c9344e13c584407e | 396 | ex | Elixir | apps/rex_data/lib/rex_data/application.ex | baymax42/rex | 7c8571ac308960973fea9e8df77a6f1ad5c16906 | [
"MIT"
] | null | null | null | apps/rex_data/lib/rex_data/application.ex | baymax42/rex | 7c8571ac308960973fea9e8df77a6f1ad5c16906 | [
"MIT"
] | 16 | 2020-05-18T20:06:29.000Z | 2020-06-08T14:32:11.000Z | apps/rex_data/lib/rex_data/application.ex | baymax42/rex | 7c8571ac308960973fea9e8df77a6f1ad5c16906 | [
"MIT"
] | null | null | null | defmodule RexData.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
alias RexData.{Repo, State}
def start(_type, _args) do
children = [
Repo,
{State, %State{project: nil}}
]
Supervisor.start... | 20.842105 | 85 | 0.699495 |
73e18b41f31fbd6b927dfbd611b9c1d1d791aaff | 3,470 | ex | Elixir | lib/codes/codes_m45.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m45.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m45.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_M45 do
alias IcdCode.ICDCode
def _M450 do
%ICDCode{full_code: "M450",
category_code: "M45",
short_code: "0",
full_name: "Ankylosing spondylitis of multiple sites in spine",
short_name: "Ankylosing spondylitis of multiple sites in spine",
... | 35.773196 | 82 | 0.645245 |
73e18cf259c4678ae4cdf3910bcc3dc72d013816 | 2,113 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/safe_html_proto.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/safe_html_proto.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/safe_html_proto.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... | 44.957447 | 454 | 0.770942 |
73e1f90a93c6af8c5f4672a2a668d078db96360d | 30,514 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/resource_policies.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/resource_policies.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/resource_policies.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 48.666667 | 511 | 0.640984 |
73e1fd95d9405d2783b7486c1f9fd0b91190ac52 | 540 | ex | Elixir | lib/consul.ex | am-kantox/consul-ex | b1c5e1f44f1afe4fd6bd55010832d17b8284b547 | [
"MIT"
] | null | null | null | lib/consul.ex | am-kantox/consul-ex | b1c5e1f44f1afe4fd6bd55010832d17b8284b547 | [
"MIT"
] | null | null | null | lib/consul.ex | am-kantox/consul-ex | b1c5e1f44f1afe4fd6bd55010832d17b8284b547 | [
"MIT"
] | null | null | null | #
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 Undead Labs, LLC
#
defmodule Consul do
defmodule ResponseError do
defexception response: nil
def exception(value) do
%__MODULE__{response: value}
end
def message(%{response: response}) do
"Got non-200 OK status code: #{response.statu... | 18.62069 | 60 | 0.677778 |
73e21d92dcb75a0e31618d9a6c6d991f13f445a7 | 64 | ex | Elixir | test/support/accu_tester.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | test/support/accu_tester.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | test/support/accu_tester.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | defmodule Support.AccuTester do
use Accu
add_info 42
end
| 10.666667 | 31 | 0.75 |
73e253071816d8849dfd195e53cb2aa28e9bb3a8 | 135 | exs | Elixir | test/wrenex_test.exs | lkarthee/wrenex | 67c188374ea1bfdc14fc80a77baa44b9ff782be8 | [
"MIT"
] | 1 | 2020-09-27T10:23:56.000Z | 2020-09-27T10:23:56.000Z | test/wrenex_test.exs | lkarthee/wrenex | 67c188374ea1bfdc14fc80a77baa44b9ff782be8 | [
"MIT"
] | null | null | null | test/wrenex_test.exs | lkarthee/wrenex | 67c188374ea1bfdc14fc80a77baa44b9ff782be8 | [
"MIT"
] | null | null | null | defmodule WrenexTest do
use ExUnit.Case
doctest Wrenex
test "greets the world" do
assert Wrenex.hello() == :world
end
end
| 15 | 35 | 0.703704 |
73e26dd61a5657d593f06e142b335a669bc6cacd | 1,967 | exs | Elixir | test/week_in_month_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 6 | 2019-08-29T12:31:03.000Z | 2021-08-28T23:15:39.000Z | test/week_in_month_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 8 | 2019-11-08T09:13:00.000Z | 2021-12-26T05:34:28.000Z | test/week_in_month_test.exs | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 2 | 2020-05-08T12:19:01.000Z | 2022-03-03T14:53:06.000Z | defmodule Cldr.Calendar.WeekInMonth.Test do
use ExUnit.Case, async: true
import Cldr.Calendar.Helper
test "Week in month for gregorian dates with ISO Week configuration" do
assert Cldr.Calendar.week_of_month(~D[2019-01-01]) == {1, 1}
# The Gregorian calendar has an ISO Week week configuration
# So t... | 56.2 | 94 | 0.704626 |
73e2907d3b7454beaf5b5db0a8fa8a197fdf051e | 558 | ex | Elixir | lib/ambry/media/bookmark.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry/media/bookmark.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry/media/bookmark.ex | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Media.Bookmark do
@moduledoc """
A user defined bookmark for a specific media.
"""
use Ecto.Schema
import Ecto.Changeset
alias Ambry.Accounts.User
alias Ambry.Media.Media
schema "bookmarks" do
belongs_to :media, Media
belongs_to :user, User
field :position, :decimal
f... | 19.241379 | 60 | 0.679211 |
73e29a25c5dd89fea35d0a11712e0842d40818f4 | 1,081 | ex | Elixir | test/support/conn_case.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | test/support/conn_case.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | 8 | 2021-06-04T18:50:28.000Z | 2021-08-08T19:43:46.000Z | test/support/conn_case.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | defmodule HexFloraWeb.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 t... | 28.447368 | 62 | 0.73543 |
73e29dc7ddd4eafdcd001725bb72205fe1c30df5 | 81 | exs | Elixir | .formatter.exs | ma2gedev/power_assert_ex | e0131555e272a37dc41bda7df6ea544918034fcc | [
"Apache-2.0"
] | 228 | 2015-10-01T03:21:12.000Z | 2021-11-12T03:32:19.000Z | .formatter.exs | ma2gedev/power_assert_ex | e0131555e272a37dc41bda7df6ea544918034fcc | [
"Apache-2.0"
] | 28 | 2015-10-13T13:03:38.000Z | 2020-12-26T08:25:11.000Z | .formatter.exs | ma2gedev/power_assert_ex | e0131555e272a37dc41bda7df6ea544918034fcc | [
"Apache-2.0"
] | 9 | 2015-11-14T03:16:56.000Z | 2020-12-04T05:23:29.000Z | [
inputs: [
"{mix,.formatter}.exs",
"{config,lib}/**/*.{ex,exs}"
]
]
| 11.571429 | 32 | 0.432099 |
73e2c3ac78fbe3e3d07cdd9a390580aefc08f2ef | 236 | ex | Elixir | lib/email/sender.ex | jakehafdahl/email-service | 696c1fce52e0d432ade513ce6ad36edcd76ec0cd | [
"MIT"
] | null | null | null | lib/email/sender.ex | jakehafdahl/email-service | 696c1fce52e0d432ade513ce6ad36edcd76ec0cd | [
"MIT"
] | null | null | null | lib/email/sender.ex | jakehafdahl/email-service | 696c1fce52e0d432ade513ce6ad36edcd76ec0cd | [
"MIT"
] | null | null | null | defmodule ProfessorStats.WeeklyEmailSender do
def send(email_info) do
# pass email info into a template to let that do the email building
# for now just write the email info to a file
File.write("/", inspect email_info)
end
end | 29.5 | 69 | 0.762712 |
73e2d8d4cd8c599de9eb236c77c799e372740ded | 172 | exs | Elixir | priv/repo/migrations/20180123144215_add_avatar_to_sponsors.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | priv/repo/migrations/20180123144215_add_avatar_to_sponsors.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | priv/repo/migrations/20180123144215_add_avatar_to_sponsors.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Repo.Migrations.AddAvatarToSponsors do
use Ecto.Migration
def change do
alter table(:sponsors) do
add :avatar, :string
end
end
end
| 17.2 | 58 | 0.72093 |
73e31db731e8b4ec1693ff8b8ec9b1250664c17e | 1,596 | ex | Elixir | hello/lib/hello_web/endpoint.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | hello/lib/hello_web/endpoint.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | hello/lib/hello_web/endpoint.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | defmodule HelloWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hello
# 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,
key: "_hello_key",
... | 29.018182 | 97 | 0.716165 |
73e32ba3edf7104a5a230be25f29408325c3e486 | 1,627 | exs | Elixir | mix.exs | nerdslabs/plugmap | 19a3338c9f9558ecb94e35e1038a8651d4f20929 | [
"MIT"
] | 3 | 2017-07-25T20:01:32.000Z | 2019-10-27T06:30:21.000Z | mix.exs | nerdslabs/plugmap | 19a3338c9f9558ecb94e35e1038a8651d4f20929 | [
"MIT"
] | null | null | null | mix.exs | nerdslabs/plugmap | 19a3338c9f9558ecb94e35e1038a8651d4f20929 | [
"MIT"
] | null | null | null | defmodule Plugmap.Mixfile do
use Mix.Project
def project do
[app: :plugmap,
version: "0.2.0",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
description: description(),
deps: deps(),
# Docs
name: "Plug... | 25.030769 | 79 | 0.587585 |
73e3623ea6aec7e428da749d20f94abc4350449c | 7,524 | ex | Elixir | lib/chalk_authorization.ex | Coruja-Digital/chalk_authorization | 376bff2e769634cba4f8cfd048ab6227e0d7a477 | [
"MIT"
] | null | null | null | lib/chalk_authorization.ex | Coruja-Digital/chalk_authorization | 376bff2e769634cba4f8cfd048ab6227e0d7a477 | [
"MIT"
] | null | null | null | lib/chalk_authorization.ex | Coruja-Digital/chalk_authorization | 376bff2e769634cba4f8cfd048ab6227e0d7a477 | [
"MIT"
] | null | null | null | defmodule ChalkAuthorization do
@moduledoc """
Chalk is an authorization module with support for roles that can handle configurable custom actions and permissions. It also supports user and group based authorization.
It is inspired in the Unix file permissions.
"""
@doc """
Chalk integrates the next funct... | 30.096 | 171 | 0.578283 |
73e39b4b44018203bba31aa5bc4bc6f058ff1d54 | 3,197 | ex | Elixir | lib/auto_api/states/lights_state.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | lib/auto_api/states/lights_state.ex | highmobility/auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"MIT"
] | 5 | 2020-07-16T07:20:21.000Z | 2021-09-22T10:18:04.000Z | lib/auto_api/states/lights_state.ex | highmobility/hm-auto-api-elixir | 026c3f50871c56877a4acd5f39a8887118a87bb5 | [
"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... | 35.921348 | 96 | 0.689396 |
73e3b0ded9cc35c5d0673636f045fbb9cbbb93f0 | 1,369 | exs | Elixir | test/boltkit_test.exs | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 242 | 2016-09-09T22:32:00.000Z | 2022-02-20T18:50:29.000Z | test/boltkit_test.exs | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 100 | 2016-10-18T04:19:09.000Z | 2021-11-15T19:14:47.000Z | test/boltkit_test.exs | kristofka/bolt_sips | 2471f35862b6031bb14626c941f3bc04b1949066 | [
"Apache-2.0"
] | 51 | 2016-10-31T20:05:52.000Z | 2022-01-20T11:45:49.000Z | defmodule Bolt.Sips.BoltStubTest do
@moduledoc """
!!Remember!!
you cannot reuse the boltstub across the tests, therefore must use a
unique prefix or use the one returned by the BoltKitCase
"""
use Bolt.Sips.BoltKitCase, async: false
@moduletag :boltkit
@tag boltkit: %{
url: "bolt://127.0... | 27.938776 | 72 | 0.449233 |
73e3c81787f8045c389092ab06a88f6caea8bff3 | 299 | ex | Elixir | lib/inmana.ex | marciorasf/next-level-week-5-Elixir | 5af63fcf04202111db22209f61928772dbb167ad | [
"MIT"
] | null | null | null | lib/inmana.ex | marciorasf/next-level-week-5-Elixir | 5af63fcf04202111db22209f61928772dbb167ad | [
"MIT"
] | null | null | null | lib/inmana.ex | marciorasf/next-level-week-5-Elixir | 5af63fcf04202111db22209f61928772dbb167ad | [
"MIT"
] | null | null | null | defmodule Inmana do
alias Inmana.{Restaurants, Supplies}
# Restaurants
defdelegate create_restaurant(params), to: Restaurants.Create, as: :call
# Supplies
defdelegate create_supply(params), to: Supplies.Create, as: :call
defdelegate get_supply(params), to: Supplies.Get, as: :call
end
| 27.181818 | 74 | 0.755853 |
73e3dd9cbae64b592628e716b5e47d7fff5398f6 | 376 | ex | Elixir | discuss/lib/discuss_web/controllers/plugs/set_user.ex | ivoferro/elixir_phoenix_bootcamp | e3445dbf90c1eea81e8aa34cc7801934a516d7d7 | [
"MIT"
] | null | null | null | discuss/lib/discuss_web/controllers/plugs/set_user.ex | ivoferro/elixir_phoenix_bootcamp | e3445dbf90c1eea81e8aa34cc7801934a516d7d7 | [
"MIT"
] | null | null | null | discuss/lib/discuss_web/controllers/plugs/set_user.ex | ivoferro/elixir_phoenix_bootcamp | e3445dbf90c1eea81e8aa34cc7801934a516d7d7 | [
"MIT"
] | null | null | null | defmodule DiscussWeb.Plugs.SetUser do
import Plug.Conn
alias Discuss.Accounts
def init(_params) do
end
def call(conn, _params) do
user_id =
conn
|> get_session(:user_id)
cond do
user = user_id && Accounts.get_user!(user_id) ->
conn
|> assign(:user, user)
tru... | 16.347826 | 54 | 0.593085 |
73e3ec5e26d3eee06d55815d0edf721b46ca6d4b | 856 | ex | Elixir | lib/triton/keyspace.ex | jonzlin95/triton | 7201102a10148db27bac1172f0f4d5fec5672674 | [
"MIT"
] | 71 | 2017-11-29T03:40:54.000Z | 2022-01-10T22:11:48.000Z | lib/triton/keyspace.ex | jonzlin95/triton | 7201102a10148db27bac1172f0f4d5fec5672674 | [
"MIT"
] | 19 | 2018-04-13T18:25:05.000Z | 2020-12-24T05:22:41.000Z | lib/triton/keyspace.ex | jonzlin95/triton | 7201102a10148db27bac1172f0f4d5fec5672674 | [
"MIT"
] | 23 | 2017-11-02T21:34:54.000Z | 2021-08-24T08:29:34.000Z | defmodule Triton.Keyspace do
defmacro __using__(_) do
quote do
import Triton.Keyspace
end
end
defmacro keyspace(name, [conn: conn], [do: block]) do
quote do
@after_compile __MODULE__
@keyspace []
@fields %{}
unquote(block)
Module.put_attribute(__MODULE__, :keysp... | 22.526316 | 89 | 0.63785 |
73e42984edceee6ddd4628986316fa89259ec6b0 | 2,502 | ex | Elixir | apps/ex_cucumber/lib/ex_cucumber/gherkin/traverser/scenario_traverser.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-05-18T18:20:05.000Z | 2022-02-13T00:15:06.000Z | apps/ex_cucumber/lib/ex_cucumber/gherkin/traverser/scenario_traverser.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 2 | 2021-04-22T00:28:17.000Z | 2021-05-19T21:04:20.000Z | apps/ex_cucumber/lib/ex_cucumber/gherkin/traverser/scenario_traverser.ex | Ajwah/ex_cucumber | f2b9cf06caeef624c66424ae6160f274dc133fc6 | [
"Apache-2.0"
] | 4 | 2021-04-14T03:07:45.000Z | 2021-12-12T21:23:59.000Z | defmodule ExCucumber.Gherkin.Traverser.Scenario do
@moduledoc false
alias ExCucumber.Gherkin.Traverser.Ctx
alias ExCucumber.Gherkin.Traverser, as: MainTraverser
alias ExGherkin.AstNdjson.Examples
def run(%ExGherkin.AstNdjson.Scenario{} = s, acc, parse_tree) do
s
|> relevant_examples
|> Enum.each... | 28.758621 | 97 | 0.586731 |
73e42fc42d8f5d7c52e199bf07022a1ca90844e6 | 882 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.666667 | 74 | 0.758503 |
73e44a0692dfd87ab0c8e9b50f2d317b6a656746 | 1,854 | ex | Elixir | lib/protobuf/extype/timestamp.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 4 | 2021-01-16T02:21:44.000Z | 2022-03-04T18:42:18.000Z | lib/protobuf/extype/timestamp.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 5 | 2020-04-07T20:22:38.000Z | 2020-09-23T02:28:36.000Z | lib/protobuf/extype/timestamp.ex | addcninblue/protobuf-elixir | a18144710fe394909a37d4533bbc28a5636311d1 | [
"MIT"
] | 4 | 2020-07-22T23:38:34.000Z | 2021-03-26T18:52:54.000Z | defimpl Extype.Protocol, for: Google.Protobuf.Timestamp do
@moduledoc """
Implement DateTime and NaiveDateTime casting for Google Timestamp.
"""
def validate_and_to_atom_extype!(Google.Protobuf.Timestamp, "NaiveDateTime.t()"),
do: :naivedatetime
def validate_and_to_atom_extype!(Google.Protobuf.Timestamp... | 34.333333 | 95 | 0.70658 |
73e4640220457f1a38440d3d0bed5a5145c12aa7 | 1,970 | exs | Elixir | config/prod.exs | esemeniuc/selfme | f6f11eb32bab909c199d7a2090a8370470feaf27 | [
"MIT"
] | 1 | 2019-07-21T00:36:01.000Z | 2019-07-21T00:36:01.000Z | config/prod.exs | esemeniuc/selfme | f6f11eb32bab909c199d7a2090a8370470feaf27 | [
"MIT"
] | 10 | 2019-08-01T03:50:13.000Z | 2022-02-26T15:50:07.000Z | config/prod.exs | esemeniuc/selfme | f6f11eb32bab909c199d7a2090a8370470feaf27 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.178571 | 66 | 0.71269 |
73e4b0fc1f74825e15bd9ef05de3ef65f409989a | 2,799 | ex | Elixir | lib/nebulex_redis_adapter/cluster.ex | scottming/nebulex_redis_adapter | 896a023f7048473f7330e85274e4e90789eafdaf | [
"MIT"
] | null | null | null | lib/nebulex_redis_adapter/cluster.ex | scottming/nebulex_redis_adapter | 896a023f7048473f7330e85274e4e90789eafdaf | [
"MIT"
] | null | null | null | lib/nebulex_redis_adapter/cluster.ex | scottming/nebulex_redis_adapter | 896a023f7048473f7330e85274e4e90789eafdaf | [
"MIT"
] | null | null | null | defmodule NebulexRedisAdapter.Cluster do
# Default Cluster
@moduledoc false
alias NebulexRedisAdapter.Cluster.Supervisor, as: ClusterSupervisor
alias NebulexRedisAdapter.{Connection, Pool}
@type hash_slot :: {:"$hash_slot", term}
@type node_entry :: {node_name :: atom, pool_size :: pos_integer}
@type no... | 27.712871 | 98 | 0.622365 |
73e4bd4ac7440a73a717ca45a19e4eede81886b7 | 1,153 | ex | Elixir | lib/iban/iban.ex | ionutm87/validators_ro | 8a78dc87a25419373f714380fa81d15d8516fa19 | [
"MIT"
] | 1 | 2016-09-06T17:40:46.000Z | 2016-09-06T17:40:46.000Z | lib/iban/iban.ex | ionutm87/validators_ro | 8a78dc87a25419373f714380fa81d15d8516fa19 | [
"MIT"
] | null | null | null | lib/iban/iban.ex | ionutm87/validators_ro | 8a78dc87a25419373f714380fa81d15d8516fa19 | [
"MIT"
] | 1 | 2020-11-27T16:10:53.000Z | 2020-11-27T16:10:53.000Z | defmodule ValidatorsRo.IBAN do
@moduledoc """
See `ValidatorsRo`
"""
defmacro __using__(_opts) do
quote location: :keep do
@bic_regexp ~r"([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$"
@doc """
Provides basic validation of *Romanian* IBANs
http://www.bnr.ro/files/d/L... | 23.530612 | 82 | 0.501301 |
73e4ec6612d59ee86223fce42955268fa0710796 | 957 | ex | Elixir | Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/model/canonical_support_plan_response_envelope.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/model/canonical_support_plan_response_envelope.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Addons/lib/microsoft/azure/management/preview/addons/model/canonical_support_plan_response_envelope.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Preview.Addons.Model.CanonicalSupportPlanResponseEnvelope do
@moduledoc """
The status of the Canonical support pla... | 28.147059 | 131 | 0.724138 |
73e4f9fc5aacbcd7c32f42550ee0b34a2b83c44e | 735 | exs | Elixir | apps/neoscan_sync/test/neoscan_sync/token_syncer_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan_sync/test/neoscan_sync/token_syncer_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan_sync/test/neoscan_sync/token_syncer_test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | defmodule NeoscanSync.TokenSyncerTest do
use NeoscanSync.DataCase
alias Neoscan.Repo
alias Neoscan.Asset
alias NeoscanSync.TokenSyncer
test "handle_cast/2" do
contract = Base.decode16!("3a4acd3647086e7c44398aac0349802e6a171129", case: :mixed)
assert {:noreply, %{contracts: [contract]}} ==
... | 26.25 | 87 | 0.598639 |
73e52a4b52f3262485995ff58997c7aab6c7d490 | 257 | ex | Elixir | test/support/models/channel/sms_result.ex | bducharme/polymorphic_embed | a9ec68169bc14e41b07cac479558d0b367c38379 | [
"Apache-2.0"
] | null | null | null | test/support/models/channel/sms_result.ex | bducharme/polymorphic_embed | a9ec68169bc14e41b07cac479558d0b367c38379 | [
"Apache-2.0"
] | null | null | null | test/support/models/channel/sms_result.ex | bducharme/polymorphic_embed | a9ec68169bc14e41b07cac479558d0b367c38379 | [
"Apache-2.0"
] | 1 | 2022-01-25T00:37:17.000Z | 2022-01-25T00:37:17.000Z | defmodule PolymorphicEmbed.Channel.SMSResult do
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:success, :boolean)
end
def changeset(struct, attrs) do
struct
|> cast(attrs, [:success])
end
end
| 16.0625 | 47 | 0.712062 |
73e55a628e27a19e30b7f3f81f4f529d3a486e8a | 4,025 | ex | Elixir | lib/exdns/zone/cache.ex | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 16 | 2016-05-26T10:11:57.000Z | 2021-01-08T15:09:19.000Z | lib/exdns/zone/cache.ex | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 9 | 2016-08-11T00:48:27.000Z | 2020-09-16T22:10:07.000Z | lib/exdns/zone/cache.ex | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 11 | 2016-08-10T08:13:36.000Z | 2021-04-03T10:20:11.000Z | defmodule Exdns.Zone.Cache do
@moduledoc """
In-memory cache for all zones.
"""
use GenServer
require Exdns.Records
def start_link() do
GenServer.start_link(__MODULE__, [], name: Exdns.Zone.Cache)
end
def find_zone(qname) do
find_zone(normalize_name(qname), get_authority(qname))
end
def ... | 25.314465 | 167 | 0.624099 |
73e587ff66e9c1d1d06aff920559b69b8f414cfc | 6,474 | ex | Elixir | apps/tai/lib/tai/commander.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/commander.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/commander.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.Commander do
use GenServer
def start_link(_) do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def accounts(options \\ []) do
options |> to_dest() |> GenServer.call(:accounts)
end
def products(options \\ []) do
options |> to_dest() |> GenServer.call(:products)
end... | 30.394366 | 98 | 0.693543 |
73e59a579cb6b9cb456a5b81403f8beb9865c023 | 55,684 | ex | Elixir | clients/file/lib/google_api/file/v1/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/api/projects.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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... | 46.480801 | 607 | 0.611325 |
73e5ace87f8ceee463e9dc24600c6fbbdaea25be | 2,023 | ex | Elixir | lib/chat_api/messages/message.ex | J0/papercups | a896081727abae07982a79fdf5b649354155f3a4 | [
"MIT"
] | null | null | null | lib/chat_api/messages/message.ex | J0/papercups | a896081727abae07982a79fdf5b649354155f3a4 | [
"MIT"
] | null | null | null | lib/chat_api/messages/message.ex | J0/papercups | a896081727abae07982a79fdf5b649354155f3a4 | [
"MIT"
] | null | null | null | defmodule ChatApi.Messages.Message do
use Ecto.Schema
import Ecto.Changeset
alias ChatApi.Conversations.Conversation
alias ChatApi.Accounts.Account
alias ChatApi.Customers.Customer
alias ChatApi.Users.User
alias ChatApi.Messages.MessageFile
@type t :: %__MODULE__{
body: String.t(),
... | 26.618421 | 76 | 0.601582 |
73e6421eeeaddedf0aded04e85b179ed974d7853 | 41,870 | exs | Elixir | test/browser_test.exs | exit9/elixir-browser | d89daf3585f0ce942629decdce8e2a5542b30ead | [
"MIT"
] | 33 | 2018-10-17T23:39:35.000Z | 2022-03-09T11:17:00.000Z | test/browser_test.exs | exit9/elixir-browser | d89daf3585f0ce942629decdce8e2a5542b30ead | [
"MIT"
] | 6 | 2018-11-06T19:19:32.000Z | 2022-03-14T07:45:53.000Z | test/browser_test.exs | exit9/elixir-browser | d89daf3585f0ce942629decdce8e2a5542b30ead | [
"MIT"
] | 9 | 2019-02-07T10:31:37.000Z | 2022-02-18T03:35:12.000Z | defmodule BrowserTest do
use ExUnit.Case
use Plug.Test
import Plug.Conn
alias Browser.Ua
test "returns empty string when Conn has no user-agent header" do
assert conn(:get, "/") |> Ua.to_ua == ""
end
test "retrieves first UA when Conn has user-agent header" do
conn = conn(:get, "/")
|> pu... | 29.30021 | 90 | 0.668545 |
73e679da988e85c412e3b0a0fd0f83b0c09aebdd | 1,282 | exs | Elixir | test/surface_bulma/navbar_test.exs | kianmeng/surface_bulma | 68c81e6364f7951ca688d924c9338ad062a311a1 | [
"MIT"
] | 30 | 2021-02-05T18:50:38.000Z | 2022-03-12T22:42:29.000Z | test/surface_bulma/navbar_test.exs | kianmeng/surface_bulma | 68c81e6364f7951ca688d924c9338ad062a311a1 | [
"MIT"
] | 19 | 2021-01-15T19:14:24.000Z | 2022-02-05T14:57:18.000Z | test/surface_bulma/navbar_test.exs | kianmeng/surface_bulma | 68c81e6364f7951ca688d924c9338ad062a311a1 | [
"MIT"
] | 17 | 2021-02-01T20:57:51.000Z | 2022-03-20T17:06:57.000Z | defmodule SurfaceBulma.NavbarTest do
use SurfaceBulma.ConnCase, async: true
alias SurfaceBulma.Link
alias SurfaceBulma.Navbar
alias SurfaceBulma.Navbar.{Brand, Item, Start, End}
test "basic navbar with start and end" do
html =
render_surface do
~F"""
<Navbar id="main-menu">
... | 22.103448 | 56 | 0.528861 |
73e6c9b62fccf223909e85c0b833aba97c6bbb52 | 1,123 | ex | Elixir | installer/templates/phx_live/live/page_live.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 7 | 2021-01-31T04:51:08.000Z | 2022-01-09T06:59:28.000Z | installer/templates/phx_live/live/page_live.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 2 | 2022-02-19T07:30:25.000Z | 2022-02-27T14:12:26.000Z | installer/templates/phx_live/live/page_live.ex | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 2 | 2021-02-06T08:40:23.000Z | 2021-03-20T16:35:47.000Z | defmodule <%= @web_namespace %>.PageLive do
use <%= @web_namespace %>, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, query: "", results: %{})}
end
@impl true
def handle_event("suggest", %{"q" => query}, socket) do
{:noreply, assign(socket, results: search(query... | 28.075 | 84 | 0.592164 |
73e6f94eabfddb0d950f01d2e0d13d34b9b05c6b | 1,634 | ex | Elixir | lib/livebook_web/live/home_live/import_url_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live/import_url_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live/import_url_component.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.HomeLive.ImportUrlComponent do
use LivebookWeb, :live_component
alias Livebook.{ContentLoader, Utils}
@impl true
def mount(socket) do
{:ok, assign(socket, url: "", error_message: nil)}
end
@impl true
def render(assigns) do
~H"""
<div class="flex-col space-y-5">
<... | 26.786885 | 85 | 0.554468 |
73e774509a4031243288abe273c58fe3e5febb1d | 257 | ex | Elixir | lib/checker_mal.ex | Hiyori-API/checker-mal | c52f6e8a248ba160ffebc2c9369a933fc8fc4499 | [
"MIT"
] | 10 | 2020-06-12T18:36:58.000Z | 2022-02-20T11:07:49.000Z | lib/checker_mal.ex | Hiyori-API/checker-mal | c52f6e8a248ba160ffebc2c9369a933fc8fc4499 | [
"MIT"
] | 7 | 2020-05-08T06:03:08.000Z | 2022-01-24T02:57:16.000Z | lib/checker_mal.ex | Hiyori-API/checker-mal | c52f6e8a248ba160ffebc2c9369a933fc8fc4499 | [
"MIT"
] | 1 | 2020-12-03T03:49:27.000Z | 2020-12-03T03:49:27.000Z | defmodule CheckerMal do
@moduledoc """
CheckerMal keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
73e793f1817780f36e055b8977693e966bf5997f | 3,305 | ex | Elixir | lib/serum/renderer.ex | dragsubil/Serum | a465c48b388ef1e6d69ee6e8793f2869035b0520 | [
"MIT"
] | null | null | null | lib/serum/renderer.ex | dragsubil/Serum | a465c48b388ef1e6d69ee6e8793f2869035b0520 | [
"MIT"
] | null | null | null | lib/serum/renderer.ex | dragsubil/Serum | a465c48b388ef1e6d69ee6e8793f2869035b0520 | [
"MIT"
] | null | null | null | defmodule Serum.Renderer do
@moduledoc """
This module provides functions for rendering pages into HTML.
"""
import Serum.Util
alias Serum.Error
alias Serum.Build
@type state :: Build.state
@re_media ~r/(?<type>href|src)="(?:%|%25)media:(?<url>[^"]*)"/
@re_old_post ~r/(?<type>href|src)="(?:%|%25)po... | 31.47619 | 80 | 0.629652 |
73e79a2a8c04f05dd8933a350f7c3b27dbcc832b | 1,022 | ex | Elixir | apps/neoscan/lib/neoscan/tx_abstract/tx_abstract.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan/lib/neoscan/tx_abstract/tx_abstract.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan/lib/neoscan/tx_abstract/tx_abstract.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | defmodule Neoscan.TxAbstracts.TxAbstract do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
alias Neoscan.TxAbstracts.TxAbstract
schema "tx_abstracts" do
field(:address_from, :string)
field(:address_to, :string)
field(:amount, :string)
field(:block_height, :integer)
field(:txid, :s... | 20.44 | 98 | 0.608611 |
73e7bbc0cb456c53a02208800779f3a50fd623f7 | 2,362 | ex | Elixir | lib/printer/utils/elm_types.ex | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | lib/printer/utils/elm_types.ex | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | lib/printer/utils/elm_types.ex | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | defmodule JS2E.Printer.Utils.ElmTypes do
@moduledoc ~S"""
Module containing common utility functions for outputting Elm `type`
and `type alias` definitions.
"""
require Logger
alias JS2E.Printer
alias JsonSchema.Types
alias Printer.{ErrorUtil, PrinterError, Utils}
alias Types.{PrimitiveType, SchemaDe... | 25.12766 | 77 | 0.623624 |
73e7be3525298aa19a41edf0ac4a5e1015fbdd21 | 1,532 | ex | Elixir | farmbot_core/lib/farmbot_core/firmware_tty_detector.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_core/lib/farmbot_core/firmware_tty_detector.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/firmware_tty_detector.ex | bluewaysw/farmbot_os | 3449864bc5c17a688ec2fe75e4a5cf247da57806 | [
"MIT"
] | null | null | null | defmodule FarmbotCore.FirmwareTTYDetector do
use GenServer
require Logger
alias Circuits.UART
@error_retry_ms 5_000
if System.get_env("FARMBOT_TTY") do
@expected_names ["ttyUSB0", "ttyAMA0", "ttyACM0", System.get_env("FARMBOT_TTY")]
else
@expected_names ["ttyUSB0", "ttyAMA0", "ttyACM0"]
end
@... | 23.212121 | 84 | 0.66906 |
73e7d6e7a3a1764e39c1a070d7924f46fa0020ac | 255 | exs | Elixir | admin/priv/repo/migrations/20161220141846_create_user.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | admin/priv/repo/migrations/20161220141846_create_user.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | admin/priv/repo/migrations/20161220141846_create_user.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | defmodule Admin.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :email, :string
add :bio, :string
add :password, :string
timestamps()
end
end
end
| 15.9375 | 45 | 0.627451 |
73e7df639d7ee51895ccdf749cbb1bf2d19b93f0 | 1,013 | ex | Elixir | lib/goodbye_pulls_web/views/error_helpers.ex | CORDEA/goodbye_pulls | 37544b4101f82da0507c9ca83dfce78152bdca90 | [
"Apache-2.0"
] | null | null | null | lib/goodbye_pulls_web/views/error_helpers.ex | CORDEA/goodbye_pulls | 37544b4101f82da0507c9ca83dfce78152bdca90 | [
"Apache-2.0"
] | null | null | null | lib/goodbye_pulls_web/views/error_helpers.ex | CORDEA/goodbye_pulls | 37544b4101f82da0507c9ca83dfce78152bdca90 | [
"Apache-2.0"
] | null | null | null | defmodule GoodbyePullsWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# Because error messages were defined within Ecto, we must
# call the Gettext module p... | 33.766667 | 81 | 0.677196 |
73e8147102a6e42a776042d737a0177a6c85381e | 41 | exs | Elixir | .medic/require.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 30 | 2021-06-01T16:59:35.000Z | 2022-03-25T16:56:19.000Z | .medic/require.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 35 | 2021-06-10T17:05:31.000Z | 2022-02-11T22:30:36.000Z | .medic/require.exs | dbrody/playwright-elixir | 48611c08dbdb8e36aa4dd8aa2d97a4014b753815 | [
"MIT"
] | 4 | 2021-08-13T20:38:18.000Z | 2022-01-31T04:32:35.000Z | Mix.install([
{:medic, force: true}
])
| 10.25 | 23 | 0.585366 |
73e817ada5eb20c3df68d45d67803ac926d08d3a | 878 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/pub_sub/lib/google_api/pub_sub/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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.518519 | 74 | 0.757403 |
73e86f7b67f7a7ea11cd2e56a7b14671ab8f0fdf | 538 | ex | Elixir | lib/hexpm/repository/package_owner.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/package_owner.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/package_owner.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.PackageOwner do
use Hexpm.Web, :schema
schema "package_owners" do
field :level, :string, default: "full"
belongs_to :package, Package
belongs_to :user, User
timestamps()
end
@valid_levels ["full", "maintainer"]
def changeset(package_owner, params) do
cast(pa... | 24.454545 | 94 | 0.704461 |
73e8a52a954077059f0ee8882b8c1857c432fb5e | 8,303 | ex | Elixir | lib/changelog/data/episode/episode.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog/data/episode/episode.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog/data/episode/episode.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | defmodule Changelog.Episode do
use Changelog.Data, default_sort: :published_at
alias Changelog.{EpisodeHost, EpisodeGuest, EpisodeTopic, EpisodeStat,
EpisodeSponsor, Files, NewsItem, Podcast, Regexp, Transcripts}
alias ChangelogWeb.{EpisodeView, TimeView}
schema "episodes" do
field :slu... | 34.740586 | 147 | 0.680116 |
73e8b28b88b2cdc4c441b5a222eccb01e6122b16 | 7,342 | ex | Elixir | lib/core/registry.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | lib/core/registry.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | lib/core/registry.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | defmodule PromEx.TelemetryMetricsPrometheus.Core.Registry do
@moduledoc false
use GenServer
require Logger
alias Telemetry.Metrics
alias PromEx.TelemetryMetricsPrometheus.Core.{Counter, Distribution, LastValue, Sum}
@type name :: atom()
@type metric_exists_error() :: {:error, :already_exists, Metrics.t... | 31.51073 | 112 | 0.658268 |
73e8c3d8cf551275101f19205008e98d75b5ebf0 | 734 | ex | Elixir | lib/phoenix_full_stack/util.ex | naymspace/phoenix-fullstack | 289246584a9247d33b4fd3d28bea405d696a5270 | [
"MIT"
] | 2 | 2021-05-07T08:17:49.000Z | 2021-05-07T08:39:39.000Z | lib/phoenix_full_stack/util.ex | naymspace/phoenix-fullstack | 289246584a9247d33b4fd3d28bea405d696a5270 | [
"MIT"
] | null | null | null | lib/phoenix_full_stack/util.ex | naymspace/phoenix-fullstack | 289246584a9247d33b4fd3d28bea405d696a5270 | [
"MIT"
] | 1 | 2021-05-19T16:20:38.000Z | 2021-05-19T16:20:38.000Z | defmodule PhoenixFullStack.Util do
@moduledoc false
@doc """
List all files in a directory tree and returns them as a list.
"""
def ls_r(path) do
cond do
File.regular?(path) ->
[path]
File.dir?(path) ->
File.ls!(path)
|> Stream.map(&Path.join(path, &1))
|> S... | 20.971429 | 86 | 0.580381 |
73e8e6f245334d1ebf6b48506808531ac3636875 | 125 | ex | Elixir | lib/ueberauth_example/repo.ex | wribln/ueberauth_example | 290d4023d647e058a3070453ec5482cf982e13da | [
"MIT"
] | 1 | 2021-08-28T07:59:55.000Z | 2021-08-28T07:59:55.000Z | lib/ueberauth_example/repo.ex | wribln/ueberauth_example | 290d4023d647e058a3070453ec5482cf982e13da | [
"MIT"
] | null | null | null | lib/ueberauth_example/repo.ex | wribln/ueberauth_example | 290d4023d647e058a3070453ec5482cf982e13da | [
"MIT"
] | null | null | null | defmodule UeberauthExample.Repo do
use Ecto.Repo,
otp_app: :ueberauth_example,
adapter: Ecto.Adapters.Postgres
end
| 20.833333 | 35 | 0.768 |
73e8e86c9bf68843b66eeb057e6ab92536790094 | 1,472 | ex | Elixir | lib/phoenix/live_dashboard/pages/ets_page.ex | alexcastano/phoenix_live_dashboard | 71579bb49d53a1dbf6eac017de3bb80e6b6c2d21 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/ets_page.ex | alexcastano/phoenix_live_dashboard | 71579bb49d53a1dbf6eac017de3bb80e6b6c2d21 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/ets_page.ex | alexcastano/phoenix_live_dashboard | 71579bb49d53a1dbf6eac017de3bb80e6b6c2d21 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.EtsPage do
@moduledoc false
use Phoenix.LiveDashboard.PageBuilder
alias Phoenix.LiveDashboard.SystemInfo
@table_id :table
@menu_text "ETS"
@impl true
def render_page(_assigns) do
table(
columns: columns(),
id: @table_id,
row_attrs: &row_attrs/1,
... | 20.164384 | 82 | 0.554348 |
73e8eeae9203955b943e5c521255b9494d1d1a2e | 845 | exs | Elixir | mix.exs | ZennerIoT/casconf | 949ecef6bc52f381a952c16b17fd876f3ba51975 | [
"MIT"
] | 2 | 2019-03-27T12:02:05.000Z | 2019-05-22T03:08:57.000Z | mix.exs | ZennerIoT/casconf | 949ecef6bc52f381a952c16b17fd876f3ba51975 | [
"MIT"
] | null | null | null | mix.exs | ZennerIoT/casconf | 949ecef6bc52f381a952c16b17fd876f3ba51975 | [
"MIT"
] | null | null | null | defmodule Casconf.MixProject do
use Mix.Project
def project do
[
app: :casconf,
version: "1.0.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
description: "Runtime config fed by static elixir expressions",
deps: deps(),
package: package(),
source_url: ... | 21.125 | 69 | 0.572781 |
73e9055b0fa0ef427e3e41ff6c80facb7d178453 | 776 | ex | Elixir | apps/site/lib/site_web/controllers/schedule/offset.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/lib/site_web/controllers/schedule/offset.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/lib/site_web/controllers/schedule/offset.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.ScheduleController.Offset do
@moduledoc """
Assigns the offset parameter to determine which scheduled trips to show.
"""
@behaviour Plug
import Plug.Conn, only: [assign: 3]
@impl true
def init([]), do: []
@impl true
def call(conn, []) do
offset = find_offset(conn.assigns.timeta... | 24.25 | 82 | 0.689433 |
73e93ab3a20afd408d265a5c6160c959ff6fe213 | 99 | exs | Elixir | .formatter.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 4 | 2016-11-07T09:47:09.000Z | 2020-10-19T20:39:03.000Z | .formatter.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 7 | 2016-11-07T13:02:36.000Z | 2016-11-23T17:37:07.000Z | .formatter.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 3 | 2016-11-07T09:51:36.000Z | 2019-06-18T12:26:38.000Z | [
inputs: [
"mix.exs",
"config/*.exs",
"lib/**/*.ex",
"test/**/*.{ex,exs}"
]
]
| 11 | 24 | 0.353535 |
73e96463d24706bb7cf34905dce56ef50c8bac66 | 9,907 | ex | Elixir | lib/glimesh/api/schema/chat_types.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/api/schema/chat_types.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/api/schema/chat_types.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule Glimesh.Api.ChatTypes do
@moduledoc false
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
import Absinthe.Resolution.Helpers
alias Glimesh.Api.ChatResolver
alias Glimesh.Repo
alias Glimesh.Streams
input_object :chat_message_input do
field :message, :string
end... | 31.351266 | 98 | 0.67094 |
73e96cbc6c84af9b65c1263c314f79deffad5074 | 7,882 | ex | Elixir | lib/siwapp/recurring_invoices.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 4 | 2015-02-12T09:23:47.000Z | 2022-03-09T18:11:06.000Z | lib/siwapp/recurring_invoices.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 254 | 2021-12-09T14:40:41.000Z | 2022-03-31T08:09:37.000Z | lib/siwapp/recurring_invoices.ex | peillis/siwapp | f8c11ad2660574395d636674aa449c959f0f87f1 | [
"MIT"
] | 1 | 2022-03-07T10:25:49.000Z | 2022-03-07T10:25:49.000Z | defmodule Siwapp.RecurringInvoices do
@moduledoc """
Recurring Invoices context.
"""
import Ecto.Query, warn: false
alias Siwapp.InvoiceHelper
alias Siwapp.Invoices
alias Siwapp.Invoices.Invoice
alias Siwapp.Invoices.InvoiceQuery
alias Siwapp.Query
alias Siwapp.RecurringInvoices.RecurringInvoice
... | 33.683761 | 116 | 0.697412 |
73e97f845c2b2ac454c55a8d613b631d7485dfb6 | 39 | ex | Elixir | config/keys.js.ex | lawshe/boda | ebcb3af27bca294cb5d7e786a37b1d49f9af4b19 | [
"MIT"
] | 1 | 2018-02-03T21:37:43.000Z | 2018-02-03T21:37:43.000Z | config/keys.js.ex | lawshe/boda | ebcb3af27bca294cb5d7e786a37b1d49f9af4b19 | [
"MIT"
] | null | null | null | config/keys.js.ex | lawshe/boda | ebcb3af27bca294cb5d7e786a37b1d49f9af4b19 | [
"MIT"
] | null | null | null | module.exports = {
googleMaps: ''
};
| 9.75 | 18 | 0.589744 |
73e997c84adc469bb7e2af01afaf17b03abcd605 | 1,649 | exs | Elixir | mix.exs | axelson/lifx | 9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a | [
"Apache-2.0"
] | null | null | null | mix.exs | axelson/lifx | 9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a | [
"Apache-2.0"
] | null | null | null | mix.exs | axelson/lifx | 9ac02474d181001efc6bc08d7d39a6f6e3bb0d2a | [
"Apache-2.0"
] | null | null | null | defmodule Lifx.Mixfile do
use Mix.Project
def project do
[
app: :lifx,
version: "0.1.8",
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
aliases: aliase... | 22.589041 | 76 | 0.548817 |
73e9d061b51821bed5dc01d253a2eb4120743b4a | 2,050 | exs | Elixir | mix.exs | andys8/stripcode | 65a30d946ac20ad1b0e9635e6a3569b7a65e6270 | [
"MIT"
] | 281 | 2021-01-15T14:59:38.000Z | 2022-01-06T23:13:33.000Z | mix.exs | andys8/stripcode | 65a30d946ac20ad1b0e9635e6a3569b7a65e6270 | [
"MIT"
] | 12 | 2021-01-15T15:24:54.000Z | 2021-07-31T17:36:39.000Z | mix.exs | andys8/stripcode | 65a30d946ac20ad1b0e9635e6a3569b7a65e6270 | [
"MIT"
] | 11 | 2021-01-15T17:46:59.000Z | 2021-09-22T13:24:19.000Z | defmodule OnlyCodes.MixProject do
use Mix.Project
def project do
[
app: :only_codes,
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()... | 28.873239 | 84 | 0.572683 |
73e9ee44368cccf26ea26d5da53490801ba15bd6 | 287 | ex | Elixir | apps/language_server/test/support/uses_macro_a.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | 865 | 2018-10-31T20:29:13.000Z | 2022-03-29T11:13:39.000Z | apps/language_server/test/support/uses_macro_a.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | 441 | 2019-01-05T02:33:52.000Z | 2022-03-30T20:56:50.000Z | apps/language_server/test/support/uses_macro_a.ex | ihabunek/elixir-ls | a8bdf9304f04254160c9fc982ad314a50085c51a | [
"Apache-2.0"
] | 126 | 2018-11-12T19:16:53.000Z | 2022-03-26T13:27:50.000Z | defmodule ElixirLS.Test.UsesMacroA do
use ElixirLS.Test.MacroA
@inputs [1, 2, 3]
def my_fun do
macro_a_func()
end
def my_other_fun do
macro_imported_fun()
end
for input <- @inputs do
def gen_fun(unquote(input)) do
unquote(input) + 1
end
end
end
| 14.35 | 37 | 0.658537 |
73ea0a579ce8520102c6aaa050ead1dd1106f517 | 451 | exs | Elixir | test/chatbot_api_web/views/error_view_test.exs | GregoireLoens/chatbot_api | 0a09ae821332b40d9b0fe1cec0b348fccb874613 | [
"Apache-2.0"
] | null | null | null | test/chatbot_api_web/views/error_view_test.exs | GregoireLoens/chatbot_api | 0a09ae821332b40d9b0fe1cec0b348fccb874613 | [
"Apache-2.0"
] | null | null | null | test/chatbot_api_web/views/error_view_test.exs | GregoireLoens/chatbot_api | 0a09ae821332b40d9b0fe1cec0b348fccb874613 | [
"Apache-2.0"
] | null | null | null | defmodule ChatbotApiWeb.ErrorViewTest do
use ChatbotApiWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(ChatbotApiWeb.ErrorView, "404.html", []) ==
"Not Found"
end
test "renders... | 26.529412 | 71 | 0.7051 |
73ea5bc675ebf3f9de3de580d9dcfed62f0f5617 | 410 | ex | Elixir | services/fc_inventory/lib/fc_inventory/aggregates/serial_number.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_inventory/lib/fc_inventory/aggregates/serial_number.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_inventory/lib/fc_inventory/aggregates/serial_number.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCInventory.SerialNumber do
@moduledoc false
use TypedStruct
use FCBase, :aggregate
alias FCInventory.{SerialNumberAdded}
typedstruct do
field :remove_at, DateTime.t()
end
def translatable_fields do
[
:name,
:caption,
:description,
:custom_data
]
end
... | 15.769231 | 57 | 0.658537 |
73ea675c5da838822aae6dd05cb563c1787e1b51 | 256 | ex | Elixir | apps/tai/lib/tai/commander/get_new_order_by_client_id.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/commander/get_new_order_by_client_id.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/commander/get_new_order_by_client_id.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.Commander.GetNewOrderByClientId do
@type client_id :: Tai.NewOrders.Order.client_id()
@type order :: Tai.NewOrders.Order.t()
@spec get(client_id) :: order
def get(client_id) do
Tai.NewOrders.get_by_client_id(client_id)
end
end
| 25.6 | 52 | 0.746094 |
73ea6b3ed6fe9b688c8a52e47f5308eb5775fafc | 13,614 | ex | Elixir | lib/phoenix/router/helpers.ex | mcrumm/phoenix | c3613cadec9ba7c45a8a36360ce8dde905f80ff3 | [
"MIT"
] | null | null | null | lib/phoenix/router/helpers.ex | mcrumm/phoenix | c3613cadec9ba7c45a8a36360ce8dde905f80ff3 | [
"MIT"
] | null | null | null | lib/phoenix/router/helpers.ex | mcrumm/phoenix | c3613cadec9ba7c45a8a36360ce8dde905f80ff3 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Helpers do
# Module that generates the routing helpers.
@moduledoc false
alias Phoenix.Router.Route
alias Plug.Conn
@anno (if :erlang.system_info(:otp_release) >= '19' do
[generated: true, unquote: false]
else
[line: -1, unquote: false]
end)
@doc """
Callback invoke... | 33.614815 | 147 | 0.633172 |
73ea7862cd0b1df700b2e46ab3a26bd9cbf38354 | 3,149 | ex | Elixir | clients/service_broker/lib/google_api/service_broker/v1/model/google_iam_v1__binding.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_broker/lib/google_api/service_broker/v1/model/google_iam_v1__binding.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_broker/lib/google_api/service_broker/v1/model/google_iam_v1__binding.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 58.314815 | 1,055 | 0.736107 |
73ea79862d65e47698ea40ea90481d1b54786c1f | 352 | ex | Elixir | lib/ex_clubhouse/model/empty_template_task.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | lib/ex_clubhouse/model/empty_template_task.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | lib/ex_clubhouse/model/empty_template_task.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Model.EmptyTemplateTask do
@moduledoc """
Empty template task model
"""
@type t :: %__MODULE__{
complete: boolean(),
description: binary(),
external_id: binary(),
owner_ids: list(binary())
}
defstruct complete: nil, description: nil, exte... | 23.466667 | 76 | 0.619318 |
73ea9547c7fa2eae5d0e66927eef78ce3f781b25 | 2,528 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/instruction_output.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/instruction_output.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/instruction_output.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.126984 | 192 | 0.726266 |
73eacf2cd1c4b60a8416eb9e73789add9a284f67 | 4,687 | exs | Elixir | test/plug/adapters/test/conn_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | 1 | 2020-09-01T12:50:36.000Z | 2020-09-01T12:50:36.000Z | test/plug/adapters/test/conn_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | test/plug/adapters/test/conn_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"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")
{adapter, state} = conn.adapter
assert {:more, "abcde", state} = adapter.read_req_body(state, length: 5)
assert {:more, "f", state} = adapter.rea... | 36.905512 | 94 | 0.603158 |
73eb3220e0e2e19d5b17716200fd578b7a83f31d | 1,871 | ex | Elixir | lib/gwf_gas-meter.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | lib/gwf_gas-meter.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | lib/gwf_gas-meter.ex | zolihorvath/element-parsers | dc9927db1c39b8f77e4c22f10dc38f29c6a41ab9 | [
"MIT"
] | null | null | null | defmodule Parser do
use Platform.Parsing.Behaviour
# ELEMENT IoT Parser for GWF Gas meter with Elster module
# According to documentation provided by GWF
def parse(<<ptype::8, manu::integer-little-16, mid::integer-32, medium::8, state::8, accd::integer-little-16, vif::8, volume::integer-little-32, _::binary>>... | 25.986111 | 197 | 0.570818 |
73eb3b5c99f3b636fe8c703a4e2ade90b8c6a013 | 4,209 | exs | Elixir | test/chat_api_web/controllers/company_controller_test.exs | wmnnd/papercups | 1e6fdfaf343b95b8bd6853d1327d6123180d0ac7 | [
"MIT"
] | null | null | null | test/chat_api_web/controllers/company_controller_test.exs | wmnnd/papercups | 1e6fdfaf343b95b8bd6853d1327d6123180d0ac7 | [
"MIT"
] | 1 | 2021-01-17T10:42:34.000Z | 2021-01-17T10:42:34.000Z | test/chat_api_web/controllers/company_controller_test.exs | BotCart/papercups | 7e7533ac8a8becc114060ab5033376c6aab4b369 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.CompanyControllerTest do
use ChatApiWeb.ConnCase, async: true
import ChatApi.Factory
alias ChatApi.Companies.Company
@update_attrs %{
description: "some updated description",
external_id: "some updated external_id",
industry: "some updated industry",
logo_image_url: "some u... | 32.627907 | 98 | 0.623901 |
73eb7627c6e2980dc2631d8783b3ff168d9dd3a0 | 474 | ex | Elixir | exercises/concept/freelancer-rates/lib/freelancer_rates.ex | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 1 | 2021-06-09T06:57:02.000Z | 2021-06-09T06:57:02.000Z | exercises/concept/freelancer-rates/lib/freelancer_rates.ex | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | 6 | 2022-03-04T13:05:25.000Z | 2022-03-30T18:36:49.000Z | exercises/concept/freelancer-rates/lib/freelancer_rates.ex | SaschaMann/elixir | 2489747bba72a0ba5efa27e7e00441a428fdf987 | [
"MIT"
] | null | null | null | defmodule FreelancerRates do
def daily_rate(hourly_rate) do
raise "Please implement the daily_rate/1 function"
end
def apply_discount(before_discount, discount) do
raise "Please implement the apply_discount/2 function"
end
def monthly_rate(hourly_rate, discount) do
raise "Please implement the mo... | 26.333333 | 58 | 0.774262 |
73eb7693098ff9b42a84a3fece516ba04f313c9a | 1,758 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/api_level_condition.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_management/lib/google_api/android_management/v1/model/api_level_condition.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/api_level_condition.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.404255 | 218 | 0.75711 |
73eb869763bb12e213fa206fbdbb4669284e6c90 | 58 | ex | Elixir | lib/mockery/error.ex | kianmeng/mockery | ad843783e890000627c51b30b69a115e73617542 | [
"Apache-2.0"
] | 85 | 2017-07-29T22:03:54.000Z | 2022-03-29T09:50:49.000Z | lib/mockery/error.ex | kianmeng/mockery | ad843783e890000627c51b30b69a115e73617542 | [
"Apache-2.0"
] | 36 | 2017-07-30T10:12:44.000Z | 2021-12-23T12:25:42.000Z | lib/mockery/error.ex | kianmeng/mockery | ad843783e890000627c51b30b69a115e73617542 | [
"Apache-2.0"
] | 13 | 2017-07-29T09:06:47.000Z | 2021-05-20T13:36:56.000Z | defmodule Mockery.Error do
defexception message: ""
end
| 14.5 | 26 | 0.775862 |
73eba219f3e12feb1d52eedb3d70e9067a38230b | 1,119 | exs | Elixir | markdown/config/config.exs | wkulikowski/homework | 4def3bb3c7479953e859b84216b0848dba9c147c | [
"Apache-2.0"
] | 69 | 2018-04-29T20:46:33.000Z | 2022-03-11T04:12:40.000Z | markdown/config/config.exs | wkulikowski/homework | 4def3bb3c7479953e859b84216b0848dba9c147c | [
"Apache-2.0"
] | 5 | 2018-04-30T05:35:58.000Z | 2020-08-24T19:13:36.000Z | markdown/config/config.exs | wkulikowski/homework | 4def3bb3c7479953e859b84216b0848dba9c147c | [
"Apache-2.0"
] | 18 | 2018-05-03T02:46:16.000Z | 2021-05-01T17:46:55.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.096774 | 73 | 0.751564 |
73ec1e6ebad920be5ddbcf6d90533836cc2e4c0f | 2,946 | exs | Elixir | test/calliope/integration_test.exs | Qqwy/calliope | f1f2a38e96f4f20b1ebe44f813b36df679434259 | [
"Apache-2.0"
] | 152 | 2015-01-13T15:39:04.000Z | 2022-03-09T22:20:28.000Z | test/calliope/integration_test.exs | Qqwy/calliope | f1f2a38e96f4f20b1ebe44f813b36df679434259 | [
"Apache-2.0"
] | 43 | 2015-02-18T12:54:12.000Z | 2018-06-26T20:48:16.000Z | test/calliope/integration_test.exs | Qqwy/calliope | f1f2a38e96f4f20b1ebe44f813b36df679434259 | [
"Apache-2.0"
] | 34 | 2015-02-16T23:35:45.000Z | 2021-01-11T15:01:59.000Z | defmodule CalliopeIntegerationTest do
use ExUnit.Case
use Calliope.Render
@haml """
- if false do
%p true
- else
%p false
"""
test :else_result do
actual = Regex.replace(~r/(^\s*)|(\s+$)|(\n)/m, EEx.eval_string(render(@haml), []), "")
assert actual == "<p>false</p>"
end
@haml """
- if true ... | 19.905405 | 91 | 0.56076 |
73ec46c9158ef076a93e09753d515747fed42bc4 | 916 | ex | Elixir | lib/extreme/event_publisher.ex | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | lib/extreme/event_publisher.ex | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | lib/extreme/event_publisher.ex | Navneet-gupta01/commanded-extreme-adapter | daac1726573d4b979aaeddd0dae9aca0473a9446 | [
"MIT"
] | null | null | null | defmodule Commanded.EventStore.Adapters.Extreme.EventPublisher do
use Extreme.FanoutListener
alias Commanded.EventStore.Adapters.Extreme.{Mapper, PubSub}
alias Commanded.EventStore.RecordedEvent
defp process_push(push) do
push
|> Mapper.to_recorded_event()
|> publish()
end
defp publish(%Recor... | 28.625 | 73 | 0.712882 |
73ec4c4c1b179589f5ddaf79ed02131f7fdcc260 | 72 | ex | Elixir | lib/slackmine/redmine.ex | avdgaag/slackmine | 99a6964b190ff949088e75e76ce1f98b76b6a9b2 | [
"MIT"
] | null | null | null | lib/slackmine/redmine.ex | avdgaag/slackmine | 99a6964b190ff949088e75e76ce1f98b76b6a9b2 | [
"MIT"
] | null | null | null | lib/slackmine/redmine.ex | avdgaag/slackmine | 99a6964b190ff949088e75e76ce1f98b76b6a9b2 | [
"MIT"
] | null | null | null | defmodule Slackmine.Redmine do
@callback get_issue(binary) :: any
end
| 18 | 36 | 0.777778 |
73ec7a0e76c9ac640c553b343d2e5aafc289a90e | 327 | ex | Elixir | backend/test/support/validation.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | 7 | 2020-03-27T08:26:52.000Z | 2021-08-29T09:50:31.000Z | backend/test/support/validation.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | backend/test/support/validation.ex | eeng/caffe | d85d0dd56a8204c715052ddaf3d990e47c5df0e9 | [
"MIT"
] | null | null | null | defmodule Caffe.Support.Validation do
def errors_on(module, params) do
errors_on(module.changeset(struct(module), params))
end
def errors_on(changeset) do
Caffe.Middleware.Validator.transform_errors(changeset)
end
def error_fields_on(module, params) do
errors_on(module, params) |> Map.keys()
e... | 23.357143 | 58 | 0.749235 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.