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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ccd0c8aabdd49f668a08faa4805a5cdc579b8b9 | 1,574 | ex | Elixir | lib/policr_mini_bot/supervisor.ex | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | lib/policr_mini_bot/supervisor.ex | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | lib/policr_mini_bot/supervisor.ex | gchengyu/policr-mini | 5acd7d6609fcaea2dbd7276fa01ca334ef9f6e6a | [
"MIT"
] | null | null | null | defmodule PolicrMiniBot.Supervisor do
@moduledoc false
use Supervisor
alias PolicrMiniBot.{
TakeoverCheckPreheater,
FromCheckPreheater,
StartCommander,
PingCommander,
SyncCommander,
LoginCommander,
SelfJoinedHandler,
SelfLeftedHandler,
UserLeftedHandler,
UserJoinedHandler... | 22.169014 | 81 | 0.707116 |
1ccd3783572854d810a7f3948c9d317464df6ce3 | 2,499 | ex | Elixir | lib/poison.ex | Overbryd/poison | b095851a0ea3e3106e5700b743187226c607de26 | [
"CC0-1.0"
] | null | null | null | lib/poison.ex | Overbryd/poison | b095851a0ea3e3106e5700b743187226c607de26 | [
"CC0-1.0"
] | null | null | null | lib/poison.ex | Overbryd/poison | b095851a0ea3e3106e5700b743187226c607de26 | [
"CC0-1.0"
] | 1 | 2021-08-09T09:19:05.000Z | 2021-08-09T09:19:05.000Z | defmodule Poison do
alias Poison.{Encoder, EncodeError}
alias Poison.{Parser, ParseError}
alias Poison.{Decode, Decoder, DecodeError}
@doc """
Encode a value to JSON.
iex> Poison.encode([1, 2, 3])
{:ok, "[1,2,3]"}
"""
@spec encode(Encoder.t, keyword | Encoder.options) :: {:ok, iodata}
| ... | 24.262136 | 75 | 0.619048 |
1ccd45aed570424d8d3038a1b1e2a614e0a35df6 | 4,971 | exs | Elixir | test/wechat_test.exs | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | null | null | null | test/wechat_test.exs | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | null | null | null | test/wechat_test.exs | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | null | null | null | defmodule WeChatTest do
use ExUnit.Case
alias WeChat.Utils
alias WeChat.ServerMessage.{EventHandler, XmlMessage, XmlParser}
doctest WeChat
test "Auto generate functions" do
assert WxApp.app_type() == :official_account
assert WxApp.by_component?() == false
assert WxApp.server_role() == :client
... | 34.762238 | 91 | 0.680547 |
1ccd58ca705571a59d8edbe5cd4da6002b88def7 | 436 | exs | Elixir | priv/repo/migrations/20200804022935_create_user_settings.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | priv/repo/migrations/20200804022935_create_user_settings.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | priv/repo/migrations/20200804022935_create_user_settings.exs | raditya3/papercups | 4657b258ee381ac0b7517e57e4d6261ce94b5871 | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Repo.Migrations.CreateUserSettings do
use Ecto.Migration
def change do
create table(:user_settings, primary_key: false) do
add(:id, :binary_id, primary_key: true)
add(:email_alert_on_new_message, :boolean, default: false, null: false)
add(:user_id, references(:users, type: ... | 25.647059 | 77 | 0.704128 |
1ccd783de94c2449aa591c31963cb37dd1f5e341 | 2,054 | ex | Elixir | lib/teslamate_web/live/geofence_live/edit.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | 1 | 2020-05-17T05:05:22.000Z | 2020-05-17T05:05:22.000Z | lib/teslamate_web/live/geofence_live/edit.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | lib/teslamate_web/live/geofence_live/edit.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | defmodule TeslaMateWeb.GeoFenceLive.Edit do
use Phoenix.LiveView
alias TeslaMateWeb.Router.Helpers, as: Routes
alias TeslaMateWeb.GeoFenceLive
alias TeslaMateWeb.GeoFenceView
alias TeslaMate.{Locations, Settings, Convert}
alias TeslaMate.Locations.GeoFence
import TeslaMateWeb.Gettext
def render(assi... | 31.6 | 98 | 0.659688 |
1ccd986e7d11a9c4047c1ef843b3f061606ecf20 | 7,899 | ex | Elixir | apps/neo_notification/test/support/http_poison_wrapper.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neo_notification/test/support/http_poison_wrapper.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neo_notification/test/support/http_poison_wrapper.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | defmodule NeoNotification.HTTPPoisonWrapper do
@moduledoc false
@notification_url Application.fetch_env!(:neo_notification, :notification_url_test)
@tokens_page_1 %{
"current_height" => 2_326_419,
"message" => "Results for tokens",
"page" => 1,
"page_len" => 1,
"results" => [
%{
... | 28.934066 | 95 | 0.479048 |
1ccd9ea0e077c2acd23a9b6883ae9b1bd83e7c37 | 1,109 | exs | Elixir | config/config.exs | fstp/computercraft | 16f0a559a5c180e3a10ded81fb7456d54c2b5aa2 | [
"MIT"
] | null | null | null | config/config.exs | fstp/computercraft | 16f0a559a5c180e3a10ded81fb7456d54c2b5aa2 | [
"MIT"
] | null | null | null | config/config.exs | fstp/computercraft | 16f0a559a5c180e3a10ded81fb7456d54c2b5aa2 | [
"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... | 35.774194 | 73 | 0.749324 |
1ccd9f1c1f9eb8f11a16c6029ece7e4281fb5d15 | 926 | ex | Elixir | chat/test/support/channel_case.ex | ikhlas-firlana/web-chat-service-elixir | bad0426619a7e217890c06e506f11d0999ee6ff3 | [
"Apache-2.0"
] | null | null | null | chat/test/support/channel_case.ex | ikhlas-firlana/web-chat-service-elixir | bad0426619a7e217890c06e506f11d0999ee6ff3 | [
"Apache-2.0"
] | null | null | null | chat/test/support/channel_case.ex | ikhlas-firlana/web-chat-service-elixir | bad0426619a7e217890c06e506f11d0999ee6ff3 | [
"Apache-2.0"
] | null | null | null | defmodule ChatWeb.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 interacts with... | 24.368421 | 66 | 0.711663 |
1ccdaf3668feadfda106950d012624e62a4cfcce | 667 | ex | Elixir | lib/extensions/json.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 48 | 2015-06-29T21:20:25.000Z | 2021-05-09T04:27:41.000Z | lib/extensions/json.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | null | null | null | lib/extensions/json.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 15 | 2015-06-29T21:13:57.000Z | 2021-07-27T10:02:40.000Z | defmodule Extensions.JSON do
alias Postgrex.TypeInfo
@behaviour Postgrex.Extension
def init(_parameters, opts),
do: Keyword.fetch!(opts, :library)
def matching(_library),
do: [type: "json", type: "jsonb"]
def format(_library),
do: :binary
def encode(%TypeInfo{type: "json"}, map, _state, lib... | 26.68 | 77 | 0.661169 |
1ccdbba0ae356d743d93ca8468f98b30c1248d31 | 15,270 | ex | Elixir | lib/elixir/lib/supervisor.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/elixir/lib/supervisor.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/supervisor.ex | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | defmodule Supervisor do
@moduledoc """
A behaviour module for implementing supervision functionality.
A supervisor is a process which supervises other processes called
child processes. Supervisors are used to build an hierarchical process
structure called a supervision tree, a nice way to structure fault-tol... | 37.610837 | 92 | 0.710413 |
1ccdc13bb918e1655b7b853d29b262418037f597 | 3,163 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/channel.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/storage/lib/google_api/storage/v1/model/channel.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/channel.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 ... | 42.743243 | 170 | 0.680367 |
1ccddbf4ba88952a93943c03f034fc885b48b63b | 236 | ex | Elixir | test.elixir/lib/backwater_elixir_tests.ex | g-andrade/backwater | e9744d2057e56fe1c183b2fd680ffe703eec4090 | [
"MIT"
] | 53 | 2017-07-12T13:18:20.000Z | 2022-01-04T15:44:50.000Z | test.elixir/lib/backwater_elixir_tests.ex | g-andrade/backwater | e9744d2057e56fe1c183b2fd680ffe703eec4090 | [
"MIT"
] | 4 | 2019-06-25T23:21:56.000Z | 2021-05-13T19:17:24.000Z | test.elixir/lib/backwater_elixir_tests.ex | g-andrade/backwater | e9744d2057e56fe1c183b2fd680ffe703eec4090 | [
"MIT"
] | 2 | 2018-11-20T15:18:31.000Z | 2019-06-25T07:37:41.000Z | defmodule BackwaterElixirTests do
@moduledoc """
Documentation for BackwaterElixirTests.
"""
@doc """
Hello world.
## Examples
iex> BackwaterElixirTests.hello
:world
"""
def hello do
:world
end
end
| 12.421053 | 41 | 0.639831 |
1ccdefb36e67306f0feb9db96803a371069ee9c6 | 1,155 | exs | Elixir | mix.exs | zacky1972/nx_math | c8995ece124287ddc1af8c88eefdd21b79d2e9c4 | [
"Apache-2.0"
] | null | null | null | mix.exs | zacky1972/nx_math | c8995ece124287ddc1af8c88eefdd21b79d2e9c4 | [
"Apache-2.0"
] | null | null | null | mix.exs | zacky1972/nx_math | c8995ece124287ddc1af8c88eefdd21b79d2e9c4 | [
"Apache-2.0"
] | null | null | null | defmodule NxMath.MixProject do
use Mix.Project
@source_url "https://github.com/zacky1972/nx_math"
@version "0.1.0-dev"
def project do
[
app: :nx_math,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs()
]
end
# ... | 24.574468 | 87 | 0.553247 |
1cce166e4570bc2e728b9fdcdac27b55ebee9dbc | 132 | exs | Elixir | test/edgar_test.exs | david-christensen/edgar | 32fdcf5b60b5a9be2f9604ea6d57e4cc1ab27e93 | [
"MIT"
] | null | null | null | test/edgar_test.exs | david-christensen/edgar | 32fdcf5b60b5a9be2f9604ea6d57e4cc1ab27e93 | [
"MIT"
] | null | null | null | test/edgar_test.exs | david-christensen/edgar | 32fdcf5b60b5a9be2f9604ea6d57e4cc1ab27e93 | [
"MIT"
] | null | null | null | defmodule EdgarTest do
use ExUnit.Case
doctest Edgar
test "greets the world" do
assert Edgar.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
1cce217dada11163c3441a720342f9404a4c26bd | 2,223 | exs | Elixir | test/credo/code/charlists_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | test/credo/code/charlists_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | test/credo/code/charlists_test.exs | codeclimate-community/credo | b960a25d604b4499a2577321f9d61b39dc4b0437 | [
"MIT"
] | null | null | null | defmodule Credo.Code.CharlistsTest do
use Credo.TestHelper
alias Credo.Code.Charlists
test "it should return the source without string literals 2" do
source = """
x = "this 'should not be' removed!"
y = 'also: # TODO: no comment here'
?' # TODO: this is the third
# '
\"\"\"
y = 'als... | 26.464286 | 86 | 0.518668 |
1cce2691cb4ea82d92317bb6cb2088ecf2677082 | 550 | ex | Elixir | lib/phx_custom/helper/file.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | lib/phx_custom/helper/file.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | lib/phx_custom/helper/file.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | defmodule PhxCustom.Helper.File do
def detect_type(path) do
stat = File.lstat(path)
cond do
Path.extname(path) === ".eex" ->
:eex
{:ok, %File.Stat{type: type}} = stat ->
type
true ->
:error
end
end
def is_file(abs_path) do
case File.lstat(abs_path) do
... | 17.741935 | 49 | 0.554545 |
1cce4cbd4bb9216bdc8d80a37c6dc23fbdee157d | 61 | ex | Elixir | lib/compass_web/views/page_view.ex | theclimbersclub/compass | e9c48c86e6844dd751053af5c3068ce898fd0f2a | [
"MIT"
] | 2 | 2019-10-12T13:12:15.000Z | 2021-03-07T10:21:53.000Z | lib/compass_web/views/page_view.ex | theclimbersclub/compass | e9c48c86e6844dd751053af5c3068ce898fd0f2a | [
"MIT"
] | 14 | 2019-10-14T23:33:15.000Z | 2020-05-30T10:04:16.000Z | lib/compass_web/views/page_view.ex | theclimbersclub/compass | e9c48c86e6844dd751053af5c3068ce898fd0f2a | [
"MIT"
] | 1 | 2020-12-12T12:31:01.000Z | 2020-12-12T12:31:01.000Z | defmodule CompassWeb.PageView do
use CompassWeb, :view
end
| 15.25 | 32 | 0.803279 |
1cce4d05a659cc5110765ef2808f6fbe79eab496 | 1,050 | ex | Elixir | lib/prelude/debugger.ex | divex/prelude | cd6d4517d27d0954fa184b2938cef1a823afae32 | [
"MIT"
] | null | null | null | lib/prelude/debugger.ex | divex/prelude | cd6d4517d27d0954fa184b2938cef1a823afae32 | [
"MIT"
] | null | null | null | lib/prelude/debugger.ex | divex/prelude | cd6d4517d27d0954fa184b2938cef1a823afae32 | [
"MIT"
] | null | null | null | defmodule Prelude.Debugger do
@ignore [__info__: 1, __etude__: 0, module_info: 0, module_info: 1]
def print(thing, ignore \\ @ignore)
def print(beam, ignore) when is_binary(beam) do
{:beam_file, _, _, _, _, code} = :beam_disasm.file(beam)
print(code, ignore)
beam
end
def print({:beam_file, _, _, ... | 22.340426 | 69 | 0.54 |
1cce5a521871fe0c1128b70f287af395b8a8784b | 589 | ex | Elixir | lib/lily/core/monad.ex | dwhelan/ok_computer | 538abcc5b325a0d41dbf642c22bbbbe86c95a164 | [
"MIT"
] | null | null | null | lib/lily/core/monad.ex | dwhelan/ok_computer | 538abcc5b325a0d41dbf642c22bbbbe86c95a164 | [
"MIT"
] | null | null | null | lib/lily/core/monad.ex | dwhelan/ok_computer | 538abcc5b325a0d41dbf642c22bbbbe86c95a164 | [
"MIT"
] | null | null | null | defmodule Lily.Monad do
@moduledoc """
Monadic pipes.
"""
@type t :: any
@doc "return"
@callback return(any) :: t
@doc "bind"
@callback bind(t, f :: (any -> t)) :: t
defmacro monad(do: block) do
quote do
alias OkComputer.{Functor, Applicative}
alias Lily.{Monad}
import Monad
... | 17.848485 | 56 | 0.565365 |
1cce5dbab40aa3829e73f853f0e2f78ef8d17b66 | 253 | ex | Elixir | apps/cronitex/lib/cronitex.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 1 | 2020-11-05T15:38:53.000Z | 2020-11-05T15:38:53.000Z | apps/cronitex/lib/cronitex.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | 36 | 2020-10-24T01:28:42.000Z | 2022-02-07T11:11:37.000Z | apps/cronitex/lib/cronitex.ex | alayers2/cronitex | cf8da9553b8e93b9171f5e9a0f0a08a24a324689 | [
"MIT"
] | null | null | null | defmodule Cronitex do
@moduledoc """
Cronitex keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.3 | 66 | 0.754941 |
1cce813fce73a8dbf4146802e0c28e64530bef44 | 1,549 | ex | Elixir | lib/discuss_web/views/error_helpers.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | lib/discuss_web/views/error_helpers.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | lib/discuss_web/views/error_helpers.ex | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | defmodule DiscussWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(... | 32.270833 | 76 | 0.665591 |
1cceab20506c7f2931ec9e2c058111db3149850e | 1,701 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spanner/lib/google_api/spanner/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spanner/lib/google_api/spanner/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.191489 | 307 | 0.745444 |
1ccead5a60164ed6487c630d43c9d0ef0e6f677b | 2,103 | ex | Elixir | lib/andy/profiles/rover/gm_defs/clearance.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | 7 | 2019-05-29T22:55:25.000Z | 2021-08-22T18:38:29.000Z | lib/andy/profiles/rover/gm_defs/clearance.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | null | null | null | lib/andy/profiles/rover/gm_defs/clearance.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | 1 | 2020-01-25T20:46:43.000Z | 2020-01-25T20:46:43.000Z | defmodule Andy.Profiles.Rover.GMDefs.Clearance do
@moduledoc "The GM definition for :clearance"
alias Andy.GM.{GenerativeModelDef, Conjecture}
import Andy.GM.Utils
def gm_def() do
%GenerativeModelDef{
name: :clearance,
conjectures: [
conjecture(:clear_of_obstacle),
conjecture(:... | 26.620253 | 88 | 0.666191 |
1ccec12591558f7d92bf1270d4328b8912bc6bb3 | 3,902 | ex | Elixir | lib/quaff.ex | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | null | null | null | lib/quaff.ex | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | null | null | null | lib/quaff.ex | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | 1 | 2019-12-03T15:46:32.000Z | 2019-12-03T15:46:32.000Z | # Copyright 2018 Carlos Brito Lage <cbl@aruki.pt>
# 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 t... | 23.792683 | 89 | 0.557919 |
1ccecc3dc8796c29b14d3e48ea64501f92fec93d | 1,444 | exs | Elixir | test/yify_subtitle/adapters/api_test.exs | kdisneur/yify_subtitle | 2f5daf6874e1ee7fddf776c036c36bb8c617fc96 | [
"MIT"
] | null | null | null | test/yify_subtitle/adapters/api_test.exs | kdisneur/yify_subtitle | 2f5daf6874e1ee7fddf776c036c36bb8c617fc96 | [
"MIT"
] | null | null | null | test/yify_subtitle/adapters/api_test.exs | kdisneur/yify_subtitle | 2f5daf6874e1ee7fddf776c036c36bb8c617fc96 | [
"MIT"
] | null | null | null | defmodule YifySubtitle.Adapters.APITest do
use ExUnit.Case, async: false
import Mock
test "search returns list of all available subtitles" do
with_mock HTTPoison, [
get!: fn("http://api.yifysubtitles.com/subs/tt0133093") ->
%HTTPoison.Response{status_code: 200, body: File.read!("test/yif... | 40.111111 | 158 | 0.671053 |
1cced78f37f1e39812fb4504ce5e210d2de56944 | 758 | exs | Elixir | src/apps/utils/mix.exs | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | null | null | null | src/apps/utils/mix.exs | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | 42 | 2020-04-28T20:39:12.000Z | 2022-02-27T03:54:44.000Z | src/apps/utils/mix.exs | fortelabsinc/PlayerExchange | 442629df9716b45dd31f2bb1127309f4f9d2b0ee | [
"MIT"
] | null | null | null | defmodule Utils.MixProject do
use Mix.Project
def project do
{:ok, vsn} = File.read("../../vsn.txt")
[
app: :utils,
version: vsn,
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1... | 20.486486 | 59 | 0.521108 |
1cceef308605114ef51a154f2f7cf4e7a94d3905 | 3,085 | exs | Elixir | test/ex_aws/config_test.exs | andrewhr/ex_aws | 47fcd13b2767aecddd2471388263539f3d9a6851 | [
"MIT"
] | null | null | null | test/ex_aws/config_test.exs | andrewhr/ex_aws | 47fcd13b2767aecddd2471388263539f3d9a6851 | [
"MIT"
] | 5 | 2022-01-12T19:25:24.000Z | 2022-03-23T21:23:42.000Z | test/ex_aws/config_test.exs | andrewhr/ex_aws | 47fcd13b2767aecddd2471388263539f3d9a6851 | [
"MIT"
] | 1 | 2022-03-09T16:40:43.000Z | 2022-03-09T16:40:43.000Z | defmodule ExAws.ConfigTest do
use ExUnit.Case, async: true
setup do
Application.delete_env(:ex_aws, :awscli_credentials)
on_exit(fn ->
Application.delete_env(:ex_aws, :awscli_credentials)
end)
end
test "overrides work properly" do
config = ExAws.Config.new(:s3, region: "us-west-2")
... | 26.144068 | 86 | 0.636629 |
1ccf15bb47354625ef0df9009b42c10edce7f0ef | 97 | exs | Elixir | test/test_helper.exs | elixir-inspector/ref_inspector_plug | cc87a20edf2406de8e915e46c23908831a4a1fc1 | [
"Apache-2.0"
] | 1 | 2020-01-13T20:37:24.000Z | 2020-01-13T20:37:24.000Z | test/test_helper.exs | elixir-inspector/ref_inspector_plug | cc87a20edf2406de8e915e46c23908831a4a1fc1 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | elixir-inspector/ref_inspector_plug | cc87a20edf2406de8e915e46c23908831a4a1fc1 | [
"Apache-2.0"
] | null | null | null | :ok = RefInspector.Downloader.download()
:ok = RefInspector.reload(async: false)
ExUnit.start()
| 19.4 | 40 | 0.752577 |
1ccf2679afa585df370f46cf895f19bbc0679427 | 2,201 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/invideo_timing.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/invideo_timing.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/invideo_timing.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 ... | 41.528302 | 288 | 0.730577 |
1ccf5806ade22e7a1254728f3e3c8c0e66104837 | 1,450 | exs | Elixir | test/doctor_schedule/appointments/services/day_availability_service_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | test/doctor_schedule/appointments/services/day_availability_service_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | test/doctor_schedule/appointments/services/day_availability_service_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorSchedule.Appointments.Services.DayAvailabilityServiceTest do
use DoctorSchedule.DataCase
alias DoctorSchedule.Appointments.Services.DayAvailabilityService
alias DoctorSchedule.Shared.Cache.Ets.Implementations.ScheduleCache
alias DoctorSchedule.UserFixture
import Mock
@result [
%{avail... | 31.521739 | 76 | 0.677931 |
1ccf6424ae22624e2635240025b2e1741d3b456b | 66,457 | ex | Elixir | lib/ecto/changeset.ex | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/ecto/changeset.ex | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset do
@moduledoc ~S"""
Changesets allow filtering, casting, validation and
definition of constraints when manipulating models.
There is an example of working with changesets in the
introductory documentation in the `Ecto` module. The
functions `change/2` and `cast/4` are the usual ent... | 36.275655 | 117 | 0.65501 |
1ccf752cb0972dc0d4f8696d0f18871d8893f4a4 | 11,623 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_create_index_request.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_create_index_request.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_create_index_request.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStore.CreateIndexRequest) do
@moduledoc false
(
defstruct(main_table_name: nil, index_meta: nil, include_base_data: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
... | 28.142857 | 94 | 0.479652 |
1ccfabc2787eef1c35149d481841b14ae0772d46 | 19,422 | ex | Elixir | lib/phoenix_live_view/html_engine.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_engine.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/html_engine.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLEngine do
@moduledoc """
The HTMLEngine that powers `.heex` templates and the `~H` sigil.
It works by adding a HTML parsing and validation layer on top
of EEx engine. By default it uses `Phoenix.LiveView.Engine` as
its "subengine".
"""
# TODO: Use @impl true instead of @do... | 28.98806 | 96 | 0.618834 |
1ccfc8dffab77327007fd29791beb24b583f91e0 | 3,171 | ex | Elixir | rules/lib/pythagoras.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | rules/lib/pythagoras.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | rules/lib/pythagoras.ex | Shakadak/elixir_playground | 3a9c0319d5c8a0e296e19d9ae98fea01f8266f44 | [
"MIT"
] | null | null | null | defmodule Pythagoras do
def add(x, y), do: x / y
def square(x), do: x * x
def pythagoras(x, y), do: add(square(x), square(y))
def add_cps(x, y), do: fn k -> k.(x / y) end
def square_cps(x), do: fn k -> k.(x * x) end
def pythagoras_cps(x, y), do: fn k ->
square_cps(x).(fn x2 ->
square_cps(y).(fn y... | 25.780488 | 90 | 0.515926 |
1ccfd50e6da5462ca2852f9e33dbf3cd90ba7695 | 8,980 | ex | Elixir | lib/mix/lib/mix/tasks/profile.cprof.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/mix/lib/mix/tasks/profile.cprof.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/profile.cprof.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule Mix.Tasks.Profile.Cprof do
use Mix.Task
@shortdoc "Profiles the given file or expression with cprof"
@moduledoc """
Profiles the given file or expression using Erlang's `cprof` tool.
`cprof` can be useful when you want to discover the bottlenecks related
to function calls.
Before running the... | 35.354331 | 98 | 0.615702 |
1ccfde14cda0cc82b8befd60e5c5010ab7342845 | 1,258 | exs | Elixir | mix.exs | johnhidey/digital-ocean-elixir | 69fca5b61e4df773fd5d956bc1c80b89be3d7730 | [
"MIT"
] | null | null | null | mix.exs | johnhidey/digital-ocean-elixir | 69fca5b61e4df773fd5d956bc1c80b89be3d7730 | [
"MIT"
] | null | null | null | mix.exs | johnhidey/digital-ocean-elixir | 69fca5b61e4df773fd5d956bc1c80b89be3d7730 | [
"MIT"
] | null | null | null | defmodule DigitalOcean.MixProject do
use Mix.Project
def project do
[
app: :digital_ocean,
version: "0.3.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package()
... | 19.353846 | 96 | 0.5469 |
1ccfedd9efd0ea1823cc193ce176f9b4ad43a493 | 3,397 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/job_list_jobs.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/job_list_jobs.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/job_list_jobs.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... | 47.84507 | 187 | 0.700618 |
1ccff100be6f0f7f11b8a378b249ca5e77fc574e | 1,208 | ex | Elixir | elixir/rocketpay/lib/rocketpay_web/views/error_view.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | elixir/rocketpay/lib/rocketpay_web/views/error_view.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | elixir/rocketpay/lib/rocketpay_web/views/error_view.ex | HRsniper/Next-Level-Week-4 | e8a4e33311513e354b6dc4efd79daa22feae1633 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.ErrorView do
use RocketpayWeb, :view
import Ecto.Changeset, only: [traverse_errors: 2]
alias Ecto.Changeset
# Se você deseja personalizar um código de status específico
# para um determinado formato, você pode descomentar abaixo.
# def render("500.json", _assigns) do
# %{errors:... | 28.761905 | 83 | 0.68543 |
1cd00a3186a5b6852146c5eedf61b35d1f18f1a6 | 55 | ex | Elixir | lib/intro.ex | Tranzite/Elixir-Intro | 0290b8014e1f636fe2f309185c36643ad628f150 | [
"MIT"
] | null | null | null | lib/intro.ex | Tranzite/Elixir-Intro | 0290b8014e1f636fe2f309185c36643ad628f150 | [
"MIT"
] | null | null | null | lib/intro.ex | Tranzite/Elixir-Intro | 0290b8014e1f636fe2f309185c36643ad628f150 | [
"MIT"
] | 2 | 2021-08-24T19:13:19.000Z | 2021-08-25T13:51:14.000Z | defmodule Intro do
def hello do
:world
end
end
| 9.166667 | 18 | 0.672727 |
1cd052541236147f8e56e9a85846a852ff030706 | 1,370 | ex | Elixir | lib/hound/helpers/cookie.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | lib/hound/helpers/cookie.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | lib/hound/helpers/cookie.ex | NeoArcanjo/hound | 31f15d35aafcebc6263c28948f2bc84eefe8892d | [
"MIT"
] | null | null | null | defmodule Hound.Helpers.Cookie do
@moduledoc "Cookie-related functions"
import Hound.RequestUtils
@doc """
Gets cookies. Returns a list of ListDicts, each containing properties of the cookie.
cookies()
"""
@spec cookies() :: list
def cookies do
session_id = Hound.current_session_id()
make... | 26.346154 | 86 | 0.677372 |
1cd0693d7e04e7d5b1ab7b8a9b805dd600e54c6b | 15,470 | ex | Elixir | lib/oli/delivery/paywall.ex | wyeworks/oli-torus | 146ee79a7e315e57bdf3c7b6fd4f7dbe73610647 | [
"MIT"
] | null | null | null | lib/oli/delivery/paywall.ex | wyeworks/oli-torus | 146ee79a7e315e57bdf3c7b6fd4f7dbe73610647 | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/delivery/paywall.ex | wyeworks/oli-torus | 146ee79a7e315e57bdf3c7b6fd4f7dbe73610647 | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Paywall do
import Ecto.Query, warn: false
require Logger
alias Oli.Repo
alias Oli.Accounts.User
alias Oli.Delivery.Paywall.Payment
alias Oli.Delivery.Paywall.Discount
alias Oli.Delivery.Sections.Section
alias Oli.Delivery.Sections
alias Oli.Delivery.Sections.Enrollment
alias... | 28.915888 | 107 | 0.600323 |
1cd071305f1d5e075b9142d9923d8e66a5af9be3 | 2,743 | ex | Elixir | clients/container/lib/google_api/container/v1/model/set_network_policy_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_network_policy_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_network_policy_request.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.491525 | 258 | 0.723296 |
1cd0774d246da8d1baf060d713c07b658d79111c | 518 | ex | Elixir | lib/models/ecto_producer_message.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | lib/models/ecto_producer_message.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | lib/models/ecto_producer_message.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | defmodule WokAsyncMessageHandler.Models.EctoProducerMessage do
use Ecto.Schema
import Ecto.Changeset
@type t :: %__MODULE__{}
@accepted_params ~w(topic partition blob)a
@required_params ~w(topic partition blob)a
schema "ecto_producer_messages" do
field :topic, :string
field :partition, :integer
... | 21.583333 | 62 | 0.718147 |
1cd0993282870ba96d7fcc23bcdd9d5442a7136e | 2,226 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_instances_scoped_list_warning.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_instances_scoped_list_warning.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/target_instances_scoped_list_warning.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... | 41.222222 | 194 | 0.731806 |
1cd0a36cc5fc7a4c166cc3b7d557d2c1b20ab9a4 | 1,031 | ex | Elixir | getting-started/lib/getting_started_elixir/application.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 274 | 2017-08-25T06:39:51.000Z | 2022-03-15T21:03:27.000Z | getting-started/lib/getting_started_elixir/application.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 15 | 2017-10-03T17:05:48.000Z | 2021-11-23T00:33:23.000Z | getting-started/lib/getting_started_elixir/application.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 42 | 2017-08-28T20:08:47.000Z | 2022-01-18T07:51:02.000Z | defmodule GettingStartedElixir.Application do
use Application
# See https://hexdocs.pm/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 endpoin... | 34.366667 | 98 | 0.741998 |
1cd0ccf1200808a9dfabc6db4ace56b0b09b6569 | 3,007 | ex | Elixir | clients/drive/lib/google_api/drive/v3/api/about.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/about.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/about.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... | 39.565789 | 187 | 0.658796 |
1cd0d812b73ce6bd87cfd24ff5a57b8b63c32cdd | 69 | exs | Elixir | test/rtl_web/views/page_view_test.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | test/rtl_web/views/page_view_test.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | test/rtl_web/views/page_view_test.exs | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTL.PageViewTest do
use RTLWeb.ConnCase, async: true
end
| 17.25 | 34 | 0.797101 |
1cd0e4ef8d33521d18d05bbe5445742e0b11580e | 336 | ex | Elixir | lib/exjson/deprecation.ex | amco/exjson | 9d428acfa2b55d070576e71cef55e2e0bad8c5ab | [
"Apache-2.0"
] | null | null | null | lib/exjson/deprecation.ex | amco/exjson | 9d428acfa2b55d070576e71cef55e2e0bad8c5ab | [
"Apache-2.0"
] | null | null | null | lib/exjson/deprecation.ex | amco/exjson | 9d428acfa2b55d070576e71cef55e2e0bad8c5ab | [
"Apache-2.0"
] | null | null | null | defmodule ExJSON.Deprecation do
defmacro handle(fun, arg) do
quote do
IO.puts "** WARNING! ** The `JSON` module's name was deprecated due to conflict with others apps that use the same namespace, and will be removed in future versions, please use `ExJSON` instead."
ExJSON.unquote(fun)(unquote(arg))
... | 37.333333 | 201 | 0.714286 |
1cd0ea822f60c1240e8d05c2a4935b65cec050d6 | 441 | ex | Elixir | lib/bitpal/exchange_rate/mock.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal/exchange_rate/mock.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal/exchange_rate/mock.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPal.ExchangeRateMock do
@behaviour BitPal.ExchangeRate.Backend
alias BitPal.ExchangeRate
alias BitPal.ExchangeRateSupervisor.Result
@impl true
def name, do: "mock"
@impl true
def supported, do: %{BCH: [:USD, :EUR]}
@impl true
def compute(pair, _opts) do
{:ok,
%Result{
... | 19.173913 | 63 | 0.662132 |
1cd0f8e35405f1e4c373166cc825e338a1d1d480 | 561 | exs | Elixir | test/absinthe/client_test.exs | absinthe-graphql/absinthe_client | 1e930db4b50dbe1da33ddc22212e21f2395e7a08 | [
"MIT"
] | 9 | 2019-06-07T16:07:38.000Z | 2020-12-06T01:24:25.000Z | test/absinthe/client_test.exs | absinthe-graphql/absinthe_client | 1e930db4b50dbe1da33ddc22212e21f2395e7a08 | [
"MIT"
] | null | null | null | test/absinthe/client_test.exs | absinthe-graphql/absinthe_client | 1e930db4b50dbe1da33ddc22212e21f2395e7a08 | [
"MIT"
] | null | null | null | defmodule Absinthe.ClientTest do
use ExUnit.Case
defmodule TestClient do
use Absinthe.Client
end
describe "new/0" do
test "stores the implementing module" do
assert {:ok, %Absinthe.Client{module: TestClient}} = TestClient.new()
end
test "sets a default pipeline" do
assert {:ok,
... | 23.375 | 75 | 0.56328 |
1cd0f9d028b7ced3ca3e254b0989c843b7159cb3 | 1,702 | exs | Elixir | test/countries_test.exs | sendle/countries | 47047512dadb6f9e57d95e1c5af4a8e8cdaaf3eb | [
"MIT"
] | null | null | null | test/countries_test.exs | sendle/countries | 47047512dadb6f9e57d95e1c5af4a8e8cdaaf3eb | [
"MIT"
] | null | null | null | test/countries_test.exs | sendle/countries | 47047512dadb6f9e57d95e1c5af4a8e8cdaaf3eb | [
"MIT"
] | null | null | null | defmodule CountriesTest do
use ExUnit.Case, async: true
test "filter countries by alpha2" do
country = Countries.filter_by(:alpha2, "DE")
assert Enum.count(country) == 1
end
test "filter countries by name" do
countries = Countries.filter_by(:name, "United Kingdom of Great Britain and Northern Irel... | 30.392857 | 98 | 0.706228 |
1cd10732f87d49105b57acac82a79d1dbdb895ec | 3,025 | ex | Elixir | lib/erlef_web/router.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/router.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/router.ex | starbelly/website | 385c30eabbb2c4f1026147342a0d69fdadd20f4c | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.Router do
use ErlefWeb, :router
import Phoenix.LiveDashboard.Router
@trusted_sources ~w(
use.fontawesome.com platform.twitter.com syndication.twitter.com
syndication.twitter.com/settings cdn.syndication.twimg.com
licensebuttons.net i.creativecommons.org
pbs.twimg.com use.typeki... | 33.611111 | 214 | 0.695537 |
1cd15753448e920d4684c784b00ce3eca592911b | 16,579 | exs | Elixir | test/paper_trail/base_tests.exs | marioimr/paper_trail | 7126d00e34a526f53496f1dc5aa772e364ae65fd | [
"MIT"
] | 1 | 2021-04-20T09:52:46.000Z | 2021-04-20T09:52:46.000Z | test/paper_trail/base_tests.exs | marioimr/paper_trail | 7126d00e34a526f53496f1dc5aa772e364ae65fd | [
"MIT"
] | 1 | 2020-06-12T13:53:38.000Z | 2020-06-12T13:53:38.000Z | test/paper_trail/base_tests.exs | marioimr/paper_trail | 7126d00e34a526f53496f1dc5aa772e364ae65fd | [
"MIT"
] | 1 | 2021-03-25T14:24:45.000Z | 2021-03-25T14:24:45.000Z | defmodule PaperTrailTest do
use ExUnit.Case
import Ecto.Query
alias PaperTrail.Version
alias SimpleCompany, as: Company
alias SimplePerson, as: Person
@repo PaperTrail.RepoClient.repo()
@create_company_params %{name: "Acme LLC", is_active: true, city: "Greenwich"}
@update_company_params %{
city: ... | 30.364469 | 98 | 0.573678 |
1cd182a8e5e1b3f72c9ffc2ff80b3cdb5c9dccb4 | 11,409 | ex | Elixir | lib/chat_api/newsletters/pg.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | 1 | 2021-06-17T03:17:24.000Z | 2021-06-17T03:17:24.000Z | lib/chat_api/newsletters/pg.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | lib/chat_api/newsletters/pg.ex | aboutphilippe/papercups | 30364cc562f41cd9d5a7ca5357b16ab8484bd5c9 | [
"MIT"
] | null | null | null | defmodule ChatApi.Newsletters.Pg do
@moduledoc """
A module to handle parsing and sending PG essays
"""
require Logger
alias ChatApi.Google
@months [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
... | 36.92233 | 98 | 0.61881 |
1cd18fa3953b14368a6454485d776e513676702d | 14,341 | exs | Elixir | test/omise/schedule_test.exs | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 12 | 2016-09-10T16:17:32.000Z | 2020-06-04T01:35:54.000Z | test/omise/schedule_test.exs | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 8 | 2016-09-19T05:36:27.000Z | 2020-09-14T08:46:06.000Z | test/omise/schedule_test.exs | zentetsukenz/omise-elixir | 5ba59f53d3a66702b44f1d16c74e712d4f5d2815 | [
"MIT"
] | 10 | 2016-07-19T05:03:01.000Z | 2021-02-08T03:20:54.000Z | defmodule Omise.ScheduleTest do
use Omise.TestCase, async: true
alias Omise.Schedule
setup do: set_fixture_dir("schedule")
describe "list/2" do
test "lists all schedules" do
use_cassette "list_schedules" do
assert Schedule.list(from: "2017-10-01", limit: 1, order: "reverse_chronological") =... | 38.864499 | 100 | 0.359529 |
1cd192f8b9a91c579d7f6c96bd69c52c84c52328 | 1,078 | exs | Elixir | config/config.exs | SophisticaSean/scrape | 3177c915af6672caa4710a961d0ea21ca5cf4bb7 | [
"MIT"
] | 2 | 2016-02-14T01:22:24.000Z | 2016-08-22T16:52:01.000Z | config/config.exs | SophisticaSean/scrape | 3177c915af6672caa4710a961d0ea21ca5cf4bb7 | [
"MIT"
] | null | null | null | config/config.exs | SophisticaSean/scrape | 3177c915af6672caa4710a961d0ea21ca5cf4bb7 | [
"MIT"
] | 1 | 2018-10-14T21:04:40.000Z | 2018-10-14T21:04:40.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 37.172414 | 73 | 0.739332 |
1cd196d164de803b2e8208c28d795644c962d5ab | 6,023 | exs | Elixir | test/groupher_server/cms/hooks/notify_drink_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/hooks/notify_drink_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/hooks/notify_drink_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.Hooks.NotifyDrink do
use GroupherServer.TestTools
import GroupherServer.CMS.Delegate.Helper, only: [preload_author: 1]
alias GroupherServer.{CMS, Delivery, Repo}
alias CMS.Delegate.Hooks
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
{:... | 34.417143 | 96 | 0.66163 |
1cd1afceab6f3a5c8322a3fc84b5da736ba07076 | 1,155 | ex | Elixir | lib/google_api/you_tube/v3/model/resource_id.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/resource_id.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/resource_id.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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... | 28.875 | 79 | 0.736797 |
1cd1c2818f4b33b2b1b494e2e667dccce3d08482 | 6,605 | exs | Elixir | config/releases.exs | Eein/glimesh.tv | e55e96b852363b0d9576ca47d19f1499889c68db | [
"MIT"
] | null | null | null | config/releases.exs | Eein/glimesh.tv | e55e96b852363b0d9576ca47d19f1499889c68db | [
"MIT"
] | null | null | null | config/releases.exs | Eein/glimesh.tv | e55e96b852363b0d9576ca47d19f1499889c68db | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
import Config
# Node configuration
if System.get_env("ENABLE_LIBCLUSTER") do
config :l... | 29.355556 | 79 | 0.742619 |
1cd1fb14312e0379b4171d58dbda928d94c5620a | 1,930 | ex | Elixir | clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/model/saved_reports.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/model/saved_reports.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_seller/lib/google_api/ad_exchange_seller/v20/model/saved_reports.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 36.415094 | 207 | 0.752332 |
1cd205e375c2832acb8e5e725c05875083ecb4da | 1,885 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/localized_company_info.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/model/localized_company_info.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/model/localized_company_info.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... | 36.25 | 251 | 0.744828 |
1cd221e8967a3dd6958db829b51c01be8003488d | 2,388 | ex | Elixir | farmbot_os/lib/farmbot_os/lua/ext/info.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_os/lib/farmbot_os/lua/ext/info.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/lua/ext/info.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Lua.Ext.Info do
@moduledoc """
Lua extensions for gathering information about a running Farmbot
"""
alias FarmbotCeleryScript.SysCalls
alias FarmbotOS.Lua.Util
@doc """
# Example Usage
## With channels
farmbot.send_message("info", "hello, world", ["email", "toast"])
## N... | 23.411765 | 77 | 0.642797 |
1cd235082853d150c3e2d63d60c7d7e22d62c3e5 | 69 | ex | Elixir | lib/bloggex_web/views/admin/layout_view.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | 1 | 2020-01-14T03:17:51.000Z | 2020-01-14T03:17:51.000Z | lib/bloggex_web/views/admin/layout_view.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | lib/bloggex_web/views/admin/layout_view.ex | dreamingechoes/bloggex | 9ead10ec1fd8fda0da3cb08106c43a9043188199 | [
"MIT"
] | null | null | null | defmodule BloggexWeb.Admin.LayoutView do
use BloggexWeb, :view
end
| 17.25 | 40 | 0.811594 |
1cd246041d124f2ae3054ae4b0296dcc86e5eb75 | 760 | exs | Elixir | apps/otp_2/rel/config.exs | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/otp_2/rel/config.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/otp_2/rel/config.exs | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | use Mix.Releases.Config,
default_release: :default,
default_environment: Mix.env()
cookie_dev = :"DEV_COOKIE"
environment :dev do
set dev_mode: true
set include_erts: false
set cookie: cookie_dev
set overlay_vars: [ cookie: cookie_dev ]
set vm_args: "rel/vm.args"
end
cookie_prod = :"PROD_COOKIE"
environ... | 21.714286 | 43 | 0.706579 |
1cd25c1fa52e1dd2eeab35c16fe2cac07375a470 | 2,942 | exs | Elixir | test/doctor_schedule_web/controllers/api/appointment_controller_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | test/doctor_schedule_web/controllers/api/appointment_controller_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | test/doctor_schedule_web/controllers/api/appointment_controller_test.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorScheduleWeb.Api.AppointmentControllerTest do
use DoctorScheduleWeb.ConnCase
import DoctorScheduleWeb.Auth.Guardian
alias DoctorSchedule.AppointmentFixture
alias DoctorSchedule.Appointments.Entities.Appointment
alias DoctorSchedule.UserFixture
setup %{conn: conn} do
user = UserFixture.... | 27.495327 | 90 | 0.639361 |
1cd26c12cf0dd05256470e503a3ec4d7cdefed99 | 20,530 | ex | Elixir | lib/phoenix_live_view/upload_config.ex | ucwaldo/phoenix_live_view | aa192420dc3b3b4158bbc7582ce39cb149221170 | [
"MIT"
] | 2 | 2020-05-06T14:51:56.000Z | 2020-05-06T14:52:21.000Z | lib/phoenix_live_view/upload_config.ex | ucwaldo/phoenix_live_view | aa192420dc3b3b4158bbc7582ce39cb149221170 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | lib/phoenix_live_view/upload_config.ex | ucwaldo/phoenix_live_view | aa192420dc3b3b4158bbc7582ce39cb149221170 | [
"MIT"
] | 1 | 2020-05-16T22:44:14.000Z | 2020-05-16T22:44:14.000Z | defmodule Phoenix.LiveView.UploadEntry do
@moduledoc """
The struct representing an upload entry.
"""
alias Phoenix.LiveView.UploadEntry
defstruct progress: 0,
preflighted?: false,
upload_config: nil,
upload_ref: nil,
ref: nil,
uuid: nil,
... | 29.203414 | 102 | 0.60302 |
1cd2bf1db8b6a402cc27c6c92d295f6cd7624bd0 | 782 | ex | Elixir | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/bundle_info.ex | shinesolutions/swagger-aem | b41f1ae3d23917de38ca5cf116cbcc173368d1e8 | [
"Apache-2.0"
] | 39 | 2016-10-02T06:45:12.000Z | 2021-09-08T20:39:53.000Z | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/bundle_info.ex | shinesolutions/swagger-aem | b41f1ae3d23917de38ca5cf116cbcc173368d1e8 | [
"Apache-2.0"
] | 35 | 2016-11-02T05:06:34.000Z | 2021-09-03T06:03:08.000Z | clients/elixir/generated/lib/adobe_experience_manager(aem)api/model/bundle_info.ex | shinesolutions/swagger-aem | b41f1ae3d23917de38ca5cf116cbcc173368d1e8 | [
"Apache-2.0"
] | 23 | 2016-11-07T04:14:42.000Z | 2021-02-15T09:49:13.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdobeExperienceManager(AEM)API.Model.BundleInfo do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"status",
:"s",
:"... | 24.4375 | 92 | 0.685422 |
1cd2d529b9f43a4d10cce69fe785928dfa1e2e7d | 1,233 | exs | Elixir | config/prod.secret.exs | lawik/noted | a51b5d79cf44abfc2463560f83f1a8d65e6af85e | [
"BSD-3-Clause"
] | 28 | 2021-02-20T22:22:49.000Z | 2022-03-24T21:07:39.000Z | config/prod.secret.exs | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 5 | 2021-05-06T11:37:11.000Z | 2021-08-31T11:38:14.000Z | config/prod.secret.exs | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 7 | 2021-02-24T19:18:28.000Z | 2021-09-13T16:07:08.000Z | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.357143 | 67 | 0.716139 |
1cd2dbe09df27c43cb3a21ec7142f864abb67926 | 3,957 | exs | Elixir | test/k8s/client_test.exs | coryodaniel/k8s_client | 88fb9490db72e947b2d216637769134bc4ebdfbd | [
"MIT"
] | 5 | 2019-01-12T16:56:05.000Z | 2021-04-10T04:06:13.000Z | test/k8s/client_test.exs | coryodaniel/k8s_client | 88fb9490db72e947b2d216637769134bc4ebdfbd | [
"MIT"
] | 12 | 2019-01-08T23:42:56.000Z | 2019-01-26T19:07:50.000Z | test/k8s/client_test.exs | coryodaniel/k8s_client | 88fb9490db72e947b2d216637769134bc4ebdfbd | [
"MIT"
] | null | null | null | defmodule K8s.ClientTest do
use ExUnit.Case, async: true
alias K8s.Client
doctest K8s.Client
setup do
bypass = Bypass.open()
conf = K8s.Conf.from_file("test/support/k8s_conf.yaml")
conf = %{conf | url: "http://localhost:#{bypass.port}/"}
{:ok, bypass: bypass, conf: conf}
end
def namespace... | 32.434426 | 101 | 0.601718 |
1cd2f8f4c7acc5727105efde8918589f9223c662 | 211 | exs | Elixir | priv/config_storage/migrations/20180308162327_add_maybe_hidden_network_flag.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | priv/config_storage/migrations/20180308162327_add_maybe_hidden_network_flag.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | priv/config_storage/migrations/20180308162327_add_maybe_hidden_network_flag.exs | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.System.ConfigStorage.Migrations.AddMaybeHiddenNetworkFlag do
use Ecto.Migration
def change do
alter table("network_interfaces") do
add(:maybe_hidden, :boolean)
end
end
end
| 21.1 | 78 | 0.758294 |
1cd321907cc26fac4aad0997dcff43dfae39652e | 4,164 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateway.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... | 52.708861 | 488 | 0.714938 |
1cd33573dac0b3025b47f80f3bdcbafbedfaf32f | 1,241 | ex | Elixir | lib/packet_api/capacity.ex | jordan0day/packet-api-elixir | 069e96888f1d5858586bff224f09408e671924d3 | [
"Unlicense"
] | 1 | 2020-01-27T00:49:16.000Z | 2020-01-27T00:49:16.000Z | lib/packet_api/capacity.ex | jordan0day/packet-api-elixir | 069e96888f1d5858586bff224f09408e671924d3 | [
"Unlicense"
] | null | null | null | lib/packet_api/capacity.ex | jordan0day/packet-api-elixir | 069e96888f1d5858586bff224f09408e671924d3 | [
"Unlicense"
] | null | null | null | defmodule PacketApi.Capacity do
@moduledoc """
This module collects the operations related to the capacity endpoint of the
Packet API.
"""
alias PacketApi
@type request :: PacketApi.request()
@type server_info :: %{
required(:facility) => String.t(),
required(:plan) => String.t(),
... | 24.333333 | 77 | 0.573731 |
1cd39642f91894402b19533074a4294e24910927 | 1,277 | exs | Elixir | mix.exs | shadowRR/contex | 86730b38a8ec06726e9233ef1f58661ca85cb704 | [
"MIT"
] | 455 | 2020-01-15T22:21:40.000Z | 2022-03-29T23:20:45.000Z | mix.exs | shadowRR/contex | 86730b38a8ec06726e9233ef1f58661ca85cb704 | [
"MIT"
] | 48 | 2020-02-10T06:19:17.000Z | 2022-03-29T03:02:52.000Z | mix.exs | shadowRR/contex | 86730b38a8ec06726e9233ef1f58661ca85cb704 | [
"MIT"
] | 30 | 2020-01-15T22:21:35.000Z | 2022-03-10T18:11:51.000Z | defmodule Contex.MixProject do
use Mix.Project
def project do
[
app: :contex,
version: "0.4.0",
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
name: "ContEx",
source... | 21.283333 | 64 | 0.539546 |
1cd3df01a8456d31ae6d45b8d7502977a51e202f | 106 | exs | Elixir | test/views/layout_view_test.exs | maxbeizer/ueberauth_heroku_example | e0dce54d9dee70be28ca25422cd2d4a59571248b | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | maxbeizer/ueberauth_heroku_example | e0dce54d9dee70be28ca25422cd2d4a59571248b | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | maxbeizer/ueberauth_heroku_example | e0dce54d9dee70be28ca25422cd2d4a59571248b | [
"MIT"
] | null | null | null | defmodule UeberauthHerokuExample.LayoutViewTest do
use UeberauthHerokuExample.ConnCase, async: true
end
| 26.5 | 50 | 0.867925 |
1cd3df80ba6d6e2abbefe2a97aef55bf22e6633e | 8 | ex | Elixir | testData/org/elixir_lang/parser_definition/sigil_dot_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/sigil_dot_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/sigil_dot_operation_parsing_test_case/BinaryWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~x{}.0b0 | 8 | 8 | 0.5 |
1cd3fac5545e86f484988a2e6dbc5fda2f6a3316 | 917 | ex | Elixir | lib/livebook/runtime/erl_dist/smart_cell_gl.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/smart_cell_gl.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/smart_cell_gl.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ErlDist.SmartCellGL do
@moduledoc false
use GenServer
@spec start_link(pid()) :: GenServer.on_start()
def start_link(runtime_broadcast_to) do
GenServer.start_link(__MODULE__, {runtime_broadcast_to})
end
@impl true
def init({runtime_broadcast_to}) do
{:ok, %{runtime_br... | 23.512821 | 63 | 0.68048 |
1cd407572801c0ce9fab24e729ec374e241a6df0 | 5,961 | ex | Elixir | lib/asciinema/accounts/accounts.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | null | null | null | lib/asciinema/accounts/accounts.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | null | null | null | lib/asciinema/accounts/accounts.ex | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.Accounts do
use Asciinema.Config
import Ecto.Query, warn: false
import Ecto, only: [assoc: 2, build_assoc: 2]
alias Asciinema.Accounts.{User, ApiToken}
alias Asciinema.Repo
def fetch_user(id) do
case get_user(id) do
nil -> {:error, :not_found}
user -> {:ok, user}
end... | 22.665399 | 86 | 0.593189 |
1cd41522f691f4d405d2f4ed53686ce069f88399 | 1,957 | exs | Elixir | test/unit/changeset/registrator_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | test/unit/changeset/registrator_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | test/unit/changeset/registrator_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | defmodule RegistratorTest do
use Sentinel.UnitCase
alias Sentinel.Changeset.Registrator
setup do
on_exit(fn ->
Application.delete_env(:sentinel, :user_model_validator)
end)
end
@valid_params %{"email" => "unique@example.com"}
@case_insensitive_valid_params %{"email" => "Unique@example.com"}... | 29.651515 | 84 | 0.693919 |
1cd43fbacfe63e0b096ce81410854d4499449104 | 889 | ex | Elixir | lib/elixir_linter/supervisor.ex | SophieDeBenedetto/elixir_linter | 3feb3f6ce4ea566958ac29548ea16cf8cedd6a42 | [
"MIT"
] | 1 | 2017-03-20T22:47:20.000Z | 2017-03-20T22:47:20.000Z | lib/elixir_linter/supervisor.ex | SophieDeBenedetto/elixir_linter | 3feb3f6ce4ea566958ac29548ea16cf8cedd6a42 | [
"MIT"
] | null | null | null | lib/elixir_linter/supervisor.ex | SophieDeBenedetto/elixir_linter | 3feb3f6ce4ea566958ac29548ea16cf8cedd6a42 | [
"MIT"
] | null | null | null | defmodule ElixirLinter.Supervisor do
use Supervisor
def start_link([repo, "verbose"]) do
result = {:ok, sup} = Supervisor.start_link(__MODULE__, [repo])
start_workers(sup, [repo, "verbose"])
result
end
def start_workers(sup, [repo, "verbose"]) do
IO.inspect repo
{:ok, store} = Supervisor... | 29.633333 | 91 | 0.694038 |
1cd464afc2c17d5e497abf9f45be4049bdac1513 | 105 | ex | Elixir | lib/phx_pow/repo.ex | brandedux/phoenix_authentication | a1a5758532a4ece73bfc7319f8c9235b070bd1fe | [
"MIT"
] | 2 | 2019-09-25T22:02:59.000Z | 2019-12-18T22:33:34.000Z | lib/phx_pow/repo.ex | brandedux/phoenix_authentication | a1a5758532a4ece73bfc7319f8c9235b070bd1fe | [
"MIT"
] | null | null | null | lib/phx_pow/repo.ex | brandedux/phoenix_authentication | a1a5758532a4ece73bfc7319f8c9235b070bd1fe | [
"MIT"
] | null | null | null | defmodule PhxPow.Repo do
use Ecto.Repo,
otp_app: :phx_pow,
adapter: Ecto.Adapters.Postgres
end
| 17.5 | 35 | 0.72381 |
1cd497ae89e5b761aa3e541cbacc6073d31c38c0 | 4,236 | ex | Elixir | lib/approximate_histogram.ex | cschneid/approximate_histogram | ee48b3003a0a1543043ed353da4fa6b7a4ee11ee | [
"MIT"
] | 2 | 2017-03-30T17:00:04.000Z | 2020-03-29T15:54:03.000Z | lib/approximate_histogram.ex | cschneid/approximate_histogram | ee48b3003a0a1543043ed353da4fa6b7a4ee11ee | [
"MIT"
] | null | null | null | lib/approximate_histogram.ex | cschneid/approximate_histogram | ee48b3003a0a1543043ed353da4fa6b7a4ee11ee | [
"MIT"
] | null | null | null | defmodule ApproximateHistogram do
@type t :: %__MODULE__{
bins: [bin],
options: options
}
@type bin :: {value, count}
@type value :: number()
@type count :: non_neg_integer()
@type options :: %{max_bins: pos_integer()}
defstruct [
:bins,
:options,
]
@default_size 50
@spec new(po... | 25.065089 | 101 | 0.583333 |
1cd4b675df8c38279c991879c21eb3b99af2f357 | 1,909 | exs | Elixir | clients/games/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games/mix.exs | 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... | 28.492537 | 193 | 0.659508 |
1cd4e0e09fcb26cad8a3d1cf328e6988c17eee50 | 977 | exs | Elixir | test/features/action_item_review_in_dashboard_test.exs | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | test/features/action_item_review_in_dashboard_test.exs | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | test/features/action_item_review_in_dashboard_test.exs | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | defmodule ActionItemReviewInDashboardTest do
alias RemoteRetro.{Idea}
use RemoteRetro.IntegrationCase, async: false
import ShorterMaps
describe "when a user has participated in a retro with action items" do
setup [:persist_idea_for_retro, :log_participation_in_retro]
@tag [
idea: %Idea{category... | 32.566667 | 131 | 0.728762 |
1cd4f0dd4d5f61e908dbeae1ebae171c74062e66 | 940 | exs | Elixir | test/wallaby/browser/send_text_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/browser/send_text_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/browser/send_text_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.Browser.SendTextTest do
use Wallaby.SessionCase, async: true
setup %{session: session} do
page = visit(session, "forms.html")
{:ok, %{page: page}}
end
test "sending key presses", %{session: session} do
session
|> visit("/")
session
|> send_keys([:tab, :enter])
a... | 21.860465 | 78 | 0.592553 |
1cd504d9a941833c129bfbab8c7a22c0e50929ee | 3,591 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/time_interval.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/time_interval.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/time_interval.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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... | 71.82 | 1,916 | 0.764411 |
1cd5356a6246aecd9fdd132c1dfeeb5a976449b2 | 918 | ex | Elixir | lib/chat_api_web/controllers/fallback_controller.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | 1 | 2021-01-18T09:57:23.000Z | 2021-01-18T09:57:23.000Z | lib/chat_api_web/controllers/fallback_controller.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | 1 | 2021-01-17T10:42:34.000Z | 2021-01-17T10:42:34.000Z | lib/chat_api_web/controllers/fallback_controller.ex | jalford14/papercups | fbe5e5ce4ff51702a0f898c39a9be47c33e9cb4a | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use ChatApiWeb, :controller
alias Ecto.Changeset
alias ChatApiWeb.ErrorHelpers
# This clause is an example ... | 23.538462 | 82 | 0.633987 |
1cd5953171cc89eec54a4585914d6c50bb330356 | 340 | exs | Elixir | test/nomex/sentinel_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-12-08T17:56:01.000Z | 2022-01-04T00:26:43.000Z | test/nomex/sentinel_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2017-11-24T18:10:47.000Z | 2017-11-26T17:58:11.000Z | test/nomex/sentinel_test.exs | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-07-20T15:27:13.000Z | 2021-07-20T15:27:13.000Z | defmodule Nomex.SentinelTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
test "policies" do
use_cassette "sentinel/policies" do
{ :ok, response } = Nomex.Sentinel.policies
assert response.status_code == 501
assert response.body.error == "Nomad Enterprise only endpoint... | 24.285714 | 68 | 0.708824 |
1cd5a49e2d4756f780685effa14614729b68dd21 | 1,323 | ex | Elixir | lib/adyen_checkout_ex/model/three_ds2_result.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/three_ds2_result.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/three_ds2_result.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.ThreeDs2Result do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"authenticationValue",
:"cavvAlgo... | 25.442308 | 91 | 0.631141 |
1cd5d9f9ad5346230af6afff1ad104a562aa8a9d | 261 | ex | Elixir | lib/ada/source/weather.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 7 | 2019-05-11T12:14:48.000Z | 2021-04-02T18:42:51.000Z | lib/ada/source/weather.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 3 | 2019-05-11T08:01:47.000Z | 2019-05-14T12:06:50.000Z | lib/ada/source/weather.ex | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 1 | 2021-01-06T14:57:32.000Z | 2021-01-06T14:57:32.000Z | defmodule Ada.Source.Weather do
@moduledoc false
alias Ada.Source.Weather.{ApiClient, Report}
@spec get(%{lat: float, lng: float}) :: {:ok, Report.t()} | {:error, term}
def get(params) do
ApiClient.get_by_location(params.lat, params.lng)
end
end
| 26.1 | 76 | 0.689655 |
1cd5dcf47b49eddb4e23554bd3b01845c59e2e46 | 1,849 | exs | Elixir | clients/app_engine/mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/mix.exs | 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... | 27.597015 | 101 | 0.656571 |
1cd63c14f1a3e33391c8702e5d4f8d234d989621 | 2,526 | exs | Elixir | test/controllers/room_controller_test.exs | jusroberts/pingpong_server | fd090413076c84e4f7297349d4c9fd6323bd1ddf | [
"MIT"
] | null | null | null | test/controllers/room_controller_test.exs | jusroberts/pingpong_server | fd090413076c84e4f7297349d4c9fd6323bd1ddf | [
"MIT"
] | null | null | null | test/controllers/room_controller_test.exs | jusroberts/pingpong_server | fd090413076c84e4f7297349d4c9fd6323bd1ddf | [
"MIT"
] | null | null | null | defmodule PingpongServer.RoomControllerTest do
use PingpongServer.ConnCase
alias PingpongServer.Room
@valid_attrs %{client_token: "some content", name: "some content", team_a_score: 42, team_b_score: 42}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, room_path(co... | 35.083333 | 104 | 0.678147 |
1cd649f6dc4769b53020f6b359368227469798cb | 10,787 | ex | Elixir | lib/exdis/command_parsers/string.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | 2 | 2020-03-20T17:25:59.000Z | 2020-03-22T14:17:30.000Z | lib/exdis/command_parsers/string.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | null | null | null | lib/exdis/command_parsers/string.ex | g-andrade/exdis | 6cb6775b16a237718f10dc5177d9369279e2d528 | [
"MIT"
] | null | null | null | defmodule Exdis.CommandParsers.String do
## ------------------------------------------------------------------
## APPEND Command
## ------------------------------------------------------------------
def append([{:string, key_name}, {:string, tail}]) do
{:ok, [key_name], &Exdis.Database.Value.String.append(... | 31.357558 | 92 | 0.493279 |
1cd64b4a3c9ecd0f79aedcaceb428f4ddd6bce03 | 4,987 | ex | Elixir | lib/sanbase/billing/billing.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase/billing/billing.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase/billing/billing.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule Sanbase.Billing do
@moduledoc ~s"""
Context module for all billing functionality
"""
import Ecto.Query
import Sanbase.Billing.EventEmitter, only: [emit_event: 3]
alias Sanbase.Repo
alias Sanbase.Billing.{Product, Plan, Subscription}
alias Sanbase.Billing.Subscription.LiquiditySubscription
... | 36.137681 | 95 | 0.748947 |
1cd67a433850f9ef4d30edc860fac7b069492ea1 | 777 | ex | Elixir | lib/ex_dns/resolver/supervisor.ex | kipcole9/dns | f32448954f5c8f13ba714099f47e0e80e1091cf5 | [
"Apache-2.0"
] | 3 | 2019-08-09T05:24:23.000Z | 2021-11-16T18:44:00.000Z | lib/ex_dns/resolver/supervisor.ex | kipcole9/dns | f32448954f5c8f13ba714099f47e0e80e1091cf5 | [
"Apache-2.0"
] | null | null | null | lib/ex_dns/resolver/supervisor.ex | kipcole9/dns | f32448954f5c8f13ba714099f47e0e80e1091cf5 | [
"Apache-2.0"
] | null | null | null | defmodule ExDns.Resolver.Supervisor do
@moduledoc false
use Supervisor
@pool_name :"Elixir.ExDns.Resolver.Pool"
@worker_module ExDns.Resolver.Worker
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
:poolboy.child_spec(@pool_name... | 19.923077 | 93 | 0.664093 |
1cd6a68917bfed4a616c5bef7189e9cb07e28783 | 2,297 | exs | Elixir | mix.exs | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | null | null | null | mix.exs | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | null | null | null | mix.exs | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | 1 | 2018-09-12T16:13:57.000Z | 2018-09-12T16:13:57.000Z | defmodule Wobserver.Mixfile do
use Mix.Project
def project do
[
app: :wobserver,
version: "0.1.9",
elixir: "~> 1.4",
description: "Web based metrics, monitoring, and observer.",
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod... | 24.967391 | 79 | 0.525903 |
1cd6cd2fa864a14c7cc731b459a256e6004ae8f8 | 138 | ex | Elixir | lib/nerves.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | 1 | 2019-06-12T17:34:10.000Z | 2019-06-12T17:34:10.000Z | lib/nerves.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | lib/nerves.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | defmodule Nerves do
def version, do: unquote(Mix.Project.config[:version])
def elixir_version, do: unquote(System.version)
end
| 27.6 | 63 | 0.731884 |
1cd6d16fc324bb4f2e0fe72363d237a94ce3bde3 | 1,280 | ex | Elixir | implementations/elixir/ockam/ockam_services/lib/services/api/static_forwarding_api.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/lib/services/api/static_forwarding_api.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_services/lib/services/api/static_forwarding_api.ex | 0x00A5/ockam | 9710804e20606e70057d65c70d1af7236194aeeb | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Services.API.StaticForwarding do
@moduledoc """
API for static forwarding service
See `Ockam.Services.StaticForwarding`
Methods:
:post, path: "", body: alias - register a forwarding alias
"""
use Ockam.Services.API
alias Ockam.API.Request
alias Ockam.Services.API
alias Ockam.Servi... | 23.703704 | 83 | 0.653906 |
1cd6d5a4bfcf207c05901041399527f149240938 | 860 | exs | Elixir | Chapter 4/CacheServer/cache_server/mix.exs | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | Chapter 4/CacheServer/cache_server/mix.exs | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | Chapter 4/CacheServer/cache_server/mix.exs | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | defmodule CacheServer.Mixfile do
use Mix.Project
def project do
[app: :cache_server,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.ap... | 22.631579 | 79 | 0.602326 |
1cd6ff8f59ae034c6c3071659442c39c67ab92a7 | 1,351 | ex | Elixir | lib/anchore_engine_api_server/model/anchore_image.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/anchore_image.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/anchore_image.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.AnchoreImage do
@moduledoc """
A unique image in the engine. May have multiple tags or references. Unique to an i... | 29.369565 | 131 | 0.717987 |
1cd7283eb766e7289e0364bb7cfe858cd6bee0a8 | 1,529 | exs | Elixir | test/json_test.exs | ivanpetrovic/dissolver | e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a | [
"MIT"
] | 21 | 2020-04-11T14:02:50.000Z | 2022-03-20T21:49:38.000Z | test/json_test.exs | ivanpetrovic/dissolver | e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a | [
"MIT"
] | 5 | 2020-04-12T18:16:57.000Z | 2020-11-07T01:28:08.000Z | test/json_test.exs | ivanpetrovic/dissolver | e8d8d23bd8f038c00f0fe6ec732980b7b1263c3a | [
"MIT"
] | 2 | 2020-11-07T01:16:52.000Z | 2022-02-22T10:30:03.000Z | defmodule Dissolver.JSONTest do
use ExUnit.Case, async: true
test "renders a list of links in json format" do
expected = [
%{label: "First", url: "/products?category=25&page=1", page: 1, current: false},
%{label: "<", url: "/products?category=25&page=6", page: 6, current: false},
%{label: "2"... | 52.724138 | 86 | 0.612165 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.