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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62b2e772034b900756fcec2b4adf3f6cbfd43856 | 1,544 | ex | Elixir | test/support/data_case.ex | LKlemens/fancy_chat | 15ecd005a9b4cc8e3bb5548a942069896811d234 | [
"MIT"
] | 1 | 2020-07-27T14:33:02.000Z | 2020-07-27T14:33:02.000Z | test/support/data_case.ex | LKlemens/fancy_chat | 15ecd005a9b4cc8e3bb5548a942069896811d234 | [
"MIT"
] | null | null | null | test/support/data_case.ex | LKlemens/fancy_chat | 15ecd005a9b4cc8e3bb5548a942069896811d234 | [
"MIT"
] | null | null | null | defmodule FancyChat.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to... | 27.571429 | 77 | 0.691062 |
62b2e8e13bc4bb2011e6d1aef8f55d4d86c9bb17 | 847 | ex | Elixir | lib/norm/generator.ex | slashdotdash/norm | 881aabe2f5f08a8858a77cfd67b7f17f87dc282c | [
"MIT"
] | 1 | 2021-03-02T21:05:36.000Z | 2021-03-02T21:05:36.000Z | lib/norm/generator.ex | slashdotdash/norm | 881aabe2f5f08a8858a77cfd67b7f17f87dc282c | [
"MIT"
] | null | null | null | lib/norm/generator.ex | slashdotdash/norm | 881aabe2f5f08a8858a77cfd67b7f17f87dc282c | [
"MIT"
] | 1 | 2021-03-02T10:49:33.000Z | 2021-03-02T10:49:33.000Z | defmodule Norm.Generator do
@moduledoc false
# This module provides a wrapper struct for overriding generators of the other
# conformable and generatable types.
defstruct ~w|conformer generator|a
def new(conformer, generator) do
%__MODULE__{conformer: conformer, generator: generator}
end
defimpl No... | 25.666667 | 80 | 0.68477 |
62b2ec3851270002880ad1fd2164855b0267ecb2 | 107,089 | ex | Elixir | lib/ecto/changeset.ex | msaraiva/ecto | 087445ab569fe57ac9ec6db303e6184ec5ba05d8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | msaraiva/ecto | 087445ab569fe57ac9ec6db303e6184ec5ba05d8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | msaraiva/ecto | 087445ab569fe57ac9ec6db303e6184ec5ba05d8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset do
@moduledoc ~S"""
Changesets allow filtering, casting, validation and
definition of constraints when manipulating structs.
There is an example of working with changesets in the introductory
documentation in the `Ecto` module. The functions `cast/4` and
`change/2` are the usual en... | 38.49353 | 166 | 0.663607 |
62b2fcb1534d735e97ea8c00ab2593b685295e4d | 411 | ex | Elixir | lib/bonfire/games/events/star_collected.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 71 | 2020-03-09T02:09:30.000Z | 2022-03-09T06:10:23.000Z | lib/bonfire/games/events/star_collected.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | null | null | null | lib/bonfire/games/events/star_collected.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 4 | 2020-04-03T02:28:05.000Z | 2021-11-24T20:07:25.000Z | defmodule Bonfire.Games.Events.StarCollected do
@moduledoc """
A struct module for star(s) collected events.
"""
@type t() :: %__MODULE__{
user_id: any,
amount: pos_integer,
source: nil | list,
prev_star_count: non_neg_integer
}
@derive Jason.Encoder
@enfor... | 22.833333 | 58 | 0.635036 |
62b3083f1428d9e328b80d522321fef3ab3c50a3 | 2,346 | exs | Elixir | test/controllers/user_controller_test.exs | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | null | null | null | test/controllers/user_controller_test.exs | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | 1 | 2017-08-24T17:58:54.000Z | 2017-08-24T17:58:54.000Z | test/controllers/user_controller_test.exs | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | null | null | null | defmodule Ices.UserControllerTest do
use Ices.ConnCase
alias Ices.User
@valid_attrs %{email: "some content", name: "some content", password_hash: "some content"}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, user_path(conn, :index)
assert html_response(conn,... | 35.014925 | 98 | 0.676044 |
62b3475298d0cba5a1384416591f1b578c560f87 | 93 | exs | Elixir | test/bar_test.exs | egregius313/bar.ex | b660edb69aafc085e91b9f0072b2471734a66e71 | [
"MIT"
] | null | null | null | test/bar_test.exs | egregius313/bar.ex | b660edb69aafc085e91b9f0072b2471734a66e71 | [
"MIT"
] | null | null | null | test/bar_test.exs | egregius313/bar.ex | b660edb69aafc085e91b9f0072b2471734a66e71 | [
"MIT"
] | null | null | null | defmodule BarTest do
use ExUnit.Case
doctest Bar
test "greets the world" do
end
end
| 11.625 | 28 | 0.72043 |
62b37afdd8658666ed9d339d83648d58e7ef48ab | 3,339 | ex | Elixir | data/web/deps/csv/lib/csv/line_aggregator.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/csv/lib/csv/line_aggregator.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/csv/lib/csv/line_aggregator.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | defmodule CSV.LineAggregator do
use CSV.Defaults
alias CSV.LineAggregator.CorruptStreamError
@moduledoc ~S"""
The CSV LineAggregator module - aggregates lines in a stream that are part
of a common escape sequence.
"""
@doc """
Aggregates the common escape sequences of a stream with the given separato... | 33.39 | 190 | 0.631926 |
62b38d2c47115a52b5797a3295af5d75d21fd14f | 158 | ex | Elixir | lib/portfolio_web/views/global/modal_view.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | lib/portfolio_web/views/global/modal_view.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | lib/portfolio_web/views/global/modal_view.ex | drewfravert/drewfravert.com | 57b3c890d7d931700908bfe9af35921d12419e96 | [
"MIT"
] | null | null | null | defmodule PortfolioWeb.Global.ModalView do
use PortfolioWeb, :view
def pgp_key_block() do
render(PortfolioWeb.Bot.PageView, "pgp-key.asc")
end
end
| 19.75 | 52 | 0.753165 |
62b39d0da089019584abe85496d09be058545354 | 3,640 | exs | Elixir | test/stages/producer_test.exs | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | test/stages/producer_test.exs | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | test/stages/producer_test.exs | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | defmodule KaufmannEx.Stages.ProducerTest do
use ExUnit.Case
setup do
case KaufmannEx.Stages.Producer.start_link([]) do
{:ok, _} -> :ok
{:error, {:already_started, _}} -> :ok
_ -> raise RuntimeError
end
:ok
end
describe "handle_demand" do
test "when no messages and demand > 0... | 26.569343 | 138 | 0.623626 |
62b3c7b625674211ade95bc957e0cd1cfc195012 | 448 | exs | Elixir | priv/repo/migrations/20180223040752_create_variant_option_values.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | priv/repo/migrations/20180223040752_create_variant_option_values.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180223040752_create_variant_option_values.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule Excommerce.Repo.Migrations.CreateVariantOptionValues do
use Ecto.Migration
def change do
create table(:variant_option_values) do
add :variant_id, references(:variants, on_delete: :nothing)
add :option_value_id, references(:option_values, on_delete: :nothing)
timestamps()
end
... | 28 | 75 | 0.743304 |
62b3da958e438703f0c8ced89026f931dad5b82b | 74 | exs | Elixir | test/test_helper.exs | pcsheng/tsuro-phoenix | df3e5f95bf1705d7a8beacd037ca67264ffca41b | [
"MIT"
] | null | null | null | test/test_helper.exs | pcsheng/tsuro-phoenix | df3e5f95bf1705d7a8beacd037ca67264ffca41b | [
"MIT"
] | null | null | null | test/test_helper.exs | pcsheng/tsuro-phoenix | df3e5f95bf1705d7a8beacd037ca67264ffca41b | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(TsuroPhoenix.Repo, :manual)
| 24.666667 | 58 | 0.797297 |
62b40750295e63bc9f06307c6285307c15886285 | 3,936 | ex | Elixir | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/api/sites.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/api/sites.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/api/sites.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... | 43.733333 | 196 | 0.649136 |
62b4385586d530ccd7a8d2daaaba79f7b4f49428 | 144 | exs | Elixir | apps/local_ledger/config/prod.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/local_ledger/config/prod.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/local_ledger/config/prod.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | use Mix.Config
config :local_ledger, LocalLedger.Scheduler,
global: true,
jobs: {:apply, {LocalLedger.Config, :read_scheduler_config, []}}
| 24 | 66 | 0.743056 |
62b457868a4dfd365b48d7bb99f4b0fc6f696d57 | 2,432 | ex | Elixir | lib/ex_doc/markdown.ex | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/ex_doc/markdown.ex | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/markdown.ex | ScrimpyCat/ex_doc | deabff56abc0c4f4890caebfd4a66630be032146 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Markdown do
@moduledoc """
Transform a given document in Markdown to HTML
ExDoc supports the following Markdown parsers:
* [Hoedown][]
* [Earmark][]
* [Cmark][]
If you don't specify a parser in `config/config.exs`, ExDoc will try to
find one of the Markdown parsers from the list... | 29.301205 | 79 | 0.647615 |
62b49b2957d263f11594867e8697845097e5ff97 | 89 | ex | Elixir | lib/athel/models/encrypted_binary_field.ex | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 14 | 2016-09-12T02:45:12.000Z | 2021-02-08T04:13:29.000Z | lib/athel/models/encrypted_binary_field.ex | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 3 | 2016-09-12T05:17:35.000Z | 2016-09-14T16:35:04.000Z | lib/athel/models/encrypted_binary_field.ex | ruhlio/athel | c06a317f38ef7fa28dcb8b1f23889a01c4aa6538 | [
"Apache-2.0"
] | 1 | 2018-02-12T04:30:52.000Z | 2018-02-12T04:30:52.000Z | defmodule Athel.EncryptedBinaryField do
use Cloak.Fields.Binary, vault: Athel.Vault
end | 29.666667 | 45 | 0.831461 |
62b4a4ea18e4f8e52a645e8c9a244419ff5ff8a3 | 515 | exs | Elixir | elixir/leap/leap.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 23 | 2017-02-22T16:57:12.000Z | 2022-02-11T20:32:36.000Z | elixir/leap/leap.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 36 | 2020-07-21T09:34:05.000Z | 2020-07-21T10:29:20.000Z | elixir/leap/leap.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 14 | 2017-02-22T16:58:23.000Z | 2021-10-06T00:21:57.000Z | defmodule Year do
@doc """
Returns whether 'year' is a leap year.
A leap year occurs:
on every year that is evenly divisible by 4
except every year that is evenly divisible by 100
unless the year is also evenly divisible by 400
"""
@spec leap_year?(non_neg_integer) :: boolean
def leap_year?(ye... | 30.294118 | 59 | 0.675728 |
62b4a4f8adde4f1fa58b6e1a63361b7b8cd7d3d1 | 7,507 | exs | Elixir | test/broadway_cloud_pub_sub/acknowledger_test.exs | elbow-jason/broadway_cloud_pub_sub | 092e463af93e240c4e780bf9b0a093e96563da19 | [
"Apache-2.0"
] | 25 | 2020-02-03T13:35:49.000Z | 2022-03-07T06:09:40.000Z | test/broadway_cloud_pub_sub/acknowledger_test.exs | elbow-jason/broadway_cloud_pub_sub | 092e463af93e240c4e780bf9b0a093e96563da19 | [
"Apache-2.0"
] | 29 | 2020-01-25T04:43:37.000Z | 2022-02-28T17:17:12.000Z | test/broadway_cloud_pub_sub/acknowledger_test.exs | elbow-jason/broadway_cloud_pub_sub | 092e463af93e240c4e780bf9b0a093e96563da19 | [
"Apache-2.0"
] | 18 | 2020-01-24T15:26:29.000Z | 2022-02-27T01:03:47.000Z | defmodule BroadwayCloudPubSub.AcknowledgerTest do
use ExUnit.Case
alias Broadway.Message
alias BroadwayCloudPubSub.Client
alias BroadwayCloudPubSub.Acknowledger
doctest Acknowledger
defmodule CallerClient do
alias BroadwayCloudPubSub.Acknowledger
@behaviour Client
@impl Client
def init(o... | 29.555118 | 94 | 0.648595 |
62b4adbbdd0d9c62d692214cf1d0e81aa142b9b1 | 602 | ex | Elixir | test_fixtures/theme_modules/incompatible_theme.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 302 | 2016-08-01T05:16:06.000Z | 2022-03-26T07:20:46.000Z | test_fixtures/theme_modules/incompatible_theme.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 206 | 2016-08-04T15:18:35.000Z | 2022-03-01T03:07:57.000Z | test_fixtures/theme_modules/incompatible_theme.ex | skunkwerks/serum | 45039417a101bf89f3a86a4aa3d42ce41df2d676 | [
"MIT"
] | 35 | 2016-10-29T13:59:34.000Z | 2022-03-01T01:50:31.000Z | defmodule Serum.IncompatibleTheme do
@behaviour Serum.Theme
def name, do: "Dummy Theme"
def description, do: "This is a dummy theme for testing."
def author, do: "John Doe"
def legal, do: "Copyleft"
def version, do: "0.1.0"
def serum, do: "<= 0.0.0"
def get_includes do
[
"/foo/bar/includes/n... | 21.5 | 59 | 0.629568 |
62b4b035f76b8bc945d4036c6a4176fc4c7fdfa4 | 1,966 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/get_policy_options.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/get_policy_options.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/get_policy_options.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.896552 | 124 | 0.745168 |
62b4b86acdb253556f948a60f641eb6399b6f909 | 313 | exs | Elixir | esbuild/config.exs | e8t-arena/phx_taste | 3c005f5fce1550bcba4489cdc4f5efde21ae5d84 | [
"MIT"
] | null | null | null | esbuild/config.exs | e8t-arena/phx_taste | 3c005f5fce1550bcba4489cdc4f5efde21ae5d84 | [
"MIT"
] | null | null | null | esbuild/config.exs | e8t-arena/phx_taste | 3c005f5fce1550bcba4489cdc4f5efde21ae5d84 | [
"MIT"
] | null | null | null | # add to config/config.exs
# Configure esbuild (the version is required)
config :esbuild,
version: "0.12.15",
default: [
args: ~w(js/app.js --bundle --target=es2016 --outdir=../priv/static/assets),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]
| 28.454545 | 80 | 0.632588 |
62b4ef71c0475c25204b8dcbaced5986fba7778d | 613 | ex | Elixir | lib/nomex/nodes.ex | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-12-08T17:56:01.000Z | 2022-01-04T00:26:43.000Z | lib/nomex/nodes.ex | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2017-11-24T18:10:47.000Z | 2017-11-26T17:58:11.000Z | lib/nomex/nodes.ex | neojin/nomad-elixir | 95d169adcfe42549a4f7d8e939c7a47e211fbb04 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-07-20T15:27:13.000Z | 2021-07-20T15:27:13.000Z | defmodule Nomex.Nodes do
require Nomex
require Nomex.Request
alias Nomex.Request
Nomex.meta_moduledoc("Nodes", ["https://www.nomadproject.io/api/nodes.html"])
@nodes_path "/nodes"
Request.meta_get :nodes, @nodes_path
Request.meta_get_prefix :nodes, @nodes_path
Request.meta_get :node, "/node"
def ... | 21.137931 | 79 | 0.707993 |
62b4fb854e34c210b957fc31d1e19bd75ba729e7 | 546 | ex | Elixir | lib/s3_direct_upload/static_date_util.ex | seated/s3_direct_upload | f4f276085175514b63f5460030b94271b8316af6 | [
"Apache-2.0"
] | 12 | 2017-02-19T08:13:28.000Z | 2020-11-25T22:39:06.000Z | lib/s3_direct_upload/static_date_util.ex | seated/s3_direct_upload | f4f276085175514b63f5460030b94271b8316af6 | [
"Apache-2.0"
] | 4 | 2017-03-24T10:33:10.000Z | 2018-09-23T17:54:32.000Z | lib/s3_direct_upload/static_date_util.ex | seated/s3_direct_upload | f4f276085175514b63f5460030b94271b8316af6 | [
"Apache-2.0"
] | 9 | 2017-03-02T22:57:29.000Z | 2021-07-05T09:21:47.000Z | defmodule S3DirectUpload.StaticDateUtil do
@moduledoc false
def today_datetime do
static_datetime()
|> DateTime.to_iso8601(:basic)
end
def today_date do
static_date()
|> Date.to_iso8601(:basic)
end
def expiration_datetime do
static_datetime()
|> DateTime.to_unix()
|> Kernel.+... | 17.0625 | 42 | 0.655678 |
62b50dc4c6cf0d8fea3c20130792a46ad22aea68 | 639 | exs | Elixir | nucleotide-count/nucleotide_count.exs | beatrizslcam/Exercism | 1c399c827e45f6b96f7db6e187c019dbc3c174d8 | [
"MIT"
] | null | null | null | nucleotide-count/nucleotide_count.exs | beatrizslcam/Exercism | 1c399c827e45f6b96f7db6e187c019dbc3c174d8 | [
"MIT"
] | null | null | null | nucleotide-count/nucleotide_count.exs | beatrizslcam/Exercism | 1c399c827e45f6b96f7db6e187c019dbc3c174d8 | [
"MIT"
] | null | null | null | defmodule NucleotideCount do
@nucleotides [?A, ?C, ?G, ?T]
def count(strand, ?A) do
Enum.filter(strand,&(&1 == ?A)) |> Enum.count()
end
def count(strand, ?C) do
Enum.filter(strand,&(&1 == ?C)) |> Enum.count()
end
def count(strand, ?G) do
Enum.filter(strand,&(&1 == ?G)) |> Enum.count()
end
def count(... | 15.975 | 49 | 0.586854 |
62b5253f7f1efad9bf14a4e329bcffd630ac1fc9 | 888 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1/metadata.ex | corp-momenti/elixir-google-api | fe1580e305789ab2ca0741791b8ffe924bd3240c | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.888889 | 74 | 0.760135 |
62b5644f90ebe084da2ca60ac4c3768dca37a21d | 1,193 | ex | Elixir | apps/worker/lib/worker/router.ex | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | apps/worker/lib/worker/router.ex | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | apps/worker/lib/worker/router.ex | evuez/genos | 3d919bc269566a5160f21a0290d41f11b0633d15 | [
"MIT"
] | null | null | null | defmodule Worker.Router do
use GenServer
def start_link(name) do
GenServer.start_link(__MODULE__, :ok, name: name)
end
def route(router, update) do
GenServer.cast(router, {:route, update})
end
# Callbacks
def init(:ok) do
{:ok, %{}}
end
def handle_cast({:route, %{message: %{chat: chat... | 22.092593 | 79 | 0.587594 |
62b56f3e48649997045fdd596220cbb9a18b8593 | 888 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.888889 | 74 | 0.760135 |
62b59b0faab337623be2e91f500b8deeaa1ee10b | 1,818 | exs | Elixir | mix.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 1,845 | 2016-03-29T23:36:36.000Z | 2022-03-31T19:23:38.000Z | mix.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 407 | 2016-03-29T14:55:19.000Z | 2022-02-02T13:53:50.000Z | mix.exs | mrcasals/bamboo | c3b82436d9594d7838775fcc906cd4bd8516690e | [
"MIT"
] | 361 | 2016-03-31T13:33:22.000Z | 2022-02-25T12:38:43.000Z | defmodule Bamboo.Mixfile do
use Mix.Project
@project_url "https://github.com/thoughtbot/bamboo"
def project do
[
app: :bamboo,
version: "2.2.0",
elixir: "~> 1.6",
source_url: @project_url,
homepage_url: @project_url,
test_coverage: [tool: ExCoveralls],
preferred_cli... | 24.567568 | 95 | 0.555006 |
62b59b1a80de84be502289a774c6f5b1a01d60a2 | 3,784 | ex | Elixir | lib/ecto/adapter.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | 1 | 2019-05-03T08:51:16.000Z | 2019-05-03T08:51:16.000Z | lib/ecto/adapter.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapter.ex | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapter do
@moduledoc """
Specifies the minimal API required from adapters.
"""
@type t :: module
@typedoc """
The metadata returned by the adapter `c:init/1`.
It must be a map and Ecto itself will always inject
two keys into the meta:
* the `:cache` key, which as ETS table that c... | 33.785714 | 101 | 0.678383 |
62b59fa4500c3f70939d3925130b196bd0fab07f | 4,134 | ex | Elixir | apps/ex_wire/lib/ex_wire/packet/hello.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/lib/ex_wire/packet/hello.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/ex_wire/lib/ex_wire/packet/hello.ex | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule ExWire.Packet.Hello do
@moduledoc """
This packet establishes capabilities and etc between two peer to peer
clents. This is generally required to be the first signed packet communicated
after the handshake is complete.
```
**Hello** `0x00` [`p2pVersion`: `P`, `clientId`: `B`, [[`cap1`: `B_3`, `ca... | 33.33871 | 173 | 0.626754 |
62b5a89a1bd6f75fb32dd1544bb63fd2905e4979 | 72,917 | ex | Elixir | lib/codes/codes_m87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m87.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_M87 do
alias IcdCode.ICDCode
def _M8700 do
%ICDCode{full_code: "M8700",
category_code: "M87",
short_code: "00",
full_name: "Idiopathic aseptic necrosis of unspecified bone",
short_name: "Idiopathic aseptic necrosis of unspecified bone",
... | 37.202551 | 86 | 0.627933 |
62b5d2de832a323f60928527ce4c682c1f9431a6 | 392 | ex | Elixir | lib/p2p/host_availability/supervisor.ex | hlongvu/elixium_core | 9d01e0bfea44d5014f44e1417ab84c81222a914d | [
"MIT"
] | 164 | 2018-06-23T01:17:51.000Z | 2021-08-19T03:16:31.000Z | lib/p2p/host_availability/supervisor.ex | alexdovzhanyn/ultradark | 85014da4b0683ab8ec86c893b7c1146161da114a | [
"MIT"
] | 37 | 2018-06-28T18:07:27.000Z | 2019-08-22T18:43:43.000Z | lib/p2p/host_availability/supervisor.ex | alexdovzhanyn/ultradark | 85014da4b0683ab8ec86c893b7c1146161da114a | [
"MIT"
] | 26 | 2018-06-22T00:58:34.000Z | 2021-08-19T03:16:40.000Z | defmodule Elixium.HostAvailability.Supervisor do
use Supervisor
@moduledoc """
Starts HostAvailability and HostCheck
"""
def start_link(_args) do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init(_args) do
children = [
Elixium.HostAvailability,
Elixium.HostCheck... | 18.666667 | 59 | 0.701531 |
62b5dfd414cba31e29760cbb017dd16883970a6e | 60 | ex | Elixir | quickly/web/views/quote_view.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | quickly/web/views/quote_view.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | quickly/web/views/quote_view.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | defmodule Quickly.QuoteView do
use Quickly.Web, :view
end
| 15 | 30 | 0.783333 |
62b61cecf7741233be3f1524c9b6d9e0dafa8384 | 405 | exs | Elixir | dingen/priv/repo/seeds.exs | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | dingen/priv/repo/seeds.exs | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | dingen/priv/repo/seeds.exs | rmoorman/dingen-2018011-tenants | 02f3fa618b9a266340d4a4993420dc5641cec08e | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Dingen.Repo.insert!(%Dingen.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will f... | 28.928571 | 61 | 0.708642 |
62b626b36939c5fddac32511bcdc565c160ad5ba | 790 | exs | Elixir | mix.exs | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | mix.exs | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | mix.exs | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | defmodule Blitz.MixProject do
use Mix.Project
def project do
[
app: :blitz,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env),
aliases: aliases()
]
end
# Run "mix help compile.app" to ... | 18.809524 | 59 | 0.540506 |
62b6610adfa531c86174db62d47cacb2e3afc4bf | 1,503 | ex | Elixir | web/web.ex | skatsuta/elixir_sample | 8b03a5879278c492b0ba5fd212c8c4aeb6b55c57 | [
"MIT"
] | null | null | null | web/web.ex | skatsuta/elixir_sample | 8b03a5879278c492b0ba5fd212c8c4aeb6b55c57 | [
"MIT"
] | null | null | null | web/web.ex | skatsuta/elixir_sample | 8b03a5879278c492b0ba5fd212c8c4aeb6b55c57 | [
"MIT"
] | null | null | null | defmodule ElixirSample.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use ElixirSample.Web, :controller
use ElixirSample.Web, :view
The definitions below will be executed for every view,
controller, etc, s... | 20.04 | 88 | 0.670659 |
62b6719d47a0ff421308763e4e31fa50dffdfd99 | 10,887 | ex | Elixir | apps/core/lib/utils/importer/helper/helper27.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 19 | 2019-09-17T18:14:36.000Z | 2021-12-06T07:29:27.000Z | apps/core/lib/utils/importer/helper/helper27.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 5 | 2019-09-30T04:57:14.000Z | 2020-11-10T15:41:03.000Z | apps/core/lib/utils/importer/helper/helper27.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 2 | 2019-09-17T19:03:16.000Z | 2021-03-01T01:04:31.000Z | defmodule Core.Utils.Importer.Helper27 do
import OverDB.Builder.Query
alias Core.DataModel.{Keyspace.Tangle, Table.Bundle, Table.Edge, Table.ZeroValue,Table.Tag}
alias Core.Utils.Importer.Worker27
@bundle_cql_for_address_row "INSERT INTO tangle.bundle (bh,lb,ts,ix,id,va,a,d,e,g) VALUES (?,?,?,?,?,?,?,?,?,?)"
... | 32.401786 | 142 | 0.607238 |
62b67ee46c1887307a8077a7925e21072af089ac | 146 | ex | Elixir | lib/deriqArt_web/controllers/gallery_controller.ex | Tass-Jomo/Art-for-deriq | df88debc0accab36976516a2c1cc49a98cd1dca4 | [
"MIT"
] | null | null | null | lib/deriqArt_web/controllers/gallery_controller.ex | Tass-Jomo/Art-for-deriq | df88debc0accab36976516a2c1cc49a98cd1dca4 | [
"MIT"
] | null | null | null | lib/deriqArt_web/controllers/gallery_controller.ex | Tass-Jomo/Art-for-deriq | df88debc0accab36976516a2c1cc49a98cd1dca4 | [
"MIT"
] | null | null | null | defmodule DeriqArtWeb.GalleryController do
use DeriqArtWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 18.25 | 42 | 0.746575 |
62b6af8f76d44846a6c3084a2d8e534b14b2419e | 2,145 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_human_review_status.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_human_review_status.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1_human_review_status.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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.982759 | 305 | 0.737063 |
62b6b368e9768c640bea9c8622f0ddec33a2330d | 3,907 | ex | Elixir | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.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... | 43.898876 | 196 | 0.660865 |
62b6df1f56845725dfb78b502bfc3f4d0e9de3ed | 1,768 | exs | Elixir | config/config.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 1 | 2021-03-13T01:34:28.000Z | 2021-03-13T01:34:28.000Z | config/config.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | null | null | null | config/config.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :erlef, ErlefWe... | 27.2 | 86 | 0.725679 |
62b6e372c817cd4b057c34b7725c3daf94490ae1 | 1,945 | exs | Elixir | test/elixir/test/reshard_all_docs_test.exs | qa829/couchdb | 9acaa84a2828a2def3777580fffbe080da42bb0d | [
"Apache-2.0"
] | null | null | null | test/elixir/test/reshard_all_docs_test.exs | qa829/couchdb | 9acaa84a2828a2def3777580fffbe080da42bb0d | [
"Apache-2.0"
] | null | null | null | test/elixir/test/reshard_all_docs_test.exs | qa829/couchdb | 9acaa84a2828a2def3777580fffbe080da42bb0d | [
"Apache-2.0"
] | null | null | null | defmodule ReshardAllDocsTest do
use CouchTestCase
import ReshardHelpers
@moduledoc """
Test _all_docs interaction with resharding
"""
setup do
db = random_db_name()
{:ok, _} = create_db(db, query: %{q: 2})
on_exit(fn ->
reset_reshard_state()
delete_db(db)
end)
{:ok, [db: ... | 24.3125 | 75 | 0.619537 |
62b6f8ea3f6409e919770a724efd9451de56094f | 2,697 | ex | Elixir | backend/lib/honeyland/astarte/device/system_status.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/astarte/device/system_status.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/astarte/device/system_status.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# 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 ... | 29.315217 | 82 | 0.67297 |
62b6fbf43614633bb28ce3797f11307cf351e88e | 2,214 | exs | Elixir | config/prod.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T18:20:22.000Z | 2018-10-10T18:20:22.000Z | config/prod.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 23 | 2018-06-07T15:13:15.000Z | 2019-07-30T09:06:03.000Z | config/prod.exs | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# CompanionWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# ... | 33.545455 | 67 | 0.723126 |
62b714adb5dc93d2dda7da7548f3d60152273e39 | 1,074 | ex | Elixir | test/support/conn_case.ex | MWGitHub/focus-server | d2ebc36cfacd91f2db483aef444dfca7dc5b58a9 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | MWGitHub/focus-server | d2ebc36cfacd91f2db483aef444dfca7dc5b58a9 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | MWGitHub/focus-server | d2ebc36cfacd91f2db483aef444dfca7dc5b58a9 | [
"MIT"
] | null | null | null | defmodule FocusServer.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with th... | 24.976744 | 70 | 0.708566 |
62b7156573444eb3572ab040ce4880c6cdc5499b | 10,066 | ex | Elixir | lib/listener.ex | svrdlans/extreme | 8b4697dcccd28a821df39aa4b88e399ccfb37f8a | [
"MIT"
] | null | null | null | lib/listener.ex | svrdlans/extreme | 8b4697dcccd28a821df39aa4b88e399ccfb37f8a | [
"MIT"
] | null | null | null | lib/listener.ex | svrdlans/extreme | 8b4697dcccd28a821df39aa4b88e399ccfb37f8a | [
"MIT"
] | null | null | null | defmodule Extreme.Listener do
@moduledoc ~S"""
Since it is common on read side of system to read events and denormalize them,
there is Extreme.Listener macro that hides noise from listener:
defmodule MyApp.MyListener do
use Extreme.Listener
import MyApp.MyProcessor
# returns ... | 33.665552 | 116 | 0.600636 |
62b7626a7a08769c88364658fdc061fc4ffe730e | 989 | exs | Elixir | hoge/config/config.exs | t-yamanashi/testex | 2b51788fc71f7b60c40316b9a9b6166953a060ba | [
"Apache-2.0"
] | null | null | null | hoge/config/config.exs | t-yamanashi/testex | 2b51788fc71f7b60c40316b9a9b6166953a060ba | [
"Apache-2.0"
] | null | null | null | hoge/config/config.exs | t-yamanashi/testex | 2b51788fc71f7b60c40316b9a9b6166953a060ba | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :hoge, HogeWeb.... | 34.103448 | 86 | 0.767442 |
62b7785b6184be5d46eb803dcf71005db1b7d0c7 | 918 | ex | Elixir | lib/app/commands/blog.ex | inhortte/martesmartes-bot-elixir | f74aff819081975b16cc3db0e8983df003d53772 | [
"MIT"
] | null | null | null | lib/app/commands/blog.ex | inhortte/martesmartes-bot-elixir | f74aff819081975b16cc3db0e8983df003d53772 | [
"MIT"
] | null | null | null | lib/app/commands/blog.ex | inhortte/martesmartes-bot-elixir | f74aff819081975b16cc3db0e8983df003d53772 | [
"MIT"
] | null | null | null | defmodule App.Commands.Blog do
# Notice that here we just `use` Commander. Router is only
# used to map commands to actions. It's best to keep routing
# only in App.Commands file. Commander gives us helpful
# macros to deal with Nadia functions.
use App.Commander
alias App.Aphorisms.Aphorisms
# Functions... | 27 | 62 | 0.694989 |
62b7869bd27fdfc841b7640a2d7d110c9e067407 | 31,287 | ex | Elixir | lib/elixir/lib/keyword.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/keyword.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/keyword.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | defmodule Keyword do
@moduledoc """
Keyword lists are lists of two-element tuples, where the first
element of the tuple is an atom and the second element can be any
value, used mostly to work with optional values.
## Examples
For example, the following is a keyword list:
[{:exit_on_close, true}, {:... | 28.009848 | 98 | 0.600026 |
62b7877dc9110edee0ecd603b0adef7facab21dd | 1,499 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product_unit_pricing_measure.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_unit_pricing_measure.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/v2/model/product_unit_pricing_measure.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... | 29.98 | 84 | 0.717812 |
62b798c8e6c0092212c82a8a8b1ff669548cdd84 | 348 | exs | Elixir | config/dev.exs | dreamingblackcat/phoneix-chat-server-example | 39fe46056c0cf4015c66919c4831b8e2437e39af | [
"MIT"
] | null | null | null | config/dev.exs | dreamingblackcat/phoneix-chat-server-example | 39fe46056c0cf4015c66919c4831b8e2437e39af | [
"MIT"
] | null | null | null | config/dev.exs | dreamingblackcat/phoneix-chat-server-example | 39fe46056c0cf4015c66919c4831b8e2437e39af | [
"MIT"
] | null | null | null | use Mix.Config
config :chatter, Chatter.Endpoint,
http: [port: System.get_env("PORT") || 4000],
debug_errors: true,
cache_static_lookup: false
# Enables code reloading for development
config :phoenix, :code_reloader, true
# Do not include metadata nor timestamps in development logs
config :logger, :console, fo... | 26.769231 | 60 | 0.75 |
62b798efabb51cdd909ae74a00eee2251debe59a | 4,647 | ex | Elixir | debian/manpage.sgml.ex | winjer/squeal | 20401986e0d1698776f5b482b28e14c57b11833c | [
"Apache-2.0"
] | 2 | 2015-01-30T10:22:12.000Z | 2015-11-05T15:37:23.000Z | debian/manpage.sgml.ex | winjer/squeal | 20401986e0d1698776f5b482b28e14c57b11833c | [
"Apache-2.0"
] | null | null | null | debian/manpage.sgml.ex | winjer/squeal | 20401986e0d1698776f5b482b28e14c57b11833c | [
"Apache-2.0"
] | null | null | null | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Ma... | 29.980645 | 75 | 0.657413 |
62b7abcc56cc9210bc5490158836107f59ee6184 | 625 | ex | Elixir | chromoid_web/lib/chromoid/devices/guild_device.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/lib/chromoid/devices/guild_device.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/lib/chromoid/devices/guild_device.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chromoid.Devices.GuildDevice do
use Ecto.Schema
import Ecto.Changeset
schema "guild_devices" do
belongs_to :device, Chromoid.Devices.Device
belongs_to :guild_config, ChromoidDiscord.Guild.Config
field :nickname, :string, null: false
timestamps()
end
def changeset(guild_device, attr... | 25 | 58 | 0.6512 |
62b7b60cd92dc54de87fbabfa237540018ea9f1a | 233 | exs | Elixir | priv/repo/migrations/20160519091620_add_shippment_unit_id_to_shipments.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | priv/repo/migrations/20160519091620_add_shippment_unit_id_to_shipments.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | priv/repo/migrations/20160519091620_add_shippment_unit_id_to_shipments.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Repo.Migrations.AddShipmentUnitIdToShipments do
use Ecto.Migration
def change do
alter table(:shipments) do
add :shipment_unit_id, references(:shipment_units, on_delete: :nilify_all)
end
end
end
| 23.3 | 80 | 0.763948 |
62b7bbaba82294070c0c40aca8b6f7d56ed1e2a7 | 1,779 | exs | Elixir | test/thrift_test.exs | gmassman/everex | ce0f3037e69041127776181afafe6b2d14f0e343 | [
"Apache-2.0"
] | 11 | 2015-02-22T17:42:03.000Z | 2018-09-23T07:48:57.000Z | test/thrift_test.exs | gmassman/everex | ce0f3037e69041127776181afafe6b2d14f0e343 | [
"Apache-2.0"
] | 38 | 2015-03-11T16:13:27.000Z | 2021-08-02T07:14:50.000Z | test/thrift_test.exs | gmassman/everex | ce0f3037e69041127776181afafe6b2d14f0e343 | [
"Apache-2.0"
] | 4 | 2015-05-20T01:33:33.000Z | 2020-06-09T04:44:46.000Z | #
# Copyright 2015 Johan Wärlander
#
# 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 wr... | 36.306122 | 86 | 0.689713 |
62b7d3cec687867747617b078ad69b32028658f0 | 440 | exs | Elixir | priv/repo/migrations/20210213053507_create_sessions.exs | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | 3 | 2021-02-15T13:03:15.000Z | 2022-01-25T11:07:47.000Z | priv/repo/migrations/20210213053507_create_sessions.exs | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | null | null | null | priv/repo/migrations/20210213053507_create_sessions.exs | kimlindholm/plug_session_db_store | 898cc1a3d4d43751aebb2495587841ad9136ffde | [
"MIT"
] | null | null | null | defmodule PlugSessionDbStore.Repo.Migrations.CreateSessions do
use Ecto.Migration
def change do
create table(:sessions) do
add(:session_cookie, :text, null: false)
add(:data, :binary, null: false)
add(:valid_from, :utc_datetime_usec)
add(:valid_to, :utc_datetime_usec, null: false)
... | 25.882353 | 62 | 0.706818 |
62b80eaccc1bd8ec404a2a9a6d4c571cc7bd9552 | 3,051 | ex | Elixir | apps/artemis_web/lib/artemis_web/view_helpers/pagination.ex | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis_web/lib/artemis_web/view_helpers/pagination.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis_web/lib/artemis_web/view_helpers/pagination.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule ArtemisWeb.ViewHelper.Pagination do
use Phoenix.HTML
@doc """
Generates pagination
"""
def render_pagination(conn_or_assigns, data, options \\ [])
def render_pagination(%Plug.Conn{} = conn, data, options) do
assigns = %{
conn: conn,
query_params: conn.query_params,
request_... | 26.763158 | 110 | 0.678794 |
62b81683759ad85d4490d2aeb3148cef3d939982 | 1,154 | exs | Elixir | mix.exs | axelson/inky | f9112e239040010b5336f144d407bd1492cae387 | [
"Apache-2.0"
] | null | null | null | mix.exs | axelson/inky | f9112e239040010b5336f144d407bd1492cae387 | [
"Apache-2.0"
] | null | null | null | mix.exs | axelson/inky | f9112e239040010b5336f144d407bd1492cae387 | [
"Apache-2.0"
] | null | null | null | defmodule Inky.MixProject do
use Mix.Project
def project do
[
app: :inky,
version: "1.0.2",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/pappersverk/inky/",
deps: deps(),
docs: docs(),
package: package()
]
end
# ... | 20.981818 | 130 | 0.539861 |
62b852b66bd079b19b2d0d8785fbe262957bbec3 | 5,615 | ex | Elixir | clients/content/lib/google_api/content/v21/model/account.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/account.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/account.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... | 58.489583 | 440 | 0.697952 |
62b87ecff8fc6d545701a4ada10e232b29b9d911 | 2,662 | ex | Elixir | clients/content/lib/google_api/content/v2/model/pos_custom_batch_response_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/pos_custom_batch_response_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/pos_custom_batch_response_entry.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... | 42.935484 | 159 | 0.70849 |
62b8bdb60e87383c6cc9801fb1f97eab2cceadbf | 1,517 | ex | Elixir | lib/alertlytics/adapters/rabbit_mq_adapter.ex | cultivatedcode/sitrep | 75e9e006882cdae3e1ed4158aa3477ed77601a58 | [
"Apache-2.0"
] | null | null | null | lib/alertlytics/adapters/rabbit_mq_adapter.ex | cultivatedcode/sitrep | 75e9e006882cdae3e1ed4158aa3477ed77601a58 | [
"Apache-2.0"
] | null | null | null | lib/alertlytics/adapters/rabbit_mq_adapter.ex | cultivatedcode/sitrep | 75e9e006882cdae3e1ed4158aa3477ed77601a58 | [
"Apache-2.0"
] | null | null | null | defmodule Alertlytics.Adapters.RabbitMqAdapter do
require Logger
@moduledoc """
Documentation for HttpService.
Checks if the given url returns status 200.
"""
# Client
@doc """
Returns true if the url returns a status of 200.
"""
def check(config) do
url = config["rabbit_admin_url"]
vhost... | 24.079365 | 98 | 0.586684 |
62b8c3ce2a65ff58ff4a31a24ac4be1c5283b5f7 | 264 | ex | Elixir | lib/mag/application.ex | Cyber28/Mag | de4c38314761b7c22b1fbd041a679ddddd4d70ea | [
"MIT"
] | 9 | 2021-05-05T09:32:41.000Z | 2021-12-20T13:37:49.000Z | lib/mag/application.ex | Cyber28/Mag | de4c38314761b7c22b1fbd041a679ddddd4d70ea | [
"MIT"
] | null | null | null | lib/mag/application.ex | Cyber28/Mag | de4c38314761b7c22b1fbd041a679ddddd4d70ea | [
"MIT"
] | null | null | null | defmodule Mag.Application do
use Application
@impl true
def start(_type, _args) do
children = [
{Mag.Server, []},
Mag.Cache
]
opts = [strategy: :one_for_one, name: Mag.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 17.6 | 57 | 0.643939 |
62b8dc9647db71314a4bd32be4741c10ed148151 | 883 | ex | Elixir | lib/lunatube/factory.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | lib/lunatube/factory.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | lib/lunatube/factory.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | defmodule Lunatube.Factory do
use ExMachina.Ecto, repo: Lunatube.Repo
def playlist_factory do
%Lunatube.Playlist{name: "Test Playlist"}
end
def with_videos(playlist, videos_count \\ 1) do
%{playlist | videos: build_list(videos_count, :playlist_video)}
end
def playlist_video_factory do
%Lunatu... | 23.864865 | 93 | 0.680634 |
62b91047351db13c1e5c14b07dd74b3443914dbd | 16,808 | exs | Elixir | lib/elixir/test/elixir/exception_test.exs | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/exception_test.exs | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/exception_test.exs | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ExceptionTest do
use ExUnit.Case, async: true
doctest Exception
test "raise preserves the stacktrace" do
stacktrace =
try do
raise "a"
rescue _ ->
[top | _] = System.stacktrace
top
end
file = __ENV__.file |... | 42.768448 | 131 | 0.632318 |
62b94f410efb944062d844e97185b4a4feb6f16f | 1,589 | ex | Elixir | lib/go_champs_api_web/views/tournament_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/views/tournament_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/views/tournament_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.TournamentView do
use GoChampsApiWeb, :view
alias GoChampsApiWeb.OrganizationView
alias GoChampsApiWeb.TournamentView
alias GoChampsApiWeb.PhaseView
alias GoChampsApiWeb.PlayerView
alias GoChampsApiWeb.TeamView
def render("index.json", %{tournaments: tournaments}) do
%{data: ... | 32.428571 | 97 | 0.70107 |
62b9906725244c941e692df43fa8345c334a93dd | 1,365 | ex | Elixir | lib/list_server.ex | hacksu/elixir-basics | 37e791d3f6a6af2ee328aadb1cb31c7f67492363 | [
"MIT"
] | null | null | null | lib/list_server.ex | hacksu/elixir-basics | 37e791d3f6a6af2ee328aadb1cb31c7f67492363 | [
"MIT"
] | null | null | null | lib/list_server.ex | hacksu/elixir-basics | 37e791d3f6a6af2ee328aadb1cb31c7f67492363 | [
"MIT"
] | null | null | null | defmodule ListServer do
use GenServer
@moduledoc """
ListServer stores a list as the state of a process, and provides functionality
to interact with that list in basic ways.
"""
# Client API
def start_link do
GenServer.start_link(ListServer, [])
end
@doc """
Retreives the current state of the ... | 18.958333 | 80 | 0.619048 |
62b99b43d0024f2688acf0c4320e508f5aaea794 | 2,333 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/bulk_list_insertion_order_assigned_targeting_options_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/bulk_list_insertion_order_assigned_targeting_options_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/bulk_list_insertion_order_assigned_targeting_options_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.883333 | 346 | 0.765967 |
62b9b25f83fb370877d61b60c10546da02988970 | 1,038 | ex | Elixir | lib/mastani_server/cms/job_favorite.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server/cms/job_favorite.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/cms/job_favorite.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.CMS.JobFavorite do
@moduledoc false
alias __MODULE__
use Ecto.Schema
import Ecto.Changeset
alias MastaniServer.Accounts
alias MastaniServer.CMS.Job
@required_fields ~w(user_id job_id)a
@optional_fields ~w(category_id)a
@type t :: %JobFavorite{}
schema "jobs_favorites" do
... | 27.315789 | 78 | 0.740848 |
62b9b8730d0e1b8928aed9e9a0e86ab8bfea373b | 307 | ex | Elixir | lib/protocol/v4/frames/requests/register.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | 7 | 2019-04-13T01:11:18.000Z | 2020-08-11T08:11:03.000Z | lib/protocol/v4/frames/requests/register.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | null | null | null | lib/protocol/v4/frames/requests/register.ex | overdb/over_db | 0bc52de49ee684b4d63607e960d522663e17ed6a | [
"Apache-2.0"
] | null | null | null | defmodule OverDB.Protocol.V4.Frames.Requests.Register do
alias OverDB.Protocol.V4.Frames.{Frame, Requests.Encoder}
@type t :: :register
def opcode() do
0x0B
end
def new(events) when is_list(events) do
Frame.create(:register, Encoder.string_list(events)) |> Frame.encode()
end
end
| 19.1875 | 74 | 0.710098 |
62b9bbc8e7ab035600ac34ccb3c5b877ef89c07e | 63 | exs | Elixir | config/test.exs | oryono/momoapi-elixir | b04aa5db8eadf60b46a31296c448c21138616eae | [
"MIT"
] | null | null | null | config/test.exs | oryono/momoapi-elixir | b04aa5db8eadf60b46a31296c448c21138616eae | [
"MIT"
] | 4 | 2019-12-24T18:26:47.000Z | 2020-01-04T07:25:09.000Z | config/test.exs | oryono/momoapi-elixir | b04aa5db8eadf60b46a31296c448c21138616eae | [
"MIT"
] | null | null | null | use Mix.Config
config :momoapi_elixir, http_client: ClientMock | 21 | 47 | 0.84127 |
62b9c95f49033876e1a1903d85b816850c7b6806 | 25,686 | exs | Elixir | test/floki/html/generated/tokenizer/unicodeChars_part2_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 1,778 | 2015-01-07T14:12:31.000Z | 2022-03-29T22:42:48.000Z | test/floki/html/generated/tokenizer/unicodeChars_part2_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 279 | 2015-01-01T15:54:50.000Z | 2022-03-28T18:06:03.000Z | test/floki/html/generated/tokenizer/unicodeChars_part2_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 166 | 2015-04-24T20:48:02.000Z | 2022-03-28T17:29:05.000Z | defmodule Floki.HTML.Generated.Tokenizer.UnicodecharsPart2Test do
use ExUnit.Case, async: true
# NOTE: This file was generated by "mix generate_tokenizer_tests unicodeChars.test".
# html5lib-tests rev: e52ff68cc7113a6ef3687747fa82691079bf9cc5
alias Floki.HTML.Tokenizer
test "tokenize/1 Valid Unicode charac... | 21.245658 | 86 | 0.613486 |
62b9cd5ab7b8f7e02efa6d26173d13e16c1aceb1 | 1,422 | exs | Elixir | test/floki_helpers_test.exs | kianmeng/test_selector | f88fcb8bdbea873386ab9e1cd01a0794377f0de7 | [
"MIT"
] | 8 | 2017-07-25T12:55:12.000Z | 2021-07-19T09:27:20.000Z | test/floki_helpers_test.exs | kianmeng/test_selector | f88fcb8bdbea873386ab9e1cd01a0794377f0de7 | [
"MIT"
] | 13 | 2017-07-19T14:11:31.000Z | 2021-12-23T12:57:00.000Z | test/floki_helpers_test.exs | DefactoSoftware/test-selector | 0626f97304a2971da6b8203e25f3942f076ef5fa | [
"MIT"
] | 1 | 2021-06-26T14:29:16.000Z | 2021-06-26T14:29:16.000Z | defmodule TestSelector.FlokiHelpersTest do
use ExUnit.Case
import TestSelector.Test.FlokiHelpers
doctest TestSelector.Test.FlokiHelpers, import: true
describe "#find_test_selectors/2" do
test "raises an error when the conn is given as first argument" do
assert_raise(
RuntimeError,
"... | 29.625 | 72 | 0.673699 |
62b9eb24fe8ba6ba44ed79ff8a39b2a565a8dac3 | 2,115 | ex | Elixir | lib/email_service/schema/changeset.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | 2 | 2019-04-15T22:17:59.000Z | 2022-01-03T15:35:36.000Z | lib/email_service/schema/changeset.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | null | null | null | lib/email_service/schema/changeset.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.EmailService.ChangeSet do
alias Noizu.MnesiaVersioning.Ch... | 37.767857 | 101 | 0.531915 |
62ba115b589b855b891235d6063f9ce4f3d0bab1 | 119,703 | ex | Elixir | lib/elixir/lib/enum.ex | AndreOrlov/elixir | 1e4222d1277a28de1895b70c4b54f771be8e5277 | [
"Apache-2.0"
] | 1 | 2021-03-29T14:28:49.000Z | 2021-03-29T14:28:49.000Z | lib/elixir/lib/enum.ex | AndreOrlov/elixir | 1e4222d1277a28de1895b70c4b54f771be8e5277 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | AndreOrlov/elixir | 1e4222d1277a28de1895b70c4b54f771be8e5277 | [
"Apache-2.0"
] | null | null | null | defprotocol Enumerable do
@moduledoc """
Enumerable protocol used by `Enum` and `Stream` modules.
When you invoke a function in the `Enum` module, the first argument
is usually a collection that must implement this protocol.
For example, the expression:
Enum.map([1, 2, 3], &(&1 * 2))
invokes `Enume... | 28.507502 | 116 | 0.616384 |
62ba26982a0d6a8afb05585a72542d8ac8580880 | 26,270 | ex | Elixir | lib/brando/blueprint.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/blueprint.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/blueprint.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Blueprint do
@moduledoc """
# Override Gettext module
If you have a nonstandard named gettext module for your app (not MyAppAdmin.Gettext),
you can supply a `gettext_module` option to your use statement:
use Brando.Blueprint,
application: "MyApp",
# ...
gettext_... | 27.82839 | 97 | 0.608831 |
62ba41d5a39bf4c51d66cc5d574862404e877977 | 1,233 | ex | Elixir | lib/cforum_web/views/admin/forum_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/views/admin/forum_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/views/admin/forum_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule CforumWeb.Admin.ForumView do
use CforumWeb, :view
def page_title(:index, _), do: gettext("administrate forums")
def page_title(action, _) when action in [:new, :create], do: gettext("new forum")
def page_title(action, assigns) when action in [:edit, :update],
do: gettext("edit forum „%{name}“", ... | 41.1 | 84 | 0.699108 |
62ba5734e10b6f54948153328e8ad6295593d435 | 1,174 | exs | Elixir | test/cgrates_web_jsonapi_web/controllers/tp_action_import_job_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | test/cgrates_web_jsonapi_web/controllers/tp_action_import_job_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | test/cgrates_web_jsonapi_web/controllers/tp_action_import_job_controller_test.exs | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapi.TariffPlans.TpActionImportJobControllerTest do
use CgratesWebJsonapi.ConnCase
import CgratesWebJsonapi.Factory
import CgratesWebJsonapi.Guardian
setup do
user = insert(:user)
{:ok, token, _} = encode_and_sign(user, %{}, token_type: :access)
conn =
build_conn()
... | 29.35 | 74 | 0.61414 |
62ba5f4bc366931eadc2a3ca40aceb0779af0d8a | 878 | ex | Elixir | clients/speech/lib/google_api/speech/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.518519 | 74 | 0.757403 |
62ba646bbff30a3f2f45775f32f82c7b0a7754b6 | 2,022 | exs | Elixir | test/tesla/middleware/basic_auth_test.exs | brittlewis12/tesla | 6f0969733142fb59fbce16af6c13352a928b4783 | [
"MIT"
] | 1 | 2021-04-19T06:48:59.000Z | 2021-04-19T06:48:59.000Z | test/tesla/middleware/basic_auth_test.exs | brittlewis12/tesla | 6f0969733142fb59fbce16af6c13352a928b4783 | [
"MIT"
] | null | null | null | test/tesla/middleware/basic_auth_test.exs | brittlewis12/tesla | 6f0969733142fb59fbce16af6c13352a928b4783 | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.BasicAuthTest do
use ExUnit.Case
defmodule BasicClient do
use Tesla
adapter fn env ->
case env.url do
"/basic-auth" -> {:ok, env}
end
end
def client(username, password, opts \\ %{}) do
Tesla.build_client([
{
Tesla.Middleware.B... | 25.275 | 93 | 0.632047 |
62ba6828547d33cbf984c47f9e47ca5fd42ee656 | 28,629 | ex | Elixir | lib/codes/codes_v39.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v39.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v39.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_V39 do
alias IcdCode.ICDCode
def _V3900XA do
%ICDCode{full_code: "V3900XA",
category_code: "V39",
short_code: "00XA",
full_name: "Driver of three-wheeled motor vehicle injured in collision with unspecified motor vehicles in nontraffic accident, initia... | 65.214123 | 176 | 0.726152 |
62baa855393ec681ccc97f35000c753449072fb4 | 6,175 | ex | Elixir | lib/ucx_ucc_web/controllers/coherence/invitation_controller.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | lib/ucx_ucc_web/controllers/coherence/invitation_controller.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | lib/ucx_ucc_web/controllers/coherence/invitation_controller.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UcxUccWeb.Coherence.InvitationController do
@moduledoc """
Handle invitation actions.
Handle the following actions:
* new - render the send invitation form.
* create - generate and send the invitation token.
* edit - render the form after user clicks the invitation email link.
* create_user - ... | 31.505102 | 90 | 0.657328 |
62babe6c8df9499bb571fb25c7258fc2b7fd5d98 | 2,458 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/exemplar.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/exemplar.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/exemplar.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... | 46.377358 | 457 | 0.740033 |
62bb097e0b90fc925d14ff064e3abad1c822a3f8 | 3,498 | ex | Elixir | lib/esshd/shell_handler.ex | skunkwerks/esshd | 0c4869431ad5382f21790fe248e514acb28b036d | [
"Apache-2.0"
] | null | null | null | lib/esshd/shell_handler.ex | skunkwerks/esshd | 0c4869431ad5382f21790fe248e514acb28b036d | [
"Apache-2.0"
] | null | null | null | lib/esshd/shell_handler.ex | skunkwerks/esshd | 0c4869431ad5382f21790fe248e514acb28b036d | [
"Apache-2.0"
] | null | null | null | defmodule Sshd.ShellHandler do
@moduledoc """
As incoming SSH connections are accepted, authorized, and request remote
shell services; they are passed to the `c:Sshd.ShellHandler.on_shell/4`
callback.
"""
@type username :: String.t
@type ssh_publickey :: binary
@type ip_address :: :inet.ip_address()
... | 26.300752 | 74 | 0.650658 |
62bb6e31c5d9dbcf7ab4478111b39f10723db72e | 896 | exs | Elixir | apps/model/test/recordable_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/model/test/recordable_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/model/test/recordable_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule RecordableTest do
use ExUnit.Case, async: true
defmodule Example do
use Recordable, [:key, :val]
end
defmodule ExampleWithPairs do
use Recordable, key: :key, val: :val
end
alias RecordableTest.{Example, ExampleWithPairs}
test "to_record/1" do
assert Example.to_record(%Example{key... | 25.6 | 93 | 0.640625 |
62bb8661f92f50175125c91133f6170f5fbf4342 | 13,708 | ex | Elixir | lib/freddy/core/actor.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | null | null | null | lib/freddy/core/actor.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | null | null | null | lib/freddy/core/actor.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | null | null | null | defmodule Freddy.Core.Actor do
@moduledoc false
@type state :: term
@type reason :: term
@type reply :: term
@type meta :: %{channel: Freddy.Core.Channel.t()}
@callback init(args :: term) ::
{:ok, state}
| :ignore
| {:stop, reason}
@callback handle_connected(me... | 33.763547 | 106 | 0.58557 |
62bb95f52127b7b22d3316f71da10cc669b90d5e | 1,303 | ex | Elixir | clients/site_verification/lib/google_api/site_verification/v1/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/site_verification/lib/google_api/site_verification/v1/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/site_verification/lib/google_api/site_verification/v1/connection.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 38.323529 | 77 | 0.750576 |
62bbab5aa35411709293ddb12c84f5a7d62c9fe8 | 2,097 | ex | Elixir | lib/maze/users.ex | korczis/maze | 128ca3958c9e62c4fdc53efa72799283d66b056d | [
"MIT"
] | null | null | null | lib/maze/users.ex | korczis/maze | 128ca3958c9e62c4fdc53efa72799283d66b056d | [
"MIT"
] | 3 | 2016-11-22T20:23:00.000Z | 2016-11-22T20:23:20.000Z | lib/maze/users.ex | korczis/maze | 128ca3958c9e62c4fdc53efa72799283d66b056d | [
"MIT"
] | null | null | null | defmodule Maze.Users do
use GenServer
alias Maze.User
def start_link(dets_name) do
GenServer.start_link(__MODULE__, dets_name, name: __MODULE__)
end
def insert(changeset) do
changeset = %{changeset | action: :insert}
case changeset.valid? do
true ->
user = changeset
... | 23.3 | 83 | 0.57463 |
62bbc1aeb30639b2cd985e326d6ca52d0d8e1a11 | 613 | exs | Elixir | lib/system/targets/rpi0w/fs.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/system/targets/rpi0w/fs.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | lib/system/targets/rpi0w/fs.exs | KRISHITECH/farmbot_os | 4220baf8f3ef930ce3b861b178ca6a76e2fd7591 | [
"MIT"
] | null | null | null | defmodule Module.concat([Farmbot, System, "rpi0w", FileSystem]) do
@moduledoc false
@behaviour Farmbot.System.FS
@state_path Application.get_env(:farmbot, :path)
@block_device "/dev/mmcblk0p3"
@fs_type "ext4"
@ro_options ["-t", @fs_type, "-o", "ro,remount", @block_device, @state_path]
@rw_options ["-t", @... | 36.058824 | 78 | 0.673736 |
62bbdec80536cb8a74ae0f4dfd9181a6639a306d | 3,549 | ex | Elixir | lib/game/command/mail.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/command/mail.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/command/mail.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | defmodule Game.Command.Mail do
@moduledoc """
The "mail" command
"""
use Game.Command
use Game.Command.Editor
alias Game.Account
alias Game.Format
alias Game.Hint
alias Game.Mail
commands(["mail"], parse: false)
@impl Game.Command
def help(:topic), do: "Mail"
def help(:short), do: "Send ma... | 23.97973 | 99 | 0.590307 |
62bc075f3abfe22aa52483e3eeed19985e8c1526 | 1,734 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volume_volume_info_dimensions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/volume_volume_info_dimensions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_volume_info_dimensions.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 ... | 32.716981 | 96 | 0.708189 |
62bc28006796070bce23fe38ad582750133e6ae0 | 1,640 | exs | Elixir | mix.exs | maximemenager/zxcvbn-elixir | d97e6607ea85abc0909830868f31761daeb8f536 | [
"Apache-2.0"
] | 31 | 2019-03-15T07:51:52.000Z | 2022-03-01T03:57:55.000Z | mix.exs | maximemenager/zxcvbn-elixir | d97e6607ea85abc0909830868f31761daeb8f536 | [
"Apache-2.0"
] | 16 | 2018-02-04T17:05:52.000Z | 2021-08-02T15:11:56.000Z | mix.exs | maximemenager/zxcvbn-elixir | d97e6607ea85abc0909830868f31761daeb8f536 | [
"Apache-2.0"
] | 5 | 2019-03-31T23:39:22.000Z | 2021-08-02T09:50:43.000Z | defmodule ZXCVBN.MixProject do
use Mix.Project
@github_link "https://github.com/techgaun/zxcvbn-elixir"
def project do
[
app: :zxcvbn,
version: "0.1.3",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
build_permanent: Mix.env() == :prod,
deps: deps(),
package... | 23.768116 | 79 | 0.542073 |
62bc2f25c8015aa3a11c9698884f4bb9d7d78b67 | 426 | ex | Elixir | lib/stripe.ex | SenecaSystems/stripe | be70297b6691652b21b483b445108ec0cb9413b2 | [
"MIT"
] | 22 | 2015-02-11T06:29:21.000Z | 2019-06-26T13:36:56.000Z | lib/stripe.ex | SenecaSystems/stripe | be70297b6691652b21b483b445108ec0cb9413b2 | [
"MIT"
] | 2 | 2015-06-19T20:55:31.000Z | 2015-06-20T04:46:20.000Z | lib/stripe.ex | SenecaSystems/stripe | be70297b6691652b21b483b445108ec0cb9413b2 | [
"MIT"
] | 9 | 2015-06-16T03:38:00.000Z | 2021-02-21T02:13:39.000Z | defmodule Stripe do
use HTTPotion.Base
@spec process_url(String.t) :: String.t
def process_url(path) do
"https://api.stripe.com/" <> path
end
@spec process_request_headers(map) :: map
def process_request_headers(headers) do
Dict.put headers, :Authorization, "Bearer #{secret_key}"
end
defp sec... | 23.666667 | 84 | 0.71831 |
62bc389e5b8d44de43c130dc26d239344502cff6 | 644 | exs | Elixir | integration_test/phantom/current_path_test.exs | alecho/wallaby | 90c34245e6340d49a2976f3f60b810c4435c19f8 | [
"MIT"
] | 1 | 2020-05-15T20:41:00.000Z | 2020-05-15T20:41:00.000Z | integration_test/phantom/current_path_test.exs | aarongraham/wallaby | 37a4dc379a83b64540c8763e7205752b43bd811e | [
"MIT"
] | null | null | null | integration_test/phantom/current_path_test.exs | aarongraham/wallaby | 37a4dc379a83b64540c8763e7205752b43bd811e | [
"MIT"
] | null | null | null | defmodule Wallaby.Integration.Phantom.CurrentPathTest do
use Wallaby.Integration.SessionCase, async: true
alias Wallaby.Phantom.Driver
setup %{session: session} do
page =
session
|> visit("index.html")
{:ok, %{page: page}}
end
describe "current_path/1" do
test "returns the current ... | 23 | 61 | 0.625776 |
62bc447088cdc893519e290b729fc10780c68cb8 | 696 | exs | Elixir | apps/streamer/priv/seed_settings.exs | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 65 | 2020-07-07T01:51:27.000Z | 2021-09-27T00:13:59.000Z | apps/streamer/priv/seed_settings.exs | Cinderella-Man/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 5 | 2021-02-12T08:21:15.000Z | 2021-09-01T21:17:27.000Z | apps/streamer/priv/seed_settings.exs | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 10 | 2020-08-13T13:39:31.000Z | 2021-09-14T12:46:51.000Z | require Logger
alias Decimal
alias Streamer.Repo
alias Streamer.Schema.Settings
binance_client = Application.get_env(:naive, :binance_client)
Logger.info("Fetching exchange info from Binance to create trading settings")
{:ok, %{symbols: symbols}} = binance_client.get_exchange_info()
timestamp = NaiveDateTime.utc_n... | 23.2 | 77 | 0.742816 |
62bc4e1335ed8d68df8697e0d19ab75a07d4fda6 | 875 | ex | Elixir | web/controllers/report_controller.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | web/controllers/report_controller.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | web/controllers/report_controller.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.ReportController do
use Eecrit.Web, :controller
alias Eecrit.AnimalUseReportTxs
alias Eecrit.AnimalReservationReportTxs
alias Eecrit.ViewModel
def animal_use(conn, %{"report" => params}) do
%{"first_date" => first_date, "last_date" => last_date} = params
view_model = AnimalUseReportT... | 35 | 83 | 0.732571 |
62bc6a2b72311e976bfbcf05a76a2c6dc60cac4a | 945 | ex | Elixir | lib/hangman/application.ex | gltchitm/hangman | 268753471054df4eba74c1302ed6899a3b523019 | [
"MIT"
] | null | null | null | lib/hangman/application.ex | gltchitm/hangman | 268753471054df4eba74c1302ed6899a3b523019 | [
"MIT"
] | null | null | null | lib/hangman/application.ex | gltchitm/hangman | 268753471054df4eba74c1302ed6899a3b523019 | [
"MIT"
] | null | null | null | defmodule Hangman.Application do
use Application
def start(_, _) do
children = [
Plug.Cowboy.child_spec(
scheme: :http,
plug: Hangman.Router,
options: [
port: String.to_integer(System.get_env("PORT", "5522")),
... | 26.25 | 76 | 0.442328 |
62bc70f55bb1b115ecc53f4300ec43567cd395f4 | 9,186 | ex | Elixir | lib/mix/lib/mix/tasks/deps.compile.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.compile.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/mix/lib/mix/tasks/deps.compile.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps.Compile do
use Mix.Task
@shortdoc "Compiles dependencies"
@moduledoc """
Compiles dependencies.
By default, compile all dependencies. A list of dependencies
can be given to compile multiple dependencies in order.
This task attempts to detect if the project contains one of
th... | 29.254777 | 108 | 0.608752 |
62bcd5a26c47e02869441a8b7c87fdf3a9b63c7d | 875 | ex | Elixir | lib/rapport/image.ex | ricn/rapport | f00f9945a11ca3f68e79c8f5709fa170b8ac4682 | [
"MIT"
] | 59 | 2017-09-30T23:28:20.000Z | 2021-12-13T21:20:08.000Z | lib/rapport/image.ex | ricn/rapport | f00f9945a11ca3f68e79c8f5709fa170b8ac4682 | [
"MIT"
] | 5 | 2017-10-27T07:28:13.000Z | 2021-12-13T21:56:47.000Z | lib/rapport/image.ex | ricn/rapport | f00f9945a11ca3f68e79c8f5709fa170b8ac4682 | [
"MIT"
] | 2 | 2017-10-26T13:50:46.000Z | 2018-06-18T11:58:50.000Z | defmodule Rapport.Image do
@spec as_data(String.t()) :: String.t()
@doc """
Converts an image to a base64 encoded string that can be embedded in a image tag:
<img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." />
Supported image types are JPEG, PNG and GIF.
## Options
... | 35 | 97 | 0.683429 |
62bcdacf10a22fc995792480d582c54919905e19 | 362 | ex | Elixir | lib/arbejd_q/jobs.ex | xpgdk/arbejd_q | 3fedc326569dc32dce6993ff36b4ca7dafe4c95d | [
"MIT"
] | null | null | null | lib/arbejd_q/jobs.ex | xpgdk/arbejd_q | 3fedc326569dc32dce6993ff36b4ca7dafe4c95d | [
"MIT"
] | null | null | null | lib/arbejd_q/jobs.ex | xpgdk/arbejd_q | 3fedc326569dc32dce6993ff36b4ca7dafe4c95d | [
"MIT"
] | null | null | null | defmodule ArbejdQ.Jobs do
alias ArbejdQ.Job
@spec notify_if_failed(Job.t()) :: Job.t()
def notify_if_failed(%Job{status: :failed} = job) do
callback = Application.get_env(:arbejd_q, :job_failed_callback, nil)
if callback != nil do
spawn fn ->
callback.(job)
end
end
job
end
... | 20.111111 | 72 | 0.649171 |
62bcdd78a837b6afa8d92a9dcc5c7f8620fd52fc | 1,576 | ex | Elixir | lib/faker/company.ex | forksss/faker | 380ca7d5f5be6a43fdbbe471ee96a60cd7c706fe | [
"MIT"
] | 2 | 2016-04-23T15:09:51.000Z | 2017-03-02T12:04:42.000Z | lib/faker/company.ex | batate/faker | b352ea8254ddf3185ce2839f91c862605e8a0498 | [
"MIT"
] | null | null | null | lib/faker/company.ex | batate/faker | b352ea8254ddf3185ce2839f91c862605e8a0498 | [
"MIT"
] | null | null | null | defmodule Faker.Company do
data_path = Path.expand(Path.join(__DIR__, "../../priv/company.json"))
json = File.read!(data_path) |> Poison.Parser.parse!
Enum.each json, fn(el) ->
{lang, data} = el
Enum.each data, fn
{"values", values} ->
Enum.each values, fn({fun, list}) ->
def unquo... | 41.473684 | 143 | 0.576142 |
62bd10753a4345696d4173554f9c2703ae8cc063 | 5,559 | ex | Elixir | lib/coherence/controllers/registration_controller_base.ex | dymmer-code/coherence | 607428c92bd0a3beef60f0e170c0c07f06e89e9c | [
"MIT"
] | 1 | 2019-03-20T01:28:30.000Z | 2019-03-20T01:28:30.000Z | lib/coherence/controllers/registration_controller_base.ex | dymmer-code/coherence | 607428c92bd0a3beef60f0e170c0c07f06e89e9c | [
"MIT"
] | null | null | null | lib/coherence/controllers/registration_controller_base.ex | dymmer-code/coherence | 607428c92bd0a3beef60f0e170c0c07f06e89e9c | [
"MIT"
] | null | null | null | defmodule Coherence.RegistrationControllerBase do
@moduledoc """
Handle account registration actions.
Actions:
* new - render the register form
* create - create a new user account
* edit - edit the user account
* update - update the user account
* delete - delete the user account
"""
defmacro __u... | 29.569149 | 92 | 0.577802 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.