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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a81169622617f2472b7d79ab79f8a57bea7fa31 | 444 | ex | Elixir | lib/diff/matrix.ex | bryanjos/diff | 8bbed221c9c981bec3458056fbe656363de15be6 | [
"MIT"
] | 40 | 2016-03-23T03:10:14.000Z | 2021-09-25T16:10:13.000Z | lib/diff/matrix.ex | bryanjos/diff | 8bbed221c9c981bec3458056fbe656363de15be6 | [
"MIT"
] | 6 | 2015-12-02T22:09:10.000Z | 2018-12-31T16:00:07.000Z | lib/diff/matrix.ex | bryanjos/diff | 8bbed221c9c981bec3458056fbe656363de15be6 | [
"MIT"
] | 3 | 2018-01-22T14:55:25.000Z | 2019-11-08T07:51:39.000Z | defmodule Diff.Matrix do
@moduledoc false
defstruct rows: nil, columns: nil, data: nil
def new(rows, columns) do
%__MODULE__{
rows: rows,
columns: columns,
data: %{}
}
end
def get(matrix, x, y) do
Map.get(matrix.data, {x, y}, 0)
end
def put(matrix, x, y, value) do
%{m... | 17.076923 | 57 | 0.596847 |
4a81272ea681ef5bf1b8df57d0206a6034a175a5 | 4,092 | exs | Elixir | apps/reaper/test/unit/reaper/data_extract/load_stage_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/reaper/test/unit/reaper/data_extract/load_stage_test.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/reaper/test/unit/reaper/data_extract/load_stage_test.exs | jakeprem/smartcitiesdata | da309ac0d2261527278951cbae88604455207589 | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.DataExtract.LoadStageTest do
use ExUnit.Case
use Placebo
alias Reaper.DataExtract.LoadStage
alias Reaper.{Cache, Persistence}
alias SmartCity.TestDataGenerator, as: TDG
@message_size 218
@iso_output DateTime.utc_now() |> DateTime.to_iso8601()
@cache __MODULE__
use TempEnv, reaper: ... | 30.311111 | 112 | 0.633187 |
4a812a2afd4a9b7e6385f296186a37fb92ba4009 | 613 | ex | Elixir | lib/sponsorly_web/views/sponsorship_view.ex | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | lib/sponsorly_web/views/sponsorship_view.ex | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | lib/sponsorly_web/views/sponsorship_view.ex | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | defmodule SponsorlyWeb.SponsorshipView do
use SponsorlyWeb, :view
def if_confirmed([], _content), do: nil
def if_confirmed(_confirmations, content), do: content
def if_pending([], content), do: content
def if_pending(_confirmations, _content), do: nil
def sponsorship_email(%Sponsorly.Sponsorships.Sponsor... | 27.863636 | 98 | 0.768352 |
4a812d0670ff41120ebe245e785fc8c745fe89ac | 3,585 | ex | Elixir | lib/ex_aws/elastic_transcoder.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/elastic_transcoder.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/elastic_transcoder.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExAws.ElasticTranscoder do
@moduledoc """
Operations on AWS Elastic Transcoder
### Examples
```
ElasticTranscoder.list_pipelines() |> ExAws.request!()
ElasticTranscoder.create_job(%{"Key" => "abcd.mp4", ...}) |> ExAws.request!()
```
"""
@api_version_date "2012-09-25"
####################... | 28.007813 | 132 | 0.653556 |
4a812f6260897ce0ac02ec70bcd7c627ce07c6d4 | 2,155 | exs | Elixir | apps/server/test/telnet_test.exs | cambrian-era/RadicalMUD | d839e2ccf251b662ed08ad7b03a8564a313bde5e | [
"MIT"
] | null | null | null | apps/server/test/telnet_test.exs | cambrian-era/RadicalMUD | d839e2ccf251b662ed08ad7b03a8564a313bde5e | [
"MIT"
] | null | null | null | apps/server/test/telnet_test.exs | cambrian-era/RadicalMUD | d839e2ccf251b662ed08ad7b03a8564a313bde5e | [
"MIT"
] | null | null | null | defmodule Server.TelnetTest do
use PowerAssert
doctest Server.Telnet
describe "telnet middleware" do
test "gets correct response to IAC" do
{code, response} =
Server.Telnet.handle_iac(
nil,
<<255, 251, 31, 255, 251, 32, 255, 251, 24, 255, 251, 39, 255, 253, 1, 255, 251, 3, ... | 28.355263 | 98 | 0.561485 |
4a8139c8d02693d5098338e922254ec511ba5293 | 2,529 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/container_port.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/container_port.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/container_port.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.128571 | 129 | 0.68446 |
4a813e089645c59536161e1fb295220916de1c06 | 1,208 | ex | Elixir | lib/geolix/adapter.ex | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | lib/geolix/adapter.ex | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | lib/geolix/adapter.ex | coladarci/geolix | 0a0508db410732fa8a24cbcd28e44f89b1b30afa | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Adapter do
@moduledoc """
Adapter behaviour module.
"""
@optional_callbacks [
database_workers: 0,
load_database: 1,
unload_database: 1
]
@doc """
Returns the children to be supervised by `Geolix.Database.Supervisor`.
If no automatic supervision should take place or it is... | 26.844444 | 79 | 0.699503 |
4a814cf8d49f3e1cd3049ed0df6a056a58e1465f | 551 | exs | Elixir | test/game_of_life/chaos_monkey/process_killer_test.exs | rdk08/otp-game-of-life | 142740af57f9d49a05b1cf159fe00474956b696f | [
"MIT"
] | null | null | null | test/game_of_life/chaos_monkey/process_killer_test.exs | rdk08/otp-game-of-life | 142740af57f9d49a05b1cf159fe00474956b696f | [
"MIT"
] | null | null | null | test/game_of_life/chaos_monkey/process_killer_test.exs | rdk08/otp-game-of-life | 142740af57f9d49a05b1cf159fe00474956b696f | [
"MIT"
] | null | null | null | defmodule GameOfLife.ChaosMonkey.ProcessKillerTest do
use ExUnit.Case, async: true
alias GameOfLife.ChaosMonkey
setup do
pid = spawn(fn -> :timer.sleep(1000) end)
Process.register(pid, :test_process)
{:ok, process: {"Random Process", pid}}
end
test "kills process and confirms it with nice messa... | 27.55 | 80 | 0.6951 |
4a81b1e3616f11120cff1e35e3e84d5e700009e5 | 187 | exs | Elixir | .formatter.exs | szTheory/ecto_mnesia | 9d1fd3b2845ac3c2c12c669d68198dff9e82a322 | [
"MIT"
] | 245 | 2016-10-22T14:43:36.000Z | 2022-02-28T03:46:27.000Z | .formatter.exs | KushanChamindu/ecto_mnesia | bc0fb46d210eb1be63bcc8f0383212f0633b8c52 | [
"MIT"
] | 80 | 2016-10-22T16:09:19.000Z | 2021-03-03T10:45:01.000Z | .formatter.exs | KushanChamindu/ecto_mnesia | bc0fb46d210eb1be63bcc8f0383212f0633b8c52 | [
"MIT"
] | 53 | 2016-12-03T14:23:05.000Z | 2021-07-01T01:55:22.000Z | # Used by "mix format"
[
import_deps: [:ecto],
inputs: [
".formatter.exs",
"mix.exs",
"config/.credo.exs",
"{config,lib,test}/**/*.{ex,exs}"
],
line_length: 120
]
| 15.583333 | 37 | 0.534759 |
4a81f31f4a75c16a21db18387c539cc3d6e66751 | 1,093 | ex | Elixir | lib/jit_jerky_web/live/page_live.ex | Wobblesday/JIT-Jerky | b60c52ee76cf9ae4836ee99f3deccda72fccc656 | [
"Apache-2.0"
] | null | null | null | lib/jit_jerky_web/live/page_live.ex | Wobblesday/JIT-Jerky | b60c52ee76cf9ae4836ee99f3deccda72fccc656 | [
"Apache-2.0"
] | null | null | null | lib/jit_jerky_web/live/page_live.ex | Wobblesday/JIT-Jerky | b60c52ee76cf9ae4836ee99f3deccda72fccc656 | [
"Apache-2.0"
] | null | null | null | defmodule JITJerkyWeb.PageLive do
use JITJerkyWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, query: "", results: %{})}
end
@impl true
def handle_event("suggest", %{"q" => query}, socket) do
{:noreply, assign(socket, results: search(query), query: query)}
... | 27.325 | 84 | 0.602928 |
4a820a2f7001edbaf574360c1a9cd5571bc5f28b | 142 | ex | Elixir | lib/nostrum/struct/guild/integration/account.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 637 | 2017-03-07T11:25:35.000Z | 2022-03-31T13:37:51.000Z | lib/nostrum/struct/guild/integration/account.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 372 | 2017-03-07T20:42:03.000Z | 2022-03-30T22:46:46.000Z | lib/nostrum/struct/guild/integration/account.ex | phereford/nostrum | 3d273671f51d839eedac4d6e52ba9cf70720ac01 | [
"MIT"
] | 149 | 2017-03-07T12:11:58.000Z | 2022-03-19T22:11:51.000Z | defmodule Nostrum.Struct.Guild.Integration.Account do
@moduledoc """
Struct representing a Discord guild's integration account.
"""
end
| 23.666667 | 60 | 0.767606 |
4a820f9154b99bbf31dcefcdd10a7d251551a613 | 80 | ex | Elixir | lib/phoenix_starter_web/views/user_email_view.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 3 | 2021-03-19T10:39:02.000Z | 2021-07-25T19:54:09.000Z | lib/phoenix_starter_web/views/user_email_view.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 204 | 2020-11-27T06:00:31.000Z | 2022-03-25T08:08:16.000Z | lib/phoenix_starter_web/views/user_email_view.ex | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | null | null | null | defmodule PhoenixStarterWeb.UserEmailView do
use PhoenixStarterWeb, :view
end
| 20 | 44 | 0.85 |
4a8215768f16e33213098f5fa7da355f9929baec | 1,689 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchases_defer_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchases_defer_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchases_defer_request.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... | 35.93617 | 187 | 0.772647 |
4a82238dcf362491ca67da6ccc906b67a7caa844 | 1,274 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_key_rings_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_key_rings_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/list_key_rings_response.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... | 31.073171 | 84 | 0.750392 |
4a823266cb1a23e2196f034c9c9b9eb1222cb64e | 4,869 | ex | Elixir | test/support/node_case.ex | Goose97/phoenix_pubsub | 35e7c54a6f32babea1638f6c5b74575a66a2fe6f | [
"MIT"
] | 524 | 2016-01-22T23:51:56.000Z | 2022-03-26T00:33:43.000Z | test/support/node_case.ex | Goose97/phoenix_pubsub | 35e7c54a6f32babea1638f6c5b74575a66a2fe6f | [
"MIT"
] | 136 | 2016-01-22T01:51:57.000Z | 2022-03-23T11:13:56.000Z | test/support/node_case.ex | Goose97/phoenix_pubsub | 35e7c54a6f32babea1638f6c5b74575a66a2fe6f | [
"MIT"
] | 132 | 2016-01-21T21:20:12.000Z | 2022-03-22T09:33:12.000Z | defmodule Phoenix.PubSub.NodeCase do
@timeout 1000
@heartbeat 100
@permdown 1500
@pubsub Phoenix.PubSubTest
defmacro __using__(opts \\ []) do
quote do
use ExUnit.Case, async: unquote(Keyword.get(opts, :async, true))
import unquote(__MODULE__)
@moduletag :clustered
@timeout unquot... | 26.037433 | 98 | 0.643664 |
4a823480c284ee2e93c9a9660ef5b411b3b922bd | 464 | ex | Elixir | massa_proxy/apps/massa_proxy/lib/infra/http/endpoint.ex | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | 1 | 2021-11-30T19:59:51.000Z | 2021-11-30T19:59:51.000Z | massa_proxy/apps/massa_proxy/lib/infra/http/endpoint.ex | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | null | null | null | massa_proxy/apps/massa_proxy/lib/infra/http/endpoint.ex | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | null | null | null | defmodule Http.Endpoint do
@moduledoc """
A Plug responsible for logging request info, parsing request body's as JSON,
matching routes, and dispatching responses.
"""
use Plug.Router
plug(Plug.Logger)
plug(Http.PlugExporter)
plug(Http.MetricsExporter)
plug(:match)
plug(Plug.Parsers, parsers: [:... | 17.846154 | 78 | 0.700431 |
4a824ea726de68389c41debb7d4559c2596fa583 | 139 | exs | Elixir | config/test.exs | bbc/stump | f0cabcfa23acd24abb7f9bcfc60bcb229a6cb29c | [
"MIT"
] | null | null | null | config/test.exs | bbc/stump | f0cabcfa23acd24abb7f9bcfc60bcb229a6cb29c | [
"MIT"
] | 1 | 2019-08-28T13:37:32.000Z | 2019-08-29T12:14:51.000Z | config/test.exs | bbc/stump | f0cabcfa23acd24abb7f9bcfc60bcb229a6cb29c | [
"MIT"
] | null | null | null | use Mix.Config
config :stump, time_api: Stump.Time.MockTime
config :logger, :console,
format: "$message\n",
colors: [enabled: false]
| 17.375 | 44 | 0.71223 |
4a825d367990e1603d34a272286ca94761ce4a43 | 8,359 | ex | Elixir | lib/credo/check/design/alias_usage.ex | hypno2000/credo | ae4fd51a0041897bb3741458865bdc401b086759 | [
"MIT"
] | null | null | null | lib/credo/check/design/alias_usage.ex | hypno2000/credo | ae4fd51a0041897bb3741458865bdc401b086759 | [
"MIT"
] | null | null | null | lib/credo/check/design/alias_usage.ex | hypno2000/credo | ae4fd51a0041897bb3741458865bdc401b086759 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Design.AliasUsage do
use Credo.Check,
base_priority: :normal,
param_defaults: [
excluded_namespaces: ~w[File IO Inspect Kernel Macro Supervisor Task Version],
excluded_lastnames: ~w[Access Agent Application Atom Base Behaviour
Bitwise Code Date DateT... | 28.335593 | 96 | 0.624836 |
4a8260f0a48e6233eb0698d08f7605e570e39c52 | 287 | exs | Elixir | test/ecto/adapters/sql_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/sql_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | test/ecto/adapters/sql_test.exs | joshnuss/ecto | 17cc8d7ac39cd4f9331f2ff461f7d64ecebde9f0 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQLTest do
use ExUnit.Case, async: true
defmodule Adapter do
use Ecto.Adapters.SQL
end
defmodule Repo do
use Ecto.Repo, adapter: Adapter, otp_app: :ecto
end
test "stores __pool__ metadata" do
assert Repo.__pool__ == Repo.Pool
end
end
| 17.9375 | 51 | 0.714286 |
4a826ca26ee55644ea94ee9f9caba5e586de02bd | 121 | ex | Elixir | lib/rocketseat_nlw_heat_impulse_elixir/mailer.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | lib/rocketseat_nlw_heat_impulse_elixir/mailer.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | lib/rocketseat_nlw_heat_impulse_elixir/mailer.ex | jobsonita/rocketseat_nlw_heat_impulse_elixir | 13b5dc0fe2137c1acbc42afee1d40c43e7f9883f | [
"MIT"
] | null | null | null | defmodule RocketseatNlwHeatImpulseElixir.Mailer do
use Swoosh.Mailer, otp_app: :rocketseat_nlw_heat_impulse_elixir
end
| 30.25 | 65 | 0.876033 |
4a82822eb537bfa432a5b62c8db9c7d085d168f1 | 2,724 | ex | Elixir | lib/forcex/client.ex | dip-m-shimotori/forcex | 0be38dbfc294dcdb8e2e2bef9bb848049c74e3aa | [
"MIT"
] | null | null | null | lib/forcex/client.ex | dip-m-shimotori/forcex | 0be38dbfc294dcdb8e2e2bef9bb848049c74e3aa | [
"MIT"
] | null | null | null | lib/forcex/client.ex | dip-m-shimotori/forcex | 0be38dbfc294dcdb8e2e2bef9bb848049c74e3aa | [
"MIT"
] | 1 | 2021-08-20T08:16:03.000Z | 2021-08-20T08:16:03.000Z | defmodule Forcex.Client do
defstruct access_token: nil, api_version: "36.0", token_type: nil, endpoint: "https://login.salesforce.com", services: %{}
require Logger
@doc """
Initially signs into Force.com API.
Login credentials may be supplied. Order for locating credentials:
1. Map supplied to `login/1`... | 29.290323 | 161 | 0.672907 |
4a82c274c33c9af8302fe563724ae3ef2b56f517 | 932 | ex | Elixir | lib/elixlsx/workbook.ex | Joeman29/elixlsx | c878142b1b366ae20f99423b189b1415a355bcc2 | [
"MIT"
] | null | null | null | lib/elixlsx/workbook.ex | Joeman29/elixlsx | c878142b1b366ae20f99423b189b1415a355bcc2 | [
"MIT"
] | null | null | null | lib/elixlsx/workbook.ex | Joeman29/elixlsx | c878142b1b366ae20f99423b189b1415a355bcc2 | [
"MIT"
] | 2 | 2018-10-10T12:14:19.000Z | 2019-04-13T13:13:04.000Z | defmodule Elixlsx.Workbook do
@moduledoc ~S"""
Root structure for excel files. Must contain at least one
Elixlsx.Sheet object.
The datetime property can optionally be set to override
the "created at" date. It defaults to the current time.
"""
alias Elixlsx.Sheet
alias Elixlsx.Workbook
defstruct shee... | 28.242424 | 78 | 0.666309 |
4a82e3df2e88da0b7f0bb7169171cc414ab8a6b5 | 63 | ex | Elixir | lib/fakepage_web/views/page_view.ex | murat/fakepagex | e98b4bfb9571ae19f2211542015a706568a755c7 | [
"MIT"
] | null | null | null | lib/fakepage_web/views/page_view.ex | murat/fakepagex | e98b4bfb9571ae19f2211542015a706568a755c7 | [
"MIT"
] | null | null | null | lib/fakepage_web/views/page_view.ex | murat/fakepagex | e98b4bfb9571ae19f2211542015a706568a755c7 | [
"MIT"
] | null | null | null | defmodule FakepageWeb.PageView do
use FakepageWeb, :view
end
| 15.75 | 33 | 0.809524 |
4a830429b4a9f34d92d469523a4a42080723a00c | 2,024 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/logging_destination.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 ... | 36.8 | 127 | 0.737154 |
4a830c6d83a1ae77d82f72783e2bbe5ce60650eb | 1,250 | ex | Elixir | lib/pacman.ex | zampino/pacman | 889080e26054dd04aa9e3ef5f7971d408a698a86 | [
"MIT"
] | null | null | null | lib/pacman.ex | zampino/pacman | 889080e26054dd04aa9e3ef5f7971d408a698a86 | [
"MIT"
] | null | null | null | lib/pacman.ex | zampino/pacman | 889080e26054dd04aa9e3ef5f7971d408a698a86 | [
"MIT"
] | null | null | null | defmodule Pacman do
@moduledoc """
## Pacman Module
home of Pacmans. Works as parent process for
the Engine and Shared Events.
## Run
$> iex -S mix
## Usage
Pacman.boot # starts the engine
Pacman.turn :up # changes direction of (default) pacman
Pacman.add :name # adds a player to the grid
Pacman.turn :down, ... | 17.123288 | 73 | 0.648 |
4a8330084b1588a80fa451139f98d1490a02b0f3 | 3,343 | ex | Elixir | kousa/lib/beef/access/rooms.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-03-15T19:14:33.000Z | 2021-03-15T19:14:33.000Z | kousa/lib/beef/access/rooms.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2022-03-25T19:20:22.000Z | 2022-03-25T19:20:22.000Z | kousa/lib/beef/access/rooms.ex | lazarospsa/dogehouse | 4400518f5b6bce929e40eada615356e8814a8d28 | [
"MIT"
] | 1 | 2021-03-19T13:04:24.000Z | 2021-03-19T13:04:24.000Z | defmodule Beef.Access.Rooms do
import Ecto.Query
@fetch_limit 16
alias Beef.Queries.Rooms, as: Query
alias Beef.Users
alias Beef.UserBlocks
alias Beef.Repo
alias Beef.Schemas.User
alias Beef.Schemas.Room
alias Beef.Schemas.UserBlock
alias Beef.Schemas.RoomBlock
alias Beef.RoomPermissions
alias ... | 24.40146 | 86 | 0.598564 |
4a834346751219fe4904eed79e7e7253f8a41d32 | 2,302 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounttax_custom_batch_response_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounttax_custom_batch_response_entry.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounttax_custom_batch_response_entry.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... | 41.107143 | 204 | 0.732407 |
4a8348cb0b29d7dde06a504219e695e6d7a8fe27 | 412 | exs | Elixir | apps/roadtrip/priv/repo/migrations/20210903141411_shorter_strings.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | 2 | 2022-01-19T17:59:21.000Z | 2022-01-19T18:05:05.000Z | apps/roadtrip/priv/repo/migrations/20210903141411_shorter_strings.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | null | null | null | apps/roadtrip/priv/repo/migrations/20210903141411_shorter_strings.exs | myrrlyn/roadtrip | 424d85dd6a713e99c27f97f052cff88dbbeb6423 | [
"MIT"
] | null | null | null | defmodule :"Elixir.Roadtrip.Repo.Migrations.ShorterStrings" do
use Ecto.Migration
def change do
alter table(:vehicles) do
modify :vin, :string, from: :string, size: 17, null: false
modify :name, :string, from: :string, size: 32, null: true
modify :make, :string, from: :string, size: 32, null:... | 31.692308 | 66 | 0.660194 |
4a83615042913192ffd173b8e6e20e200b923605 | 1,655 | ex | Elixir | clients/tasks/lib/google_api/tasks/v1/model/task_links.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/tasks/lib/google_api/tasks/v1/model/task_links.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/tasks/lib/google_api/tasks/v1/model/task_links.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 30.648148 | 125 | 0.706949 |
4a836a034435d79b0086e972e5c9d042d6c0d336 | 1,508 | exs | Elixir | 2019/day08/day08.exs | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2019/day08/day08.exs | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2019/day08/day08.exs | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | defmodule Day08 do
@width 25
@height 6
defp input(path) do
File.read!(path)
|> String.trim()
|> String.graphemes()
|> Stream.chunk_every(@width * @height)
end
defp count(layer, item) do
Enum.count(layer, &(&1 == item))
end
defp fewestzeros(layers) do
layeridx =
layers
... | 20.944444 | 72 | 0.555703 |
4a837423c844eb16f0a1308eb688b53d0d94625b | 2,335 | exs | Elixir | config/config.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | null | null | null | config/config.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | null | null | null | config/config.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :policr_mini,
ecto_repos: [PolicrMini.Re... | 26.534091 | 88 | 0.713919 |
4a83bba0318ed50a9212fa24a7ce71b54e6d2742 | 122 | exs | Elixir | test/test_helper.exs | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | 1 | 2021-03-11T23:24:01.000Z | 2021-03-11T23:24:01.000Z | test/test_helper.exs | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:27:39.000Z | 2022-03-06T10:09:40.000Z | Mimic.copy(ExDockerBuild)
Mox.defmock(Buildex.Common.Service.RPC_Mock, for: Buildex.Common.Services.RPC)
ExUnit.start()
| 20.333333 | 78 | 0.803279 |
4a83ca533ec15988f09f305708b50f6c21549d0d | 222 | ex | Elixir | lib/mechanize/form/parameterizable_field.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 25 | 2020-06-26T02:21:35.000Z | 2022-03-05T18:51:46.000Z | lib/mechanize/form/parameterizable_field.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 29 | 2019-07-02T21:50:06.000Z | 2020-05-28T18:34:01.000Z | lib/mechanize/form/parameterizable_field.ex | paultannenbaum/mechanize | 97fd54c0421689026c01b9bf38206fa74e8f7e1a | [
"MIT"
] | 4 | 2020-06-24T02:11:47.000Z | 2022-03-06T00:50:59.000Z | defprotocol Mechanize.Form.ParameterizableField do
@moduledoc false
def to_param(field)
end
defimpl Mechanize.Form.ParameterizableField, for: Any do
def to_param(field) do
[{field.name, field.value}]
end
end
| 18.5 | 56 | 0.765766 |
4a83d9c625e719f663dbf5566307547120f1b77e | 2,811 | exs | Elixir | test/elixir_ecommerce/user_manager_test.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 4 | 2020-05-29T03:33:02.000Z | 2021-08-21T23:01:48.000Z | test/elixir_ecommerce/user_manager_test.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 2 | 2020-07-29T01:50:46.000Z | 2021-08-31T20:10:47.000Z | test/elixir_ecommerce/user_manager_test.exs | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 1 | 2022-03-21T18:13:21.000Z | 2022-03-21T18:13:21.000Z | defmodule ElixirEcommerce.UserManagerTest do
use ElixirEcommerce.DataCase
alias ElixirEcommerce.{
UserManager,
Sell
}
describe "User" do
alias ElixirEcommerce.UserManager.User
@valid_attrs %{email: "sr.alan.bispo@gmail.com", password: "123456", username: "abmbispo", role: "admin"}
@update... | 33.070588 | 109 | 0.648879 |
4a83fa0d1530e312282488c8a6a68d063069d0b3 | 31,855 | ex | Elixir | lib/ecto/migration.ex | fahchen/ecto_sql | 2e3510a13639828e0ebda8ea2b6a2a5a5782e109 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | fahchen/ecto_sql | 2e3510a13639828e0ebda8ea2b6a2a5a5782e109 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | fahchen/ecto_sql | 2e3510a13639828e0ebda8ea2b6a2a5a5782e109 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Migration do
@moduledoc """
Migrations are used to modify your database schema over time.
This module provides many helpers for migrating the database,
allowing developers to use Elixir to alter their storage in
a way that is database independent.
Here is an example:
defmodule MyRepo... | 31.415187 | 137 | 0.667807 |
4a840d1cd984512e9c72f27be7ad1f877bbe73d1 | 1,336 | exs | Elixir | config/dev.exs | CORDEA/goodbye_pulls | 37544b4101f82da0507c9ca83dfce78152bdca90 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | CORDEA/goodbye_pulls | 37544b4101f82da0507c9ca83dfce78152bdca90 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | CORDEA/goodbye_pulls | 37544b4101f82da0507c9ca83dfce78152bdca90 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :goodbye_pulls, GoodbyePullsWeb.Endpoint,
http... | 33.4 | 170 | 0.739521 |
4a8433da4f97c776ff5c5a9db30e6721636105fe | 24,748 | ex | Elixir | lib/mongo_ecto/repo.ex | yorunoR/mongo_ecto | 70309dcf45690154a6979defed69a33d9f87fa3b | [
"MIT"
] | null | null | null | lib/mongo_ecto/repo.ex | yorunoR/mongo_ecto | 70309dcf45690154a6979defed69a33d9f87fa3b | [
"MIT"
] | null | null | null | lib/mongo_ecto/repo.ex | yorunoR/mongo_ecto | 70309dcf45690154a6979defed69a33d9f87fa3b | [
"MIT"
] | null | null | null | defmodule MongoEcto.Repo do
@moduledoc """
Define Repo-like functions to import in Mongo models.
"""
require Logger
alias Ecto.Changeset
@type mongo_bson_id :: %BSON.ObjectId{}
@type mongo_string_id :: << _ :: 192 >>
@type mongo_binary_id :: << _ :: 96 >>
@type mongo_id :: mongo_s... | 35.557471 | 127 | 0.618555 |
4a84824429fd151f5a6128cbfeeb00248294d92c | 4,008 | exs | Elixir | test/bitcraft_test.exs | alboratech/bitcraft | 40a8d6d1d72b3b6a9b9b70793f12edd1e133cd8d | [
"MIT"
] | 5 | 2021-08-20T08:41:19.000Z | 2022-02-02T22:04:05.000Z | test/bitcraft_test.exs | cabol/bitcraft | 40a8d6d1d72b3b6a9b9b70793f12edd1e133cd8d | [
"MIT"
] | null | null | null | test/bitcraft_test.exs | cabol/bitcraft | 40a8d6d1d72b3b6a9b9b70793f12edd1e133cd8d | [
"MIT"
] | null | null | null | defmodule BitcraftTest do
@moduledoc false
use ExUnit.Case
doctest Bitcraft
alias Bitcraft.BitBlock.Array
describe "encode_segment/2 & decode_segment/2" do
test "integers" do
assert 5 |> Bitcraft.encode_segment() |> Bitcraft.decode_segment() == {5, ""}
assert 3 |> Bitcraft.encode_segment(siz... | 36.436364 | 98 | 0.532934 |
4a849e450c316c42bfb588ceb7e0f7ddd4b18bf8 | 1,982 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/change_logs_list_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/change_logs_list_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/change_logs_list_response.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... | 37.396226 | 158 | 0.728557 |
4a84a10f71244c172baa8f22658c114ec84767a9 | 251 | exs | Elixir | elixir/send.exs | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | b887f2313a8698bd7b2eb212ea7987eb7d99b6fb | [
"Apache-2.0"
] | 5,584 | 2015-01-01T18:08:07.000Z | 2022-03-30T19:22:09.000Z | elixir/send.exs | jeff9571/rabbitmq-tutorials | 180705662b16063d1983a4a82ebca3c2ec83d8d3 | [
"Apache-2.0"
] | 210 | 2015-01-01T04:34:10.000Z | 2022-03-15T14:18:21.000Z | elixir/send.exs | jeff9571/rabbitmq-tutorials | 180705662b16063d1983a4a82ebca3c2ec83d8d3 | [
"Apache-2.0"
] | 3,682 | 2015-01-02T06:49:40.000Z | 2022-03-30T06:55:06.000Z | {:ok, connection} = AMQP.Connection.open
{:ok, channel} = AMQP.Channel.open(connection)
AMQP.Queue.declare(channel, "hello")
AMQP.Basic.publish(channel, "", "hello", "Hello World!")
IO.puts " [x] Sent 'Hello World!'"
AMQP.Connection.close(connection)
| 35.857143 | 56 | 0.717131 |
4a84c710404d6f8294740b140fa4bff3d3c00695 | 242 | ex | Elixir | app/lib/noodl_web/live/guide/index/index.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl_web/live/guide/index/index.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl_web/live/guide/index/index.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.Live.Guide.Index do
@moduledoc ~S"""
LiveView for the accounts profile page.
"""
use NoodlWeb, :live_view
def mount(_params, session, socket) do
{:ok, socket |> Authentication.assign_user(session)}
end
end
| 22 | 56 | 0.710744 |
4a84e213e5818ee10d9b5d180fa2048780f4128a | 57 | ex | Elixir | lib/diff_web/views/layout_view.ex | leandrocp/diff | be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b | [
"Apache-2.0"
] | 59 | 2020-01-20T20:32:31.000Z | 2022-02-11T07:25:45.000Z | lib/diff_web/views/layout_view.ex | leandrocp/diff | be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b | [
"Apache-2.0"
] | 33 | 2020-01-20T19:38:09.000Z | 2021-11-19T10:08:25.000Z | lib/diff_web/views/layout_view.ex | leandrocp/diff | be6d57be5a2dbbc6d117cc4686cad3a3f4a3e46b | [
"Apache-2.0"
] | 12 | 2020-01-20T21:11:14.000Z | 2021-05-10T19:56:47.000Z | defmodule DiffWeb.LayoutView do
use DiffWeb, :view
end
| 14.25 | 31 | 0.789474 |
4a84f6dfe5e0d8831f2a2dbb88491116344e76ea | 4,992 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/filter_expression.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/filter_expression.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/filter_expression.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 ... | 33.72973 | 290 | 0.644431 |
4a84f71c532c2d933bc60ebd1b10fc4292af966e | 1,624 | ex | Elixir | lib/sponsorly_web/endpoint.ex | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | lib/sponsorly_web/endpoint.ex | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | lib/sponsorly_web/endpoint.ex | AminArria/sponsorly | fa78ead63076a54cb1cb1f9d4f4c5fd7a4a78fac | [
"MIT"
] | null | null | null | defmodule SponsorlyWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :sponsorly
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_spons... | 29.527273 | 97 | 0.721059 |
4a84fd962e650e0e885ebe082ee25777ae7740cd | 1,781 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/file_image_media_metadata_location.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/file_image_media_metadata_location.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/file_image_media_metadata_location.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.981481 | 87 | 0.732173 |
4a85468414aebdfcf5959bce9ce15027c1dd4eaa | 1,162 | ex | Elixir | lib/api_web/channels/user_socket.ex | PetrNikolas/blazeee | 0d97a39b53d19951ccd946b2c4949b054e1487cd | [
"MIT"
] | 17 | 2018-09-18T23:35:26.000Z | 2021-12-05T08:03:23.000Z | lib/api_web/channels/user_socket.ex | PetrNikolas/blazeee | 0d97a39b53d19951ccd946b2c4949b054e1487cd | [
"MIT"
] | null | null | null | lib/api_web/channels/user_socket.ex | PetrNikolas/blazeee | 0d97a39b53d19951ccd946b2c4949b054e1487cd | [
"MIT"
] | 2 | 2019-07-08T20:43:13.000Z | 2020-03-04T19:11:39.000Z | defmodule ApiWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", ApiWeb.RoomChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authenti... | 30.578947 | 83 | 0.699656 |
4a854cff8bc3c71e22dd96f24a7bd74db8b40b49 | 13,411 | ex | Elixir | tests/syntax_test_atoms.ex | princemaple/elixir-sublime-syntax | f8154fd24afd478d444a47b963566ed434df2062 | [
"MIT"
] | 14 | 2018-01-26T07:41:42.000Z | 2021-09-28T16:51:20.000Z | tests/syntax_test_atoms.ex | princemaple/elixir-sublime-syntax | f8154fd24afd478d444a47b963566ed434df2062 | [
"MIT"
] | 25 | 2019-02-13T02:56:33.000Z | 2021-10-11T00:54:57.000Z | tests/syntax_test_atoms.ex | elixir-sublime/elixir-sublime-syntax | 5f8aae15bfe5f12e31ec7a3509bc5619aa74babd | [
"MIT"
] | 7 | 2019-02-12T13:03:49.000Z | 2021-09-23T16:50:53.000Z | # SYNTAX TEST "Elixir.sublime-syntax"
## Atoms
atom_key: :atom_sym
# ^^^^^^^^^ constant.other.symbol
# ^ punctuation.definition.constant.begin
# ^ punctuation.definition.constant
#^^^^^^^^^ constant.other.keyword
a::b
# ^ -constant.other.symbol
# ^^ keyword.operator.colon
#^ -constant.ot... | 48.241007 | 121 | 0.353889 |
4a85c1772567ff20a4fd9c3b40776ff00d42f0da | 632 | ex | Elixir | apps/harvester/lib/stage/show_provider.ex | timnew/tv-harvester | 1eeb618877fd4c25c137a56ec1a77f6fd4050eed | [
"MIT"
] | null | null | null | apps/harvester/lib/stage/show_provider.ex | timnew/tv-harvester | 1eeb618877fd4c25c137a56ec1a77f6fd4050eed | [
"MIT"
] | null | null | null | apps/harvester/lib/stage/show_provider.ex | timnew/tv-harvester | 1eeb618877fd4c25c137a56ec1a77f6fd4050eed | [
"MIT"
] | null | null | null | defmodule Stage.ShowProvider do
use GenStage
def start_link do
GenStage.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
{:producer, reset_state()}
end
def refresh do
GenStage.call(__MODULE__, :refresh)
end
def handle_demand(demand, {all_shows, index}) do
shows_to_r... | 20.387097 | 82 | 0.674051 |
4a85cb60e6a7142b2a1d30eb69dd399aa2328fc5 | 15,486 | exs | Elixir | test/lib/file_test.exs | tokkenops/nacha.ex | 0232ed5578d01b89cb554cd8cd0e574504aa5137 | [
"Apache-2.0"
] | 8 | 2020-02-06T17:38:02.000Z | 2022-01-01T01:41:07.000Z | test/lib/file_test.exs | tokkenops/nacha.ex | 0232ed5578d01b89cb554cd8cd0e574504aa5137 | [
"Apache-2.0"
] | 2 | 2019-06-28T03:40:09.000Z | 2019-06-28T04:10:34.000Z | test/lib/file_test.exs | tokkenops/nacha.ex | 0232ed5578d01b89cb554cd8cd0e574504aa5137 | [
"Apache-2.0"
] | 2 | 2020-01-18T22:27:17.000Z | 2021-12-29T17:21:57.000Z | defmodule Nacha.FileTest do
# test fixture copying from https://github.com/moov-io/ach/tree/master/test
use ExUnit.Case, async: true
alias Nacha.{Batch, Entry, Records.Addendum, Records.EntryDetail}
alias Nacha.{Batch, Entry, Records.EntryDetail}
alias Nacha.File, as: NachaFile
alias Nacha.Utils
@entrie... | 41.96748 | 135 | 0.581041 |
4a85e492e27986957d0206c136cd5ed2f4f73166 | 1,035 | ex | Elixir | lib/xdr/types/bool.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 3 | 2020-01-12T03:16:38.000Z | 2020-09-06T03:37:03.000Z | lib/xdr/types/bool.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 7 | 2019-10-14T14:27:31.000Z | 2020-05-01T22:27:52.000Z | lib/xdr/types/bool.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 1 | 2020-02-06T23:19:24.000Z | 2020-02-06T23:19:24.000Z | defmodule XDR.Type.Bool do
@moduledoc """
Boolean
values are presented in Elixir as true / false and encoded as 1 / 0
"""
defstruct type_name: "Bool", value: nil
@type value() :: boolean()
@type t() :: %__MODULE__{type_name: String.t(), value: value()}
@type encoding() :: <<_::32>>
defimpl XDR.Type... | 23.522727 | 72 | 0.617391 |
4a8606ef5d90210dccff59508a366a478cd7b585 | 5,102 | ex | Elixir | lib/kantan_cluster.ex | mnishiguchi/kantan_cluster | 7398a64f003d38c2fd9674a17dcde0c72053ba2a | [
"MIT"
] | 2 | 2021-10-30T02:37:28.000Z | 2021-10-31T12:43:24.000Z | lib/kantan_cluster.ex | mnishiguchi/kantan_cluster | 7398a64f003d38c2fd9674a17dcde0c72053ba2a | [
"MIT"
] | 1 | 2022-01-09T03:50:16.000Z | 2022-01-10T02:46:55.000Z | lib/kantan_cluster.ex | mnishiguchi/kantan_cluster | 7398a64f003d38c2fd9674a17dcde0c72053ba2a | [
"MIT"
] | null | null | null | defmodule KantanCluster do
@moduledoc """
Form a simple Erlang cluster easily in Elixir.
"""
require Logger
@typedoc """
A node type. See `Node.start/3`.
"""
@type node_type :: :longnames | :shortnames
@typedoc """
Options for a cluster.
* `:node`
- the name of a node that you want to star... | 29.321839 | 118 | 0.652685 |
4a864868b421844d458074ca7ee9895c1d2ae748 | 572 | ex | Elixir | lib/pinboardixir/types.ex | ElaWorkshop/pinboardixir | e6391dedd10e9fb17ccb78f8d6b8f80918315712 | [
"MIT"
] | 1 | 2016-09-08T07:15:32.000Z | 2016-09-08T07:15:32.000Z | lib/pinboardixir/types.ex | ElaWorkshop/pinboardixir | e6391dedd10e9fb17ccb78f8d6b8f80918315712 | [
"MIT"
] | 7 | 2016-05-25T20:32:07.000Z | 2016-06-08T06:01:59.000Z | lib/pinboardixir/types.ex | ElaWorkshop/pinboardixir | e6391dedd10e9fb17ccb78f8d6b8f80918315712 | [
"MIT"
] | 2 | 2016-10-24T12:32:33.000Z | 2018-11-15T19:43:37.000Z | defmodule Pinboardixir.Types do
@moduledoc false
@typedoc """
Converted string result from some operations to `:ok` or `{:error, reason}`.
"""
@type result :: :ok | {:error, String.t}
@typedoc """
Refer to [Pinboard's official documentation](https://pinboard.in/api/) for explaination and example. Note:
... | 30.105263 | 108 | 0.688811 |
4a86631213bf8e6bc024a8891b96f6373fd16f60 | 807 | ex | Elixir | lib/chat_api/api_keys/personal_api_key.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | 1 | 2021-01-18T09:57:23.000Z | 2021-01-18T09:57:23.000Z | lib/chat_api/api_keys/personal_api_key.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | null | null | null | lib/chat_api/api_keys/personal_api_key.ex | xprazak2/papercups | 925e7c20ab868648e078a129e832856026c50424 | [
"MIT"
] | null | null | null | defmodule ChatApi.ApiKeys.PersonalApiKey do
use Ecto.Schema
import Ecto.Changeset
alias ChatApi.Accounts.Account
alias ChatApi.Users.User
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "personal_api_keys" do
field(:label, :string)
field(:value, :string)
... | 26.032258 | 74 | 0.711276 |
4a866cfe35beecdc213d8afc94c6f1d3d40375fc | 4,811 | ex | Elixir | apps/snitch_core/lib/core/domain/order/default_machine.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 1 | 2021-04-08T22:29:19.000Z | 2021-04-08T22:29:19.000Z | apps/snitch_core/lib/core/domain/order/default_machine.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | apps/snitch_core/lib/core/domain/order/default_machine.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | defmodule Snitch.Domain.Order.DefaultMachine do
@moduledoc """
The (default) Order state machine.
The state machine is describe using DSL provided by `BeepBop`.
Features:
* handle both cash-on-delivery and credit/debit card payments
## Customizing the state machine
There is no DSL or API to change the ... | 32.952055 | 94 | 0.683434 |
4a8672c62bd1c6bee95ab825fc8b6cf3b34d37bf | 637 | ex | Elixir | lib/anchore_engine_api_server/model/registry_tag_source.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/registry_tag_source.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/registry_tag_source.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.RegistryTagSource do
@moduledoc """
An image reference using a tag in a registry, this is the most common source ... | 22.75 | 84 | 0.720565 |
4a8674d465786a087b4af11c03319f4090d8ee73 | 83 | ex | Elixir | server/lib/domsegserver_web/views/user_confirmation_view.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | server/lib/domsegserver_web/views/user_confirmation_view.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | 9 | 2021-12-09T18:19:21.000Z | 2022-01-09T03:45:33.000Z | server/lib/domsegserver_web/views/user_confirmation_view.ex | arpieb/domseg | 0c7165d69181e59902730c6e7ac41e8e849edd70 | [
"Apache-2.0"
] | null | null | null | defmodule DOMSegServerWeb.UserConfirmationView do
use DOMSegServerWeb, :view
end
| 20.75 | 49 | 0.855422 |
4a86c26d0661db047afa45dbd09b418eb80598c2 | 214 | ex | Elixir | lib/phone/nanp/jm1.ex | turnhub/phone | 020d4ac43d1b191a7b2b7ff3c15cfe8078646c7a | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/jm1.ex | turnhub/phone | 020d4ac43d1b191a7b2b7ff3c15cfe8078646c7a | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/jm1.ex | turnhub/phone | 020d4ac43d1b191a7b2b7ff3c15cfe8078646c7a | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.JM1 do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(1)(876)([2-9].{6})$/
def country, do: "Jamaica"
def a2, do: "JA"
def a3, do: "JAM"
matcher(:regex, ["1876"])
end
| 16.461538 | 42 | 0.598131 |
4a86f9e60f990667655ef7ba2711d6b93079772b | 22,741 | exs | Elixir | apps/ewallet/test/ewallet/gates/transaction_consumption_confirmer_gate_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/gates/transaction_consumption_confirmer_gate_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/gates/transaction_consumption_confirmer_gate_test.exs | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.939607 | 93 | 0.58964 |
4a8773205e11b10fefa4192dc978a4206fe857d2 | 2,233 | ex | Elixir | eventclient/lib/cloudevent.ex | mikehelmick/broker-prototype | 68082f753d3a7ea29399706504419e495287b35f | [
"Apache-2.0"
] | 1 | 2019-02-04T21:09:16.000Z | 2019-02-04T21:09:16.000Z | eventclient/lib/cloudevent.ex | mikehelmick/broker-prototype | 68082f753d3a7ea29399706504419e495287b35f | [
"Apache-2.0"
] | null | null | null | eventclient/lib/cloudevent.ex | mikehelmick/broker-prototype | 68082f753d3a7ea29399706504419e495287b35f | [
"Apache-2.0"
] | null | null | null | # Utility methods for extracting parts of a CloudEvent
# when stored as a Elixir map.
defmodule CloudEvent do
def current_version(), do: "0.2"
# methods for extracting parts of a cloud event
# Optional fields return nil atom if not present
def type(%{"type" => type}), do: type
def specversion(%{"specversion... | 37.847458 | 96 | 0.676668 |
4a878c8ebb61184565cc0a7593d3b9e0fc7d4da5 | 576 | ex | Elixir | apps/elixir_phoenix_chatroom/lib/elixir_phoenix_chatroom/application.ex | unip62/elixir-phoenix-chatroom | 4c6af20d0461a572bcf3a70fb80cfe088e12ebbe | [
"MIT"
] | 1 | 2018-02-19T09:02:14.000Z | 2018-02-19T09:02:14.000Z | apps/elixir_phoenix_chatroom/lib/elixir_phoenix_chatroom/application.ex | unip62/elixir-phoenix-chatroom | 4c6af20d0461a572bcf3a70fb80cfe088e12ebbe | [
"MIT"
] | null | null | null | apps/elixir_phoenix_chatroom/lib/elixir_phoenix_chatroom/application.ex | unip62/elixir-phoenix-chatroom | 4c6af20d0461a572bcf3a70fb80cfe088e12ebbe | [
"MIT"
] | null | null | null | defmodule ElixirPhoenixChatroom.Application do
@moduledoc """
The ElixirPhoenixChatroom Application Service.
The elixir_phoenix_chatroom system business domain lives in this application.
Exposes API to clients such as the `ElixirPhoenixChatroomWeb` application
for use in channels, controllers, and elsewhere... | 28.8 | 79 | 0.767361 |
4a87afa084da34b2e08aa374a51550e042f7ae95 | 1,658 | ex | Elixir | apps/seeker/lib/seeker_web/endpoint.ex | sarat1669/seeker | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | 1 | 2019-07-10T10:00:56.000Z | 2019-07-10T10:00:56.000Z | apps/seeker/lib/seeker_web/endpoint.ex | spawnfest/factor18 | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | null | null | null | apps/seeker/lib/seeker_web/endpoint.ex | spawnfest/factor18 | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | null | null | null | defmodule SeekerWeb.Endpoint do
@moduledoc false
use Phoenix.Endpoint, otp_app: :seeker
socket "/socket", SeekerWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production... | 28.101695 | 95 | 0.705669 |
4a87b65edb728fc00408ff464b67f666a217b770 | 4,149 | ex | Elixir | clients/games_management/lib/google_api/games_management/v1management/model/player.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games_management/lib/google_api/games_management/v1management/model/player.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games_management/lib/google_api/games_management/v1management/model/player.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... | 50.597561 | 340 | 0.719691 |
4a87c04bd10e77eee9e2fd4eb8ebc54283691756 | 682 | ex | Elixir | lib/hl7/2.3/segments/pr1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/pr1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/segments/pr1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.Segments.PR1 do
@moduledoc false
require Logger
alias HL7.V2_3.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_procedure: nil,
procedure_coding_method: nil,
procedure_code: DataTypes.Ce,
procedure_description: nil,
procedure_date_time: Dat... | 25.259259 | 45 | 0.68915 |
4a87c2780ee065196715e244ea3447a2cd9d1592 | 1,330 | exs | Elixir | test/nats/pubsub_test.exs | nats-io/elixir-nats | cd1ddcee1a145093924c1acf24d1bb627b6d61cd | [
"MIT"
] | 82 | 2016-01-27T20:43:50.000Z | 2022-01-31T20:27:18.000Z | test/nats/pubsub_test.exs | nats-io/elixir-nats | cd1ddcee1a145093924c1acf24d1bb627b6d61cd | [
"MIT"
] | 21 | 2016-01-28T16:49:55.000Z | 2019-04-17T16:46:32.000Z | test/nats/pubsub_test.exs | nats-io/elixir-nats | cd1ddcee1a145093924c1acf24d1bb627b6d61cd | [
"MIT"
] | 17 | 2016-01-28T16:14:51.000Z | 2021-04-07T11:00:07.000Z | # Copyright 2016 Apcera Inc. All rights reserved.
defmodule Nats.PubsubTest do
use ExUnit.Case, async: false
alias Nats.Client
def receive_loop(pid, acc) do
receive do
_w -> receive_loop(pid, acc + 1)
after 200 ->
acc
end
end
@tag requires_gnatsd: true
test "Publish some messages...... | 31.666667 | 59 | 0.621053 |
4a87e71a838d98a016c02f3cb31c8cfd7690967e | 1,890 | ex | Elixir | backend/lib/edgehog/application.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/lib/edgehog/application.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/lib/edgehog/application.ex | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# 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 app... | 29.53125 | 82 | 0.714286 |
4a88852e4133296c7fce1ef9cf21e66bf3d71a84 | 33,666 | ex | Elixir | lib/elixir/lib/code.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | stevedomin/elixir | df1a7d36472a92aedc97c0afe9f782678b7aa7e5 | [
"Apache-2.0"
] | null | null | null | defmodule Code do
@moduledoc """
Utilities for managing code compilation, code evaluation, and code loading.
This module complements Erlang's [`:code` module](http://www.erlang.org/doc/man/code.html)
to add behaviour which is specific to Elixir. Almost all of the functions in this module
have global side eff... | 32.780915 | 97 | 0.682647 |
4a8886fef2a5c049c09e5a0fc85b82a9365c4fee | 1,834 | ex | Elixir | apps/docker/lib/docker/port_mapper.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/docker/lib/docker/port_mapper.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/docker/lib/docker/port_mapper.ex | vapordao/staxx | 5110167573e67a91c0865c3265896642ebe4012e | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.Docker.PortMapper do
@moduledoc """
Module will store all ports that were mapped for docker containers
And in case of request it will pick random port number for new container
"""
use GenServer
require Logger
# List of available ports for reservation
@range 49152..65535
@doc false
... | 21.833333 | 74 | 0.640131 |
4a88a533e417c749a216e835e8b37f4ff6a0eb02 | 1,125 | exs | Elixir | config/config.exs | brayhoward/remembrance | 0b50d8afc9b37b1740beaf2e2ab492e82ed56da1 | [
"Apache-2.0"
] | null | null | null | config/config.exs | brayhoward/remembrance | 0b50d8afc9b37b1740beaf2e2ab492e82ed56da1 | [
"Apache-2.0"
] | null | null | null | config/config.exs | brayhoward/remembrance | 0b50d8afc9b37b1740beaf2e2ab492e82ed56da1 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.290323 | 73 | 0.752889 |
4a88a584f60bb5b62ac8a9ac10856a1932ce27b3 | 585 | ex | Elixir | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/import_source.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/import_source.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/import_source.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Containers.Model.ImportSource do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"resourceId",... | 20.892857 | 88 | 0.700855 |
4a88b1e78df43ac28edeb4f250361f5de1061c73 | 17 | exs | Elixir | .formatter.exs | msmykowski/deadline | bb38073cb04323fca859fdad563ea4629f09c30f | [
"MIT"
] | 9 | 2020-08-23T21:22:48.000Z | 2021-09-03T22:44:03.000Z | .formatter.exs | msmykowski/deadline | bb38073cb04323fca859fdad563ea4629f09c30f | [
"MIT"
] | 1 | 2020-10-22T12:30:08.000Z | 2020-10-22T15:02:53.000Z | .formatter.exs | msmykowski/deadline | bb38073cb04323fca859fdad563ea4629f09c30f | [
"MIT"
] | 2 | 2020-10-21T19:15:39.000Z | 2021-08-31T14:14:50.000Z | [
inputs: []
]
| 4.25 | 12 | 0.352941 |
4a88c4f1e9615d5b231469f3de6249a431046c23 | 1,041 | ex | Elixir | lib/surface/components/form/search_input.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | 1 | 2021-06-04T20:46:52.000Z | 2021-06-04T20:46:52.000Z | lib/surface/components/form/search_input.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | lib/surface/components/form/search_input.ex | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.SearchInput do
@moduledoc """
An input field that let the user enter **search** queries.
Provides a wrapper for Phoenix.HTML.Form's `search_input/3` function.
All options passed via `opts` will be sent to `search_input/3`, `value` and
`class` can be set directly and will ov... | 28.916667 | 82 | 0.696446 |
4a88f89a6aec7291bba72ddc5675d743a4bfb894 | 77 | ex | Elixir | web/views/layout_view.ex | muziyoshiz/admiral_stats_api | f9a6eaa2d34604ec207168f6192b98788e16bf58 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | muziyoshiz/admiral_stats_api | f9a6eaa2d34604ec207168f6192b98788e16bf58 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | muziyoshiz/admiral_stats_api | f9a6eaa2d34604ec207168f6192b98788e16bf58 | [
"MIT"
] | null | null | null | defmodule AdmiralStatsApi.LayoutView do
use AdmiralStatsApi.Web, :view
end
| 19.25 | 39 | 0.831169 |
4a8945d1c2ec66d2ac288a5eaf53092eaddac8a8 | 6,266 | exs | Elixir | config/config.exs | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | config/config.exs | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | config/config.exs | samuel-p/analytics | 5d35bab9c6c2aafc556659f64e4213848a37ed8a | [
"MIT"
] | null | null | null | use Mix.Config
config :plausible,
admin_user: System.get_env("ADMIN_USER_NAME", "admin"),
admin_email: System.get_env("ADMIN_USER_EMAIL", "admin@plausible.local"),
mailer_email: System.get_env("MAILER_EMAIL", "hello@plausible.local"),
admin_pwd: System.get_env("ADMIN_USER_PWD", "!@d3in"),
ecto_repos: [Plausi... | 31.969388 | 97 | 0.719279 |
4a8952d35ad6b6964102378448383d563a9f18bf | 135 | ex | Elixir | lib/blue_jet/app/data_trading.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/data_trading.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/data_trading.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.DataTrading do
use BlueJet, :context
def create_data_import(req), do: create("data_import", req, __MODULE__)
end | 27 | 73 | 0.777778 |
4a89653c98a407a55d6347d1c33727257633f174 | 364 | exs | Elixir | priv/repo/seeds.exs | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# CollabXPhoenix.Repo.insert!(%CollabXPhoenix.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on)... | 30.333333 | 62 | 0.717033 |
4a89b0f0199ea44aadf81b9d1e3008863b6350ee | 106 | ex | Elixir | apps/nightcrawler/lib/postgrex_types.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler/lib/postgrex_types.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler/lib/postgrex_types.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | Postgrex.Types.define(Nightcrawler.PostgresTypes, [] ++ Ecto.Adapters.Postgres.extensions(), json: Jason)
| 53 | 105 | 0.783019 |
4a89b57222a2462f703929a2582b366932edec81 | 2,527 | ex | Elixir | lib/codes/codes_q91.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q91.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q91.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Q91 do
alias IcdCode.ICDCode
def _Q910 do
%ICDCode{full_code: "Q910",
category_code: "Q91",
short_code: "0",
full_name: "Trisomy 18, nonmosaicism (meiotic nondisjunction)",
short_name: "Trisomy 18, nonmosaicism (meiotic nondisjunction)",
... | 31.987342 | 76 | 0.605461 |
4a89be0dfee4f92c2f30d06b8540073e65e2c8f8 | 669 | exs | Elixir | test/credo/check/warning/iex_pry_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/warning/iex_pry_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/warning/iex_pry_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Warning.IExPryTest do
use Credo.TestHelper
@described_check Credo.Check.Warning.IExPry
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
def some_function(parameter1, parameter2) do
parameter1 + parameter2
end
end
... | 18.081081 | 46 | 0.718984 |
4a89ca8eb983d5027a07ea951b429ebad605af7e | 275 | exs | Elixir | elixir/concat.exs | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | elixir/concat.exs | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | elixir/concat.exs | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | defmodule Concat do
def join(a, b \\ nil, sep \\ " ")
def join(a, b, _sep) when is_nil(b) do
a
end
def join(a, b, sep) do
a <> sep <> b
end
end
IO.puts Concat.join("Hello", "world")
IO.puts Concat.join("Hello")
IO.puts Concat.join("Hello", "world", "_")
| 17.1875 | 42 | 0.585455 |
4a89ee316edbccafa372ae697a27edb472bc1286 | 687 | exs | Elixir | test/total_subscribers_test.exs | losvedir/ephemeral2-logs | 05dadbd514493f8509457bcb411bbdd9b92f4f3a | [
"MIT"
] | 2 | 2015-08-04T17:35:50.000Z | 2015-08-12T18:37:48.000Z | test/total_subscribers_test.exs | losvedir/ephemeral2-logs | 05dadbd514493f8509457bcb411bbdd9b92f4f3a | [
"MIT"
] | null | null | null | test/total_subscribers_test.exs | losvedir/ephemeral2-logs | 05dadbd514493f8509457bcb411bbdd9b92f4f3a | [
"MIT"
] | null | null | null | defmodule TotalSubscribersTest do
use ExUnit.Case
test "header/0" do
"timestamp,count"
end
test "parse_line/1" do
l1 = "133 <190>1 2015-05-12T09:16:31.769389+00:00 app web.1 - - 09:16:31.769 [info] total_subscribers=0"
l2 = "135 <190>1 2015-05-12T13:38:53.928592+00:00 app web.1 - - 13:38:53.928 [i... | 38.166667 | 110 | 0.703057 |
4a8a023f51fca877020954ddaf636f49a99429d5 | 1,302 | ex | Elixir | lib/mailjex/delivery.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 8 | 2017-10-10T15:51:33.000Z | 2021-08-18T01:06:49.000Z | lib/mailjex/delivery.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 5 | 2018-05-23T15:03:15.000Z | 2019-11-17T16:30:18.000Z | lib/mailjex/delivery.ex | dwarner/mailjex | d611f2e2d70b4e6567b22dd3ef19b792dcbf2d79 | [
"MIT"
] | 4 | 2018-11-16T15:45:22.000Z | 2019-11-16T16:19:48.000Z | defmodule Mailjex.Delivery do
@moduledoc """
Exposes functions for sending emails
via MailJet.
"""
use GenServer
alias Mailjex.Api.Delivery
@behaviour Mailjex.Behaviour.Delivery
@doc false
def start_link do
initial_state = %{}
GenServer.start_link(__MODULE__, initial_state, [name: __MODULE__]... | 26.04 | 74 | 0.575269 |
4a8a2144d5f98cfbdc45375c560e9a7160faba9c | 521 | ex | Elixir | lib/commanded/scheduler/jobs/job_supervisor.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 31 | 2017-11-25T00:18:12.000Z | 2022-03-03T20:11:17.000Z | lib/commanded/scheduler/jobs/job_supervisor.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 12 | 2018-01-09T21:18:30.000Z | 2021-09-06T10:35:43.000Z | lib/commanded/scheduler/jobs/job_supervisor.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 13 | 2018-02-08T15:15:11.000Z | 2020-08-13T12:25:18.000Z | defmodule Commanded.Scheduler.JobSupervisor do
@moduledoc false
use Supervisor
alias Commanded.Scheduler.Job
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
def start_job(name, module, args) do
Supervisor.start_child(__MODULE__, [name, module, args])
end
... | 21.708333 | 93 | 0.712092 |
4a8a328478b0f446918c69d7999003f7ff073f2a | 4,634 | ex | Elixir | lib/timber/config.ex | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 244 | 2016-10-10T15:30:32.000Z | 2021-08-11T08:45:53.000Z | lib/timber/config.ex | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 242 | 2016-10-10T19:34:44.000Z | 2020-11-20T18:56:43.000Z | lib/timber/config.ex | myskoach/timber-elixir | ea111ce65271fdd1d2a2b7661ad1034e497d05b7 | [
"0BSD"
] | 35 | 2016-12-04T07:33:04.000Z | 2020-06-17T20:22:11.000Z | defmodule Timber.Config do
@moduledoc """
Configuration for the Timber library
All supported options are described within their respective method:
* `:api_key` - `api_key/0`
* `:debug_io_device` - `debug_io_device/0`
* `:event_key` - `event_key/0`
* `:http_client` - `http_client/0`
* `:http_url` - `ht... | 22.715686 | 95 | 0.668537 |
4a8a464a3e97339f3871c22859b1e264960bcbc5 | 2,171 | ex | Elixir | web/controllers/stream_controller.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | web/controllers/stream_controller.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | web/controllers/stream_controller.ex | MarcAntoine-Arnaud/ecto_relations | 477853429af12adb33cd8000b29da044649c1283 | [
"MIT"
] | null | null | null | defmodule EctoRelations.StreamController do
use EctoRelations.Web, :controller
alias EctoRelations.Stream
plug :scrub_params, "stream" when action in [:create, :update]
def index(conn, _params) do
streams = Repo.all(Stream)
template = EctoRelations.Common.template(conn, "index")
render(conn, temp... | 30.152778 | 68 | 0.645785 |
4a8a5373fdf700336f50f96a350d7f5fa0f1bd49 | 2,473 | ex | Elixir | lib/quoil/log_results.ex | rawdamedia/quoil | 8d7be55d15442e2f0cf8743d5ceb1dd5761e9356 | [
"MIT"
] | 1 | 2015-07-17T13:42:12.000Z | 2015-07-17T13:42:12.000Z | lib/quoil/log_results.ex | rawdamedia/quoil | 8d7be55d15442e2f0cf8743d5ceb1dd5761e9356 | [
"MIT"
] | 3 | 2015-07-17T07:52:30.000Z | 2016-03-16T11:34:48.000Z | lib/quoil/log_results.ex | rawdamedia/quoil | 8d7be55d15442e2f0cf8743d5ceb1dd5761e9356 | [
"MIT"
] | 1 | 2015-07-17T11:50:44.000Z | 2015-07-17T11:50:44.000Z | defmodule Quoil.LogResults do
import Map
def write_log({parsed_rslt, ip_pinged, switches, log_file_name}) do
log_data = log_writer(log_file_name)
log_data.(parsed_rslt)
{ip_pinged, switches, log_file_name}
end
def log_writer(:std_out) do
# Return a function that will output appropriately f... | 41.915254 | 310 | 0.570562 |
4a8a5d415948ad1590bcb92925d6a89f3cca8cfa | 6,191 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/network_endpoint_group.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/network_endpoint_group.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/network_endpoint_group.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 63.824742 | 524 | 0.711355 |
4a8a7ed33a7acf37a0bb3ae547cc829feeb1d119 | 567 | exs | Elixir | test/ecto_rut/delete_test.exs | sheharyarn/ecto_rut | 8f5a7dfe7fbdac475b08f25c98eff8120ccd2dfe | [
"MIT"
] | 123 | 2016-09-25T00:46:30.000Z | 2021-01-13T04:23:18.000Z | test/ecto_rut/delete_test.exs | sheharyarn/ecto_rut | 8f5a7dfe7fbdac475b08f25c98eff8120ccd2dfe | [
"MIT"
] | 1 | 2018-12-01T04:45:32.000Z | 2018-12-01T04:45:32.000Z | test/ecto_rut/delete_test.exs | sheharyarn/ecto_rut | 8f5a7dfe7fbdac475b08f25c98eff8120ccd2dfe | [
"MIT"
] | 3 | 2016-09-27T12:07:23.000Z | 2020-12-02T12:52:10.000Z | defmodule Ecto.Rut.Test.Delete do
use ExUnit.Case
alias Ecto.Rut.TestProject
alias Ecto.Rut.TestProject.Repo
alias Ecto.Rut.TestProject.Post
setup do
TestProject.Helpers.cleanup
%Post{}
|> Post.changeset(%{title: "Something"})
|> Repo.insert
:ok
end
test "delete" do
assert... | 17.181818 | 47 | 0.636684 |
4a8aa219ee7cdb27283713d8e33cda9b90de58f0 | 1,270 | exs | Elixir | test/pumpkin/exceptions/tasks_test.exs | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | test/pumpkin/exceptions/tasks_test.exs | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | test/pumpkin/exceptions/tasks_test.exs | krasio/pumpkin.ex | bfa8d1ae1854ba6c5f7c3df877157656a67e99f9 | [
"BSD-3-Clause"
] | null | null | null | defmodule Pumpkin.Exceptions.TasksTest do
use Pumpkin.DataCase
alias Pumpkin.Exceptions
alias Pumpkin.Exceptions.Occurrence
alias Pumpkin.Exceptions.Bug
@valid_data %{
environment_id: "pumpkin-staging",
message: "Ooops, something went wrong!",
occurred_at: ~N[2010-04-17 14:25:34.000000],
dat... | 31.75 | 95 | 0.714173 |
4a8ab5b8b5037d284fc29eb498fef854c4c7748b | 1,843 | ex | Elixir | lib/rafted_value/data.ex | arago/rafted_value | f03570f96a63495ae64c67b5f63a4dc99386ec36 | [
"MIT"
] | 54 | 2016-06-20T13:27:46.000Z | 2021-12-07T10:57:22.000Z | lib/rafted_value/data.ex | arago/rafted_value | f03570f96a63495ae64c67b5f63a4dc99386ec36 | [
"MIT"
] | 4 | 2017-10-02T23:17:37.000Z | 2019-07-11T23:47:58.000Z | lib/rafted_value/data.ex | skirino/rafted_value | 8e46d6b488ddb87f1bf6f6530d5f2b9524efdaed | [
"MIT"
] | 4 | 2017-09-05T10:48:06.000Z | 2020-01-20T01:02:27.000Z | defmodule RaftedValue.Data do
@moduledoc """
A behaviour that defines data to be replicated by `RaftedValue` servers.
It is required to implement a callback module of this behaviour to run a consensus group.
Concrete implementations of all callback functions of this behaviour must be [pure](https://en.wikipedi... | 40.955556 | 131 | 0.741725 |
4a8ab64287d0310bc7f53381e8ea65bbc3fcd4f6 | 159 | exs | Elixir | userManagementService/test/api_test_test.exs | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | 1 | 2021-05-25T18:24:27.000Z | 2021-05-25T18:24:27.000Z | userManagementService/test/api_test_test.exs | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | 1 | 2021-05-23T09:50:10.000Z | 2021-05-23T09:50:10.000Z | userManagementService/test/api_test_test.exs | andraspatka/jobportal-ms | 006c8ca212f88566113c4b5c00dfe1d4e421c034 | [
"MIT"
] | null | null | null | defmodule UserManagementTest do
use ExUnit.Case
doctest UserManagement
test "greets the world" do
assert UserManagement.hello() == :world
end
end
| 17.666667 | 43 | 0.748428 |
4a8ac0223d620393de389211bc57ffca50c85313 | 1,848 | ex | Elixir | web/controllers/player_controller.ex | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | web/controllers/player_controller.ex | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | web/controllers/player_controller.ex | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | defmodule Volition.PlayerController do
use Volition.Web, :controller
alias Volition.Player
def index(conn, _params) do
players = Repo.all(Player)
render(conn, "index.html", players: players)
end
def new(conn, _params) do
changeset = Player.changeset(%Player{})
render(conn, "new.html", chang... | 28 | 71 | 0.628788 |
4a8b0d04a95f3197c4d65b5751899ac9c1807986 | 2,645 | ex | Elixir | web/controllers/asset_controller.ex | andreihod/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 2 | 2017-07-19T17:03:41.000Z | 2017-09-18T12:58:42.000Z | web/controllers/asset_controller.ex | mateusfs/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 7 | 2017-07-18T23:32:45.000Z | 2017-08-18T01:09:11.000Z | web/controllers/asset_controller.ex | mateusfs/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 2 | 2017-08-03T19:55:21.000Z | 2018-07-01T19:54:22.000Z | defmodule Cryptofolio.AssetController do
use Cryptofolio.Web, :controller
plug Guardian.Plug.EnsureAuthenticated, handler: Cryptofolio.AuthController
alias Cryptofolio.Asset
def index(conn, _params) do
user = Guardian.Plug.current_resource(conn)
query = from a in Asset,
where: a.user_id =... | 30.755814 | 80 | 0.62155 |
4a8b1e9e37821bd4f6d5710d7953440e8018a548 | 23,280 | ex | Elixir | lib/scenic/view_port/input.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/view_port/input.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/view_port/input.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 11/05/17.
# Rewritten: 3/25/2018
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
# The main helpers and organizers for input
# resizing is temporarily not supported
defmodule Scenic.ViewPort.Input do
@moduledoc false
alias Scenic.Scene
# alias Scenic.Utilities
... | 30.3125 | 97 | 0.533076 |
4a8b42f2a638f68203c83ddacbc480a3e22fb5dc | 153 | ex | Elixir | lib/hl7/2.3.1/datatypes/wvi.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/datatypes/wvi.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/datatypes/wvi.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.DataTypes.Wvi do
@moduledoc false
use HL7.DataType,
fields: [
channel_number: nil,
channel_name: nil
]
end
| 15.3 | 37 | 0.660131 |
4a8b4444fbb99473605d57abd69a3a7beb88ee10 | 2,060 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_intent_message_table_card_row.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_intent_message_table_card_row.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_intent_message_table_card_row.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... | 32.698413 | 180 | 0.730097 |
4a8b6dedd4b5af9aac95ce613f047060bb303e5d | 675 | ex | Elixir | deps/pipe_here/lib/pipe_here/macro.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/pipe_here/lib/pipe_here/macro.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/pipe_here/lib/pipe_here/macro.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | defmodule PipeHere.Macro do
@moduledoc false
# already piped code
def piped(code = {:|>, _, _}), do: code
# non calls
def piped(code = {_, _, nil}), do: code
# local functions
def piped(code = {_, _, []}), do: code
# tuple literals
def piped(code = {:{}, _, _}), do: code
# handle struct litera... | 17.763158 | 61 | 0.554074 |
4a8b955ea9ed2c3efcc88af59b00fce5d4097306 | 62 | exs | Elixir | test/ex_ihdl_subscription_base_test.exs | Hutchison-Technologies/ex_ihdl_subscription_base | 1c8609aefd0d71e2b24805ab936c80a605b3f88e | [
"MIT"
] | null | null | null | test/ex_ihdl_subscription_base_test.exs | Hutchison-Technologies/ex_ihdl_subscription_base | 1c8609aefd0d71e2b24805ab936c80a605b3f88e | [
"MIT"
] | null | null | null | test/ex_ihdl_subscription_base_test.exs | Hutchison-Technologies/ex_ihdl_subscription_base | 1c8609aefd0d71e2b24805ab936c80a605b3f88e | [
"MIT"
] | null | null | null | defmodule ExIhdlSubscriptionBaseTest do
use ExUnit.Case
end
| 15.5 | 39 | 0.854839 |
4a8b9cc2a1c56b32599aeb98f543b652af83246e | 2,045 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/feed.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/feed.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/feed.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.326923 | 271 | 0.747677 |
4a8bba9bb55e5ea54615d424ba58b3b2f6ec88e6 | 1,643 | exs | Elixir | test/controllers/feed_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | test/controllers/feed_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | test/controllers/feed_controller_test.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | null | null | null | defmodule Changelog.FeedControllerTest do
use Changelog.ConnCase
test "the sitemap" do
post = insert(:post, published: true)
podcast = insert(:podcast)
episode = insert(:published_episode)
conn = get(build_conn, feed_path(build_conn, :sitemap))
assert conn.status == 200
assert conn.resp_bod... | 29.339286 | 69 | 0.679854 |
4a8bbb76cf90edbdc90a6a9f8181692e48b7aa51 | 7,935 | exs | Elixir | exercises/bowling/test/bowling_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | exercises/bowling/test/bowling_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | exercises/bowling/test/bowling_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | defmodule BowlingTest do
use ExUnit.Case
defp roll_reduce(game, rolls) do
Enum.reduce(rolls, game, fn roll, game -> Bowling.roll(game, roll) end)
end
test "should be able to score a game with all zeros" do
game = Bowling.start()
rolls = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
... | 35.424107 | 119 | 0.608192 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.