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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f89f932dbc4a0956d35490dd237c3dc241a788c | 4,815 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/patch_job.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/os_config/lib/google_api/os_config/v1/model/patch_job.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/os_config/lib/google_api/os_config/v1/model/patch_job.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... | 53.5 | 348 | 0.697612 |
3f8a14500fa6b631a03ad46d4db7baee645ee735 | 11,868 | exs | Elixir | lib/mix/test/mix/tasks/escript_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/mix/test/mix/tasks/escript_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/mix/test/mix/tasks/escript_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.EscriptTest do
use MixTest.Case
defmodule Escript do
def project do
[
app: :escript_test,
version: "0.0.1",
escript: [main_module: EscriptTest, name: "escript_test", embed_elixir: true]
]
end
end
... | 29.088235 | 112 | 0.633552 |
3f8a5b88fd108f092d29ee4be698ccbc9edc46ac | 955 | ex | Elixir | test/support/channel_case.ex | erickgnavar/issue_reporter | 291e96c0551a34c598f4cd2ef1c0f2ed8cbd183f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | erickgnavar/issue_reporter | 291e96c0551a34c598f4cd2ef1c0f2ed8cbd183f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | erickgnavar/issue_reporter | 291e96c0551a34c598f4cd2ef1c0f2ed8cbd183f | [
"MIT"
] | null | null | null | defmodule IssueReporter.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cann... | 23.292683 | 72 | 0.710995 |
3f8a5eb09856875249f57ff44d7d9688eadd0260 | 89 | exs | Elixir | test/redix_test.exs | alexfilatov/guardian_redis | 4db9df70cd54920dd87c79f434218b3228f1408d | [
"MIT"
] | 4 | 2021-05-14T09:57:56.000Z | 2022-03-25T13:46:19.000Z | test/redix_test.exs | alexfilatov/guardian_redis | 4db9df70cd54920dd87c79f434218b3228f1408d | [
"MIT"
] | 1 | 2021-06-24T04:44:50.000Z | 2021-06-24T07:37:20.000Z | test/redix_test.exs | alexfilatov/guardian_redis | 4db9df70cd54920dd87c79f434218b3228f1408d | [
"MIT"
] | 1 | 2022-03-28T07:35:19.000Z | 2022-03-28T07:35:19.000Z | defmodule GuardianRedis.RedixTest do
use ExUnit.Case
doctest GuardianRedis.Redix
end
| 17.8 | 36 | 0.831461 |
3f8a8476aa2b633860d391c36241d15da54ce1af | 291 | exs | Elixir | .credo.exs | tlux/belp | 70848907143e75e00479d4c0af9060820b7f4617 | [
"MIT"
] | 1 | 2020-10-12T04:06:57.000Z | 2020-10-12T04:06:57.000Z | .credo.exs | tlux/command_runner | d0a59aba7b1e1020aeeba498656036647bb76d92 | [
"MIT"
] | null | null | null | .credo.exs | tlux/command_runner | d0a59aba7b1e1020aeeba498656036647bb76d92 | [
"MIT"
] | 1 | 2020-12-14T00:10:35.000Z | 2020-12-14T00:10:35.000Z | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/"],
excluded: []
},
strict: true,
color: true,
checks: [
{Credo.Check.Refactor.MapInto, false},
{Credo.Check.Warning.LazyLogging, false}
]
}
]
}
| 16.166667 | 48 | 0.446735 |
3f8a863e5b469ec5fcd822f8cb2a89573b664f1c | 464 | exs | Elixir | test/models/card_member_test.exs | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | test/models/card_member_test.exs | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | test/models/card_member_test.exs | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | defmodule JellyBoard.CardMemberTest do
use JellyBoard.ModelCase
alias JellyBoard.CardMember
@valid_attrs %{card_id: 1, user_board_id: 1}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = CardMember.changeset(%CardMember{}, @valid_attrs)
assert changeset.valid?
end
test "... | 24.421053 | 67 | 0.747845 |
3f8a8db3e6ec13e6fed98e3ea0e8399f2410bed1 | 2,661 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/model/address.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/model/address.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/model/address.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... | 41.578125 | 234 | 0.734686 |
3f8a8db42b1055d15bfdf0a8e609a663f562be18 | 8,741 | ex | Elixir | lib/finch/telemetry.ex | sneako/finch | 3c7fdb287523265a746a4b19039584cfa7c84f5c | [
"MIT"
] | 71 | 2021-10-16T09:55:02.000Z | 2022-03-26T08:42:59.000Z | lib/finch/telemetry.ex | sneako/finch | 3c7fdb287523265a746a4b19039584cfa7c84f5c | [
"MIT"
] | 21 | 2021-10-16T07:58:51.000Z | 2022-03-28T12:27:40.000Z | lib/finch/telemetry.ex | sneako/finch | 3c7fdb287523265a746a4b19039584cfa7c84f5c | [
"MIT"
] | 20 | 2021-10-16T09:55:06.000Z | 2022-03-27T13:21:27.000Z | defmodule Finch.Telemetry do
@moduledoc """
Telemetry integration.
Unless specified, all times are in `:native` units.
Finch executes the following events:
### Request Start
`[:finch, :request, :start]` - Executed when `Finch.request/3` or `Finch.stream/5` is called.
#### Measurements
* `:system... | 28.37987 | 181 | 0.646036 |
3f8ab5ec6e3a7f44a3747f62fcc608414c151a04 | 2,788 | ex | Elixir | farmbot_os/lib/farmbot_os/sys_calls/resource_update.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | farmbot_os/lib/farmbot_os/sys_calls/resource_update.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | farmbot_os/lib/farmbot_os/sys_calls/resource_update.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotOS.SysCalls.ResourceUpdate do
@moduledoc false
require Logger
require FarmbotCore.Logger
alias FarmbotCore.{
Asset,
Asset.Private
}
alias FarmbotOS.SysCalls.SendMessage
@point_kinds ~w(Plant GenericPointer ToolSlot Weed)
@friendly_names %{
"gantry_mounted" => "`gantry mo... | 24.672566 | 80 | 0.58142 |
3f8ace01e192c6c200ace82609e07089b10e2276 | 8,630 | exs | Elixir | test/pixela_ex_test.exs | niku/pixela_ex | 7f2bbf143519927e2a906b1c2e3d721e16e115e5 | [
"CC0-1.0"
] | 2 | 2018-10-20T10:01:05.000Z | 2018-10-23T22:48:53.000Z | test/pixela_ex_test.exs | niku/pixela_ex | 7f2bbf143519927e2a906b1c2e3d721e16e115e5 | [
"CC0-1.0"
] | 5 | 2018-10-24T00:55:24.000Z | 2018-11-07T00:37:50.000Z | test/pixela_ex_test.exs | niku/pixela_ex | 7f2bbf143519927e2a906b1c2e3d721e16e115e5 | [
"CC0-1.0"
] | 1 | 2018-10-23T21:55:32.000Z | 2018-10-23T21:55:32.000Z | defmodule PixelaExTest do
use ExUnit.Case
import Mock
test_with_mock "create_user", PixelaEx.Client,
post: fn _url, _headers ->
%HTTPotion.Response{status_code: 200, body: %{"message" => "Success.", "isSuccess" => true}}
end do
PixelaEx.create_user("a-know", "thisissecret", true, true)
as... | 36.567797 | 121 | 0.600695 |
3f8ae6668fc10641877e0202c06ad0f12bffe1bb | 435 | exs | Elixir | test/request_test.exs | infinityoneframework/kadabra | 0cedd740010514977d8b0fca6583f770ca78cac1 | [
"MIT"
] | 35 | 2016-10-17T09:52:46.000Z | 2021-01-04T16:27:46.000Z | test/request_test.exs | infinityoneframework/kadabra | 0cedd740010514977d8b0fca6583f770ca78cac1 | [
"MIT"
] | 26 | 2016-12-06T17:21:41.000Z | 2021-11-26T18:49:05.000Z | test/request_test.exs | infinityoneframework/kadabra | 0cedd740010514977d8b0fca6583f770ca78cac1 | [
"MIT"
] | 13 | 2016-12-06T16:03:30.000Z | 2021-12-16T10:28:03.000Z | defmodule Kadabra.RequestTest do
use ExUnit.Case
doctest Kadabra.Request
test "processes on_response on END_STREAM" do
uri = 'https://http2.golang.org'
pid = self()
on_resp = fn _resp -> send(pid, :done) end
{:ok, pid} = Kadabra.open(uri)
Kadabra.get(pid, "/reqinfo", on_response: on_resp)
... | 21.75 | 54 | 0.641379 |
3f8af5a68607a175aeba56c466f97ada1d7171a7 | 3,686 | exs | Elixir | test/plug/builder_test.exs | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | test/plug/builder_test.exs | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | test/plug/builder_test.exs | qcam/plug | c547f2bd7a64aec7c4759dcc1ed88b6eab0c7499 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.BuilderTest do
defmodule Module do
import Plug.Conn
def init(val) do
{:init, val}
end
def call(conn, opts) do
stack = [{:call, opts} | conn.assigns[:stack]]
assign(conn, :stack, stack)
end
end
defmodule Sample do
use Plug.Builder
plug :fun
plug ... | 22.613497 | 95 | 0.622084 |
3f8b02fbfa454fc11d1edcad21a2d7a86cc46984 | 1,764 | ex | Elixir | exercism_test_helper/lib/exercism_test_helper/cli/command/combine_json.ex | neenjaw/exercism-elixir-test-runner | 5715919d90bf7989a940c0c34e9a267d550722d5 | [
"MIT"
] | null | null | null | exercism_test_helper/lib/exercism_test_helper/cli/command/combine_json.ex | neenjaw/exercism-elixir-test-runner | 5715919d90bf7989a940c0c34e9a267d550722d5 | [
"MIT"
] | null | null | null | exercism_test_helper/lib/exercism_test_helper/cli/command/combine_json.ex | neenjaw/exercism-elixir-test-runner | 5715919d90bf7989a940c0c34e9a267d550722d5 | [
"MIT"
] | null | null | null | defmodule ExercismTestHelper.CLI.Command.CombineJSON do
def run([result_json_file, metadata_json_file, log_json_file]) do
read_decode = fn filename ->
filename
|> File.read!()
|> Jason.decode!()
end
results = read_decode.(result_json_file)
metadata = read_decode.(metadata_json_file)... | 24.164384 | 83 | 0.56746 |
3f8b0582bb4821f38fd5ccba55165d1e031548a9 | 8,491 | exs | Elixir | test/functional/scanner/line_type_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/functional/scanner/line_type_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/functional/scanner/line_type_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Functional.Scanner.LineTypeTest do
use ExUnit.Case, async: true
alias Earmark.Line
id1 = ~S{[ID1]: http://example.com "The title"}
id2 = ~S{[ID2]: http://example.com 'The title'}
id3 = ~S{[ID3]: http://example.com (The title)}
id4 = ~S{[ID4]: http://example.com}
id5 = ~S{[ID5]: <http://exam... | 50.541667 | 116 | 0.484749 |
3f8b108e16087e93ce267ce1c913373815d4bac0 | 1,660 | ex | Elixir | apps/wdpa_importer/test/support/setup.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | 4 | 2016-05-08T10:17:19.000Z | 2019-06-10T15:23:20.000Z | apps/wdpa_importer/test/support/setup.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | null | null | null | apps/wdpa_importer/test/support/setup.ex | lucidstack/wdpa-tracker | da9a10d08bf5b23aff696aee33f5d6ad1089079d | [
"MIT"
] | null | null | null | defmodule WdpaImporter.Test.Setup do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async... | 25.538462 | 84 | 0.687952 |
3f8b157362e70b1f398567a4f37da1071db3a0d6 | 588 | ex | Elixir | lib/handler.ex | bryanhuntesl/poc_cowboy_ws_elixir | fac46929619407e0c67709de38a74e30c44cb7be | [
"Apache-2.0"
] | null | null | null | lib/handler.ex | bryanhuntesl/poc_cowboy_ws_elixir | fac46929619407e0c67709de38a74e30c44cb7be | [
"Apache-2.0"
] | null | null | null | lib/handler.ex | bryanhuntesl/poc_cowboy_ws_elixir | fac46929619407e0c67709de38a74e30c44cb7be | [
"Apache-2.0"
] | null | null | null | defmodule Handler do
def init(req, opts) do
{:cowboy_websocket, req, opts}
end
def websocket_init(state) do
:erlang.start_timer(1000, self(), "Hello!")
{:ok, state}
end
def websocket_handle({:text, msg}, state) do
{:reply, {:text, "That's what she said! " <> msg}, state}
end
def websock... | 21 | 61 | 0.627551 |
3f8b3ec1c241b235cbadaf93f8ead3e6db8e9ae8 | 8,648 | ex | Elixir | farmbot_os/platform/target/network.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_os/platform/target/network.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_os/platform/target/network.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Platform.Target.Network do
@moduledoc "Manages Network Connections"
use GenServer, shutdown: 10_000
require Logger
require FarmbotCore.Logger
import FarmbotOS.Platform.Target.Network.Utils
alias FarmbotOS.Platform.Target.Network.{Distribution, PreSetup}
alias FarmbotOS.Platform.Target.... | 29.718213 | 96 | 0.658996 |
3f8b59439c9afe388b6afe1b15b814e9ecbb946d | 1,115 | exs | Elixir | config/config.exs | mendrugory/barenboim | ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac | [
"MIT"
] | 3 | 2017-06-13T14:20:05.000Z | 2018-06-21T01:00:49.000Z | config/config.exs | mendrugory/barenboim | ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac | [
"MIT"
] | null | null | null | config/config.exs | mendrugory/barenboim | ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac | [
"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.967742 | 73 | 0.756054 |
3f8b714f65aaa1b99fd82382e689ea2510a83943 | 706 | exs | Elixir | test/ex_confusables_test.exs | ColaCheng/ex_tr39 | cd0fcf1bb906c6527891cb74d2dcd80e1ca0f439 | [
"MIT"
] | 2 | 2021-04-02T04:38:11.000Z | 2021-04-05T10:15:22.000Z | test/ex_confusables_test.exs | ColaCheng/ex_tr39 | cd0fcf1bb906c6527891cb74d2dcd80e1ca0f439 | [
"MIT"
] | null | null | null | test/ex_confusables_test.exs | ColaCheng/ex_tr39 | cd0fcf1bb906c6527891cb74d2dcd80e1ca0f439 | [
"MIT"
] | null | null | null | defmodule ExConfusablesTest do
use ExUnit.Case
doctest ExConfusables
alias ExConfusables.Data
test "base confusable test" do
latin = "scope"
cyrillic = "ѕсоре"
assert latin != cyrillic
assert :unicode.characters_to_nfd_list(latin) != :unicode.characters_to_nfd_list(cyrillic)
assert ExConfu... | 25.214286 | 94 | 0.634561 |
3f8b71586ec3f9ef7285448a5a89b60b2f0405ee | 247 | ex | Elixir | lib/chores.ex | ventuno/elixir-fundamentals | eda1388f9815f8f9238b236edea9ca55447e3d27 | [
"BSD-3-Clause"
] | 14 | 2018-04-18T12:58:54.000Z | 2020-09-14T16:40:07.000Z | lib/chores.ex | ventuno/elixir-fundamentals | eda1388f9815f8f9238b236edea9ca55447e3d27 | [
"BSD-3-Clause"
] | 6 | 2018-02-27T18:25:57.000Z | 2021-10-19T02:40:08.000Z | lib/chores.ex | ventuno/elixir-fundamentals | eda1388f9815f8f9238b236edea9ca55447e3d27 | [
"BSD-3-Clause"
] | 5 | 2018-02-28T16:10:53.000Z | 2019-04-18T11:18:05.000Z | defmodule Chores do
def start, do: exit(:explode)
def run do
Process.flag(:trap_exit, true)
pid = spawn_link(Chores, :start, [])
receive do
{:EXIT, pid, reason} ->
IO.puts "Exited because: #{reason}"
end
end
end | 22.454545 | 43 | 0.607287 |
3f8bafd8bb74ce0760fbe2cf3a86b84854458be0 | 4,639 | ex | Elixir | lib/changelog_web/helpers/admin_helpers.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | null | null | null | lib/changelog_web/helpers/admin_helpers.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | null | null | null | lib/changelog_web/helpers/admin_helpers.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Helpers.AdminHelpers do
use Phoenix.HTML
alias Changelog.Repo
alias ChangelogWeb.TimeView
alias ChangelogWeb.Helpers.SharedHelpers
def error_class(form, field), do: if(form.errors[field], do: "error", else: "")
def hidden_class(condition), do: if(condition, do: "hidden", else: "")
... | 26.66092 | 114 | 0.618668 |
3f8bbace86e0999798a34f68a6005440c8ed70ce | 61 | ex | Elixir | backend/lib/spades_web/views/layout_view.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/lib/spades_web/views/layout_view.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/lib/spades_web/views/layout_view.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesWeb.LayoutView do
use SpadesWeb, :view
end
| 15.25 | 33 | 0.803279 |
3f8bcf684267e17caaa37902bb79ca9386f48a9e | 3,664 | exs | Elixir | test/mix/tasks/phx.new_test.exs | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | 2 | 2020-07-24T08:34:36.000Z | 2021-02-08T03:21:49.000Z | test/mix/tasks/phx.new_test.exs | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | null | null | null | test/mix/tasks/phx.new_test.exs | tgxworld/phoenix | 89b885591431170de73e372d9544d841bedca3db | [
"MIT"
] | null | null | null | for pattern <- ["../../../installer/lib/phx_new/project.ex",
"../../../installer/lib/phx_new/generator.ex",
"../../../installer/lib/phx_new/single.ex",
"../../../installer/lib/phx_new/ecto.ex",
"../../../installer/lib/mix/tasks/phx.new.ex",
... | 35.572816 | 88 | 0.606441 |
3f8bfc7fd076661383cd1afdbcc49d748425fc64 | 1,848 | ex | Elixir | lib/wechat/plugs/message_parser.ex | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | lib/wechat/plugs/message_parser.ex | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | lib/wechat/plugs/message_parser.ex | onionch/wechat_elixir | 949ac241dbe40036e88b0438f85395bda87f3784 | [
"MIT"
] | null | null | null | defmodule Wechat.Plugs.MessageParser do
@moduledoc false
defmodule ParseError do
defexception [:message]
end
import Plug.Conn
import SweetXml
import Wechat.Config, only: [token: 0, appid: 0, encoding_aes_key: 0]
alias Wechat.Utils.MessageEncryptor
alias Wechat.Utils.SignatureVerifier
def init(... | 23.392405 | 75 | 0.626082 |
3f8c0d273821be0449a505e0a29723a822628a39 | 2,061 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_units.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_units.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/ad_units.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... | 36.803571 | 200 | 0.706453 |
3f8c4db9081d5f0bbdc0e2a6fbbd7d94bfccc5ec | 1,422 | ex | Elixir | lib/cloak/fields/string_list.ex | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | lib/cloak/fields/string_list.ex | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | lib/cloak/fields/string_list.ex | tizpuppi/cloak | cdeae97c69f7c54aeadf0921db30dc411d7a9938 | [
"MIT"
] | null | null | null | defmodule Cloak.Fields.StringList do
@moduledoc """
An `Ecto.Type` to encrypt a list of strings.
## Configuration
You can customize the json library used for for converting lists.
config :my_app, MyApp.Vault,
json_library: Jason
## Migration
The database field must be of type `:binary`.
... | 23.7 | 78 | 0.670886 |
3f8c690bb7f482fdb79fffc67bdac41709a91097 | 7,100 | ex | Elixir | lib/stream_data_utils.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/stream_data_utils.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/stream_data_utils.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | defmodule StreamDataUtils do
@moduledoc false
use Boundary, deps: [StreamData], exports: []
import StreamData
import Kernel, except: [struct: 2]
@typedoc """
"""
@type t(a) :: StreamData.t(a)
@typedoc """
"""
@type t :: t(term)
@typedoc """
"""
@type list_opt ::
{:min_length, non... | 24.067797 | 108 | 0.559577 |
3f8c7fd9f103f709e16de2fbb8e9dafde8f23714 | 1,597 | exs | Elixir | roman-numerals/test/roman_numerals_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | roman-numerals/test/roman_numerals_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | roman-numerals/test/roman_numerals_test.exs | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | defmodule RomanNumeralsTest do
use ExUnit.Case
# @tag :pending
test "1" do
assert RomanNumerals.numeral(1) == "I"
end
# @tag :pending
test "2" do
assert RomanNumerals.numeral(2) == "II"
end
# @tag :pending
test "3" do
assert RomanNumerals.numeral(3) == "III"
end
# @tag :pending
test... | 16.989362 | 49 | 0.621791 |
3f8c93d16a1708a522df16e8eddc583e9793b4de | 2,521 | ex | Elixir | lib/que.ex | inhji/que | 4c7abbbfecb7b90aaa291151e8962d1a0fe69bde | [
"MIT"
] | 645 | 2017-01-07T21:34:26.000Z | 2022-03-16T06:58:04.000Z | lib/que.ex | inhji/que | 4c7abbbfecb7b90aaa291151e8962d1a0fe69bde | [
"MIT"
] | 19 | 2017-05-03T14:48:14.000Z | 2021-05-30T19:33:05.000Z | lib/que.ex | inhji/que | 4c7abbbfecb7b90aaa291151e8962d1a0fe69bde | [
"MIT"
] | 33 | 2017-05-01T20:04:32.000Z | 2021-05-27T09:48:13.000Z | defmodule Que do
use Application
@moduledoc """
`Que` is a simple background job processing library backed by `Mnesia`.
Que doesn't depend on any external services like Redis for persisting job
state, instead uses the built-in erlang application
[`mnesia`](http://erlang.org/doc/man/mnesia.html). This make... | 21.364407 | 99 | 0.667592 |
3f8c9a266dbccf6d2349647d348db0371974f481 | 2,311 | exs | Elixir | implementations/elixir/ockam/ockam/test/ockam/message_test.exs | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | 1 | 2021-08-25T03:33:52.000Z | 2021-08-25T03:33:52.000Z | implementations/elixir/ockam/ockam/test/ockam/message_test.exs | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | 110 | 2021-08-06T17:16:52.000Z | 2022-03-28T17:20:54.000Z | implementations/elixir/ockam/ockam/test/ockam/message_test.exs | jjscheel/ockam | 04088346c5c11c0f2969422288ffd95404d9b00a | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Message.Tests do
use ExUnit.Case, async: true
doctest Ockam.Message
alias Ockam.Message
describe "Ockam.Router.Message.Any" do
test "onward_route/1 is empty by default" do
assert [] === Message.onward_route(:test)
assert [] === Message.onward_route(100)
assert [] === Messa... | 30.813333 | 84 | 0.57897 |
3f8caf86acd36d29eac717b23ab371a28aa70040 | 2,359 | exs | Elixir | priv/repo/migrations/20200218125233_payout_raw_test_data.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20200218125233_payout_raw_test_data.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20200218125233_payout_raw_test_data.exs | rbkmoney/pathfinder | fdb3102f524b6f58cba579389047b425fdbd4c92 | [
"Apache-2.0"
] | 1 | 2021-12-07T09:25:32.000Z | 2021-12-07T09:25:32.000Z | defmodule NewWay.Repo.Migrations.PayoutRawTestData do
use Ecto.Migration
def up do
execute """
INSERT INTO nw.payout (
id,
payout_id,
event_created_at,
sequence_id,
created_at,
party_id,
shop_id,
status,
payout_tool_id,
amoun... | 19.991525 | 53 | 0.482408 |
3f8cf0beb90ada8f5195ae5ef1daa94e01d77946 | 440 | ex | Elixir | test/support/mocks.ex | devoutsalsa/currency_converter_api-elixir | 41fddab3820b1662578112a93604d5009ec17c68 | [
"Apache-2.0"
] | null | null | null | test/support/mocks.ex | devoutsalsa/currency_converter_api-elixir | 41fddab3820b1662578112a93604d5009ec17c68 | [
"Apache-2.0"
] | null | null | null | test/support/mocks.ex | devoutsalsa/currency_converter_api-elixir | 41fddab3820b1662578112a93604d5009ec17c68 | [
"Apache-2.0"
] | null | null | null | defmodule CurrencyConverter.HTTPoisonMock do
def get!(_uri) do
if Application.get_env(:currency_converter, :api_key) do
%HTTPoison.Response{body: "{\"USD_JPY\":108.78504}", status_code: 200}
else
%HTTPoison.Response{
body:
"{\"status\":400,\"error\":\"Free API Key is required. Ob... | 31.428571 | 135 | 0.65 |
3f8d2548ea24847de2ccdf065ef01e349774c803 | 3,468 | exs | Elixir | test/components/form/email_input_test.exs | capitalist/surface | f1c75f92513b607c98ba578030a647e0f5d6d11c | [
"MIT"
] | null | null | null | test/components/form/email_input_test.exs | capitalist/surface | f1c75f92513b607c98ba578030a647e0f5d6d11c | [
"MIT"
] | null | null | null | test/components/form/email_input_test.exs | capitalist/surface | f1c75f92513b607c98ba578030a647e0f5d6d11c | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.EmailInputTest do
use ExUnit.Case, async: true
import ComponentTestHelper
alias Surface.Components.Form.EmailInput, warn: false
test "empty input" do
code = """
<EmailInput form="user" field="email" />
"""
assert render_live(code) =~ """
<input id=... | 28.9 | 120 | 0.613322 |
3f8d279d373b75874043abd4a1bc7327e71ab74d | 571 | ex | Elixir | lib/balalaika_bear/request/params.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 5 | 2018-04-30T09:48:17.000Z | 2020-05-01T10:20:15.000Z | lib/balalaika_bear/request/params.ex | BalalaikaIndustries/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 7 | 2018-04-28T06:39:10.000Z | 2018-04-28T07:31:59.000Z | lib/balalaika_bear/request/params.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 2 | 2018-04-27T19:42:04.000Z | 2020-05-01T10:20:02.000Z | defmodule BalalaikaBear.Request.Params do
@moduledoc false
def url_params(params, default_params \\ %{}) do
params
|> Map.merge(default_params)
|> Enum.reduce([], fn {key, value}, accum ->
["#{key}=#{encode_params(value)}" | accum]
end)
|> Enum.join("&")
end
defp encode_params(values... | 21.148148 | 52 | 0.618214 |
3f8d2e8202eafd0a29479cd857989d5f65ce4067 | 712 | ex | Elixir | lib/hexpm_web/views/dashboard/email_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | lib/hexpm_web/views/dashboard/email_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | lib/hexpm_web/views/dashboard/email_view.ex | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.Dashboard.EmailView do
use HexpmWeb, :view
alias HexpmWeb.DashboardView
def public_email_options(user) do
emails =
user.emails
|> Email.order_emails()
|> Enum.filter(& &1.verified)
|> Enum.map(&{&1.email, &1.email})
[{"Don't show a public email address", "none"... | 22.25 | 61 | 0.625 |
3f8d67a7709dd4a2cdab914ea448cff44731a766 | 1,436 | exs | Elixir | config/dev.exs | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | config/dev.exs | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | config/dev.exs | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | 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 :jelly_board, JellyBoard.Endpoint,
http: [port... | 29.306122 | 80 | 0.732591 |
3f8d6d94aa308e55fcef157affba4724e433ae19 | 829 | ex | Elixir | lib/absinthe/subscription/supervisor.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2020-08-12T12:34:40.000Z | 2020-08-12T12:34:40.000Z | lib/absinthe/subscription/supervisor.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 2 | 2019-03-07T00:26:03.000Z | 2019-08-19T17:30:30.000Z | lib/absinthe/subscription/supervisor.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2019-01-18T20:49:03.000Z | 2019-01-18T20:49:03.000Z | defmodule Absinthe.Subscription.Supervisor do
@moduledoc false
use Supervisor
def start_link(pubsub, pool_size \\ System.schedulers_online() * 2) do
pubsub =
case pubsub do
[module] when is_atom(module) ->
module
module ->
module
end
Supervisor.start_lin... | 22.405405 | 81 | 0.635706 |
3f8d6daa054ace302932b487f4d9f5b49be201e3 | 297 | exs | Elixir | year_2021/test/day_09_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2021/test/day_09_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2021/test/day_09_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day09Test do
use ExUnit.Case, async: true
test "it sums the risk levels of the low points on the map" do
assert Day09.part_one(InputTestFile) == 15
end
test "it multiplies the sizes of the three largest basins" do
assert Day09.part_two(InputTestFile) == 1134
end
end
| 24.75 | 64 | 0.73064 |
3f8d93a3658a5d7a5733111b644f68294ac15e66 | 1,741 | exs | Elixir | mix.exs | soarpatriot/cloud | 07b19fc9c02da59b3eb3a75c42e61965ad2128cb | [
"MIT"
] | null | null | null | mix.exs | soarpatriot/cloud | 07b19fc9c02da59b3eb3a75c42e61965ad2128cb | [
"MIT"
] | null | null | null | mix.exs | soarpatriot/cloud | 07b19fc9c02da59b3eb3a75c42e61965ad2128cb | [
"MIT"
] | null | null | null | defmodule Cloud.Mixfile do
use Mix.Project
def project do
[app: :cloud,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: a... | 30.017241 | 89 | 0.597358 |
3f8d97026435242631ef0d1dd7580d267b6702fe | 5,293 | ex | Elixir | lib/grakn/transaction.ex | taxfix/grakn-elixir | 23d094bad69cfbd1c021cf782fd8aff1bff38140 | [
"MIT"
] | 16 | 2018-10-10T09:29:19.000Z | 2021-07-17T03:37:03.000Z | lib/grakn/transaction.ex | taxfix/grakn-elixir | 23d094bad69cfbd1c021cf782fd8aff1bff38140 | [
"MIT"
] | 8 | 2019-01-12T19:35:17.000Z | 2020-02-20T16:02:52.000Z | lib/grakn/transaction.ex | taxfix/grakn-elixir | 23d094bad69cfbd1c021cf782fd8aff1bff38140 | [
"MIT"
] | 6 | 2018-12-11T08:12:10.000Z | 2020-04-27T02:52:53.000Z | defmodule Grakn.Transaction do
@moduledoc false
alias Grakn.Transaction.{Request, Type}
require Logger
defstruct [:name, :username, :password, :keyspace, :type, :conn_opts, :opts]
@type request() :: %__MODULE__{
name: atom(),
username: String.t(),
password: String.t(),
... | 28.304813 | 87 | 0.624976 |
3f8d9f43e603ec0bed01863e8ecb1b18077a54f7 | 2,261 | ex | Elixir | lib/bitcoin/script/minimaldata.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | lib/bitcoin/script/minimaldata.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/script/minimaldata.ex | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Script.Minimaldata do
@moduledoc """
Validations for scripts with MINIMALDATA flag enabled
https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#push-operators
"""
defmacro __using__(_opts) do
quote do
# Numbers must use the shortest encoding possible.
# To enforce... | 41.109091 | 168 | 0.632464 |
3f8dafeaaf5526df28302155980d59c0ac75129c | 1,123 | ex | Elixir | lib/temple/engine.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 366 | 2019-07-12T22:43:35.000Z | 2022-03-31T07:26:25.000Z | lib/temple/engine.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 114 | 2019-07-12T19:49:10.000Z | 2022-03-23T10:48:48.000Z | lib/temple/engine.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 17 | 2019-07-23T15:16:34.000Z | 2021-02-25T02:42:02.000Z | defmodule Temple.Engine do
@behaviour Phoenix.Template.Engine
@moduledoc """
The Temple HTML engine makes it possible to use Temple with Phoenix controllers.
To get started, you will configure Phoenix to use this module for `.exs` files.
```elixir
# config.exs
config :phoenix, :template_engines,
# ... | 24.955556 | 122 | 0.643811 |
3f8deeaa986a679e25f738ca59989093c51e1959 | 2,441 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/scaling_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/scaling_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/game_services/lib/google_api/game_services/v1/model/scaling_config.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... | 43.589286 | 309 | 0.732487 |
3f8e046e1a04f7438b333e7c066a7a301c896a6e | 1,881 | exs | Elixir | clients/you_tube/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/mix.exs | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 28.074627 | 152 | 0.656034 |
3f8e0d0d7dc93a3a76316aafebd5f400ebb253bd | 1,722 | exs | Elixir | mix.exs | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | mix.exs | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | mix.exs | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | defmodule Twivia.MixProject do
use Mix.Project
def project do
[
app: :twivia,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: de... | 26.492308 | 84 | 0.575494 |
3f8e48db06a6a25c5fa83d1686c6407d327676bd | 3,177 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/endpoint.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/endpoint.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_management/lib/google_api/service_management/v1/model/endpoint.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... | 56.732143 | 642 | 0.742839 |
3f8e76862639a3cbea9e44e5934e0b9a16588205 | 17,899 | exs | Elixir | test/credo/code/heredocs_test.exs | Carioca/credo | 80b9a2efdb872157317de4b126e54441f3551f18 | [
"MIT"
] | 1 | 2021-12-01T13:37:43.000Z | 2021-12-01T13:37:43.000Z | test/credo/code/heredocs_test.exs | Carioca/credo | 80b9a2efdb872157317de4b126e54441f3551f18 | [
"MIT"
] | null | null | null | test/credo/code/heredocs_test.exs | Carioca/credo | 80b9a2efdb872157317de4b126e54441f3551f18 | [
"MIT"
] | null | null | null | defmodule Credo.Code.HeredocsTest do
use Credo.Test.Case
alias Credo.Code.Heredocs
test "it should return the source without string literals 2" do
source = """
@moduledoc \"\"\"
this is an example # TODO: and this is no actual comment
\"\"\"
x = ~s{also: # TODO: no comment here}
?" # TO... | 25.606581 | 110 | 0.533326 |
3f8ee5d08dff4073cb4ba0f876ecd248d4005b1d | 4,222 | ex | Elixir | lib/link_preview/parsers/html.ex | mindvalley/link_preview | 834cdda151cbb5a68b707d9fc937f2f4b7032ccc | [
"Apache-2.0"
] | 15 | 2017-01-31T14:18:27.000Z | 2021-05-24T18:25:01.000Z | lib/link_preview/parsers/html.ex | mindvalley/link_preview | 834cdda151cbb5a68b707d9fc937f2f4b7032ccc | [
"Apache-2.0"
] | 10 | 2016-09-18T23:55:28.000Z | 2016-09-30T06:35:10.000Z | lib/link_preview/parsers/html.ex | mindvalley/link_preview | 834cdda151cbb5a68b707d9fc937f2f4b7032ccc | [
"Apache-2.0"
] | 11 | 2018-02-20T04:36:41.000Z | 2022-03-02T13:16:54.000Z | defmodule LinkPreview.Parsers.Html do
@moduledoc """
Parser implementation based on html tags.
"""
alias LinkPreview.{Page, ParallelHelper, Requests}
use LinkPreview.Parsers.Basic
@doc """
Get page title based on first encountered title tag.
Config options:
* `:friendly_strings`\n
see... | 26.223602 | 98 | 0.625059 |
3f8eee7028b901e2537237561d02d698a30d24df | 13,079 | ex | Elixir | lib/mix/lib/mix/tasks/release.init.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.init.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.init.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Release.Init do
use Mix.Task
@shortdoc "Generates sample files for releases"
@moduledoc """
Generates sample files for releases.
mix release.init
* creating rel/vm.args.eex
* creating rel/env.sh.eex
* creating rel/env.bat.eex
"""
import Mix.Generator
@swit... | 33.027778 | 191 | 0.60968 |
3f8eff00e2563f609b9f151c4389dff962f5615c | 1,770 | ex | Elixir | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/place_info.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/place_info.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/place_info.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... | 35.4 | 190 | 0.732203 |
3f8f003435080ba9fc24e63c7679815311a21e5d | 1,559 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/nesting_level.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/nesting_level.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/slides/lib/google_api/slides/v1/model/nesting_level.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... | 33.170213 | 137 | 0.742142 |
3f8f52b6d801c3cd16e80157aff54b030a270e7b | 568 | ex | Elixir | lib/internal_server.ex | ColaCheng/line_bot | c30e00e2c3b5dce74cd562c8920b200d0f77413b | [
"MIT"
] | null | null | null | lib/internal_server.ex | ColaCheng/line_bot | c30e00e2c3b5dce74cd562c8920b200d0f77413b | [
"MIT"
] | null | null | null | lib/internal_server.ex | ColaCheng/line_bot | c30e00e2c3b5dce74cd562c8920b200d0f77413b | [
"MIT"
] | null | null | null | defmodule LineBot.InternalServer do
use GenServer
def start_link() do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
@impl true
def init(_) do
dispatch =
:cowboy_router.compile([
{
:_,
[
{"/", LineBot.Handler.Health, []}
]
}... | 22.72 | 94 | 0.598592 |
3f8f603412f4815b6dc7f2a3bc0e8ffa2205bc1b | 1,127 | exs | Elixir | test/credo/check/consistency/space_in_parentheses/without_space_test.exs | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | test/credo/check/consistency/space_in_parentheses/without_space_test.exs | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | test/credo/check/consistency/space_in_parentheses/without_space_test.exs | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Consistency.SpaceInParentheses.WithoutSpaceTest do
use Credo.TestHelper
alias Credo.Check.Consistency.SpaceInParentheses.WithoutSpace
@with_spaces """
defmodule Credo.Sample2 do
defmodule InlineModule do
def foobar do
{ :ok } = File.read( filename )
end
end
end
"""
@wit... | 20.87037 | 72 | 0.64685 |
3f8f82b0366498e5cd9cf3f2f06c3ca24842422f | 637 | ex | Elixir | lib/ex_image_info/types/png.ex | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 62 | 2018-01-10T05:23:14.000Z | 2022-03-30T22:26:17.000Z | lib/ex_image_info/types/png.ex | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 2 | 2018-05-20T16:09:34.000Z | 2018-11-26T21:46:08.000Z | lib/ex_image_info/types/png.ex | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 3 | 2017-11-04T13:22:05.000Z | 2018-11-16T18:31:03.000Z | defmodule ExImageInfo.Types.PNG do
@moduledoc false
@behaviour ExImageInfo.Detector
@mime "image/png"
@ftype "PNG"
@signature <<"PNG\r\n", 0x1A, "\n">>
@signature_ihdr <<"IHDR">>
## Public API
def seems?(<< _::bytes-size(1), @signature, _rest::binary >>), do: true
def seems?(_), do: false
def... | 25.48 | 162 | 0.623234 |
3f8f895ae552f8331fe5d1f3d1a372d4a375be0a | 1,303 | ex | Elixir | lib/gps_web/live/map_live/show.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | 1 | 2021-03-28T08:22:40.000Z | 2021-03-28T08:22:40.000Z | lib/gps_web/live/map_live/show.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | null | null | null | lib/gps_web/live/map_live/show.ex | JesseHerrick/phoenix_liveview_gps | 711b0cd3eb7277e12be3bac26aa950914c4cf8e7 | [
"MIT"
] | 1 | 2021-01-15T12:40:12.000Z | 2021-01-15T12:40:12.000Z | defmodule GpsWeb.MapLive.Show do
use GpsWeb, :live_view
alias Phoenix.Socket.Broadcast
@impl true
def render(assigns) do
~L"""
<%= @id %>
<div phx-hook="Map" id="map" phx-update="ignore">
</div>
<p><%= @timestamp %>: <%= @longitude %>, <%= @latitude %></p>
"""
end
@impl true
de... | 27.145833 | 151 | 0.600153 |
3f8f8e03157c7e56fe633e43baefef70b473f083 | 763 | ex | Elixir | lib/teiserver/telemetry/tasks/graph_day_logs.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/teiserver/telemetry/tasks/graph_day_logs.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver/telemetry/tasks/graph_day_logs.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Teiserver.Telemetry.GraphDayLogsTask do
@spec perform(list, map(), function()) :: list()
def perform(logs, %{"field_list" => field_list} = _params, mapper_function) do
field_list
|> Enum.map(fn
{name, path} ->
[name | build_line(logs, path, mapper_function)]
field_name ->
name ... | 26.310345 | 80 | 0.629096 |
3f8fe3c81ce05b028b5950662140fa45d9df7875 | 171 | ex | Elixir | lib/cep_viacep.ex | jeantux/xcep | 30cfb4702dcdf05c21cb79abd6c2e3797472e06f | [
"MIT"
] | 2 | 2021-08-15T15:58:01.000Z | 2021-08-15T16:37:23.000Z | lib/cep_viacep.ex | jeantux/xcep | 30cfb4702dcdf05c21cb79abd6c2e3797472e06f | [
"MIT"
] | null | null | null | lib/cep_viacep.ex | jeantux/xcep | 30cfb4702dcdf05c21cb79abd6c2e3797472e06f | [
"MIT"
] | null | null | null | defmodule Cep_viacep do
def cep(cep_number) do
json_city = HTTPoison.get!("https://viacep.com.br/ws/#{cep_number}/json/")
{:ok, json_city}
end
end
| 24.428571 | 82 | 0.637427 |
3f8fe7401924e9271b98fab4c1adfa2732a8cf6b | 616 | ex | Elixir | lib/ex_queue_bus_client/serializable_actions/tuple.ex | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | 3 | 2019-08-03T14:01:07.000Z | 2020-08-28T14:33:43.000Z | lib/ex_queue_bus_client/serializable_actions/tuple.ex | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | 10 | 2019-05-07T19:30:14.000Z | 2020-03-04T19:24:14.000Z | lib/ex_queue_bus_client/serializable_actions/tuple.ex | lets-talk/ex-queue-bus-client | 64de7faa0d6d3f88df6fa185d7a664404b90cab5 | [
"MIT"
] | null | null | null | defimpl ExQueueBusClient.SerializableAction, for: Tuple do
def serialize({name, provider, payload = %{}}) do
{
Poison.encode!(payload),
[
%{name: "event", data_type: :string, value: name},
%{name: "provider", data_type: :string, value: provider}
]
}
end
def serialize({na... | 26.782609 | 65 | 0.571429 |
3f902402b3dfa8a581ec5484259978720793aa65 | 637 | ex | Elixir | lib/ex_jagaimo_blog/blogs/blog.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:19:06.000Z | 2021-06-19T04:19:06.000Z | lib/ex_jagaimo_blog/blogs/blog.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:21:52.000Z | 2021-06-19T04:21:52.000Z | lib/ex_jagaimo_blog/blogs/blog.ex | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | null | null | null | defmodule ExJagaimoBlog.Blogs.Blog do
@moduledoc """
Supports management and configuration of blogs.
"""
use Ecto.Schema
@timestamps_opts [type: :utc_datetime]
import Ecto.Changeset
alias ExJagaimoBlog.Blogs.Post
schema "blogs" do
field :name, :string
field :subheading, :string
field :... | 20.548387 | 51 | 0.682889 |
3f90571d94c32a7ae96c11a6265b8a9013ef00e2 | 13,318 | ex | Elixir | lib/asteroid/oauth2.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 36 | 2019-07-23T20:01:05.000Z | 2021-08-05T00:52:34.000Z | lib/asteroid/oauth2.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 19 | 2019-08-23T19:04:50.000Z | 2021-05-07T22:12:25.000Z | lib/asteroid/oauth2.ex | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 3 | 2019-09-06T10:47:20.000Z | 2020-09-09T03:43:31.000Z | defmodule Asteroid.OAuth2 do
@moduledoc """
Types and helper functions for OAuth2
"""
import Asteroid.Utils
defmodule UnsupportedGrantTypeError do
@moduledoc """
Error returned when the grant type is unsupported or unknown
"""
defexception [:grant_type]
@type t :: %__MODULE__{
... | 26.062622 | 92 | 0.628323 |
3f908f060a68f3da662abd164ccbf2da27d263e5 | 17,113 | exs | Elixir | test/prepay_and_use/accounts_test.exs | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | test/prepay_and_use/accounts_test.exs | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | test/prepay_and_use/accounts_test.exs | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | defmodule PrepayAndUse.AccountsTest do
use PrepayAndUse.DataCase
alias PrepayAndUse.Accounts
import PrepayAndUse.AccountsFixtures
alias PrepayAndUse.Accounts.{User, UserToken}
describe "get_user_by_email/1" do
test "does not return the user if the email does not exist" do
refute Accounts.get_user_... | 33.687008 | 97 | 0.659732 |
3f909553d981aaf0b3f197394465a8b8847e6af6 | 147 | ex | Elixir | lib/binance_ex/aggregate_trade.ex | Jonsey/BinanceEx | cf41f06f649d4d347ef17c7ae6b3bd8f50c224ca | [
"MIT"
] | null | null | null | lib/binance_ex/aggregate_trade.ex | Jonsey/BinanceEx | cf41f06f649d4d347ef17c7ae6b3bd8f50c224ca | [
"MIT"
] | null | null | null | lib/binance_ex/aggregate_trade.ex | Jonsey/BinanceEx | cf41f06f649d4d347ef17c7ae6b3bd8f50c224ca | [
"MIT"
] | null | null | null |
defmodule BinanceEx.AggregateTrade do
@doc """
Aggregate trade.
"""
defstruct [:a, :p, :q, :f, :l, :T, :m, :M]
use ExConstructor
end
| 12.25 | 44 | 0.591837 |
3f90d00ff08a2267d3d291481bfae6299b3a4177 | 906 | exs | Elixir | config/test.exs | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | config/test.exs | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | config/test.exs | helium/console | c6912b521926455ee0d4172dbd8e8183bdbae186 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :console, ConsoleWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :console, Console.Re... | 25.166667 | 88 | 0.758278 |
3f9109f175609970d0599a7ab2c588f2c5f7320e | 1,030 | exs | Elixir | config/dev.exs | vraravam/elixir-boilerplate | cf50130b9d0cecbbd16e0be2fa8ff1ee71de8483 | [
"BSD-3-Clause"
] | 1 | 2019-03-30T11:40:58.000Z | 2019-03-30T11:40:58.000Z | config/dev.exs | vraravam/elixir-boilerplate | cf50130b9d0cecbbd16e0be2fa8ff1ee71de8483 | [
"BSD-3-Clause"
] | null | null | null | config/dev.exs | vraravam/elixir-boilerplate | cf50130b9d0cecbbd16e0be2fa8ff1ee71de8483 | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# 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 :elixir_boilerplate, ElixirBoilerplateWeb.Endpoint,
code_reloader: true,
check_origin: false,
watchers: [
npm: [
"run... | 30.294118 | 68 | 0.702913 |
3f910f2bf28ca44b76d543960e4e72fcfac1bc93 | 2,155 | exs | Elixir | config/dev.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 86 | 2017-09-22T08:08:23.000Z | 2021-05-28T19:51:17.000Z | config/dev.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 24 | 2017-09-23T08:23:36.000Z | 2021-09-20T14:36:06.000Z | config/dev.exs | duksis/elixir_jobs | e4715cdb6ad2e5a067396358c576992b1e0212e3 | [
"MIT"
] | 21 | 2017-09-23T18:50:23.000Z | 2019-10-15T19:41:44.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :elixir_jobs, ElixirJobsWeb.Endpoint,
http: [p... | 33.153846 | 170 | 0.727146 |
3f911f6b7d8ac2b002bb9403141ac6ca5a98c955 | 259 | exs | Elixir | config/test.exs | CCL77/trackme | af3e2dbfb3cbf92e96c0bdc8f2f6a19595d92140 | [
"MIT"
] | 3 | 2017-06-14T15:27:29.000Z | 2017-09-13T12:54:30.000Z | config/test.exs | joshnuss/xuber | a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff | [
"MIT"
] | null | null | null | config/test.exs | joshnuss/xuber | a5fb61e4ddac87dbb8c140edb8d1550f5c2b1cff | [
"MIT"
] | 2 | 2019-07-22T04:04:38.000Z | 2020-08-15T14:50:18.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :xuber, XUber.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 23.545455 | 56 | 0.72973 |
3f913a9a4e07df1b7e5b68ba73da87bdb1525156 | 156 | exs | Elixir | test/utils/string_test.exs | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 442 | 2015-06-22T00:24:07.000Z | 2021-12-07T21:09:38.000Z | test/utils/string_test.exs | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 202 | 2015-06-21T18:09:54.000Z | 2021-12-13T15:11:02.000Z | test/utils/string_test.exs | snewcomer/jsonapi | 3ed41d5c133fce5554b75a983daeb20e4f471c95 | [
"MIT"
] | 86 | 2015-06-22T16:04:25.000Z | 2021-07-25T08:39:03.000Z | defmodule JSONAPI.Utils.StringTest do
@moduledoc false
use ExUnit.Case, async: true
import JSONAPI.Utils.String
doctest JSONAPI.Utils.String
end
| 15.6 | 37 | 0.775641 |
3f914a5c3c3480b55b17d431b985104c48169613 | 1,057 | ex | Elixir | apps/nightcrawler/lib/nightcrawler/marvel/entity.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler/lib/nightcrawler/marvel/entity.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | apps/nightcrawler/lib/nightcrawler/marvel/entity.ex | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | defmodule Nightcrawler.Marvel.Entity do
@moduledoc """
All of the API entities should be contain the `api_to_changeset/1` function,
this is enforcing that
"""
@doc """
`transform` is a map that contains functions to run against the schema being
returned by the api to transform it into schema compatible w... | 27.102564 | 78 | 0.619678 |
3f91696440e08bdf13d61e299c273f5751aa59d0 | 699 | ex | Elixir | lib/siwapp/query.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp/query.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | lib/siwapp/query.ex | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | null | null | null | defmodule Siwapp.Query do
@moduledoc """
Generic Querys
"""
import Ecto.Query
@spec by(Ecto.Queryable.t(), atom, any) :: Ecto.Query.t()
def by(query, field, value), do: where(query, ^[{field, value}])
@spec list_preload(Ecto.Queryable.t(), atom | [atom]) :: Ecto.Query.t()
def list_preload(query, term)... | 27.96 | 76 | 0.666667 |
3f91841fdecf6a8f8484fd8dd1703e2e80c98dd9 | 1,241 | ex | Elixir | lib/quark/sequence.ex | doma-engineering/quark | 16af5e00f9048053678cbaf6fb770969446e0d1e | [
"MIT"
] | 80 | 2019-06-07T00:02:56.000Z | 2022-03-14T19:33:27.000Z | lib/quark/sequence.ex | doma-engineering/quark | 16af5e00f9048053678cbaf6fb770969446e0d1e | [
"MIT"
] | 11 | 2019-07-08T09:56:54.000Z | 2021-11-29T09:57:16.000Z | lib/quark/sequence.ex | doma-engineering/quark | 16af5e00f9048053678cbaf6fb770969446e0d1e | [
"MIT"
] | 7 | 2019-09-18T14:56:57.000Z | 2021-05-25T17:16:43.000Z | defprotocol Quark.Sequence do
@moduledoc "A protocol for stepping through ordered enumerables"
@doc ~S"""
The beginning of the sequence.
For instance, integers are generally thought of as centering around 0.
## Examples
origin(9)
#=> 0
"""
@spec origin(any) :: any
def origin(specimen)
... | 14.430233 | 72 | 0.523771 |
3f91a2f02864fb7a2686bf13d2dff2e15bd9f035 | 4,553 | ex | Elixir | lib/ex_unit/lib/ex_unit/capture_io.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/ex_unit/lib/ex_unit/capture_io.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/capture_io.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2018-04-18T11:25:33.000Z | 2018-04-18T11:25:33.000Z | defmodule ExUnit.CaptureIO do
@moduledoc ~S"""
Functionality to capture IO for testing.
## Examples
defmodule AssertionTest do
use ExUnit.Case
import ExUnit.CaptureIO
test "example" do
assert capture_io(fn ->
IO.puts "a"
end) == "a\n"
end
... | 28.104938 | 106 | 0.635625 |
3f91a530328f903972e6d842d52eeae66b442193 | 18,211 | ex | Elixir | test/subscriptions/support/stream_subscription_test_case.ex | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | test/subscriptions/support/stream_subscription_test_case.ex | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | test/subscriptions/support/stream_subscription_test_case.ex | c-moss-talk/eventstore | f02a0d8cea78608afb9ed1368c1fd26076d652b6 | [
"MIT"
] | null | null | null | defmodule EventStore.Subscriptions.StreamSubscriptionTestCase do
import EventStore.SharedStorageTestCase
define_tests do
alias EventStore.{EventFactory, ProcessHelper, RecordedEvent, SubscriptionHelpers}
alias EventStore.Storage.{Appender, CreateStream}
alias EventStore.Subscriptions.SubscriptionFsm
... | 35.990119 | 99 | 0.690846 |
3f91a6a63f9160e881d7912c5af3c905c0ab984a | 952 | ex | Elixir | lib/empty_web/controllers/user_registration_controller.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | lib/empty_web/controllers/user_registration_controller.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | lib/empty_web/controllers/user_registration_controller.ex | manojsamanta/empty-app-with-auth | e601a7c6ef1b4a992758117e6bf0922a5ce08f04 | [
"MIT"
] | null | null | null | defmodule EmptyWeb.UserRegistrationController do
use EmptyWeb, :controller
alias Empty.Accounts
alias Empty.Accounts.User
def new(conn, _params) do
changeset = Accounts.change_user_registration(%User{})
render(conn, "new.html", changeset: changeset)
end
def create(conn, %{"user" => user_params}) ... | 27.2 | 94 | 0.625 |
3f91cc1bffb469d948851e05880b4b8719975d2a | 1,357 | ex | Elixir | lib/ucx_chat.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | lib/ucx_chat.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | lib/ucx_chat.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat do
use Application
@env Mix.env()
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start th... | 30.840909 | 67 | 0.691231 |
3f91d5afe61dae1bd49ae7595eb9a1bcde5e9480 | 3,679 | ex | Elixir | lib/edeliver/relup/phoenix_modification.ex | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 807 | 2017-06-30T04:50:01.000Z | 2022-03-24T09:57:48.000Z | lib/edeliver/relup/phoenix_modification.ex | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 165 | 2017-06-26T12:57:43.000Z | 2022-03-29T14:36:49.000Z | lib/edeliver/relup/phoenix_modification.ex | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 96 | 2017-07-01T17:30:22.000Z | 2022-03-21T09:34:34.000Z | defmodule Edeliver.Relup.PhoenixModification do
@moduledoc """
This module provides default modifications of the relup instructions for phoenix apps.
It performs the following steps:
- __Checking whether the upgrade is possible__
- by checking whether there are processes running old code (from a ... | 44.865854 | 164 | 0.751835 |
3f91e60580fe34baa67fa807881c36c5d2608f4a | 172 | exs | Elixir | priv/repo/migrations/20190816205117_add-groups-table.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 523 | 2017-03-15T15:21:11.000Z | 2022-03-14T03:04:18.000Z | priv/repo/migrations/20190816205117_add-groups-table.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 524 | 2017-03-16T18:31:09.000Z | 2022-02-26T10:02:06.000Z | priv/repo/migrations/20190816205117_add-groups-table.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 60 | 2017-05-01T18:02:28.000Z | 2022-03-04T21:04:56.000Z | defmodule :"Elixir.RemoteRetro.Repo.Migrations.Add-groups-table" do
use Ecto.Migration
def change do
create table(:groups) do
timestamps()
end
end
end
| 17.2 | 67 | 0.703488 |
3f9208178201b876bcdc0d064103eb056a361e67 | 3,390 | ex | Elixir | clients/file/lib/google_api/file/v1/model/instance.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/model/instance.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/model/instance.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.810811 | 197 | 0.679941 |
3f922aa0b90478905c9f1ce6a8e68a85563da643 | 5,620 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/execution.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.323529 | 201 | 0.718861 |
3f9233988c17531df249f45969f1d54eb448625a | 24,094 | exs | Elixir | lib/elixir/test/elixir/registry_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/elixir/test/elixir/registry_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/registry_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2018-04-18T11:25:33.000Z | 2018-04-18T11:25:33.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule RegistryTest do
use ExUnit.Case, async: true
doctest Registry, except: [:moduledoc]
setup config do
keys = config[:keys] || :unique
partitions = config[:partitions] || 1
listeners = List.wrap(config[:listener])
opts = [keys: keys, name: con... | 39.050243 | 101 | 0.578401 |
3f9269d92380d725fd72ec10b6dc93ed6734eee6 | 14,677 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/accelerator_types.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/accelerator_types.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/accelerator_types.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... | 56.233716 | 511 | 0.666894 |
3f930440c60b49105f04665f6fd250224d1ae5f5 | 8,351 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/metric_descriptor.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/metric_descriptor.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/metric_descriptor.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... | 108.454545 | 3,553 | 0.706861 |
3f936c044a7b302e620f8aade5863093bc1a6aa6 | 228 | exs | Elixir | test/excvbn_test.exs | kiere/excvbn | af1ef21f3da6ba350bd517c7c7fb864b5cdf9b3b | [
"MIT"
] | null | null | null | test/excvbn_test.exs | kiere/excvbn | af1ef21f3da6ba350bd517c7c7fb864b5cdf9b3b | [
"MIT"
] | null | null | null | test/excvbn_test.exs | kiere/excvbn | af1ef21f3da6ba350bd517c7c7fb864b5cdf9b3b | [
"MIT"
] | null | null | null | defmodule ExcvbnTest do
use ExUnit.Case
# doctest Excvbn
describe "with level-2 scored complex password" do
test "evaluates to a score of 2" do
assert Excvbn.test("Tr0ub4dour&3")["score"] == 2
end
end
end
| 20.727273 | 54 | 0.684211 |
3f93749d19290bf2c2395e0b9e2f6bfed5dac9ed | 294 | ex | Elixir | lib/romeo.ex | crewstad/romeo | 94ebe08c9de92c21a5d10018df0512d05bc1fa7a | [
"MIT"
] | 78 | 2015-11-17T14:24:27.000Z | 2022-01-18T05:24:23.000Z | lib/romeo.ex | crewstad/romeo | 94ebe08c9de92c21a5d10018df0512d05bc1fa7a | [
"MIT"
] | 38 | 2015-12-16T07:35:28.000Z | 2021-04-06T08:52:01.000Z | lib/romeo.ex | crewstad/romeo | 94ebe08c9de92c21a5d10018df0512d05bc1fa7a | [
"MIT"
] | 56 | 2015-11-23T17:57:52.000Z | 2022-01-20T16:17:29.000Z | defmodule Romeo do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# worker(Romeo.Worker, [arg1, arg2, arg3]),
]
opts = [strategy: :one_for_one, name: Romeo.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 19.6 | 59 | 0.666667 |
3f93790a0444c5eb8bfc2e8d5d71d3b037a2f762 | 1,067 | ex | Elixir | lib/creep/plug_transport.ex | ConnorRigby/creep | 91d503187fda50b20788244487ca7d412373893c | [
"ISC"
] | 13 | 2019-09-21T04:48:09.000Z | 2022-01-26T13:13:03.000Z | lib/creep/plug_transport.ex | ConnorRigby/creep | 91d503187fda50b20788244487ca7d412373893c | [
"ISC"
] | null | null | null | lib/creep/plug_transport.ex | ConnorRigby/creep | 91d503187fda50b20788244487ca7d412373893c | [
"ISC"
] | 1 | 2020-03-03T16:50:42.000Z | 2020-03-03T16:50:42.000Z | defmodule Creep.PlugTransport do
require Logger
@behaviour Creep.PacketTransport
use Supervisor
alias Creep.PlugTransport.{MQTTSocket, MQTTRouter}
def child_spec(opts) do
broker_id = Keyword.fetch!(opts, :broker_id)
%{
id: {__MODULE__, broker_id},
start: {__MODULE__, :start_link, opts}
... | 23.195652 | 78 | 0.656045 |
3f93f594b676cb0fb06e5b56a703fddd4a677176 | 82 | exs | Elixir | v02/ch12/pm6.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch12/pm6.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v02/ch12/pm6.edit1.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | u = %User{name: "foo", email: "foo@example.com"}
%User{email: x} = u
IO.inspect x
| 20.5 | 48 | 0.621951 |
3f941b3a97a95389bdf3a7897a268275b2b240a0 | 623 | exs | Elixir | test/utils_test.exs | thiamsantos/amqp | ededac0ca9da7acbc7472fcc679bd0023f9b9b99 | [
"MIT"
] | 1 | 2021-07-07T10:04:38.000Z | 2021-07-07T10:04:38.000Z | test/utils_test.exs | thiamsantos/amqp | ededac0ca9da7acbc7472fcc679bd0023f9b9b99 | [
"MIT"
] | null | null | null | test/utils_test.exs | thiamsantos/amqp | ededac0ca9da7acbc7472fcc679bd0023f9b9b99 | [
"MIT"
] | 1 | 2020-04-27T18:06:52.000Z | 2020-04-27T18:06:52.000Z | defmodule UtilsTest do
use ExUnit.Case
alias AMQP.Utils
test "leaves correct lists as is" do
type_tuple = {"test", :longstr, "me"}
assert Utils.to_type_tuple(type_tuple) == type_tuple
end
test "converts known datatypes correctly" do
assert Utils.to_type_tuple([test: "me"]) == [{"test", :longst... | 31.15 | 74 | 0.637239 |
3f9440f07cd5b88b2010613bd07e6b1ee501c0a5 | 967 | ex | Elixir | apps/speedrun_blog_engine_web/lib/speedrun_blog_engine_web/application.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | null | null | null | apps/speedrun_blog_engine_web/lib/speedrun_blog_engine_web/application.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | 1 | 2021-04-12T17:10:05.000Z | 2021-04-12T17:10:05.000Z | apps/speedrun_blog_engine_web/lib/speedrun_blog_engine_web/application.ex | brvnaleao/speedrun-blog-engine | 77afd7852f7c7135c530cd769e3376ef043c2421 | [
"Apache-2.0"
] | null | null | null | defmodule SpeedrunBlogEngineWeb.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
SpeedrunBlogEngineWeb.Telemetry,
# Start ... | 31.193548 | 79 | 0.7394 |
3f946ee77b5b633fd8720919ab05cec441d4a74b | 2,373 | ex | Elixir | lib/testing/fixture_management/protocol.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | lib/testing/fixture_management/protocol.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | lib/testing/fixture_management/protocol.ex | noizu-labs/KitchenSinkAdvanced | 6d91b5dd4f59cd9838f87a64605a0ef87f4301c8 | [
"MIT"
] | null | null | null | defprotocol Noizu.Testing.FixtureManagement.Protocol do
def release(fixture, options)
def reserve(fixture, until, options)
def tag(fixture, tag, value, options)
def flag(fixture, message, options)
def history(fixture, options)
end
defimpl Noizu.Testing.FixtureManagement.Protocol, for: Any do
def release(_f... | 33.9 | 126 | 0.709229 |
3f94766f7886bde02f7f7c68266b5e647f70a304 | 346 | ex | Elixir | socket_gallows/lib/socket_gallows_web/channels/user_socket.ex | wronfim/hangman_game | c4dc4b9f122e773fe87ac4dc88206b792c1b239e | [
"MIT"
] | null | null | null | socket_gallows/lib/socket_gallows_web/channels/user_socket.ex | wronfim/hangman_game | c4dc4b9f122e773fe87ac4dc88206b792c1b239e | [
"MIT"
] | null | null | null | socket_gallows/lib/socket_gallows_web/channels/user_socket.ex | wronfim/hangman_game | c4dc4b9f122e773fe87ac4dc88206b792c1b239e | [
"MIT"
] | null | null | null | defmodule SocketGallowsWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "hangman:*", SocketGallowsWeb.HangmanChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
def connect(_params, socket) do
{:ok, socket}
end
def... | 20.352941 | 54 | 0.742775 |
3f947e6fc6327837ba7fcf74dc95b0a95d191a51 | 2,439 | exs | Elixir | test/oli/activities/transformers_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/oli/activities/transformers_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/oli/activities/transformers_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Activities.TransformersTest do
use ExUnit.Case, async: true
alias Oli.Activities.Transformers
test "applying shuffle" do
model = %{
"stem" => "this is the stem",
"choices" => [
%{id: "1", content: []},
%{id: "2", content: []},
%{id: "3", content: []},
... | 26.51087 | 81 | 0.435424 |
3f948d7b0fda8e235d49738a03acbc2e12373071 | 5,475 | ex | Elixir | app/lib/noodl_web/live/events/session/dashboard/viewer/viewer.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl_web/live/events/session/dashboard/viewer/viewer.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl_web/live/events/session/dashboard/viewer/viewer.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule NoodlWeb.Live.Events.Session.Dashboard.Viewer do
use NoodlWeb, :live_view
alias Agora.AccessKey, as: Agora
alias Noodl.{Events, Messages}
alias Noodl.Events.Event.Session
alias NoodlWeb.{Presence, EventsView}
alias NoodlWeb.Router.Helpers, as: Routes
@app_id Application.get_env(:noodl, :agora_... | 24.662162 | 98 | 0.585753 |
3f94b14e60b509d1d839f8baf7703116e29bc667 | 6,252 | exs | Elixir | apps/engine/test/engine/ethereum/height_observer_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/test/engine/ethereum/height_observer_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/test/engine/ethereum/height_observer_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Ethereum.HeightObserverTest do
use ExUnit.Case, async: true
alias __MODULE__.Alarm
alias __MODULE__.EthereumClientMock
alias Engine.Ethereum.HeightObserver
alias ExPlasma.Encoding
setup_all do
_ = Agent.start_link(fn -> %{} end, name: :connector)
:ok
end
setup %{test: test_nam... | 29.352113 | 115 | 0.649552 |
3f94d1f30a4d215e19a3745cf5fb0bfa9359476a | 61 | ex | Elixir | web/views/layout_view.ex | outofboundstech/chatbot | a185ff7d6e7ae3f9d12a8b61baffe3d07e1ad069 | [
"FSFUL"
] | null | null | null | web/views/layout_view.ex | outofboundstech/chatbot | a185ff7d6e7ae3f9d12a8b61baffe3d07e1ad069 | [
"FSFUL"
] | 1 | 2016-05-17T04:53:02.000Z | 2016-05-17T04:53:02.000Z | web/views/layout_view.ex | outofboundstech/ChatBot | a185ff7d6e7ae3f9d12a8b61baffe3d07e1ad069 | [
"FSFUL"
] | null | null | null | defmodule ChatBot.LayoutView do
use ChatBot.Web, :view
end
| 15.25 | 31 | 0.786885 |
3f94dde035a2d9790904bafa743a86509955928b | 538 | ex | Elixir | lib/parsers/ext/content.ex | simplecastapps/podcast-feeds | d726e0d15f60867eafbea174707feadfa4a080e3 | [
"MIT"
] | 1 | 2016-01-22T19:59:41.000Z | 2016-01-22T19:59:41.000Z | lib/parsers/ext/content.ex | simplecastapps/podcast-feeds | d726e0d15f60867eafbea174707feadfa4a080e3 | [
"MIT"
] | 1 | 2018-05-22T09:20:06.000Z | 2018-06-12T03:50:52.000Z | lib/parsers/ext/content.ex | simplecastapps/podcast-feeds | d726e0d15f60867eafbea174707feadfa4a080e3 | [
"MIT"
] | 2 | 2016-01-22T20:03:44.000Z | 2018-05-19T00:25:36.000Z | defmodule PodcastFeeds.Parsers.Ext.Content do
# subset of the content module of the rdf framework
use Timex
import SweetXml
alias PodcastFeeds.Parsers.Helpers
@namespace_uri "http://purl.org/rss/1.0/modules/content/"
def do_parse_meta_node(meta, _node) do
meta
end
def do_parse_entry_node(entr... | 22.416667 | 92 | 0.719331 |
3f94ebd6aa20f6aee3ae091e7c29ae7019ebb7cb | 4,604 | ex | Elixir | debian/init.d.ex | josephbisch/deb-namecoin-core | e4eb83bad7e033a4f2808aafe64055a2ddffccd2 | [
"MIT"
] | null | null | null | debian/init.d.ex | josephbisch/deb-namecoin-core | e4eb83bad7e033a4f2808aafe64055a2ddffccd2 | [
"MIT"
] | null | null | null | debian/init.d.ex | josephbisch/deb-namecoin-core | e4eb83bad7e033a4f2808aafe64055a2ddffccd2 | [
"MIT"
] | null | null | null | #!/bin/sh
### BEGIN INIT INFO
# Provides: namecoin-core
# Required-Start: $local_fs $network $remote_fs $syslog
# Required-Stop: $local_fs $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <Enter a short description of the software>
# Description: ... | 27.568862 | 89 | 0.66073 |
3f94f36e9680bd23a2d1e73013f54cee5626b0be | 2,656 | exs | Elixir | test/controllers/cachegroup_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | test/controllers/cachegroup_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | test/controllers/cachegroup_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.CachegroupControllerTest do
use Tox.ConnCase
alias Tox.Cachegroup
@valid_attrs %{latitude: "120.5", longitude: "120.5", name: "some content", parent_cachegroup_id: 42, secondary_parent_cachegroup_id: 42, short_name: "some content", type: 42}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, ... | 39.641791 | 177 | 0.695407 |
3f951871b5da6cc06e7d4e24343d194670740389 | 158 | ex | Elixir | lib/gotochgo/company.ex | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | null | null | null | lib/gotochgo/company.ex | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | null | null | null | lib/gotochgo/company.ex | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | 2 | 2021-11-11T17:19:17.000Z | 2021-12-27T16:06:23.000Z | defmodule Gotochgo.Company do
@moduledoc """
A simple module to store the structure of a Company.
"""
defstruct price: 0.0, name: "", ticker: ""
end
| 19.75 | 54 | 0.670886 |
3f951935542d5ce422283c1af8ab16ecae620613 | 505 | ex | Elixir | test/support/widget.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | test/support/widget.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | test/support/widget.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | defmodule Widget do
@moduledoc false
use Bonny.Controller
require Logger
@rule {"apps", ["deployments", "services"], ["*"]}
@rule {"", ["configmaps"], ["create", "read"]}
@spec add(any()) :: :ok | {:error, any()}
def add(obj), do: Logger.info("add: #{inspect(obj)}")
@spec modify(any()) :: :ok | {:erro... | 31.5625 | 61 | 0.586139 |
3f951e1c0d9031d194eb122ea94f78d786b2a59f | 1,338 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/update_tag_value_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/update_tag_value_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/update_tag_value_metadata.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... | 31.857143 | 94 | 0.775037 |
3f957b1ac0e822312aa4aa7de52ef2642bf827ac | 1,701 | ex | Elixir | lib/nys_etl_web/endpoint.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | 2 | 2021-06-22T21:01:49.000Z | 2021-11-04T18:36:48.000Z | lib/nys_etl_web/endpoint.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | lib/nys_etl_web/endpoint.ex | RatioPBC/epi-viaduct-nys | 99fb637785ea207aee5449fa01fa59dd18ec8bf2 | [
"MIT"
] | null | null | null | defmodule NYSETLWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :nys_etl
# 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: "_nys_etl_ke... | 28.830508 | 97 | 0.717813 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.