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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97a61885866bd2bd99f2aca5cafffa760bc4e5b5 | 7,913 | exs | Elixir | test/ex_doc/formatter/html/autolink_test.exs | k1complete/ex_doc | 512dcabef778f9af675dbdfc44fa2bef2b8924f0 | [
"Apache-2.0"
] | null | null | null | test/ex_doc/formatter/html/autolink_test.exs | k1complete/ex_doc | 512dcabef778f9af675dbdfc44fa2bef2b8924f0 | [
"Apache-2.0"
] | null | null | null | test/ex_doc/formatter/html/autolink_test.exs | k1complete/ex_doc | 512dcabef778f9af675dbdfc44fa2bef2b8924f0 | [
"Apache-2.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.AutolinkTest do
use ExUnit.Case, async: true
alias ExDoc.Formatter.HTML.Autolink
# local_doc
test "autolink fun/arity in docs" do
assert Autolink.local_doc("`example/2`", ["example/2"]) == "[`example/2`](#example/2)"
assert Autolink.local_doc("`example/2` then `example/... | 50.082278 | 130 | 0.637685 |
97a666736362f69228c2b93f86af2046123dcc65 | 10,513 | exs | Elixir | test/search_live_bang_test.exs | niccolox/hui | d0eecd0176d1bf3c9ff4075ab1c6048e3d1c25b3 | [
"Apache-2.0"
] | null | null | null | test/search_live_bang_test.exs | niccolox/hui | d0eecd0176d1bf3c9ff4075ab1c6048e3d1c25b3 | [
"Apache-2.0"
] | null | null | null | test/search_live_bang_test.exs | niccolox/hui | d0eecd0176d1bf3c9ff4075ab1c6048e3d1c25b3 | [
"Apache-2.0"
] | null | null | null | defmodule HuiSearchLiveBangTest do
use ExUnit.Case, async: true
# tests using live Solr cores/collections that are
# excluded by default, use '--only live' or
# change tag value of :live to true to run tests
#
# this required a configured working Solr core/collection
# see: Configuration for further de... | 45.314655 | 180 | 0.648911 |
97a68bb233771b5920cefa13d2f87d2a72deab21 | 1,125 | exs | Elixir | config/config.exs | kouwasi/steam_ex | b06469ad5bce8da60b4436f842b57287cb1db18f | [
"MIT"
] | 2 | 2018-08-25T10:50:04.000Z | 2018-10-02T02:05:01.000Z | config/config.exs | kouwasi/steam_ex | b06469ad5bce8da60b4436f842b57287cb1db18f | [
"MIT"
] | null | null | null | config/config.exs | kouwasi/steam_ex | b06469ad5bce8da60b4436f842b57287cb1db18f | [
"MIT"
] | 1 | 2018-10-02T02:05:04.000Z | 2018-10-02T02:05:04.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.290323 | 73 | 0.752 |
97a6b3c391466483eecd42d4805b10401ce33f7d | 562 | ex | Elixir | packages/sim/apps/crowd/lib/crowd/components/position_component.ex | TNOCS/popsim | a25cca22de42161ef3bc4848c6c20bfdc85f7647 | [
"MIT"
] | 1 | 2017-09-23T09:41:44.000Z | 2017-09-23T09:41:44.000Z | packages/sim/apps/crowd/lib/crowd/components/position_component.ex | TNOCS/popsim | a25cca22de42161ef3bc4848c6c20bfdc85f7647 | [
"MIT"
] | 8 | 2017-06-21T07:57:47.000Z | 2017-06-22T13:09:32.000Z | packages/sim/apps/crowd/lib/crowd/components/position_component.ex | TNOCS/popsim | a25cca22de42161ef3bc4848c6c20bfdc85f7647 | [
"MIT"
] | 1 | 2021-02-14T16:50:16.000Z | 2021-02-14T16:50:16.000Z | defmodule Crowd.Components.PositionComponent do
@moduledoc """
Component that contains the variables to make an entity position in the world.
"""
@behaviour ECS.Component
@component_type :position
@doc """
Create a new position component.
"""
@spec new(%{ x: float, y: float, z: float, inside?: boole... | 29.578947 | 95 | 0.633452 |
97a6df54c99bc9ce04a59734312e35933cf1a869 | 3,817 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/baseline_value_format.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/baseline_value_format.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/baseline_value_format.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 56.132353 | 266 | 0.727797 |
97a70f45b4e0edaf3488400623da9e75078a6a75 | 99 | ex | Elixir | lib/game/player.ex | toranb/liveview-workshop | bd78cf16e246c0cdb575c824f812335dd752c6d0 | [
"MIT"
] | 2 | 2021-09-14T02:46:48.000Z | 2021-10-15T20:52:30.000Z | lib/game/player.ex | toranb/liveview-workshop | bd78cf16e246c0cdb575c824f812335dd752c6d0 | [
"MIT"
] | 3 | 2021-09-06T19:26:18.000Z | 2021-09-06T19:27:04.000Z | lib/game/player.ex | toranb/liveview-workshop | bd78cf16e246c0cdb575c824f812335dd752c6d0 | [
"MIT"
] | null | null | null | defmodule Game.Player do
defstruct user_id: nil, username: nil, icon: nil, wins: 0, plays: 0
end
| 24.75 | 69 | 0.727273 |
97a71e2e904e0fa139016f4d2911c505a77280a5 | 12,922 | ex | Elixir | priv/templates/phx.gen.auth/context_functions.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 1 | 2022-02-05T13:37:59.000Z | 2022-02-05T13:37:59.000Z | priv/templates/phx.gen.auth/context_functions.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | priv/templates/phx.gen.auth/context_functions.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 1 | 2018-10-01T19:42:35.000Z | 2018-10-01T19:42:35.000Z | alias <%= inspect context.module %>.{<%= inspect schema.alias %>, <%= inspect schema.alias %>Token, <%= inspect schema.alias %>Notifier}
## Database getters
@doc """
Gets a <%= schema.singular %> by email.
## Examples
iex> get_<%= schema.singular %>_by_email("foo@example.com")
%<%= inspect sch... | 37.455072 | 172 | 0.634422 |
97a72b0f7f4cdea71f24aa50fcc564782b6a586e | 10,252 | exs | Elixir | test/json_schema_test_suite/draft4/type_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft4/type_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft4/type_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | defmodule JsonSchemaTestSuite.Draft4.TypeTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe "integer type matches integers" do
setup do
%{
schema:
Xema.from_json_schema(
%{"type" => "integer"},
draft: "draft4"
)
}
end
test... | 22.782222 | 92 | 0.556574 |
97a75f68c53b39d4c68f5714ed289064702f84df | 1,641 | ex | Elixir | plugins/one_wiki/lib/one_wiki_web/flex_tab/tab/info.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_wiki/lib/one_wiki_web/flex_tab/tab/info.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_wiki/lib/one_wiki_web/flex_tab/tab/info.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWikiWeb.FlexBar.Tab.Info do
@moduledoc """
OneWiki Info Flex Tab.
"""
use OneChatWeb.FlexBar.Helpers
use OneLogger
alias InfinityOne.{TabBar.Tab}
alias InfinityOne.{TabBar}
alias OneWikiWeb.FlexBarView
# alias OneChatWeb.RebelChannel.Client
alias OneWiki.Page
alias OneWiki.Settings.W... | 19.535714 | 65 | 0.598416 |
97a769a6c430891dbd1b2936c062be6a2a826453 | 2,670 | ex | Elixir | lib/taut/room.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | lib/taut/room.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | lib/taut/room.ex | shimmerlabs/taut | 1f38f5ccfc39b94aa392105af6dfbf3a44a9cc19 | [
"MIT"
] | null | null | null | defmodule Taut.Room do
use Taut.Model
alias Taut.Message
schema "taut_rooms" do
field :name, :string
field :private, :boolean, default: false
field :topic, :string
has_many :subscriptions, Taut.Subscription
has_many :users, through: [:subscriptions, :user]
timestamps(type: :utc_datetim... | 25.92233 | 81 | 0.623221 |
97a78cbd445b1ff10b699b8405f6cf49c0c868ac | 1,105 | ex | Elixir | lib/chat_api_web/views/csv_helpers.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | lib/chat_api_web/views/csv_helpers.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | lib/chat_api_web/views/csv_helpers.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.CSVHelpers do
@moduledoc """
Helper functions to deal with CSV data.
This module is compliant with RFC-4180
"""
@doc """
Dumps an enumerable of maps or structs into a csv string
using the given fields with respective order.
## Examples
iex> CSVHelpers.dump_csv_rfc4180([%{n... | 26.95122 | 97 | 0.58009 |
97a79d62261d3bbd66ffb303c69f332cc14367b6 | 1,683 | exs | Elixir | test/surface_bulma/tag_test.exs | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | null | null | null | test/surface_bulma/tag_test.exs | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | null | null | null | test/surface_bulma/tag_test.exs | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | null | null | null | defmodule Surface.Components.TagTest do
use SurfaceBulma.ConnCase, async: true
alias SurfaceBulma.Tag
test "create a tag" do
html =
render_surface do
~F"""
<Tag>tag</Tag>
"""
end
assert html =~ """
<span class="tag">
tag
</span>
... | 17.53125 | 53 | 0.425431 |
97a7ba900633c8b5c895138977b321b13a4e94e3 | 1,669 | exs | Elixir | apps/snitch_core/priv/repo/migrations/20181024091825_add_postgres_money_aggregate_functions.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/priv/repo/migrations/20181024091825_add_postgres_money_aggregate_functions.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/priv/repo/migrations/20181024091825_add_postgres_money_aggregate_functions.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Repo.Migrations.AddPostgresMoneyAggregateFunctions do
use Ecto.Migration
def up do
execute """
CREATE OR REPLACE FUNCTION money_state_function(agg_state money_with_currency, money money_with_currency)
RETURNS money_with_currency
IMMUTABLE
LANGUAGE plpgsql
AS $$
... | 30.907407 | 117 | 0.621929 |
97a8360065decf126d53654427f4875b5bea9919 | 27,728 | ex | Elixir | lib/oban.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | lib/oban.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | lib/oban.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | defmodule Oban do
@external_resource readme = Path.join([__DIR__, "../README.md"])
@moduledoc readme
|> File.read!()
|> String.split("<!-- MDOC -->")
|> Enum.fetch!(1)
@moduledoc since: "0.1.0"
use Supervisor
alias Ecto.{Changeset, Multi}
alias Oban.{Config, Connec... | 32.506448 | 101 | 0.666943 |
97a861d3218b40a6b52b7357fedc306dfe42a8bb | 523 | exs | Elixir | mix.exs | oestrich/venture_bot | 366a4726f3c952e2c850c79f1b36fa054b5f7a24 | [
"MIT"
] | 4 | 2018-11-08T17:59:44.000Z | 2019-09-13T15:10:50.000Z | mix.exs | oestrich/venture_bot | 366a4726f3c952e2c850c79f1b36fa054b5f7a24 | [
"MIT"
] | null | null | null | mix.exs | oestrich/venture_bot | 366a4726f3c952e2c850c79f1b36fa054b5f7a24 | [
"MIT"
] | null | null | null | defmodule VentureBot.MixProject do
use Mix.Project
def project do
[
app: :venture_bot,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ex... | 18.034483 | 59 | 0.577438 |
97a862e259fa279e7a9d364fd3c5cf71bf1a5b51 | 1,131 | exs | Elixir | apps/secure_storage/test/secure_storage/encryption/aes_gcm_test.exs | thebugcatcher/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | 2 | 2021-04-03T14:10:20.000Z | 2021-07-07T21:17:35.000Z | apps/secure_storage/test/secure_storage/encryption/aes_gcm_test.exs | thebugcatcher/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | null | null | null | apps/secure_storage/test/secure_storage/encryption/aes_gcm_test.exs | thebugcatcher/heimdall | 5da4d2afcf80a8dabd23bbd22b19e24bcbd507a9 | [
"MIT"
] | 1 | 2021-11-09T00:59:46.000Z | 2021-11-09T00:59:46.000Z | defmodule SecureStorage.Encryption.AesGcmTest do
use ExUnit.Case
@module SecureStorage.Encryption.AesGcm
describe "behaviour" do
test "it behaves like SecureStorage.Encryption" do
behaviour_modules =
:attributes
|> @module.__info__()
|> Keyword.get(:behaviour)
assert Enu... | 21.339623 | 70 | 0.640141 |
97a86503324df4c8cb95a0dda4b352820e60ac46 | 3,211 | ex | Elixir | lib/csv/encoding/encoder.ex | agsilvajonathan/csv | 0de3a6a5d350c60e9344ea5b12d4dc8e6cb0138b | [
"MIT"
] | 464 | 2015-03-24T22:03:51.000Z | 2022-03-31T06:24:40.000Z | lib/csv/encoding/encoder.ex | agsilvajonathan/csv | 0de3a6a5d350c60e9344ea5b12d4dc8e6cb0138b | [
"MIT"
] | 104 | 2015-03-25T09:52:34.000Z | 2022-03-11T11:22:47.000Z | lib/csv/encoding/encoder.ex | agsilvajonathan/csv | 0de3a6a5d350c60e9344ea5b12d4dc8e6cb0138b | [
"MIT"
] | 93 | 2015-03-25T08:58:00.000Z | 2021-12-08T19:44:45.000Z | defmodule CSV.Encoding.Encoder do
use CSV.Defaults
@moduledoc ~S"""
The Encoder CSV module takes a table stream and transforms it into RFC 4180
compliant stream of lines for writing to a CSV File or other IO.
"""
@doc """
Encode a table stream into a stream of RFC 4180 compliant CSV lines for
writing ... | 31.480392 | 78 | 0.608533 |
97a868cc5556c6f8678c1d258f0398f6e21bb5c5 | 7,974 | ex | Elixir | lib/gat_core/ogn_object.ex | SylwBar/gat_core | b37c12e1004e1ee11b3d515f51f02319d0ac3a93 | [
"MIT"
] | null | null | null | lib/gat_core/ogn_object.ex | SylwBar/gat_core | b37c12e1004e1ee11b3d515f51f02319d0ac3a93 | [
"MIT"
] | null | null | null | lib/gat_core/ogn_object.ex | SylwBar/gat_core | b37c12e1004e1ee11b3d515f51f02319d0ac3a93 | [
"MIT"
] | null | null | null | defmodule GATCore.OGNObject do
use GenServer
require Logger
# Inactivity timeout check set to 1 minute
@inactive_check_msec 60_000
# Inactive event after 30 minutes
@inactive_event_time_msec 30 * 60_000
# Process exit after 120 minutes of inactivity
@process_exit_time_msec 120 * 60_000
# ----- OGNOb... | 29.643123 | 128 | 0.551292 |
97a87f4095ea050aebee99a4798e5d430ad1c91c | 1,577 | ex | Elixir | apps/hard_hat/lib/hard_hat/account.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | 15 | 2016-08-09T21:27:54.000Z | 2020-12-03T11:21:10.000Z | apps/hard_hat/lib/hard_hat/account.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | 15 | 2016-08-04T21:11:05.000Z | 2017-08-02T17:46:17.000Z | apps/hard_hat/lib/hard_hat/account.ex | gullintanni/gullintanni | 63c58b7ea438a4c6885a13842d8e33d3b1273ced | [
"0BSD"
] | null | null | null | defmodule HardHat.Account do
@moduledoc """
Wraps the accounts API entity.
A user might have access to multiple accounts. This is usually the account
corresponding to the user directly and one account per GitHub organization.
<https://docs.travis-ci.com/api/#accounts>
"""
import HardHat
alias __MODU... | 22.855072 | 79 | 0.62714 |
97a8e30f7762fe2910dd224b06ca293e2ad8160b | 74 | ex | Elixir | backend/apps/students_crm_v2_web/lib/students_crm_v2_web/views/email_view.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | backend/apps/students_crm_v2_web/lib/students_crm_v2_web/views/email_view.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | 50 | 2018-07-29T09:17:35.000Z | 2019-02-26T05:23:34.000Z | backend/apps/students_crm_v2_web/lib/students_crm_v2_web/views/email_view.ex | KyivKrishnaAcademy/students_crm_v2 | e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6 | [
"MIT"
] | null | null | null | defmodule StudentsCrmV2Web.EmailView do
use StudentsCrmV2Web, :view
end
| 18.5 | 39 | 0.837838 |
97a8e9d7ba087eb976f229d6a5d78aa1e3f343f7 | 2,621 | ex | Elixir | apps/shoppingcart/lib/shoppingcart/persistence/domain.pb.ex | sleipnir/elixir_support | b296e4aad1f3f642590c3f29f4dccafc80c5df0e | [
"Apache-2.0"
] | 2 | 2020-07-27T10:12:55.000Z | 2020-07-27T18:40:25.000Z | apps/shoppingcart/lib/shoppingcart/persistence/domain.pb.ex | sleipnir/elixir_support | b296e4aad1f3f642590c3f29f4dccafc80c5df0e | [
"Apache-2.0"
] | 11 | 2020-10-26T19:55:18.000Z | 2020-11-10T00:23:28.000Z | apps/shoppingcart/lib/shoppingcart/persistence/domain.pb.ex | sleipnir/elixir_support | b296e4aad1f3f642590c3f29f4dccafc80c5df0e | [
"Apache-2.0"
] | null | null | null | defmodule Domain.LineItem do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
productId: String.t(),
name: String.t(),
quantity: integer
}
defstruct [:productId, :name, :quantity]
def descriptor do
# credo:disable-for-next-line
Elixir.Goog... | 27.882979 | 98 | 0.578405 |
97a9174181e5953b721e20cc720b52ffbfd05944 | 2,917 | ex | Elixir | lib/uro_web/controllers/dashboard/user_content/avatar_controller.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | lib/uro_web/controllers/dashboard/user_content/avatar_controller.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | lib/uro_web/controllers/dashboard/user_content/avatar_controller.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule UroWeb.Dashboard.UserContent.AvatarController do
use UroWeb, :controller
alias Uro.UserContent
alias Uro.UserContent.Avatar
@user_content_data_param_name "user_content_data"
@user_content_preview_param_name "user_content_preview"
def index(conn, params) do
page = UserContent.list_avatars_up... | 36.924051 | 160 | 0.672609 |
97a9435d7c9cd7161944850fdfd502829bd1312b | 1,545 | exs | Elixir | mix.exs | the-mikedavis/extreme | c467bba50f96df4a37cce561252efbac9b0d351a | [
"MIT"
] | null | null | null | mix.exs | the-mikedavis/extreme | c467bba50f96df4a37cce561252efbac9b0d351a | [
"MIT"
] | null | null | null | mix.exs | the-mikedavis/extreme | c467bba50f96df4a37cce561252efbac9b0d351a | [
"MIT"
] | null | null | null | defmodule Extreme.Mixfile do
use Mix.Project
def project do
[
app: :extreme,
version: "1.0.1",
elixir: "~> 1.7",
elixirc_paths: _elixirc_paths(Mix.env()),
source_url: "https://github.com/exponentially/extreme",
description: """
Elixir TCP client for EventStore.
"... | 24.919355 | 89 | 0.533981 |
97a944f2c40feed1bcfb09fb2507a8d7e9a707bf | 1,419 | ex | Elixir | lib/mix/tasks/server.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/server.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/server.ex | aforward-oss/dynamo | c8d47dab7de3ce730d4ec314d23e171051d5eff7 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Server do
use Mix.Task
@shortdoc "Run all Dynamos in a web server"
@recursive true
@moduledoc """
Runs all registered Dynamos in their servers.
## Command line options
* `-h`, `--host` - bind to the given ip
* `-p`, `--port` - the port to listen to
"""
def run(args) do
... | 25.339286 | 94 | 0.636364 |
97a945fbc2bacd5588215c33651b56979420314c | 17 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_match_operation_parsing_test_case/Sigil.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~c{one} = ~s{two} | 17 | 17 | 0.470588 |
97a94e21de43df781724f882659b433fe86c835f | 2,465 | exs | Elixir | test/pco_api/people/workflow/card/note_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 4 | 2016-05-13T20:04:32.000Z | 2020-12-03T11:25:01.000Z | test/pco_api/people/workflow/card/note_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 23 | 2016-05-14T01:34:02.000Z | 2016-08-16T22:34:40.000Z | test/pco_api/people/workflow/card/note_test.exs | geolessel/pco-api-elixir | 6f4d9f86247a1f6370a512166e9fed3a216302e5 | [
"MIT"
] | 4 | 2016-05-27T23:40:39.000Z | 2019-10-06T17:36:40.000Z | defmodule PcoApi.People.Workflow.Card.NoteTest do
use ExUnit.Case
alias PcoApi.People.Workflow.Card.Note
alias TestHelper.Fixture
setup do
bypass = Bypass.open
Application.put_env(:pco_api, :endpoint_base, "http://localhost:#{bypass.port}/")
{:ok, bypass: bypass}
end
test ".list requests the v... | 31.202532 | 85 | 0.672617 |
97a96a7627df6b7c4a22eac7cdf9fb4710027489 | 9,154 | ex | Elixir | lib/sanbase/timeline/timeline_event.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase/timeline/timeline_event.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase/timeline/timeline_event.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule Sanbase.Timeline.TimelineEvent do
@moduledoc ~s"""
Persisting events on create/update insights, watchlists and triggers
"""
@behaviour Sanbase.Entity.Behaviour
use Ecto.Schema
import Ecto.Query
import Ecto.Changeset
import Sanbase.Utils.Transform, only: [to_bang: 1]
alias Sanbase.Repo
a... | 29.246006 | 98 | 0.655888 |
97a9762ccc170c9b400f2b126ccbc9df4a24dcdd | 759 | ex | Elixir | apps/re/test/support/test_http.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/test/support/test_http.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re/test/support/test_http.ex | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.TestHTTP do
@moduledoc false
def get(%URI{host: "graph.facebook.com"}),
do:
{:ok,
%{
body:
"{\"created_time\":\"2010-01-01T10:00:00+0000\",\"id\":\"12345\",\"field_data\":[{\"name\":\"full_name\",\"values\":[\"mah name\"]},{\"name\":\"phone_number\",\"values\":[\"+... | 44.647059 | 449 | 0.57971 |
97a997356ad70316cfe5a8c9f42dbabba2942725 | 1,909 | exs | Elixir | test/worldly/locales_test.exs | martide/worldly | be03734da41fa40a4a6c8963b33be4ccf5b10dcc | [
"Apache-2.0"
] | 7 | 2016-07-05T01:08:38.000Z | 2021-02-04T00:20:08.000Z | test/worldly/locales_test.exs | martide/worldly | be03734da41fa40a4a6c8963b33be4ccf5b10dcc | [
"Apache-2.0"
] | 2 | 2016-07-19T10:13:55.000Z | 2017-06-26T04:33:16.000Z | test/worldly/locales_test.exs | vinsol/worldly | 4be21c31526946197405388543e70d06c172315d | [
"Apache-2.0"
] | 4 | 2016-07-05T01:13:53.000Z | 2017-06-02T15:19:07.000Z | defmodule Worldly.LocaleTest do
use ExUnit.Case
test "set_locale_data/3 for Country" do
country = %Worldly.Country{alpha_2_code: "AD", alpha_3_code: "AND", numeric_code: "020"}
assert country.name == ""
assert country.official_name == ""
assert country.common_name == ""
country_with_locale_dat... | 36.018868 | 92 | 0.699843 |
97a9ab4744284744b49e21ec47d8dea0147ea44e | 1,129 | ex | Elixir | test/support/channel_case.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | defmodule PhoenixSampleWeb.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 inter... | 30.513514 | 94 | 0.744021 |
97a9c867e8dfe521f196e5f18242c7d14ccf34f2 | 19,164 | exs | Elixir | test/jsonapi/serializer_test.exs | dottori-it/jsonapi | 8d65d9268ca4808766f3710909795dddd3227d14 | [
"MIT"
] | null | null | null | test/jsonapi/serializer_test.exs | dottori-it/jsonapi | 8d65d9268ca4808766f3710909795dddd3227d14 | [
"MIT"
] | null | null | null | test/jsonapi/serializer_test.exs | dottori-it/jsonapi | 8d65d9268ca4808766f3710909795dddd3227d14 | [
"MIT"
] | null | null | null | defmodule JSONAPI.SerializerTest do
use ExUnit.Case, async: false
alias JSONAPI.{Config, QueryParser, Serializer}
defmodule PostView do
use JSONAPI.View
def fields, do: [:text, :body, :full_description, :inserted_at]
def meta(data, _conn), do: %{meta_text: "meta_#{data[:text]}"}
def type, do: "... | 27.534483 | 98 | 0.600918 |
97a9d8d16c98c0c833b501f7ce1353b8c715ba48 | 518 | exs | Elixir | test/views/error_view_test.exs | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | 1 | 2020-01-19T03:29:22.000Z | 2020-01-19T03:29:22.000Z | test/views/error_view_test.exs | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | functional-miners/interactive-tetris | 440bc821745cc7fd7ff8b59a4fc6c643eb2bf183 | [
"MIT"
] | null | null | null | defmodule InteractiveTetris.ErrorViewTest do
use InteractiveTetris.ConnCase, async: true
import Phoenix.View
test "renders 404.html" do
assert render_to_string(InteractiveTetris.ErrorView, "404.html", []) == "Page not found"
end
test "render 500.html" do
assert render_to_string(InteractiveTetris.Er... | 28.777778 | 99 | 0.735521 |
97a9fa0f4bca4c4a9afd2c1f42b98ed0759102e1 | 299 | ex | Elixir | lib/loaded_bike/models/lib/seo_url.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 48 | 2017-04-25T16:02:08.000Z | 2021-01-23T01:57:29.000Z | lib/loaded_bike/models/lib/seo_url.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 5 | 2018-03-09T20:17:55.000Z | 2018-07-23T16:29:21.000Z | lib/loaded_bike/models/lib/seo_url.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 4 | 2017-05-21T14:38:38.000Z | 2017-12-29T11:09:54.000Z | defimpl Phoenix.Param, for: LoadedBike.Tour do
def to_param(%{id: id, title: title}) do
"#{id}-#{Slugger.slugify_downcase(title)}"
end
end
defimpl Phoenix.Param, for: LoadedBike.Waypoint do
def to_param(%{id: id, title: title}) do
"#{id}-#{Slugger.slugify_downcase(title)}"
end
end
| 24.916667 | 50 | 0.688963 |
97aa18b4a983900327875ef7804796e72c5f9330 | 6,712 | ex | Elixir | lib/mr_roboto/parser.ex | LeakyBucket/mr_roboto | 1c7ca71779bc10945cc85bb9f1f7ab39e1b0a3e6 | [
"MIT"
] | 2 | 2016-03-31T23:28:36.000Z | 2016-10-29T09:53:31.000Z | lib/mr_roboto/parser.ex | LeakyBucket/mr_roboto | 1c7ca71779bc10945cc85bb9f1f7ab39e1b0a3e6 | [
"MIT"
] | 1 | 2016-10-29T09:53:18.000Z | 2016-10-29T09:53:18.000Z | lib/mr_roboto/parser.ex | LeakyBucket/mr_roboto | 1c7ca71779bc10945cc85bb9f1f7ab39e1b0a3e6 | [
"MIT"
] | null | null | null | defmodule MrRoboto.Parser do
@moduledoc """
This is the Parser Module. The functions here handle the transformation of a `robots.txt` file into `MrRoboto.Rules` structs.
"""
alias MrRoboto.Rules
@doc """
Starts parsing the `body`
Returns a list of `MrRobot.Rules` structs
## Examples
iex> body ... | 32.114833 | 190 | 0.618147 |
97aa283253e59ded429e00a1324bc6d3725075b7 | 1,128 | exs | Elixir | integration_test/cases/browser/button_down_test.exs | JonRowe/wallaby | 00a7b4efdfecb374e4827fa106503e689a4dd967 | [
"MIT"
] | 1 | 2019-01-30T12:08:17.000Z | 2019-01-30T12:08:17.000Z | integration_test/cases/browser/button_down_test.exs | JonRowe/wallaby | 00a7b4efdfecb374e4827fa106503e689a4dd967 | [
"MIT"
] | 2 | 2019-04-10T08:23:27.000Z | 2021-01-25T16:37:23.000Z | integration_test/cases/browser/button_down_test.exs | JonRowe/wallaby | 00a7b4efdfecb374e4827fa106503e689a4dd967 | [
"MIT"
] | 1 | 2019-01-29T16:03:55.000Z | 2019-01-29T16:03:55.000Z | defmodule Wallaby.Integration.Browser.ButtonDownTest do
use Wallaby.Integration.SessionCase, async: true
import Wallaby.Browser
setup %{session: session} do
{:ok, page: visit(session, "mouse_down_and_up.html")}
end
describe "button_down/2" do
test "clicks and holds left mouse button at the current c... | 31.333333 | 96 | 0.663121 |
97aa989fc2dad257bfc32572035db76dc790dca2 | 597 | exs | Elixir | test/saxy/parser/partial_test.exs | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | test/saxy/parser/partial_test.exs | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | test/saxy/parser/partial_test.exs | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | defmodule Saxy.Parser.PartialTest do
use ExUnit.Case, async: true
alias Saxy.Parser.Partial
alias Saxy.TestHandlers.StackHandler
test "The Partial module is used to parse an XML document binary, line by line" do
data =
File.read!("./test/support/fixture/food.xml")
|> String.split("\n")
a... | 22.961538 | 84 | 0.633166 |
97aaa3a6e89cc161ea308650bd640bc675edb3cb | 9,620 | ex | Elixir | lib/instrumentation.ex | bet01/bettelemetry | 17c17bbde36e0f5960a478fcd37e656d41a9b09f | [
"Apache-2.0"
] | 4 | 2021-07-23T16:25:43.000Z | 2022-02-07T19:03:18.000Z | lib/instrumentation.ex | bet01/bettelemetry | 17c17bbde36e0f5960a478fcd37e656d41a9b09f | [
"Apache-2.0"
] | 2 | 2021-09-21T12:21:44.000Z | 2021-11-09T16:26:21.000Z | lib/instrumentation.ex | bet01/bettelemetry | 17c17bbde36e0f5960a478fcd37e656d41a9b09f | [
"Apache-2.0"
] | null | null | null | defmodule BetTelemetry.Instrumentation do
@moduledoc ~S"""
Provides a way to generate telemetry events
We can generate `start`, `stop` and `exception` events.
This works in conjuction with `BetTelemetry.OpenTelemetryReporter`, if we
generate a telemetry event and we have subscribed to that event with the Ope... | 31.437908 | 107 | 0.648753 |
97aac18f056dc834ea063aefacb7ec063fb42753 | 783 | exs | Elixir | mix.exs | ivryakhov/key-value-storage | 2ceda6c2feeb37bea48fe7a1d338e6637e5ddce8 | [
"MIT"
] | null | null | null | mix.exs | ivryakhov/key-value-storage | 2ceda6c2feeb37bea48fe7a1d338e6637e5ddce8 | [
"MIT"
] | null | null | null | mix.exs | ivryakhov/key-value-storage | 2ceda6c2feeb37bea48fe7a1d338e6637e5ddce8 | [
"MIT"
] | null | null | null | defmodule KVstore.Mixfile do
use Mix.Project
def project do
[app: :kvstore,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for mo... | 20.076923 | 77 | 0.564496 |
97aaf013c5a0b9176b941400e39c1bc51d1ae674 | 3,716 | ex | Elixir | code_flow/lib/fake/customers.ex | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | code_flow/lib/fake/customers.ex | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | code_flow/lib/fake/customers.ex | Marcelo-Zometa/ElixirPractice | f1915c57e8ac3b30b921891d2b077e72b0b3cebf | [
"MIT"
] | null | null | null | # ---
# Excerpted from "Thinking Elixir - CodeFlow", published by Mark Ericksen.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact me if you are in doubt. I make
# no guarantees that this code is fit for any purpose. Visit
# https://thinki... | 31.491525 | 84 | 0.655005 |
97ab14d5a6df1d877ed77cf191b310e11d095128 | 4,019 | exs | Elixir | config/dev.exs | TommyTeaVee/glimesh.tv | 6ba538f50a463652f14442039b6cdfbc429f10f4 | [
"MIT"
] | null | null | null | config/dev.exs | TommyTeaVee/glimesh.tv | 6ba538f50a463652f14442039b6cdfbc429f10f4 | [
"MIT"
] | null | null | null | config/dev.exs | TommyTeaVee/glimesh.tv | 6ba538f50a463652f14442039b6cdfbc429f10f4 | [
"MIT"
] | null | null | null | import Config
# Configure your database
database = [
username: "postgres",
password: "postgres",
database: "glimesh_dev",
hostname: System.get_env("DATABASE_URL") || "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
]
config :glimesh, Glimesh.Repo, database
config :glimesh, Glimesh... | 30.44697 | 94 | 0.710873 |
97ab1e56f4eb12bb05b9c2edb3bc75c1c794731c | 16,426 | exs | Elixir | test/changeset_helpers_test.exs | mathieuprog/changeset_helpers | 70690b74dbd364488f1743a13f24798b88b97aac | [
"Apache-2.0"
] | 7 | 2020-09-22T04:44:56.000Z | 2022-03-24T22:15:25.000Z | test/changeset_helpers_test.exs | mathieuprog/changeset_helpers | 70690b74dbd364488f1743a13f24798b88b97aac | [
"Apache-2.0"
] | null | null | null | test/changeset_helpers_test.exs | mathieuprog/changeset_helpers | 70690b74dbd364488f1743a13f24798b88b97aac | [
"Apache-2.0"
] | null | null | null | defmodule ChangesetHelpersTest do
use ExUnit.Case
doctest ChangesetHelpers
alias ChangesetHelpers.{Account, Address, Appointment, Article, User, UserConfig}
import Ecto.Changeset
import ChangesetHelpers
setup do
account_changeset =
change(
%Account{},
%{
email: "john@ex... | 36.91236 | 146 | 0.653294 |
97ab23b8f8b618a864ae66ea7d65ebb7cba5ee8c | 3,293 | exs | Elixir | lib/elixir/test/elixir/kernel/import_test.exs | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/elixir/test/elixir/kernel/import_test.exs | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/import_test.exs | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.ImportTest do
use ExUnit.Case, async: true
defmodule ImportAvailable do
defmacro flatten do
[flatten: 1]
end
end
test "import all" do
import :lists
assert flatten([1, [2], 3]) == [1, 2, 3]
end
test "import except non... | 22.710345 | 64 | 0.609778 |
97ab26954f27701470b2ad7da7c237df8e6bcc22 | 9,008 | ex | Elixir | lib/ueberauth/strategy/slack.ex | nickcampbell18/ueberauth_slack | 469c340ac0e6068ca63e077d8dbb3e1d2d27a76b | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/slack.ex | nickcampbell18/ueberauth_slack | 469c340ac0e6068ca63e077d8dbb3e1d2d27a76b | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/slack.ex | nickcampbell18/ueberauth_slack | 469c340ac0e6068ca63e077d8dbb3e1d2d27a76b | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Slack do
@moduledoc """
Implements an ÜeberauthSlack strategy for authentication with slack.com.
When configuring the strategy in the Üeberauth providers, you can specify some defaults.
* `uid_field` - The field to use as the UID field. This can be any populated field in the info ... | 33.362963 | 121 | 0.627997 |
97ab40c1bfd718a3c54c2f6057dd4db416a83aa5 | 966 | ex | Elixir | test/support/channel_case.ex | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 6 | 2019-06-11T22:16:47.000Z | 2021-05-19T10:32:58.000Z | test/support/channel_case.ex | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 2 | 2021-08-22T19:41:42.000Z | 2021-12-16T15:26:14.000Z | test/support/channel_case.ex | haojiwu/phoenix_hello | aee3d40a018e73b24767de1be5692a9cd9cf2017 | [
"MIT"
] | 16 | 2019-06-12T19:39:41.000Z | 2022-03-26T07:34:44.000Z | defmodule PhoenixHelloWeb.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 intera... | 27.6 | 69 | 0.744306 |
97ab517370b84c42b1cd79251049ccef74d34a16 | 1,139 | exs | Elixir | config/config.exs | techgaun/named_arguments | 3bc3a9de843178e1db523456f5ef1d6f0a97a615 | [
"MIT"
] | 1 | 2020-06-03T23:05:27.000Z | 2020-06-03T23:05:27.000Z | config/config.exs | techgaun/named_arguments | 3bc3a9de843178e1db523456f5ef1d6f0a97a615 | [
"MIT"
] | 2 | 2018-03-20T04:42:23.000Z | 2018-09-01T23:53:56.000Z | config/config.exs | techgaun/named_arguments | 3bc3a9de843178e1db523456f5ef1d6f0a97a615 | [
"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.741935 | 73 | 0.755048 |
97ab72ea285f3ca5d324a52159d78c79305af852 | 1,661 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/matter_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/matter_permission.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vault/lib/google_api/vault/v1/model/matter_permission.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.22 | 165 | 0.724262 |
97abc3e3b3dc02e1ef46cad98a10a6ef8225ccfd | 1,739 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/test_iam_permissions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/test_iam_permissions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/test_iam_permissions_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37 | 288 | 0.752731 |
97abe83df6367ca4e577378334721b87cdbf034f | 60 | exs | Elixir | config/test.exs | ncloudioj/iconic | 20dac2e8f9e737292d1caccf0ded3b51abe63a97 | [
"Apache-2.0"
] | 2 | 2017-10-30T18:16:25.000Z | 2021-02-09T09:29:24.000Z | config/test.exs | ncloudioj/iconic | 20dac2e8f9e737292d1caccf0ded3b51abe63a97 | [
"Apache-2.0"
] | null | null | null | config/test.exs | ncloudioj/iconic | 20dac2e8f9e737292d1caccf0ded3b51abe63a97 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :iconic, :http_client, HTTPoisonMock
| 15 | 43 | 0.8 |
97abee0137279030ac9d5a6c57cf6fb9ffb233fd | 1,157 | ex | Elixir | lib/livebook/notebook/cell.ex | qrede/livebook | 5f3230f7aa6b638825bd43c6a84302a694240ddf | [
"Apache-2.0"
] | 1 | 2021-04-16T05:42:12.000Z | 2021-04-16T05:42:12.000Z | lib/livebook/notebook/cell.ex | cristina007-bot/livebook | 101f582196a161a06b62b38fe55c7f8c0a04b54d | [
"Apache-2.0"
] | null | null | null | lib/livebook/notebook/cell.ex | cristina007-bot/livebook | 101f582196a161a06b62b38fe55c7f8c0a04b54d | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Notebook.Cell do
@moduledoc false
# Data structure representing a single cell in a notebook.
#
# A cell is the smallest unit of work in a notebook.
# It primarly consists of text content that the user can edit
# and may potentially produce some output (e.g. during code evaluation).
de... | 23.612245 | 93 | 0.615385 |
97ac170143ad7398d6fcb7da2e59818d1fabb217 | 1,575 | exs | Elixir | apps/snitch_api/config/config.exs | baldmountain/avia | c60a748e8124bc602d485cd017f9f4f0953db54c | [
"MIT"
] | null | null | null | apps/snitch_api/config/config.exs | baldmountain/avia | c60a748e8124bc602d485cd017f9f4f0953db54c | [
"MIT"
] | null | null | null | apps/snitch_api/config/config.exs | baldmountain/avia | c60a748e8124bc602d485cd017f9f4f0953db54c | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :snitch_api, SnitchApiWeb.Endpoint,
url: [host: "l... | 32.142857 | 86 | 0.768889 |
97ac353c4a8ebe2e91a327dcada3e6cd3cec1a7c | 1,121 | exs | Elixir | config/config.exs | marcelotto/rdf_vocab | d0d27a5be12925216be710c43038a84d8cf149d8 | [
"MIT"
] | 3 | 2017-06-30T14:03:40.000Z | 2019-06-12T09:22:47.000Z | config/config.exs | marcelotto/rdf_vocab | d0d27a5be12925216be710c43038a84d8cf149d8 | [
"MIT"
] | null | null | null | config/config.exs | marcelotto/rdf_vocab | d0d27a5be12925216be710c43038a84d8cf149d8 | [
"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 |
97ac3983987a7887e5a8615b470b29ea53c8b7a1 | 1,602 | exs | Elixir | mix.exs | necosta/raspberry-pi-x | 478f49de74b03d4a652c35ef185735ca0f2f6878 | [
"MIT"
] | null | null | null | mix.exs | necosta/raspberry-pi-x | 478f49de74b03d4a652c35ef185735ca0f2f6878 | [
"MIT"
] | null | null | null | mix.exs | necosta/raspberry-pi-x | 478f49de74b03d4a652c35ef185735ca0f2f6878 | [
"MIT"
] | null | null | null | defmodule RaspberryPi.MixProject do
use Mix.Project
def project do
[
app: :raspberry_pi,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: alias... | 26.262295 | 79 | 0.588015 |
97ac619ff56b1605cd0cd12f8193c39c3fc2dd08 | 116 | ex | Elixir | test/support/test_ecto.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-18T14:32:15.000Z | 2022-03-24T06:33:21.000Z | test/support/test_ecto.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-25T08:30:42.000Z | 2022-03-27T17:13:46.000Z | test/support/test_ecto.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.TestRepo do
use Ecto.Repo,
otp_app: :ecto,
adapter: Ecto.Adapters.Postgres
end
| 19.333333 | 38 | 0.741379 |
97ac696bc705c72c5b671c2c398b020d00b7c633 | 2,126 | ex | Elixir | lib/cloak/ciphers/cipher.ex | jdewar/cloak | d19bfbd06c53ce7b4f90e14ada3d134c5cb2f6b5 | [
"MIT"
] | null | null | null | lib/cloak/ciphers/cipher.ex | jdewar/cloak | d19bfbd06c53ce7b4f90e14ada3d134c5cb2f6b5 | [
"MIT"
] | null | null | null | lib/cloak/ciphers/cipher.ex | jdewar/cloak | d19bfbd06c53ce7b4f90e14ada3d134c5cb2f6b5 | [
"MIT"
] | null | null | null | defmodule Cloak.Cipher do
@moduledoc """
A behaviour for encryption/decryption modules. Use it to write your own custom
Cloak-compatible cipher modules.
## Example
Here's a sample custom cipher that adds "Hello, " to the start of every
ciphertext, and removes it on decryption.
defmodule MyCustomCip... | 25.309524 | 80 | 0.649577 |
97ac7758d575fcb1a292c878e5b3326177080370 | 12,553 | exs | Elixir | test/mail_test.exs | Awlexus/elixir-mail | da280510a83078f3bfed605078e481aaa13afe73 | [
"MIT"
] | null | null | null | test/mail_test.exs | Awlexus/elixir-mail | da280510a83078f3bfed605078e481aaa13afe73 | [
"MIT"
] | null | null | null | test/mail_test.exs | Awlexus/elixir-mail | da280510a83078f3bfed605078e481aaa13afe73 | [
"MIT"
] | null | null | null | defmodule MailTest do
use ExUnit.Case, async: true
defmodule TestRenderer do
def render(message) do
Mail.Message.get_header(message, "subject")
end
end
test "build" do
assert Mail.build() == %Mail.Message{}
end
test "build_multipart" do
assert Mail.build_multipart() == %Mail.Message... | 30.394673 | 95 | 0.65339 |
97ac7899e414e55e6098ab505de698075b1f695a | 1,381 | ex | Elixir | lib/banchan_web/controllers/user_session_controller.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/controllers/user_session_controller.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/controllers/user_session_controller.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule BanchanWeb.UserSessionController do
use BanchanWeb, :controller
alias Phoenix.LiveView
alias Banchan.Accounts
alias BanchanWeb.UserAuth
def create(conn, %{"user" => user_params}) do
%{"email" => email, "password" => password, "mfa_token" => mfa_token} = user_params
if user = Accounts.get... | 28.770833 | 90 | 0.678494 |
97ac846f10dea1a3684906a10a3e94c4f5c7596c | 572 | exs | Elixir | day25/mix.exs | the-shank/advent-of-code-2018 | 3be3958adad61e62e8a7ea6ec6a868f049c7a7e4 | [
"Apache-2.0"
] | 7 | 2018-12-12T01:08:24.000Z | 2019-12-09T19:50:36.000Z | day25/mix.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | day25/mix.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | defmodule Day25.MixProject do
use Mix.Project
def project do
[
app: :day25,
version: "0.1.0",
elixir: "~> 1.8-dev",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_app... | 19.724138 | 88 | 0.573427 |
97ac8ec4fddfebf75d2ba4452a88ecfdf5e54ea6 | 1,476 | ex | Elixir | lib/cat_show_web/views/error_helpers.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | lib/cat_show_web/views/error_helpers.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | 1 | 2021-05-11T15:49:58.000Z | 2021-05-11T15:49:58.000Z | lib/cat_show_web/views/error_helpers.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | defmodule CatShowWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
content_ta... | 32.8 | 76 | 0.670732 |
97ac9a95511e4e1c8ab4937343d824801f77912d | 1,845 | exs | Elixir | mix.exs | JohnDoneth/memcachex | a1a8e2fe2ec28ba8d3c443933b98cf076c13354d | [
"MIT"
] | null | null | null | mix.exs | JohnDoneth/memcachex | a1a8e2fe2ec28ba8d3c443933b98cf076c13354d | [
"MIT"
] | null | null | null | mix.exs | JohnDoneth/memcachex | a1a8e2fe2ec28ba8d3c443933b98cf076c13354d | [
"MIT"
] | null | null | null | defmodule Memcache.Mixfile do
@moduledoc false
use Mix.Project
@source_url "https://github.com/ananthakumaran/memcachex"
@version "0.5.2"
def project do
[
app: :memcachex,
version: @version,
elixir: "~> 1.6",
package: package(),
deps: deps(),
docs: docs(),
dialy... | 23.653846 | 89 | 0.532249 |
97ac9ae5c6230802b8102c47f5a1cc0f8c2a8849 | 1,131 | ex | Elixir | apps/aehttpserver/lib/aehttpserver/web/router.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | apps/aehttpserver/lib/aehttpserver/web/router.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | apps/aehttpserver/lib/aehttpserver/web/router.ex | wuminzhe/elixir-node | eb87b47339a8349bac767dd4cf597dfaf0ed75c6 | [
"ISC"
] | null | null | null | defmodule Aehttpserver.Web.Router do
use Aehttpserver.Web, :router
pipeline :api do
plug CORSPlug, [origin: "*"]
plug :accepts, ["json"]
plug Aehttpserver.Plugs.SetHeader
end
pipeline :authorized do
plug Aehttpserver.Plugs.Authorization
end
scope "/", Aehttpserver.Web do
pipe_through ... | 29.763158 | 76 | 0.690539 |
97acab88356acae745ca39a5da4f3dd7e20241cb | 10,475 | exs | Elixir | test/auth/auth_test.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | null | null | null | test/auth/auth_test.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | null | null | null | test/auth/auth_test.exs | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | null | null | null | defmodule Potionx.Auth.Test do
use Potionx.ConnCase
alias PotionxTest.Router
alias Potionx.Auth.Provider
describe "Authentication test" do
setup do
{:ok, %{
secret_key_base: :crypto.strong_rand_bytes(64) |> Base.encode64 |> binary_part(0, 64)
}}
end
test "Blocks introspection" ... | 31.646526 | 126 | 0.553031 |
97acc3dd0dbcb61654bc80e1c73d110b0eb02fd6 | 384 | ex | Elixir | web/views/error_view.ex | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | null | null | null | web/views/error_view.ex | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | null | null | null | web/views/error_view.ex | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | null | null | null | defmodule FutureCyborg.ErrorView do
use FutureCyborg.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(... | 21.333333 | 47 | 0.705729 |
97ad0f2750b12740399e1ccf63fe845af2cdb6cc | 1,586 | ex | Elixir | clients/people/lib/google_api/people/v1/model/create_contact_group_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/create_contact_group_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/create_contact_group_request.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.041667 | 83 | 0.755359 |
97ad149a98c3a5612d0fa8750d5457bc89c20e27 | 928 | exs | Elixir | config/config.exs | rosacris/swarm_example | 05426a87c893455c6668c18f57c6d1e688ada0f2 | [
"MIT"
] | null | null | null | config/config.exs | rosacris/swarm_example | 05426a87c893455c6668c18f57c6d1e688ada0f2 | [
"MIT"
] | null | null | null | config/config.exs | rosacris/swarm_example | 05426a87c893455c6668c18f57c6d1e688ada0f2 | [
"MIT"
] | null | null | null | use Mix.Config
config :libcluster,
topologies: [
betrm: [
# The selected clustering strategy. Required.
strategy: Cluster.Strategy.Epmd,
# Configuration for the provided strategy. Optional.
config: [hosts: [:"node1@127.0.0.1", :"node2@127.0.0.1"]],
# The function to use for connecti... | 40.347826 | 64 | 0.65625 |
97ad279b70522c50377957f464593a3092ae323a | 5,095 | exs | Elixir | test/ironman/checks/git_hooks_config_test.exs | chazwatkins/ironman | 6c35694092c5997c4157ba934fb34bde43fce2de | [
"MIT"
] | null | null | null | test/ironman/checks/git_hooks_config_test.exs | chazwatkins/ironman | 6c35694092c5997c4157ba934fb34bde43fce2de | [
"MIT"
] | null | null | null | test/ironman/checks/git_hooks_config_test.exs | chazwatkins/ironman | 6c35694092c5997c4157ba934fb34bde43fce2de | [
"MIT"
] | null | null | null | defmodule Ironman.Checks.GitHooksConfigTest do
use ExUnit.Case
alias Ironman.Checks.GitHooksConfig
alias Ironman.Config
alias Ironman.Test.Helpers.{ConfigFactory, MoxHelpers}
describe "run" do
test "skips when git_hooks not present" do
config = ConfigFactory.with_deps()
{:skip, config2} = Gi... | 50.445545 | 114 | 0.688126 |
97ad2eedb16c29897d029cbcb3d8b1922db01500 | 281 | ex | Elixir | lib/resque_web_potion/redis/namespacing.ex | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | lib/resque_web_potion/redis/namespacing.ex | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | lib/resque_web_potion/redis/namespacing.ex | MishaConway/resque-web-squared | dbc0d119cb667561867d642edab20197057f1515 | [
"MIT"
] | null | null | null | defmodule ResqueWebPotion.Redis.Namespacing do
defmacro __using__(_opts) do
quote do
def namespace_list keys do
keys |> Enum.map(fn(key) -> namespace(key) end )
end
def namespace key do
"resque:#{key}"
end
end
end
end
| 20.071429 | 57 | 0.597865 |
97ad3c14494ff292ec20ad1aed1fe9ef4161a498 | 1,330 | ex | Elixir | kousa/lib/business-logic/user_logic.ex | larsverp/dogehouse | a433d4cd64512c4723cd019957b654ae4dc877b4 | [
"MIT"
] | 2 | 2021-03-15T22:53:51.000Z | 2021-03-22T09:34:06.000Z | kousa/lib/business-logic/user_logic.ex | larsverp/dogehouse | a433d4cd64512c4723cd019957b654ae4dc877b4 | [
"MIT"
] | 2 | 2021-09-01T19:42:51.000Z | 2021-12-09T03:56:38.000Z | kousa/lib/business-logic/user_logic.ex | larsverp/dogehouse | a433d4cd64512c4723cd019957b654ae4dc877b4 | [
"MIT"
] | 1 | 2021-03-13T20:31:49.000Z | 2021-03-13T20:31:49.000Z | defmodule Kousa.BL.User do
alias Kousa.Gen
alias Kousa.RegUtils
alias Beef.Users
alias Kousa.Gen
alias Kousa.RegUtils
alias Kousa.BL
def delete(user_id) do
BL.Room.leave_room(user_id)
Users.delete(user_id)
end
def edit_profile(user_id, data) do
case Users.edit_profile(user_id, data) do
... | 25.09434 | 94 | 0.63985 |
97ad556b24c73db632f414c5e446496a30549c46 | 504 | ex | Elixir | apps/bernard_api/lib/graphql/users.ex | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"MIT"
] | null | null | null | apps/bernard_api/lib/graphql/users.ex | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"MIT"
] | null | null | null | apps/bernard_api/lib/graphql/users.ex | CharlesBean/bernard | 5bd403e72cbc17b8feacd8d3cbb0d9c7bc4ef51d | [
"MIT"
] | null | null | null | defmodule BernardApi.GraphQL.Users do
@moduledoc """
Represents a user internal to this system. Users can have many Items, etc.
"""
use Absinthe.Schema.Notation
object :user do
field :id, non_null(:string)
field :credentials, list_of(non_null(:credential))
field :name, non_null(:string)
end
... | 21.913043 | 76 | 0.704365 |
97adcf2daaffd72bcb1219517165e55c9bc9aeb9 | 114 | ex | Elixir | lib/coinpeer/tx.ex | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | 2 | 2019-07-18T19:01:54.000Z | 2019-09-04T05:38:55.000Z | lib/coinpeer/tx.ex | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | 2 | 2019-07-04T04:26:16.000Z | 2019-08-08T12:50:52.000Z | lib/coinpeer/tx.ex | coinscript/coinpeer | 25a5debf878ba3f8e7df78cf3ce1df2a99d4b088 | [
"MIT"
] | null | null | null | defmodule Coinpeer.Tx do
defstruct do
[
txins: [],
txouts: [],
locktime: 0
]
end
end | 12.666667 | 24 | 0.508772 |
97ae0160958997490148258ed837eb8dc1c2c117 | 622 | ex | Elixir | lib/EventStage/tasker.ex | BenAlbin/alchemy | c31bce54e13a692acdba3c3b581ff49090da7604 | [
"MIT"
] | 1 | 2019-02-24T03:13:22.000Z | 2019-02-24T03:13:22.000Z | lib/EventStage/tasker.ex | appositum/alchemy | 2e4c06e198fa8c824183782508610815395d7c0e | [
"MIT"
] | null | null | null | lib/EventStage/tasker.ex | appositum/alchemy | 2e4c06e198fa8c824183782508610815395d7c0e | [
"MIT"
] | null | null | null | defmodule Alchemy.EventStage.Tasker do
@moduledoc false # Serves as the final stage, recieving
# functions and commands to run in new tasks
use ConsumerSupervisor
alias Alchemy.EventStage.{CommandStage, EventStage}
defmodule Runner do
@moduledoc false
def start_link({m, f, a}) do
Task.start_lin... | 25.916667 | 68 | 0.710611 |
97ae05abe69384d80f0b24c11382b2e6a4c561ae | 215,468 | ex | Elixir | data/auto_generated/video/df11ae36d9951ad9af89f3a024c03ba0.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/auto_generated/video/df11ae36d9951ad9af89f3a024c03ba0.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/auto_generated/video/df11ae36d9951ad9af89f3a024c03ba0.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule(Data.AutoGenerated.Video.Rendered_df11ae36d9951ad9af89f3a024c03ba0) do
@moduledoc "#{"Wandseradweg (FR3): entlang der Wandse nach Stapelfeld"}
AUTOGENERATED. To update this file, run mix velo.videos.generate.
See Video.Rendered for functionality.
"
@behaviour Video.Rendered
@impl Video.Rendered... | 80.24879 | 98 | 0.70501 |
97ae0b5fa9864e69fdc0b51e47e9a344e0fcbe9d | 1,348 | ex | Elixir | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/transaction_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/transaction_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/serializers/json/transaction_serializer.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletAPI.V1.JSON.TransactionSerializer do
@moduledoc """
Serializes minted token(s) into V1 JSON response format.
"""
alias EWalletAPI.V1.JSON.{PaginatorSerializer, MintedTokenSerializer}
alias EWallet.Web.{Date, Paginator}
def serialize(%Paginator{} = paginator) do
PaginatorSerializer.seri... | 31.348837 | 87 | 0.689169 |
97ae10b492b9940b5ff2f7ee70079526df497126 | 1,989 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/backend_service_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/backend_service_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/backend_service_log_config.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... | 39.78 | 371 | 0.74007 |
97ae19f8005eda6aad53b09fccb6e8b53a63ddfc | 25,824 | exs | Elixir | test/livebook/completion_test.exs | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | null | null | null | test/livebook/completion_test.exs | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | 1 | 2021-09-18T01:09:08.000Z | 2021-09-18T01:09:08.000Z | test/livebook/completion_test.exs | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.CompletionTest.Utils do
@moduledoc false
@doc """
Returns `{binding, env}` resulting from evaluating
the given block of code in a fresh context.
"""
defmacro eval(do: block) do
binding = []
env = :elixir.env_for_eval([])
{_, binding, env} = :elixir.eval_quoted(block, binding,... | 28.222951 | 194 | 0.490784 |
97ae6a05b813909ee7a503da184bc71e177fcad8 | 2,894 | ex | Elixir | lib/model/card/parser.ex | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | lib/model/card/parser.ex | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | lib/model/card/parser.ex | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | defmodule ExLemonway.Card.Parser do
@moduledoc """
Parser to map raw response into Card model struct.
It's automatically generated by `mix specs.gen.model Card`
Dont' edit this file manually, to make any changes, please update:
`specs/directkit/model/card.json`
"""
alias ExLemonway.Card
alias ExLemonw... | 29.835052 | 82 | 0.677263 |
97ae798578aadf9d602aeb0729d01e2f968c867f | 677 | ex | Elixir | lib/stripe_mock/api/customer.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | 4 | 2019-06-04T20:35:21.000Z | 2021-09-02T04:04:21.000Z | lib/stripe_mock/api/customer.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | 2 | 2020-02-04T17:38:12.000Z | 2021-04-29T06:59:06.000Z | lib/stripe_mock/api/customer.ex | whitepaperclip/stripe_mock | a8ba9101a04216f26d0650eb38448173d8e090a1 | [
"MIT"
] | null | null | null | defmodule StripeMock.API.Customer do
use StripeMock.Schema
schema "customers" do
field :currency, :string, default: "usd"
field :deleted, :boolean, default: false
field :email, :string
field :name, :string
field :phone, :string
common_fields()
timestamps()
end
@doc false
def cha... | 22.566667 | 78 | 0.646972 |
97ae9df7272d132dcbb39434dc2127d0195a014b | 2,032 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/node_groups_scoped_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/node_groups_scoped_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/node_groups_scoped_list_warning_data.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.64 | 527 | 0.743602 |
97aeac940a6dfedb3786e34bde736976114bb707 | 2,213 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/query_options.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/query_options.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/query_options.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.693548 | 122 | 0.746046 |
97aeb222a2e51ec1622614eebd6b4847ceaba13c | 1,641 | ex | Elixir | lib/political/parser/timestamp.ex | wisq/political | 7a28dd9da95bc461be8f39411361519b471fa4c3 | [
"MIT"
] | null | null | null | lib/political/parser/timestamp.ex | wisq/political | 7a28dd9da95bc461be8f39411361519b471fa4c3 | [
"MIT"
] | null | null | null | lib/political/parser/timestamp.ex | wisq/political | 7a28dd9da95bc461be8f39411361519b471fa4c3 | [
"MIT"
] | null | null | null | defmodule Political.Parser.Timestamp do
def parse(str) do
case Regex.run(~r{^(\d+)-([A-Z][a-z]+)-(\d+) (\d+):(\d+) ([AP]M)$}, str) do
[^str, day, month, year, hour, minute, am_pm] ->
%NaiveDateTime{
year: String.to_integer("20#{year}"),
month: month_to_number(month),
da... | 27.813559 | 79 | 0.551493 |
97aebb9a35d779fb171aeab313918dbbb37fefb8 | 15,673 | ex | Elixir | lib/zdb.ex | jschoch/zdb | 89b361e624a1c20f503dc237570ca0fd5ea1fd8c | [
"MIT"
] | 11 | 2015-01-04T12:47:21.000Z | 2016-06-27T13:16:46.000Z | lib/zdb.ex | jschoch/zdb | 89b361e624a1c20f503dc237570ca0fd5ea1fd8c | [
"MIT"
] | 5 | 2015-04-12T11:57:44.000Z | 2016-01-21T21:01:24.000Z | lib/zdb.ex | jschoch/zdb | 89b361e624a1c20f503dc237570ca0fd5ea1fd8c | [
"MIT"
] | null | null | null | defmodule Zc do
@moduledoc """
record for erlcloud aws_config()
## Example
aws_config(ddb_port: 9001)
"""
require Record
Record.defrecord :aws_config, Record.extract(:aws_config,from_lib: "erlcloud/include/erlcloud_aws.hrl")
end
defmodule Zdb do
defstruct table: "test_table"
require Zc
require L... | 31.035644 | 249 | 0.594207 |
97aec35e3f8e13660f0c3d56a3fb9ab883de062a | 605 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www_web/plugs/firmware.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/plugs/firmware.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/plugs/firmware.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWWWWeb.Plugs.Firmware do
use NervesHubWWWWeb, :plug
alias NervesHubWebCore.Firmwares
def init(opts) do
opts
end
def call(
%{params: %{"firmware_uuid" => firmware_uuid}, assigns: %{product: product}} = conn,
_opts
) do
with {:ok, firmware} <- Firmwares.get_fi... | 22.407407 | 97 | 0.621488 |
97aeca44f44f8ff53573ddc3cddc5ce1b68a2957 | 834 | exs | Elixir | test/maxmind_csv/lookup/asn_ip6r_test.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | 1 | 2020-06-20T14:40:16.000Z | 2020-06-20T14:40:16.000Z | test/maxmind_csv/lookup/asn_ip6r_test.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | test/maxmind_csv/lookup/asn_ip6r_test.exs | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Adapter.MaxMindCSV.Lookup.ASNIP6RTest do
use Geolix.Adapter.MaxMindCSV.RepoCase
alias Geolix.Adapter.MaxMindCSV.Repo
alias Geolix.Adapter.MaxMindCSV.Schema.ASNBlockIP6R
test "lookup :asn" do
result =
Repo.insert!(%ASNBlockIP6R{
network: %EctoIPRange.IP6R{
first_ip:... | 27.8 | 82 | 0.613909 |
97aed82b587a3c36af8c12521d40467f32efcadc | 586 | exs | Elixir | mix.exs | filalex77/dialyxir-action | 4a69a0ad747a5e16910341861012d8fd90806b67 | [
"MIT"
] | 1 | 2020-02-14T19:38:14.000Z | 2020-02-14T19:38:14.000Z | mix.exs | filalex77/dialyxir-action | 4a69a0ad747a5e16910341861012d8fd90806b67 | [
"MIT"
] | null | null | null | mix.exs | filalex77/dialyxir-action | 4a69a0ad747a5e16910341861012d8fd90806b67 | [
"MIT"
] | null | null | null | defmodule DialixyrAction.MixProject do
use Mix.Project
def project do
[
app: :dialixyr_action,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.206897 | 87 | 0.587031 |
97af296ff8060eaebd7d7789fdc609d0674a31c8 | 413 | exs | Elixir | test/service_other_test.exs | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | 1 | 2021-05-20T07:09:29.000Z | 2021-05-20T07:09:29.000Z | test/service_other_test.exs | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | null | null | null | test/service_other_test.exs | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | null | null | null | defmodule ServiceOtherTest do
use ExUnit.Case
test "list/0: no services" do
assert MeshxConsul.list() == []
end
test "list_upstream/1: no upstream service" do
assert MeshxConsul.list_upstream() == {:error, :service_not_owned}
assert MeshxConsul.list_upstream("invalid") == {:error, :service_not_own... | 29.5 | 79 | 0.72155 |
97af2bdbc2ce947b4385912e168e3e365ab5f734 | 660 | ex | Elixir | test/support/fake_mailer.ex | 2guti2/boom | 2352b2d2fda4c9cbbcdae2ffc95d216e5cda157e | [
"MIT"
] | 60 | 2020-09-03T16:36:05.000Z | 2022-03-24T22:41:58.000Z | test/support/fake_mailer.ex | 2guti2/boom | 2352b2d2fda4c9cbbcdae2ffc95d216e5cda157e | [
"MIT"
] | 33 | 2020-09-03T18:52:41.000Z | 2022-03-28T13:53:58.000Z | test/support/fake_mailer.ex | 2guti2/boom | 2352b2d2fda4c9cbbcdae2ffc95d216e5cda157e | [
"MIT"
] | 6 | 2020-10-02T17:58:23.000Z | 2022-03-21T19:07:36.000Z | defmodule Support.FakeMailer do
@moduledoc false
# Overrides the `deliver_later!/1` function.
# Instead of sending an email it puts the fields in a mailbox so they can be
# received in the test
def deliver_later!(email) do
send(email.to, {:email_subject, email.subject})
send(email.to, {:email_from, ... | 30 | 78 | 0.687879 |
97af533c0821c86ce17b5c80e20c093bc65910e8 | 1,976 | exs | Elixir | config/config.exs | BKStephens/phoenix_liveview_stock_tracker | 7cbf5e546f797a33d3e47b91fd75768bc18d8a5c | [
"MIT"
] | null | null | null | config/config.exs | BKStephens/phoenix_liveview_stock_tracker | 7cbf5e546f797a33d3e47b91fd75768bc18d8a5c | [
"MIT"
] | null | null | null | config/config.exs | BKStephens/phoenix_liveview_stock_tracker | 7cbf5e546f797a33d3e47b91fd75768bc18d8a5c | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
# Configures the endpoint
config :phoenix_liveview_st... | 32.393443 | 80 | 0.76164 |
97af69e9cf24293f2af42aabb026d32a74e8e9ef | 1,654 | ex | Elixir | clients/content/lib/google_api/content/v21/model/account_identifier.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/account_identifier.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/account_identifier.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... | 33.08 | 180 | 0.730351 |
97afadf9a9c0b50624588d9a019bda4a6639bce9 | 141 | ex | Elixir | lib/web/controllers/admin/insight_controller.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/controllers/admin/insight_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/controllers/admin/insight_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.Admin.InsightController do
use Web.AdminController
def index(conn, _params) do
conn |> render("index.html")
end
end
| 17.625 | 40 | 0.730496 |
97afb2210be9a603a411ac212e94f7e3e37f43aa | 4,104 | exs | Elixir | test/siwapp/customers_test.exs | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 4 | 2015-02-12T09:23:47.000Z | 2022-03-09T18:11:06.000Z | test/siwapp/customers_test.exs | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 254 | 2021-12-09T14:40:41.000Z | 2022-03-31T08:09:37.000Z | test/siwapp/customers_test.exs | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 1 | 2022-03-07T10:25:49.000Z | 2022-03-07T10:25:49.000Z | defmodule Siwapp.CustomersTest do
use Siwapp.DataCase
import Siwapp.CustomersFixtures
import Siwapp.InvoicesFixtures
import Siwapp.SettingsFixtures
import Siwapp.CommonsFixtures
alias Siwapp.Customers
setup do
series = series_fixture(%{name: "A-Series", code: "A-"})
tax1 = taxes_fixture(%{name: ... | 32.0625 | 94 | 0.663986 |
97afc9eeb765c5c0004b4b7693ccaa471085852b | 1,370 | exs | Elixir | kousa/test/broth/room/update_test.exs | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | 1 | 2021-05-03T17:10:36.000Z | 2021-05-03T17:10:36.000Z | kousa/test/broth/room/update_test.exs | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | null | null | null | kousa/test/broth/room/update_test.exs | asgarovf/dogehouse | 12b81d2008562373591fb55ab8179a3fa8a5db18 | [
"MIT"
] | null | null | null | defmodule BrothTest.Room.UpdateTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias Beef.Users
alias Beef.Rooms
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.cre... | 26.346154 | 97 | 0.624818 |
97afd41949d5f910b3496fdbd96e581e03c2c4d0 | 212 | exs | Elixir | config/test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 1,047 | 2016-05-11T16:09:29.000Z | 2022-03-29T17:17:26.000Z | config/test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 132 | 2016-10-28T19:44:26.000Z | 2020-12-06T21:16:53.000Z | config/test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 70 | 2016-10-26T00:11:05.000Z | 2022-01-02T21:43:06.000Z | use Mix.Config
config :kitto, root: Path.dirname(__DIR__)
config :kitto, templates_dir: "test/fixtures/views"
config :kitto, default_layout: "layout"
config :kitto, otp_app: :kitto
config :logger, level: :warn
| 23.555556 | 51 | 0.759434 |
97aff7c6a8b171eeec93ea2918185d62e3ca6a0f | 7,208 | ex | Elixir | lib/extatus/metric.ex | gmtprime/extatus | e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03 | [
"MIT"
] | 17 | 2017-03-01T07:19:46.000Z | 2021-11-25T21:57:38.000Z | lib/extatus/metric.ex | gmtprime/extatus | e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03 | [
"MIT"
] | 1 | 2018-04-02T11:09:28.000Z | 2018-04-02T14:33:30.000Z | lib/extatus/metric.ex | gmtprime/extatus | e9bf16cb1e83d2c4225c66d7c0bfdfb40993de03 | [
"MIT"
] | 1 | 2021-12-14T20:49:02.000Z | 2021-12-14T20:49:02.000Z | defmodule Extatus.Metric do
@moduledoc """
This module defines several macros to be able to generate metrics for
Prometheus i.e:
defmodule TestMetrics do
use Extatus.Metric
defmetrics do
counter :counter_test do
label :id
label :something
regis... | 26.306569 | 82 | 0.605577 |
97b012e1643cab3ed29c4ef42fe017b9827338cc | 1,020 | ex | Elixir | lib/helios.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | 12 | 2018-09-20T21:33:07.000Z | 2020-01-14T19:31:11.000Z | lib/helios.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | null | null | null | lib/helios.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | null | null | null | defmodule Helios do
@moduledoc """
Helios application
## Dependencies
* [elixir_uuid](https://hexdocs.pm/elixir_uuid)
* [libring](https://hexdocs.pm/libring)
* [gen_state_machine](https://hex.pm/packages/gen_state_machine)
* [poolboy](https://hex.pm/packages/poolboy)
* [extreme](https://hexd... | 26.153846 | 111 | 0.69902 |
97b02e6c43e80bfa289bd5d210fb3b6b8c563ec3 | 1,076 | ex | Elixir | lib/xeroxero/core_api/expense_claims.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-12-01T18:21:31.000Z | 2021-12-01T18:21:31.000Z | lib/xeroxero/core_api/expense_claims.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | null | null | null | lib/xeroxero/core_api/expense_claims.ex | scottmessinger/elixero | 4e62c4d80d221639ba2347a563002511e8d4a6c6 | [
"MIT"
] | 1 | 2021-10-01T12:09:46.000Z | 2021-10-01T12:09:46.000Z | defmodule XeroXero.CoreApi.ExpenseClaims do
@resource "expenseclaims"
@model_module XeroXero.CoreApi.Models.ExpenseClaims
def find(client) do
XeroXero.CoreApi.Common.find(client, @resource)
|> XeroXero.CoreApi.Utils.ResponseHandler.handle_response(@model_module)
end
def find(client, identifier) do
... | 35.866667 | 85 | 0.780669 |
97b034190f4d24094873a2ef1ee8227d04b45b91 | 170 | ex | Elixir | lib/hl7/2.3.1/segments/dsc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/dsc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3.1/segments/dsc.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3_1.Segments.DSC do
@moduledoc false
require Logger
use HL7.Segment,
fields: [
segment: nil,
continuation_pointer: nil
]
end
| 14.166667 | 36 | 0.664706 |
97b08006b26b375973f140516ca58d4829af8f16 | 1,637 | exs | Elixir | mix.exs | ericsteen/master_proxy | df5a93bca9e655d7d4b9724da200639e0b247133 | [
"Apache-2.0"
] | 3 | 2019-02-01T09:47:15.000Z | 2019-03-29T23:10:01.000Z | mix.exs | upstarter/master_proxy | df5a93bca9e655d7d4b9724da200639e0b247133 | [
"Apache-2.0"
] | null | null | null | mix.exs | upstarter/master_proxy | df5a93bca9e655d7d4b9724da200639e0b247133 | [
"Apache-2.0"
] | null | null | null | defmodule MasterProxy.Mixfile do
use Mix.Project
# ------------------------------------------------------------
@name :master_proxy
@version "0.1.0"
@deps [
{:mix_templates, ">0.0.0", app: false, git: "https://github.com/ericsteen/mix_templates"},
{:ex_doc, ">0.0.0", only: [:dev, :test]},
{:lib... | 29.763636 | 312 | 0.610263 |
97b0beac6bd433728e28b7cebbb10333231d038d | 1,269 | ex | Elixir | bootstrap/lib/mix/tasks/nerves/env.ex | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | bootstrap/lib/mix/tasks/nerves/env.ex | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | bootstrap/lib/mix/tasks/nerves/env.ex | tverlaan/nerves | 515b9b7730a1b2934ac051b0e7075cd7987b6c4a | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Nerves.Env do
use Mix.Task
import Mix.Nerves.Bootstrap.Utils
@switches [info: :boolean]
def run(argv) do
debug_info "Nerves Env Start"
{opts, _, _} = OptionParser.parse(argv, switches: @switches)
unless Code.ensure_compiled?(Nerves.Env) do
Mix.Tasks.Deps.Compile.run ["ner... | 25.38 | 76 | 0.599685 |
97b0e6105046cfbf8d2ef05199a3c7860f4575ea | 1,348 | exs | Elixir | test/commands/role/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/commands/role/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/commands/role/create_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Test.Commands.Role.CreateTest do
use Cog.CommandCase, command_module: Cog.Commands.Role.Create
import Cog.Support.ModelUtilities, only: [role: 1]
alias Cog.Repository.Roles
test "creating a role works" do
payload = new_req(args: ["foo"])
|> send_req()
|> unwrap()
... | 25.433962 | 70 | 0.591246 |
97b10207ec326ab34bf4149c988e9bd9e6d47048 | 1,347 | exs | Elixir | mix.exs | mcasper/address_us | e48536d8961a78b062aa3938c64e3a73f73655f6 | [
"Apache-2.0"
] | 29 | 2015-02-13T20:35:45.000Z | 2021-08-07T03:34:11.000Z | mix.exs | mcasper/address_us | e48536d8961a78b062aa3938c64e3a73f73655f6 | [
"Apache-2.0"
] | 9 | 2015-11-14T14:28:15.000Z | 2020-12-16T02:01:48.000Z | mix.exs | mcasper/address_us | e48536d8961a78b062aa3938c64e3a73f73655f6 | [
"Apache-2.0"
] | 12 | 2015-03-22T16:13:04.000Z | 2021-02-17T17:44:22.000Z | defmodule AddressUS.Mixfile do
use Mix.Project
def project do
[
app: :address_us,
version: "0.4.1",
elixir: ">= 1.6.0",
name: "AddressUS",
source_url: "https://github.com/smashedtoatoms/address_us",
homepage_url: "https://github.com/smashedtoatoms/address_us",
descript... | 22.830508 | 75 | 0.584261 |
97b10ea3e5697d1a24440adef6b99e7fba729aaf | 2,349 | exs | Elixir | mix.exs | vheathen/commanded-uniqueness-middleware | 0eb0fa997f2a8410c15a2297ee6a191eb97798f6 | [
"MIT"
] | 3 | 2019-11-28T10:20:51.000Z | 2020-11-23T14:07:45.000Z | mix.exs | vheathen/commanded-uniqueness-middleware | 0eb0fa997f2a8410c15a2297ee6a191eb97798f6 | [
"MIT"
] | 10 | 2019-11-28T13:08:48.000Z | 2022-02-08T06:56:39.000Z | mix.exs | vheathen/commanded-uniqueness-middleware | 0eb0fa997f2a8410c15a2297ee6a191eb97798f6 | [
"MIT"
] | 2 | 2020-06-15T16:37:46.000Z | 2021-11-04T19:51:08.000Z | defmodule Commanded.Middleware.Uniqueness.MixProject do
use Mix.Project
@version "0.6.4"
def project do
[
app: :commanded_uniqueness_middleware,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps()... | 24.46875 | 82 | 0.579821 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.