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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac0ae3faacdf4435e7851eae199c9ca6045c5e85 | 161 | exs | Elixir | priv/repo/migrations/20180502101757_remove_room_player_id.exs | samuelbriole/Jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | 3 | 2018-05-17T17:43:06.000Z | 2018-06-09T02:12:25.000Z | priv/repo/migrations/20180502101757_remove_room_player_id.exs | samuelbriole/Jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | 2 | 2018-06-04T15:51:36.000Z | 2018-06-20T11:31:23.000Z | priv/repo/migrations/20180502101757_remove_room_player_id.exs | samuelbriole/jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | null | null | null | defmodule Jukee.Repo.Migrations.RemoveRoomPlayerId do
use Ecto.Migration
def change do
alter table(:rooms) do
remove :player_id
end
end
end
| 16.1 | 53 | 0.720497 |
ac0aece3eeddb96d8daed8cb5fbcfda4b93e5686 | 2,167 | exs | Elixir | config/dev.exs | AminArria/party_hub | aef6d17500856789c115e1c68fc95b853b220e1f | [
"MIT"
] | 2 | 2020-05-22T15:45:53.000Z | 2020-06-07T21:07:03.000Z | config/dev.exs | AminArria/party_hub | aef6d17500856789c115e1c68fc95b853b220e1f | [
"MIT"
] | 1 | 2021-03-10T16:36:46.000Z | 2021-03-10T16:36:46.000Z | config/dev.exs | AminArria/party_hub | aef6d17500856789c115e1c68fc95b853b220e1f | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :party_hub, PartyHub.Repo,
username: "party_hub_user",
password: "party_hub_password",
database: "party_hub_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debuggi... | 28.142857 | 68 | 0.69497 |
ac0b23468370e79c3f3ff5f8b51c88fb294b7528 | 321 | ex | Elixir | lib/yacto.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | null | null | null | lib/yacto.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | 1 | 2019-03-06T20:05:53.000Z | 2019-03-06T20:05:54.000Z | lib/yacto.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | 1 | 2019-03-06T20:03:49.000Z | 2019-03-06T20:03:49.000Z | defmodule Yacto do
@moduledoc """
#{File.read!("README.md")}
"""
def transaction(databases, fun, opts \\ []) do
f = fn
{dbname, dbkey} -> Yacto.DB.repo(dbname, dbkey)
dbname -> Yacto.DB.repo(dbname)
end
repos = Enum.map(databases, f)
Yacto.XA.transaction(repos, fun, opts)
end
end... | 20.0625 | 53 | 0.601246 |
ac0b4a7b0c913a90de4c80810d85d7fc3bc971e2 | 1,628 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/truncate_log_context.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/truncate_log_context.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/truncate_log_context.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... | 32.56 | 152 | 0.719902 |
ac0b56a12ba3792b94d32c543f7a44f80e840791 | 263 | exs | Elixir | priv/repo/migrations/20170522195704_create_article.exs | janza/artikl | 7790142a93fe79889045340a7a38055348056ea4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170522195704_create_article.exs | janza/artikl | 7790142a93fe79889045340a7a38055348056ea4 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170522195704_create_article.exs | janza/artikl | 7790142a93fe79889045340a7a38055348056ea4 | [
"MIT"
] | null | null | null | defmodule Artikl.Repo.Migrations.CreateArticle do
use Ecto.Migration
def change do
create table(:articles) do
add :url, :string
add :title, :string
add :read, :boolean, default: false, null: false
timestamps()
end
end
end
| 17.533333 | 54 | 0.653992 |
ac0b5a38d81bcafc8cb8b1a76bfc574b401fe410 | 568 | exs | Elixir | mix.exs | jeremyhastings/servy | 3e3e69829d89a7bd77413020b527d50e86c41457 | [
"MIT"
] | null | null | null | mix.exs | jeremyhastings/servy | 3e3e69829d89a7bd77413020b527d50e86c41457 | [
"MIT"
] | null | null | null | mix.exs | jeremyhastings/servy | 3e3e69829d89a7bd77413020b527d50e86c41457 | [
"MIT"
] | null | null | null | defmodule Servy.MixProject do
use Mix.Project
def project do
[
app: :servy,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 19.586207 | 87 | 0.573944 |
ac0b5b2a659f71735e217f6cbb766ad20dd56ade | 504 | exs | Elixir | Problem045/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 167 | 2015-08-12T19:32:03.000Z | 2022-03-25T12:26:43.000Z | Problem045/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 153 | 2016-02-16T02:05:31.000Z | 2020-11-06T15:35:51.000Z | Problem045/Elixir/solution_1.exs | drocha87/ProjectEuler | c18407448aa4f05484191a0df1380e34f2b8c5d7 | [
"MIT"
] | 84 | 2015-08-12T20:54:04.000Z | 2022-02-27T05:14:53.000Z | defmodule PolygonNumbers do
def tri_pent_hex(_,final) when final > 0, do: final
def tri_pent_hex(i,final) when final == 0 do
hex = gen(i)
final = cond do
pent?(hex) ->
hex
true ->
final
end
tri_pent_hex(i+1,final)
end
def gen(n), do: n * ((n * 2) - 1)
def pe... | 22.909091 | 78 | 0.563492 |
ac0b9b0217b634b87a955947924fe73da7382d3d | 2,847 | ex | Elixir | lib/astarte_api/pairing/agent.ex | Annopaolo/astarte-device-sdk-elixir | fbd0c214f3e2e1d3040fa70d6c2a0d35dab0a495 | [
"Apache-2.0"
] | 3 | 2020-02-10T07:12:49.000Z | 2020-09-19T02:56:40.000Z | lib/astarte_api/pairing/agent.ex | Annopaolo/astarte-device-sdk-elixir | fbd0c214f3e2e1d3040fa70d6c2a0d35dab0a495 | [
"Apache-2.0"
] | 9 | 2019-11-18T16:51:13.000Z | 2021-02-24T17:43:03.000Z | lib/astarte_api/pairing/agent.ex | Annopaolo/astarte-device-sdk-elixir | fbd0c214f3e2e1d3040fa70d6c2a0d35dab0a495 | [
"Apache-2.0"
] | 5 | 2020-01-25T12:14:15.000Z | 2021-06-18T08:33:40.000Z | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata Srl
#
# 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 appl... | 34.301205 | 145 | 0.67615 |
ac0bc3bb8f3e5116b6498a3f85175b3e6dcd48a7 | 1,871 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/move_folder_metadata.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/move_folder_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v3/model/move_folder_metadata.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.301887 | 137 | 0.725281 |
ac0bce64ffbb4fb0c3caa3b27ac21bea0104ffae | 1,064 | ex | Elixir | lib/ex_appointment/application.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | 1 | 2021-03-28T17:41:37.000Z | 2021-03-28T17:41:37.000Z | lib/ex_appointment/application.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | null | null | null | lib/ex_appointment/application.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | null | null | null | defmodule ExAppointment.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
ExAppointment.Repo,
# Start the Telemetry supervisor
... | 30.4 | 71 | 0.717105 |
ac0bd9e999ee516b26a028ee313cf10395481ca4 | 878 | ex | Elixir | debian/prerm.ex | tqrg-bot/jenkins | 04a2d31ca955c92c3604ca75f79507829f5c5a7a | [
"MIT"
] | 1 | 2020-01-09T15:48:40.000Z | 2020-01-09T15:48:40.000Z | debian/prerm.ex | fujibee/hudson | 4f9510a0d46079be7262b9af03b3e5855882af57 | [
"MIT"
] | 2 | 2021-02-03T19:30:11.000Z | 2021-02-03T19:30:14.000Z | debian/prerm.ex | fujibee/hudson | 4f9510a0d46079be7262b9af03b3e5855882af57 | [
"MIT"
] | null | null | null | #!/bin/sh
# prerm script for hudson
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>... | 21.414634 | 76 | 0.624146 |
ac0bdd0915437b22f103c8403c5ffe397b6b1ae9 | 1,932 | exs | Elixir | rel/config.exs | dolfinus/diamantum-backend | efa9da3835befa58bbcd5f3965ce4431ed8c912f | [
"MIT"
] | 1 | 2019-04-29T18:07:08.000Z | 2019-04-29T18:07:08.000Z | rel/config.exs | dolfinus/diamantum-backend | efa9da3835befa58bbcd5f3965ce4431ed8c912f | [
"MIT"
] | 126 | 2020-12-03T15:39:31.000Z | 2022-03-30T22:02:23.000Z | rel/config.exs | dolfinus/arkenston-backend | 258880936dce673eb15db0c4b52e68d3d40c58ff | [
"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.
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Distillery.Releases.Config,
... | 33.894737 | 89 | 0.741718 |
ac0c0bd218203b5e1009966bd66667e8c43dab94 | 2,245 | ex | Elixir | apps/core/lib/core/oauth/github.ex | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/lib/core/oauth/github.ex | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/lib/core/oauth/github.ex | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.OAuth.Github do
use OAuth2.Strategy
use Core.OAuth.Base
def client(redirect \\ nil, suffix \\ "") do
OAuth2.Client.new([
strategy: __MODULE__,
client_id: get_env("GITHUB_CLIENT_ID"),
client_secret: get_env("GITHUB_CLIENT_SECRET"),
redirect_uri: "#{redirect || host()}/oa... | 31.619718 | 86 | 0.634744 |
ac0c1f3d1704a8c809c85ca40b7d12fde9dd0c78 | 526 | exs | Elixir | apps/admin_api/test/admin_api/global/controllers/status_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/admin_api/test/admin_api/global/controllers/status_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/global/controllers/status_controller_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.StatusControllerTest do
use AdminAPI.ConnCase, async: true
describe "GET request to /" do
test "returns status ok" do
response =
build_conn()
|> get(@base_dir <> "/")
|> json_response(:ok)
assert response == %{
"success" => true,
... | 25.047619 | 85 | 0.496198 |
ac0c26a35a3dbd37b36cd8895021bd1c8ab3d66e | 871 | ex | Elixir | lib/json_wrappers/request_json_wrapper.ex | apellizzn/rxp-hpp-elixir | dfb405adce22fa7811210e9f3f4da84627e2fbc0 | [
"MIT"
] | 1 | 2018-04-06T15:49:56.000Z | 2018-04-06T15:49:56.000Z | lib/json_wrappers/request_json_wrapper.ex | mikamai/rxp-hpp-elixir | dfb405adce22fa7811210e9f3f4da84627e2fbc0 | [
"MIT"
] | null | null | null | lib/json_wrappers/request_json_wrapper.ex | mikamai/rxp-hpp-elixir | dfb405adce22fa7811210e9f3f4da84627e2fbc0 | [
"MIT"
] | null | null | null | defmodule RxpHpp.RequestJsonWrapper do
@moduledoc """
Used to wrap an RxpHpp.Request before being returned as JSON
"""
@derive {
Poison.Encoder,
except: [:HPP_FRAUD_FILTER_MODE, :HPP_SELECT_STORED_CARD, :PAYER_REF]
}
defstruct(
MERCHANT_ID: "",
ACCOUNT: "",
ORDER_ID: "",
AMOUNT: "... | 21.243902 | 73 | 0.584386 |
ac0c3ebe7bec218d90236d4c483e8c2ae93821b1 | 759 | ex | Elixir | test/support/fixtures/subscriptions_fixtures.ex | clone1018/WebSubHub | 1d26916b45d312ae5d8cc3fd786a6cec84c9f8e1 | [
"MIT"
] | 21 | 2022-01-09T23:04:48.000Z | 2022-03-24T14:55:20.000Z | test/support/fixtures/subscriptions_fixtures.ex | clone1018/WebSubHub | 1d26916b45d312ae5d8cc3fd786a6cec84c9f8e1 | [
"MIT"
] | 1 | 2022-03-26T15:10:53.000Z | 2022-03-29T11:23:03.000Z | test/support/fixtures/subscriptions_fixtures.ex | clone1018/WebSubHub | 1d26916b45d312ae5d8cc3fd786a6cec84c9f8e1 | [
"MIT"
] | null | null | null | defmodule WebSubHub.SubscriptionsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `WebSubHub.Subscriptions` context.
"""
@doc """
Generate a topic.
"""
def topic_fixture(attrs \\ %{}) do
{:ok, topic} =
attrs
|> Enum.into(%{
url: "some url... | 19.973684 | 54 | 0.596838 |
ac0c6293fe0e61f18a62a9c33d5ac554f6b942a2 | 1,383 | ex | Elixir | lib/sentinel/guardian.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/guardian.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/guardian.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | defmodule Sentinel.Guardian do
@moduledoc """
Implements Sentinel's specific implementaiton of guardian, and guardianDb hooks
"""
alias Sentinel.Config
use Guardian, otp_app: Sentinel.Config.otp_app()
def subject_for_token(resource, _claims) do
struct_type = Config.user_model().__struct__
if stru... | 24.696429 | 93 | 0.646421 |
ac0c6519f91e7ba96d710a5beacdade57c6e3e5a | 3,147 | ex | Elixir | lib/changelog_web/controllers/admin/news_sponsorship_controller.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | lib/changelog_web/controllers/admin/news_sponsorship_controller.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/admin/news_sponsorship_controller.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.NewsSponsorshipController do
use ChangelogWeb, :controller
alias Changelog.{NewsSponsorship}
alias ChangelogWeb.TimeView
plug :assign_sponsorship when action in [:show, :edit, :update, :delete]
plug Authorize, [Policies.NewsSponsorship, :sponsorship]
plug :scrub_params, "news_... | 30.259615 | 94 | 0.659358 |
ac0c82e8a2e2c233d54d0893c47b6f18e9b59018 | 194 | ex | Elixir | apps/jobex_data/lib/jobex_data/worker/serial.ex | andyl/jobex | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 10 | 2019-10-24T01:23:07.000Z | 2020-02-23T00:27:32.000Z | apps/jobex_data/lib/jobex_data/worker/serial.ex | andyl/crow | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 6 | 2021-03-09T18:41:09.000Z | 2021-05-27T13:02:42.000Z | apps/jobex_data/lib/jobex_data/worker/serial.ex | andyl/crow | a51d6ecc4e8e8d62ba7cdf3796305a5da369e4e2 | [
"MIT"
] | 1 | 2019-10-24T01:23:08.000Z | 2019-10-24T01:23:08.000Z | defmodule JobexData.Worker.Serial do
use Oban.Worker, queue: "serial", max_attempts: 3
@impl Oban.Worker
def perform(args, job) do
JobexData.Worker.Base.perform(args, job)
end
end
| 19.4 | 51 | 0.726804 |
ac0cd1e6babcfbda1387fa5adb1ac96c836e495c | 2,102 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/app_assigned_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/app_assigned_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/app_assigned_targeting_option_details.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... | 35.033333 | 113 | 0.724548 |
ac0d056c9c18d100bc6a05c65525277f8691d267 | 1,577 | ex | Elixir | other/porcelain_spawn_receive.ex | eksperimental/krill | 9db9b917f4bde12626b6a72f4fb7283b7dd701e9 | [
"MIT"
] | null | null | null | other/porcelain_spawn_receive.ex | eksperimental/krill | 9db9b917f4bde12626b6a72f4fb7283b7dd701e9 | [
"MIT"
] | null | null | null | other/porcelain_spawn_receive.ex | eksperimental/krill | 9db9b917f4bde12626b6a72f4fb7283b7dd701e9 | [
"MIT"
] | null | null | null | defmodule PorcelainExample do
@state {:global, __MODULE__}
use Application
alias Porcelain.Process
alias Porcelain.Result
# AGENT
def start_link,
do: Agent.start_link(fn -> HashDict.new end, name: @state)
def state(id),
do: Agent.get(@state, &Dict.get(&1, id))
def state(id, message),
do: Agent... | 19.962025 | 73 | 0.566265 |
ac0d08a6a52459043cacefa1a453b83ad802e853 | 3,059 | exs | Elixir | test/rock/algorithm_test.exs | sitch/rock | 4ed29f0b9bcbbef2b690a4ca903c33b60edb04e4 | [
"MIT"
] | null | null | null | test/rock/algorithm_test.exs | sitch/rock | 4ed29f0b9bcbbef2b690a4ca903c33b60edb04e4 | [
"MIT"
] | null | null | null | test/rock/algorithm_test.exs | sitch/rock | 4ed29f0b9bcbbef2b690a4ca903c33b60edb04e4 | [
"MIT"
] | null | null | null | defmodule Rock.AlgorithmTest do
use ExUnit.Case
alias Rock.Algorithm
alias Rock.Utils
@points [
{"point1", ["1", "2", "3"]},
{"point2", ["1", "2", "4"]},
{"point3", ["1", "2", "5"]},
{"point4", ["1", "3", "4"]},
{"point5", ["1", "3", "5"]},
{"point6", ["1", "4", "5"]},
{"point7", ... | 23.351145 | 57 | 0.338346 |
ac0dacaa30ade41c2c5cba81c3f2b9b2b52343ab | 3,170 | ex | Elixir | lib/dumper.ex | fklement/cannes | a7cd91053fc7655a946fc1dcda88845c8e0dc618 | [
"MIT"
] | 2 | 2021-02-17T12:49:49.000Z | 2022-01-07T17:27:25.000Z | lib/dumper.ex | fklement/cannes | a7cd91053fc7655a946fc1dcda88845c8e0dc618 | [
"MIT"
] | null | null | null | lib/dumper.ex | fklement/cannes | a7cd91053fc7655a946fc1dcda88845c8e0dc618 | [
"MIT"
] | null | null | null | defmodule Cannes.Dumper do
@moduledoc """
This module is for communicating with linux can sockets over candump.
TODO:
- Add logic to mount a can interface
- Test if desired interface is reacable
- Test if candump is available
- Pass options to candump
"""
alias Porcelain.Process, as: Proc
... | 27.094017 | 89 | 0.621451 |
ac0dcd851ee3ed649f47ddb5c1c893f070de6b70 | 117 | exs | Elixir | config/config.exs | ScapeGuru/scape_guru_discord_bot | f4909df86bd7131244625cd8b6d495ffab8efd3b | [
"Apache-2.0"
] | null | null | null | config/config.exs | ScapeGuru/scape_guru_discord_bot | f4909df86bd7131244625cd8b6d495ffab8efd3b | [
"Apache-2.0"
] | null | null | null | config/config.exs | ScapeGuru/scape_guru_discord_bot | f4909df86bd7131244625cd8b6d495ffab8efd3b | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :nostrum,
# The token of your bot as a string
token: "DISCORD_TOKEN",
num_shards: :auto
| 16.714286 | 37 | 0.709402 |
ac0dfeeb7cde5345b5e6a3a333358adb6e93c654 | 2,344 | ex | Elixir | lib/cldr/unit/prefix.ex | elixir-cldr/cldr_units | d3d51f80e304868567a7a21e9916fa17fe6ffdd1 | [
"Apache-2.0"
] | 11 | 2019-07-31T19:33:07.000Z | 2021-11-15T13:11:19.000Z | lib/cldr/unit/prefix.ex | elixir-cldr/cldr_units | d3d51f80e304868567a7a21e9916fa17fe6ffdd1 | [
"Apache-2.0"
] | 19 | 2019-06-09T02:41:44.000Z | 2022-03-03T14:54:40.000Z | lib/cldr/unit/prefix.ex | elixir-cldr/cldr_units | d3d51f80e304868567a7a21e9916fa17fe6ffdd1 | [
"Apache-2.0"
] | 3 | 2020-06-29T13:21:41.000Z | 2022-03-02T15:30:08.000Z | defmodule Cldr.Unit.Prefix do
@moduledoc false
@si_factors %{
"yokto" => Ratio.new(1, 1_000_000_000_000_000_000_000_000),
"zepto" => Ratio.new(1, 1_000_000_000_000_000_000_000),
"atto" => Ratio.new(1, 1_000_000_000_000_000_000),
"femto" => Ratio.new(1, 1_000_000_000_000_000),
"pico" => Ratio.ne... | 27.255814 | 96 | 0.537969 |
ac0e180e77a26997c3a6eaf43dbce590fca49f1c | 755 | exs | Elixir | test/multiple_clauses_test.exs | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | 321 | 2016-10-20T18:43:43.000Z | 2022-01-08T21:39:56.000Z | test/multiple_clauses_test.exs | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | 43 | 2016-10-20T22:01:51.000Z | 2021-09-04T19:39:20.000Z | test/multiple_clauses_test.exs | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | 25 | 2016-10-20T21:52:48.000Z | 2022-03-30T11:28:31.000Z | defmodule DecoratorTest.Fixture.MultipleClausesTestDecorator do
use Decorator.Define, test: 0
def test(body, _context) do
{:ok, body}
end
end
defmodule DecoratorTest.Fixture.MultipleClausesTestModule do
use DecoratorTest.Fixture.MultipleClausesTestDecorator
@decorate test()
def result(1) do
1
e... | 20.972222 | 63 | 0.741722 |
ac0e7a6494d914feb971047a874c948ce84d70c1 | 17,458 | exs | Elixir | test/integration_test.exs | marpo60/distillery | 80832dfd5dd75983d1a3f7889391fccb87e9ba32 | [
"MIT"
] | null | null | null | test/integration_test.exs | marpo60/distillery | 80832dfd5dd75983d1a3f7889391fccb87e9ba32 | [
"MIT"
] | null | null | null | test/integration_test.exs | marpo60/distillery | 80832dfd5dd75983d1a3f7889391fccb87e9ba32 | [
"MIT"
] | null | null | null | defmodule Distillery.Test.IntegrationTest do
use ExUnit.Case, async: false
alias Mix.Releases.Utils
import MixTestHelper
@moduletag integration: true
@moduletag timeout: 60_000 * 5
@standard_app_path Path.join([__DIR__, "fixtures", "standard_app"])
@standard_output_path Path.join([
... | 34.433925 | 108 | 0.560259 |
ac0ecb66ee42de098b62d77b50714b165575f400 | 1,385 | ex | Elixir | lib/openflow/actions/nx_check_pkt_larger.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2019-05-25T02:25:13.000Z | 2020-10-06T17:00:03.000Z | lib/openflow/actions/nx_check_pkt_larger.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 5 | 2018-03-29T14:42:10.000Z | 2019-11-19T07:03:09.000Z | lib/openflow/actions/nx_check_pkt_larger.ex | shun159/tres | 1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f | [
"Beerware"
] | 1 | 2019-03-30T20:48:27.000Z | 2019-03-30T20:48:27.000Z | defmodule Openflow.Action.NxCheckPktLarger do
defstruct(
pkt_len: 0,
offset: 0,
dst_field: nil
)
@experimenter 0x00002320
@nxast 49
alias __MODULE__
alias Openflow.Action.Experimenter
@type t :: %NxCheckPktLarger{dst_field: atom(), pkt_len: 0..0xFFFF, offset: 0..0xFFFF}
@spec new(dst_fie... | 29.468085 | 88 | 0.670036 |
ac0ecd25a8864e07b6bc87b6e14c13e46df296d8 | 272 | exs | Elixir | config/test.exs | ctxhaard/exkeychain | 1109316f182ab35d0f01a5607260afd35b87e7ff | [
"Apache-2.0"
] | 1 | 2021-02-15T08:56:17.000Z | 2021-02-15T08:56:17.000Z | config/test.exs | ctxhaard/exkeychain | 1109316f182ab35d0f01a5607260afd35b87e7ff | [
"Apache-2.0"
] | null | null | null | config/test.exs | ctxhaard/exkeychain | 1109316f182ab35d0f01a5607260afd35b87e7ff | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :exkeychain, ExkeychainWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.727273 | 56 | 0.742647 |
ac0ece38b30b012d306d014e0ad242bfc2d22f7b | 727 | ex | Elixir | farmbot_os/lib/farmbot_os/configurator/fake_network_layer.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_os/lib/farmbot_os/configurator/fake_network_layer.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_os/lib/farmbot_os/configurator/fake_network_layer.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Configurator.FakeNetworkLayer do
@behaviour FarmbotOS.Configurator.NetworkLayer
@impl FarmbotOS.Configurator.NetworkLayer
def list_interfaces() do
[{"eth0", %{mac_address: "not real lol"}}, {"wlan0", %{mac_address: "even more not real"}}]
end
@impl FarmbotOS.Configurator.NetworkLayer... | 22.030303 | 95 | 0.550206 |
ac0ed903428284f460aacae1c79735ef42f500f5 | 259 | exs | Elixir | even-or-odd/test/even_or_odd_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | even-or-odd/test/even_or_odd_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | even-or-odd/test/even_or_odd_test.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | defmodule EvenOrOddTest do
use ExUnit.Case
import EvenOrOdd, only: [even_or_odd: 1]
test "basic" do
assert even_or_odd(2) == "Even"
assert even_or_odd(0) == "Even"
assert even_or_odd(7) == "Odd"
assert even_or_odd(1) == "Odd"
end
end
| 21.583333 | 42 | 0.660232 |
ac0ee3f39b77106450a3625addd8e53975883b96 | 3,865 | ex | Elixir | apps/omg_child_chain/lib/omg_child_chain/datadog_event/contract_event_consumer.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg_child_chain/lib/omg_child_chain/datadog_event/contract_event_consumer.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg_child_chain/lib/omg_child_chain/datadog_event/contract_event_consumer.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.458716 | 134 | 0.70401 |
ac0efb40eadfe4f48bd252688e7603d4e51437ff | 1,129 | ex | Elixir | clients/fact_check_tools/lib/google_api/fact_check_tools/v1alpha1/connection.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/fact_check_tools/lib/google_api/fact_check_tools/v1alpha1/connection.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/fact_check_tools/lib/google_api/fact_check_tools/v1alpha1/connection.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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... | 34.212121 | 74 | 0.745793 |
ac0f31a9d41f13b17decfb7db4ef659567641d2e | 3,621 | ex | Elixir | lib/google/apis/analytics/views.ex | ianatha/google-api-elixir-client | d05f5493497f5a0249c6c7562abaf8e0a6d1b178 | [
"MIT"
] | 10 | 2017-02-08T08:42:37.000Z | 2018-04-27T01:04:34.000Z | lib/google/apis/analytics/views.ex | ianatha/google-api-elixir-client | d05f5493497f5a0249c6c7562abaf8e0a6d1b178 | [
"MIT"
] | 7 | 2017-02-08T09:02:43.000Z | 2017-07-14T05:12:01.000Z | lib/google/apis/analytics/views.ex | ianatha/google-api-elixir-client | d05f5493497f5a0249c6c7562abaf8e0a6d1b178 | [
"MIT"
] | 10 | 2017-02-08T08:42:40.000Z | 2020-07-20T09:56:21.000Z | defmodule Google.Apis.Analytics.Views do
use Google.Apis.Base, endpoint: "https://www.googleapis.com/analytics/v3/management/accounts/", oauth_only: true
@moduledoc """
Google Analytics, Views Management: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/profiles
"""
... | 40.685393 | 153 | 0.756973 |
ac0f4e77f29d00162cfbeb32ce77908d28d885f8 | 1,030 | ex | Elixir | test/support/conn_case.ex | austenmadden/hub | e9cd481a9d604230197790eb9672aa2b94716bc9 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | austenmadden/hub | e9cd481a9d604230197790eb9672aa2b94716bc9 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | austenmadden/hub | e9cd481a9d604230197790eb9672aa2b94716bc9 | [
"MIT"
] | null | null | null | defmodule HubWeb.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, if the te... | 26.410256 | 65 | 0.712621 |
ac0f62dd7a043e40e7f360accdc0891683b49a85 | 1,032 | exs | Elixir | exercises/practice/gigasecond/test/gigasecond_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/gigasecond/test/gigasecond_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/gigasecond/test/gigasecond_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule GigasecondTest do
use ExUnit.Case
# @tag :pending
test "from 2011-04-25 00:00:00" do
assert Gigasecond.from({{2011, 4, 25}, {0, 0, 0}}) == {{2043, 1, 1}, {1, 46, 40}}
end
@tag :pending
test "from 1977-06-13 00:00:00" do
assert Gigasecond.from({{1977, 6, 13}, {0, 0, 0}}) == {{2009, 2, 19}... | 28.666667 | 97 | 0.577519 |
ac0f6c9d2a0c983de81503c7198499ae99e5d176 | 2,881 | ex | Elixir | src/lib/harald/hci/commands.ex | keeplabs/harald | 1c273a47e224032996a744b79c0525cfa967e878 | [
"MIT"
] | 59 | 2019-02-16T00:09:58.000Z | 2020-03-29T23:37:36.000Z | src/lib/harald/hci/commands.ex | keeplabs/harald | 1c273a47e224032996a744b79c0525cfa967e878 | [
"MIT"
] | 19 | 2019-02-15T22:41:43.000Z | 2020-02-15T19:20:57.000Z | src/lib/harald/hci/commands.ex | keeplabs/harald | 1c273a47e224032996a744b79c0525cfa967e878 | [
"MIT"
] | 9 | 2020-05-07T00:02:36.000Z | 2021-09-17T18:17:46.000Z | defmodule Harald.HCI.Commands do
@moduledoc """
Reference: version 5.1, vol 2, part E, 5.4.1.
"""
alias Harald.HCI.Packet
alias Harald.HCI.Commands
alias Harald.HCI.Commands.{
Command,
ControllerAndBaseband,
InformationalParameters,
LEController
}
@type ocf() :: non_neg_integer()
@t... | 32.370787 | 88 | 0.643179 |
ac0f79cc5df37290ec29510e5b2207e8595b8e58 | 1,006 | exs | Elixir | test/phone/b_countries/bt_test.exs | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | test/phone/b_countries/bt_test.exs | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | test/phone/b_countries/bt_test.exs | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.BTTest do
use ExUnit.Case, async: true
main_module = Phone.BT
Enum.map(main_module.codes,
fn code ->
test "#{inspect main_module} parses area code #{code}" do
assert Phone.valid?(unquote("#{code}55555555"))
assert {:ok, parsed} = Phone.parse(unquote("#{code}55555555"))
... | 33.533333 | 80 | 0.632207 |
ac0f8e781a68e25628413baecd4cf2cd8e86078a | 11,376 | ex | Elixir | phoenix/lib/mehr_schulferien_web/controllers/school_controller.ex | hendri-tobing/www.mehr-schulferien.de | 81f71b358a607e08eb6b9d211eba597576a18578 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/controllers/school_controller.ex | hendri-tobing/www.mehr-schulferien.de | 81f71b358a607e08eb6b9d211eba597576a18578 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/controllers/school_controller.ex | hendri-tobing/www.mehr-schulferien.de | 81f71b358a607e08eb6b9d211eba597576a18578 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.SchoolController do
use MehrSchulferienWeb, :controller
alias MehrSchulferien.Locations
alias MehrSchulferien.Locations.Country
alias MehrSchulferien.Locations.FederalState
alias MehrSchulferien.Locations.City
alias MehrSchulferien.Locations.School
alias MehrSchulferien.Timet... | 42.289963 | 132 | 0.566368 |
ac0fafb970682ee1219d784aaaa265d089f06e9f | 1,236 | ex | Elixir | lib/injector/callback.ex | mcrumm/ex_dash | 4e81259763678c4281615db9ae50a5b87bbba232 | [
"MIT"
] | 26 | 2017-06-20T12:05:50.000Z | 2021-01-02T16:08:15.000Z | lib/injector/callback.ex | mcrumm/ex_dash | 4e81259763678c4281615db9ae50a5b87bbba232 | [
"MIT"
] | 1 | 2017-03-19T19:44:30.000Z | 2017-04-01T02:51:28.000Z | lib/injector/callback.ex | russmatney/ex_dash | 4e81259763678c4281615db9ae50a5b87bbba232 | [
"MIT"
] | 5 | 2018-07-06T04:54:26.000Z | 2020-02-12T19:18:43.000Z | defmodule ExDash.Injector.Callback do
@moduledoc """
An Injector for identifying Elixir type specs and injecting Callback anchors into ExDoc-generated files.
"""
alias Floki
alias ExDash.Injector
@behaviour Injector
@doc """
find_ids/1 returns all Elixir callbacks found in the passed HTML.
"""
... | 22.472727 | 106 | 0.668285 |
ac0fbdf0b73ff18e1fccc5f3f13256513e2e4e9b | 591 | ex | Elixir | lib/guilda.ex | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 10 | 2020-09-05T20:25:05.000Z | 2022-01-28T14:02:36.000Z | lib/guilda.ex | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 11 | 2020-09-07T01:09:55.000Z | 2022-02-06T00:58:48.000Z | lib/guilda.ex | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | 3 | 2020-10-03T01:53:08.000Z | 2022-01-28T14:03:09.000Z | defmodule Guilda do
@moduledoc """
Guilda keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
@icon_path Path.relative_to_cwd(Path.join("assets", "icons"))
@spec sv... | 28.142857 | 72 | 0.678511 |
ac0fc0ef8344d5bd4d1b6dbd54b5d5395059a1df | 769 | ex | Elixir | lib/payjp/accounts.ex | shufo/payjp-elixir | 01e9d9678a1a9bf9bc0850d7c848534ef22490fa | [
"MIT"
] | 4 | 2017-02-20T00:26:02.000Z | 2019-05-22T01:02:25.000Z | lib/payjp/accounts.ex | shufo/payjp-elixir | 01e9d9678a1a9bf9bc0850d7c848534ef22490fa | [
"MIT"
] | 28 | 2020-03-06T03:28:28.000Z | 2021-08-02T20:38:55.000Z | lib/payjp/accounts.ex | shufo/payjp-elixir | 01e9d9678a1a9bf9bc0850d7c848534ef22490fa | [
"MIT"
] | 1 | 2017-06-16T12:56:47.000Z | 2017-06-16T12:56:47.000Z | defmodule Payjp.Accounts do
@moduledoc """
Functions for working with accounts at Payjp. Through this API you can:
* get an account,
Payjp API reference: https://pay.jp/docs/api/#account-アカウント
"""
@endpoint "accounts"
@doc """
Get a account.
Gets a account.
Returns a `{:ok, account}` tuple.
... | 17.088889 | 73 | 0.635891 |
ac0fff90b27c3b4965a8947f3d4c2a0fff4a0f90 | 57 | ex | Elixir | lib/etog_web/views/layout_view.ex | HoJSim/etog | dc2393e27915caf73eea0d8839ba198635c45ca6 | [
"MIT"
] | null | null | null | lib/etog_web/views/layout_view.ex | HoJSim/etog | dc2393e27915caf73eea0d8839ba198635c45ca6 | [
"MIT"
] | null | null | null | lib/etog_web/views/layout_view.ex | HoJSim/etog | dc2393e27915caf73eea0d8839ba198635c45ca6 | [
"MIT"
] | null | null | null | defmodule EtogWeb.LayoutView do
use EtogWeb, :view
end
| 14.25 | 31 | 0.789474 |
ac10005eb5c8e9b60e623b6ab88a0ff609980afe | 1,482 | exs | Elixir | test/plane_test.exs | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | 3 | 2020-03-23T09:41:07.000Z | 2021-06-03T00:14:24.000Z | test/plane_test.exs | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | 17 | 2020-03-14T11:54:59.000Z | 2020-06-21T20:01:29.000Z | test/plane_test.exs | Bajena/the-ray-tracer-challenge | 8b18405fbfadd247c888660adf0a542e4f2024cd | [
"MIT"
] | null | null | null | defmodule PlaneTest do
alias RayTracer.RTuple
alias RayTracer.Ray
alias RayTracer.Plane
alias RayTracer.Shape
import RTuple, only: [point: 3, vector: 3]
use ExUnit.Case
doctest RayTracer.Plane
test "The normal of a plane is constant everywhere" do
p = Plane.new()
n1 = p |> Shape.local_normal_a... | 25.118644 | 56 | 0.612011 |
ac102db85aab0ecceb584e65e685854a7ad6418b | 71,946 | ex | Elixir | clients/content/lib/google_api/content/v21/api/accounts.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/accounts.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/accounts.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"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.03071 | 301 | 0.612723 |
ac102fc861be1bf4f60fa66075f355873eea6e9c | 1,134 | ex | Elixir | daily_meals/lib/daily_meals.ex | joabehenrique/daily-meals | ea8919a45dc155046289c96854348bd7ed89c1fb | [
"MIT"
] | null | null | null | daily_meals/lib/daily_meals.ex | joabehenrique/daily-meals | ea8919a45dc155046289c96854348bd7ed89c1fb | [
"MIT"
] | null | null | null | daily_meals/lib/daily_meals.ex | joabehenrique/daily-meals | ea8919a45dc155046289c96854348bd7ed89c1fb | [
"MIT"
] | null | null | null | defmodule DailyMeals do
alias DailyMeals.Meals.Create, as: MealCreate
alias DailyMeals.Meals.Update, as: MealUpdate
alias DailyMeals.Meals.Delete, as: MealDelete
alias DailyMeals.Meals.FindAll, as: MealFindAll
alias DailyMeals.Meals.FindById, as: MealFindById
alias DailyMeals.User.Create, as: UserCreate
... | 43.615385 | 66 | 0.773369 |
ac104a7c40fb2b4062ae90998717276331f70d22 | 4,518 | ex | Elixir | lib/event_store/supervisor.ex | LeartS/eventstore | f0431bfefcaa1a6fa8251eb6dd0ae8def1d82961 | [
"MIT"
] | null | null | null | lib/event_store/supervisor.ex | LeartS/eventstore | f0431bfefcaa1a6fa8251eb6dd0ae8def1d82961 | [
"MIT"
] | null | null | null | lib/event_store/supervisor.ex | LeartS/eventstore | f0431bfefcaa1a6fa8251eb6dd0ae8def1d82961 | [
"MIT"
] | null | null | null | defmodule EventStore.Supervisor do
@moduledoc false
use Supervisor
alias EventStore.{
AdvisoryLocks,
Config,
MonitoredServer,
Notifications,
PubSub,
Serializer,
Subscriptions
}
@doc """
Starts the event store supervisor.
"""
def start_link(event_store, otp_app, name, opts)... | 31.375 | 95 | 0.662683 |
ac10695699a7910530f007f3c65fe4059ed7405e | 1,731 | ex | Elixir | core/metrics/buffer.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | core/metrics/buffer.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | core/metrics/buffer.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Metrics.Buffer do
@moduledoc """
A bin-like data structure to hold per-minute, per-epool metrics data.
%{
{time_minute, epool_id} => %{
{metrics_type, strategy} => data_in_processing,
... | 34.62 | 114 | 0.632582 |
ac1070b3fc7832ba799c9c6acc39f17d9b5ba3b5 | 40,794 | ex | Elixir | lib/mix/tasks/coh.install.ex | alectower/coherence | 20714f329aa91f52aba07066a63492150e0a3ce4 | [
"MIT"
] | 8 | 2019-01-15T08:57:07.000Z | 2020-08-26T13:43:01.000Z | lib/mix/tasks/coh.install.ex | alectower/coherence | 20714f329aa91f52aba07066a63492150e0a3ce4 | [
"MIT"
] | 2 | 2019-05-29T17:49:10.000Z | 2019-06-18T21:39:22.000Z | lib/mix/tasks/coh.install.ex | alectower/coherence | 20714f329aa91f52aba07066a63492150e0a3ce4 | [
"MIT"
] | 22 | 2018-12-10T02:15:18.000Z | 2020-10-06T08:42:22.000Z | defmodule Mix.Tasks.Coh.Install do
@moduledoc """
Configure the Coherence User Model for your Phoenix application. Coherence
is composed of a number of modules that can be enabled with this installer.
This installer will normally do the following unless given an option not to do so:
* Append the :coherence ... | 28.587246 | 145 | 0.631809 |
ac1072203a2ab884efc002d71318d5d2fa76fe66 | 1,848 | exs | Elixir | mix.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | null | null | null | mix.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | mix.exs | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule Rumbl.MixProject do
use Mix.Project
def project do
[
app: :rumbl,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
d... | 26.028169 | 79 | 0.556818 |
ac107a365d1be36650b727d48918a27c0e91a1b1 | 2,625 | ex | Elixir | lib/community_web/live/article_list_live.ex | elixir-china-community/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 18 | 2019-10-04T01:49:16.000Z | 2020-07-04T23:53:26.000Z | lib/community_web/live/article_list_live.ex | elixirchina/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 2 | 2019-10-17T04:56:54.000Z | 2019-11-11T04:05:06.000Z | lib/community_web/live/article_list_live.ex | elixir-china-community/community | b1c52c0530949a60bf4aadf63e60a34c5d58dd66 | [
"MIT"
] | 5 | 2019-10-17T06:42:26.000Z | 2020-02-17T18:08:54.000Z | defmodule CommunityWeb.ArticlesLive do
alias CommunityWeb.{LiveView, PageView}
use LiveView
@articles [
[
face: "1.png",
title: "Rails 默认 Session 的存储方式:CookieStore",
author: "elbrujohalcon",
reply_author: "daareiza",
reply_at: 10,
reply_num: 27
],
[
face: "1... | 22.435897 | 95 | 0.544381 |
ac107b0adb977b6e4d971be23ca1c28808e1facc | 3,079 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/router_interface.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/router_interface.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router_interface.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 ... | 50.47541 | 316 | 0.732705 |
ac107dc902f4cc90b40046cb2cdf4b744101b8e1 | 1,836 | ex | Elixir | clients/double_click_search/lib/google_api/double_click_search/v2/model/conversion_list.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/double_click_search/lib/google_api/double_click_search/v2/model/conversion_list.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/double_click_search/lib/google_api/double_click_search/v2/model/conversion_list.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 ... | 36.72 | 186 | 0.745643 |
ac108b351b81bf172b46836e982a0e65e10c71a8 | 4,426 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_line_item_product.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_line_item_product.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_line_item_product.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.754717 | 313 | 0.656123 |
ac10ab587e194688b4501639a9966c711f2b6d4a | 1,685 | ex | Elixir | lib/xdr/transactions/operations/allow_trust_result_code.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/operations/allow_trust_result_code.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/operations/allow_trust_result_code.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.AllowTrustResultCode do
@moduledoc """
Representation of Stellar `AllowTrustResultCode` type.
"""
@behaviour XDR.Declaration
@declarations [
# success
ALLOW_TRUST_SUCCESS: 0,
# asset is not ASSET_TYPE_ALPHANUM
ALLOW_TRUST_MALFORMED: -1,
# trustor does ... | 25.923077 | 76 | 0.679525 |
ac10af6f5cb0c9171e6504a037916c7e68894c24 | 3,904 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/monitored_resource_descriptor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/monitored_resource_descriptor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_networking/lib/google_api/service_networking/v1/model/monitored_resource_descriptor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.036145 | 178 | 0.724129 |
ac10d9a467973a49cc07dbe41a84d4fbe2f009e4 | 377 | ex | Elixir | lib/livewords/games/clue.ex | evanbattaglia/livewords | c1324cde64e6d7873942e24a473feb16482c9fbb | [
"MIT"
] | null | null | null | lib/livewords/games/clue.ex | evanbattaglia/livewords | c1324cde64e6d7873942e24a473feb16482c9fbb | [
"MIT"
] | null | null | null | lib/livewords/games/clue.ex | evanbattaglia/livewords | c1324cde64e6d7873942e24a473feb16482c9fbb | [
"MIT"
] | null | null | null | defmodule Livewords.Games.Clue do
use Ecto.Schema
import Ecto.Changeset
schema "clues" do
field :text, :string
belongs_to :game, Livewords.Games.Game
timestamps()
end
@doc false
def changeset(clue, attrs) do
clue
|> cast(attrs, [:text, :game_id])
|> validate_required([:text, :gam... | 17.952381 | 43 | 0.668435 |
ac10ec7b9edbecf2bc8971521f4dbbb8e5235b64 | 2,286 | exs | Elixir | test/game/command/socials_test.exs | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | test/game/command/socials_test.exs | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | test/game/command/socials_test.exs | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | defmodule Game.Command.SocialsTest do
use ExVenture.CommandCase
import Test.SocialsHelper
alias Data.Social
alias Game.Command.Socials
doctest Socials
setup do
start_and_clear_socials()
%Social{
id: 1,
name: "Smile",
command: "smile",
with_target: "[user] smiles at [targ... | 24.580645 | 86 | 0.622485 |
ac11098dac4e5355a799bd33504b8596f18230b9 | 12,677 | ex | Elixir | lib/phoenix/endpoint.ex | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | lsimoneau/phoenix | fae6af3dbda8183d93473885087e0e66ac3b765c | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint do
@moduledoc """
Defines a Phoenix endpoint.
The endpoint is the boundary where all requests to your
web application start. It is also the interface your
application provides to the underlying web servers.
Overall, an endpoint has three responsibilities:
* to provide a wra... | 33.537037 | 97 | 0.668218 |
ac111e0cc140f7efdab3a3cfeea7dd5155e8005e | 2,223 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_list_session_entity_types_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_list_session_entity_types_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_list_session_entity_types_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.05 | 265 | 0.756185 |
ac112b4c048445693f1b6cfdb9d05f5e61c754b0 | 403 | exs | Elixir | config/test.exs | uberbrodt/commanded_horde_registry | 2ecb1dfe90b6eba49bd9b2f012d425cf3e9ff1c7 | [
"MIT"
] | 5 | 2019-05-10T16:34:44.000Z | 2019-12-07T15:51:47.000Z | config/test.exs | traitify/commanded_horde_registry | 7ee4398efe771eca70a83c217f128bc255750023 | [
"MIT"
] | 4 | 2019-07-04T09:22:19.000Z | 2020-01-31T04:59:51.000Z | config/test.exs | traitify/commanded_horde_registry | 7ee4398efe771eca70a83c217f128bc255750023 | [
"MIT"
] | 4 | 2019-09-04T10:00:07.000Z | 2020-08-13T17:26:26.000Z | use Mix.Config
config :commanded,
assert_receive_event_timeout: 2_000,
event_store_adapter: Commanded.EventStore.Adapters.InMemory,
registry: Commanded.Registration.HordeRegistry
config :commanded, Commanded.EventStore.Adapters.InMemory,
serializer: Commanded.Serialization.JsonSerializer
config :ex_unit,
c... | 26.866667 | 62 | 0.828784 |
ac114b04be9d904cc317a291a09f0242461dab8e | 196 | ex | Elixir | implementations/elixir/lib/router/protocol/message_type.ex | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | implementations/elixir/lib/router/protocol/message_type.ex | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | implementations/elixir/lib/router/protocol/message_type.ex | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | defprotocol Ockam.Router.Protocol.MessageType do
@type t :: any()
@spec type_id(t) :: non_neg_integer()
def type_id(value)
@spec version(t) :: non_neg_integer()
def version(value)
end
| 19.6 | 48 | 0.704082 |
ac1156bf6d8d79199c6a90b7d438feabf7a23de1 | 2,645 | exs | Elixir | mix.exs | celaxodon/nerves_system_jetson_nano | 99b4b34dd5279e3d80b2de9f34890e4fefeac79a | [
"Apache-2.0"
] | 1 | 2021-11-09T18:16:08.000Z | 2021-11-09T18:16:08.000Z | mix.exs | phonnz/nerves_system_jetson_nano | 99b4b34dd5279e3d80b2de9f34890e4fefeac79a | [
"Apache-2.0"
] | null | null | null | mix.exs | phonnz/nerves_system_jetson_nano | 99b4b34dd5279e3d80b2de9f34890e4fefeac79a | [
"Apache-2.0"
] | 1 | 2021-10-21T03:57:19.000Z | 2021-10-21T03:57:19.000Z | defmodule NervesTargetJetsonNano.MixProject do
use Mix.Project
@github_organization "celaxodon"
@app :nerves_system_jetson_nano
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",... | 23 | 82 | 0.587524 |
ac1180977609cc4be3050460029711e81aefc142 | 244 | exs | Elixir | heat_tags/priv/repo/migrations/20211024043924_create_messages.exs | omarcoaur3lio/DoWhile2021_Community | f4a2360b0098189c9a00794cdc06caffec729b42 | [
"MIT"
] | null | null | null | heat_tags/priv/repo/migrations/20211024043924_create_messages.exs | omarcoaur3lio/DoWhile2021_Community | f4a2360b0098189c9a00794cdc06caffec729b42 | [
"MIT"
] | null | null | null | heat_tags/priv/repo/migrations/20211024043924_create_messages.exs | omarcoaur3lio/DoWhile2021_Community | f4a2360b0098189c9a00794cdc06caffec729b42 | [
"MIT"
] | null | null | null | defmodule HeatTags.Repo.Migrations.CreateMessages do
use Ecto.Migration
def change do
create table(:messages) do
add :message, :string
add :username, :string
add :email, :string
timestamps()
end
end
end
| 16.266667 | 52 | 0.659836 |
ac11abb6deaec7489459ab2f07ee02fdbcab5bdf | 5,819 | ex | Elixir | lib/ex_money_web/controllers/mobile/setting/budget_controller.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 184 | 2015-11-23T20:51:50.000Z | 2022-03-30T01:01:39.000Z | lib/ex_money_web/controllers/mobile/setting/budget_controller.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 15 | 2015-11-26T16:00:20.000Z | 2018-05-25T20:13:39.000Z | lib/ex_money_web/controllers/mobile/setting/budget_controller.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 21 | 2015-11-26T21:34:40.000Z | 2022-03-26T02:56:42.000Z | defmodule ExMoney.Web.Mobile.Setting.BudgetController do
use ExMoney.Web, :controller
alias ExMoney.{Account, Repo, Category, BudgetTemplate, BudgetItem, DateHelper, Budget}
plug Guardian.Plug.EnsureAuthenticated, handler: ExMoney.Guardian.Mobile.Unauthenticated
plug :put_layout, "mobile.html"
def show(con... | 33.0625 | 130 | 0.673999 |
ac11ad6d9cd4efbd8e084c623c017afb71ba9ba9 | 5,902 | exs | Elixir | test/settings_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | null | null | null | test/settings_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | null | null | null | test/settings_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | null | null | null | defmodule Excoveralls.SettingsTest do
use ExUnit.Case
import Mock
alias ExCoveralls.Settings
@fixture_default Path.dirname(__ENV__.file) <> "/fixtures/default.json"
@fixture_custom Path.dirname(__ENV__.file) <> "/fixtures/custom.json"
@fixture_dotfile Path.dirname(__ENV__.file) <> "/fixtures/dotfile.json... | 40.703448 | 99 | 0.647408 |
ac11bcbe6e2d438fa5d3d63f8b56007e78b6c27b | 1,609 | ex | Elixir | lib/shared/models.ex | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | lib/shared/models.ex | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | lib/shared/models.ex | greenealexander/print_react | f6d29884cc11b0bbf143df866e08bfaf4607de0c | [
"MIT-0"
] | null | null | null | defmodule PUP.Models.ConfigModel do
@enforce_keys [:name, :form_type]
defstruct name: "", form_type: "", printers: []
end
defmodule PUP.Models.JobRowModel do
alias PUP.Models.{ConfigModel, DocumentMeta, JobRowModel}
@enforce_keys [:start_code, :page_count, :documents, :printer_config]
defstruct start_code: ... | 25.140625 | 71 | 0.600994 |
ac11c3005b0721ddce564f52c180af3cbadd1148 | 1,041 | ex | Elixir | lib/ecto/migration/schema_migration.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration/schema_migration.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | lib/ecto/migration/schema_migration.ex | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Migration.SchemaMigration do
# Define a schema that works with the schema_migrations table
@moduledoc false
use Ecto.Model
@primary_key {:version, :integer, []}
schema "schema_migrations" do
timestamps updated_at: false
end
@table %Ecto.Migration.Table{name: :schema_migrations}
@opt... | 25.390244 | 63 | 0.673391 |
ac11d1d257bbf92e5c777e4170a4e1e6891de082 | 706 | exs | Elixir | priv/repo/seeds.exs | tilacog/bank-account-opening | e9d6ad11e6376af08b92a7f61e17d5df80a3a08f | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | tilacog/bank-account-opening | e9d6ad11e6376af08b92a7f61e17d5df80a3a08f | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | tilacog/bank-account-opening | e9d6ad11e6376af08b92a7f61e17d5df80a3a08f | [
"MIT"
] | null | null | null | # Since accounts are chained together by referral codes, we must provide the first account (named
# "genesis") that will be the root for new accounts to refer to.
alias Bank.Repo
alias Bank.Auth
alias Bank.Account.PartialAccount
{:ok, genesis_user} = Auth.register_user(%{cpf: "00000000191", password: "123supersecret4... | 30.695652 | 97 | 0.723796 |
ac121b83f6ca5453b1b5352bbd14fb9e303a3e05 | 4,639 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/response.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 50.423913 | 185 | 0.757922 |
ac1242ccc2331e1d31f68f19a9516b022711b17d | 280 | exs | Elixir | test/questionator_web/views/layout_view_test.exs | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | 3 | 2021-08-30T20:22:39.000Z | 2022-03-16T10:27:50.000Z | test/questionator_web/views/layout_view_test.exs | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | null | null | null | test/questionator_web/views/layout_view_test.exs | krodante/questionator | f23f34ccf063b7969b60514aa9af433bb05369d5 | [
"MIT"
] | 2 | 2021-08-18T17:20:46.000Z | 2021-09-01T04:15:31.000Z | defmodule QuestionatorWeb.LayoutViewTest do
use QuestionatorWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 31.111111 | 65 | 0.775 |
ac1249706182f498a35b5a00ec0522f2cd6f78fa | 493 | exs | Elixir | examples/multiple_spinners.exs | kianmeng/owl | 55c0f31438866d79526d1feab44e23728ad88dd6 | [
"Apache-2.0"
] | 123 | 2021-12-15T22:42:04.000Z | 2022-03-30T22:21:29.000Z | examples/multiple_spinners.exs | kianmeng/owl | 55c0f31438866d79526d1feab44e23728ad88dd6 | [
"Apache-2.0"
] | 2 | 2021-12-16T16:42:24.000Z | 2022-01-25T23:47:17.000Z | examples/multiple_spinners.exs | kianmeng/owl | 55c0f31438866d79526d1feab44e23728ad88dd6 | [
"Apache-2.0"
] | 1 | 2022-01-25T14:02:40.000Z | 2022-01-25T14:02:40.000Z | long_running_tasks =
[9000, 8000, 4000, 6000, 1000, 12000, 1300, 6000, 3000, 7900]
|> Enum.with_index(1)
|> Enum.map(fn {delay, index} ->
{fn -> Process.sleep(delay) end,
labels: [
processing: "##{index} - processing",
ok: "##{index} - completed",
error: "##{index} - error"
]}
... | 23.47619 | 63 | 0.604462 |
ac127d08d087d5b690093a84c9fdb7c339cc6367 | 3,347 | ex | Elixir | lib/font_info/font_header.ex | magicienap/font_info | bb3d489dee36696dc2596242ca7ebec42634d611 | [
"MIT"
] | null | null | null | lib/font_info/font_header.ex | magicienap/font_info | bb3d489dee36696dc2596242ca7ebec42634d611 | [
"MIT"
] | null | null | null | lib/font_info/font_header.ex | magicienap/font_info | bb3d489dee36696dc2596242ca7ebec42634d611 | [
"MIT"
] | null | null | null | defmodule FontInfo.FontHeader do
alias FontInfo.Helpers
defstruct [
:version,
:font_revision,
:check_sum_adjustment,
:magic_number,
:flags,
:units_per_em,
:created,
:modified,
:x_min,
:y_min,
:x_max,
:y_max,
:mac_style,
:lowest_rec_ppem,
:font_direction_h... | 28.606838 | 94 | 0.572752 |
ac128c410b2d4525e107c090252d2d3b17c46bcf | 2,237 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/token_pagination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/token_pagination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/token_pagination.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... | 44.74 | 591 | 0.761287 |
ac12e5c8868c5ac836452b4b203fba753bb60827 | 27,033 | ex | Elixir | lib/facebook.ex | cvincent/facebook.ex | 8b48c733f02e94cbd07c923521e48c1b6a002048 | [
"MIT"
] | null | null | null | lib/facebook.ex | cvincent/facebook.ex | 8b48c733f02e94cbd07c923521e48c1b6a002048 | [
"MIT"
] | null | null | null | lib/facebook.ex | cvincent/facebook.ex | 8b48c733f02e94cbd07c923521e48c1b6a002048 | [
"MIT"
] | null | null | null | defmodule Facebook do
@moduledoc """
Provides API wrappers for the Facebook Graph API
See: https://developers.facebook.com/docs/graph-api
"""
use Application
alias Facebook.Config
alias Facebook.GraphAPI
alias Facebook.GraphVideoAPI
alias Facebook.ResponseFormatter
def start(_type, _args) do
... | 29.608981 | 123 | 0.648208 |
ac134dceae19859ef21078cab67acbb58215ec0a | 559 | ex | Elixir | apps/re_web/lib/views/changeset_view.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/lib/views/changeset_view.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_web/lib/views/changeset_view.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.ChangesetView do
use ReWeb, :view
alias Ecto.Changeset
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`Re.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Changeset.traverse_errors(changeset, &... | 25.409091 | 60 | 0.729875 |
ac1358b8bf2d7660ed294c72eea5e931298cd296 | 1,539 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/state_notification_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/state_notification_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/state_notification_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.744681 | 147 | 0.749188 |
ac135e40f3b23b412a9d9f7ac9b4de0c04af7f66 | 1,397 | exs | Elixir | config/releases.exs | vsyrovat/awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 2 | 2019-12-17T11:40:54.000Z | 2019-12-22T17:15:29.000Z | config/releases.exs | vsyrovat/funbox_awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 5 | 2020-10-08T20:36:07.000Z | 2020-10-08T21:27:28.000Z | config/releases.exs | vsyrovat/awesome-elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envir... | 29.104167 | 95 | 0.716535 |
ac136284f87ba55015ac82386865d17d38feacc2 | 2,801 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/check_data_access_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/check_data_access_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/check_data_access_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... | 50.017857 | 546 | 0.736523 |
ac1376cc6605df326190a32bcae08ded186375b0 | 765 | ex | Elixir | lib/mix/tasks/generate_referrer_favicons.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | lib/mix/tasks/generate_referrer_favicons.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | lib/mix/tasks/generate_referrer_favicons.ex | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Mix.Tasks.GenerateReferrerFavicons do
use Mix.Task
use Plausible.Repo
require Logger
@dialyzer {:nowarn_function, run: 1}
# coveralls-ignore-start
def run(_) do
entries =
:yamerl_constr.file(Application.app_dir(:plausible, "priv/ref_inspector/referers.yml"))
|> List.first()
... | 24.677419 | 93 | 0.622222 |
ac13bc995555727512a5476d7e21fbd413470f90 | 1,046 | ex | Elixir | lib/evo/cart/supervisor.ex | cas27/evo | 4ca1945749014917b7a3af870c1cd4db645cb09b | [
"Apache-2.0"
] | 3 | 2016-07-20T22:45:32.000Z | 2017-05-03T17:15:39.000Z | lib/evo/cart/supervisor.ex | cas27/evo | 4ca1945749014917b7a3af870c1cd4db645cb09b | [
"Apache-2.0"
] | null | null | null | lib/evo/cart/supervisor.ex | cas27/evo | 4ca1945749014917b7a3af870c1cd4db645cb09b | [
"Apache-2.0"
] | null | null | null | defmodule Evo.Cart.Supervisor do
use Supervisor
@name __MODULE__
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: @name)
end
def create_or_get_cart(id) do
cart = :gproc.where({:n, Application.get_env(:evo, :registry_strategy), id})
case cart do
:undefined -> start_cart(id)
... | 22.73913 | 81 | 0.623327 |
ac13c1c2b5b3080b34b6cd6e52d99815d4a77545 | 336 | ex | Elixir | test/support/mix/test_case.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | test/support/mix/test_case.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | test/support/mix/test_case.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | defmodule Pow.Test.Mix.TestCase do
@moduledoc false
use ExUnit.CaseTemplate
setup_all do
clear_tmp_files()
:ok
end
setup do
current_shell = Mix.shell()
on_exit fn ->
Mix.shell(current_shell)
end
Mix.shell(Mix.Shell.Process)
:ok
end
defp clear_tmp_files, do: File.rm... | 13.44 | 46 | 0.654762 |
ac13c4d7e320bd725640db659e8ad67eb027f5a2 | 347 | ex | Elixir | lib/credo/cli/command/list/output/flycheck.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/cli/command/list/output/flycheck.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/cli/command/list/output/flycheck.ex | isaacsanders/credo | 5623570bb2e3944345f1bf11819ca613533b5e10 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.CLI.Command.List.Output.FlyCheck do
@moduledoc false
alias Credo.CLI.Output.Formatter.Flycheck
alias Credo.Execution
def print_before_info(_source_files, _exec), do: nil
def print_after_info(_source_files, exec, _time_load, _time_run) do
exec
|> Execution.get_issues()
|> Flychec... | 23.133333 | 69 | 0.755043 |
ac13c7a8692f14c5bb946cdf9754ca0da724db11 | 233 | exs | Elixir | priv/repo/migrations/20160913234804_create_user.exs | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160913234804_create_user.exs | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160913234804_create_user.exs | aramisf/caravan | add305c70ee1ceb4a3dff9a7ed606a182e6f12d7 | [
"MIT"
] | null | null | null | defmodule Caravan.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string
add :password, :string
add :name, :string
timestamps()
end
end
end
| 15.533333 | 47 | 0.643777 |
ac1412489dd3d00f3697838687e12ae1a1545880 | 899 | ex | Elixir | lib/commanded/scheduler/schedule/schedule_batch.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 31 | 2017-11-25T00:18:12.000Z | 2022-03-03T20:11:17.000Z | lib/commanded/scheduler/schedule/schedule_batch.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 12 | 2018-01-09T21:18:30.000Z | 2021-09-06T10:35:43.000Z | lib/commanded/scheduler/schedule/schedule_batch.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 13 | 2018-02-08T15:15:11.000Z | 2020-08-13T12:25:18.000Z | defmodule Commanded.Scheduler.ScheduleBatch do
@moduledoc """
Schedule a batch of one-off and recurring commands.
"""
defmodule Once do
@moduledoc false
@type t :: %__MODULE__{
name: String.t(),
command: struct(),
due_at: DateTime.t() | NaiveDateTime.t()
}... | 17.98 | 53 | 0.528365 |
ac142457c8d67c9ae021c813d333d129cb9167cf | 2,336 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_reason_list_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_reason_list_response.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_abuse_report_reason_list_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... | 38.933333 | 173 | 0.714897 |
ac1439d73b5a200c3fff7618c1b15872955ba290 | 524 | exs | Elixir | Chapter09/apps/elixir_drip/config/config.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter09/apps/elixir_drip/config/config.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter09/apps/elixir_drip/config/config.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | use Mix.Config
config :elixir_drip, ecto_repos: [ElixirDrip.Repo]
config :elixir_drip, storage_provider: ElixirDrip.Storage.Providers.GoogleCloudStorageLive
config :arc,
storage: Arc.Storage.GCS,
bucket: "elixir-drip-andre-development",
storage_dir: "v1"
config :goth,
config_module: ElixirDrip.Config.GcsCre... | 24.952381 | 90 | 0.770992 |
ac14452050f1f297827a41c0a96590fc939c48f5 | 11,598 | ex | Elixir | lib/data/effect.ex | the3hm/seraph_mud | c098a22184a0a6bcbd56cacf7b0f176dd173260d | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/data/effect.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/data/effect.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Effect do
@moduledoc """
In game effects such as damage
Valid kinds of effects:
- "damage": Does an amount of damage
- "damage/type": Halves damage if the type does not align
- "damage/over-time": Does damage over time
- "recover": Heals an amount of health/skill/move points
- "stats": ... | 27.225352 | 112 | 0.612261 |
ac146673f168a9c6a4717845834cd7d939aa7795 | 178 | exs | Elixir | priv/repo/migrations/20220501120539_create_oban_peers.exs | b310-digital/qrstorage | 1a6ee58e87df5f9a3e6da4787e15afd2b83ba417 | [
"MIT"
] | null | null | null | priv/repo/migrations/20220501120539_create_oban_peers.exs | b310-digital/qrstorage | 1a6ee58e87df5f9a3e6da4787e15afd2b83ba417 | [
"MIT"
] | null | null | null | priv/repo/migrations/20220501120539_create_oban_peers.exs | b310-digital/qrstorage | 1a6ee58e87df5f9a3e6da4787e15afd2b83ba417 | [
"MIT"
] | null | null | null | defmodule Qrstorage.Repo.Migrations.CreateObanPeers do
use Ecto.Migration
def up, do: Oban.Migrations.up(version: 11)
def down, do: Oban.Migrations.down(version: 11)
end
| 22.25 | 54 | 0.764045 |
ac146a5e5e3877f740d9e2110380805a679c0bb7 | 6,454 | ex | Elixir | lib/issuing_invoice/issuing_invoice_log.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | 1 | 2022-03-15T18:58:21.000Z | 2022-03-15T18:58:21.000Z | lib/issuing_invoice/issuing_invoice_log.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | lib/issuing_invoice/issuing_invoice_log.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | defmodule StarkInfra.IssuingInvoice.Log do
alias __MODULE__, as: Log
alias StarkInfra.Utils.Rest
alias StarkInfra.Utils.Check
alias StarkInfra.User.Project
alias StarkInfra.User.Organization
alias StarkInfra.Error
@moduledoc """
Groups IssuingInvoice.Log related functions
"""
@doc """
Every ti... | 31.330097 | 196 | 0.638364 |
ac14b2d81b499c707f0ae9b7cc2e9be5d30826f0 | 31,911 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/backend_services.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/backend_services.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/backend_services.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 55.691099 | 1,213 | 0.707405 |
ac14c00f6b09ff86f7ca9af71e5cdeae203717cd | 1,038 | ex | Elixir | lib/nebulex/adapter/queryable.ex | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | lib/nebulex/adapter/queryable.ex | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | lib/nebulex/adapter/queryable.ex | filipeherculano/nebulex | 8c16848dc0bef28267c1f0e941ce05005765652b | [
"MIT"
] | null | null | null | defmodule Nebulex.Adapter.Queryable do
@moduledoc """
Specifies the query API required from adapters.
"""
@type cache :: Nebulex.Cache.t()
@type opts :: Nebulex.Cache.opts()
@doc """
Fetches all entries from cache matching the given `query`.
If the `query` is `nil`, it fetches all entries from cache;... | 29.657143 | 78 | 0.699422 |
ac14c31365e1c65b9040304a1c2bf664ed79c031 | 3,294 | ex | Elixir | clients/books/lib/google_api/books/v1/model/notification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/notification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/notification.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.804348 | 103 | 0.631148 |
ac14c9a3037c9833ef7a4c0aca411118c4114006 | 74 | exs | Elixir | test/views/layout_view_test.exs | gimc/joshua | bc77ed12b45f49879222231849e88e96198920d7 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | gimc/joshua | bc77ed12b45f49879222231849e88e96198920d7 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | gimc/joshua | bc77ed12b45f49879222231849e88e96198920d7 | [
"MIT"
] | null | null | null | defmodule Joshua.LayoutViewTest do
use Joshua.ConnCase, async: true
end
| 18.5 | 34 | 0.810811 |
ac14cd60f2c51042fd7d01d01ca1dabadbe3ef82 | 567 | exs | Elixir | apps/biz/test/user_test.exs | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | apps/biz/test/user_test.exs | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | apps/biz/test/user_test.exs | aforward/wuw | 8f41157aeb9fce738a402e757bf78a322a890b7a | [
"MIT"
] | null | null | null | defmodule Biz.UserTest do
use ExUnit.Case, async: true
alias Biz.{User,Repo}
doctest Biz.User
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, %{})
assert changeset.valid?
end
test "create_guest" do
... | 19.551724 | 70 | 0.675485 |
ac14e6398edf24e3d2834d0c847c0ac19328f486 | 111 | exs | Elixir | .formatter.exs | rebpdx/eeyeore | 944ddbfe8fafd67137658948c03492baa340d4de | [
"MIT"
] | 2 | 2021-11-17T17:16:17.000Z | 2021-12-08T04:39:42.000Z | .formatter.exs | rebpdx/eeyeore | 944ddbfe8fafd67137658948c03492baa340d4de | [
"MIT"
] | null | null | null | .formatter.exs | rebpdx/eeyeore | 944ddbfe8fafd67137658948c03492baa340d4de | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{lib,test}/**/*.{ex,exs}", "config/*.{ex,exs}"]
]
| 22.2 | 83 | 0.531532 |
ac154272e69ea8ed6bf9f5674afd054e8a802f59 | 3,600 | exs | Elixir | test/acceptance/html/links_images/titles_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html/links_images/titles_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html/links_images/titles_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Acceptance.Html.LinksImages.TitlesTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_html: 1]
describe "Links with titles" do
test "two titled links" do
mark_tmp = "[link](/uri \"title\")"
markdown = "#{ mark_tmp } #{ mark_tmp }\n"
html_tmp = "<a href=\"/uri\"... | 32.432432 | 121 | 0.525556 |
ac154d1216c22e8b5d5ee540e61197edb381a8f8 | 355 | ex | Elixir | test/support/pages/login.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/support/pages/login.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/support/pages/login.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.Test.Pages.Login do
alias EpicenterWeb.Test.Pages
alias Plug.Conn
def assert_here(view_or_conn_or_html),
do: view_or_conn_or_html |> Pages.assert_on_page("login")
def log_in(%Conn{} = conn, email, password),
do: Pages.submit_form(conn, :post, "login-form", "user", %{"email" => e... | 32.272727 | 105 | 0.715493 |
ac1573ef633390d19d9f3d7b4ce35293752d370e | 9 | ex | Elixir | testData/org/elixir_lang/parser_definition/atom_dot_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/atom_dot_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/atom_dot_operation_parsing_test_case/DecimalFloat.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | :atom.2.3 | 9 | 9 | 0.666667 |
ac159f2f5acbeff8e90f72b26c72682f85d02bbb | 1,858 | ex | Elixir | lib/surface_bulma/icon/font_awesome.ex | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | null | null | null | lib/surface_bulma/icon/font_awesome.ex | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | null | null | null | lib/surface_bulma/icon/font_awesome.ex | aarongraham/surface_bulma | 0b8ab633465681b8c3b58c767034cb557e09c8af | [
"MIT"
] | null | null | null | defmodule SurfaceBulma.Icon.FontAwesome do
@moduledoc """
A component that displays an icon compatible with the FontAwesome icons
"""
alias SurfaceFontAwesome.Icon
use SurfaceFontAwesome, :icon
@doc "Specifies the size of the span that wraps the icon."
prop container_size, :string, values: ["small", "me... | 21.356322 | 73 | 0.68676 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.