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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
852e570ddfc2507dbdc48a3d991997b6a0f9b2b3 | 5,179 | ex | Elixir | lib/nostrum/cache/guild_cache.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-12-08T23:47:17.000Z | 2020-12-08T23:47:17.000Z | lib/nostrum/cache/guild_cache.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | null | null | null | lib/nostrum/cache/guild_cache.ex | jos-b/nostrum | baf5c9de9f17c3bd99c5c06a454e03cc448aad1c | [
"MIT"
] | 1 | 2020-09-03T13:55:55.000Z | 2020-09-03T13:55:55.000Z | defmodule Nostrum.Cache.GuildCache do
@moduledoc """
Functions for retrieving guild states.
"""
alias Nostrum.Cache.Guild.{GuildServer, GuildSupervisor}
alias Nostrum.Cache.Mapping.ChannelGuild
alias Nostrum.Struct.Channel
alias Nostrum.Struct.Guild
alias Nostrum.Struct.Message
alias Nostrum.Util
... | 29.259887 | 90 | 0.65978 |
852ea7f12f004ec5781346d3f7d3e7fbfee09739 | 6,070 | exs | Elixir | test/assert_html_test.exs | Kr00lIX/assert_html | dbdd4e0a1e689e8c098ba2f45faf13f64fa1e752 | [
"MIT"
] | 7 | 2019-04-19T23:52:12.000Z | 2022-03-14T22:17:30.000Z | test/assert_html_test.exs | Kr00lIX/assert_html | dbdd4e0a1e689e8c098ba2f45faf13f64fa1e752 | [
"MIT"
] | 1 | 2019-04-12T09:00:27.000Z | 2019-04-12T09:00:27.000Z | test/assert_html_test.exs | Kr00lIX/assert_html | dbdd4e0a1e689e8c098ba2f45faf13f64fa1e752 | [
"MIT"
] | 4 | 2019-02-26T15:58:55.000Z | 2020-09-28T13:45:38.000Z | defmodule AssertHTMLTest do
use ExUnit.Case, async: true
doctest AssertHTML, import: true
import AssertHTML
alias ExUnit.AssertionError
describe "assert_html (check css selector)" do
setup do
[html: ~S{
<div class="container">
<h1>Hello</h1>
<p class="description">
... | 31.947368 | 204 | 0.574959 |
852ec83f1e3bcb6bf94e05ecc0a6c8fa0d44ebd6 | 1,923 | ex | Elixir | clients/container/lib/google_api/container/v1/model/usable_subnetwork_secondary_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/usable_subnetwork_secondary_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/container/lib/google_api/container/v1/model/usable_subnetwork_secondary_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.283019 | 169 | 0.729069 |
852ed28db0ca2a23c152379cb33bf6c2b355089a | 998 | ex | Elixir | clients/local_services/lib/google_api/local_services/v1/connection.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/local_services/lib/google_api/local_services/v1/connection.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/local_services/lib/google_api/local_services/v1/connection.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.266667 | 74 | 0.749499 |
852ed4186e2ec097a043799edf1a3fd7677d256c | 3,979 | ex | Elixir | lib/url.ex | kianmeng/url | e65a0f3cff4bea203c7965d4d7c4cf612169d726 | [
"Apache-2.0"
] | null | null | null | lib/url.ex | kianmeng/url | e65a0f3cff4bea203c7965d4d7c4cf612169d726 | [
"Apache-2.0"
] | null | null | null | lib/url.ex | kianmeng/url | e65a0f3cff4bea203c7965d4d7c4cf612169d726 | [
"Apache-2.0"
] | null | null | null | defmodule URL do
@moduledoc """
Functions for parsing URLs
This module provides functions for parsing URLs. It is modelled on
Elixir's `URI` module but will also parse scheme-specific URIs such
as [geo](https://tools.ietf.org/rfc/rfc5870), [data](https://tools.ietf.org/html/rfc2397)
[tel](https://tools.iet... | 23.826347 | 100 | 0.602161 |
852ee64b846c399c94dc2d99cd79009e75b9c982 | 2,527 | ex | Elixir | lib/commodity_api/iam/user/password_assignment/password_assignment_controller.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/iam/user/password_assignment/password_assignment_controller.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/iam/user/password_assignment/password_assignment_controller.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 30.817073 | 77 | 0.707954 |
852eea1b770627a27602a1798b97c19142e46723 | 1,760 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/user_relation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/admin/lib/google_api/admin/directory_v1/model/user_relation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/user_relation.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... | 33.207547 | 167 | 0.709091 |
852f0449d49008c17e191b9b0df382644dd346d4 | 1,892 | ex | Elixir | elixir/lib/homework/companies.ex | menyx02/web-homework | efe99056a76c374bf9257ed0d16233febcd35524 | [
"MIT"
] | null | null | null | elixir/lib/homework/companies.ex | menyx02/web-homework | efe99056a76c374bf9257ed0d16233febcd35524 | [
"MIT"
] | null | null | null | elixir/lib/homework/companies.ex | menyx02/web-homework | efe99056a76c374bf9257ed0d16233febcd35524 | [
"MIT"
] | null | null | null | defmodule Homework.Companies do
@moduledoc """
The Companies context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Companies.Company
alias Homework.Transactions
@doc """
Returns the list of companies.
## Examples
iex> list_companies([])
[%Company{}, ...]
... | 17.2 | 62 | 0.603066 |
852f0eb90eb00053e7dd6f82b783696af9041811 | 2,374 | exs | Elixir | test/controllers/nearby_controller_test.exs | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | test/controllers/nearby_controller_test.exs | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | test/controllers/nearby_controller_test.exs | bolecki/volition | f92cdd45fcc66a2552d1f5f35968b088dbc2e53f | [
"MIT"
] | null | null | null | defmodule Volition.NearbyControllerTest do
use Volition.ConnCase
alias Volition.Nearby
@valid_attrs %{}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, nearby_path(conn, :index)
assert html_response(conn, 200) =~ "Listing nearbys"
end
test "renders form f... | 35.432836 | 98 | 0.687869 |
852f0edf6fe933845b318654149eccf0f4cf0a14 | 571 | exs | Elixir | priv/repo/migrations/20160211114524_create_variant.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/20160211114524_create_variant.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/20160211114524_create_variant.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.CreateVariant do
use Ecto.Migration
def change do
create table(:variants) do
add :is_master, :boolean, default: false
add :sku, :string
add :weight, :decimal
add :height, :decimal
add :width, :decimal
add :depth, :decimal
add :discontin... | 23.791667 | 65 | 0.646235 |
852f15256500603a726b73059a75be2ca1684f74 | 757 | exs | Elixir | spec/example_spec.exs | yanovitchsky/karibu_ex | 85349c6dcda74c90db7fda8b9164680c6103eb49 | [
"MIT"
] | 1 | 2018-01-20T00:58:33.000Z | 2018-01-20T00:58:33.000Z | spec/example_spec.exs | enixdark/audit_api | 3aa6e9169cd9e80f06d91e4104438398a012a86f | [
"MIT"
] | null | null | null | spec/example_spec.exs | enixdark/audit_api | 3aa6e9169cd9e80f06d91e4104438398a012a86f | [
"MIT"
] | null | null | null | defmodule ExampleSpec do
use ESpec
before do
answer = Enum.reduce((1..9), &(&2 + &1)) - 3
{:shared, answer: answer} #saves {:key, :value} to `shared`
end
example "test" do
expect shared.answer |> to(eq 42)
end
context "Defines context" do
subject(shared.answer)
it do: is_expected.to ... | 18.925 | 63 | 0.602378 |
852f26f149aa7441bd4daaca19a2a7e51365ea40 | 647 | ex | Elixir | core/metrics/aggregate_strategy/average.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/metrics/aggregate_strategy/average.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/metrics/aggregate_strategy/average.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
alias AntikytheraCore.Metrics.AggregateStrategy, as: Strategy
defmodule Strategy.Average do
@moduledoc """
Aggregate strategy that calculates the average value of incoming raw metrics data.
"""
@behaviour Strategy.Behaviour
@typep da... | 26.958333 | 101 | 0.697063 |
852f4ae450f28bb5fba688bdc11a59f6306beee6 | 3,568 | ex | Elixir | lib/mix/lib/mix/tasks/compile.elixir.ex | kassio/elixir | 78551c11c9c97bb608e4097d2e0c36458b11f535 | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/mix/lib/mix/tasks/compile.elixir.ex | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.elixir.ex | hiro-riveros/elixir | c6da1cfaa83e420726be25617440fc09f118de52 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Elixir do
use Mix.Task.Compiler
@recursive true
@manifest "compile.elixir"
@moduledoc """
Compiles Elixir source files.
Elixir is smart enough to recompile only files that have changed
and their dependencies. This means if `lib/a.ex` is invoking
a function defined over `li... | 31.575221 | 92 | 0.670684 |
852f4f7c00637c0dc955f512ea27f43de0f6685d | 73 | ex | Elixir | lib/tgdb.ex | facto/tgdb | 35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d | [
"MIT"
] | null | null | null | lib/tgdb.ex | facto/tgdb | 35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d | [
"MIT"
] | null | null | null | lib/tgdb.ex | facto/tgdb | 35f1fa4e9c78c7bb8d3138314bfd0dd07e49b16d | [
"MIT"
] | null | null | null | defmodule Tgdb do
@moduledoc """
Documentation for `Tgdb`.
"""
end
| 12.166667 | 27 | 0.643836 |
852f4fa93be15ae561230162e0e8b84576100ac0 | 829 | ex | Elixir | apps/re/lib/filtering/relaxed.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re/lib/filtering/relaxed.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/filtering/relaxed.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule Re.Filtering.Relaxed do
@moduledoc """
Module to build relaxed queries from filters
It expands the filters with more/less value than the max/min
"""
alias Re.{
Images,
Listing,
Listings,
Filtering,
Listings.Queries,
Repo
}
@relations [
:address,
images: Images.Qu... | 20.219512 | 62 | 0.645356 |
852f92b9ae40ee34347f7cd53126d462fd72788b | 77 | ex | Elixir | Chapter11/code/apps/elixir_drip_web/lib/elixir_drip_web/prometheus/metrics_exporter.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter11/code/apps/elixir_drip_web/lib/elixir_drip_web/prometheus/metrics_exporter.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter11/code/apps/elixir_drip_web/lib/elixir_drip_web/prometheus/metrics_exporter.ex | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDripWeb.MetricsExporter do
use Prometheus.PlugExporter
end
| 19.25 | 42 | 0.87013 |
852f96822ee104fa335a4d90b1e549577703b777 | 757 | ex | Elixir | lib/ja_serializer/builder/attribute.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | 1 | 2017-08-31T04:00:15.000Z | 2017-08-31T04:00:15.000Z | lib/ja_serializer/builder/attribute.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/builder/attribute.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | null | null | null | defmodule JaSerializer.Builder.Attribute do
@moduledoc false
defstruct [:key, :value]
def build(context) do
context
|> fields_to_include
|> Enum.map(&do_build/1)
end
def fields_to_include(%{data: data, serializer: serializer, conn: conn} = context) do
attrs = apply(serializer,:attributes, [... | 27.035714 | 89 | 0.656539 |
852fa75ba8504cc88b2066ef32ae038ff92c3358 | 1,895 | ex | Elixir | lib/auto_mocker.ex | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | lib/auto_mocker.ex | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | lib/auto_mocker.ex | skylerparr/ex_injector | d2340f1c8b4884f1353dfe39c60b51fa78599697 | [
"MIT"
] | null | null | null | defmodule AutoMocker do
defmacro __using__(for: {:__aliases__, _, [module]}) do
gen_mock(module)
end
defmacro __using__(for: module) do
gen_mock(module)
end
defp gen_mock(module) do
mod_string = module |> Atom.to_string()
module = "Elixir.#{mod_string}" |> String.to_atom()
functions = ex... | 24.61039 | 85 | 0.595778 |
852fc99c397bc4bad65465023d0131401a65f689 | 63 | ex | Elixir | phoenix/budgets/lib/budgets_web/views/layout_view.ex | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | phoenix/budgets/lib/budgets_web/views/layout_view.ex | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | phoenix/budgets/lib/budgets_web/views/layout_view.ex | stevenjackson/jacksonbudget | b1c0189684829f5be13155726ce156f1fccbc8fe | [
"MIT"
] | null | null | null | defmodule BudgetsWeb.LayoutView do
use BudgetsWeb, :view
end
| 15.75 | 34 | 0.809524 |
8530133fe4c21c4c999fc6211fc074ba5e8fab87 | 141 | ex | Elixir | test/support/models/not_polymorphic/country.ex | maennchen/polymorphic_embed | e8e64cdb81910983d666076cf42020381f6087af | [
"Apache-2.0"
] | null | null | null | test/support/models/not_polymorphic/country.ex | maennchen/polymorphic_embed | e8e64cdb81910983d666076cf42020381f6087af | [
"Apache-2.0"
] | null | null | null | test/support/models/not_polymorphic/country.ex | maennchen/polymorphic_embed | e8e64cdb81910983d666076cf42020381f6087af | [
"Apache-2.0"
] | null | null | null | defmodule PolymorphicEmbed.Regular.Country do
use Ecto.Schema
schema "countries" do
field :name, :string
timestamps()
end
end
| 15.666667 | 45 | 0.723404 |
853035ce8b7f026e8436f801d56997a3115ec201 | 699 | ex | Elixir | lib/castore.ex | YosephHaryanto/castore | 41f8ad333679f7b79c178a708f48bd575314a159 | [
"Apache-2.0"
] | 66 | 2019-10-29T02:50:03.000Z | 2022-03-31T06:13:26.000Z | lib/castore.ex | YosephHaryanto/castore | 41f8ad333679f7b79c178a708f48bd575314a159 | [
"Apache-2.0"
] | 16 | 2020-05-30T14:51:12.000Z | 2022-03-29T13:26:32.000Z | deps/castore/lib/castore.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 14 | 2020-03-30T06:17:57.000Z | 2021-08-07T07:00:23.000Z | defmodule CAStore do
@moduledoc """
Functionality to retrieve the up-to-date CA certificate store.
The only purpose of this library is to keep an up-to-date CA certificate store file.
This is why this module only provides one function, `file_path/0`, to access the path of
the CA certificate store file. You c... | 27.96 | 90 | 0.703863 |
85304f9a8bb85bf90dd7cc7805b032d09173ed36 | 1,138 | ex | Elixir | lib/boom_notifier/mail_notifier/text_content.ex | krainboltgreene/boom | 50be3bfe78708e52be6ba3aec3982dcd71bdabb2 | [
"MIT"
] | 60 | 2020-09-03T16:36:05.000Z | 2022-03-24T22:41:58.000Z | lib/boom_notifier/mail_notifier/text_content.ex | krainboltgreene/boom | 50be3bfe78708e52be6ba3aec3982dcd71bdabb2 | [
"MIT"
] | 33 | 2020-09-03T18:52:41.000Z | 2022-03-28T13:53:58.000Z | lib/boom_notifier/mail_notifier/text_content.ex | krainboltgreene/boom | 50be3bfe78708e52be6ba3aec3982dcd71bdabb2 | [
"MIT"
] | 6 | 2020-10-02T17:58:23.000Z | 2022-03-21T19:07:36.000Z | defmodule BoomNotifier.MailNotifier.TextContent do
@moduledoc false
import BoomNotifier.Helpers
require EEx
EEx.function_from_file(
:def,
:email_body,
Path.join([Path.dirname(__ENV__.file), "templates", "email_body.text.eex"]),
[:errors]
)
def build(errors) when is_list(errors) do
ema... | 24.212766 | 95 | 0.660808 |
85305c0d5b0889601b7fcf0ea78e4b415413c23c | 107 | ex | Elixir | lib/excommerce/commands/country.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | lib/excommerce/commands/country.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | lib/excommerce/commands/country.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule Excommerce.Command.Country do
use Excommerce.Command, schema: Excommerce.Addresses.Country
end
| 26.75 | 62 | 0.841121 |
8530874f5bbbacff0c3dac597e266cc8ca655e35 | 4,100 | ex | Elixir | clients/run/lib/google_api/run/v1/model/service_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/run/lib/google_api/run/v1/model/service_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/run/lib/google_api/run/v1/model/service_status.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... | 63.076923 | 503 | 0.743659 |
85308db06498e58ebe228a8a3880d455cd1a9bc3 | 2,246 | exs | Elixir | apps/nerves_hub_api/config/release.exs | x4lldux/nerves_hub_web | ac121981ec029ccf3d0d696f884dbf82ad1ee543 | [
"Apache-2.0"
] | 10 | 2018-04-12T18:16:40.000Z | 2018-04-14T06:05:42.000Z | apps/nerves_hub_api/config/release.exs | x4lldux/nerves_hub_web | ac121981ec029ccf3d0d696f884dbf82ad1ee543 | [
"Apache-2.0"
] | 13 | 2018-05-25T19:31:49.000Z | 2018-05-31T14:27:43.000Z | apps/nerves_hub_api/config/release.exs | x4lldux/nerves_hub_web | ac121981ec029ccf3d0d696f884dbf82ad1ee543 | [
"Apache-2.0"
] | 2 | 2018-04-12T18:19:47.000Z | 2018-04-12T18:57:46.000Z | import Config
logger_level = System.get_env("LOG_LEVEL", "warn") |> String.to_atom()
config :logger, level: logger_level
sync_nodes_optional =
case System.fetch_env("SYNC_NODES_OPTIONAL") do
{:ok, sync_nodes_optional} ->
sync_nodes_optional
|> String.trim()
|> String.split(" ")
|> Enum.... | 26.116279 | 81 | 0.713713 |
8530a3383d7e222d437817102056b0e392d395b0 | 1,368 | ex | Elixir | test/support/data_case.ex | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | test/support/data_case.ex | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | test/support/data_case.ex | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | defmodule Bsdc.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,
it cannot be async. For this reason, every test ru... | 25.333333 | 77 | 0.67617 |
8530bb61ff289a5c8dc8649899b8691ac1ccdf15 | 14,158 | exs | Elixir | test/plug/plug_set_locale_test.exs | musicglue/cldr | 8a86a59710898425c429fd25a4739671b0951c51 | [
"Apache-2.0"
] | null | null | null | test/plug/plug_set_locale_test.exs | musicglue/cldr | 8a86a59710898425c429fd25a4739671b0951c51 | [
"Apache-2.0"
] | null | null | null | test/plug/plug_set_locale_test.exs | musicglue/cldr | 8a86a59710898425c429fd25a4739671b0951c51 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Plug.SetLocale.Test do
use ExUnit.Case, async: true
use Plug.Test
import Plug.Conn,
only: [
put_req_header: 3,
put_session: 3,
fetch_session: 2,
put_resp_cookie: 3,
fetch_cookies: 1
]
test "init returns the default options" do
opts = Cldr.Plug.SetLocale... | 30.912664 | 111 | 0.529524 |
8530f5e3e66ebd77f5facb222f06bcc1ffb3a695 | 1,143 | exs | Elixir | clients/storage_transfer/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/storage_transfer/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/config/config.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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.870968 | 73 | 0.75678 |
85317dbf2d83417598473dbd8f25ddcee2ddbc49 | 958 | exs | Elixir | apps/ello_core/priv/repo/migrations/20161204174821_create_category.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_core/priv/repo/migrations/20161204174821_create_category.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_core/priv/repo/migrations/20161204174821_create_category.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Repo.Migrations.CreateCategory do
use Ecto.Migration
def change do
create_if_not_exists table(:categories) do
add :name, :string
add :slug, :string
add :roshi_slug, :string
add :level, :string
add :order, :integer
add :created_at, :utc_datetime
add :upda... | 30.903226 | 59 | 0.679541 |
8531809703d2cfa6689e9120cc6f950bd080433a | 321 | exs | Elixir | .credo.exs | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 58 | 2018-06-12T00:01:51.000Z | 2022-01-30T17:29:42.000Z | .credo.exs | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 9 | 2018-06-13T19:33:39.000Z | 2020-02-17T17:24:15.000Z | .credo.exs | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 3 | 2018-06-13T19:45:36.000Z | 2021-05-16T17:40:08.000Z | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "test/"],
excluded: ["lib/tensorflow"]
},
checks: [
# this check doesn't work correctly with binary pattern matching <<>>
{Credo.Check.Consistency.SpaceAroundOperators, false}
]
}
]
}... | 20.0625 | 77 | 0.510903 |
8531923cf450069c735614344a648c7544b5568e | 25,378 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1/api/organizations.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1/api/organizations.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1/api/organizations.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.156584 | 607 | 0.625069 |
8531a78a4455d3b39df69d7e5780ac1c978967ab | 1,069 | exs | Elixir | test/membrane_element_fdk_aac/encoder_test.exs | membraneframework/membrane_aac_fdk_plugin | 8ae1cb60db82f4115cc167f08486d04164b7007b | [
"Apache-2.0"
] | null | null | null | test/membrane_element_fdk_aac/encoder_test.exs | membraneframework/membrane_aac_fdk_plugin | 8ae1cb60db82f4115cc167f08486d04164b7007b | [
"Apache-2.0"
] | 2 | 2021-08-10T14:27:58.000Z | 2021-08-10T14:58:25.000Z | test/membrane_element_fdk_aac/encoder_test.exs | membraneframework/membrane_aac_fdk_plugin | 8ae1cb60db82f4115cc167f08486d04164b7007b | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.AAC.FDK.EncoderTest do
use ExUnit.Case
import Membrane.Testing.Assertions
alias Membrane.Pipeline
alias Membrane.AAC.FDK.Support.EncodingPipeline
def assert_files_equal(file_a, file_b) do
assert {:ok, a} = File.read(file_a)
assert {:ok, b} = File.read(file_b)
assert a == b
en... | 31.441176 | 75 | 0.705332 |
8531b9dd7ad0f75be90dfc0b193d4be8d745c6d9 | 56 | exs | Elixir | test/test_helper.exs | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | test/test_helper.exs | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | test/test_helper.exs | victorprs/ecto-job-scheduler | 233e312f24ab3edf7b53e6da3d6667925450d60d | [
"MIT"
] | null | null | null | EctoJobScheduler.Test.Repo.start_link()
ExUnit.start()
| 14 | 39 | 0.803571 |
8531e234bf9cd92e4c6a89dae45a224806ab64bf | 258 | exs | Elixir | priv/repo/migrations/20160211192002_add_list_command_option_type.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | priv/repo/migrations/20160211192002_add_list_command_option_type.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | priv/repo/migrations/20160211192002_add_list_command_option_type.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Repo.Migrations.AddListCommandOptionType do
use Ecto.Migration
alias Cog.Models.CommandOptionType
alias Cog.Repo
def change do
%CommandOptionType{}
|> CommandOptionType.changeset(%{name: "list"})
|> Repo.insert!
end
end
| 19.846154 | 57 | 0.732558 |
85321f641c58831790f9cb1325dca5ae3f1c2474 | 4,032 | ex | Elixir | lib/cased.ex | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 3 | 2021-02-06T01:41:33.000Z | 2021-07-09T21:19:06.000Z | lib/cased.ex | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 1 | 2021-07-09T20:34:35.000Z | 2021-07-09T20:35:29.000Z | lib/cased.ex | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 2 | 2021-03-05T22:52:16.000Z | 2021-03-18T13:18:30.000Z | defmodule Cased do
@moduledoc """
Documentation for Cased.
"""
import Norm
defmodule ConfigurationError do
@moduledoc false
defexception message: "invalid configuration", details: nil
@type t :: %__MODULE__{
message: String.t(),
details: nil | any()
}
def ... | 24.888889 | 88 | 0.605903 |
85325b40eb7ff6904201183023fe8fe0ec8e0779 | 1,482 | ex | Elixir | lib/rankings_web/views/raceinstance_view.ex | spkane31/cc-rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 1 | 2020-06-28T19:31:07.000Z | 2020-06-28T19:31:07.000Z | lib/rankings_web/views/raceinstance_view.ex | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | 5 | 2019-07-25T17:00:39.000Z | 2019-07-25T17:12:07.000Z | lib/rankings_web/views/raceinstance_view.ex | spkane31/rankings | 0acda9f3ca35abd4874ab06478ad22aa473811bf | [
"MIT"
] | null | null | null | defmodule RankingsWeb.RaceInstanceView do
use RankingsWeb, :view
alias Rankings.RaceInstance
alias Rankings.Runner
alias Rankings.Team
import Float
import Ecto.Query
def get_date(%RaceInstance{date: date}) do
date
end
def get_name(%Runner{first_name: first, last_name: last}) do
first <> " ... | 23.903226 | 89 | 0.640351 |
85327387abef8c41cd75149fdcb9d725b54aefad | 8,695 | ex | Elixir | apps/gitrekt/lib/gitrekt/wire_protocol/receive_pack.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitrekt/lib/gitrekt/wire_protocol/receive_pack.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitrekt/lib/gitrekt/wire_protocol/receive_pack.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | defmodule GitRekt.WireProtocol.ReceivePack do
@moduledoc """
Module implementing the `git-receive-pack` command.
"""
@behaviour GitRekt.WireProtocol
alias GitRekt.Git
alias GitRekt.GitAgent
alias GitRekt.Packfile
import GitRekt.WireProtocol, only: [reference_discovery: 2]
@null_oid String.duplicat... | 33.442308 | 141 | 0.638068 |
85327a9875dc0c8da6a667a6a7369abdbae584fe | 871 | exs | Elixir | test/test_helper.exs | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 1 | 2019-07-15T21:58:09.000Z | 2019-07-15T21:58:09.000Z | test/test_helper.exs | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | test/test_helper.exs | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | Code.require_file("support/router_helper.exs", __DIR__)
# Starts web server applications
Application.ensure_all_started(:cowboy)
# Used whenever a router fails. We default to simply
# rendering a short string.
defmodule Phoenix.ErrorView do
def render("404.json", %{kind: kind, reason: _reason, stack: _stack, conn: ... | 29.033333 | 86 | 0.724455 |
853292bac7188029e6874d4b575749c620b8244c | 566 | exs | Elixir | aoc-2020/day5/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | aoc-2020/day5/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | aoc-2020/day5/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | defmodule Day5.MixProject do
use Mix.Project
def project do
[
app: :day5,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applicat... | 19.517241 | 87 | 0.572438 |
8532b10e732e9a2e61a9fec1d0a5159ce50f5f10 | 968 | exs | Elixir | exercises/sublist/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/sublist/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/sublist/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Sublist do
@doc """
Returns whether the first list is a sublist or a superlist of the second list
and if not whether it is equal or unequal to the second list.
"""
def compare(a, b) do
case {length(a), length(b)} do
{la, lb} when la < lb ->
if is_sublist(a, b, la, lb), do: :sublist... | 27.657143 | 79 | 0.599174 |
8532c263d932cff0b2d56bc15614017e97b5f562 | 3,754 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/graphics_stats.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tool_results/lib/google_api/tool_results/v1beta3/model/graphics_stats.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/graphics_stats.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 ... | 46.925 | 231 | 0.694193 |
8532dd8d01dff84a620e9e2955d834aaed2c8fee | 1,374 | ex | Elixir | lib/mix/tasks/send_check_stats_emails.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | lib/mix/tasks/send_check_stats_emails.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | lib/mix/tasks/send_check_stats_emails.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.SendCheckStatsEmails do
use Mix.Task
use Plausible.Repo
require Logger
@doc """
This is scheduled to run daily.
"""
def run(args) do
Application.ensure_all_started(:plausible)
execute(args)
end
def execute(args \\ []) do
q =
from(u in Plausible.Auth.User,
... | 27.48 | 88 | 0.63901 |
8532e4ccb8a13dd0dcecc00cfe3ae2cd09a09e30 | 1,758 | exs | Elixir | rel/config.exs | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | rel/config.exs | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | rel/config.exs | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# T... | 32.555556 | 81 | 0.734357 |
8532ea4384fa4d53767469baa7ca900b0c51c3c5 | 144 | exs | Elixir | test/foresight_test.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | null | null | null | test/foresight_test.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | 2 | 2022-02-17T21:25:57.000Z | 2022-02-17T21:33:15.000Z | test/foresight_test.exs | Simrayz/foresight | 01a35dceee369ad068102669f366cc6e61169626 | [
"MIT"
] | null | null | null | defmodule ForesightTest do
use ExUnit.Case
doctest Foresight
test "greets the world" do
assert Foresight.hello() == :world
end
end
| 16 | 38 | 0.722222 |
8532ee6aa9bf52aa0fe58496eb20f60e768e7185 | 5,185 | ex | Elixir | lib/broadcast_id.ex | dbeck/chatter_ex | fa6380f67f0a2a64fa98aacf882867aad98ee467 | [
"MIT"
] | 31 | 2016-03-01T16:59:37.000Z | 2019-04-15T17:18:27.000Z | lib/broadcast_id.ex | dbeck/chatter_ex | fa6380f67f0a2a64fa98aacf882867aad98ee467 | [
"MIT"
] | null | null | null | lib/broadcast_id.ex | dbeck/chatter_ex | fa6380f67f0a2a64fa98aacf882867aad98ee467 | [
"MIT"
] | null | null | null | defmodule Chatter.BroadcastID do
require Record
require Chatter.NetID
alias Chatter.NetID
alias Chatter.Serializer
Record.defrecord :broadcast_id,
origin: nil,
seqno: 0
@type t :: record( :broadcast_id,
origin: NetID.t,
seqno... | 24.808612 | 107 | 0.607522 |
85332b4047bc9590844dc5b9edd7c8562b00498e | 147 | ex | Elixir | lib/hl7/2.5/datatypes/dtn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/datatypes/dtn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/datatypes/dtn.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.DataTypes.Dtn do
@moduledoc false
use HL7.DataType,
fields: [
day_type: nil,
number_of_days: nil
]
end
| 14.7 | 35 | 0.646259 |
8533310784fd83a2dc49e698d8e3512b50b6f9c9 | 1,893 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/bundle.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_publisher/lib/google_api/android_publisher/v2/model/bundle.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/bundle.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 ... | 35.716981 | 177 | 0.716323 |
853340e4f280d39809bd795b0857da4a6eb436d8 | 1,177 | exs | Elixir | config/dev.exs | KazuCocoa/hello_phoenix | 9c64de70588558e4439d8620757e39deb2a01b4b | [
"MIT"
] | null | null | null | config/dev.exs | KazuCocoa/hello_phoenix | 9c64de70588558e4439d8620757e39deb2a01b4b | [
"MIT"
] | null | null | null | config/dev.exs | KazuCocoa/hello_phoenix | 9c64de70588558e4439d8620757e39deb2a01b4b | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :hello_phoenix, HelloPhoenix.Endpoint,
http: [... | 32.694444 | 63 | 0.715378 |
853356f534038d21cce0b74762d40de8f0a7c10b | 315 | ex | Elixir | lib/scipio/queue_agent.ex | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"MIT"
] | null | null | null | lib/scipio/queue_agent.ex | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"MIT"
] | null | null | null | lib/scipio/queue_agent.ex | e8t-elixir/cap-scipio | b370c6b9f3b2bef5b43db91786001148bde70fab | [
"MIT"
] | null | null | null | defmodule Scipio.QueueAgent do
@moduledoc """
start_monitor
"""
use Agent
def start_link(initial_value) do
Agent.start_link(fn -> initial_value end, name: __MODULE__)
end
def value do
Agent.get(__MODULE__, & &1)
end
def increment do
Agent.update(__MODULE__, &(&1 + 1))
end
end
| 15.75 | 63 | 0.666667 |
8533b072da3986d8dd7b5d2eeca0fc1d212c90a2 | 1,845 | ex | Elixir | lib/nr_phoenix_demo/page.ex | jbhardman/nr-phoenix-demo-app | 1369ced0e87e6ab36443c50158bd340e05242afc | [
"Apache-2.0"
] | 1 | 2022-01-25T08:26:38.000Z | 2022-01-25T08:26:38.000Z | lib/nr_phoenix_demo/page.ex | jbhardman/nr-phoenix-demo-app | 1369ced0e87e6ab36443c50158bd340e05242afc | [
"Apache-2.0"
] | 4 | 2022-01-21T13:23:49.000Z | 2022-01-25T08:21:44.000Z | lib/nr_phoenix_demo/page.ex | jbhardman/nr-phoenix-demo-app | 1369ced0e87e6ab36443c50158bd340e05242afc | [
"Apache-2.0"
] | 1 | 2022-02-23T22:33:42.000Z | 2022-02-23T22:33:42.000Z | defmodule NrPhoenixDemo.Page do
@moduledoc """
The Page context.
"""
import Ecto.Query, warn: false
alias NrPhoenixDemo.Repo
alias NrPhoenixDemo.Page.Trouble
@doc """
Returns the list of make_trouble.
## Examples
iex> list_make_trouble()
[%Trouble{}, ...]
"""
def list_make_troubl... | 17.571429 | 62 | 0.60542 |
8533d102ab4292ee3649ce01c8703ebab0259729 | 14,138 | exs | Elixir | test/reverse_proxy_plug_test.exs | lorenzosinisi/reverse_proxy_plug | 0b1c643a6339c5292c6d4d276c146c7475963800 | [
"MIT"
] | null | null | null | test/reverse_proxy_plug_test.exs | lorenzosinisi/reverse_proxy_plug | 0b1c643a6339c5292c6d4d276c146c7475963800 | [
"MIT"
] | null | null | null | test/reverse_proxy_plug_test.exs | lorenzosinisi/reverse_proxy_plug | 0b1c643a6339c5292c6d4d276c146c7475963800 | [
"MIT"
] | null | null | null | defmodule ReverseProxyPlugTest do
import TestReuse, only: :macros
use ExUnit.Case
use Plug.Test
import Mox
@opts [
upstream: "example.com",
client: ReverseProxyPlug.HTTPClientMock
]
@hop_by_hop_headers [
{"connection", "keep-alive"},
{"keep-alive", "timeout=5, max=1000"},
{"upgrade"... | 31.004386 | 143 | 0.672726 |
8533eef120c65c8fcabda6164258c75db54059a0 | 1,818 | exs | Elixir | installer/templates/phx_single/config/dev.exs | blunckr/fenix | aeccae9658ed3d85d8af8f28ce2584d407b43d6b | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/dev.exs | blunckr/fenix | aeccae9658ed3d85d8af8f28ce2584d407b43d6b | [
"MIT"
] | null | null | null | installer/templates/phx_single/config/dev.exs | blunckr/fenix | aeccae9658ed3d85d8af8f28ce2584d407b43d6b | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :<%= app_name %>, <%= endpoint_module %>,
http... | 36.36 | 170 | 0.672717 |
853432be4b83d86646ca72aa9cdcb4d4758764e7 | 5,477 | exs | Elixir | test/builder/params_test.exs | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | test/builder/params_test.exs | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | test/builder/params_test.exs | nicooga/maru | e61cf79f11c4d016766efb6778f6ae735445b1b3 | [
"BSD-3-Clause"
] | null | null | null | defmodule Maru.Builder.ParamsTest do
use ExUnit.Case, async: true
alias Maru.Struct.Parameter, as: P
alias Maru.Struct.Parameter.Information, as: PI
alias Maru.Struct.Dependent, as: D
alias Maru.Struct.Dependent.Information, as: DI
alias Maru.Struct.Validator, as: V
alias Maru.Struct.Validator.Informatio... | 23.607759 | 108 | 0.581888 |
8534f39d9c6c36399e84d45b8d642bd0f9604af6 | 20,298 | exs | Elixir | test/ecto/changeset/belongs_to_test.exs | fertapric/ecto | c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset/belongs_to_test.exs | fertapric/ecto | c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4 | [
"Apache-2.0"
] | 2 | 2020-04-23T00:19:07.000Z | 2020-04-23T00:24:25.000Z | test/ecto/changeset/belongs_to_test.exs | fertapric/ecto | c7e144a2fd54d2ecc2df2f85e70cb6113116a2a4 | [
"Apache-2.0"
] | 1 | 2020-10-07T16:52:00.000Z | 2020-10-07T16:52:00.000Z | defmodule Ecto.Changeset.BelongsToTest do
use ExUnit.Case, async: true
alias Ecto.Changeset
alias Ecto.Changeset.Relation
alias Ecto.TestRepo
alias __MODULE__.Author
alias __MODULE__.Profile
defmodule Author do
use Ecto.Schema
schema "authors" do
field :title, :string
belongs_to :p... | 36.572973 | 115 | 0.655089 |
8534fc13d611645af005e9d51ebae3d5e63202f7 | 586 | exs | Elixir | priv/repo/migrations/20201120194625_create_appointments.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | priv/repo/migrations/20201120194625_create_appointments.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | priv/repo/migrations/20201120194625_create_appointments.exs | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorSchedule.Repo.Migrations.CreateAppointments do
use Ecto.Migration
def change do
create table(:appointments, primary_key: false) do
add :id, :uuid, primary_key: true
add :date, :naive_datetime
add :user_id,
references(:users, on_delete: :nilify_all, on_update: :nilif... | 26.636364 | 89 | 0.680887 |
8535091b3a14f5ad78fb808fff1f463cc828f527 | 1,253 | ex | Elixir | web/views/error_helpers.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | web/views/error_helpers.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | web/views/error_helpers.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | defmodule CncfDashboardApi.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
if error = form.errors[field] do
content_tag :span, translate_error... | 30.560976 | 82 | 0.674381 |
85350e5b7290ed06c00526cf4e6544799a85f31f | 1,875 | exs | Elixir | test/fixtures/simple_app/rel/config.exs | petrus-jvrensburg/shoehorn | 253b677b2ac68faf22b864ed0ab346ae02e8709a | [
"Apache-2.0"
] | null | null | null | test/fixtures/simple_app/rel/config.exs | petrus-jvrensburg/shoehorn | 253b677b2ac68faf22b864ed0ab346ae02e8709a | [
"Apache-2.0"
] | null | null | null | test/fixtures/simple_app/rel/config.exs | petrus-jvrensburg/shoehorn | 253b677b2ac68faf22b864ed0ab346ae02e8709a | [
"Apache-2.0"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Distillery.Releases.Config,
... | 31.779661 | 82 | 0.7312 |
85352b8cf39114f22d5428081e82ed429b712ce5 | 4,260 | ex | Elixir | lib/rest/api_error.ex | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 6 | 2018-05-22T07:13:48.000Z | 2021-05-04T14:10:11.000Z | lib/rest/api_error.ex | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 1 | 2021-05-05T17:02:36.000Z | 2021-05-05T21:10:54.000Z | lib/rest/api_error.ex | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 1 | 2021-05-04T14:10:14.000Z | 2021-05-04T14:10:14.000Z | defmodule Crux.Rest.ApiError do
@moduledoc """
Represents a Discord API error.
Raised or returned whenever the api responded with a non `2xx` status code.
"""
@moduledoc since: "0.1.0"
alias Crux.Rest.Request
defexception(
status_code: nil,
code: nil,
message: nil,
path: nil,
method... | 34.08 | 170 | 0.515728 |
85355a9f2c550576a031540ff8440c30dd505577 | 10,045 | ex | Elixir | clients/runtime_config/lib/google_api/runtime_config/v1/api/operations.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/runtime_config/lib/google_api/runtime_config/v1/api/operations.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/runtime_config/lib/google_api/runtime_config/v1/api/operations.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # 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... | 47.833333 | 669 | 0.686312 |
85355d1927d3761aee5caabe3f168e85bf55bd8c | 1,119 | exs | Elixir | config/config.exs | jeffreyksmithjr/onnxs | 91a0c13a785db19bcd76c9e0d3f26089aadcf106 | [
"MIT"
] | 4 | 2018-05-19T17:00:14.000Z | 2021-04-12T05:29:20.000Z | config/config.exs | jeffreyksmithjr/onnxs | 91a0c13a785db19bcd76c9e0d3f26089aadcf106 | [
"MIT"
] | null | null | null | config/config.exs | jeffreyksmithjr/onnxs | 91a0c13a785db19bcd76c9e0d3f26089aadcf106 | [
"MIT"
] | 1 | 2021-04-12T05:29:35.000Z | 2021-04-12T05:29:35.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.096774 | 73 | 0.75067 |
85355e2b3fb1337f4879b1e86ee24448258e78ba | 343 | exs | Elixir | priv/repo/seeds.exs | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | priv/repo/seeds.exs | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | 1 | 2021-05-11T14:31:58.000Z | 2021-05-11T14:31:58.000Z | priv/repo/seeds.exs | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | 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:
#
# Tnd.Repo.insert!(%Tnd.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if... | 28.583333 | 61 | 0.699708 |
85356c4192065abc6cfb74b7904c9f21c0d13cf4 | 2,045 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/list_negative_keywords_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_negative_keywords_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_negative_keywords_response.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... | 36.517857 | 143 | 0.747188 |
85358687eda0415eca02b2055f34db40c7d095ab | 108 | exs | Elixir | test/bus_test.exs | 0freeman00/Bus | 7f84b7c37d23efa90dd146dbe5b83449c9a7ae19 | [
"Apache-2.0"
] | 25 | 2016-08-24T10:50:13.000Z | 2017-04-17T09:04:59.000Z | test/bus_test.exs | 00imvj00/Bus | 7f84b7c37d23efa90dd146dbe5b83449c9a7ae19 | [
"Apache-2.0"
] | 14 | 2018-08-02T10:55:05.000Z | 2018-09-08T07:43:09.000Z | test/bus_test.exs | 0freeman00/Bus | 7f84b7c37d23efa90dd146dbe5b83449c9a7ae19 | [
"Apache-2.0"
] | 1 | 2018-08-12T10:36:14.000Z | 2018-08-12T10:36:14.000Z | defmodule BusTest do
use ExUnit.Case
doctest Bus
test "the truth" do
assert 1 + 1 == 2
end
end
| 12 | 21 | 0.648148 |
85359170f766e58d1800d74df4438bd01a4cd2cf | 15,951 | ex | Elixir | clients/partners/lib/google_api/partners/v2/api/companies.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/companies.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/api/companies.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 60.192453 | 497 | 0.693311 |
8535938dba8b491539295b6f4eefcd696f46dcad | 1,952 | exs | Elixir | clients/language/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/language/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/language/mix.exs | 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... | 29.134328 | 218 | 0.667008 |
85359b810f3f0cab99ecb8bfe50f855253abc4de | 2,315 | exs | Elixir | exercises/grep/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | exercises/grep/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 9 | 2021-09-12T15:19:06.000Z | 2022-03-30T22:24:24.000Z | exercises/grep/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 1 | 2018-07-19T23:43:56.000Z | 2018-07-19T23:43:56.000Z | defmodule Grep do
use Bitwise
@line_num_flag 1
@file_name 2
@case_insensitive 4
@invert 8
@entire_lines 16
defp parse_flag("-n"), do: @line_num_flag
defp parse_flag("-l"), do: @file_name
defp parse_flag("-i"), do: @case_insensitive
defp parse_flag("-v"), do: @invert
defp parse_flag("-x"), do: @e... | 23.865979 | 79 | 0.580994 |
85359c572488accc80ca735d39ae6fa28e2cfaae | 2,544 | ex | Elixir | apps/streamer/lib/streamer/kraken.ex | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | apps/streamer/lib/streamer/kraken.ex | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | apps/streamer/lib/streamer/kraken.ex | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | defmodule Streamer.Kraken do
use WebSockex
require Logger
alias Streamer.Ticker
@base_endpoint "wss://ws.kraken.com"
############################## Interface ##############################
@spec stream_tickers() :: {:ok, pid()} | {:error, term()}
def stream_tickers do
@base_endpoint
|> start_... | 25.69697 | 97 | 0.542453 |
8535a4d6b52f1500109f5295bf213705ab281259 | 448 | exs | Elixir | config/prod.exs | codeflows/jonne | ea23cf6b253972975e85d5f028910638ac2dc5fc | [
"Apache-2.0"
] | null | null | null | config/prod.exs | codeflows/jonne | ea23cf6b253972975e85d5f028910638ac2dc5fc | [
"Apache-2.0"
] | 1 | 2018-03-28T07:55:04.000Z | 2019-08-20T14:15:19.000Z | config/prod.exs | codeflows/jonne | ea23cf6b253972975e85d5f028910638ac2dc5fc | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :jonne,
elasticsearch_url: "${ELASTICSEARCH_URL}",
elasticsearch_index_prefix: "${ELASTICSEARCH_INDEX_PREFIX}",
elasticsearch_query: "${ELASTICSEARCH_QUERY}",
elasticsearch_poll_interval: "${ELASTICSEARCH_POLL_INTERVAL}",
slack_webhook_url: "${SLACK_WEBHOOK_URL}",
slack_notification_t... | 34.461538 | 64 | 0.790179 |
853605292a031882971c648f3d551a6433caa5bb | 80 | exs | Elixir | othello/test/othello_web/views/page_view_test.exs | Wycode-fish/WEBDEV-PROJECT-1 | fad6870c97225ce206ed6b90645bb626b76f598c | [
"MIT"
] | null | null | null | othello/test/othello_web/views/page_view_test.exs | Wycode-fish/WEBDEV-PROJECT-1 | fad6870c97225ce206ed6b90645bb626b76f598c | [
"MIT"
] | null | null | null | othello/test/othello_web/views/page_view_test.exs | Wycode-fish/WEBDEV-PROJECT-1 | fad6870c97225ce206ed6b90645bb626b76f598c | [
"MIT"
] | null | null | null | defmodule OthelloWeb.PageViewTest do
use OthelloWeb.ConnCase, async: true
end
| 20 | 38 | 0.825 |
85363f9098aa3e691e84d027c1d8545599e868a2 | 1,471 | exs | Elixir | genocide/config/dev.exs | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | genocide/config/dev.exs | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | genocide/config/dev.exs | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
#
# In order to use HTTPS in development, a self-signed... | 32.688889 | 170 | 0.737593 |
85364ba203afac62320b0487b75231d457e67561 | 1,763 | ex | Elixir | lib/guitar/log/exercise.ex | indutny/guitar | 52b3d6031a7daaac7ebc621f7e651a036ca1c23b | [
"MIT",
"Unlicense"
] | 6 | 2020-10-16T20:51:03.000Z | 2020-11-02T17:13:58.000Z | lib/guitar/log/exercise.ex | indutny/guitar | 52b3d6031a7daaac7ebc621f7e651a036ca1c23b | [
"MIT",
"Unlicense"
] | null | null | null | lib/guitar/log/exercise.ex | indutny/guitar | 52b3d6031a7daaac7ebc621f7e651a036ca1c23b | [
"MIT",
"Unlicense"
] | null | null | null | defmodule Guitar.Log.Exercise do
@enforce_keys [:name, :bpm]
defstruct [:name, :bpm, :notes, :strings, :slowdown]
@type exercise :: Guitar.Log.Exercise
@spec from_json(Map.t()) :: exercise()
def from_json(%{"name" => name, "bpm" => bpm} = json) do
%Guitar.Log.Exercise{
name: name,
bpm: bpm,
... | 23.197368 | 77 | 0.555303 |
853652b1ee75bca01c12d6c5719fe8a70b30775f | 2,512 | ex | Elixir | lib/stopsel/router/node.ex | Awlexus/Stopsel | 0d207a65e786a5a057aea76cd7fde72d22ddfd78 | [
"MIT"
] | 3 | 2019-06-13T18:17:42.000Z | 2019-07-14T19:44:51.000Z | lib/stopsel/router/node.ex | Awlexus/Stopsel | 0d207a65e786a5a057aea76cd7fde72d22ddfd78 | [
"MIT"
] | null | null | null | lib/stopsel/router/node.ex | Awlexus/Stopsel | 0d207a65e786a5a057aea76cd7fde72d22ddfd78 | [
"MIT"
] | null | null | null | defmodule Stopsel.Router.Node do
import Record
import Kernel, except: [node: 0, node: 1]
@type value :: any()
@type nodes :: map()
@type t :: {:node, value, nodes}
defrecord :node, value: nil, nodes: %{}
def new(value \\ nil), do: node(value: value)
def insert(node, _, nil), do: node
def insert(no... | 19.936508 | 72 | 0.544984 |
853665303559db8890ee382629d3cb99143dcdc1 | 1,844 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_iam_policy.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_iam_policy.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_iam_policy.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.928571 | 124 | 0.753254 |
8536830abcf3cb22ea4a525ab4f734bcd2b25f74 | 581 | exs | Elixir | test/apps/gen_migration/mix.exs | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | test/apps/gen_migration/mix.exs | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | test/apps/gen_migration/mix.exs | mori5321/yacto | 85d6f216fd7ae16825c03e9772cb75a06b495245 | [
"Apache-2.0"
] | null | null | null | defmodule GenMigration.Mixfile do
use Mix.Project
def project do
[
app: :gen_migration,
version: "0.1.0",
build_path: "../.build",
config_path: "config/config.exs",
deps_path: "../.deps",
lockfile: "../mix.lock",
elixir: "~> 1.5",
build_embedded: Mix.env() == :pr... | 19.366667 | 46 | 0.531842 |
8536bc153a4dd4df37679deb94025c2ae7e236da | 2,680 | ex | Elixir | lib/cforum/accounts/priv_message.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/accounts/priv_message.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/accounts/priv_message.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule Cforum.Accounts.PrivMessage do
use CforumWeb, :model
alias Ecto.Changeset
@primary_key {:priv_message_id, :id, autogenerate: true}
@derive {Phoenix.Param, key: :priv_message_id}
@derive {Jason.Encoder,
only: [
:is_read,
:subject,
:body,
... | 32.682927 | 115 | 0.664925 |
8536cb6c02cc5712e604bf19d99d9f2ec4f904fe | 2,822 | ex | Elixir | clients/service_usage/lib/google_api/service_usage/v1/model/billing.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_usage/lib/google_api/service_usage/v1/model/billing.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_usage/lib/google_api/service_usage/v1/model/billing.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... | 60.042553 | 1,067 | 0.783841 |
8536d7481260e11c83a7f6977fabc3de269f7b6d | 1,471 | ex | Elixir | lib/chex/square.ex | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 10 | 2020-01-11T19:53:11.000Z | 2021-06-07T14:41:24.000Z | lib/chex/square.ex | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 45 | 2019-10-23T01:10:32.000Z | 2022-03-23T17:34:22.000Z | lib/chex/square.ex | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 5 | 2019-10-16T23:45:16.000Z | 2022-02-06T16:00:58.000Z | defmodule Chex.Square do
@moduledoc false
require Integer
def color({file, rank}) when file in [:a, :c, :e, :g] and Integer.is_even(rank), do: :light
def color({file, rank}) when file in [:a, :c, :e, :g] and Integer.is_odd(rank), do: :dark
def color({file, rank}) when file in [:b, :d, :f, :h] and Integer.... | 24.114754 | 93 | 0.619307 |
8536fd6a382f699f378f0d358afacfa6624a68ad | 10,051 | ex | Elixir | lib/plotex/output/svg.ex | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 75 | 2019-06-09T07:08:45.000Z | 2022-03-23T16:11:55.000Z | lib/plotex/output/svg.ex | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 6 | 2020-01-12T08:40:01.000Z | 2021-08-02T20:55:36.000Z | lib/plotex/output/svg.ex | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 5 | 2020-03-30T20:38:57.000Z | 2021-04-02T15:52:28.000Z | defmodule Plotex.Output.Svg do
require Logger
alias Plotex.Output.Options
alias Plotex.Output.Formatter
use Phoenix.HTML
@doc """
Default example CSS Styling.
"""
def default_css() do
"""
.plx-labels {
text-anchor: middle;
dominant-baseline: central;
}
.... | 36.682482 | 160 | 0.424634 |
85371fa376e4597e8befb4901af8692e5f007a52 | 1,816 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/reschedule_maintenance_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/redis/lib/google_api/redis/v1/model/reschedule_maintenance_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/redis/lib/google_api/redis/v1/model/reschedule_maintenance_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... | 36.32 | 222 | 0.740639 |
8537247c414a3b23a229d27c3671c7b5c83e2084 | 2,284 | exs | Elixir | apps/andi/test/integration/andi_web/controllers/organization_controller_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/test/integration/andi_web/controllers/organization_controller_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/test/integration/andi_web/controllers/organization_controller_test.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Andi.OrganizationControllerTest do
use ExUnit.Case
use Andi.DataCase
use Placebo
use Tesla
@moduletag shared_data_connection: true
alias SmartCity.Organization
alias SmartCity.TestDataGenerator, as: TDG
alias Andi.Services.OrgStore
alias Andi.InputSchemas.Organizations
import SmartCity.T... | 26.55814 | 100 | 0.673818 |
85376104f526b65b5ee9b27a67788dfea8a45a35 | 1,535 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/targeting_value_size.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/targeting_value_size.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/targeting_value_size.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... | 30.7 | 86 | 0.720521 |
85376873f33279887fa73658dc73255baba636e9 | 1,393 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/model/comment_post.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/blogger/lib/google_api/blogger/v3/model/comment_post.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/blogger/lib/google_api/blogger/v3/model/comment_post.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... | 29.638298 | 103 | 0.729361 |
8537ae6db2ecc2ea97cb55c336b5da5ac6d4eeac | 69 | exs | Elixir | chromoid_web/.iex.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/.iex.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/.iex.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | alias ChromoidWeb.Router.Helpers, as: Routes
alias Chromoid.Accounts
| 23 | 44 | 0.84058 |
8537c4172fd1ec25cd653299c2649bb0c3c74276 | 1,090 | ex | Elixir | lib/live_view_todos/application.ex | MarvinKweyu/LiveViewTodos | 89c48d1692be56d50c779587cac4e6a654c68919 | [
"MIT"
] | null | null | null | lib/live_view_todos/application.ex | MarvinKweyu/LiveViewTodos | 89c48d1692be56d50c779587cac4e6a654c68919 | [
"MIT"
] | null | null | null | lib/live_view_todos/application.ex | MarvinKweyu/LiveViewTodos | 89c48d1692be56d50c779587cac4e6a654c68919 | [
"MIT"
] | null | null | null | defmodule LiveViewTodos.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Ecto repository
LiveViewTodos.Repo,
# Start the Telemetry... | 29.459459 | 71 | 0.714679 |
8537cc21d1835f1f976b70521195010f4597cb15 | 1,175 | ex | Elixir | lib/obank/banking/banking.ex | o-marchi/o-bank-api | fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4 | [
"MIT"
] | null | null | null | lib/obank/banking/banking.ex | o-marchi/o-bank-api | fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4 | [
"MIT"
] | null | null | null | lib/obank/banking/banking.ex | o-marchi/o-bank-api | fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4 | [
"MIT"
] | null | null | null | defmodule Obank.Banking do
@moduledoc """
The Banking context.
"""
import Ecto.Query, warn: false, only: [from: 2]
alias Obank.Repo
alias Ecto.Changeset
alias Obank.Banking.Transfer
alias Obank.Banking.Withdraw
@doc """
Returns the list of transfers.
## Examples
iex> list_transfers()
... | 19.262295 | 58 | 0.608511 |
8537e8e76dbc00e2deaeb623941b31f72636c0dc | 3,635 | exs | Elixir | test/asset/command_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/asset/command_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/asset/command_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Asset.CommandTest do
use ExUnit.Case
alias FarmbotOS.{
Asset,
Asset.Device,
Asset.FbosConfig,
Asset.FirmwareConfig,
Asset.Command
}
def reset_configs!() do
assets = [
FarmbotOS.Asset.Private.LocalMeta,
FarmbotOS.Asset.FbosConfig,
FarmbotOS.Asset.Fi... | 25.780142 | 79 | 0.634113 |
8537ff5d38e2297ddaf299f3a59b8e452a3e15fd | 178 | exs | Elixir | priv/repo/migrations/20181028001209_add_paywall_type_field.exs | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | 6 | 2018-10-27T10:55:41.000Z | 2018-11-06T04:48:33.000Z | priv/repo/migrations/20181028001209_add_paywall_type_field.exs | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | 2 | 2018-10-28T14:18:16.000Z | 2018-10-28T14:18:30.000Z | priv/repo/migrations/20181028001209_add_paywall_type_field.exs | TheBeeCashers/HoneyStream | 469a505b1c01597bc746f8eaf117410ae4bc56e0 | [
"MIT"
] | null | null | null | defmodule Honeystream.Repo.Migrations.AddPaywallTypeField do
use Ecto.Migration
def change do
alter table(:videos) do
add :paywall_type, :string
end
end
end
| 17.8 | 60 | 0.730337 |
853800b1e4eb1e6a5820dde306ea9f973855fa1d | 15,026 | ex | Elixir | lib/mix/lib/mix/compilers/elixir.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | BlakeWilliams/elixir | f77cc2657cf981fdf819915f1ee15e69c3cd91ad | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Elixir do
@moduledoc false
@manifest_vsn :v7
import Record
defrecord :module, [:module, :kind, :sources, :beam, :binary]
defrecord :source,
source: nil,
size: 0,
compile_references: [],
runtime_references: [],
compile_dispatches: [],
runtime_dispatches: [],
... | 30.790984 | 100 | 0.648543 |
85382b566a8a297cd2d857cfc081aa42f445a791 | 1,996 | ex | Elixir | lib/day02.ex | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | lib/day02.ex | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | lib/day02.ex | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | defmodule Day02 do
@moduledoc """
Advent of Code 2019
Day 2: 1202 Program Alarm
"""
alias Day02.{Part1, Part2}
def get_program() do
Path.join(__DIR__, "inputs/day02.txt")
|> File.read!()
|> String.trim()
|> String.split(",")
|> Enum.map(&String.to_integer/1)
end
def execute() do
... | 21.695652 | 66 | 0.616232 |
853873dbc2272a59229330894a4e02f3a72a6de0 | 4,131 | ex | Elixir | lib/codes/codes_b57.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_b57.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_b57.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_B57 do
alias IcdCode.ICDCode
def _B570 do
%ICDCode{full_code: "B570",
category_code: "B57",
short_code: "0",
full_name: "Acute Chagas' disease with heart involvement",
short_name: "Acute Chagas' disease with heart involvement",
cat... | 35.921739 | 89 | 0.628661 |
85387ea0690e8c40e5c08ece408e93b9e4ffe84d | 6,437 | ex | Elixir | lib/elixir/lib/map_set.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map_set.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map_set.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule MapSet do
@moduledoc """
A set of functions for working with sets.
The `MapSet` is represented internally as a struct,
therefore `%MapSet{}` can be used whenever there is a
need to match on any `MapSet`. Note though the struct
fields are private and must not be accessed directly.
Instead, use t... | 22.196552 | 88 | 0.562374 |
8538885f0a5b0c37dae36b5eec814bb05c1fdb84 | 1,269 | ex | Elixir | test/support/conn_case.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | defmodule ElixirFilmsWeb.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
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, i... | 28.840909 | 73 | 0.730496 |
8538c42bb4f0462f1ed015b7cf4aa680ef219493 | 2,697 | ex | Elixir | lib/sanbase/social_data/community.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase/social_data/community.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase/social_data/community.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.SocialData.Community do
import Sanbase.Utils.ErrorHandling
require Sanbase.Utils.Config, as: Config
alias Sanbase.Model.Project
require Mockery.Macro
defp http_client, do: Mockery.Macro.mockable(HTTPoison)
@recv_timeout 15_000
@sources [:telegram]
def community_messages_count(sele... | 29.315217 | 89 | 0.645903 |
8538fdef265cea10766b47bdb8314b5450820d02 | 555 | exs | Elixir | priv/repo/migrations/20171114033357_add_unique_constraint_for_project_github_repo_and_project.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | priv/repo/migrations/20171114033357_add_unique_constraint_for_project_github_repo_and_project.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | priv/repo/migrations/20171114033357_add_unique_constraint_for_project_github_repo_and_project.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Repo.Migrations.AddUniqueConstraintForProjectGithubRepoAndProject do
use Ecto.Migration
def up do
drop_if_exists index(:project_github_repos, [:project_id, :github_repo_id], unique: true)
drop_if_exists index(:project_github_repos, [:github_repo_id], unique: true)
create unique_inde... | 37 | 93 | 0.787387 |
8539469d4bb9dc6d606cbf9ead8750580481d1be | 41 | ex | Elixir | lib/esshd.ex | skunkwerks/esshd | 0c4869431ad5382f21790fe248e514acb28b036d | [
"Apache-2.0"
] | 46 | 2017-07-27T22:00:28.000Z | 2021-12-28T23:08:30.000Z | lib/esshd.ex | skunkwerks/esshd | 0c4869431ad5382f21790fe248e514acb28b036d | [
"Apache-2.0"
] | 7 | 2017-10-19T09:11:42.000Z | 2021-07-26T19:56:20.000Z | lib/esshd.ex | skunkwerks/esshd | 0c4869431ad5382f21790fe248e514acb28b036d | [
"Apache-2.0"
] | 9 | 2019-01-28T16:13:30.000Z | 2021-12-28T11:07:50.000Z | defmodule Sshd do
@moduledoc false
end
| 10.25 | 18 | 0.780488 |
85394875ce99d87b02408ca9f3beaf62028fdf44 | 1,889 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1/model/package_note.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/package_note.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1/model/package_note.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.78 | 166 | 0.739015 |
85396a2b79354ed51791a3e90ea5633121ad83d9 | 1,788 | exs | Elixir | test/single_product_web/controllers/user_registration_controller_test.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | test/single_product_web/controllers/user_registration_controller_test.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | test/single_product_web/controllers/user_registration_controller_test.exs | manojsamanta/stripe-single-product | d0af1cede55ce6ac71100b9f4b5473919c16c884 | [
"MIT"
] | null | null | null | defmodule SingleProductWeb.UserRegistrationControllerTest do
use SingleProductWeb.ConnCase, async: true
import SingleProduct.AccountsFixtures
describe "GET /users/register" do
test "renders registration page", %{conn: conn} do
conn = get(conn, Routes.user_registration_path(conn, :new))
response ... | 32.509091 | 98 | 0.633669 |
853977e1b806a92990c44bd33c0f1881db3bd27f | 282 | exs | Elixir | priv/repo/migrations/20150810103626_create_user.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | 199 | 2015-10-22T16:20:09.000Z | 2021-11-08T11:20:45.000Z | priv/repo/migrations/20150810103626_create_user.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | 4 | 2015-10-24T20:43:29.000Z | 2016-03-03T21:09:06.000Z | priv/repo/migrations/20150810103626_create_user.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | 34 | 2015-10-23T06:38:43.000Z | 2019-08-13T23:49:24.000Z | defmodule SprintPoker.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users, primary_key: false) do
add :id, :uuid, primary_key: true
add :auth_token, :uuid, null: false
add :name, :string
timestamps
end
end
end
| 18.8 | 51 | 0.670213 |
85397852d1c9ee93ace4ba48c08214710cd31ca5 | 881 | ex | Elixir | lib/mnesia_versioning/struct/change_set.ex | kimidesu/MnesiaVersioning | fa7b01c9117e448b0cf9d38b5245c27a87e25c7d | [
"MIT"
] | 1 | 2020-06-10T05:44:08.000Z | 2020-06-10T05:44:08.000Z | lib/mnesia_versioning/struct/change_set.ex | kimidesu/MnesiaVersioning | fa7b01c9117e448b0cf9d38b5245c27a87e25c7d | [
"MIT"
] | null | null | null | lib/mnesia_versioning/struct/change_set.ex | kimidesu/MnesiaVersioning | fa7b01c9117e448b0cf9d38b5245c27a87e25c7d | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings <keith.brings@noizu.com>
# Copyright (C) 2017 Noizu Labs, Inc. All rights reserved.
#-----------------------------------
defmodule Noizu.MnesiaVersioning.ChangeSet do
@moduledoc """
This structure contains the s... | 27.53125 | 90 | 0.570942 |
853987ed5c015bbc4ab96f0d7f0aafe12094433e | 726 | ex | Elixir | lib/hightopics_web/router.ex | a-sac/HighTopics | e99b2cc517d5b552bc7f44aae9774357c8bb427b | [
"MIT"
] | null | null | null | lib/hightopics_web/router.ex | a-sac/HighTopics | e99b2cc517d5b552bc7f44aae9774357c8bb427b | [
"MIT"
] | null | null | null | lib/hightopics_web/router.ex | a-sac/HighTopics | e99b2cc517d5b552bc7f44aae9774357c8bb427b | [
"MIT"
] | null | null | null | defmodule HightopicsWeb.Router do
use HightopicsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", HightopicsWeb do
... | 22.6875 | 57 | 0.699725 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.