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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2c5ba712b9aed85bce71a208100faeb25b4d72a | 97 | exs | Elixir | test/collectable/vivid/group_test.exs | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 26 | 2017-01-03T01:18:38.000Z | 2019-02-21T09:26:20.000Z | test/collectable/vivid/group_test.exs | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | null | null | null | test/collectable/vivid/group_test.exs | jamesotron/vivid | 01a0089384d8daced8f22a97c49e657fc245fb3c | [
"MIT"
] | 2 | 2017-03-18T22:45:49.000Z | 2017-05-08T07:24:58.000Z | defmodule Collectable.Vivid.GroupTest do
use ExUnit.Case
doctest Collectable.Vivid.Group
end
| 19.4 | 40 | 0.824742 |
b2c5bf827bf11402053ee620a98490e6ae0ebf7c | 425 | ex | Elixir | web/views/target_view.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | 3 | 2015-08-24T11:44:19.000Z | 2016-10-01T21:37:05.000Z | web/views/target_view.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | web/views/target_view.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | defmodule Storm.TargetView do
use Storm.Web, :view
def render("index.json", %{targets: targets}) do
%{targets: render_many(targets, Storm.TargetView, "target.json")}
end
def render("show.json", %{target: target}) do
%{target: render_one(target, Storm.TargetView, "target.json")}
end
def render("ta... | 26.5625 | 69 | 0.677647 |
b2c5d66a9e303a7d139ff45a0fbbd3e9142ca72e | 740 | ex | Elixir | lib/con_mon/check_server.ex | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | 3 | 2019-05-28T11:53:04.000Z | 2021-06-01T12:36:56.000Z | lib/con_mon/check_server.ex | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | null | null | null | lib/con_mon/check_server.ex | aaroncolaco/conmon-elixir | 7e695421e413952c72fa927f3fb05a490f452762 | [
"MIT"
] | null | null | null | defmodule ConMon.CheckServer do
use GenServer
@hosts ["https://www.google.com", "https://www.youtube.com", "https://www.linkedin.com"]
@me __MODULE__
def start_link(param) do
GenServer.start_link(__MODULE__, param, name: @me)
end
# state is the interval between checks
def init(state) do
Process... | 23.125 | 90 | 0.655405 |
b2c5d9805274552753af5eba7ee8b422073a29da | 24,401 | exs | Elixir | lib/elixir/test/elixir/stream_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/elixir/test/elixir/stream_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/stream_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule StreamTest do
use ExUnit.Case, async: true
defmodule PDict do
defstruct []
defimpl Collectable do
def empty(struct) do
struct
end
def into(struct) do
{struct,
fn
_, {:cont, x} -> Process.put(:str... | 32.841184 | 109 | 0.554281 |
b2c5ddaa0d9a734f6b2e2a8952b14d8209d0328a | 1,865 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/list_environments_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/composer/lib/google_api/composer/v1beta1/model/list_environments_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/list_environments_response.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.3 | 169 | 0.746917 |
b2c5ebe444a6a61f67cd6ee282f944e6c5c1b65a | 30,972 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/deployments.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/deployments.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/api/deployments.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... | 45.082969 | 1,213 | 0.682229 |
b2c609de914dafc70c404eb63d56ec684f7cdd41 | 2,382 | ex | Elixir | lib/xml_json/badgerfish/serializer.ex | MathiasWedeken/xml_json | 772f110987501e1f0d8065311110069c1f4e0a20 | [
"MIT"
] | 2 | 2020-10-08T06:49:02.000Z | 2020-10-29T16:24:20.000Z | lib/xml_json/badgerfish/serializer.ex | MathiasWedeken/xml_json | 772f110987501e1f0d8065311110069c1f4e0a20 | [
"MIT"
] | 2 | 2020-10-08T12:15:38.000Z | 2021-06-01T18:15:31.000Z | lib/xml_json/badgerfish/serializer.ex | MathiasWedeken/xml_json | 772f110987501e1f0d8065311110069c1f4e0a20 | [
"MIT"
] | 2 | 2020-10-08T11:56:39.000Z | 2021-06-01T16:42:43.000Z | defmodule XmlJson.BadgerFish.Serializer do
@moduledoc """
Badgerfish implementation of serialization from a Map into Xml
"""
alias XmlJson.SaxHandler
@spec serialize(map(), map()) :: {:ok, binary()} | {:error, term()}
def serialize(object, opts) do
[{name, value}] = Map.to_list(object)
simple_form... | 25.073684 | 74 | 0.628044 |
b2c63c6e42d5e367e56204eae073c298adb4e854 | 35,130 | ex | Elixir | clients/vision/lib/google_api/vision/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/api/projects.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... | 47.091153 | 884 | 0.672417 |
b2c64daa0a259571e9200d85b910db1f35332e76 | 276 | exs | Elixir | test/honest_chat_web/views/layout_view_test.exs | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | 3 | 2021-11-19T07:18:30.000Z | 2021-12-23T22:19:48.000Z | test/honest_chat_web/views/layout_view_test.exs | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | test/honest_chat_web/views/layout_view_test.exs | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | defmodule HonestChatWeb.LayoutViewTest do
use HonestChatWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.666667 | 65 | 0.771739 |
b2c64f745d1789aa49c390fdc9cd6f0fc23b79e8 | 552 | ex | Elixir | lib/flowr_web/helpers/form_helper.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | lib/flowr_web/helpers/form_helper.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | lib/flowr_web/helpers/form_helper.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule FlowrWeb.Helpers.FormHelper do
alias PhoenixBootstrapForm, as: PBF
@doc false
def json_textarea(form, field, opts \\ []) do
value =
form.source
|> Ecto.Changeset.get_field(field)
|> Jason.encode!(pretty: true)
input_opts =
[value: value]
|> Keyword.merge(opts)
... | 24 | 76 | 0.663043 |
b2c6589c6491f6c021cba62bbb9a52988dfcaea1 | 4,200 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/binding.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/binding.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/binding.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... | 42 | 143 | 0.702857 |
b2c65e1fae3367c1dce57342ef6e4997cd2d4080 | 1,668 | ex | Elixir | lib/ueberauth/strategy/microsoft/oauth.ex | grain-team/ueberauth_microsoft | 9efa2a85e6b0f4e1f28feea57db996406d943784 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/microsoft/oauth.ex | grain-team/ueberauth_microsoft | 9efa2a85e6b0f4e1f28feea57db996406d943784 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/microsoft/oauth.ex | grain-team/ueberauth_microsoft | 9efa2a85e6b0f4e1f28feea57db996406d943784 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Microsoft.OAuth do
use OAuth2.Strategy
alias Ueberauth
alias OAuth2.Client
alias OAuth2.Strategy.AuthCode
def client(opts \\ []) do
config = Application.get_env(:ueberauth, __MODULE__)
json_library = Ueberauth.json_library()
config
|> defaults()
|> Keyword.m... | 24.895522 | 92 | 0.658873 |
b2c67648daed27e0523f2fe887ab1d20f31db936 | 1,860 | ex | Elixir | lib/nostrum/struct/event/thread_members_update.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/thread_members_update.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/thread_members_update.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | defmodule Nostrum.Struct.Event.ThreadMembersUpdate do
@moduledoc """
Struct representing a thread members update event.
This event is sent whenever a user is added or removed from a thread.
If the current user does not have the `GUILD_MEMBERS` intent,
this event will only be sent when the current user is ad... | 26.197183 | 90 | 0.644624 |
b2c67f040fdb08c62426b12cac5475fd92d3e732 | 33,854 | ex | Elixir | lib/elixir/lib/inspect/algebra.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | defmodule Inspect.Opts do
@moduledoc """
Defines the options used by the `Inspect` protocol.
The following fields are available:
* `:structs` - when `false`, structs are not formatted by the inspect
protocol, they are instead printed as maps, defaults to `true`.
* `:binaries` - when `:as_strings`... | 33.092864 | 101 | 0.617386 |
b2c6a0c20cf06efccaf575b3aa1a2a0429126e55 | 2,130 | ex | Elixir | clients/jobs/lib/google_api/jobs/v2/model/job_processing_options.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/job_processing_options.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v2/model/job_processing_options.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.961538 | 346 | 0.760094 |
b2c6e44911da273790a347c5a9e82dbd22f9f287 | 1,088 | ex | Elixir | lib/revive_web/channels/user_socket.ex | TenTakano/Colonists | 8d989181705b06c91ecd17a7132291a417367893 | [
"MIT"
] | 1 | 2020-12-06T16:33:01.000Z | 2020-12-06T16:33:01.000Z | lib/revive_web/channels/user_socket.ex | TenTakano/Revive | 2f65b6c2b0c063c1224c24060cb17b93a9974002 | [
"MIT"
] | 2 | 2020-12-31T14:17:00.000Z | 2020-12-31T14:25:48.000Z | lib/revive_web/channels/user_socket.ex | TenTakano/Colonists | 8d989181705b06c91ecd17a7132291a417367893 | [
"MIT"
] | null | null | null | defmodule ReviveWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ReviveWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels... | 30.222222 | 83 | 0.693934 |
b2c6e84c646e4b39e8b7bfa4c2556bc40b05e1dc | 2,801 | ex | Elixir | lib/snowplow_tracker/events/timing.ex | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 6 | 2018-04-30T11:02:45.000Z | 2021-06-18T19:09:39.000Z | lib/snowplow_tracker/events/timing.ex | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 15 | 2018-05-23T05:26:27.000Z | 2020-07-12T10:12:32.000Z | lib/snowplow_tracker/events/timing.ex | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 3 | 2020-06-05T23:30:14.000Z | 2021-06-22T08:14:35.000Z | defmodule SnowplowTracker.Events.Timing do
@moduledoc """
This module implements the Timing event
"""
@behaviour SnowplowTracker.Events.Behaviour
alias SnowplowTracker.{Errors, Constants, SelfDescribingJson}
alias SnowplowTracker.Events.SelfDescribing
alias SnowplowTracker.Events.Helper, as: EventsHelpe... | 25.463636 | 88 | 0.642628 |
b2c6e9a4c8eb695af08f2259da18465c0a71607d | 303 | exs | Elixir | priv/repo/migrations/20210605194929_create_documento_status.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20210605194929_create_documento_status.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20210605194929_create_documento_status.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | defmodule Kirby.Repo.Migrations.CreateDocumentoStatus do
use Ecto.Migration
def change do
create table(:documento_status) do
add :nome, :string
add :ativo?, :boolean, default: true, null: false
timestamps(inserted_at: :created_at, type: :utc_datetime_usec)
end
end
end
| 23.307692 | 68 | 0.712871 |
b2c6f1a618a084bbcece780f6695c480caa44c29 | 1,190 | ex | Elixir | lib/flux/pool/acceptor.ex | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | 1 | 2021-10-05T02:22:22.000Z | 2021-10-05T02:22:22.000Z | lib/flux/pool/acceptor.ex | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | null | null | null | lib/flux/pool/acceptor.ex | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | null | null | null | defmodule Flux.Pool.Acceptor do
alias Flux.Pool.Acceptor
def child_spec(opts) do
%{
id: Keyword.fetch!(opts, :id),
start: {Acceptor, :start_link, [Keyword.fetch!(opts, :socket), opts]},
type: :worker,
restart: :permanent,
shutdown: 500
}
end
def init(socket, opts) do
... | 25.319149 | 83 | 0.629412 |
b2c710c82bfc7ea9af95fd733d7a4e8c56c9e7ed | 454 | ex | Elixir | lib/intercomx/resources/tag.ex | antonioparisi/intercomx | 65e25bbeb366b200c10c098765ecc08983f1521a | [
"MIT"
] | 1 | 2019-11-25T08:58:22.000Z | 2019-11-25T08:58:22.000Z | lib/intercomx/resources/tag.ex | antonioparisi/intercomx | 65e25bbeb366b200c10c098765ecc08983f1521a | [
"MIT"
] | null | null | null | lib/intercomx/resources/tag.ex | antonioparisi/intercomx | 65e25bbeb366b200c10c098765ecc08983f1521a | [
"MIT"
] | null | null | null | require Logger
defmodule IntercomX.Tag do
use IntercomX.Client
def create(params) when is_map(params) do
with {:ok, res} <- post("/tags", params) do
{:ok, res.body}
else
{:error, reason} ->
{:error, reason}
end
end
def deleteRequest(id) when is_bitstring(id) do
with {:ok, ... | 18.916667 | 48 | 0.568282 |
b2c72bd7e724ce653b505ca3bf788690a852ff39 | 1,232 | ex | Elixir | spec/fixtures/mix/deps/earmark/lib/earmark/options.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-10-01T18:00:25.000Z | 2022-02-23T18:26:53.000Z | spec/fixtures/mix/deps/earmark/lib/earmark/options.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 107 | 2016-08-03T18:16:51.000Z | 2021-07-23T08:42:51.000Z | spec/fixtures/mix/deps/earmark/lib/earmark/options.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2017-10-31T16:16:05.000Z | 2022-02-16T10:31:04.000Z | defmodule Earmark.Options do
@type t :: %__MODULE__{}
# What we use to render
defstruct renderer: Earmark.HtmlRenderer,
# Inline style options
gfm: true, breaks: false, pedantic: false,
smartypants: true, sanitize: false,
footnotes: false, footnote_offset: 1,... | 30.04878 | 79 | 0.585227 |
b2c73fd4e6dfef45bd80752ce9b753d7a14b3fdc | 1,894 | ex | Elixir | lib/mix/tasks/farmbot/firmware/slack.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/mix/tasks/farmbot/firmware/slack.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | null | null | null | lib/mix/tasks/farmbot/firmware/slack.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Mix.Tasks.Farmbot.Firmware.Slack do
@moduledoc "Upload a firmware to slack."
@shortdoc "Upload firmware to slack."
use Mix.Task
import Mix.Tasks.Farmbot.Env
def run(opts) do
token = slack_token()
{keywords, comment, _} =
opts |> OptionParser.parse(switches: [signed: :boolean, channe... | 31.04918 | 81 | 0.62038 |
b2c769c84ac2d8cb6ebeee83b5e6d64b375a5322 | 1,894 | exs | Elixir | config/dev.exs | aridjar-umbrella-guide/admin | 21050a3e8957116ef35f03ff8b8b1b46f68e632a | [
"MIT"
] | null | null | null | config/dev.exs | aridjar-umbrella-guide/admin | 21050a3e8957116ef35f03ff8b8b1b46f68e632a | [
"MIT"
] | 1 | 2021-03-09T01:41:00.000Z | 2021-03-09T01:41:00.000Z | config/dev.exs | aridjar-umbrella-guide/admin | 21050a3e8957116ef35f03ff8b8b1b46f68e632a | [
"MIT"
] | 1 | 2019-04-17T17:06:14.000Z | 2019-04-17T17:06:14.000Z | 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 webpack to recompile .js and .css sources.
config :admin, AdminWeb.Endpoint,
http: [port: 4001],
... | 27.852941 | 68 | 0.682154 |
b2c7a4200a5dbaa2a6622184f8d96b624d275b62 | 391 | exs | Elixir | .formatter.exs | Cleidiano/warpath | b566c7aa65dc5ad1063f0d2e878d9878e7e8ae38 | [
"MIT"
] | 16 | 2020-04-28T12:39:27.000Z | 2021-12-21T16:50:58.000Z | .formatter.exs | cleidiano/warpath | 216a0e3c1bf72460daec7e5a75d0c45f3d0ae3af | [
"MIT"
] | 41 | 2020-02-01T18:10:50.000Z | 2022-01-18T08:11:22.000Z | .formatter.exs | cleidiano/warpath | 216a0e3c1bf72460daec7e5a75d0c45f3d0ae3af | [
"MIT"
] | 3 | 2020-04-27T12:53:57.000Z | 2020-10-02T18:33:32.000Z | # Used by "mix format"
[
inputs:
Enum.flat_map(["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], &Path.wildcard(&1)) --
["test/warpath/tokenizer_test.exs"],
locals_without_parens: [
assert_tokens: 2,
assert_parse: 2,
assert_parse: 3,
assert_env: 2,
assert_env: 3,
assert_... | 23 | 101 | 0.618926 |
b2c7d358a0334af5bb591a6239848960919201da | 2,568 | exs | Elixir | year_2021/test/day_04/board_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2021/test/day_04/board_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2021/test/day_04/board_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day04.BoardTest do
use ExUnit.Case, async: true
test "it parses basic boards" do
board = Day04.Board.parse("1 2 3")
assert %{"1" => 1, "2" => 2, "3" => 4} = board.positions
end
test "it parses multiline boards" do
board = Day04.Board.parse("1 2 3\n4 5 6\n7 8 9")
assert %{
... | 29.860465 | 98 | 0.573988 |
b2c7da14d55f3da47f96d0a4af3efac358f31290 | 1,112 | ex | Elixir | chapter_9/todo_superdatabase/lib/todo/database/worker.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_9/todo_superdatabase/lib/todo/database/worker.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_9/todo_superdatabase/lib/todo/database/worker.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Todo.Database.Worker do
use GenServer
alias Todo.ProcessRegistry
def start_link({db_folder, worker_id}) do
IO.puts("Starting Todo.Database.Worker ##{worker_id}")
GenServer.start_link(__MODULE__, db_folder, name: via_tuple(worker_id))
end
def via_tuple(worker_id), do: ProcessRegistry.via_... | 25.860465 | 90 | 0.692446 |
b2c7e421a3ed4a474e9f82902ac4db0a8daaea31 | 1,026 | exs | Elixir | mix.exs | heroku/plexy | bfdd4a539c2c0d8f80101cca8061a945a2cd6159 | [
"MIT"
] | 153 | 2016-11-07T15:11:52.000Z | 2021-11-16T23:20:52.000Z | mix.exs | heroku/plexy | bfdd4a539c2c0d8f80101cca8061a945a2cd6159 | [
"MIT"
] | 21 | 2016-11-07T14:55:09.000Z | 2022-03-30T18:31:31.000Z | mix.exs | heroku/plexy | bfdd4a539c2c0d8f80101cca8061a945a2cd6159 | [
"MIT"
] | 5 | 2018-07-09T05:02:53.000Z | 2019-11-01T01:08:09.000Z | defmodule Plexy.Mixfile do
use Mix.Project
def project do
[
app: :plexy,
version: "0.3.3",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
dialyzer: dialyzer()
]
end
def package... | 20.117647 | 85 | 0.510721 |
b2c7fa01fc402701b9fad610549d879e95aef535 | 518 | exs | Elixir | test/wobserver/system/scheduler_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 984 | 2017-02-06T17:13:48.000Z | 2022-03-18T22:46:55.000Z | test/wobserver/system/scheduler_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 52 | 2017-02-13T16:12:10.000Z | 2021-04-08T22:31:28.000Z | test/wobserver/system/scheduler_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 74 | 2017-02-13T15:23:49.000Z | 2021-07-30T07:43:27.000Z | defmodule Wobserver.System.SchedulerTest do
use ExUnit.Case
alias Wobserver.System.Scheduler
test "returns results as list" do
assert is_list(Scheduler.utilization)
end
test "returns results as list of floats" do
all_floats =
Scheduler.utilization
|> Enum.map(&is_float/1)
|> Enum.... | 21.583333 | 51 | 0.723938 |
b2c7ff02ba50614df88b3fb679138b39d171da5b | 2,544 | ex | Elixir | lib/koans/14_enums.ex | hvieira/elixir-koans | 50157618cef8e1768692a594e942c30c5839b91c | [
"MIT"
] | null | null | null | lib/koans/14_enums.ex | hvieira/elixir-koans | 50157618cef8e1768692a594e942c30c5839b91c | [
"MIT"
] | null | null | null | lib/koans/14_enums.ex | hvieira/elixir-koans | 50157618cef8e1768692a594e942c30c5839b91c | [
"MIT"
] | null | null | null | defmodule Enums do
use Koans
@intro "Enums"
koan "Knowing how many elements are in a list is important for book-keeping" do
assert Enum.count([1, 2, 3]) == 3
end
koan "Depending on the type, it counts pairs" do
assert Enum.count(%{a: :foo, b: :bar}) == 2
end
def less_than_five?(n), do: n < 5
... | 29.581395 | 95 | 0.61478 |
b2c84f44be8fa749aa2894279fd5360e685de621 | 1,913 | ex | Elixir | clients/secret_manager/lib/google_api/secret_manager/v1/model/replication.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1/model/replication.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/secret_manager/lib/google_api/secret_manager/v1/model/replication.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... | 38.26 | 164 | 0.750653 |
b2c86beadc5b40057efde96b6f344d1e50cde73c | 308 | ex | Elixir | lib/hl7/2.3/segments/lcc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/lcc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/lcc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.Segments.LCC do
@moduledoc false
require Logger
alias HL7.V2_3.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
primary_key_value: DataTypes.Pl,
location_department: nil,
accommodation_type: DataTypes.Ce,
charge_code: DataTypes.Ce
]
end
| 19.25 | 39 | 0.681818 |
b2c86df689bbad94da6d34a5d744a0fadaf57338 | 1,413 | ex | Elixir | lib/mud/command.ex | stevbov/mud-elixir | 5fd8538737757752d5825f5ba47633ccc2645dfc | [
"Apache-2.0"
] | null | null | null | lib/mud/command.ex | stevbov/mud-elixir | 5fd8538737757752d5825f5ba47633ccc2645dfc | [
"Apache-2.0"
] | null | null | null | lib/mud/command.ex | stevbov/mud-elixir | 5fd8538737757752d5825f5ba47633ccc2645dfc | [
"Apache-2.0"
] | null | null | null | defmodule Mud.Command do
alias Mud.WorldServer
require Logger
@type args :: map
@callback parse(String.t(), String.t(), String.t()) :: args | nil
@callback execute(term, Mud.Room.id_t(), Mud.Actor.id_t(), args) :: Mud.Room.t()
@callback perceive(
Mud.ActorController.t(),
term,... | 23.949153 | 82 | 0.545648 |
b2c88c55c2e4c3462e4e6e8463ee3896001d38a5 | 4,791 | ex | Elixir | lib/protox/encode.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | lib/protox/encode.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | lib/protox/encode.ex | sdrew/protox | c28d02f1626b5cd39bad7de2b415d20ebbdf76ee | [
"MIT"
] | null | null | null | defmodule Protox.Encode do
@moduledoc """
This module contains the functions necessary to encode protobuf messages.
"""
import Protox.Guards
use Bitwise
use Protox.{
Float,
WireTypes
}
alias Protox.{
Varint,
Zigzag
}
@doc """
Encode a protobuf message into IO data.
## Exampl... | 28.517857 | 85 | 0.684826 |
b2c8f01df62eda2711cfe49925a53714a843a349 | 1,511 | ex | Elixir | test/support/data_case.ex | rafaellcustodio/blog | c4aa5e4c59391d548e827e5df095f59ef37a8df1 | [
"MIT"
] | null | null | null | test/support/data_case.ex | rafaellcustodio/blog | c4aa5e4c59391d548e827e5df095f59ef37a8df1 | [
"MIT"
] | null | null | null | test/support/data_case.ex | rafaellcustodio/blog | c4aa5e4c59391d548e827e5df095f59ef37a8df1 | [
"MIT"
] | null | null | null | defmodule Blog.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to the ... | 26.982143 | 77 | 0.684315 |
b2c8f8c7b31f1c4774cf370b691d11aba2470692 | 2,105 | exs | Elixir | test/serum/file_test.exs | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | 1 | 2019-06-21T10:55:33.000Z | 2019-06-21T10:55:33.000Z | test/serum/file_test.exs | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | null | null | null | test/serum/file_test.exs | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | null | null | null | defmodule Serum.FileTest do
use ExUnit.Case, async: true
require Serum.TestHelper
import ExUnit.CaptureIO
import Serum.TestHelper
@content1 "The quick brown fox jumps over the lazy dog.\n"
setup_all do
tmp_dir = get_tmp_dir("serum_test_")
File.mkdir_p!(tmp_dir)
File.open!(Path.join(tmp_dir, ... | 22.880435 | 78 | 0.584323 |
b2c93afb90f82a9a84251a3b6d6a5dbce25a08e4 | 2,090 | ex | Elixir | test/support/v2/services/test_pool/test_pool.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 12 | 2018-07-03T10:14:54.000Z | 2020-04-07T02:04:39.000Z | test/support/v2/services/test_pool/test_pool.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 1 | 2018-12-02T06:05:59.000Z | 2018-12-02T06:05:59.000Z | test/support/v2/services/test_pool/test_pool.ex | noizu/simple_pool | 59251a3391ff82152a31626072955b95f83c18ee | [
"MIT"
] | 2 | 2018-03-05T12:01:51.000Z | 2018-07-03T10:15:04.000Z | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.SimplePool.Support.TestV2Pool do
#alias Noizu.Scaffolding... | 38.703704 | 81 | 0.582297 |
b2c95624138ef7527b7aab992186826df805933d | 622 | ex | Elixir | lib/ex_cypher/statements/order.ex | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 3 | 2020-03-09T14:28:52.000Z | 2021-06-27T13:29:27.000Z | lib/ex_cypher/statements/order.ex | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 15 | 2019-12-25T23:31:02.000Z | 2020-02-21T16:45:11.000Z | lib/ex_cypher/statements/order.ex | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | null | null | null | defmodule ExCypher.Statements.Order do
@moduledoc false
# Parses ORDER statements and provides support
# for ASC and DESC ordering syntax.
alias ExCypher.Statements.Generic
@spec parse(ast :: term()) :: String.t()
def parse(term, env \\ nil)
def parse({term, ordering}, _env) when ordering in [:asc, :d... | 21.448276 | 69 | 0.649518 |
b2c97d42d4cda51faddd77dffa9f442099a43bd2 | 2,990 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_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... | 44.626866 | 192 | 0.747157 |
b2c9971c80c24891c82fe4a3e8bd6987f26b01e3 | 1,060 | ex | Elixir | lib/tentacat/organizations/projects.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 432 | 2015-01-19T20:38:35.000Z | 2022-01-11T14:32:28.000Z | lib/tentacat/organizations/projects.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 183 | 2015-01-19T08:55:29.000Z | 2022-03-01T20:26:03.000Z | lib/tentacat/organizations/projects.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 189 | 2015-01-04T14:56:59.000Z | 2021-12-14T20:48:18.000Z | defmodule Tentacat.Organizations.Projects do
import Tentacat
alias Tentacat.Client
@doc """
Lists the projects in an organization.
## Example
Tentacat.Organizations.Projects.list client, "elixir"
More info at: https://developer.github.com/v3/projects/#list-organization-projects
"""
@spec list(... | 27.894737 | 122 | 0.703774 |
b2c99b8043eaa188ee1adac1fbc17dce003990e1 | 571 | ex | Elixir | lib/dwarlixir/controllers/human/impl.ex | Trevoke/dwarlixir | e0a7ae39d3687d8e649fba67ce3dee413f00307e | [
"MIT"
] | 54 | 2017-03-09T20:43:11.000Z | 2022-03-29T16:59:20.000Z | lib/dwarlixir/controllers/human/impl.ex | Trevoke/dwarlixir | e0a7ae39d3687d8e649fba67ce3dee413f00307e | [
"MIT"
] | 17 | 2017-03-12T18:16:21.000Z | 2017-05-30T03:34:57.000Z | lib/dwarlixir/controllers/human/impl.ex | Trevoke/dwarlixir | e0a7ae39d3687d8e649fba67ce3dee413f00307e | [
"MIT"
] | 2 | 2017-04-23T23:47:41.000Z | 2017-11-19T13:38:25.000Z | defmodule Dwarlixir.Controllers.Human.Impl do
alias Dwarlixir.Controllers.Human
alias Human.Server
def log_in(user_id, _password, transport, socket) do
user_id = String.trim user_id
params =
%Human{
id: user_id,
socket: socket,
transport: transport,
entity: Dwarlixir... | 24.826087 | 69 | 0.644483 |
b2c9ee6db42e2b683889d5d03f024d80f2cdb3d8 | 1,456 | ex | Elixir | lib/grizzly/zwave/command_classes/thermostat_operating_state.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/command_classes/thermostat_operating_state.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/command_classes/thermostat_operating_state.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.CommandClasses.ThermostatOperatingState do
@moduledoc """
"ThermostatOperatingState" Command Class
The Thermostat Operating State Command Class is used to obtain the operating state of the
thermostat.
"""
@behaviour Grizzly.ZWave.CommandClass
alias Grizzly.ZWave.DecodeError
@... | 29.714286 | 96 | 0.679258 |
b2ca0339c25793fa73e9f7fbda7ba1dfdfe3f5d3 | 1,511 | exs | Elixir | mix.exs | myskoach/polymorphic_embed | 3d005c4c6334315194d329a18c193cce17669522 | [
"Apache-2.0"
] | null | null | null | mix.exs | myskoach/polymorphic_embed | 3d005c4c6334315194d329a18c193cce17669522 | [
"Apache-2.0"
] | null | null | null | mix.exs | myskoach/polymorphic_embed | 3d005c4c6334315194d329a18c193cce17669522 | [
"Apache-2.0"
] | 1 | 2020-11-26T01:50:50.000Z | 2020-11-26T01:50:50.000Z | defmodule PolymorphicEmbed.MixProject do
use Mix.Project
@version "0.6.0"
def project do
[
app: :polymorphic_embed,
elixir: "~> 1.9",
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
# Hex
version: @version,
package: package(),
... | 20.146667 | 78 | 0.528789 |
b2ca08e38e187a95a27092b5682ec438b35c3f47 | 761 | ex | Elixir | lib/softwaremaxims_web/router.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | null | null | null | lib/softwaremaxims_web/router.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | 7 | 2018-10-13T20:45:27.000Z | 2018-10-29T12:42:22.000Z | lib/softwaremaxims_web/router.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | null | null | null | defmodule SoftwaremaximsWeb.Router do
use SoftwaremaximsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Softwarem... | 23.78125 | 68 | 0.695138 |
b2ca0f0054dea7a7c82303ecceebd44573468d6a | 724 | exs | Elixir | mix.exs | LeonardSSH/lanyard | 407bc5c7dfcfcaf28ee72a70dc8695c39980f87d | [
"MIT"
] | 323 | 2021-03-12T17:42:44.000Z | 2022-03-31T21:32:30.000Z | mix.exs | LeonardSSH/lanyard | 407bc5c7dfcfcaf28ee72a70dc8695c39980f87d | [
"MIT"
] | 56 | 2021-03-22T12:30:36.000Z | 2022-03-25T17:56:01.000Z | mix.exs | LeonardSSH/lanyard | 407bc5c7dfcfcaf28ee72a70dc8695c39980f87d | [
"MIT"
] | 113 | 2021-03-13T17:30:36.000Z | 2022-03-29T13:19:24.000Z | defmodule Lanyard.MixProject do
use Mix.Project
def project do
[
app: :lanyard,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_ap... | 20.111111 | 59 | 0.506906 |
b2ca1096e37df01f49b8c46fd374f3b3452686c9 | 137 | ex | Elixir | skippy/dashboard/lib/dashboard/presence.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | null | null | null | skippy/dashboard/lib/dashboard/presence.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | 5 | 2020-07-17T23:35:42.000Z | 2021-05-10T07:00:10.000Z | skippy/dashboard/lib/dashboard/presence.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | null | null | null | defmodule Dashboard.Presence do
use Phoenix.Presence, otp_app: :dashboard,
pubsub_server: Dashboard.PubSub
end
| 27.4 | 55 | 0.678832 |
b2ca20a4e5628566239c07f2aeca3ae428b1ea57 | 274 | exs | Elixir | config/test.exs | menuan/fav | 49ae04a5a7dbc70fcc8058303c70ca8332bec0e4 | [
"MIT"
] | null | null | null | config/test.exs | menuan/fav | 49ae04a5a7dbc70fcc8058303c70ca8332bec0e4 | [
"MIT"
] | null | null | null | config/test.exs | menuan/fav | 49ae04a5a7dbc70fcc8058303c70ca8332bec0e4 | [
"MIT"
] | null | null | null | use Mix.Config
# JUnit formatter configuration
config :junit_formatter,
report_file: "test_report.xml",
report_dir: "./test-results",
print_report_file: true,
prepend_project_name?: true
# Configure Tesla for the tests
config :tesla,
adapter: Tesla.Adapter.Mint
| 21.076923 | 33 | 0.766423 |
b2ca4392eaa7768839a74f6b7dd422d0ef4dfab6 | 10,278 | ex | Elixir | lib/vintage_net.ex | mnishiguchi/vintage_net | b2c9848c15d1e72f142981e00186b314d47647d7 | [
"Apache-2.0"
] | null | null | null | lib/vintage_net.ex | mnishiguchi/vintage_net | b2c9848c15d1e72f142981e00186b314d47647d7 | [
"Apache-2.0"
] | null | null | null | lib/vintage_net.ex | mnishiguchi/vintage_net | b2c9848c15d1e72f142981e00186b314d47647d7 | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet do
@moduledoc """
`VintageNet` is network configuration library built specifically for [Nerves
Project](https://nerves-project.org) devices. It has the following features:
* Ethernet and WiFi support included. Extendible to other technologies
* Default configurations specified in your Ap... | 31.624615 | 102 | 0.701401 |
b2ca5578504c59cef3f0582221afb6959f0e15a8 | 675 | ex | Elixir | lib/ecto/erd/html.ex | patatoid/ecto_erd | 526a97001bcdeb4c956eb8bc04c30480e762d0b3 | [
"Apache-2.0"
] | 45 | 2021-08-29T22:50:48.000Z | 2022-03-29T21:08:35.000Z | lib/ecto/erd/html.ex | patatoid/ecto_erd | 526a97001bcdeb4c956eb8bc04c30480e762d0b3 | [
"Apache-2.0"
] | 9 | 2021-08-30T11:53:08.000Z | 2022-03-14T07:08:00.000Z | lib/ecto/erd/html.ex | patatoid/ecto_erd | 526a97001bcdeb4c956eb8bc04c30480e762d0b3 | [
"Apache-2.0"
] | 4 | 2021-08-30T07:08:55.000Z | 2022-02-17T07:20:45.000Z | defmodule Ecto.ERD.HTML do
@moduledoc false
def to_iodata(tuples) when is_list(tuples) do
Enum.map(tuples, &to_iodata/1)
end
def to_iodata({tag_name, attrs, content}) do
tag(
to_string(tag_name),
attrs,
content
|> List.wrap()
|> to_iodata()
)
end
def to_iodata(ter... | 19.852941 | 69 | 0.567407 |
b2ca612a340557d06093d9b6badf4c56f77b07f2 | 877 | ex | Elixir | debian/prerm.ex | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 41 | 2015-02-11T03:23:36.000Z | 2020-12-27T12:13:52.000Z | debian/prerm.ex | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 36 | 2015-01-04T16:58:51.000Z | 2020-11-12T12:05:37.000Z | debian/prerm.ex | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 7 | 2015-07-10T08:04:01.000Z | 2021-09-28T08:09:23.000Z | #!/bin/sh
# prerm script for arakoon
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version... | 22.487179 | 76 | 0.625998 |
b2ca7006bf5c7f3cd02c77aff816748486875e15 | 940 | exs | Elixir | spec/assertions/boolean/be_truthy_spec.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | spec/assertions/boolean/be_truthy_spec.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | spec/assertions/boolean/be_truthy_spec.exs | bblaszkow06/espec | 4d9819ca5c68c6eb70276c7d9c9630ded01ba778 | [
"Apache-2.0"
] | null | null | null | defmodule ESpec.Assertions.Boolean.BeTruthySpec do
use ESpec, async: true
context "Success" do
it "checks success with `to`" do
message = expect(1).to(be_truthy())
expect(message) |> to(eq "`1` is truthy.")
end
it "checks success with `not_to`" do
message = expect(nil).to_not(be_trut... | 24.736842 | 65 | 0.608511 |
b2ca79714c5a71380a916eba7581aeea80df04d1 | 6,405 | ex | Elixir | clients/gke_hub/lib/google_api/gke_hub/v1/model/policy.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/policy.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/gke_hub/lib/google_api/gke_hub/v1/model/policy.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 114.375 | 2,012 | 0.749727 |
b2ca814c6967e7bfcb54213006c9b36cc8394432 | 6,288 | exs | Elixir | config/.credo.exs | coingaming/grpc-mock | 92795ada3581c8656a6f39aefd38aa47ef669f66 | [
"Apache-2.0"
] | null | null | null | config/.credo.exs | coingaming/grpc-mock | 92795ada3581c8656a6f39aefd38aa47ef669f66 | [
"Apache-2.0"
] | null | null | null | config/.credo.exs | coingaming/grpc-mock | 92795ada3581c8656a6f39aefd38aa47ef669f66 | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.055901 | 93 | 0.6118 |
b2ca94962b1c8c24ab8aad54798d0c27d0b30512 | 1,506 | ex | Elixir | lib/elixtagram/api/tags.ex | Zensavona/elixtagram | 248682e23ac416c59d37e964e0a29afda625ece3 | [
"MIT"
] | 84 | 2015-10-02T08:17:54.000Z | 2021-01-25T10:44:00.000Z | lib/elixtagram/api/tags.ex | Zensavona/elixtagram | 248682e23ac416c59d37e964e0a29afda625ece3 | [
"MIT"
] | 24 | 2015-10-29T14:53:25.000Z | 2019-06-06T19:12:50.000Z | lib/elixtagram/api/tags.ex | Zensavona/elixtagram | 248682e23ac416c59d37e964e0a29afda625ece3 | [
"MIT"
] | 22 | 2015-11-15T04:06:52.000Z | 2020-11-15T18:41:26.000Z | defmodule Elixtagram.API.Tags do
@moduledoc """
Provides access to the `/tags/` area of the Instagram API (for internal use).
"""
import Elixtagram.API.Base
import Elixtagram.Parser
@doc """
Fetch a `%Elixtagram.Model.Tag` representing a single tag from the API,
optionally take an access token.
"""
... | 32.73913 | 82 | 0.690571 |
b2cab94500fe8de8acd0db0d073332a3fe75575e | 1,505 | ex | Elixir | lib/tabi_web/endpoint.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | 1 | 2021-07-06T00:32:19.000Z | 2021-07-06T00:32:19.000Z | lib/tabi_web/endpoint.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | null | null | null | lib/tabi_web/endpoint.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | null | null | null | defmodule TabiWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :tabi
# 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: "_tabi_key",
... | 27.87037 | 97 | 0.710299 |
b2cabab9ca544544cbb738a999805567c112e016 | 382 | ex | Elixir | lib/tilex_web/views/layout_view.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | lib/tilex_web/views/layout_view.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | lib/tilex_web/views/layout_view.ex | onekilo79/tilex | c1b2dbea911a22d21420f52533e96bd63ce8f4ff | [
"MIT"
] | null | null | null | defmodule TilexWeb.LayoutView do
use TilexWeb, :view
def page_title(%{post: post}), do: post.title
def page_title(%{channel: channel}), do: String.capitalize(channel.name)
def page_title(%{developer: developer}), do: developer.username
def page_title(%{page_title: page_title}), do: page_title
def page_titl... | 38.2 | 74 | 0.748691 |
b2cb1d65bb20496c6b0617c616a70b9fb10a2e5c | 75 | exs | Elixir | vue_fire/test/views/layout_view_test.exs | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | 1 | 2016-08-30T17:14:49.000Z | 2016-08-30T17:14:49.000Z | vue_fire/test/views/layout_view_test.exs | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | null | null | null | vue_fire/test/views/layout_view_test.exs | hectorip/VuePhoenix | 2bd5ff6de9811d373c260a1eda60d6809d472d15 | [
"Apache-2.0"
] | null | null | null | defmodule VueFire.LayoutViewTest do
use VueFire.ConnCase, async: true
end | 25 | 35 | 0.826667 |
b2cb3a6a9c7fe72149954257c83f659d464e5125 | 311 | ex | Elixir | test/support/models/article.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | null | null | null | test/support/models/article.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | null | null | null | test/support/models/article.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | 1 | 2021-01-16T19:05:50.000Z | 2021-01-16T19:05:50.000Z | defmodule ExMachina.Article do
use Ecto.Schema
schema "articles" do
field(:title, :string)
field(:visits, :decimal)
belongs_to(:author, ExMachina.User)
belongs_to(:editor, ExMachina.User)
belongs_to(:publisher, ExMachina.Publisher)
has_many(:comments, ExMachina.Comment)
end
end
| 22.214286 | 47 | 0.717042 |
b2cb603cab34b6c60663e8352542b39610cfea7a | 598 | ex | Elixir | lib/home/project.ex | aoswalt/portfolio-web-site | 9869da8caf9d1d31a1d82e60f437ec0513a84748 | [
"MIT"
] | 1 | 2020-07-23T12:54:25.000Z | 2020-07-23T12:54:25.000Z | lib/home/project.ex | aoswalt/adamoswalt.com | 9869da8caf9d1d31a1d82e60f437ec0513a84748 | [
"MIT"
] | null | null | null | lib/home/project.ex | aoswalt/adamoswalt.com | 9869da8caf9d1d31a1d82e60f437ec0513a84748 | [
"MIT"
] | null | null | null | defmodule Home.Project do
defstruct [
:title,
:thumbnail,
:image,
:description,
:short_description,
:technologies,
:source_url,
:live_url,
:last_update
]
@json "assets/data/projects.json" |> File.read!() |> Jason.decode!()
def read!() do
@json
|> Enum.map(&map_to_st... | 21.357143 | 78 | 0.618729 |
b2cb60829be2eeb3c28be625b0bb82e5e9fd747d | 917 | ex | Elixir | lib/confex/adapter.ex | kianmeng/confex | 220a976d6789a5a3e5e7f6b22d4f4b9e77025999 | [
"MIT"
] | 299 | 2016-09-08T19:15:02.000Z | 2022-03-16T07:19:56.000Z | lib/confex/adapter.ex | kianmeng/confex | 220a976d6789a5a3e5e7f6b22d4f4b9e77025999 | [
"MIT"
] | 54 | 2016-09-13T20:55:30.000Z | 2021-04-01T14:31:42.000Z | lib/confex/adapter.ex | kianmeng/confex | 220a976d6789a5a3e5e7f6b22d4f4b9e77025999 | [
"MIT"
] | 37 | 2016-11-02T12:26:21.000Z | 2021-07-15T21:55:42.000Z | defmodule Confex.Adapter do
@moduledoc """
This module provides behaviour for the Confex adapters, that are responsible
for fetching raw values from an environment variable or other source.
By default, Confex is supplied with two adapters:
* `:system` - read configuration from system environment (`Confex.... | 36.68 | 99 | 0.742639 |
b2cb8f37aca026630edb8ffaf17e296257792c3d | 1,424 | ex | Elixir | examples/sqs_example/lib/int_squared_broadway.ex | maartenvanvliet/broadway_sqs | aea664c9de0c0af016fa420a50f7a51f1c0fbcd8 | [
"Apache-2.0"
] | null | null | null | examples/sqs_example/lib/int_squared_broadway.ex | maartenvanvliet/broadway_sqs | aea664c9de0c0af016fa420a50f7a51f1c0fbcd8 | [
"Apache-2.0"
] | null | null | null | examples/sqs_example/lib/int_squared_broadway.ex | maartenvanvliet/broadway_sqs | aea664c9de0c0af016fa420a50f7a51f1c0fbcd8 | [
"Apache-2.0"
] | null | null | null | defmodule BroadwaySQSExample.IntSquared do
use Broadway
alias Broadway.Message
@broadway_sqs_implementation Application.get_env(
:broadway_sqs_example,
:broadway_sqs_implementation,
BroadwaySQS.ExAwsClient
... | 26.867925 | 92 | 0.554073 |
b2cba2eddc704dcc6fd8036a7a6eabe341a951e6 | 1,141 | exs | Elixir | config/config.exs | midas/bamboo_clicksend | f9f2a7c6c3701a22abc6e5d85968d01ecc6893f3 | [
"MIT"
] | null | null | null | config/config.exs | midas/bamboo_clicksend | f9f2a7c6c3701a22abc6e5d85968d01ecc6893f3 | [
"MIT"
] | null | null | null | config/config.exs | midas/bamboo_clicksend | f9f2a7c6c3701a22abc6e5d85968d01ecc6893f3 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.755478 |
b2cba796868ec3142b2c11eeb2c5ca79993b6ff7 | 294 | exs | Elixir | test/mock_pid_map_server_test.exs | skylerparr/syringe | 4dd5456c7964b185f09d90816a0d67837b124781 | [
"MIT"
] | 24 | 2016-09-28T04:08:56.000Z | 2022-01-21T17:36:35.000Z | test/mock_pid_map_server_test.exs | skylerparr/syringe | 4dd5456c7964b185f09d90816a0d67837b124781 | [
"MIT"
] | 6 | 2017-02-09T18:20:44.000Z | 2019-10-01T17:51:49.000Z | test/mock_pid_map_server_test.exs | skylerparr/syringe | 4dd5456c7964b185f09d90816a0d67837b124781 | [
"MIT"
] | 3 | 2017-02-16T18:29:06.000Z | 2019-11-08T20:28:41.000Z | defmodule MockPidMapServerTest do
use ExUnit.Case
setup do
MockPidMapServer.start_link
:ok
end
test "should map pid" do
{:ok, pid} = Task.start_link(fn() -> receive do end end)
MockPidMapServer.map(self(), pid)
assert MockPidMapServer.get(self()) == pid
end
end
| 19.6 | 60 | 0.680272 |
b2cbfa44a7b6a97243994abebd05afb1202e5b07 | 1,140 | ex | Elixir | lib/lint/rules/trailing_ellipsis.ex | VadymBerezdetskyi/accent | 19d2205c7594ac5f0de40e2aaa8ff3c5190a8518 | [
"BSD-3-Clause"
] | null | null | null | lib/lint/rules/trailing_ellipsis.ex | VadymBerezdetskyi/accent | 19d2205c7594ac5f0de40e2aaa8ff3c5190a8518 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/lint/rules/trailing_ellipsis.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Accent.Lint.Rules.TrailingEllipsis do
@moduledoc """
Checks that ellipsis are replicated between both source and translation.
"""
@behaviour Accent.Lint.Rule
@regex ~r/.+…$/
alias Accent.Lint.Message
def lint(value = %{entry: %{is_master: true}}, _), do: value
def lint(value, _) do
te... | 27.142857 | 76 | 0.623684 |
b2cc0f3e2286e19df52f63609a5039d70c622bce | 571 | exs | Elixir | bench/parser_bench.exs | pk4media/elixir_device | 54aa60ebc294fb9523ac836cc86705410afda6b5 | [
"MIT"
] | 1 | 2017-02-21T06:17:15.000Z | 2017-02-21T06:17:15.000Z | bench/parser_bench.exs | pk4media/elixir_device | 54aa60ebc294fb9523ac836cc86705410afda6b5 | [
"MIT"
] | null | null | null | bench/parser_bench.exs | pk4media/elixir_device | 54aa60ebc294fb9523ac836cc86705410afda6b5 | [
"MIT"
] | null | null | null | defmodule ParserBench do
use Benchfella
bench "empty ua" do
Device.Parser.parse(nil)
end
bench "car ua" do
Device.Parser.parse("Mozilla/5.0 (X11; u; Linux; C) AppleWebKit /533.3 (Khtml, like Gheko) QtCarBrowser Safari /533.3")
end
bench "phone ua" do
Device.Parser.parse("Mozilla/5.0 (iPhone S... | 28.55 | 141 | 0.695271 |
b2cc4e20616257e62b8ffb904cfd2af856566e4e | 597 | exs | Elixir | apps/tai/test/tai/events/lock_asset_balance_ok_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/events/lock_asset_balance_ok_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/events/lock_asset_balance_ok_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.Events.LockAssetBalanceOkTest do
use ExUnit.Case, async: true
test ".to_data/1 transforms decimal data to strings" do
event = %Tai.Events.LockAssetBalanceOk{
venue_id: :my_venue,
account_id: :my_account,
asset: :btc,
min: Decimal.new("0.1"),
max: Decimal.new("0.3"),
... | 24.875 | 57 | 0.541039 |
b2cc5335d7975d72bc2bb620f65fc98913d6c8c0 | 1,822 | ex | Elixir | lib/tweetyodel_live_web.ex | kpanic/tweetyodel_live | fd294ae2e171c215f8048f48e919d2de0757059a | [
"Apache-2.0"
] | 1 | 2020-01-12T21:52:15.000Z | 2020-01-12T21:52:15.000Z | lib/tweetyodel_live_web.ex | kpanic/tweetyodel_live | fd294ae2e171c215f8048f48e919d2de0757059a | [
"Apache-2.0"
] | null | null | null | lib/tweetyodel_live_web.ex | kpanic/tweetyodel_live | fd294ae2e171c215f8048f48e919d2de0757059a | [
"Apache-2.0"
] | null | null | null | defmodule TweetyodelLiveWeb 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 TweetyodelLiveWeb, :controller
use TweetyodelLiveWeb, :view
The definitions below will be executed for every... | 25.305556 | 83 | 0.70472 |
b2cc66a53f270d85c0624b352ac796f9ec1730c0 | 1,819 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1_normalized_vertex.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1_normalized_vertex.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1_normalized_vertex.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... | 32.482143 | 144 | 0.746014 |
b2cc66b64bac68d1926a86ed89d46a6ab0196e68 | 1,458 | exs | Elixir | test/components/form/options_for_select_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | test/components/form/options_for_select_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | test/components/form/options_for_select_test.exs | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.OptionsForSelectTest do
use ExUnit.Case, async: true
alias Surface.Components.Form.OptionsForSelect, warn: false
import ComponentTestHelper
test "empty options" do
code =
quote do
~H"""
<OptionsForSelect />
"""
end
assert render_l... | 23.901639 | 110 | 0.538409 |
b2cc719798fa8ef0b89a502e0a0a0ae8101bd6c1 | 416 | ex | Elixir | skippy/dashboard/lib/dashboard_web/device_listener.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | null | null | null | skippy/dashboard/lib/dashboard_web/device_listener.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | 5 | 2020-07-17T23:35:42.000Z | 2021-05-10T07:00:10.000Z | skippy/dashboard/lib/dashboard_web/device_listener.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | null | null | null | defmodule DashboardWeb.DeviceListener do
require Logger
use Device.Subscriber
def on_broadcast(Device.Sound.Topic, device, state) do
Logger.debug("Received broadcast from device [#{inspect device}] [#{inspect state}]]")
end
def on_broadcast(topic, device, state) do
Logger.debug("Received broa... | 29.714286 | 116 | 0.716346 |
b2cc842153921eb86fbeaa412149db5fe813a4db | 549 | ex | Elixir | lib/inmana/supplies/get_by_expiration.ex | pouthergust/inmana | 06dd2bf029c5f221ec9f404f870c446dbb3cf04b | [
"MIT"
] | null | null | null | lib/inmana/supplies/get_by_expiration.ex | pouthergust/inmana | 06dd2bf029c5f221ec9f404f870c446dbb3cf04b | [
"MIT"
] | null | null | null | lib/inmana/supplies/get_by_expiration.ex | pouthergust/inmana | 06dd2bf029c5f221ec9f404f870c446dbb3cf04b | [
"MIT"
] | null | null | null | defmodule Inmana.Supplies.GetByExpiration do
import Ecto.Query
alias Inmana.{Supply, Restaurant, Repo}
def call do
today = Date.utc_today()
beginning_of_week = Date.beginning_of_week(today)
end_of_week = Date.end_of_week(today)
query = from supply in Supply,
where:
supply.expirati... | 26.142857 | 96 | 0.693989 |
b2cc92fd54f29fe689591ebda1f632bf0c750d63 | 373 | exs | Elixir | priv/repo/migrations/20151108002255_create_badge.exs | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | priv/repo/migrations/20151108002255_create_badge.exs | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | priv/repo/migrations/20151108002255_create_badge.exs | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Repo.Migrations.CreateBadge do
use Ecto.Migration
def change do
create table(:badges) do
add(:project_id, :integer)
add(:image, :binary)
add(:format, :string)
add(:coverage, :float)
timestamps()
end
create(index(:badges, [:project_id]))
create(uniq... | 20.722222 | 57 | 0.646113 |
b2ccb2e9b7eed8613eccb1bdc1e7c03ba4a0df95 | 2,751 | exs | Elixir | test/todo_api_web/controllers/todo_controller_test.exs | Thrasolt/todo-api | 2ad53cbb68c1429fa248cc13da456225cd241602 | [
"Unlicense"
] | null | null | null | test/todo_api_web/controllers/todo_controller_test.exs | Thrasolt/todo-api | 2ad53cbb68c1429fa248cc13da456225cd241602 | [
"Unlicense"
] | 2 | 2021-03-09T14:57:40.000Z | 2021-05-10T08:05:24.000Z | test/todo_api_web/controllers/todo_controller_test.exs | Thrasolt/todo-api | 2ad53cbb68c1429fa248cc13da456225cd241602 | [
"Unlicense"
] | null | null | null | defmodule TodoApiWeb.TodoControllerTest do
use TodoApiWeb.ConnCase
alias TodoApi.Directory
alias TodoApi.Directory.Todo
@create_attrs %{
description: "some description",
name: "some name",
priority: 42
}
@update_attrs %{
description: "some updated description",
name: "some updated name... | 28.360825 | 88 | 0.597237 |
b2cd0c49d0822cf29ad7351428088752f33f5a5d | 206 | exs | Elixir | test/socializer_web/controllers/page_controller_test.exs | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | test/socializer_web/controllers/page_controller_test.exs | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | test/socializer_web/controllers/page_controller_test.exs | yosufali/socializer | abbd75cf1cedbf1a398fc72b64f4129e39d3e373 | [
"MIT"
] | null | null | null | defmodule SocializerWeb.PageControllerTest do
use SocializerWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.888889 | 60 | 0.68932 |
b2cd1bf839b06e157aa2c2d9e4bd5dd9310593a7 | 690 | ex | Elixir | lib/handlers/excel_styles_handler.ex | kuroda/extr_text | a59526e75d8335291b83f944d1e6db9cfe183194 | [
"MIT"
] | null | null | null | lib/handlers/excel_styles_handler.ex | kuroda/extr_text | a59526e75d8335291b83f944d1e6db9cfe183194 | [
"MIT"
] | 5 | 2021-11-22T02:12:28.000Z | 2021-12-04T05:22:13.000Z | lib/handlers/excel_styles_handler.ex | kuroda/extr_text | a59526e75d8335291b83f944d1e6db9cfe183194 | [
"MIT"
] | null | null | null | defmodule ExtrText.ExcelStylesHandler do
@behaviour Saxy.Handler
def handle_event(:start_element, {"numFmt", attributes}, state) when state.name == "numFmts" do
{:ok, %{state | num_formats: [attributes | state.num_formats]}}
end
def handle_event(:start_element, {"xf", attributes}, state) when state.name =... | 28.75 | 97 | 0.676812 |
b2cd5386c254ec4a5ffa9c212e9f55991e29de7e | 984 | exs | Elixir | lib/nap/ets/persistence_test.exs | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | lib/nap/ets/persistence_test.exs | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | lib/nap/ets/persistence_test.exs | mindreframer/nap | ea1951c830061b6aa880a6ed00a80b7e8870c5fa | [
"MIT"
] | null | null | null | defmodule Nap.Ets.PersistenceTest do
use ExUnit.Case
setup do
dir = System.tmp_dir!()
tmp_file = Path.join(dir, "mynap.txt")
{:ok, %{tmp_file: tmp_file}}
end
describe "full cycle" do
test "works", %{tmp_file: tmp_file} do
table = :mytest
filepath = tmp_file
Nap.Ets.reset_tabl... | 29.818182 | 73 | 0.558943 |
b2cd8a7c0e6af64b80a9a9d26ddf38161476c0f8 | 1,552 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_header.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_header.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/http_header.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 ... | 31.04 | 77 | 0.719716 |
b2cdb45d10acae1ed3678c34565906caeaf94048 | 839 | ex | Elixir | web/models/stripe_connect_card.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/models/stripe_connect_card.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/models/stripe_connect_card.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.StripeConnectCard do
use CodeCorps.Web, :model
@type t :: %__MODULE__{}
schema "stripe_connect_cards" do
field :id_from_stripe, :string, null: false
belongs_to :stripe_connect_account, CodeCorps.StripeConnectAccount
belongs_to :stripe_platform_card, CodeCorps.StripePlatformCard
... | 33.56 | 97 | 0.768772 |
b2cdbbdd186439d22fff6e9d86d49e337ef635ea | 2,063 | exs | Elixir | priv/repo/migrations/20200218125203_invoice_raw_test_data.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20200218125203_invoice_raw_test_data.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20200218125203_invoice_raw_test_data.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | 1 | 2021-12-07T09:25:32.000Z | 2021-12-07T09:25:32.000Z | defmodule NewWay.Repo.Migrations.InvoiceRawTestData do
use Ecto.Migration
def up do
execute """
INSERT INTO nw.invoice VALUES (
1,
'2004-10-19 10:23:54',
'test_invoice_id_1',
'test_party_id_1',
'test_shop_id_1',
1,
'2004-10-19 10:23:54',
'pa... | 22.67033 | 54 | 0.507029 |
b2cdbfb5de989dd7ed98be26be71e6a10a7efecd | 1,143 | ex | Elixir | lib/pi_hvac_web/controllers/ircsv_controller.ex | ak1211/pi_hvac | a4be795bac5b22585d608c4902fdd30c97210c0b | [
"Apache-2.0"
] | 3 | 2020-03-08T07:17:24.000Z | 2020-08-15T13:21:29.000Z | lib/pi_hvac_web/controllers/ircsv_controller.ex | ak1211/pi_hvac | a4be795bac5b22585d608c4902fdd30c97210c0b | [
"Apache-2.0"
] | 3 | 2020-08-02T11:39:28.000Z | 2020-08-02T11:39:29.000Z | lib/pi_hvac_web/controllers/ircsv_controller.ex | ak1211/pi_hvac | a4be795bac5b22585d608c4902fdd30c97210c0b | [
"Apache-2.0"
] | null | null | null | defmodule PiHvacWeb.V1.IRCSVController do
use PiHvacWeb, :controller
require CSV
alias PiHvac.Api
action_fallback PiHvacWeb.FallbackController
def fileupload(conn, %{"ircsv" => ircsv}) do
with true <- File.stream!(ircsv.path, [:read, :utf8, :trim_bom], :line)
|> Stream.map(&String.tri... | 25.977273 | 75 | 0.486439 |
b2cde673393a53688b4d3d3af7d931fe8dfbe505 | 1,563 | exs | Elixir | mix.exs | xaelectronics/html5ever_elixir | 72989b3a8f6d3d384c4a7ea3fa5d85b4bedb72b5 | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | xaelectronics/html5ever_elixir | 72989b3a8f6d3d384c4a7ea3fa5d85b4bedb72b5 | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | xaelectronics/html5ever_elixir | 72989b3a8f6d3d384c4a7ea3fa5d85b4bedb72b5 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Html5ever.Mixfile do
use Mix.Project
def project do
[app: :html5ever,
version: "0.6.1",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates(),
deps: deps(),
... | 22.985294 | 79 | 0.582853 |
b2cdeed40687c891337f308c5b5d74edff450aa9 | 422 | exs | Elixir | exercise_1.03.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | 2 | 2019-08-26T13:17:27.000Z | 2020-09-24T13:16:07.000Z | exercise_1.03.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | exercise_1.03.exs | bschmeck/sicp-elixir | 4e6f959f506d0cb4e2692177cbdad1c87779cf7d | [
"MIT"
] | null | null | null | # Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers.
square = &(&1 * &1)
sum_of_squares = &(square.(&1) + square.(&2))
p = fn
x, y, z when x > z and y > z -> sum_of_squares.(x, y)
x, y, z when x > y and z > y -> sum_of_squares.(x, z)
x, y, z whe... | 30.142857 | 120 | 0.613744 |
b2cdf64b84c46ca5fa9bf5ae8753eadd85862753 | 737 | exs | Elixir | 16-legal-driving-age.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | 1 | 2016-04-23T17:03:02.000Z | 2016-04-23T17:03:02.000Z | 16-legal-driving-age.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | null | null | null | 16-legal-driving-age.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | 1 | 2021-06-07T21:21:41.000Z | 2021-06-07T21:21:41.000Z | defmodule LegalDrivingAge do
@moduledoc """
decides if a user is old enough to drive yet based on the age they input
"""
import String, only: [rstrip: 1]
import IO, only: [puts: 1 , gets: 1]
@legal_driving_age 18 # we're not in the US
def ask_age do
gets("How old are you? ")
|> rstrip
|... | 21.057143 | 89 | 0.630936 |
b2ce0e98a3e24bb484ee46a6af730e73d813fe2b | 434 | exs | Elixir | elm_elixir/test/models/player_test.exs | leadbrain/tutorial | 97ff8fa72829080b79e5ae32541e04897f31326d | [
"MIT"
] | null | null | null | elm_elixir/test/models/player_test.exs | leadbrain/tutorial | 97ff8fa72829080b79e5ae32541e04897f31326d | [
"MIT"
] | null | null | null | elm_elixir/test/models/player_test.exs | leadbrain/tutorial | 97ff8fa72829080b79e5ae32541e04897f31326d | [
"MIT"
] | null | null | null | defmodule Tutorial.PlayerTest do
use Tutorial.ModelCase
alias Tutorial.Player
@valid_attrs %{level: 42, name: "some name"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Player.changeset(%Player{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid... | 22.842105 | 59 | 0.723502 |
b2ceb9d8d9f95eed1fe3b8a3274a9c4afb3738da | 701 | ex | Elixir | lib/cli.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | 16 | 2018-02-12T22:06:00.000Z | 2022-01-04T05:07:35.000Z | lib/cli.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | 2 | 2019-12-07T15:54:10.000Z | 2019-12-07T19:21:14.000Z | lib/cli.ex | joedevivo/open_scad | c8981396b088e795a4269d1ac8a66ef7a1ecc744 | [
"MIT"
] | null | null | null | defmodule OpenSCAD.CLI do
@moduledoc """
This module is for building the escript, which should be able to be installed
locally and run outside of mix projects if that's too big a setup for your use
case.
"""
require Logger
def main([path | _args]) do
_ = extract_fs_mac()
Application.put_env(:open... | 25.962963 | 80 | 0.666191 |
b2ced7a45a8dc4506c3635387f6be03510e63b5b | 303 | exs | Elixir | apps/snitch_core/priv/repo/migrations/20180626095910_add_property.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/priv/repo/migrations/20180626095910_add_property.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/priv/repo/migrations/20180626095910_add_property.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Repo.Migrations.AddProperty do
use Ecto.Migration
def change do
create table("snitch_properties") do
add :name, :string, null: false
add :display_name, :string, null: false
timestamps()
end
create unique_index("snitch_properties", [:name])
end
end
| 21.642857 | 53 | 0.689769 |
b2cee36ad5e78651b0643807f24e7d99f86d7b6a | 152 | ex | Elixir | lib/atree/actions/shared/null.ex | andyl/atree_shared | 80439e4ca903ee9f512e5829fe24dac2a3bcbfb6 | [
"MIT"
] | null | null | null | lib/atree/actions/shared/null.ex | andyl/atree_shared | 80439e4ca903ee9f512e5829fe24dac2a3bcbfb6 | [
"MIT"
] | null | null | null | lib/atree/actions/shared/null.ex | andyl/atree_shared | 80439e4ca903ee9f512e5829fe24dac2a3bcbfb6 | [
"MIT"
] | null | null | null | defmodule Atree.Actions.Shared.Null do
use Atree.Action
@moduledoc """
Null playbook.
Can be used when there is no root playbook.
"""
end
| 12.666667 | 45 | 0.690789 |
b2cefd38028e1d9bd4e152aafcb8ee67d145d07a | 1,086 | ex | Elixir | lib/headers/public_key_pins.ex | anotherhale/secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 44 | 2016-01-14T06:30:37.000Z | 2021-10-21T03:22:55.000Z | lib/headers/public_key_pins.ex | anotherhale/plug_secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 3 | 2017-08-08T17:18:33.000Z | 2018-02-18T06:47:24.000Z | lib/headers/public_key_pins.ex | anotherhale/plug_secure_headers | 04c354351562a2211d4fafa4ef10947cfbfacb14 | [
"Apache-2.0"
] | 12 | 2017-01-09T15:18:40.000Z | 2020-12-22T08:53:08.000Z | defmodule SecureHeaders.PublicKeyPins do
@valid_header ~r/^((pin-sha256=\S+)\s*){2,}\s*max-age=\d+(;\s*?includeSubdomains)?(;\s*?report-uri=\S+)?/
@error_msg "Invalid configuration for public-key-pins"
@secure_config [
pin_sha256: "",
max_age: 5184000,
includesubdomains: false,
report_uri: ""
]
... | 27.846154 | 108 | 0.651013 |
b2cf2a6deb09c6be542a63536c990cc8a3aeca45 | 5,367 | ex | Elixir | lib/mongo/messages.ex | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | 286 | 2017-06-06T04:21:31.000Z | 2021-09-11T16:37:59.000Z | lib/mongo/messages.ex | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | 202 | 2017-05-28T13:22:01.000Z | 2020-05-15T20:15:51.000Z | lib/mongo/messages.ex | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | 120 | 2016-12-16T17:05:12.000Z | 2020-05-15T16:20:17.000Z | defmodule Mongo.Messages do
@moduledoc false
defmacro __using__(_opts) do
quote do
import unquote(__MODULE__)
@reply_cursor_not_found 0x1
@reply_query_failure 0x2
@reply_shard_config_stale 0x4
@reply_await_capable 0x8
end
end
import Record
import Mongo.BinaryUtils
@o... | 25.802885 | 97 | 0.642631 |
b2cf3923a1d48c2de89c2b27e2136d17a78de441 | 4,346 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/sheet_properties.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/sheet_properties.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/sheet_properties.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... | 58.72973 | 628 | 0.71353 |
b2cf4bffd9f067ab319664c4e79e018ee20133a7 | 5,248 | ex | Elixir | lib/screens/dup_screen_data/response.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens/dup_screen_data/response.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens/dup_screen_data/response.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule Screens.DupScreenData.Response do
@moduledoc false
@pill_to_specifier %{
red: "Red Line",
orange: "Orange Line",
green: "Green Line",
blue: "Blue Line",
mattapan: "Mattapan Line"
}
@headsign_overrides %{
"Boston College" => "Boston Coll",
"Cleveland Circle" => "Cleveland ... | 26.639594 | 88 | 0.623285 |
b2cf4c259360d41e96f7ce064b359fec842b12dc | 2,711 | ex | Elixir | lib/poker_hands/dealt_hand.ex | fredwu/kata-poker-hands-elixir | b818ebcf73392f48280c3c1ececf60cfb0c0f016 | [
"MIT"
] | 4 | 2016-09-29T05:14:55.000Z | 2021-05-06T08:42:03.000Z | lib/poker_hands/dealt_hand.ex | fredwu/kata-poker-hands-elixir | b818ebcf73392f48280c3c1ececf60cfb0c0f016 | [
"MIT"
] | null | null | null | lib/poker_hands/dealt_hand.ex | fredwu/kata-poker-hands-elixir | b818ebcf73392f48280c3c1ececf60cfb0c0f016 | [
"MIT"
] | null | null | null | defmodule PokerHands.DealtHand do
defstruct cards: [],
grouped_card_values: []
alias PokerHands.Card
@doc """
## Examples
iex> PokerHands.DealtHand.init("2H 4S 2S AH")
%PokerHands.DealtHand{
cards: [
%PokerHands.Card{value: "A", suit: "H", int_value: 14},
%... | 26.578431 | 76 | 0.599779 |
b2cf597683523651fda97b282e979267ae2bcc47 | 1,125 | exs | Elixir | config/config.exs | imranismail/backpack | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | 2 | 2017-09-03T15:16:19.000Z | 2018-02-07T02:25:10.000Z | config/config.exs | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | config/config.exs | imranismail/backpack.ex | b6c51a4d700c21b6b0e67fcb425bfd76ce15077c | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.290323 | 73 | 0.752 |
b2cf5cb048092529b8c4492885a1b14370452d3f | 3,663 | ex | Elixir | lib/exgencode/pdu.ex | flrnglbd/exgencode | 1312cd0f07297ccd5e6dcb136f041783c63244aa | [
"MIT"
] | null | null | null | lib/exgencode/pdu.ex | flrnglbd/exgencode | 1312cd0f07297ccd5e6dcb136f041783c63244aa | [
"MIT"
] | null | null | null | lib/exgencode/pdu.ex | flrnglbd/exgencode | 1312cd0f07297ccd5e6dcb136f041783c63244aa | [
"MIT"
] | null | null | null | defmodule Exgencode.Pdu do
@moduledoc """
The module contains functions for operating with PDUs defined with the `defpdu/2` macro.
"""
@doc "Returns the size of the field in bits."
@spec sizeof(Exgencode.pdu(), atom) ::
non_neg_integer | {:subrecord, Exgencode.pdu()} | {:header, Exgencode.pdu()}
... | 46.961538 | 156 | 0.668032 |
b2cf6bc0bb534e25913039c7d3361a2fc2ad9c95 | 6,263 | ex | Elixir | lib/oban/config.ex | JonRowe/oban | 5471fd9a1cc734ed9018143ae86d6903018384a3 | [
"Apache-2.0"
] | null | null | null | lib/oban/config.ex | JonRowe/oban | 5471fd9a1cc734ed9018143ae86d6903018384a3 | [
"Apache-2.0"
] | null | null | null | lib/oban/config.ex | JonRowe/oban | 5471fd9a1cc734ed9018143ae86d6903018384a3 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Config do
@moduledoc false
alias Oban.Crontab.Cron
use Agent
@type cronjob :: {Cron.t(), module(), Keyword.t()}
@type t :: %__MODULE__{
circuit_backoff: timeout(),
crontab: [cronjob()],
dispatch_cooldown: pos_integer(),
name: atom(),
node: b... | 28.861751 | 91 | 0.626856 |
b2cf7b5b95436c02aa406ce5fc1c6e2b5b93e273 | 170 | exs | Elixir | test/dark_matter/modules_test.exs | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | 2 | 2020-12-01T21:33:44.000Z | 2021-05-29T14:51:18.000Z | test/dark_matter/modules_test.exs | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | null | null | null | test/dark_matter/modules_test.exs | dark-elixir/dark_matter | 3f70edf4220ad1c066489110ef30880a143522fd | [
"Apache-2.0"
] | 2 | 2020-09-02T14:36:58.000Z | 2021-04-22T11:20:43.000Z | defmodule DarkMatter.ModulesTest do
@moduledoc """
Test for `DarkMatter.Modules`
"""
use ExUnit.Case, async: true
doctest DarkMatter.Modules, import: true
end
| 18.888889 | 42 | 0.729412 |
b2cf8b321c86c7088b7785686066261bc1c6298a | 978 | ex | Elixir | test/support/channel_case.ex | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | melardev/Elixir_Phoenix_Ecto_AuthJwt_Crud | 3c90eafe889b0414ed0f027d7d42bf401682f739 | [
"MIT"
] | null | null | null | defmodule ApiPhoenixJwtCrudWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case i... | 25.736842 | 79 | 0.726994 |
b2cf8fd7d0c744153e77f1faad315341160d32f9 | 700 | exs | Elixir | .check.exs | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | .check.exs | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | .check.exs | os-ex/chat_db_ex | 887aadaf6499bd214fd12af5410f5414672420a0 | [
"Apache-2.0"
] | null | null | null | [
## all available options with default values (see `mix check` docs for description)
parallel: true,
skipped: true,
## list of tools (see `mix check` docs for a list of default curated tools)
tools: [
{:compiler, "mix compile --warnings-as-errors --force"},
{:formatter, "mix format --check-formatted... | 41.176471 | 98 | 0.64 |
b2cf90006420ecd23f24acaf9c0755f04ae75b85 | 2,205 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/lookback_configuration.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/lookback_configuration.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/lookback_configuration.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... | 44.1 | 383 | 0.754649 |
b2cfd3fdce69b4756baecb03a48d83279ef3ab7f | 153 | ex | Elixir | lib/liveview_todos_web/controllers/page_controller.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | null | null | null | lib/liveview_todos_web/controllers/page_controller.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | 2 | 2021-03-09T14:03:26.000Z | 2021-05-10T06:02:53.000Z | lib/liveview_todos_web/controllers/page_controller.ex | mwindholtz/liveview_todos | 1f6a2e576be4a41f49d0bfe2b01da97d268d0d0d | [
"Apache-2.0"
] | null | null | null | defmodule LiveviewTodosWeb.PageController do
use LiveviewTodosWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 19.125 | 44 | 0.75817 |
b2cff04498456e630e88c487305827466161b3cf | 662 | exs | Elixir | test/post_test.exs | knewter/obelisk | 360425914d36c1c6094820ae035a4555a177ed00 | [
"MIT"
] | 1 | 2017-04-04T15:44:25.000Z | 2017-04-04T15:44:25.000Z | test/post_test.exs | knewter/obelisk | 360425914d36c1c6094820ae035a4555a177ed00 | [
"MIT"
] | null | null | null | test/post_test.exs | knewter/obelisk | 360425914d36c1c6094820ae035a4555a177ed00 | [
"MIT"
] | null | null | null | defmodule PostTest do
use ExUnit.Case
test "Can properly parse md filename to post name" do
filename = "2014-02-03-this-is-a-test.markdown"
processed = Obelisk.Post.title(filename)
assert processed == "This is a test"
end
test "separate post into front matter and content" do
{ frontmatter, con... | 20.6875 | 74 | 0.632931 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.