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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d500e683d785df0f9aae0399e7d78fc017949bd3 | 254 | exs | Elixir | priv/repo/migrations/20161114000000_create_server_type.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | priv/repo/migrations/20161114000000_create_server_type.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20161114000000_create_server_type.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.Repo.Migrations.CreateServerType do
use Ecto.Migration
def change do
create table(:server_types, primary_key: false) do
add :name, :text, primary_key: true
add :description, :text
timestamps()
end
end
end
| 18.142857 | 54 | 0.688976 |
d50104a12069a60f045ecb1cd167793d2c762734 | 4,440 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_query.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_query.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_query.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... | 60 | 596 | 0.71509 |
d5011421dc6fd81aff09b9d5699a26f465d0288e | 2,735 | ex | Elixir | lib/ucx_chat/chat_dat.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | lib/ucx_chat/chat_dat.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | lib/ucx_chat/chat_dat.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.ChatDat do
alias UcxChat.{Repo, Channel, User, MessageService}
alias UcxChat.ServiceHelpers, as: Helpers
require Logger
defstruct user: nil, room_types: [], settings: %{}, rooms: [],
channel: nil, messages: nil, room_map: %{}, active_room: %{},
status: "offline", room... | 29.728261 | 96 | 0.639122 |
d5012ff08cf2623f6604ba8d2cec436852326262 | 4,307 | ex | Elixir | apps/discordbot/lib/discordbot/model/payload.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/discordbot/lib/discordbot/model/payload.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/discordbot/lib/discordbot/model/payload.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule DiscordBot.Model.Payload do
@moduledoc """
An object which wraps all gateway messages
"""
use DiscordBot.Model.Serializable
alias DiscordBot.Model.{Dispatch, Hello, Identify, Payload, StatusUpdate, VoiceState}
defstruct [
:opcode,
:data,
:sequence,
:name
]
@typedoc """
Th... | 24.061453 | 87 | 0.609241 |
d50140fce7a864dc6917c9ff983389013ee9e420 | 872 | ex | Elixir | clients/iam/lib/google_api/iam/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/metadata.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"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.296296 | 74 | 0.755734 |
d501619c4b91780159baab69400e26d1d4f7d5fb | 120 | ex | Elixir | lib/checkdigit.ex | tacomeet/checkdigit | 450452140d212891bd29f8fa9b534b4edaf45ecd | [
"MIT"
] | null | null | null | lib/checkdigit.ex | tacomeet/checkdigit | 450452140d212891bd29f8fa9b534b4edaf45ecd | [
"MIT"
] | null | null | null | lib/checkdigit.ex | tacomeet/checkdigit | 450452140d212891bd29f8fa9b534b4edaf45ecd | [
"MIT"
] | null | null | null | defmodule Checkdigit do
@moduledoc """
Provides check digit algorithms and calculators written by Elixir.
"""
end
| 20 | 68 | 0.75 |
d501684f907d342beac06d2fb2bd62ecbf02ec5a | 2,032 | exs | Elixir | discuss/config/prod.exs | vegashat/Cards | bfb5a4dfbd9d6b7cf5c0df576a39fa6f94bf7c34 | [
"Apache-2.0"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | discuss/config/prod.exs | vegashat/Cards | bfb5a4dfbd9d6b7cf5c0df576a39fa6f94bf7c34 | [
"Apache-2.0"
] | 1 | 2021-03-09T12:34:49.000Z | 2021-03-09T12:34:49.000Z | discuss/config/prod.exs | vegashat/Cards | bfb5a4dfbd9d6b7cf5c0df576a39fa6f94bf7c34 | [
"Apache-2.0"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.253968 | 67 | 0.708169 |
d50183476cf6d988d382c74fe70a359467ea9003 | 2,959 | ex | Elixir | lib/mix/ecto.ex | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | lib/mix/ecto.ex | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | lib/mix/ecto.ex | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Ecto do
# Conveniences for writing Mix.Tasks in Ecto.
@moduledoc false
@doc """
Parses the repository as the first argument in the given list
and ensure the repository is loaded and available.
"""
@spec parse_repo([term]) :: {Ecto.Repo.t, [term]} | no_return
def parse_repo([h|t]) when is_... | 27.915094 | 110 | 0.632308 |
d501b8e324916e346e357a653fd89c16c497d3f5 | 677 | ex | Elixir | lib/dlex/type/query.ex | mrcasals/dlex | 6c8b383fe05f7b71337a4b1c6060ac392932d230 | [
"Apache-2.0"
] | 2 | 2021-01-22T19:14:15.000Z | 2021-02-11T20:09:04.000Z | lib/dlex/type/query.ex | mrcasals/dlex | 6c8b383fe05f7b71337a4b1c6060ac392932d230 | [
"Apache-2.0"
] | 8 | 2020-04-03T08:28:40.000Z | 2020-10-08T04:56:06.000Z | lib/dlex/type/query.ex | mrcasals/dlex | 6c8b383fe05f7b71337a4b1c6060ac392932d230 | [
"Apache-2.0"
] | null | null | null | defmodule Dlex.Type.Query do
@moduledoc false
alias Dlex.{Adapter, Query}
alias Dlex.Api.{Request, Response, TxnContext}
@behaviour Dlex.Type
@impl true
def execute(adapter, channel, request, json_lib, opts) do
Adapter.query(adapter, channel, request, json_lib, opts)
end
@impl true
def describ... | 25.074074 | 101 | 0.703102 |
d501c66ecfcf90a97b961a33be7936b819cda95d | 1,435 | exs | Elixir | src/test/mock_server/config/dev.exs | kuon/java-phoenix-channel | 955bca5010cf625bfdcdc785676ed4f2ed98c581 | [
"Apache-2.0",
"MIT"
] | 18 | 2020-02-20T00:36:57.000Z | 2022-01-18T01:33:25.000Z | src/test/mock_server/config/dev.exs | kuon/java-phoenix-channel | 955bca5010cf625bfdcdc785676ed4f2ed98c581 | [
"Apache-2.0",
"MIT"
] | 4 | 2020-04-03T21:06:53.000Z | 2020-05-16T03:49:03.000Z | src/test/mock_server/config/dev.exs | kuon/java-phoenix-channel | 955bca5010cf625bfdcdc785676ed4f2ed98c581 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-05-15T09:26:24.000Z | 2021-02-19T10:54:52.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 :mock_server, MockServerWeb.Endpoint,
http: [por... | 29.285714 | 68 | 0.724042 |
d501de8d1a8c4836472ff6d3bce9df1ddfae37ed | 7,509 | exs | Elixir | apps/snitch_core/test/domain/stock/inventory_test.exs | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | apps/snitch_core/test/domain/stock/inventory_test.exs | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | apps/snitch_core/test/domain/stock/inventory_test.exs | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | defmodule Snitch.Domain.PackageItemTest do
use ExUnit.Case, async: true
use Snitch.DataCase
import Snitch.Factory
alias Snitch.Domain.Inventory
alias Snitch.Data.Model.StockItem
describe "add_stock/2" do
test "add stock successfully" do
stock_location = insert(:stock_location)
variant = in... | 31.55042 | 95 | 0.645892 |
d501e0283aa37788210d9feed77acc5bbdc52938 | 1,291 | ex | Elixir | lib/stacca_bot/poller.ex | tchoutri/Staccato | ecee0c496dee310956766d70c4c042ea2d792290 | [
"MIT"
] | 2 | 2017-08-03T17:28:42.000Z | 2017-08-03T22:38:36.000Z | lib/stacca_bot/poller.ex | tchoutri/Staccato | ecee0c496dee310956766d70c4c042ea2d792290 | [
"MIT"
] | null | null | null | lib/stacca_bot/poller.ex | tchoutri/Staccato | ecee0c496dee310956766d70c4c042ea2d792290 | [
"MIT"
] | null | null | null | defmodule StaccaBot.Poller do
use GenServer
require Logger
# Server
def start_link do
Logger.log :info, "Started poller"
GenServer.start_link __MODULE__, :ok, name: __MODULE__
end
def init(:ok) do
update()
{:ok, 0}
end
def handle_cast(:update, offset) do
new_offset = Nadia.get_up... | 18.710145 | 76 | 0.631294 |
d501e4879e5b3737c93b5a7f9896c8431ad529b2 | 195 | exs | Elixir | test/test_helper.exs | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | 7 | 2019-12-13T19:23:47.000Z | 2022-01-22T23:02:42.000Z | test/test_helper.exs | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | 11 | 2021-03-10T01:57:00.000Z | 2021-08-31T18:30:54.000Z | test/test_helper.exs | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(SteinExample.Repo, :manual)
{:ok, _} = Application.ensure_all_started(:wallaby)
Application.put_env(:wallaby, :base_url, "http://localhost:4002/")
| 27.857143 | 66 | 0.758974 |
d501f06f3d1808e3492806c247f93d3b2dbd0f3d | 1,810 | ex | Elixir | lib/hexpm_web/endpoint.ex | thiamsantos/hexpm | 790bae9e761fe9b2dd6901618054ad533ef24599 | [
"Apache-2.0"
] | null | null | null | lib/hexpm_web/endpoint.ex | thiamsantos/hexpm | 790bae9e761fe9b2dd6901618054ad533ef24599 | [
"Apache-2.0"
] | null | null | null | lib/hexpm_web/endpoint.ex | thiamsantos/hexpm | 790bae9e761fe9b2dd6901618054ad533ef24599 | [
"Apache-2.0"
] | null | null | null | defmodule HexpmWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hexpm
plug HexpmWeb.Plugs.Forwarded
# 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.Static,
at: "... | 25.857143 | 69 | 0.656906 |
d501f3998cd4ac5de9d9d127bd8f6937e0188fa9 | 3,499 | ex | Elixir | apps/wechat_base/lib/wechat_base/tmp_manager.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/lib/wechat_base/tmp_manager.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_base/lib/wechat_base/tmp_manager.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | defmodule WechatBase.TmpManager do
use GenServer
@max_attempts 10
@temp_env_vars ~w(TMPDIR TMP TEMP)s
@table __MODULE__
def random_directory(prefix, opts \\ []) do
case ensure_tmp() do
{:ok, tmp, paths} ->
open_random_directory(prefix, tmp, paths, opts, 0)
{:no_tmp, tmps} ->
... | 26.507576 | 121 | 0.585882 |
d501fe8badb49c69c6fe12bb17345521e4c5fa53 | 567 | ex | Elixir | lib/dust/requests/util.ex | sultaniman/dust | 273cf538552870fd07269330c23e993c8859ddd9 | [
"Apache-2.0"
] | 18 | 2020-06-16T09:43:34.000Z | 2021-11-06T09:35:17.000Z | lib/dust/requests/util.ex | imanhodjaev/dust | f834dc92bbaaee82ca76f848bf640d3d37e4c5e8 | [
"Apache-2.0"
] | 13 | 2020-10-29T05:33:14.000Z | 2022-01-24T18:01:50.000Z | lib/dust/requests/util.ex | imanhodjaev/dust | f834dc92bbaaee82ca76f848bf640d3d37e4c5e8 | [
"Apache-2.0"
] | null | null | null | defmodule Dust.Requests.Util do
@moduledoc false
alias Dust.Requests.Proxy
@type domain() :: binary()
@type uri() :: binary()
@spec duration(pos_integer()) :: pos_integer()
def duration(start_ms) do
System.monotonic_time(:millisecond) - start_ms
end
def get_proxy(nil), do: nil
def get_proxy(pro... | 18.9 | 50 | 0.657848 |
d501ff2474bba9af8f4a89d86be0760fc941c68c | 1,592 | ex | Elixir | apps/cms/lib/blurb.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/cms/lib/blurb.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/cms/lib/blurb.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule CMS.Blurb do
@moduledoc """
Deprecated feature for News items.
"""
def suffix do
"..."
end
def blurb(text, max_length, default_message \\ "") do
blurb = build_blurb(text, max_length)
if String.trim(blurb) == "" do
default_message
else
blurb
end
end
defp buil... | 20.947368 | 57 | 0.629397 |
d502139f2b25bf8147f2472b7262072975843ce8 | 1,793 | exs | Elixir | test/absinthe/schema/experimental_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | test/absinthe/schema/experimental_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2020-04-07T23:46:38.000Z | 2020-04-07T23:46:38.000Z | test/absinthe/schema/experimental_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | null | null | null | defmodule Absinthe.Schema.ExperimentalTest do
use Absinthe.Case
@moduletag :experimental
defmodule Schema do
use Absinthe.Schema
query do
field :user, non_null(:user) do
resolve fn _, _ ->
{:ok, %{first_name: "Bruce", last_name: "Williams"}}
end
end
field :h... | 23.592105 | 88 | 0.553263 |
d5022e967bca4b67615b625eda2c274962af7c6e | 1,123 | exs | Elixir | config/config.exs | ncyian/Membrum | c77d5d198c031efa3d2f5b1e9e6a9e6d0e98702b | [
"BSD-2-Clause"
] | 1 | 2018-02-15T10:51:23.000Z | 2018-02-15T10:51:23.000Z | config/config.exs | ncyian/Membrum | c77d5d198c031efa3d2f5b1e9e6a9e6d0e98702b | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ncyian/Membrum | c77d5d198c031efa3d2f5b1e9e6a9e6d0e98702b | [
"BSD-2-Clause"
] | 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.225806 | 73 | 0.751558 |
d5023f1557710f50b0e794250f83743540963f8a | 1,016 | ex | Elixir | tags/lib/tags.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | tags/lib/tags.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | tags/lib/tags.ex | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | defmodule Tags do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 31.75 | 82 | 0.706693 |
d5025d4163d4bcb6debe5fbdd37860d0a57c6a04 | 235 | exs | Elixir | priv/v04/ch02/filter.3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 4 | 2019-04-21T05:46:19.000Z | 2021-09-13T01:56:33.000Z | priv/v04/ch02/filter.3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 1 | 2020-09-24T00:13:40.000Z | 2020-09-24T00:13:40.000Z | priv/v04/ch02/filter.3.exs | oiax/nano_planner | 9a0081582ea82519b8166f49ac8c5bcbcadaefbd | [
"MIT"
] | 3 | 2019-10-26T01:41:53.000Z | 2020-09-21T01:13:02.000Z | import Ecto.Query
alias NanoPlanner.Repo
alias NanoPlanner.Schedule.PlanItem
items =
PlanItem
|> where(name: "買い物", description: "猫の餌を買う")
|> order_by(asc: :id)
|> Repo.all()
|> Enum.map(& &1.description)
IO.inspect(items)
| 18.076923 | 46 | 0.689362 |
d50269dbd61fa4df7b6e0dc0341b2eca2e335517 | 392 | ex | Elixir | lib/access_pass/token_supervisor.ex | renesugar/accesspass | d98fa0800681eae8260ff8ecb589bb27067e4077 | [
"MIT"
] | 43 | 2018-01-28T07:44:11.000Z | 2018-10-07T04:12:08.000Z | lib/access_pass/token_supervisor.ex | jpiepkow/accesspass-jwt | 24ae4e216a22cfb3d6b037d6a9fe3f9c10764dd1 | [
"MIT"
] | 28 | 2018-02-11T02:26:38.000Z | 2018-10-07T18:47:27.000Z | lib/access_pass/token_supervisor.ex | jpiepkow/accesspass-jwt | 24ae4e216a22cfb3d6b037d6a9fe3f9c10764dd1 | [
"MIT"
] | 10 | 2018-02-10T01:04:27.000Z | 2018-10-07T03:47:57.000Z | defmodule AccessPass.TokenSupervisor do
@moduledoc false
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [])
end
def init(_) do
children = [
worker(AccessPass.RefreshTokenServer, []),
worker(AccessPass.AccessTokenServer, [])
]
opts = [strategy: :rest_for_one, ... | 20.631579 | 68 | 0.69898 |
d5028073ac9c80e343a48a4b05f7fa447ebfced1 | 6,101 | exs | Elixir | test/bson_test.exs | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | 1 | 2019-01-24T09:02:56.000Z | 2019-01-24T09:02:56.000Z | test/bson_test.exs | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | 1 | 2021-09-23T18:21:31.000Z | 2021-09-28T14:39:42.000Z | test/bson_test.exs | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | null | null | null | defmodule BSONTest do
use ExUnit.Case, async: true
import BSON, only: [decode: 1]
@map1 %{"hello" => "world"}
@bin1 <<22, 0, 0, 0, 2, 104, 101, 108, 108, 111, 0, 6, 0, 0, 0, 119,
111, 114, 108, 100, 0, 0>>
@map2 %{"BSON" => ["awesome", 5.05, 1986]}
@bin2 <<49, 0, 0, 0, 4, 66, 83, 79, 78, 0, 38,... | 33.338798 | 149 | 0.514506 |
d502b077a8fb6abca03134d20f57fc65033dc18e | 761 | ex | Elixir | lib/hl7/2.4/segments/psh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/psh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/psh.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.PSH do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
report_type: nil,
report_form_identifier: nil,
report_date: DataTypes.Ts,
report_interval_start_date: DataTypes.Ts,
report_interval_end... | 29.269231 | 68 | 0.735874 |
d502cfc6f3d6fc9e206335f2e15eeb202d36d6b0 | 2,289 | ex | Elixir | lib/pummpcomm/history/bolus_normal.ex | infinity-aps/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 15 | 2017-08-31T00:58:47.000Z | 2020-01-12T03:53:13.000Z | lib/pummpcomm/history/bolus_normal.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 1 | 2017-09-15T02:09:31.000Z | 2017-09-15T02:09:31.000Z | lib/pummpcomm/history/bolus_normal.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 3 | 2017-09-10T17:24:59.000Z | 2019-09-10T19:41:49.000Z | defmodule Pummpcomm.History.BolusNormal do
@moduledoc """
A normal bolus, entered by the user.
"""
alias Pummpcomm.{DateDecoder, Insulin}
@typedoc """
The duration of the square wave bolus. `0` when not a normal bolus.
"""
# TODO determine units and document
@type duration :: non_neg_integer
@ty... | 28.259259 | 98 | 0.629969 |
d502d3f07c45c461d56e443a59e7d9663cb05e9c | 31,771 | ex | Elixir | apps/language_server/lib/language_server/server.ex | atdrendel/elixir-ls | 794ed49a571f7943d478ef0a87ed94ab07b30c67 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/server.ex | atdrendel/elixir-ls | 794ed49a571f7943d478ef0a87ed94ab07b30c67 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/server.ex | atdrendel/elixir-ls | 794ed49a571f7943d478ef0a87ed94ab07b30c67 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Server do
@moduledoc """
Language Server Protocol server
This server tracks open files, attempts to rebuild the project when a file changes, and handles
requests from the IDE (for things like autocompletion, hover, etc.)
Notifications from the IDE are handled synchronously,... | 28.266014 | 133 | 0.641749 |
d502db64462d3e7a0d8eed8abba8ffec70c89c39 | 1,738 | ex | Elixir | lib/ash/resource/transformers/cache_primary_key.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | lib/ash/resource/transformers/cache_primary_key.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | lib/ash/resource/transformers/cache_primary_key.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Transformers.CachePrimaryKey do
@moduledoc "Validates and caches the primary key of a resource"
use Ash.Dsl.Transformer
alias Ash.Dsl.Transformer
alias Ash.Error.Dsl.DslError
def transform(resource, dsl_state) do
primary_key_attribute =
dsl_state
|> Transformer.get_ent... | 27.15625 | 79 | 0.621404 |
d502de64ea5ec57f9ff48a2f141cf34d361646a5 | 71 | ex | Elixir | lib/receptar_web/views/user_settings_view.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | lib/receptar_web/views/user_settings_view.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | lib/receptar_web/views/user_settings_view.ex | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | defmodule ReceptarWeb.UserSettingsView do
use ReceptarWeb, :view
end
| 17.75 | 41 | 0.830986 |
d502e4d4b3bc0369f34ca63f1492140fef0c8c13 | 17,861 | ex | Elixir | lib/mix/tasks/release.ex | amco/exrm | 2600bffb92c6e129dd513978578992fc64d9ce08 | [
"MIT"
] | 986 | 2015-01-01T13:20:41.000Z | 2021-09-03T02:18:55.000Z | lib/mix/tasks/release.ex | amco/exrm | 2600bffb92c6e129dd513978578992fc64d9ce08 | [
"MIT"
] | 332 | 2015-01-02T09:17:25.000Z | 2018-04-06T22:32:25.000Z | lib/mix/tasks/release.ex | amco/exrm | 2600bffb92c6e129dd513978578992fc64d9ce08 | [
"MIT"
] | 132 | 2015-01-05T06:11:21.000Z | 2019-10-31T13:31:12.000Z | defmodule Mix.Tasks.Release do
@moduledoc """
Build a release for the current mix application.
## Examples
# Build a release using defaults
mix release
# Pass args to erlexec when running the release
mix release --erl="-env TZ UTC"
# Enable dev mode. Make changes, compile using M... | 36.525562 | 136 | 0.615139 |
d502e8d001366e3b6d9da41d2e2067fec7068509 | 3,276 | ex | Elixir | lib/bike_brigade_web/live/program_live/program_form.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade_web/live/program_live/program_form.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade_web/live/program_live/program_form.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigadeWeb.ProgramLive.ProgramForm do
use BikeBrigade.Schema
import Ecto.Changeset
alias BikeBrigade.Delivery.Program
alias Crontab.CronExpression
defmodule Schedule do
use BikeBrigade.Schema
@weekdays [
:monday,
:tuesday,
:wednesday,
:thursday,
:friday,... | 24.266667 | 76 | 0.586386 |
d502f36a511b29e1d4f7d956104e8a525dec448c | 882 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/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.666667 | 74 | 0.758503 |
d5033ef46be2b8efd28a21c7568fdbe496d55d03 | 1,716 | ex | Elixir | lib/ex_chat/chats/chats.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | 1 | 2017-12-28T12:49:19.000Z | 2017-12-28T12:49:19.000Z | lib/ex_chat/chats/chats.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | null | null | null | lib/ex_chat/chats/chats.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | null | null | null | defmodule ExChat.Chats do
@moduledoc """
The Chats context.
"""
import Ecto.Query, warn: false
alias ExChat.Repo
alias ExChat.Chats.Room
@doc """
Returns the list of rooms.
## Examples
iex> list_rooms()
[%Room{}, ...]
"""
def list_rooms do
Repo.all(Room)
end
@doc """
G... | 16.037383 | 63 | 0.568765 |
d5038a19e8ca3ee8fa9ab2c41f21ff753d972aaa | 1,761 | exs | Elixir | mix.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | mix.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | mix.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | defmodule BlogEngine.Mixfile do
use Mix.Project
def project do
[app: :blog_engine,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 29.35 | 78 | 0.603066 |
d503b43f9c6bd00d66943b6bf49f3a8fc6d967d7 | 1,381 | ex | Elixir | lib/faker/avatar.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | lib/faker/avatar.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | lib/faker/avatar.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | defmodule Faker.Avatar do
alias Faker.Lorem
@moduledoc """
Functions for generate random urls for avatars.
"""
@doc """
Return avatar url with random set and background.
"""
@spec image_url() :: String.t
def image_url do
"https://robohash.org#{set()}#{bg()}/#{Lorem.characters(1..20)}"
end
@... | 25.574074 | 80 | 0.648805 |
d503d8a736419b4c36be44ba4a320656dee1606d | 874 | ex | Elixir | clients/jobs/lib/google_api/jobs/v4/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v4/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/jobs/lib/google_api/jobs/v4/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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.37037 | 74 | 0.756293 |
d503e9d9dd77e09785ba7f3eff0af65e641fde7c | 563 | exs | Elixir | mix.exs | belfastelixir/xyozys_gen_statem | 4d8f89c6bf6ffb582a1cdae6eca1116e4c09d6b7 | [
"MIT"
] | null | null | null | mix.exs | belfastelixir/xyozys_gen_statem | 4d8f89c6bf6ffb582a1cdae6eca1116e4c09d6b7 | [
"MIT"
] | null | null | null | mix.exs | belfastelixir/xyozys_gen_statem | 4d8f89c6bf6ffb582a1cdae6eca1116e4c09d6b7 | [
"MIT"
] | null | null | null | defmodule TTT.MixProject do
use Mix.Project
def project do
[
app: :ttt,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_application... | 19.413793 | 87 | 0.57016 |
d503ebd6efa120834a471c2b3731aa426b9d4886 | 2,138 | exs | Elixir | apps/app_ui/test/channels/authorized_channel_test.exs | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | null | null | null | apps/app_ui/test/channels/authorized_channel_test.exs | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | null | null | null | apps/app_ui/test/channels/authorized_channel_test.exs | mikeonslow/guardian_live_oss | 5f6101d19e2a30830475993465187e4e4391db39 | [
"MIT"
] | 1 | 2018-07-26T17:34:23.000Z | 2018-07-26T17:34:23.000Z | defmodule AppUi.AuthorizedChannelTest do
use AppUi.ChannelCase
alias AppUi.UserSocket
alias AppUi.AuthorizedChannel
import AppUi.Factory
setup do
user = insert(:user) |> Repo.preload(:role) |> Auth.translate_user
this_user_perms = %{ default: [:login],
auth_test... | 32.892308 | 89 | 0.644528 |
d503f1a75c9fad3408aa1d238d2084cc53cdb037 | 2,961 | ex | Elixir | clients/connectors/lib/google_api/connectors/v1/model/audit_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/connectors/lib/google_api/connectors/v1/model/audit_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/connectors/lib/google_api/connectors/v1/model/audit_config.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 59.22 | 1,106 | 0.745694 |
d504449e98fc6e2a5bc4b058ad6c8215cafba555 | 1,503 | ex | Elixir | web/web.ex | wsmoak/my_app_802337 | a863bdd16c909b12a598bf06b8901e1c8c0d3f7c | [
"MIT"
] | null | null | null | web/web.ex | wsmoak/my_app_802337 | a863bdd16c909b12a598bf06b8901e1c8c0d3f7c | [
"MIT"
] | null | null | null | web/web.ex | wsmoak/my_app_802337 | a863bdd16c909b12a598bf06b8901e1c8c0d3f7c | [
"MIT"
] | null | null | null | defmodule MyApp_802337.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use MyApp_802337.Web, :controller
use MyApp_802337.Web, :view
The definitions below will be executed for every view,
controller, etc, s... | 20.04 | 88 | 0.670659 |
d50458d4ac6cb62ab2b163a3906d8a104feada95 | 724 | ex | Elixir | lib/anchore_engine_api_server/model/tag_entry.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/tag_entry.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/tag_entry.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | 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 AnchoreEngineAPIServer.Model.TagEntry do
@moduledoc """
A docker-pullable tag value as well as deconstructed components
"""
@derive [Pois... | 21.294118 | 75 | 0.686464 |
d504599e475a96fb38e517484951a2e2f6701712 | 7,692 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_annotate_image_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_annotate_image_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_annotate_image_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 ... | 46.902439 | 219 | 0.74571 |
d5049277d81f1f30caa1d03612837d707396c6f0 | 1,299 | exs | Elixir | test/predicator/evaluator_operations/to_date_test.exs | predicator/predicator_elixir | b3ac9ef63882e3d2a1714281079879f6a85b679f | [
"MIT"
] | 5 | 2017-06-15T19:20:33.000Z | 2020-01-12T17:26:54.000Z | test/predicator/evaluator_operations/to_date_test.exs | predicator/predicator_elixir | b3ac9ef63882e3d2a1714281079879f6a85b679f | [
"MIT"
] | null | null | null | test/predicator/evaluator_operations/to_date_test.exs | predicator/predicator_elixir | b3ac9ef63882e3d2a1714281079879f6a85b679f | [
"MIT"
] | 1 | 2019-01-16T18:45:03.000Z | 2019-01-16T18:45:03.000Z | defmodule Predicator.EvaluatorOperation.ToDateTest do
use ExUnit.Case
import Predicator.Evaluator
@moduletag :parsed
defmodule TestUser,
do: defstruct(created_at: "2012-01-31 18:14:13.0", string_age: "29", age: 29)
describe "Predicator.Evaluator.Date module import functions" do
end
# "2017-09-10"
... | 21.65 | 81 | 0.536567 |
d504c7717f008353c863c9c5c2aead23f8929d9e | 284 | ex | Elixir | lib/dstreams_web/views/layout_view.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | lib/dstreams_web/views/layout_view.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | lib/dstreams_web/views/layout_view.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | defmodule DstreamsWeb.LayoutView do
use DstreamsWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
end
| 35.5 | 73 | 0.757042 |
d504cbf2ccea5278c9864e65ea77f971c830aa04 | 374 | ex | Elixir | test/support/material_for_case.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 21 | 2017-08-27T13:59:18.000Z | 2020-10-07T03:35:22.000Z | test/support/material_for_case.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 2 | 2017-09-02T15:49:47.000Z | 2017-09-02T17:43:29.000Z | test/support/material_for_case.ex | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 7 | 2017-09-02T15:11:49.000Z | 2019-08-20T19:00:48.000Z | defmodule ElixirRavelry.MaterialForCase do
alias ElixirRavelry.Repo
alias ElixirRavelryWeb.MaterialFor
def create_material_for(bolt_sips_conn, %{end_node_id: end_node_id, start_node_id: start_node_id}) do
{:ok, material_for} = Repo.MaterialFor.create(bolt_sips_conn, %MaterialFor{end_node_id: end_node_id, sta... | 41.555556 | 135 | 0.815508 |
d504d5cdfcd01e01d2e647a79b429e96a3954500 | 5,889 | exs | Elixir | test/aggregates/event_persistence_test.exs | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:23.000Z | 2018-12-28T20:48:23.000Z | test/aggregates/event_persistence_test.exs | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | test/aggregates/event_persistence_test.exs | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:24.000Z | 2018-12-28T20:48:24.000Z | defmodule Commanded.Aggregates.EventPersistenceTest do
use Commanded.StorageCase
import Commanded.Enumerable, only: [pluck: 2]
alias Commanded.Aggregates.{Aggregate, AppendItemsHandler, ExampleAggregate}
alias Commanded.Aggregates.ExampleAggregate.Commands.{AppendItems, NoOp}
alias Commanded.EventStore
al... | 32.535912 | 95 | 0.702836 |
d504f4038759ba3ccc4da4d03e9a32a0761a9387 | 995 | exs | Elixir | deps/phoenix_html/mix.exs | bruguedes/nlw5-trilha-elixir | 4de5ecdce766c4371da80cd69ea08283838c66cd | [
"MIT"
] | 2 | 2020-05-06T14:51:56.000Z | 2020-05-06T14:52:21.000Z | deps/phoenix_html/mix.exs | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | deps/phoenix_html/mix.exs | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 1 | 2020-05-16T22:44:14.000Z | 2020-05-16T22:44:14.000Z | defmodule PhoenixHtml.Mixfile do
use Mix.Project
# Also change package.json version
@version "2.14.3"
def project do
[
app: :phoenix_html,
version: @version,
elixir: "~> 1.5.1 or ~> 1.6",
deps: deps(),
name: "Phoenix.HTML",
description: "Phoenix view functions for worki... | 21.630435 | 77 | 0.576884 |
d5051a8c6fe0668d8f5d1c2f4279fd466326f835 | 603 | exs | Elixir | test/service/preference_test.exs | BlackMountainSolutions/unofficial-mercadopago-sdk-elixir | 487e84215fc2e43044f8bfc02524b85799c97c25 | [
"MIT"
] | null | null | null | test/service/preference_test.exs | BlackMountainSolutions/unofficial-mercadopago-sdk-elixir | 487e84215fc2e43044f8bfc02524b85799c97c25 | [
"MIT"
] | null | null | null | test/service/preference_test.exs | BlackMountainSolutions/unofficial-mercadopago-sdk-elixir | 487e84215fc2e43044f8bfc02524b85799c97c25 | [
"MIT"
] | null | null | null | defmodule UnofficialMercadopagoSdkElixirTest.PreferenceTest do
use ExUnit.Case
alias UnofficialMercadopagoSdkElixir.Service, as: Service
test "must allow to create preference with service" do
item = %{
title: "my product",
unit_price: 100,
quantity: 1
}
preference = %{
items:... | 23.192308 | 62 | 0.671642 |
d505296737d479b36680195685c0a03dc1ca9fa5 | 604 | exs | Elixir | day09/mix.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | 10 | 2021-12-01T08:49:00.000Z | 2022-03-24T13:24:50.000Z | day09/mix.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | null | null | null | day09/mix.exs | bjorng/advent-of-code-2015 | d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6 | [
"Apache-2.0"
] | 1 | 2021-12-16T07:09:11.000Z | 2021-12-16T07:09:11.000Z | defmodule Day09.MixProject do
use Mix.Project
def project do
[
app: :day09,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 20.133333 | 87 | 0.56457 |
d50558c5ae3a2ad6eed2027b64cb4cabe87b9245 | 1,575 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_property_bundle.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_property_bundle.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_property_bundle.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.8125 | 108 | 0.769524 |
d50563b05ef0eabda11b77b69947161791565b25 | 2,539 | exs | Elixir | test/web/controllers/category_controller_test.exs | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | null | null | null | test/web/controllers/category_controller_test.exs | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | null | null | null | test/web/controllers/category_controller_test.exs | IsaacRoss/dripforum | 2b943df8e3b1b75d9e297a4fad865db4d9e8e230 | [
"MIT"
] | null | null | null | defmodule FirestormWeb.Web.CategoryControllerTest do
use FirestormWeb.Web.ConnCase
alias FirestormWeb.Forums
@create_attrs %{title: "some title"}
@update_attrs %{title: "some updated title"}
@invalid_attrs %{title: nil}
def fixture(:category) do
{:ok, category} = Forums.create_category(@create_attrs)... | 35.760563 | 98 | 0.701063 |
d505653fd94727207ec6f0f938c7c508bd2a3d6c | 6,456 | ex | Elixir | lib/hsl_disruptions_bot/api_client.ex | archydragon/hsl-disruptions-bot | ff68a599e04e6d06cf677db2f1fc131eb2fe63b2 | [
"MIT"
] | null | null | null | lib/hsl_disruptions_bot/api_client.ex | archydragon/hsl-disruptions-bot | ff68a599e04e6d06cf677db2f1fc131eb2fe63b2 | [
"MIT"
] | null | null | null | lib/hsl_disruptions_bot/api_client.ex | archydragon/hsl-disruptions-bot | ff68a599e04e6d06cf677db2f1fc131eb2fe63b2 | [
"MIT"
] | null | null | null | defmodule HslDisruptionsBot.APIClient do
@moduledoc """
Module to handle all GraphQL based communication with HSL API.
Runs scheduled querying for ongoing disruptions + handles calls from other modules.
"""
require Logger
use GenServer
alias HslDisruptionsBot.{Model, Processor}
@hsl_api_url "https://a... | 27.708155 | 99 | 0.634603 |
d5056b52afb864f7c01b6f6c9937304816b02c58 | 556 | ex | Elixir | lib/step_flow/artifacts/artifact.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | lib/step_flow/artifacts/artifact.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | lib/step_flow/artifacts/artifact.ex | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.Artifacts.Artifact do
use Ecto.Schema
import Ecto.Changeset
alias StepFlow.Artifacts.Artifact
alias StepFlow.Workflows.Workflow
@moduledoc false
schema "step_flow_artifacts" do
field(:resources, :map)
belongs_to(:workflow, Workflow, foreign_key: :workflow_id)
timestamps()
... | 23.166667 | 62 | 0.72482 |
d5056e79c22bbae3de7e78c2ba44153e70beaf26 | 380 | ex | Elixir | web/views/error_view.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | 5 | 2016-07-05T20:31:46.000Z | 2021-03-20T20:11:48.000Z | web/views/error_view.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | null | null | null | web/views/error_view.ex | rawcodehq/webmonitor | 1397c74cb04434d18eb08e447c2c91d23ca97962 | [
"MIT"
] | 1 | 2016-07-18T23:00:46.000Z | 2016-07-18T23:00:46.000Z | defmodule Webmonitor.ErrorView do
use Webmonitor.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_tem... | 21.111111 | 47 | 0.702632 |
d505821c2876b6c212e6783725475f8e53b5b231 | 1,598 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/details.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... | 34 | 147 | 0.756571 |
d5059713ec09c38b3107d921b1007ac6fe61f831 | 281 | exs | Elixir | test/arrow/account/user_test.exs | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | null | null | null | test/arrow/account/user_test.exs | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | 775 | 2019-11-18T16:23:57.000Z | 2022-03-28T18:20:04.000Z | test/arrow/account/user_test.exs | mbta/arrow | abbac9c7f300790d452ecec027a6c609775b72d1 | [
"MIT"
] | 1 | 2019-12-23T13:52:25.000Z | 2019-12-23T13:52:25.000Z | defmodule Arrow.Account.UserTest do
use ExUnit.Case
alias Arrow.Accounts.User
test "groups is a MapSet" do
assert %User{
id: "me@example.com",
groups: MapSet.new()
} == %User{
id: "me@example.com"
}
end
end
| 20.071429 | 35 | 0.533808 |
d505a35c22321bd9095bac0347ebd9b90358d02a | 100 | ex | Elixir | lib/ex_2fa/repo.ex | jackjoe/ex_2fa | 060708edb9d5c97ff9535ed5adc28526add07d77 | [
"Apache-2.0"
] | 2 | 2020-08-10T17:44:05.000Z | 2021-03-09T10:42:40.000Z | lib/ex_2fa/repo.ex | jackjoe/ex_2fa | 060708edb9d5c97ff9535ed5adc28526add07d77 | [
"Apache-2.0"
] | null | null | null | lib/ex_2fa/repo.ex | jackjoe/ex_2fa | 060708edb9d5c97ff9535ed5adc28526add07d77 | [
"Apache-2.0"
] | null | null | null | defmodule Ex2fa.Repo do
use Ecto.Repo,
otp_app: :ex_2fa,
adapter: Ecto.Adapters.MyXQL
end
| 16.666667 | 32 | 0.71 |
d505c703ad19820d68d83457aeacbf7fc14749ab | 186 | ex | Elixir | lib/membrane_ffmpeg_swresample_plugin/converter_native.ex | membraneframework/membrane_ffmpeg_swresample_plugin | 920ee3e41a79f66a997c049f2e50583d872a3aac | [
"Apache-2.0"
] | 2 | 2018-07-27T14:16:08.000Z | 2018-07-27T20:36:25.000Z | lib/membrane_ffmpeg_swresample_plugin/converter_native.ex | membraneframework/membrane_ffmpeg_swresample_plugin | 920ee3e41a79f66a997c049f2e50583d872a3aac | [
"Apache-2.0"
] | 4 | 2021-06-25T05:54:23.000Z | 2021-11-03T11:26:01.000Z | lib/membrane_ffmpeg_swresample_plugin/converter_native.ex | membraneframework/membrane-element-ffmpeg-swresample | 8d4b4ff597e70addd4cba0ecaa68383589ae2056 | [
"Apache-2.0"
] | 1 | 2020-11-14T15:36:01.000Z | 2020-11-14T15:36:01.000Z | defmodule Membrane.FFmpeg.SWResample.Converter.Native do
@moduledoc """
This module provides nativly implemented converter utilizing library swresample
"""
use Unifex.Loader
end
| 26.571429 | 81 | 0.795699 |
d505cb652b1802e6955f22eb1a8fbc7ee2c0382d | 1,834 | ex | Elixir | lib/mix/lib/mix/cli.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/cli.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/cli.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.CLI do
@moduledoc false
@doc """
Runs Mix according to the command line arguments.
"""
def run(args // System.argv) do
case check_for_shortcuts(args) do
:help ->
display_banner()
:version ->
display_version()
nil ->
proceed(args)
end
end
de... | 21.325581 | 75 | 0.606325 |
d505ce3137dffb5e0b588b742aca3cd74fec999c | 1,465 | ex | Elixir | lib/meeseeks/extractor/text.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/extractor/text.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/extractor/text.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Extractor.Text do
@moduledoc false
alias Meeseeks.Document
alias Meeseeks.Document.{Element, Node, Text}
alias Meeseeks.Extractor.Helpers
@other_nodes Node.types() -- [Element, Text]
# from_node
@spec from_node(Node.t(), Document.t()) :: iodata()
def from_node(node, document)
d... | 21.544118 | 77 | 0.619795 |
d505d5545bfd067392ca9a0946da72d286db73d2 | 844 | ex | Elixir | apps/sim/lib/sim/realm/data.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | apps/sim/lib/sim/realm/data.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | apps/sim/lib/sim/realm/data.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | null | null | null | defmodule Sim.Realm.Data do
use Agent
require Logger
def start_link(opts) do
Agent.start_link(
fn ->
Logger.debug("start realm data")
%{data: nil}
end,
name: opts[:name] || __MODULE__
)
end
def reset(agent) do
Agent.update(agent, fn state -> %{state | data: nil... | 20.095238 | 65 | 0.609005 |
d505f63b04c91d9201b4474bdb9ac0b4974bffde | 494 | ex | Elixir | lib/zig/nif/dirty_cpu.ex | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 349 | 2019-10-02T07:21:17.000Z | 2022-03-21T17:50:06.000Z | lib/zig/nif/dirty_cpu.ex | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 223 | 2019-10-05T05:36:08.000Z | 2022-03-31T23:12:02.000Z | lib/zig/nif/dirty_cpu.ex | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 20 | 2019-10-08T16:29:39.000Z | 2022-03-31T15:07:20.000Z | defmodule Zig.Nif.DirtyCpu do
@moduledoc false
alias Zig.Nif.{Adapter, Synchronous}
@behaviour Adapter
@impl true
defdelegate zig_adapter(nif, module), to: Synchronous
@impl true
def nif_table_entries(nif) do
"""
e.ErlNifFunc{
.name = "#{nif.name}",
.arity = #{nif.arity},
... | 18.296296 | 55 | 0.62753 |
d50634028b2e7f2f4411cfb0400b45a7cb7591a3 | 12,822 | ex | Elixir | lib/meeseeks/selector/xpath/expr/function.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 291 | 2017-03-27T15:53:36.000Z | 2022-03-14T23:01:42.000Z | lib/meeseeks/selector/xpath/expr/function.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 70 | 2017-03-30T23:32:34.000Z | 2021-06-27T06:26:28.000Z | lib/meeseeks/selector/xpath/expr/function.ex | RichMorin/meeseeks | d52a15a0b78acfc4d7b979d1df6e146482dc3a10 | [
"Apache-2.0",
"MIT"
] | 23 | 2017-06-18T10:29:04.000Z | 2021-11-04T13:08:12.000Z | defmodule Meeseeks.Selector.XPath.Expr.Function do
use Meeseeks.Selector.XPath.Expr
@moduledoc false
alias Meeseeks.{Context, Document, Error}
alias Meeseeks.Selector.XPath.Expr
defstruct f: nil, args: []
@nodes Context.nodes_key()
@impl true
def eval(expr, node, document, context)
# last
def ... | 26.437113 | 100 | 0.642333 |
d50658f6d22800d3c1250b62d7d38c3b291d8064 | 1,153 | exs | Elixir | config/config.exs | pmarco0/gwent-cli-tool | 0191d3a92739e2486a7f37b42b774dbb564df6f3 | [
"MIT"
] | 1 | 2020-08-23T17:47:20.000Z | 2020-08-23T17:47:20.000Z | config/config.exs | pmarco0/gwent-cli-tool | 0191d3a92739e2486a7f37b42b774dbb564df6f3 | [
"MIT"
] | null | null | null | config/config.exs | pmarco0/gwent-cli-tool | 0191d3a92739e2486a7f37b42b774dbb564df6f3 | [
"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... | 37.193548 | 73 | 0.752819 |
d506605dc5b5f838b2157a4a032b8576395664b1 | 4,960 | ex | Elixir | lib/certificate.ex | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | 3 | 2017-04-18T19:30:56.000Z | 2020-07-23T09:49:49.000Z | lib/certificate.ex | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | null | null | null | lib/certificate.ex | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | 1 | 2021-11-09T20:36:06.000Z | 2021-11-09T20:36:06.000Z | import Record
import PublicKeyUtils.OID
import :crypto, only: [hash: 2]
defmodule PublicKeyUtils.Certificate do
defstruct [
:version,
:certificate,
:serial_number,
:issuer,
:validity,
:subject,
:subject_public_key_info,
:issuer_unique_id,
:subject_unique_id,
:extensions,
:... | 33.288591 | 97 | 0.618347 |
d5069357e5c6bcdd8ccbec423d5de3ba254e9d5c | 1,423 | ex | Elixir | clients/replica_pool/lib/google_api/replica_pool/v1beta2/model/operation_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/replica_pool/lib/google_api/replica_pool/v1beta2/model/operation_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/replica_pool/lib/google_api/replica_pool/v1beta2/model/operation_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.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... | 30.934783 | 87 | 0.749824 |
d506b01367fee07a722ea98934504f6d7370e1fb | 1,126 | exs | Elixir | test/daily_meals/meals/update_test.exs | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | test/daily_meals/meals/update_test.exs | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | test/daily_meals/meals/update_test.exs | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | defmodule DailyMeals.Meals.UpdateTest do
use DailyMeals.DataCase, async: true
import DailyMeals.Factory
alias DailyMeals.{Error, Meal}
alias DailyMeals.Meals.Update
describe "call/1" do
test "when meal exists, updates the meal" do
insert(:user)
insert(:meal)
params = %{
"id" ... | 21.653846 | 55 | 0.48579 |
d506cfcd5e443be67c97ae5c2e6d730d79960528 | 1,840 | exs | Elixir | clients/cloud_identity/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.462687 | 105 | 0.657609 |
d50724d9d990f684ffc0f2b138cd4736e3144af3 | 2,570 | ex | Elixir | lib/grizzly/zwave/commands/alarm_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/zwave/commands/alarm_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/zwave/commands/alarm_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.ZWave.Commands.AlarmGet do
@moduledoc """
This command is used to get the value of an alarm.
Params:
* `:type` - v1 alarm type (required for v1 only)
* `:zwave_type` - Z-Wave alarm/notification type (required for v2+)
* `:zwave_event` - Z-Wave event/state (optional)
"""
@be... | 29.54023 | 97 | 0.653696 |
d5072a8a8c5c63a56f75a9fc30e830b18ed07ba0 | 418 | ex | Elixir | lib/haex/data/data_builder.ex | madlep/haex | 56df0c72f98c19b15d704376509cfd1c7ddc6b77 | [
"MIT"
] | 11 | 2020-12-16T06:56:05.000Z | 2020-12-27T18:11:08.000Z | lib/haex/data/data_builder.ex | madlep/haex | 56df0c72f98c19b15d704376509cfd1c7ddc6b77 | [
"MIT"
] | null | null | null | lib/haex/data/data_builder.ex | madlep/haex | 56df0c72f98c19b15d704376509cfd1c7ddc6b77 | [
"MIT"
] | 1 | 2020-12-17T21:53:29.000Z | 2020-12-17T21:53:29.000Z | defmodule Haex.Data.DataBuilder do
@moduledoc """
generates AST representation of `Haex.Data` to return from `Haex.data/1` macro
"""
alias Haex.Data
alias Haex.Data.TypeConstructorBuilder
@spec build(Data.t()) :: Macro.output()
def build(%Data{type_constructor: type_constructor, data_constructors: data_... | 29.857143 | 95 | 0.76555 |
d5076ca40b9b08bef03075000051c5bc34cd085b | 7,340 | exs | Elixir | test/evm_test.exs | oraclesorg/evm | 04076d31356b3ec64c935cf9896e8115c0209c88 | [
"MIT"
] | 1 | 2018-04-23T01:57:52.000Z | 2018-04-23T01:57:52.000Z | test/evm_test.exs | poanetwork/evm | 04076d31356b3ec64c935cf9896e8115c0209c88 | [
"MIT"
] | null | null | null | test/evm_test.exs | poanetwork/evm | 04076d31356b3ec64c935cf9896e8115c0209c88 | [
"MIT"
] | 1 | 2018-04-25T22:58:39.000Z | 2018-04-25T22:58:39.000Z | defmodule EvmTest do
alias MerklePatriciaTree.Trie
use ExUnit.Case, async: true
@passing_tests_by_group %{
sha3_test: :all,
arithmetic_test: :all,
bitwise_logic_operation: :all,
block_info_test: :all,
environmental_info: :all,
push_dup_swap_test: :all,
i_oand_flow_operations: :all,
... | 29.011858 | 104 | 0.640736 |
d5077af6aeea72482a30ee6166ae827fac733ab6 | 391 | ex | Elixir | lib/hl7/2.4/segments/apr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/apr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/apr.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.APR do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
time_selection_criteria: DataTypes.Scv,
resource_selection_criteria: DataTypes.Scv,
location_selection_criteria: DataTypes.Scv,
slot_spacing_... | 23 | 49 | 0.721228 |
d507d6887043f908933dcc169010014ae0bf1b62 | 676 | ex | Elixir | lib/jeff/events/card_read.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | lib/jeff/events/card_read.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | lib/jeff/events/card_read.ex | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | defmodule Jeff.Events.CardRead do
@moduledoc """
Event that is triggered when readers receive input from card reads
"""
@type t :: %__MODULE__{
address: Jeff.osdp_address(),
data: binary(),
format: non_neg_integer(),
length: non_neg_integer(),
reader: non_neg_i... | 24.142857 | 68 | 0.621302 |
d507ed058b512bffcf7e6f8fa3417a510f348b00 | 198 | ex | Elixir | lib/ex_component_schema.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 2 | 2022-03-18T08:52:29.000Z | 2022-03-18T08:52:33.000Z | lib/ex_component_schema.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 8 | 2021-09-15T11:52:45.000Z | 2022-01-10T13:13:53.000Z | lib/ex_component_schema.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | null | null | null | defmodule ExComponentSchema do
@type json_path :: String.t()
@type data :: nil | true | false | list | float | integer | String.t() | [data] | object
@type object :: %{String.t() => data}
end
| 33 | 90 | 0.631313 |
d50812b7558733995d769a089c3544ac9293a20a | 598 | exs | Elixir | plugins/ucc_chat/priv/repo/migrations/03120170322033528_create_account_notification.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/priv/repo/migrations/03120170322033528_create_account_notification.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/priv/repo/migrations/03120170322033528_create_account_notification.exs | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccChat.Repo.Migrations.CreateAccountNotification do
use Ecto.Migration
def change do
create table(:accounts_notifications, primary_key: false) do
add :id, :binary_id, primary_key: true
add :account_id, references(:accounts, on_delete: :delete_all, type: :binary_id)
add :notificatio... | 39.866667 | 145 | 0.767559 |
d5086a843714c455981291466ffc5143e6e1c97d | 63,081 | ex | Elixir | lib/elixir/lib/calendar.ex | ellbee/elixir | c1acfe9827f12ef58f7f301baad7497472cb4bc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | ellbee/elixir | c1acfe9827f12ef58f7f301baad7497472cb4bc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | ellbee/elixir | c1acfe9827f12ef58f7f301baad7497472cb4bc9 | [
"Apache-2.0"
] | null | null | null | defmodule Calendar do
@moduledoc """
This module defines the responsibilities for working with
calendars, dates, times and datetimes in Elixir.
Currently it defines types and the minimal implementation
for a calendar behaviour in Elixir. The goal of the Calendar
features in Elixir is to provide a base for ... | 35.359305 | 138 | 0.633455 |
d508a14afa0b0536e8a3429eebcc8ba27589db27 | 7,771 | ex | Elixir | lib/console/labels/labels.ex | DasThink/console | 54cde903e3f4e2ca93b14c1d3a7bf3b8a2c7372b | [
"Apache-2.0"
] | 1 | 2021-08-20T17:48:47.000Z | 2021-08-20T17:48:47.000Z | lib/console/labels/labels.ex | mfalkvidd/console | 6427c82bc4f8619b5bb3a5940099a8bdd6167a9e | [
"Apache-2.0"
] | null | null | null | lib/console/labels/labels.ex | mfalkvidd/console | 6427c82bc4f8619b5bb3a5940099a8bdd6167a9e | [
"Apache-2.0"
] | null | null | null | defmodule Console.Labels do
import Ecto.Query, warn: false
alias Console.Repo
alias Console.Labels.Label
alias Console.Labels.DevicesLabels
alias Console.Devices.Device
alias Console.Devices
alias Console.Organizations.Organization
def get_label!(id), do: Repo.get!(Label, id)
def get_label(id), do: ... | 31.718367 | 145 | 0.648694 |
d508b279c2d6a36ff69224434a6e5cc2021f7179 | 1,631 | exs | Elixir | test/farside_test.exs | Albonycal/farside | 4217595ed997ea19710ee1015ab538ec3ce1eeff | [
"MIT"
] | null | null | null | test/farside_test.exs | Albonycal/farside | 4217595ed997ea19710ee1015ab538ec3ce1eeff | [
"MIT"
] | null | null | null | test/farside_test.exs | Albonycal/farside | 4217595ed997ea19710ee1015ab538ec3ce1eeff | [
"MIT"
] | null | null | null | defmodule FarsideTest do
@services_json Application.fetch_env!(:farside, :services_json)
use ExUnit.Case
use Plug.Test
alias Farside.Router
@opts Router.init([])
def test_conn(path) do
:timer.sleep(1000)
:get
|> conn(path, "")
|> Router.call(@opts)
end
test "throttle" do
:get
... | 21.460526 | 65 | 0.589822 |
d50952e62ff8bed0ae64ef29dbce254a25ce0995 | 1,462 | ex | Elixir | lib/routemaster/utils.ex | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | 2 | 2017-09-20T08:33:20.000Z | 2018-08-17T11:57:09.000Z | lib/routemaster/utils.ex | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | 5 | 2017-09-25T21:48:48.000Z | 2018-02-26T09:06:01.000Z | lib/routemaster/utils.ex | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | null | null | null | defmodule Routemaster.Utils do
@moduledoc """
Utility functions.
"""
@doc """
Returns the current time as a unix timestamp.
"""
@spec now :: non_neg_integer
def now do
DateTime.utc_now() |> DateTime.to_unix()
end
@doc """
Checks that a URL is valid and has a HTTPS scheme.
"""
@spec vali... | 22.151515 | 61 | 0.623803 |
d5096bcbf44ae51905e6fc1a3edd6e3ad884c682 | 12,579 | ex | Elixir | lib/bunch/enum.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 12 | 2018-09-10T09:59:22.000Z | 2021-08-29T00:37:02.000Z | lib/bunch/enum.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 8 | 2018-09-03T08:29:47.000Z | 2022-03-27T16:28:08.000Z | lib/bunch/enum.ex | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 2 | 2019-07-23T04:21:26.000Z | 2021-10-15T23:45:57.000Z | defmodule Bunch.Enum do
@moduledoc """
A bunch of helper functions for manipulating enums.
"""
use Bunch
alias Bunch.Type
@doc """
Generates a list consisting of `i` values `v`.
iex> #{inspect(__MODULE__)}.repeated(:abc, 4)
[:abc, :abc, :abc, :abc]
iex> #{inspect(__MODULE__)}.repeate... | 30.755501 | 98 | 0.560696 |
d5097dceac7ff6dffb3b3ec1328e70a0697959ff | 1,956 | ex | Elixir | lib/day03.ex | s22su/advent-of-code-2021 | 1cb0b9f08079641e32890e00b0a9b41c780724b4 | [
"MIT"
] | null | null | null | lib/day03.ex | s22su/advent-of-code-2021 | 1cb0b9f08079641e32890e00b0a9b41c780724b4 | [
"MIT"
] | null | null | null | lib/day03.ex | s22su/advent-of-code-2021 | 1cb0b9f08079641e32890e00b0a9b41c780724b4 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Day03 do
@moduledoc false
use AdventOfCode
import NimbleParsec
def part1(input) do
preprocess_input(input)
|> calculate_frequencies()
|> Enum.reduce({"", ""}, fn {zeros_freq, one_freq}, {g, e} ->
if one_freq > zeros_freq, do: {"#{g}1", "#{e}0"}, else: {"#{g}0", "#{e}1"... | 23.566265 | 80 | 0.576687 |
d50994cb845eab1f91448433743ce6c974adbe03 | 1,954 | exs | Elixir | config/prod.exs | vsyrovat/awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 2 | 2019-12-17T11:40:54.000Z | 2019-12-22T17:15:29.000Z | config/prod.exs | vsyrovat/funbox_awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 5 | 2020-10-08T20:36:07.000Z | 2020-10-08T21:27:28.000Z | config/prod.exs | vsyrovat/awesome-elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"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,
# ... | 34.892857 | 66 | 0.709314 |
d509c315e4447cff8606820314a9b1ec49f71832 | 762 | ex | Elixir | lib/varint.ex | McEx/chunk-ex | f0307629efb7e64ddb07612926c1fb5fcc615183 | [
"MIT"
] | 4 | 2016-06-16T23:26:11.000Z | 2021-07-08T12:05:06.000Z | lib/varint.ex | Gjum/chunk-ex | f0307629efb7e64ddb07612926c1fb5fcc615183 | [
"MIT"
] | null | null | null | lib/varint.ex | Gjum/chunk-ex | f0307629efb7e64ddb07612926c1fb5fcc615183 | [
"MIT"
] | 3 | 2016-04-09T21:06:01.000Z | 2021-07-27T13:39:51.000Z | defmodule McChunk.Varint do
use Bitwise
@spec decode_varint(binary) :: {integer, binary}
def decode_varint(data) do
{:ok, resp} = decode_varint(data, 0, 0)
resp
end
defp decode_varint(<<1::1, curr::7, rest::binary>>, num, acc) when num < (64 - 7) do
decode_varint(rest, num + 7, (curr <<< num) + ... | 29.307692 | 86 | 0.602362 |
d509c744d1d39a7290ad2f4bd405def0fd5ad7ec | 94 | exs | Elixir | apps/abi/test/abi/type_decoder_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 22 | 2017-11-30T23:48:52.000Z | 2020-02-01T23:18:11.000Z | apps/abi/test/abi/type_decoder_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 25 | 2018-01-16T03:20:17.000Z | 2020-10-19T16:09:48.000Z | apps/abi/test/abi/type_decoder_test.exs | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 18 | 2018-01-15T02:25:59.000Z | 2021-12-21T22:47:13.000Z | defmodule ABI.TypeDecoderTest do
use ExUnit.Case, async: true
doctest ABI.TypeDecoder
end
| 18.8 | 32 | 0.797872 |
d509fd1a3354a3fa14781864d3f98dd25c1d95cc | 1,237 | ex | Elixir | banking_challenge_stone_umbrella/apps/banking_challenge/lib/banking_challenge/accounts/account.ex | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | banking_challenge_stone_umbrella/apps/banking_challenge/lib/banking_challenge/accounts/account.ex | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | banking_challenge_stone_umbrella/apps/banking_challenge/lib/banking_challenge/accounts/account.ex | douxsalemk/banking_challenge_stone | 59c2790a0f14b68c2b25851c806ebc553227316d | [
"Apache-2.0"
] | null | null | null | defmodule BankingChallenge.Accounts.Account do
@moduledoc """
module for handling account database transactions
"""
alias BankingChallenge.Accounts.Schemas.Account
alias BankingChallenge.Repo
require Logger
@doc """
create a new account
"""
def create_new_account(params) when is_map(params) do
... | 24.254902 | 86 | 0.6346 |
d50a1a7041f1e08d041dabeb27c9cfd4b394d905 | 517 | ex | Elixir | lib/time_machinex/adapter.ex | shinyscorpion/time_machinex | 00a93c4329e269ff112edd0e464ebe1b0684d25e | [
"MIT"
] | 6 | 2018-05-31T22:48:41.000Z | 2021-03-03T17:22:48.000Z | lib/time_machinex/adapter.ex | shinyscorpion/time_machinex | 00a93c4329e269ff112edd0e464ebe1b0684d25e | [
"MIT"
] | 1 | 2019-12-19T08:18:39.000Z | 2019-12-19T08:18:39.000Z | lib/time_machinex/adapter.ex | shinyscorpion/time_machinex | 00a93c4329e269ff112edd0e464ebe1b0684d25e | [
"MIT"
] | 1 | 2018-01-31T12:12:26.000Z | 2018-01-31T12:12:26.000Z | defmodule TimeMachinex.Adapter do
@moduledoc ~S"""
Clock behaviour definition
"""
@doc ~S"""
Returns the current datetime in UTC.
"""
@callback now() :: DateTime.t()
@doc ~S"""
Returns the current UTC datetime.
"""
@callback utc_now() :: UTCDateTime.t()
@doc ~S"""
Returns quoted expression ... | 19.884615 | 63 | 0.649903 |
d50a205576e61113c46119eb4e659f8d9c27a97f | 1,331 | ex | Elixir | lib/ex_png/utils.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 10 | 2015-03-15T16:12:00.000Z | 2021-02-09T09:30:17.000Z | lib/ex_png/utils.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 1 | 2019-04-20T12:09:24.000Z | 2019-04-20T12:09:24.000Z | lib/ex_png/utils.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 5 | 2019-01-19T19:47:09.000Z | 2021-11-11T23:54:25.000Z | defmodule ExPNG.Utils do
def crc32(type, data) do
:erlang.crc32(:erlang.crc32(type), data)
end
def inflate(compressed) do
z = :zlib.open()
:ok = :zlib.inflateInit(z)
uncompressed = :zlib.inflate(z, compressed)
:zlib.inflateEnd(z)
:erlang.list_to_binary(uncompressed)
end
def deflate(... | 28.934783 | 99 | 0.645379 |
d50a4bf29a2f473b0abdb698a7663403c6b47b9a | 5,463 | ex | Elixir | farmbot_os/lib/farmbot_os/lua.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_os/lib/farmbot_os/lua.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/lua.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Lua do
@moduledoc """
Embedded scripting language for "formulas" in the MOVE block,
assertion, and general scripting via LUA block.
"""
@type t() :: tuple()
@type table() :: [{any, any}]
require FarmbotCore.Logger
require Logger
alias FarmbotOS.Lua.Ext.{
DataManipulation,
... | 33.931677 | 80 | 0.639026 |
d50a87c08c9ca840b52d7944861b2b4f798a45e3 | 3,357 | exs | Elixir | test/request/pci_proxies/pci_booking_test.exs | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | test/request/pci_proxies/pci_booking_test.exs | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | test/request/pci_proxies/pci_booking_test.exs | ChannexIO/ex_open_travel | 51a1101f55bc2d12a093237bb9ef64ef8a4d3091 | [
"Apache-2.0"
] | null | null | null | defmodule ExOpenTravel.Request.PCIProxies.PCIBookingTest do
use ExUnit.Case
@moduletag :ex_open_travel_pci_booking
alias ExOpenTravel.Request.PCIProxies.Fixtures
alias ExOpenTravel.Request.PCIProxies.PCIBooking
doctest PCIBooking
@meta Fixtures.get(:meta)
@pci @meta.pci
test "success parse_headers" d... | 32.592233 | 96 | 0.541853 |
d50aa67c174fe786aeb78e95cf202b0fd218a5c6 | 3,481 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_live_streaming_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_live_streaming_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_live_streaming_details.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... | 56.145161 | 503 | 0.739443 |
d50abcb2439651dfdf02b3dd5a1d6fa0e205cc2b | 1,716 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/custom_dimension_parent_link.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics/lib/google_api/analytics/v3/model/custom_dimension_parent_link.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/custom_dimension_parent_link.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 ... | 34.32 | 128 | 0.732517 |
d50ae3979f63ec8b77c09f1f8ce0b2ca0c296e04 | 55,565 | ex | Elixir | lib/phoenix_live_view.ex | ccapndave/phoenix_live_view | 17b870896386acf2fe5d4467318325f2f68eca84 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | ccapndave/phoenix_live_view | 17b870896386acf2fe5d4467318325f2f68eca84 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | ccapndave/phoenix_live_view | 17b870896386acf2fe5d4467318325f2f68eca84 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc """
LiveView provides rich, real-time user experiences with
server-rendered HTML.
LiveView programming model is declarative: instead of
saying "once event X happens, change Y on the page",
events in LiveView are regular messages which may cause
changes to its stat... | 39.324133 | 120 | 0.692864 |
d50af6cad42c884b7c3b4a3e85537c72663c3439 | 10,925 | ex | Elixir | lib/console/labels/labels.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | null | null | null | lib/console/labels/labels.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | 1 | 2021-04-03T09:29:31.000Z | 2021-04-03T09:29:31.000Z | lib/console/labels/labels.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | null | null | null | defmodule Console.Labels do
import Ecto.Query, warn: false
alias Console.Repo
alias Console.Labels.Label
alias Console.Labels.DevicesLabels
alias Console.Labels.ChannelsLabels
alias Console.Labels.LabelNotificationSetting
alias Console.Labels.LabelNotificationEvent
alias Console.Labels.LabelNotificatio... | 33.823529 | 149 | 0.64833 |
d50b3c1a9f016345346a47754542446d2566fb5f | 4,133 | ex | Elixir | lib/movement/persisters/base.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | lib/movement/persisters/base.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/movement/persisters/base.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Movement.Persisters.Base do
require Ecto.Query
alias Accent.{Operation, Repo}
alias Movement.Mappers.OperationsStats, as: StatMapper
alias Movement.Migrator
# Inserts operations by batch of 500 to prevent parameters
# overflow in database adapter
@operations_inserts_chunk 500
@spec execute(... | 36.254386 | 125 | 0.695379 |
d50b4cb2dc2182311c8d48d495926efc712e79dc | 1,185 | ex | Elixir | lib/pg_ranges/tstzrange.ex | blockfi/pg_ranges | d61f51323169fb10706fe61d902dec4b3f42595b | [
"MIT"
] | null | null | null | lib/pg_ranges/tstzrange.ex | blockfi/pg_ranges | d61f51323169fb10706fe61d902dec4b3f42595b | [
"MIT"
] | null | null | null | lib/pg_ranges/tstzrange.ex | blockfi/pg_ranges | d61f51323169fb10706fe61d902dec4b3f42595b | [
"MIT"
] | null | null | null | defmodule PgRanges.TstzRange do
@moduledoc """
Wraps a `Postgrex.Range` and casts to a PostgreSQL `tstzrange` type.
"""
use PgRanges
@type t :: %__MODULE__{
lower: DateTime.t(),
lower_inclusive: boolean(),
upper: DateTime.t(),
upper_inclusive: boolean()
}
@i... | 32.027027 | 98 | 0.669198 |
d50b4f10a8390c189ffdcde0c818da42a7779eb8 | 5,508 | ex | Elixir | lib/mix/tasks/gen.callback.ex | wojtekmach/gen_callback | e0272994a60384be1d72791155bd6c7d6f1e5fb0 | [
"Apache-2.0"
] | 6 | 2019-02-08T16:47:59.000Z | 2019-02-11T08:59:47.000Z | lib/mix/tasks/gen.callback.ex | wojtekmach/gen_callback | e0272994a60384be1d72791155bd6c7d6f1e5fb0 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/gen.callback.ex | wojtekmach/gen_callback | e0272994a60384be1d72791155bd6c7d6f1e5fb0 | [
"Apache-2.0"
] | 1 | 2019-05-19T15:31:05.000Z | 2019-05-19T15:31:05.000Z | defmodule Mix.Tasks.Gen.Callback do
use Mix.Task
@moduledoc """
Generate a callback module for a given behaviour.
mix gen.callback BEHAVIOUR
## Example
$ mix gen.callback GenServer
Produces the following output on STDOUT:
defmodule MyGenServer do
@behaviour GenServer
#... | 25.618605 | 98 | 0.590051 |
d50b5cbb652c3ccb7d9699c2ece8673c01cb972f | 1,626 | ex | Elixir | web/web.ex | blacksph3re/alastair2 | 51fcd8fe666ae768dd8371b2c7835dd294eeddaf | [
"Apache-2.0"
] | null | null | null | web/web.ex | blacksph3re/alastair2 | 51fcd8fe666ae768dd8371b2c7835dd294eeddaf | [
"Apache-2.0"
] | null | null | null | web/web.ex | blacksph3re/alastair2 | 51fcd8fe666ae768dd8371b2c7835dd294eeddaf | [
"Apache-2.0"
] | 1 | 2017-12-15T15:49:16.000Z | 2017-12-15T15:49:16.000Z | defmodule Alastair.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Alastair.Web, :controller
use Alastair.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them ... | 19.829268 | 88 | 0.667897 |
d50b931d8cf119e71d58dfac31b3ba67fe1f52a4 | 295 | ex | Elixir | lib/coap/adapters/generic_server.ex | OffgridElectric/coap_ex | 7d83f8a7fbf26e6e7f2baa8aa10d0f7c457365b6 | [
"MIT"
] | 16 | 2019-02-23T10:04:26.000Z | 2022-03-14T03:12:45.000Z | lib/coap/adapters/generic_server.ex | tpitale/coap_ex | 28b62274336742b41e3426b73294a0e74e6a5b67 | [
"MIT"
] | 51 | 2019-05-06T15:34:58.000Z | 2021-01-21T14:32:32.000Z | lib/coap/adapters/generic_server.ex | OffgridElectric/coap_ex | 7d83f8a7fbf26e6e7f2baa8aa10d0f7c457365b6 | [
"MIT"
] | 3 | 2020-06-12T11:47:09.000Z | 2020-12-08T14:59:36.000Z | defmodule CoAP.Adapters.GenericServer do
def request(message, {endpoint, _peer}, owner) do
message
|> endpoint.request
|> deliver(owner)
end
def error({_endpoint, %{reason: {:timeout, _phase}}}), do: nil
defp deliver(result, owner), do: send(owner, {:deliver, result})
end
| 24.583333 | 66 | 0.677966 |
d50bbb7e9355cc0947234460dc3a37daddda5aa8 | 1,820 | ex | Elixir | apps/esperanto/lib/trybe/esperanto/parsers/fenced_code.ex | betrybe/esperanto | 65e40c28914397ef77f5d2c4c29001330beba19f | [
"Apache-2.0"
] | 6 | 2021-07-19T20:00:22.000Z | 2021-11-03T03:27:40.000Z | apps/esperanto/lib/trybe/esperanto/parsers/fenced_code.ex | betrybe/esperanto | 65e40c28914397ef77f5d2c4c29001330beba19f | [
"Apache-2.0"
] | null | null | null | apps/esperanto/lib/trybe/esperanto/parsers/fenced_code.ex | betrybe/esperanto | 65e40c28914397ef77f5d2c4c29001330beba19f | [
"Apache-2.0"
] | null | null | null | defmodule Esperanto.Parsers.FencedCode do
@moduledoc """
Parse code indented with ```
"""
alias Esperanto.CodeUtility
alias Esperanto.Walker
@behaviour Esperanto.Parser
@impl Esperanto.Parser
def parse(walker, tree, parent_id, _opts) do
walker_and_tag = get_code_tag(walker)
astify(walker_and_t... | 29.354839 | 75 | 0.687912 |
d50bc2db8e855b28ff66d5c7bb40ba03aa2975c8 | 2,899 | exs | Elixir | mix.exs | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | 5 | 2021-11-13T13:58:06.000Z | 2022-03-26T03:47:57.000Z | mix.exs | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | 3 | 2021-11-16T18:45:45.000Z | 2021-12-05T13:58:25.000Z | mix.exs | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | null | null | null | defmodule LocalHex.MixProject do
use Mix.Project
def project do
[
app: :local_hex,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
... | 28.145631 | 84 | 0.542946 |
d50bc35e7dd18028e5819122743bc14cdc27981f | 1,798 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/admin_blog_categories_live.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/admin_blog_categories_live.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/admin_blog_categories_live.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.AdminBlogCategoriesLive do
use MishkaHtmlWeb, :live_view
alias MishkaContent.Blog.Category
alias MishkaHtmlWeb.Admin.Blog.Category.DeleteErrorComponent
alias MishkaContent.General.Activity
use MishkaHtml.Helpers.LiveCRUD,
module: MishkaContent.Blog.Category,
redirect: __M... | 29 | 108 | 0.686874 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.