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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6551d9dde9a42aad4379b3c791daf40b807449ed | 2,160 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/managed_zone_peering_config_target_network.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dns/lib/google_api/dns/v1/model/managed_zone_peering_config_target_network.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dns/lib/google_api/dns/v1/model/managed_zone_peering_config_target_network.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... | 40.754717 | 356 | 0.737963 |
655207654a98ce55efcf448485f295dfbf98c9ef | 2,874 | ex | Elixir | lib/oban/peer.ex | ethangunderson/oban | d8d044b4bfd79713ca120be2cb2c70e26eaa5b5d | [
"Apache-2.0"
] | null | null | null | lib/oban/peer.ex | ethangunderson/oban | d8d044b4bfd79713ca120be2cb2c70e26eaa5b5d | [
"Apache-2.0"
] | null | null | null | lib/oban/peer.ex | ethangunderson/oban | d8d044b4bfd79713ca120be2cb2c70e26eaa5b5d | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Peer do
@moduledoc """
The `Peer` module maintains leadership for a particular Oban instance within a cluster.
Leadership is used by plugins, primarily, to prevent duplicate work accross nodes. For example,
only the leader's `Cron` plugin will insert new jobs. You can use peer leadership to exte... | 27.113208 | 98 | 0.672582 |
65521215082f22c9f51f082784db4ea5b4e7fef1 | 1,910 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/feature_value.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/feature_value.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query/lib/google_api/big_query/v2/model/feature_value.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... | 36.037736 | 136 | 0.729319 |
65522c115e10a6da46cce2ba473db11baceec41a | 129 | exs | Elixir | test/rf24_test.exs | ConnorRigby/elixir-rf24 | bc64e40ae62970f592bd9c94ae6a01230f25fade | [
"Apache-2.0"
] | 2 | 2020-05-30T05:03:47.000Z | 2021-10-23T01:22:37.000Z | test/rf24_test.exs | ConnorRigby/elixir-rf24 | bc64e40ae62970f592bd9c94ae6a01230f25fade | [
"Apache-2.0"
] | null | null | null | test/rf24_test.exs | ConnorRigby/elixir-rf24 | bc64e40ae62970f592bd9c94ae6a01230f25fade | [
"Apache-2.0"
] | null | null | null | defmodule RF24Test do
use ExUnit.Case
doctest RF24
test "greets the world" do
assert RF24.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
65523333d164a9cc483a1b9fd3cb67dce04a6635 | 257 | ex | Elixir | integration_test/temple_demo/lib/temple_demo.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 366 | 2019-07-12T22:43:35.000Z | 2022-03-31T07:26:25.000Z | integration_test/temple_demo/lib/temple_demo.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 114 | 2019-07-12T19:49:10.000Z | 2022-03-23T10:48:48.000Z | integration_test/temple_demo/lib/temple_demo.ex | rktjmp/temple | 6fe46cbb4998477d76147fa95c9fd9c7841545ef | [
"MIT"
] | 17 | 2019-07-23T15:16:34.000Z | 2021-02-25T02:42:02.000Z | defmodule TempleDemo do
@moduledoc """
TempleDemo keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.7 | 66 | 0.758755 |
655236feb66d9fb065bcac4265d74da059f91b69 | 377 | exs | Elixir | config/config.exs | merqlove/some_ecto | ed1a2d402e9d6e9742debc04be6bc44dd98b79af | [
"MIT"
] | null | null | null | config/config.exs | merqlove/some_ecto | ed1a2d402e9d6e9742debc04be6bc44dd98b79af | [
"MIT"
] | null | null | null | config/config.exs | merqlove/some_ecto | ed1a2d402e9d6e9742debc04be6bc44dd98b79af | [
"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
config :some_ecto, SomeEcto.Repo,
adapter: Ecto.Adapters.Postgres,
hostname: "localhost",
username: "dev",
pool_size: 10,
database: "some_ecto_repo"
config :some_ecto, ect... | 25.133333 | 61 | 0.753316 |
655237a9cda9e4f95112c39a65e11cdfd0746fd8 | 1,435 | exs | Elixir | test/returnable_test.exs | hpopp/returnable | 44c8109fa11b759cdbdb2650d0864970653be565 | [
"MIT"
] | 3 | 2018-04-12T10:07:31.000Z | 2018-09-19T02:05:22.000Z | test/returnable_test.exs | hpopp/returnable | 44c8109fa11b759cdbdb2650d0864970653be565 | [
"MIT"
] | null | null | null | test/returnable_test.exs | hpopp/returnable | 44c8109fa11b759cdbdb2650d0864970653be565 | [
"MIT"
] | null | null | null | defmodule ReturnableTest do
use ExUnit.Case
doctest Returnable
use Returnable
describe "return/1" do
test "throws a return" do
catch_throw(return(:cool))
end
end
describe "ret/1" do
test "returns early" do
result =
ret do
_val = 1234
return(:gucci)
... | 17.716049 | 54 | 0.595122 |
65523a951765b70201fe16d19e0aa8e71691175b | 950 | ex | Elixir | test/support/channel_case.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | test/support/channel_case.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | 8 | 2021-06-04T18:50:28.000Z | 2021-08-08T19:43:46.000Z | test/support/channel_case.ex | palm86/hex_flora | 26dc95f948763507b4d7cb643d98696936b45e07 | [
"CC-BY-3.0"
] | null | null | null | defmodule HexFloraWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts ... | 27.142857 | 65 | 0.74 |
655245802ee8d9320dbb46dab82423f5868297a8 | 124 | exs | Elixir | test/test_helper.exs | 10clouds/10Books | 622360ea190421e07d4b207700867be105894218 | [
"MIT"
] | 11 | 2018-08-29T15:59:09.000Z | 2021-08-25T16:35:13.000Z | test/test_helper.exs | fram74/10Books | 9e4e280032c7f7b9625c831efa9850d999327e53 | [
"MIT"
] | 16 | 2018-08-29T15:43:52.000Z | 2021-05-09T00:53:56.000Z | test/test_helper.exs | fram74/10Books | 9e4e280032c7f7b9625c831efa9850d999327e53 | [
"MIT"
] | 3 | 2019-05-29T14:22:59.000Z | 2020-06-06T12:30:54.000Z | ExUnit.start(trace: true)
Ecto.Adapters.SQL.Sandbox.mode(LibTen.Repo, :manual)
Application.ensure_all_started(:ex_machina)
| 24.8 | 52 | 0.814516 |
655261f5b77a879995ada5181457243986bb189f | 645 | exs | Elixir | test/phoenix_slime_test.exs | sdeframond/phoenix_slime | 4a97774d65e34aa0e899e7888d2a90912cc07700 | [
"MIT"
] | null | null | null | test/phoenix_slime_test.exs | sdeframond/phoenix_slime | 4a97774d65e34aa0e899e7888d2a90912cc07700 | [
"MIT"
] | null | null | null | test/phoenix_slime_test.exs | sdeframond/phoenix_slime | 4a97774d65e34aa0e899e7888d2a90912cc07700 | [
"MIT"
] | null | null | null | defmodule PhoenixSlimeTest do
use ExUnit.Case
alias Phoenix.View
defmodule MyApp.PageView do
use Phoenix.View, root: "test/fixtures/templates"
use Phoenix.HTML
end
test "render a slime template with layout" do
html = View.render(MyApp.PageView, "new.html",
message: "hi",
layout: {My... | 26.875 | 102 | 0.627907 |
6552a178e7d96d574988f7038bd7f69c184b8c59 | 1,369 | exs | Elixir | config/config.exs | yanovitchsky/karibu_ex_cli | d94b3e4dd54e3db926e7afd971472ac0184d1446 | [
"MIT"
] | null | null | null | config/config.exs | yanovitchsky/karibu_ex_cli | d94b3e4dd54e3db926e7afd971472ac0184d1446 | [
"MIT"
] | null | null | null | config/config.exs | yanovitchsky/karibu_ex_cli | d94b3e4dd54e3db926e7afd971472ac0184d1446 | [
"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... | 31.113636 | 73 | 0.737034 |
6552a730dbf81f26f4a54c346a858fd6192a2c80 | 587 | exs | Elixir | farmbot_core/priv/config/migrations/20171208205940_add_firmware_io_log.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/config/migrations/20171208205940_add_firmware_io_log.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/config/migrations/20171208205940_add_firmware_io_log.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Config.Repo.Migrations.AddFirmwareIoLog do
use Ecto.Migration
import FarmbotCore.Config.MigrationHelpers
@default_firmware_io_logs Application.get_env(
:farmbot_core,
Farmbot.EctoMigrator
)[:default_fir... | 23.48 | 65 | 0.62862 |
6552c05969bca5d149550d8c73e55a5f0a8e9a09 | 125 | exs | Elixir | test/test_helper.exs | josepablocastro/bamboo_ses | 96c509ef7d7acfd8d009777ec376b25a32b4cc24 | [
"MIT"
] | 28 | 2018-11-01T22:08:49.000Z | 2022-03-02T14:25:45.000Z | test/test_helper.exs | josepablocastro/bamboo_ses | 96c509ef7d7acfd8d009777ec376b25a32b4cc24 | [
"MIT"
] | 37 | 2018-07-05T18:58:32.000Z | 2022-01-25T16:11:21.000Z | test/test_helper.exs | josepablocastro/bamboo_ses | 96c509ef7d7acfd8d009777ec376b25a32b4cc24 | [
"MIT"
] | 20 | 2018-10-10T14:33:24.000Z | 2021-11-22T17:12:19.000Z | Application.ensure_all_started(:hackney)
Mox.defmock(ExAws.Request.HttpMock, for: ExAws.Request.HttpClient)
ExUnit.start()
| 20.833333 | 66 | 0.816 |
6552c60e978342ce80b3a3c7f36089db8058e5f9 | 3,333 | ex | Elixir | lib/cldr/messages/sigil.ex | kianmeng/cldr_messages | d1468893eb6a3f44f2fe11e0aa1c179879902515 | [
"Apache-2.0"
] | null | null | null | lib/cldr/messages/sigil.ex | kianmeng/cldr_messages | d1468893eb6a3f44f2fe11e0aa1c179879902515 | [
"Apache-2.0"
] | null | null | null | lib/cldr/messages/sigil.ex | kianmeng/cldr_messages | d1468893eb6a3f44f2fe11e0aa1c179879902515 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Message.Sigil do
@moduledoc """
Implements sigil `~M` to canonicalize an
ICU message.
ICU messages allow for whitespace to be used to
format the message for developer and translator readability.
At the same time, `gettext` uses the message string
as a key when resolving translations.
Therefore ... | 26.664 | 82 | 0.726673 |
6552c77003dedabfb416f45db125b09a5ea8f553 | 290 | ex | Elixir | apps/core/lib/core/pubsub/consumers/rtc.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/pubsub/consumers/rtc.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/pubsub/consumers/rtc.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.PubSub.Consumers.Rtc do
use Piazza.PubSub.Consumer,
broadcaster: Core.PubSub.Broadcaster,
max_demand: 20
def handle_event(event) do
if Core.PubSub.Realtime.publish?(event) do
Core.broker().publish(%Conduit.Message{body: event}, :rtc)
end
end
end
| 24.166667 | 64 | 0.717241 |
6552e82a2469a9af9f2966e0d6603b2d03765f64 | 1,945 | ex | Elixir | lib/wechat/core/base.ex | sjava/ex_wechat | 521e119be8cc960453002c099d57f7474bfd7735 | [
"MIT"
] | null | null | null | lib/wechat/core/base.ex | sjava/ex_wechat | 521e119be8cc960453002c099d57f7474bfd7735 | [
"MIT"
] | null | null | null | lib/wechat/core/base.ex | sjava/ex_wechat | 521e119be8cc960453002c099d57f7474bfd7735 | [
"MIT"
] | null | null | null | defmodule Wechat.Base do
@moduledoc """
Make module can get the config data.
use Wechat.Base
then, you can get the config data in your module.
defmodule Wechat do
use Wechat.Base
end
Wechat.appid # your wechat app appid
Wechat.secret # your wechat app appsecret
Wec... | 25.592105 | 72 | 0.597429 |
6552f07a14a62e34e07286ace831d208bf431c94 | 1,871 | ex | Elixir | lib/hook/consumers/websocket.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/hook/consumers/websocket.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/hook/consumers/websocket.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Hook.Consumers.Websocket do
use Accent.Hook.EventConsumer, subscribe_to: [Accent.Hook.Producers.Websocket]
alias Accent.User
alias Accent.Hook
@channel "projects:"
@supported_events ~w(sync create_collaborator create_comment)
def handle_events(events, _from, state = {:endpoint, endpoint}... | 24.946667 | 120 | 0.611438 |
6552faf9f208d83db2798fec8ec5728462aee887 | 1,978 | exs | Elixir | jorendorff+elixir/test/tiny_rdbms_test.exs | chaughawout/rdbms | 94228ce2f2a11f40a69ad612ecf99bc71858fefc | [
"MIT"
] | 15 | 2017-02-10T20:07:51.000Z | 2021-02-10T02:57:59.000Z | jorendorff+elixir/test/tiny_rdbms_test.exs | NashFP/rdms | 9cac306a9bc89fae4db03ee1a860a7137e7f5382 | [
"MIT"
] | 3 | 2017-02-10T21:03:41.000Z | 2017-03-01T21:39:41.000Z | jorendorff+elixir/test/tiny_rdbms_test.exs | NashFP/rdms | 9cac306a9bc89fae4db03ee1a860a7137e7f5382 | [
"MIT"
] | 10 | 2016-10-26T04:44:29.000Z | 2021-07-29T05:57:23.000Z | defmodule TinyRdbmsTest do
use ExUnit.Case
doctest TinyRdbms
test "select examples" do
tables_dir = Path.expand(Path.join(__DIR__, "../../tests/tables"))
database = TinyRdbms.load(tables_dir)
dir = Path.expand(Path.join(__DIR__, "../../tests/select"))
for f <- File.ls!(dir) do
if String.ma... | 31.903226 | 80 | 0.599596 |
6552fb0e17cc122b5fcf2d36fb2dfdc31b232135 | 18,746 | ex | Elixir | lib/ecto/migration.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/ecto/migration.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration.ex | photomattmills/ecto | ad3a455aa3d5e4f932a5bb8ae1590b21d95cce54 | [
"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... | 27.648968 | 118 | 0.656567 |
65530b54959efcb27f83fac04f1cac0b1d9dbd95 | 5,312 | exs | Elixir | test/last_crusader/micropub/micropub_test.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | 1 | 2021-11-19T01:13:45.000Z | 2021-11-19T01:13:45.000Z | test/last_crusader/micropub/micropub_test.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | 11 | 2021-01-31T11:05:50.000Z | 2021-11-22T08:32:03.000Z | test/last_crusader/micropub/micropub_test.exs | jpcaruana/last_crusader | 7f5f6bf52cf2981793b0180272142da82ec6f734 | [
"MIT"
] | null | null | null | defmodule LastCrusader.Micropub.MicropubTest do
use ExUnit.Case, async: true
import Tesla.Mock
alias LastCrusader.Micropub
test "Micropub.add_keyword_to_post/2" do
filecontent_doc = %Tesla.Env{
status: 200,
body: ok_get_sha_body(),
headers: [
{"Status", "200 OK"},
{"Conten... | 38.773723 | 145 | 0.600904 |
65531ff8690664b081a75d987cfb0c539ea2701d | 9,013 | exs | Elixir | apps/exred_ui/test/exred_ui/editor/editor_test.exs | exredorg/exred | 0ece8e6680747ba8f30b4413ede598a45495aa7c | [
"MIT"
] | null | null | null | apps/exred_ui/test/exred_ui/editor/editor_test.exs | exredorg/exred | 0ece8e6680747ba8f30b4413ede598a45495aa7c | [
"MIT"
] | null | null | null | apps/exred_ui/test/exred_ui/editor/editor_test.exs | exredorg/exred | 0ece8e6680747ba8f30b4413ede598a45495aa7c | [
"MIT"
] | null | null | null | defmodule ExredUI.EditorTest do
use ExredUI.DataCase
alias ExredUI.Editor
describe "nodes" do
alias ExredUI.Editor.Node
@valid_attrs %{config: %{}, info: "some info", module: "some module", name: "some name", type: "some type"}
@update_attrs %{config: %{}, info: "some updated info", module: "some u... | 33.883459 | 144 | 0.655165 |
6553473c8c5ff48e7888cbe7d2911ad6183bcdd3 | 1,579 | ex | Elixir | lib/otp_demo/stack.ex | rob-brown/OTP-Demo | 2c889cb04081adec636c91a88dd5a368f7fb8cba | [
"MIT"
] | 1 | 2020-01-20T19:56:56.000Z | 2020-01-20T19:56:56.000Z | lib/otp_demo/stack.ex | rob-brown/OTP-Demo | 2c889cb04081adec636c91a88dd5a368f7fb8cba | [
"MIT"
] | null | null | null | lib/otp_demo/stack.ex | rob-brown/OTP-Demo | 2c889cb04081adec636c91a88dd5a368f7fb8cba | [
"MIT"
] | null | null | null | defmodule OtpDemo.Stack do
@moduledoc """
A stack process with its own run loop.
See OtpDemo.GenStack to see the GenServer logic extracted.
"""
def start_link(options) do
name = Keyword.get(options, :name, __MODULE__)
pid = spawn_link(__MODULE__, :loop, [[]])
Process.register(pid, name)
{:ok,... | 17.741573 | 60 | 0.562381 |
65534f024530aba727e8222b3af90be4a54c15f2 | 1,458 | ex | Elixir | lib/network_films.ex | danielpilon/letterbexd | b6a7e4e5572607c725c3c2c8e4cddec5877006c7 | [
"MIT"
] | null | null | null | lib/network_films.ex | danielpilon/letterbexd | b6a7e4e5572607c725c3c2c8e4cddec5877006c7 | [
"MIT"
] | null | null | null | lib/network_films.ex | danielpilon/letterbexd | b6a7e4e5572607c725c3c2c8e4cddec5877006c7 | [
"MIT"
] | null | null | null | defmodule NetworkFilms do
@type film_frequency :: %{
film: Films.t(),
frequency: integer()
}
@type t :: %NetworkFilms{
films: list(film_frequency),
user_id: String.t(),
ratings: list(Rating.t())
}
@enforce_keys [:user_id, :ratings]
defstruct fi... | 29.755102 | 88 | 0.606996 |
6553a97220ba9b6dc78b7269f15e63a2fa7950e6 | 23,347 | ex | Elixir | lib/ecto/query.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query.ex | rbishop/ecto | a8a3215c9e2e35f7556f54c8d47d78a3670796d8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query do
@moduledoc ~S"""
Provides the Query DSL.
Queries are used to retrieve and manipulate data in a repository
(see `Ecto.Repo`). Although this module provides a complete API,
supporting expressions like `where/3`, `select/3` and so forth,
most of the times developers need to import only... | 31.55 | 92 | 0.662012 |
6553b6f11bbcfe14952fba89f2e203ecc8ca7b79 | 536 | ex | Elixir | lib/remedy/gateway/events/identify.ex | bdanklin/nostrum | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | 3 | 2021-09-05T09:44:02.000Z | 2022-01-26T15:31:50.000Z | lib/remedy/gateway/events/identify.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | lib/remedy/gateway/events/identify.ex | bdanklin/remedy | 554ebd6cff1d0f68c874aa92f475dabf1aed5512 | [
"MIT"
] | null | null | null | defmodule Remedy.Gateway.Events.Identify do
@moduledoc false
use Remedy.Gateway.Payload
import Remedy, only: [token: 0, shards: 0, intents: 0, system_architecture: 0]
def payload(%WSState{shard: shard} = socket, _opts) do
{%{
token: token(),
properties: %{
"$os" => system_architectur... | 25.52381 | 80 | 0.578358 |
6553c078f3050f5b1b141eb78dcca9561afeb997 | 2,866 | ex | Elixir | lib/railway_ipc/rabbit_mq/rabbit_mq_adapter.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 2 | 2021-03-22T19:37:33.000Z | 2022-01-04T08:48:20.000Z | lib/railway_ipc/rabbit_mq/rabbit_mq_adapter.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 10 | 2019-11-29T20:24:24.000Z | 2021-02-26T22:06:13.000Z | lib/railway_ipc/rabbit_mq/rabbit_mq_adapter.ex | learn-co/railway_ipc | aeec16fb5b315fb3d8472b38c6eeea20d20e731a | [
"MIT"
] | 1 | 2020-01-09T17:13:29.000Z | 2020-01-09T17:13:29.000Z | defmodule RailwayIpc.RabbitMQ.RabbitMQAdapter do
@moduledoc false
use AMQP
@behaviour RailwayIpc.StreamBehaviour
alias RailwayIpc.Telemetry
def connect do
Telemetry.track_connecting_to_rabbit(fn ->
case Connection.open(connection_url()) do
{:ok, connection} when not is_nil(connection) ->
... | 26.537037 | 130 | 0.668876 |
6553c3cfdcbcce9d20ec24fe615d8e00e57de04e | 165 | exs | Elixir | farmbot_os/config/lagger.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_os/config/lagger.exs | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_os/config/lagger.exs | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | use Mix.Config
config :lager, :error_logger_redirect, false
config :lager, :error_logger_whitelist, []
config :lager, :crash_log, false
config :lager, :handlers, []
| 27.5 | 44 | 0.763636 |
6553c80391f3f5badcb13dc548a197c83b5e8ef0 | 153 | exs | Elixir | Books/Programming_Elixir-Dave_Thomas/ch_1/ex_1-Pattern_Matching_2.exs | cjschneider2/book_example_problems | 18192a6d3ddb4371b79f88e4ab3444d25f2e1ce0 | [
"Unlicense"
] | null | null | null | Books/Programming_Elixir-Dave_Thomas/ch_1/ex_1-Pattern_Matching_2.exs | cjschneider2/book_example_problems | 18192a6d3ddb4371b79f88e4ab3444d25f2e1ce0 | [
"Unlicense"
] | null | null | null | Books/Programming_Elixir-Dave_Thomas/ch_1/ex_1-Pattern_Matching_2.exs | cjschneider2/book_example_problems | 18192a6d3ddb4371b79f88e4ab3444d25f2e1ce0 | [
"Unlicense"
] | null | null | null | # Q: Which of the following will match?
[ a, b, a] = [ 1, 2, 3] # Won't Match
[ a, b, a] = [ 1, 1, 2] # Won't Match
[ a, b, a] = [ 1, 2, 1] # Will Match
| 30.6 | 39 | 0.48366 |
65545ce4d0ae4ecf24eef8cdc230a4c9a8aa7e5e | 1,007 | ex | Elixir | test/support/ssl/mc.ex | sasa1977/smppex | 21bc56e433b3c6fb0becddb5fbbe06edcedc40c2 | [
"MIT"
] | null | null | null | test/support/ssl/mc.ex | sasa1977/smppex | 21bc56e433b3c6fb0becddb5fbbe06edcedc40c2 | [
"MIT"
] | null | null | null | test/support/ssl/mc.ex | sasa1977/smppex | 21bc56e433b3c6fb0becddb5fbbe06edcedc40c2 | [
"MIT"
] | null | null | null | defmodule Support.SSL.MC do
@moduledoc false
use SMPPEX.Session
alias SMPPEX.MC
alias SMPPEX.Pdu
alias SMPPEX.Pdu.Factory, as: PduFactory
def child_spec({port, certname}), do: child_spec({port, certname, true})
def child_spec({port, certname, accept}) do
Supervisor.child_spec(
{
MC,
... | 20.14 | 85 | 0.573982 |
655492d3f4ccdb0420ed0b60cda3c19ead4d522b | 264 | exs | Elixir | priv/repo/migrations/20220110174134_expand_report_objects.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | priv/repo/migrations/20220110174134_expand_report_objects.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | priv/repo/migrations/20220110174134_expand_report_objects.exs | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Central.Repo.Migrations.ExpandReportObjects do
use Ecto.Migration
def change do
alter table(:account_reports) do
add :followup, :string
add :responded_at, :utc_datetime
add :code_references, {:array, :string}
end
end
end
| 22 | 56 | 0.708333 |
655494fc3890fc87445f44d35406b9e0c15830d6 | 11,207 | ex | Elixir | lib/oli_web/controllers/open_and_free_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/controllers/open_and_free_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli_web/controllers/open_and_free_controller.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.OpenAndFreeController do
use OliWeb, :controller
alias Oli.{Repo, Predefined, Publishing, Branding}
alias Oli.Delivery.Sections
alias Oli.Delivery.Sections.Section
alias Oli.Authoring.Course
alias OliWeb.Common.Breadcrumb
alias Lti_1p3.Tool.ContextRoles
alias OliWeb.Router.Helpers, as... | 30.371274 | 98 | 0.625948 |
6554ad31fa6f7032b5ef0d3b56ad11395195ee06 | 229 | ex | Elixir | cegui-ppa/debian/cegui.default.ex | AdrianArroyoCalle/debian-packages | 2bc27152ae5438d33508353d7b2b162e68c05034 | [
"Unlicense"
] | null | null | null | cegui-ppa/debian/cegui.default.ex | AdrianArroyoCalle/debian-packages | 2bc27152ae5438d33508353d7b2b162e68c05034 | [
"Unlicense"
] | null | null | null | cegui-ppa/debian/cegui.default.ex | AdrianArroyoCalle/debian-packages | 2bc27152ae5438d33508353d7b2b162e68c05034 | [
"Unlicense"
] | null | null | null | # Defaults for cegui initscript
# sourced by /etc/init.d/cegui
# installed at /etc/default/cegui by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""
| 20.818182 | 59 | 0.755459 |
6554b480a83de8a067a580a466d8ad18d94e37e8 | 2,916 | exs | Elixir | apps/reaper/test/integration/reaper/data_slurper/sftp_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 18 | 2020-11-13T15:38:24.000Z | 2021-05-26T00:40:08.000Z | apps/reaper/test/integration/reaper/data_slurper/sftp_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 365 | 2020-09-21T12:31:40.000Z | 2021-09-25T14:54:21.000Z | apps/reaper/test/integration/reaper/data_slurper/sftp_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 3 | 2020-10-06T16:17:49.000Z | 2021-09-03T17:11:41.000Z | defmodule Reaper.SftpExtractorTest do
use ExUnit.Case
use Divo
use Placebo
use Properties, otp_app: :reaper
alias SmartCity.TestDataGenerator, as: TDG
import SmartCity.TestHelper
import SmartCity.Event, only: [dataset_update: 0]
@host to_charlist(System.get_env("HOST"))
@instance_name Reaper.instanc... | 27.252336 | 80 | 0.596022 |
6555035b5e61b68077065c83a3aed7b51d3549e5 | 3,335 | exs | Elixir | lib/mix/test/mix/tasks/new_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/test/mix/tasks/new_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/new_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.NewTest do
use MixTest.Case
test "new" do
in_tmp "new with underscore", fn ->
Mix.Tasks.New.run ["hello_world"]
assert_file "hello_world/mix.exs", fn(file) ->
assert file =~ "app: :hello_world"
assert file =~ "... | 31.462264 | 132 | 0.630585 |
655508f05fe300405de4fba04a4566f4b8a84935 | 1,767 | exs | Elixir | test/nerves_runtime_test.exs | mnishiguchi/nerves_runtime | 8216010b1f4344cd198d0f1a45e37f4be3aaf993 | [
"Apache-2.0"
] | null | null | null | test/nerves_runtime_test.exs | mnishiguchi/nerves_runtime | 8216010b1f4344cd198d0f1a45e37f4be3aaf993 | [
"Apache-2.0"
] | null | null | null | test/nerves_runtime_test.exs | mnishiguchi/nerves_runtime | 8216010b1f4344cd198d0f1a45e37f4be3aaf993 | [
"Apache-2.0"
] | null | null | null | defmodule NervesRuntimeTest do
use ExUnit.Case
alias Nerves.Runtime.KV
test "serial_number returns boardid result" do
Application.put_env(:nerves_runtime, :boardid_path, Path.join(fixture_path(), "boardid"))
assert Nerves.Runtime.serial_number() == "123456789"
end
test "serial_number is unconfigure... | 32.722222 | 98 | 0.711941 |
655520abc66016349fd9c009deb7d28e3fd84e7e | 1,030 | ex | Elixir | lib/gituser_web/controllers/github_user_controller.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | lib/gituser_web/controllers/github_user_controller.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | lib/gituser_web/controllers/github_user_controller.ex | vinolivae/gituser | 30dd93a8ea8ac5a8d40b91a17ee2eb29ed6bfd81 | [
"MIT"
] | null | null | null | defmodule GituserWeb.GithubUserController do
use GituserWeb, :controller
alias Gituser
alias Gituser.User.Inputs.{CreateUser, Signin}
alias Gituser.ChangesetValidation
alias GituserWeb.Auth.Guardian
alias GituserWeb.FallbackController
action_fallback FallbackController
def create(conn, params) do
... | 26.410256 | 86 | 0.672816 |
655531c888a25d1f07e3cef38a7aacc585d92543 | 2,680 | ex | Elixir | lib/breezex/families.ex | maco/breezex | a578e64716ca873a1868f0177bf5404df2c156c7 | [
"MIT"
] | null | null | null | lib/breezex/families.ex | maco/breezex | a578e64716ca873a1868f0177bf5404df2c156c7 | [
"MIT"
] | null | null | null | lib/breezex/families.ex | maco/breezex | a578e64716ca873a1868f0177bf5404df2c156c7 | [
"MIT"
] | null | null | null | defmodule Breezex.Families do
@moduledoc """
Module implementing the Breeze families API.
"""
alias Breezex.BreezeConfig
alias Breezex.Client
alias Breezex.Util
@doc """
Creates a new family grouping from pre-existing people.
If anyone is already in a family, they'll be removed from the old one.
"... | 37.746479 | 96 | 0.689925 |
65557e67332fd2b18cf614c9c6daff98cb7c00bb | 2,385 | exs | Elixir | test/falco/integration/stub_test.exs | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 5 | 2022-02-08T13:51:08.000Z | 2022-02-09T14:12:47.000Z | test/falco/integration/stub_test.exs | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 1 | 2022-02-08T15:46:07.000Z | 2022-02-08T15:46:07.000Z | test/falco/integration/stub_test.exs | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | null | null | null | defmodule Falco.Integration.StubTest do
use Falco.Integration.TestCase
defmodule HelloServer do
use Falco.Server, service: Helloworld.Greeter.Service
def say_hello(req, _stream) do
Helloworld.HelloReply.new(message: "Hello, #{req.name}")
end
end
defmodule SlowServer do
use Falco.Server,... | 28.73494 | 98 | 0.631027 |
655583a482d758e4b89d09c73527803d3303749c | 165 | exs | Elixir | priv/repo/migrations/20200724225354_shard_add_map_field.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | priv/repo/migrations/20200724225354_shard_add_map_field.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | priv/repo/migrations/20200724225354_shard_add_map_field.exs | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule Uro.Repo.Migrations.ShardSchemaAddMapField do
use Ecto.Migration
def change do
alter table(:shards) do
add :map, :string
end
end
end
| 15 | 55 | 0.70303 |
6555a7cc86da668e894a351c23f952601376a788 | 19,723 | ex | Elixir | lib/nebulex/caching.ex | escobera/nebulex | 1a35eb9fb47f8670bfaed174995701cbe7cf1281 | [
"MIT"
] | null | null | null | lib/nebulex/caching.ex | escobera/nebulex | 1a35eb9fb47f8670bfaed174995701cbe7cf1281 | [
"MIT"
] | null | null | null | lib/nebulex/caching.ex | escobera/nebulex | 1a35eb9fb47f8670bfaed174995701cbe7cf1281 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Decorator.Define) do
defmodule Nebulex.Caching do
@moduledoc ~S"""
Declarative annotation-based caching via function
[decorators](https://github.com/arjan/decorator).
For caching declaration, the abstraction provides three Elixir function
decorators: `cacheable `, `cache_ev... | 35.345878 | 130 | 0.642955 |
6555e61ce7b0f3f29412cc7ec6a7f0d54bad8fc8 | 1,096 | exs | Elixir | day7/test/day7_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | day7/test/day7_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | day7/test/day7_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | defmodule Day7Test do
use ExUnit.Case
doctest Day7
test "parses the input" do
parsed =
File.stream!("test/test_input.txt")
|> Day7.parse_input()
assert Enum.count(parsed) == 9
assert parsed |> Map.get("dark orange") |> Enum.count() == 2
end
test "inverted map" do
invert =
... | 21.490196 | 64 | 0.600365 |
6555fb6ef35aaf14cfb95f5ed3841533863510dd | 31,845 | exs | Elixir | test/hexpm/web/controllers/api/release_controller_test.exs | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/controllers/api/release_controller_test.exs | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/controllers/api/release_controller_test.exs | pragmaticivan/hexpm | 7845d1baaf14e8811df00db550b59e51ac9675c6 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.API.ReleaseControllerTest do
use Hexpm.ConnCase, async: true
alias Hexpm.Accounts.AuditLog
alias Hexpm.Repository.{Package, RegistryBuilder, Release, Repository}
setup do
user = insert(:user)
repository = insert(:repository)
package = insert(:package, package_owners: [build(:pa... | 35.780899 | 101 | 0.612969 |
655607139e2a7e06bc825273f2b0c7a4abef63a4 | 4,512 | ex | Elixir | oeml-sdk/elixir/lib/oeml_restapi/request_builder.ex | Martin-Molinero/coinapi-sdk | 8633f61e0809e7ee4032100fe08454e8c4ad5e0c | [
"MIT"
] | 357 | 2017-05-29T15:09:19.000Z | 2022-03-30T15:34:10.000Z | oeml-sdk/elixir/lib/oeml_restapi/request_builder.ex | Martin-Molinero/coinapi-sdk | 8633f61e0809e7ee4032100fe08454e8c4ad5e0c | [
"MIT"
] | 68 | 2017-12-15T15:39:14.000Z | 2022-02-11T11:28:17.000Z | oeml-sdk/elixir/lib/oeml_restapi/request_builder.ex | Martin-Molinero/coinapi-sdk | 8633f61e0809e7ee4032100fe08454e8c4ad5e0c | [
"MIT"
] | 199 | 2017-06-01T07:51:14.000Z | 2022-03-25T11:52:28.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OEML-RESTAPI.RequestBuilder do
@moduledoc """
Helper functions for building Tesla requests
"""
@doc """
Specify the request method when bui... | 27.180723 | 137 | 0.646277 |
65561d95b918384406428e8e54932c38469c16ac | 2,024 | exs | Elixir | config/prod.exs | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | 1 | 2021-05-19T01:25:54.000Z | 2021-05-19T01:25:54.000Z | config/prod.exs | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | null | null | null | config/prod.exs | Gustavo-Cauzzi/Cauzzipay | 912b3fa13dbb920a5af242134c77d44e63c39c6f | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.142857 | 66 | 0.716403 |
65564179d91e7286b0ce29d45495e546a623c284 | 5,112 | exs | Elixir | test/queryhub/osquery/osquery_test.exs | blaedj/queryhub | 1605d29e1d2b8a2a66bf911945dab441682083dc | [
"Apache-2.0"
] | null | null | null | test/queryhub/osquery/osquery_test.exs | blaedj/queryhub | 1605d29e1d2b8a2a66bf911945dab441682083dc | [
"Apache-2.0"
] | null | null | null | test/queryhub/osquery/osquery_test.exs | blaedj/queryhub | 1605d29e1d2b8a2a66bf911945dab441682083dc | [
"Apache-2.0"
] | null | null | null | defmodule QueryHub.OsqueryTest do
use QueryHub.DataCase
describe "queries" do
@valid_attrs %{
description: "some description",
launcher_version: "some launcher_version",
name: "some name",
osquery_version: "some osquery_version",
query: "some query"
}
@update_attrs %{
... | 34.08 | 96 | 0.667449 |
65564a04adbb929330883842db3cd8923e1bf003 | 609 | ex | Elixir | lib/boltex/pack_stream/encode_error.ex | dominique-vassard/boltex | acf71d9c97782d17ad9c07f7ea2a7e7f12dbb311 | [
"Apache-2.0"
] | 31 | 2016-07-19T00:05:56.000Z | 2020-04-28T12:28:43.000Z | lib/boltex/pack_stream/encode_error.ex | dominique-vassard/boltex | acf71d9c97782d17ad9c07f7ea2a7e7f12dbb311 | [
"Apache-2.0"
] | 24 | 2016-07-31T20:17:51.000Z | 2019-03-21T15:45:59.000Z | lib/boltex/pack_stream/encode_error.ex | dominique-vassard/boltex | acf71d9c97782d17ad9c07f7ea2a7e7f12dbb311 | [
"Apache-2.0"
] | 8 | 2016-08-01T12:56:29.000Z | 2017-03-22T23:02:49.000Z | defmodule Boltex.PackStream.EncodeError do
@moduledoc """
Represents an error when encoding data for the Boltex protocol.
Shamelessly inspired by @devinus' Poison encoder.
"""
defexception item: nil, message: nil
@typedoc """
Send back the `item` that cannot be encoded with a `message` explaining the ... | 25.375 | 92 | 0.65353 |
655656e3c88e78308b8049c28b0bb241a5725bc1 | 343 | exs | Elixir | mix.exs | ria-com/elixir-sql-wrapper | 1c25b99a1b24176db12decd456d4aac129e8ad4d | [
"MIT"
] | null | null | null | mix.exs | ria-com/elixir-sql-wrapper | 1c25b99a1b24176db12decd456d4aac129e8ad4d | [
"MIT"
] | null | null | null | mix.exs | ria-com/elixir-sql-wrapper | 1c25b99a1b24176db12decd456d4aac129e8ad4d | [
"MIT"
] | null | null | null | defmodule Ria.SQL.Mixfile do
use Mix.Project
def project do
[
app: :ria_sql,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
]
end
def application do
[extra_applications: []]
end
defp de... | 14.913043 | 40 | 0.553936 |
6556c06f26a7c812f355f53fc152191455629627 | 3,468 | exs | Elixir | test/norm/selection_test.exs | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | test/norm/selection_test.exs | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | test/norm/selection_test.exs | robbyronk/norm | ad0e82cacdb4e9f3a08b17e4ad60aec7082767c8 | [
"MIT"
] | null | null | null | defmodule Norm.SelectionTest do
use ExUnit.Case, async: true
import Norm
def user_schema, do: schema(%{
name: spec(is_binary()),
age: spec(is_integer() and &(&1 > 0)),
email: spec(is_binary() and &(&1 =~ ~r/@/))
})
@input %{
name: "chris",
age: 31,
email: "c@keathley.io"
}
... | 28.661157 | 105 | 0.540369 |
6556d4d63f05c6c9a768e80f33a40023f07d9408 | 4,213 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/binding.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/binding.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/security_center/lib/google_api/security_center/v1/model/binding.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... | 79.490566 | 1,972 | 0.753857 |
6556db5d50b165b792a3a386e4227c74f1f8fbd7 | 16,937 | ex | Elixir | deps/postgrex/lib/postgrex.ex | kemer15/etrel | bcdf7f6b6485bc428ce280945d3a248e47a51add | [
"Unlicense"
] | null | null | null | deps/postgrex/lib/postgrex.ex | kemer15/etrel | bcdf7f6b6485bc428ce280945d3a248e47a51add | [
"Unlicense"
] | null | null | null | deps/postgrex/lib/postgrex.ex | kemer15/etrel | bcdf7f6b6485bc428ce280945d3a248e47a51add | [
"Unlicense"
] | null | null | null | defmodule Postgrex do
@moduledoc """
PostgreSQL driver for Elixir.
This module handles the connection to Postgres, providing support
for queries, transactions, connection backoff, logging, pooling and
more.
Note that the notifications API (pub/sub) supported by Postgres is
handled by `Postgrex.Notificat... | 39.851765 | 104 | 0.667533 |
6556fee2f11c7d3db657d90ec3d67aace0e175da | 1,777 | exs | Elixir | mix.exs | membraneframework/membrane_ice | bf4ba95c15b395043720918f4f6f859b8dca56ce | [
"Apache-2.0"
] | 1 | 2022-03-12T14:24:53.000Z | 2022-03-12T14:24:53.000Z | mix.exs | membraneframework/membrane_ice | bf4ba95c15b395043720918f4f6f859b8dca56ce | [
"Apache-2.0"
] | null | null | null | mix.exs | membraneframework/membrane_ice | bf4ba95c15b395043720918f4f6f859b8dca56ce | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Libnice.Plugin.Mixfile do
use Mix.Project
@version "0.9.0"
@github_url "https://github.com/membraneframework/membrane_libnice_plugin"
def project do
[
app: :membrane_libnice_plugin,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
... | 24.680556 | 76 | 0.567248 |
65572d3fd404655bf45fc91148732fb2577bb820 | 1,121 | exs | Elixir | apps/codestock/config/config.exs | taylonr/get_functional_elixir | a519eb3689749883e3fe5dd59a17253571c5fd33 | [
"MIT"
] | 4 | 2017-04-16T21:07:36.000Z | 2021-07-21T10:27:10.000Z | apps/codestock/config/config.exs | taylonr/get_functional_elixir | a519eb3689749883e3fe5dd59a17253571c5fd33 | [
"MIT"
] | null | null | null | apps/codestock/config/config.exs | taylonr/get_functional_elixir | a519eb3689749883e3fe5dd59a17253571c5fd33 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.16129 | 73 | 0.752007 |
65575e79a39f8cd602a21cba872c6e1e606ff836 | 1,377 | ex | Elixir | lib/mix/tasks/generate_rpc.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | 1 | 2018-03-22T15:24:37.000Z | 2018-03-22T15:24:37.000Z | lib/mix/tasks/generate_rpc.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | 26 | 2018-07-22T01:10:59.000Z | 2019-10-20T08:43:10.000Z | lib/mix/tasks/generate_rpc.ex | tyrchen/ex_bitcoin | f399a3d2bd27fac0a4ba5e91379d5492ab94292a | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.ExBitcoin.GenerateRpc do
@moduledoc """
This CLI utilize the functionality of bitcoin-cli. If you want to generate your own elixir RPC with this CLI, please install bitcoin firstly.
"""
use Mix.Task
require Logger
alias ExBitcoinTask.GenerateRpc.{ListCmd, SingleCmd}
@list_cmd "bitcoin... | 21.857143 | 143 | 0.607117 |
6557761e5fd49561703f2c43d3a7e67fa2ccf6bb | 22,132 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/api/acl.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/calendar/lib/google_api/calendar/v3/api/acl.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/calendar/lib/google_api/calendar/v3/api/acl.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... | 51.113164 | 386 | 0.643186 |
65577ce3aba026ed572cb9cd37cdef4f7c2efb63 | 9,869 | ex | Elixir | apps/cms/lib/repo.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/cms/lib/repo.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/cms/lib/repo.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule CMS.Repo do
require Logger
@moduledoc """
Interface for the content CMS. Returns a variety of content
related structs, like %Event{} or %Basic{}
"""
use RepoCache, ttl: :timer.minutes(1)
import CMS.Helpers, only: [preview_opts: 1]
alias CMS.Partial.{
Banner,
Paragraph,
RouteP... | 27.567039 | 98 | 0.591651 |
655789db3f904eee84a51c4d1a373ac90edd3fb9 | 1,298 | exs | Elixir | mix.exs | FlorianGerhardt/geo_postgis | d09cf9128b9c3b22553a097413f3b2a53598e6dd | [
"MIT"
] | null | null | null | mix.exs | FlorianGerhardt/geo_postgis | d09cf9128b9c3b22553a097413f3b2a53598e6dd | [
"MIT"
] | null | null | null | mix.exs | FlorianGerhardt/geo_postgis | d09cf9128b9c3b22553a097413f3b2a53598e6dd | [
"MIT"
] | null | null | null | defmodule GeoPostgis.Mixfile do
use Mix.Project
def project do
[
app: :geo_postgis,
version: "3.0.0",
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
na... | 22.37931 | 62 | 0.55547 |
655796c42f439112bc2b2ba76d1d6907f919a148 | 3,325 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/expr.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/expr.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/expr.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.538462 | 129 | 0.705865 |
6557d06586cb3c41221c608d1489cdda5567b10b | 628 | exs | Elixir | elixir/bob/bob.exs | JonRowe/exercism_exercises | 7c840a122748ab59fc2b545c30b187626db87e3b | [
"MIT"
] | null | null | null | elixir/bob/bob.exs | JonRowe/exercism_exercises | 7c840a122748ab59fc2b545c30b187626db87e3b | [
"MIT"
] | null | null | null | elixir/bob/bob.exs | JonRowe/exercism_exercises | 7c840a122748ab59fc2b545c30b187626db87e3b | [
"MIT"
] | null | null | null | defmodule Bob do
def hey(message) do
cond do
Language.is_silence?(message) -> "Fine. Be that way!"
Language.is_question?(message) -> "Sure."
Language.is_aggresive?(message) -> "Whoa, chill out!"
true -> "Whatever."
end
end
end
defmodule Language do
... | 18.470588 | 61 | 0.601911 |
6557dd717db00a7ce61fb09fd6efbea6aeceb361 | 535 | ex | Elixir | poc_elixir/lib/receita_web/views/error_view.ex | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | poc_elixir/lib/receita_web/views/error_view.ex | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | poc_elixir/lib/receita_web/views/error_view.ex | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | defmodule ReceitaWeb.ErrorView do
use ReceitaWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from... | 31.470588 | 83 | 0.719626 |
6557df81eba318a140fa07a3b3f708bb3163740f | 1,002 | ex | Elixir | lib/etog_web/plugs/accept_language.ex | HoJSim/etog | dc2393e27915caf73eea0d8839ba198635c45ca6 | [
"MIT"
] | null | null | null | lib/etog_web/plugs/accept_language.ex | HoJSim/etog | dc2393e27915caf73eea0d8839ba198635c45ca6 | [
"MIT"
] | null | null | null | lib/etog_web/plugs/accept_language.ex | HoJSim/etog | dc2393e27915caf73eea0d8839ba198635c45ca6 | [
"MIT"
] | null | null | null | defmodule EtogWeb.Plugs.AcceptLanguage do
@moduledoc "set locale from cookies or an accept-language header"
import Plug.Conn
@language_header "accept-language"
@language_cookie "locale"
@locales ["en", "ru"]
def init(default), do: default
def call(conn, _default) do
locale = conn.cookies[@language... | 20.875 | 70 | 0.62475 |
6557ec0d618440bbb8d899b563a993f13454ef3c | 758 | exs | Elixir | apps/dtask_tui/mix.exs | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | apps/dtask_tui/mix.exs | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | apps/dtask_tui/mix.exs | fehu/elixir-dtask | 93b39a1acb616cdc7b4fffb4950e82021ef5b0f6 | [
"MIT"
] | null | null | null | defmodule DTask.App.Tui.MixProject do
use Mix.Project
def project do
[
app: :dtask_tui,
version: "0.2.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.12",
start_permanent: ... | 21.055556 | 59 | 0.539578 |
6557f5873679d405ab8ce07c4eb08b77dd37fea9 | 696 | exs | Elixir | mix.exs | ricardo-devis-agullo/Ve.KodeKata.MarsRover | e7e39fdcfd174d1d1fed404caeef980b092639ad | [
"Apache-2.0"
] | null | null | null | mix.exs | ricardo-devis-agullo/Ve.KodeKata.MarsRover | e7e39fdcfd174d1d1fed404caeef980b092639ad | [
"Apache-2.0"
] | null | null | null | mix.exs | ricardo-devis-agullo/Ve.KodeKata.MarsRover | e7e39fdcfd174d1d1fed404caeef980b092639ad | [
"Apache-2.0"
] | null | null | null | defmodule Mars.Mixfile do
use Mix.Project
def project do
[app: :mars,
version: "0.0.1",
elixir: "~> 1.2",
escript: [main_module: Mars],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "m... | 20.470588 | 77 | 0.606322 |
6558243124a6430548bbd86a63c09f7dd535dde7 | 61 | ex | Elixir | lib/turret_web/views/layout_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 1 | 2021-02-03T23:34:04.000Z | 2021-02-03T23:34:04.000Z | lib/turret_web/views/layout_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 58 | 2021-02-16T10:16:08.000Z | 2022-03-07T10:57:32.000Z | lib/turret_web/views/layout_view.ex | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | null | null | null | defmodule TurretWeb.LayoutView do
use TurretWeb, :view
end
| 15.25 | 33 | 0.803279 |
65582612cc4c3926a4b1b3271dc3bbc0f02648fc | 2,242 | ex | Elixir | lib/imagine_web/controllers/cms_template_controller.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 25 | 2020-09-08T05:13:40.000Z | 2022-03-15T13:35:59.000Z | lib/imagine_web/controllers/cms_template_controller.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | null | null | null | lib/imagine_web/controllers/cms_template_controller.ex | nacengineer/imagine_cms | 00a73790f9de6c409bb87e1fdfb3b41010a9d222 | [
"Apache-2.0"
] | 3 | 2021-08-11T03:48:54.000Z | 2022-02-09T20:11:06.000Z | defmodule ImagineWeb.CmsTemplateController do
use ImagineWeb, :controller
alias Imagine.CmsTemplates
alias Imagine.CmsTemplates.CmsTemplate
def index(conn, _params) do
cms_templates = CmsTemplates.list_cms_templates()
render(conn, "index.html", cms_templates: cms_templates)
end
def new(conn, _par... | 33.969697 | 83 | 0.697145 |
655841bca01dba2edaae592dd0089239599bce19 | 622 | ex | Elixir | notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/university/schemas/student.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 14 | 2021-11-19T00:22:09.000Z | 2022-01-29T03:58:09.000Z | notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/university/schemas/student.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | null | null | null | notebooks/modulo_4/parte_2/ecto_example/lib/ecto_example/university/schemas/student.ex | igorgbr/curso-alquimia-stone | c5e40b0efcb7eef282f0f13a421671580c2762c1 | [
"MIT"
] | 1 | 2022-03-01T00:49:50.000Z | 2022-03-01T00:49:50.000Z | defmodule EctoExample.University.Schemas.Student do
use Ecto.Schema
import Ecto.Changeset
alias EctoExample.University.Schemas.Enrollment
schema "students" do
field(:student_name, :string)
field(:grade, :decimal)
field(:high_school_size, :integer)
has_many(:enrollments, Enrollment, on_delete... | 24.88 | 68 | 0.715434 |
65588d528564c94ca3bc64fe9221acd21825b82e | 2,708 | ex | Elixir | tutorials/official-tutorial/alias-require-import.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | tutorials/official-tutorial/alias-require-import.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | tutorials/official-tutorial/alias-require-import.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | ########################################
# `alias`
########################################
defmodule Stats do
alias Math.List, as: List
# In the remaining module def, List expands to Math.List.
end
#=>
# warning: unused alias List
# nofile:2
# {:module, Stats,
# <<70, 79, 82, 49, 0, 0, 4, 28, 66, 69, 65, 77, 69,... | 26.038462 | 127 | 0.590842 |
6558dbe58461b86255d57e74a7e299ef2c2502e6 | 519 | exs | Elixir | priv/repo/migrations/20190601125902_create_polling_items.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | priv/repo/migrations/20190601125902_create_polling_items.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | priv/repo/migrations/20190601125902_create_polling_items.exs | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule Flowr.Repo.Migrations.CreatePollingItems do
use Ecto.Migration
def change do
create table(:polling_items, primary_key: false) do
add :id, :binary_id, primary_key: true
add :data, :map, null: false
add :item_id, :string, null: false
add :polling_id, references(:pollings, on_de... | 27.315789 | 96 | 0.693642 |
6558f61f8558546a36bf3a92dac4d20609c3ca8e | 3,134 | ex | Elixir | clients/domains/lib/google_api/domains/v1/model/transfer_domain_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/domains/lib/google_api/domains/v1/model/transfer_domain_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains/lib/google_api/domains/v1/model/transfer_domain_request.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... | 53.118644 | 460 | 0.742502 |
65590f45b8860d6f0581c3e6347c3c2b22b0ccae | 5,648 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_search_avg_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_search_avg_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_search_avg_aggregation_result.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStoreSearch.AvgAggregationResult) do
@moduledoc false
(
defstruct(value: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
rescue
... | 25.327354 | 94 | 0.484596 |
6559634ac97fb283eb01f14639700930af6270fe | 8,371 | exs | Elixir | test/ecto/query/inspect_test.exs | jwarwick/ecto | d1e43287775579e337a2e6a3763fa53ce2a33e4d | [
"Apache-2.0"
] | null | null | null | test/ecto/query/inspect_test.exs | jwarwick/ecto | d1e43287775579e337a2e6a3763fa53ce2a33e4d | [
"Apache-2.0"
] | null | null | null | test/ecto/query/inspect_test.exs | jwarwick/ecto | d1e43287775579e337a2e6a3763fa53ce2a33e4d | [
"Apache-2.0"
] | null | null | null | defmodule Inspect.Post do
use Ecto.Schema
schema "posts" do
field :visits, :integer
has_many :comments, Inspect.Comment
has_one :post, Inspect.Post
end
end
defmodule Inspect.Comment do
use Ecto.Schema
schema "comments" do
end
end
defmodule Ecto.Query.InspectTest do
use ExUnit.Case, async: ... | 34.73444 | 107 | 0.568869 |
6559821f72b3068e298e002d49a94d38b4d92742 | 3,501 | ex | Elixir | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.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... | 55.571429 | 423 | 0.742359 |
655992f83ed6e8a0d73c3e6aa92fdd15bd2a117a | 393 | ex | Elixir | lib/oli/authoring/editing/activity_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/authoring/editing/activity_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/authoring/editing/activity_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Authoring.Editing.ActivityContext do
@derive Jason.Encoder
defstruct [
:authoringScript,
:authoringElement,
:friendlyName,
:description,
:authorEmail,
:projectSlug,
:resourceId,
:resourceSlug,
:resourceTitle,
:activityId,
:activitySlug,
:title,
:mode... | 17.086957 | 50 | 0.643766 |
6559a260c1d049e7ad0d1ccf2293c5e3206bcb3d | 3,593 | ex | Elixir | lib/radiator/directory/editor/permission.ex | djschilling/radiator | 382e22904d7e400a8ffba54e9ddfd2845bc2b623 | [
"MIT"
] | null | null | null | lib/radiator/directory/editor/permission.ex | djschilling/radiator | 382e22904d7e400a8ffba54e9ddfd2845bc2b623 | [
"MIT"
] | null | null | null | lib/radiator/directory/editor/permission.ex | djschilling/radiator | 382e22904d7e400a8ffba54e9ddfd2845bc2b623 | [
"MIT"
] | null | null | null | defmodule Radiator.Directory.Editor.Permission do
import Ecto.Query, warn: false
use Radiator.Constants
alias Radiator.Repo
alias Radiator.Auth
alias Radiator.Perm.Permission
alias Radiator.Directory.{Network, Podcast, Episode, Audio}
alias Radiator.Perm.Ecto.PermissionType
@type permission() :: :re... | 26.226277 | 87 | 0.629279 |
6559a3fbe0803fefdf4b94ebe4ec5064adc925cf | 558 | ex | Elixir | lib/todo_api_web/views/changeset_view.ex | Thrasolt/todo-api | 2ad53cbb68c1429fa248cc13da456225cd241602 | [
"Unlicense"
] | 1 | 2020-11-12T08:26:51.000Z | 2020-11-12T08:26:51.000Z | lib/todo_api_web/views/changeset_view.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | 2 | 2021-03-09T14:57:40.000Z | 2021-05-10T08:05:24.000Z | lib/todo_api_web/views/changeset_view.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | null | null | null | defmodule TodoApiWeb.ChangesetView do
use TodoApiWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`TodoApiWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changeset, &t... | 27.9 | 65 | 0.738351 |
6559a89e4390dfd30b5e2f32493b58c1c6bbe59d | 205 | ex | Elixir | lib/amqp.ex | rrrene/amqp | 46eb14f5d31f4cab3ec91984f5eae04f8066d5a2 | [
"MIT"
] | null | null | null | lib/amqp.ex | rrrene/amqp | 46eb14f5d31f4cab3ec91984f5eae04f8066d5a2 | [
"MIT"
] | null | null | null | lib/amqp.ex | rrrene/amqp | 46eb14f5d31f4cab3ec91984f5eae04f8066d5a2 | [
"MIT"
] | null | null | null | defmodule AMQP do
defmacro __using__(_opts) do
quote do
alias AMQP.Connection
alias AMQP.Channel
alias AMQP.Exchange
alias AMQP.Queue
alias AMQP.Basic
end
end
end
| 17.083333 | 30 | 0.658537 |
6559ab9e8ccb04d0dd20594a6e2a705e808c272f | 69 | ex | Elixir | plugins/ucc_webrtc/lib/ucc_webrtc_web/views/flex_bar_view.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_webrtc/lib/ucc_webrtc_web/views/flex_bar_view.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_webrtc/lib/ucc_webrtc_web/views/flex_bar_view.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccWebrtcWeb.FlexBarView do
use UccWebrtcWeb, :view
end
| 13.8 | 37 | 0.811594 |
6559bb227d920216b9589124a9ffe35ba1accf65 | 1,949 | exs | Elixir | test/catalog_api/cart_item_test.exs | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 2 | 2018-03-03T18:23:07.000Z | 2018-05-03T00:36:02.000Z | test/catalog_api/cart_item_test.exs | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | 1 | 2018-03-04T17:55:11.000Z | 2018-03-04T17:55:11.000Z | test/catalog_api/cart_item_test.exs | mbramson/catalog_api | b7d1351196829b0bd58f4346610609da3cb5756c | [
"MIT"
] | null | null | null | defmodule CatalogApi.CartItemTest do
use ExUnit.Case
doctest CatalogApi.CartItem
alias CatalogApi.CartItem
@base_item_json %{
"cart_price" => "318.24",
"catalog_item_id" => 4_439_324,
"catalog_points" => 6365,
"catalog_price" => "318.24",
"currency" => "USD",
"error" => "",
"image_u... | 32.483333 | 97 | 0.642894 |
6559d5f923b2be6d5d400a4cc625d1d95644e063 | 7,809 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/genomics/lib/google_api/genomics/v1/model/action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/genomics/lib/google_api/genomics/v1/model/action.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... | 94.084337 | 862 | 0.740556 |
6559f6aeb6bd18e3250dac3b77f052e4cac4922b | 5,992 | exs | Elixir | mix.exs | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | null | null | null | mix.exs | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | null | null | null | mix.exs | achalagarwal/phoenix | 6534f05beda6696c50ca007d02c922fa168083d7 | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
if Mix.env() != :prod do
for path <- :code.get_path(),
Regex.match?(~r/phx_new\-\d+\.\d+\.\d.*\/ebin$/, List.to_string(path)) do
Code.delete_path(path)
end
end
@version "1.6.2"
@scm_url "https://github.com/phoenixframework/phoenix"
# I... | 27.486239 | 100 | 0.584279 |
655a094da63c1496472e55234be21589a7572147 | 938 | ex | Elixir | lib/mix/tasks/surface/surface.init/patchers/component.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 1,161 | 2019-12-12T02:30:52.000Z | 2021-03-11T17:55:44.000Z | lib/mix/tasks/surface/surface.init/patchers/component.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 248 | 2021-03-12T07:39:37.000Z | 2022-03-31T13:36:44.000Z | lib/mix/tasks/surface/surface.init/patchers/component.ex | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | 73 | 2019-12-12T13:57:41.000Z | 2021-03-11T21:46:10.000Z | defmodule Mix.Tasks.Surface.Init.Patchers.Component do
@moduledoc false
alias Mix.Tasks.Surface.Init.ExPatcher
import ExPatcher
def add_config(code, component, config) do
config_entry = "{#{component}, #{config}}"
patcher =
code
|> parse_string!()
|> find_call_with_args(:config, &ma... | 24.051282 | 86 | 0.561834 |
655a14e5c1fb9f11cdc10c8015d9c304824651f6 | 1,365 | exs | Elixir | integration_test/mix.exs | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 7 | 2021-01-31T04:51:08.000Z | 2022-01-09T06:59:28.000Z | integration_test/mix.exs | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | null | null | null | integration_test/mix.exs | nickurban/phoenix | 116a0d4660248a09886e80da5e36dc6e395723d5 | [
"MIT"
] | 2 | 2021-02-06T08:40:23.000Z | 2021-03-20T16:35:47.000Z | defmodule Phoenix.Integration.MixProject do
use Mix.Project
def project do
[
app: :phoenix_integration,
version: "0.1.0",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
defp elixirc_paths(:test), do... | 26.25 | 79 | 0.52674 |
655a266f027c6fe4321496524602a1ec4bdc47a6 | 295 | exs | Elixir | config/dev.exs | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | config/dev.exs | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | config/dev.exs | ryoung786/urepo | a8d3339fbb978afc031339678c897f48dc1cfd9e | [
"Apache-2.0"
] | null | null | null | import Config
config :urepo,
token: "secret",
private_key: "private.pem",
store: {Urepo.Store.Local, bucket: "repo", path: "repo"}
config :ex_aws, :s3,
region: "",
scheme: "http://",
host: "localhost",
port: 9000,
access_key_id: "minioadmin",
secret_access_key: "minioadmin"
| 19.666667 | 58 | 0.657627 |
655a2cc81648157367d66d4339dd0c19120e2201 | 6,274 | exs | Elixir | mix.exs | AlexJuca/phoenix | c5fa163e90716c0ee3eeb67778873be67c6f4b8b | [
"MIT"
] | null | null | null | mix.exs | AlexJuca/phoenix | c5fa163e90716c0ee3eeb67778873be67c6f4b8b | [
"MIT"
] | null | null | null | mix.exs | AlexJuca/phoenix | c5fa163e90716c0ee3eeb67778873be67c6f4b8b | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
@version "1.6.0-dev"
# If the elixir requirement is updated, we need to make the installer
# use at least the minimum requirement used here. Although often the
# installer is ahead of Phoenix itself.
@elixir_requirement "~> 1.9"
def project do
[
... | 27.278261 | 100 | 0.592604 |
655a58e2426b981cd4944beeb36045cf54a0b842 | 939 | exs | Elixir | mix.exs | tony612/eqc_ex | c71b2b3cae6d0973ee79dd05ac8bf86fdb51bf05 | [
"BSD-3-Clause"
] | 86 | 2015-04-11T13:19:36.000Z | 2021-01-21T02:23:16.000Z | mix.exs | tony612/eqc_ex | c71b2b3cae6d0973ee79dd05ac8bf86fdb51bf05 | [
"BSD-3-Clause"
] | 8 | 2015-05-25T08:10:54.000Z | 2021-09-10T12:52:04.000Z | mix.exs | tony612/eqc_ex | c71b2b3cae6d0973ee79dd05ac8bf86fdb51bf05 | [
"BSD-3-Clause"
] | 14 | 2015-04-11T13:19:42.000Z | 2021-07-23T16:08:24.000Z | defmodule EQC.Mixfile do
use Mix.Project
@version "1.4.2"
def project do
[ app: :eqc_ex,
version: @version,
elixir: "~> 1.3",
test_pattern: "*_{test,eqc}.exs",
deps: deps(),
docs: docs(),
package: package(),
description: "Wrappers to facilitate using Quviq QuickChec... | 19.5625 | 80 | 0.533546 |
655a661a3cdbd0c429de27d64fe9b00a1a0eda0f | 3,065 | exs | Elixir | mix.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | mix.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | mix.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.MixProject do
use Mix.Project
@vsn File.read!("VERSION")
def project do
[
app: :console,
version: @vsn,
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
lockfile: "mix.lock",
elixir: "~> 1.9",
elixirc_paths: elixirc_... | 30.346535 | 132 | 0.489723 |
655a97864fe36da7161a0f131f93c023da9b0cc8 | 2,283 | exs | Elixir | apps/ewallet/test/ewallet/web/v1/serializers/balance_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/web/v1/serializers/balance_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/web/v1/serializers/balance_serializer_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # 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 ... | 27.178571 | 77 | 0.628559 |
655a9e95711d1264aa244a86c163842b07156126 | 72 | exs | Elixir | test/test_helper.exs | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | 10 | 2020-08-25T07:52:23.000Z | 2020-12-06T12:44:44.000Z | test/test_helper.exs | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | 5 | 2019-03-05T07:21:56.000Z | 2022-01-17T09:47:23.000Z | test/test_helper.exs | Amuhar/plumbapius | a9066512f520f2ad97e677b04d70cc62695f2def | [
"Apache-2.0"
] | 2 | 2020-09-03T14:29:00.000Z | 2021-05-26T11:07:37.000Z | ExUnit.start(capture_log: true)
Application.ensure_all_started(:bypass)
| 24 | 39 | 0.847222 |
655ad947b8a874fa58d4a63ce5a697e1ce5e35f2 | 3,288 | ex | Elixir | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_type_expr.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_type_expr.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_type_expr.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... | 58.714286 | 1,092 | 0.738139 |
655b467ae3cd806e77c3aa294072c5a6e111363b | 1,669 | ex | Elixir | web/web.ex | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | web/web.ex | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | web/web.ex | colbydehart/MartaWhistle | 852d1aaecb1fe5705fdcaab30283870613f6a66f | [
"MIT"
] | null | null | null | defmodule TrainWhistle.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use TrainWhistle.Web, :controller
use TrainWhistle.Web, :view
The definitions below will be executed for every view,
controller, etc, s... | 20.353659 | 88 | 0.677052 |
655b771aa4c5fd30136f2ec6fb9cae3ca5e9ae2f | 1,876 | exs | Elixir | test/lib/atreyu/parser_test.exs | maur8ino/atreyu | 12953af369d49610e66767c2d73155f95678601b | [
"MIT"
] | 1 | 2016-07-18T15:36:58.000Z | 2016-07-18T15:36:58.000Z | test/lib/atreyu/parser_test.exs | maur8ino/atreyu | 12953af369d49610e66767c2d73155f95678601b | [
"MIT"
] | null | null | null | test/lib/atreyu/parser_test.exs | maur8ino/atreyu | 12953af369d49610e66767c2d73155f95678601b | [
"MIT"
] | null | null | null | defmodule Atreyu.ParserTest do
use ExUnit.Case
import Atreyu
test "parses a simple key string" do
assert {:ok, ["one", "two", "three"]} = parse("one.two.three")
end
test "parses a string with indexers" do
assert {:ok, ["one", 0]} = parse("one[0]")
end
test "parses a string with indexers follow... | 33.5 | 132 | 0.590618 |
655bd300208e1e823669aa1261c5be1d27b3fdb6 | 1,884 | ex | Elixir | lib/identicon.ex | Buckshot-77/Elixir-Identicon | dc00d3e4c150ecf247dab5c449712d2f95304b6e | [
"MIT"
] | null | null | null | lib/identicon.ex | Buckshot-77/Elixir-Identicon | dc00d3e4c150ecf247dab5c449712d2f95304b6e | [
"MIT"
] | null | null | null | lib/identicon.ex | Buckshot-77/Elixir-Identicon | dc00d3e4c150ecf247dab5c449712d2f95304b6e | [
"MIT"
] | null | null | null | defmodule Identicon do
@moduledoc """
Documentation for `Identicon`.
"""
def main(input) do
input
|> hash_input()
|> pick_colour()
|> generate_grid()
|> filter_out_odd_squares()
|> build_pixel_map()
|> draw_image()
|> save_image(input)
end
def save_image(file, filename) do
... | 24.467532 | 79 | 0.626858 |
655bf0cd21bf2fe20a9e30ebec63c5bd68df86a6 | 3,503 | ex | Elixir | kousa/lib/beef/users.ex | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/lib/beef/users.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/lib/beef/users.ex | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Beef.Users do
@moduledoc """
Context module for Users. This module acts as a "gateway" module defining
the "boundary" for Users database access. Consider Beef.Users.* modules
to be "private modules". If in the future we would like to enforce these
boundary conditions at compile time, consider usi... | 50.768116 | 96 | 0.749643 |
655c09d7a19caa2a8bdd1cfcccd2d45fbb42ab11 | 39,307 | exs | Elixir | lib/elixir/test/elixir/typespec_test.exs | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/typespec_test.exs | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/typespec_test.exs | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
# Holds tests for both Kernel.Typespec and Code.Typespec
defmodule TypespecTest do
use ExUnit.Case, async: true
alias TypespecTest.TypespecSample
defstruct [:hello]
defmacrop test_module(do: block) do
quote do
{:module, _, bytecode, _} =
defmodu... | 33.595726 | 110 | 0.539395 |
655c0a3c6dfd2cbf960d9c9666756dd281a7a97d | 1,822 | exs | Elixir | config/config.exs | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 64 | 2020-02-10T20:42:46.000Z | 2021-11-16T10:47:50.000Z | config/config.exs | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 16 | 2020-02-10T20:45:57.000Z | 2022-03-04T12:53:34.000Z | config/config.exs | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 4 | 2020-04-03T17:13:19.000Z | 2020-07-17T12:56:31.000Z | # 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.
use Mix.Config
config :mailgun_logger,
ecto_repos: [MailgunLogger.Repo],
env: Mix.env()
# Confi... | 33.740741 | 110 | 0.755214 |
655c1053e2e28237f96495d9bbb7392bc07f4a31 | 4,290 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/google_cloud_saasaccelerator_management_providers_v1_slo_metadata.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.058824 | 222 | 0.747552 |
655c1d3009d4e5ad5bb57ffe671c97eeb3ab5875 | 2,531 | ex | Elixir | lib/mailmaid/smtp/server.ex | tsg-global/mailmaid | 1f76beb4a7fe0f397a239baa189a3dac4d5b5602 | [
"MIT"
] | 6 | 2018-08-05T14:57:46.000Z | 2021-03-19T12:28:43.000Z | lib/mailmaid/smtp/server.ex | tsg-global/mailmaid | 1f76beb4a7fe0f397a239baa189a3dac4d5b5602 | [
"MIT"
] | 2 | 2018-05-14T00:41:08.000Z | 2018-08-24T19:52:17.000Z | lib/mailmaid/smtp/server.ex | tsg-global/mailmaid | 1f76beb4a7fe0f397a239baa189a3dac4d5b5602 | [
"MIT"
] | 2 | 2019-11-27T21:04:11.000Z | 2020-07-11T10:50:48.000Z | require Logger
defmodule Mailmaid.SMTP.Server do
defmacro __using__(_opts) do
quote do
@behaviour Mailmaid.SMTP.Protocol
end
end
@moduledoc """
Options
"""
alias :ranch, as: Ranch
@type ubyte_t :: {0..255}
@type int16_t :: {0..0xFFFF}
@type ipv4_t :: {ubyte_t, ubyte_t, ubyte_t, ubyte_... | 33.302632 | 122 | 0.649546 |
655c91d4818580383bd6f7f0aaeb33682977c0d7 | 1,444 | ex | Elixir | lib/pow/extension/config.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | lib/pow/extension/config.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | lib/pow/extension/config.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | defmodule Pow.Extension.Config do
@moduledoc """
Configuration helpers for extensions.
"""
alias Pow.{Config, Extension.Base}
@doc """
Fetches the `:extensions` key from the configuration.
"""
@spec extensions(Config.t()) :: [atom()]
def extensions(config) do
Config.get(config, :extensions, [])
... | 27.245283 | 79 | 0.688366 |
655ca15143357bbe73031062d6b9f4076e84016f | 2,223 | exs | Elixir | config/dev.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | config/dev.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | config/dev.exs | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :multiple_products, MultipleProducts.Repo,
username: "postgres",
password: "postgres",
database: "multiple_products_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
#... | 28.87013 | 68 | 0.702654 |
655cbbb25b053778f1e1560c17e908648b946f20 | 550 | exs | Elixir | day14/test/day14_test.exs | the-shank/advent-of-code-2018 | 3be3958adad61e62e8a7ea6ec6a868f049c7a7e4 | [
"Apache-2.0"
] | 7 | 2018-12-12T01:08:24.000Z | 2019-12-09T19:50:36.000Z | day14/test/day14_test.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | day14/test/day14_test.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | defmodule Day14Test do
use ExUnit.Case
doctest Day14
test "part 1, examples" do
assert Day14.part1(5) == "0124515891"
assert Day14.part1(9) == "5158916779"
assert Day14.part1(18) == "9251071085"
assert Day14.part1(2018) == "5941429882"
assert Day14.part1(74501) == "1464411010"
end
test "... | 26.190476 | 46 | 0.652727 |
655cbc41e3176f7d1698b3a2b97a52406644b02a | 1,909 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/media_author.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/media_author.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/plus_domains/lib/google_api/plus_domains/v1/model/media_author.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... | 34.089286 | 130 | 0.700891 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.