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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c85b279047bd85a6f957386db64f896eebb4837 | 689 | ex | Elixir | out/manticoresearch-elixir/lib/manticoresearch/model/percolate_request.ex | manticoresoftware/openapi | 79bccede913291724c83ebcad5590f1f13ff7726 | [
"MIT"
] | null | null | null | out/manticoresearch-elixir/lib/manticoresearch/model/percolate_request.ex | manticoresoftware/openapi | 79bccede913291724c83ebcad5590f1f13ff7726 | [
"MIT"
] | 3 | 2021-12-21T08:18:48.000Z | 2022-03-24T10:50:37.000Z | out/manticoresearch-elixir/lib/manticoresearch/model/percolate_request.ex | manticoresoftware/openapi | 79bccede913291724c83ebcad5590f1f13ff7726 | [
"MIT"
] | 5 | 2021-12-11T06:10:14.000Z | 2022-03-18T11:05:24.000Z | # Manticore Search Client
# Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com)
#
# All rights reserved
# Do not edit the class manually.
defmodule Manticoresearch.Model.PercolateRequest do
@moduledoc """
Object with documents to percolate
"""
@derive [Poison.Encoder]
defstruct [
... | 22.225806 | 91 | 0.734398 |
1c85d1cb97296dd5877387918d45ba385bafcf08 | 1,967 | ex | Elixir | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/model/site_summary_response.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/model/site_summary_response.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_experience_report/lib/google_api/ad_experience_report/v1/model/site_summary_response.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 31.725806 | 102 | 0.744789 |
1c85d2c47d4b8fa8c18c20c3a06946adf86297ca | 606 | ex | Elixir | lib/elasticsearch/application.ex | szajbus/elasticsearch-elixir | 4ce751b4b5379ccc168a8930bca9c3ad99ffbc55 | [
"MIT"
] | 215 | 2019-01-28T23:31:14.000Z | 2022-03-31T16:03:30.000Z | lib/elasticsearch/application.ex | szajbus/elasticsearch-elixir | 4ce751b4b5379ccc168a8930bca9c3ad99ffbc55 | [
"MIT"
] | 56 | 2018-01-02T17:52:54.000Z | 2019-01-19T16:05:47.000Z | lib/elasticsearch/application.ex | szajbus/elasticsearch-elixir | 4ce751b4b5379ccc168a8930bca9c3ad99ffbc55 | [
"MIT"
] | 39 | 2019-03-12T20:35:03.000Z | 2022-03-11T16:49:45.000Z | defmodule Elasticsearch.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: Elasticsearch.Wo... | 28.857143 | 72 | 0.721122 |
1c85d65f751987b85779f9f04355ecce199bd705 | 1,416 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1/model/cert_chain.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/cert_chain.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/cert_chain.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... | 30.12766 | 133 | 0.730226 |
1c861894d5b34615a0ff881271efb6b231ea69fa | 1,986 | exs | Elixir | test/cleanser_test.exs | ivymarkwell/cleanser | 06e7caffab282c5c63cf44c347b88258ebe7fef7 | [
"MIT"
] | 7 | 2018-04-21T02:25:05.000Z | 2022-02-23T19:42:06.000Z | test/cleanser_test.exs | ivymarkwell/cleanser | 06e7caffab282c5c63cf44c347b88258ebe7fef7 | [
"MIT"
] | 5 | 2018-04-28T23:50:49.000Z | 2018-10-29T22:37:48.000Z | test/cleanser_test.exs | ivymarkwell/cleanser | 06e7caffab282c5c63cf44c347b88258ebe7fef7 | [
"MIT"
] | 2 | 2018-04-28T23:48:54.000Z | 2019-06-25T07:50:04.000Z | defmodule CleanserTest do
use ExUnit.Case
doctest Cleanser
test "test email validation with default invalid domains" do
assert Cleanser.validate_email("person@example.com") == :ok
refute Cleanser.validate_email("person@spambox.me") == {:error, "person@spambox.me is an invalid email"}
end
test "test ... | 56.742857 | 174 | 0.731621 |
1c86192d13197be9e0999f33d9f3b813e3df5090 | 2,214 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/list_notification_channel_descriptors_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/list_notification_channel_descriptors_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/list_notification_channel_descriptors_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... | 36.9 | 279 | 0.751581 |
1c86248de61909a81946afb22f9e2ea28ed67058 | 12,615 | exs | Elixir | test/groupher_server/cms/article_community/works_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/article_community/works_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/article_community/works_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.ArticleCommunity.Works do
use GroupherServer.TestTools
alias Helper.ORM
alias GroupherServer.CMS
alias CMS.Model.Works
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
{:ok, works} = db_insert(:works)
{:ok, community} = db_insert(:comm... | 41.771523 | 98 | 0.687119 |
1c864274d05e1ec5c532e6a34c4c10289ee73202 | 1,529 | ex | Elixir | lib/my_app_web.ex | normanpatrick/elixir-python-task-api | 84a12eff26ddf98a29526630e4ce9fa1076545cb | [
"MIT"
] | null | null | null | lib/my_app_web.ex | normanpatrick/elixir-python-task-api | 84a12eff26ddf98a29526630e4ce9fa1076545cb | [
"MIT"
] | null | null | null | lib/my_app_web.ex | normanpatrick/elixir-python-task-api | 84a12eff26ddf98a29526630e4ce9fa1076545cb | [
"MIT"
] | null | null | null | defmodule MyAppWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use MyAppWeb, :controller
use MyAppWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 22.820896 | 83 | 0.687377 |
1c86608422bb5212d7d43047f5cd2509e5c13fd0 | 2,740 | exs | Elixir | mix.exs | fremantle-industries/rube | ceb0c6d09e8b9c029a71115710265d8b6b31cc49 | [
"MIT"
] | 22 | 2021-06-23T06:25:41.000Z | 2022-02-16T19:08:33.000Z | mix.exs | fremantle-industries/rube | ceb0c6d09e8b9c029a71115710265d8b6b31cc49 | [
"MIT"
] | 16 | 2021-06-21T17:02:13.000Z | 2022-03-21T15:04:14.000Z | mix.exs | fremantle-industries/rube | ceb0c6d09e8b9c029a71115710265d8b6b31cc49 | [
"MIT"
] | 2 | 2021-06-23T13:40:52.000Z | 2021-09-17T07:25:34.000Z | defmodule Rube.MixProject do
use Mix.Project
def project do
[
app: :rube,
version: "0.0.4",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
de... | 29.782609 | 91 | 0.529927 |
1c868763810b1b70cd2677969b6d10e2e257cb76 | 90 | ex | Elixir | lib/banchan/mailer.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan/mailer.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan/mailer.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule Banchan.Mailer do
@moduledoc false
use Bamboo.Mailer, otp_app: :banchan
end
| 18 | 38 | 0.777778 |
1c868ff3e375823ec98f14585b05a760d64e0d34 | 10,007 | ex | Elixir | lib/vaporator/cloudfs/cloudfs.ex | dogwynn/vaporator | 4aa48d3a0862af0b86849460401919ac8e3248d7 | [
"MIT"
] | null | null | null | lib/vaporator/cloudfs/cloudfs.ex | dogwynn/vaporator | 4aa48d3a0862af0b86849460401919ac8e3248d7 | [
"MIT"
] | 103 | 2019-01-13T20:39:00.000Z | 2021-07-29T05:30:36.000Z | lib/vaporator/cloudfs/cloudfs.ex | dogwynn/vaporator | 4aa48d3a0862af0b86849460401919ac8e3248d7 | [
"MIT"
] | null | null | null | defprotocol Vaporator.CloudFs do
@moduledoc """
Protocol for the most basic set of Cloud file-system operations
Impls must implement the following functions:
- list_folder
- get_metadata
- file_download
- file_upload
- ...
"""
@doc """
Need to be able to get the file's hash based on the destin... | 30.602446 | 76 | 0.658039 |
1c869e00bc95f88f62e82083d47041639e8a94e7 | 565 | ex | Elixir | lib/bankster/bic.ex | socialpaymentsbv/bankster | 8ca4797f0d83968636fe4f01a8383a1b52f645b0 | [
"MIT"
] | 29 | 2016-02-21T20:29:02.000Z | 2022-03-28T15:54:06.000Z | lib/bankster/bic.ex | socialpaymentsbv/bankster | 8ca4797f0d83968636fe4f01a8383a1b52f645b0 | [
"MIT"
] | 6 | 2017-04-06T07:18:41.000Z | 2019-07-23T14:49:16.000Z | lib/bankster/bic.ex | railsmechanic/bankster | 8c81ad29aac2ff2ac2cfac0c2a07f64bb2b030d6 | [
"MIT"
] | 9 | 2017-04-05T15:37:50.000Z | 2022-02-08T07:04:58.000Z | defmodule Bankster.Bic do
@moduledoc """
Provides some SWIFT BIC related functions.
"""
@bic_validation_regex ~r/^([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$/
@doc """
Validates a given string whether it's a valid SWIFT BIC
## Example
iex> Bankster.Bic.valid?("INVALIDBIC")
f... | 25.681818 | 89 | 0.623009 |
1c86abec15b849586b553365c90bdcb13a7a2b72 | 2,727 | exs | Elixir | test/exeration_test.exs | nerdslabs/exeration | 99f297aadeb10b062dfb9aa614526d903a7474af | [
"Apache-2.0"
] | null | null | null | test/exeration_test.exs | nerdslabs/exeration | 99f297aadeb10b062dfb9aa614526d903a7474af | [
"Apache-2.0"
] | null | null | null | test/exeration_test.exs | nerdslabs/exeration | 99f297aadeb10b062dfb9aa614526d903a7474af | [
"Apache-2.0"
] | null | null | null | defmodule ExerationTest do
use ExUnit.Case
doctest Exeration
defmodule Example do
use Exeration.Operation, observers: [ExerationTest.Observer]
defmodule Struct do
defstruct [:name, :is_folder]
end
@argument name: :user, type: :string
@argument name: :file, type: :string, required: tru... | 25.018349 | 91 | 0.636964 |
1c86b3e63a05679c2eb15670bded604bfada6cfa | 710 | ex | Elixir | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/gettext.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/gettext.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_03/demo/a_demo_umbrella/apps/a_demo_web/lib/a_demo_web/gettext.ex | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule ADemoWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ADemoWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.4 | 72 | 0.677465 |
1c86c350ca44f88f658a16925f683bdf92d8fc49 | 159 | ex | Elixir | lib/xain/example.ex | carakan/xain | 1d81400ea44449d498aeeb0e46c9af6f30553795 | [
"MIT"
] | null | null | null | lib/xain/example.ex | carakan/xain | 1d81400ea44449d498aeeb0e46c9af6f30553795 | [
"MIT"
] | null | null | null | lib/xain/example.ex | carakan/xain | 1d81400ea44449d498aeeb0e46c9af6f30553795 | [
"MIT"
] | null | null | null | defmodule Xain.Example do
use Xain
def test do
markup do
div do
span do
end
end
div do
end
end
end
end
| 9.9375 | 25 | 0.503145 |
1c86d0f086c92d75a36d730220a879e4c1b98fd2 | 171 | exs | Elixir | priv/repo/migrations/20210712024244_add_user_avatar.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | priv/repo/migrations/20210712024244_add_user_avatar.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | priv/repo/migrations/20210712024244_add_user_avatar.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.Repo.Migrations.AddUserAvatar do
use Ecto.Migration
def change do
alter table(:watchman_users) do
add :profile, :string
end
end
end
| 17.1 | 50 | 0.719298 |
1c86e4cabc94f39e405571d097f3f7d717d1be6e | 242 | exs | Elixir | year_2020/test/day_10_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/test/day_10_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | year_2020/test/day_10_test.exs | bschmeck/advent_of_code | cbec98019c6c00444e0f4c7e15e01b1ed9ae6145 | [
"MIT"
] | null | null | null | defmodule Day10Test do
use ExUnit.Case
test "it computes the answer" do
assert Day10.part_one(InputTestFile) == 22 * 10
end
test "it computes distinct arrangements" do
assert Day10.part_two(InputTestFile) == 19208
end
end
| 20.166667 | 51 | 0.727273 |
1c86f404a479d795c4a17acaacb9282135b19224 | 242 | ex | Elixir | lib/sakavault_web/views/auth_view.ex | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | lib/sakavault_web/views/auth_view.ex | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | 3 | 2020-09-20T22:59:35.000Z | 2020-09-20T23:00:47.000Z | lib/sakavault_web/views/auth_view.ex | SEGURANCA-DA-INFORMACAO-LGPD/sakavault_api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | defmodule SakaVaultWeb.AuthView do
use SakaVaultWeb, :view
alias SakaVaultWeb.AccountView
def render("auth.json", %{auth: auth}) do
user = AccountView.render("account.json", %{user: auth.user})
%{auth | user: user}
end
end
| 20.166667 | 65 | 0.690083 |
1c86f49b7a1d72204482e5dbfd6bdd73921d4c14 | 4,931 | ex | Elixir | lib/ja_serializer/relationship.ex | gamesrol/ja_serializer | c48d8fb0fb742bd96c30acd40e24f7395f25af2c | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/relationship.ex | gamesrol/ja_serializer | c48d8fb0fb742bd96c30acd40e24f7395f25af2c | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/relationship.ex | gamesrol/ja_serializer | c48d8fb0fb742bd96c30acd40e24f7395f25af2c | [
"Apache-2.0"
] | null | null | null | defmodule JaSerializer.AssociationNotLoadedError do
defexception [:message]
def exception(opts) do
msg = """
The #{opts[:rel]} relationship returned %Ecto.Association.NotLoaded{}.
Please pre-fetch the relationship before serialization or override the
#{opts[:name]}/2 function in your serializer.
... | 31.012579 | 138 | 0.596431 |
1c870eea7be5d2fb9f9e9eda2f1abb6edd9f9b2b | 1,543 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/pretargeting_config_dimensions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/pretargeting_config_dimensions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/pretargeting_config_dimensions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.86 | 96 | 0.728451 |
1c87209ab5d3a80d4daa377dfb602e8d357c7b78 | 2,256 | exs | Elixir | examples/apps/ecto_example/test/ecto_example_test.exs | marocchino/elixir_agent | 3c63715b130cf5997868c3a59097da256bf65102 | [
"Apache-2.0"
] | null | null | null | examples/apps/ecto_example/test/ecto_example_test.exs | marocchino/elixir_agent | 3c63715b130cf5997868c3a59097da256bf65102 | [
"Apache-2.0"
] | null | null | null | examples/apps/ecto_example/test/ecto_example_test.exs | marocchino/elixir_agent | 3c63715b130cf5997868c3a59097da256bf65102 | [
"Apache-2.0"
] | null | null | null | defmodule EctoExampleTest do
use ExUnit.Case
alias NewRelic.Harvest.Collector
setup_all context, do: TestSupport.simulate_agent_enabled(context)
test "Datastore metrics generated" do
TestSupport.restart_harvest_cycle(Collector.Metric.HarvestCycle)
{:ok, %{body: body}} = request()
assert body =~ ... | 24.521739 | 94 | 0.562057 |
1c87262666fb0c6cdf9bfa7b962d288bf240f815 | 138 | ex | Elixir | lib/external_config/interface.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-01-24T12:39:05.000Z | 2022-01-24T12:39:05.000Z | lib/external_config/interface.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 40 | 2021-05-05T10:14:25.000Z | 2022-03-31T18:34:15.000Z | lib/external_config/interface.ex | mbta/realtime_signs | 3fd8cbc26ce2b0820e608e60fe12135dab5def69 | [
"MIT"
] | 1 | 2022-03-20T21:08:12.000Z | 2022-03-20T21:08:12.000Z | defmodule ExternalConfig.Interface do
@callback get(Engine.Config.version_id()) :: {Engine.Config.version_id(), map()} | :unchanged
end
| 34.5 | 95 | 0.753623 |
1c8740d9b3161ef1a40991f1b116de8263283aa0 | 966 | ex | Elixir | elixir_advent/lib/day5.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | elixir_advent/lib/day5.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | elixir_advent/lib/day5.ex | bwbeach/advent-of-code-2020 | 572810c3adae5815543efde17a4bca9596d05a5b | [
"CC0-1.0"
] | null | null | null | defmodule Day5 do
def run(lines) do
with [p2] = part2(lines) do
"part1: #{part1(lines)} part2: #{p2}"
end
end
def part1(lines) do
lines
|> Enum.map(&parse_seat/1)
|> Enum.max()
end
def part2(lines) do
with seats = seat_set(lines) do
for s <- seats,
MapSet.memb... | 17.888889 | 51 | 0.549689 |
1c8761305b12e8fe411a65ece0e735117a7f5e1f | 3,836 | ex | Elixir | lib/nerves_network.ex | wasnotrice/nerves_network | e43da8c147c77ab6552015ee956579a3de6630ee | [
"Apache-2.0"
] | null | null | null | lib/nerves_network.ex | wasnotrice/nerves_network | e43da8c147c77ab6552015ee956579a3de6630ee | [
"Apache-2.0"
] | null | null | null | lib/nerves_network.ex | wasnotrice/nerves_network | e43da8c147c77ab6552015ee956579a3de6630ee | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Network do
require Logger
alias Nerves.Network.Types
@moduledoc """
The Nerves.Network application handles the low level details of connecting
to networks. To quickly get started, create a new Nerves project and add
the following line someplace early on in your program:
Nerves.Netwo... | 37.242718 | 112 | 0.67805 |
1c8796461c5539a9e802f0ba16fe22748c9194de | 205 | exs | Elixir | elixir/elixir-sips/samples/digraph_maps/test/map_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/digraph_maps/test/map_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/digraph_maps/test/map_test.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule DigraphMaps.MapsTest do
use ExUnit.Case
alias DigraphMaps.Map
test "creating a map" do
map = Map.new
assert %Map{} = map
assert {:digraph, _, _, _, _} = map.digraph
end
end
| 17.083333 | 47 | 0.653659 |
1c87ac2f10a991811f816e985b1dfe9ce5e24516 | 1,563 | exs | Elixir | mix.exs | mfeckie/html5ever_elixir | f6743865c353aaebaec1959ae4025596f8344587 | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | mfeckie/html5ever_elixir | f6743865c353aaebaec1959ae4025596f8344587 | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | mfeckie/html5ever_elixir | f6743865c353aaebaec1959ae4025596f8344587 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Html5ever.Mixfile do
use Mix.Project
def project do
[app: :html5ever,
version: "0.7.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates(),
deps: deps(),
... | 22.985294 | 79 | 0.582853 |
1c87e097e14978b38160aead91719f5d87a73f8f | 781 | ex | Elixir | lib/ex_minimatch/helper.ex | hez/ex_minimatch | f2a1505734faff6ebe414e31046dae109b5bb015 | [
"MIT"
] | null | null | null | lib/ex_minimatch/helper.ex | hez/ex_minimatch | f2a1505734faff6ebe414e31046dae109b5bb015 | [
"MIT"
] | null | null | null | lib/ex_minimatch/helper.ex | hez/ex_minimatch | f2a1505734faff6ebe414e31046dae109b5bb015 | [
"MIT"
] | null | null | null | defmodule ExMinimatch.Helper do
def debug(obj, options) do
if options[:log] in [:debug], do: IO.inspect(obj)
end
def info(obj, options) do
if options[:log] in [:info, :debug], do: IO.inspect(obj)
end
# preserves the state
def minimatch_tap(state, sideback) do
sideback.(state)
state
end
... | 23.666667 | 65 | 0.635083 |
1c87fe97166e5911fa398b0d77952bb3ad160729 | 138 | ex | Elixir | lib/ucx_ucc_web/controllers/page_controller.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | lib/ucx_ucc_web/controllers/page_controller.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | lib/ucx_ucc_web/controllers/page_controller.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UcxUccWeb.PageController do
use UcxUccWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 17.25 | 37 | 0.73913 |
1c88013246e683d0a4d8e41258707aaa349f8d04 | 17,745 | ex | Elixir | lib/codes/codes_m14.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m14.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_m14.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_M14 do
alias IcdCode.ICDCode
def _M1460 do
%ICDCode{full_code: "M1460",
category_code: "M14",
short_code: "60",
full_name: "Charcot's joint, unspecified site",
short_name: "Charcot's joint, unspecified site",
category_name: "Charco... | 40.421412 | 117 | 0.648633 |
1c888613486fb1658093f7e2e1addc5c29a76bd8 | 1,793 | ex | Elixir | clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.156863 | 82 | 0.75237 |
1c8887a33be64b16333000d05aa976bb835e4e30 | 140 | exs | Elixir | templates/elchemy_test.exs | wende/elchemy-library | 442ecdf740678df7ef17ae57ac14eecbe6221fed | [
"MIT"
] | 969 | 2017-07-07T18:44:36.000Z | 2022-03-27T07:52:39.000Z | templates/elchemy_test.exs | wende/elmchemist | 21650416e634bb3c75300fb2bede74c4768d979a | [
"MIT"
] | 158 | 2017-07-07T18:14:01.000Z | 2020-03-17T13:16:00.000Z | templates/elchemy_test.exs | wende/elmchemist | 21650416e634bb3c75300fb2bede74c4768d979a | [
"MIT"
] | 23 | 2017-10-04T15:47:13.000Z | 2021-10-02T10:05:52.000Z | defmodule ElchemyTest do
use ExUnit.Case
use Elchemy
doctest Hello
test "Hello" do
assert Hello.hello() == "world!"
end
end
| 12.727273 | 36 | 0.678571 |
1c888ecec10bbe252d99204df2cd76eeb60b0414 | 55 | ex | Elixir | lib/vega_web/views/auth_view.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 4 | 2020-03-22T22:12:29.000Z | 2020-07-01T22:32:01.000Z | lib/vega_web/views/auth_view.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2021-03-10T11:53:41.000Z | 2021-10-17T11:18:54.000Z | lib/vega_web/views/auth_view.ex | Fudoshiki/vega | 0577024afc734933048645976705784512fbc1f4 | [
"MIT"
] | 3 | 2020-03-30T19:03:23.000Z | 2022-01-17T20:21:42.000Z | defmodule VegaWeb.AuthView do
use VegaWeb, :view
end
| 13.75 | 29 | 0.781818 |
1c88c39cb3acde53815a34dba7079388b4c88523 | 1,688 | ex | Elixir | clients/content/lib/google_api/content/v2/model/product_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_destination.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/product_destination.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... | 30.142857 | 128 | 0.705569 |
1c88e3e2440e816c7656637ed2e47bc2d67bb87a | 1,946 | exs | Elixir | clients/web_security_scanner/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/web_security_scanner/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/web_security_scanner/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.044776 | 117 | 0.669579 |
1c88ee561c4d298b94901fd1714700fd8593c009 | 2,012 | ex | Elixir | lib/edgedb/result.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/result.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/result.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Result do
@moduledoc """
A structure that contains information related to the query result.
It's mostly used in driver internally, but user can retrive it along with `EdgeDB.Query` struct
from succeed query execution using `:raw` option for `EdgeDB.query*/4` functions. See `t:EdgeDB.query_op... | 28.338028 | 116 | 0.640159 |
1c88f7a295aeb55fb391496193833e867f202d65 | 7,412 | ex | Elixir | lib/sanbase/clickhouse/github/sql_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/clickhouse/github/sql_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/clickhouse/github/sql_query.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Clickhouse.Github.SqlQuery do
@non_dev_events [
"IssueCommentEvent",
"IssuesEvent",
"ForkEvent",
"CommitCommentEvent",
"FollowEvent",
"ForkEvent",
"DownloadEvent",
"WatchEvent",
"ProjectCardEvent",
"ProjectColumnEvent",
"ProjectEvent"
]
@table "github... | 25.296928 | 105 | 0.587426 |
1c89034ede495ee74c15ffbc70c2e3b8920bebc4 | 1,150 | exs | Elixir | clients/datastore/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/datastore/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/datastore/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Datastore.V1.Mixfile do
use Mix.Project
@version "0.3.0"
def project do
[app: :google_api_datastore,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
... | 23.958333 | 115 | 0.608696 |
1c89331c439955e7079ad38a15c40eb01998c73d | 1,094 | ex | Elixir | lib/invenger_web/channels/user_socket.ex | manoel-lopes/invenger | 19f76964c95cd4e038c78cf743fe28069b73b9b2 | [
"MIT"
] | null | null | null | lib/invenger_web/channels/user_socket.ex | manoel-lopes/invenger | 19f76964c95cd4e038c78cf743fe28069b73b9b2 | [
"MIT"
] | null | null | null | lib/invenger_web/channels/user_socket.ex | manoel-lopes/invenger | 19f76964c95cd4e038c78cf743fe28069b73b9b2 | [
"MIT"
] | null | null | null | defmodule InvengerWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", InvengerWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all chan... | 30.388889 | 83 | 0.695612 |
1c8964f5f8bc955315ed8f4f6206ab0cd835846b | 1,214 | ex | Elixir | lib/scenario/enum_check_empty.ex | unnawut/ex_benchmark | d6f946bd60da57722434cecc53eda7701b3c7423 | [
"MIT"
] | null | null | null | lib/scenario/enum_check_empty.ex | unnawut/ex_benchmark | d6f946bd60da57722434cecc53eda7701b3c7423 | [
"MIT"
] | null | null | null | lib/scenario/enum_check_empty.ex | unnawut/ex_benchmark | d6f946bd60da57722434cecc53eda7701b3c7423 | [
"MIT"
] | null | null | null | defmodule ExBenchmark.Scenario.EnumCheckEmpty do
@moduledoc """
The module containing scenarios to benchmark checking enum for emptiness.
"""
use ExBenchmark.Scenario, time: 10, print: [fast_warning: false]
@list_empty []
@list_large Enum.to_list(1..10_000)
@map_empty %{}
@map_large Map.new(for i <- 1... | 36.787879 | 75 | 0.755354 |
1c89677237758df0700779b9e6ecb3d814e82830 | 279,734 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/api/users.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/gmail/lib/google_api/gmail/v1/api/users.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/api/users.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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.313576 | 798 | 0.606133 |
1c89a1043976bb59f541c7c9f74f3d0e3fd125e8 | 2,298 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_numerical_stats_result.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_numerical_stats_result.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_numerical_stats_result.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 ... | 42.555556 | 181 | 0.751088 |
1c89a3654b06245280a8d516785e33abcca78fc4 | 5,112 | exs | Elixir | mix.exs | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | mix.exs | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | mix.exs | kaikuchn/eventstore | cfe77cb22860526ef3591ba43649ceffc3175259 | [
"MIT"
] | null | null | null | defmodule EventStore.Mixfile do
use Mix.Project
@version "1.1.0"
def project do
[
app: :eventstore,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
package: package(),
docs: docs(),
... | 26.625 | 99 | 0.553208 |
1c89c219028c6f235712cd309dd0338e056c4356 | 2,314 | exs | Elixir | test/ecto/query/builder/distinct_test.exs | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/distinct_test.exs | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/distinct_test.exs | Anber/ecto | 2b903c8c6acb924f87746fe4d40cb4b42a7f0491 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.DistinctTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder.Distinct
doctest Ecto.Query.Builder.Distinct
import Ecto.Query
describe "escape" do
test "handles expressions and params" do
assert {true, {%{}, :acc}} ==
escape(true, {%{}, :acc}, [x:... | 33.536232 | 100 | 0.557476 |
1c89cf468e570c03320b83cc0e5bb0d15bbecc27 | 374 | ex | Elixir | lib/oli/interop/custom_activities/record_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/interop/custom_activities/record_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/interop/custom_activities/record_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Interop.CustomActivities.RecordContext do
import XmlBuilder
def setup(
%{
context: context
}
) do
element(
:record_context,
%{
activity_guid: context.activity_attempt.attempt_guid,
attempt: context.activity_attempt.attempt_number,
... | 18.7 | 61 | 0.617647 |
1c89f5be472b521cc823ce1ef587ebd4978a3df9 | 1,123 | exs | Elixir | elixir-class/basic/5-control-structure/testif/config/config.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/basic/5-control-structure/testif/config/config.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | elixir-class/basic/5-control-structure/testif/config/config.exs | ikhlas-firlana/learning-class | 58c2db1e8121eaec47190105dffa47d6db84bb55 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
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.225806 | 73 | 0.749777 |
1c8a5469aa4210dce0dbe7bb562fab7b0642be24 | 1,120 | exs | Elixir | test/absinthe/phase/document/validation/variables_are_input_types_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2019-10-10T02:57:52.000Z | 2019-10-10T02:57:52.000Z | test/absinthe/phase/document/validation/variables_are_input_types_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | test/absinthe/phase/document/validation/variables_are_input_types_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Absinthe.Phase.Document.Validation.VariablesAreInputTypesTest do
@phase Absinthe.Phase.Document.Validation.VariablesAreInputTypes
use Absinthe.ValidationPhaseCase,
phase: @phase,
async: true
alias Absinthe.Blueprint
defp non_input_type(name, type_rep, line) do
bad_value(
Blueprint... | 23.333333 | 74 | 0.550893 |
1c8a5c19301126118bd42a91affbdc30bb14985a | 1,214 | exs | Elixir | mix.exs | jnylen/pkg_deb | 61186a4231e546fa433a0ecd68c3586abaffce4d | [
"MIT"
] | null | null | null | mix.exs | jnylen/pkg_deb | 61186a4231e546fa433a0ecd68c3586abaffce4d | [
"MIT"
] | 12 | 2020-07-18T10:38:53.000Z | 2022-03-24T04:04:12.000Z | mix.exs | jnylen/pkg_deb | 61186a4231e546fa433a0ecd68c3586abaffce4d | [
"MIT"
] | 1 | 2020-11-28T21:08:54.000Z | 2020-11-28T21:08:54.000Z | defmodule PkgDeb.MixProject do
use Mix.Project
@name :pkg_deb
@version "0.4.0"
@description """
Elixir lib for creating Debian packages with Mix Release.
"""
@deps [
{:pkg_core, "~> 0.1"},
{:vex, "~> 0.8"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
@hex_package [
name: @nam... | 20.931034 | 66 | 0.552718 |
1c8a71fab739a1784baa8b35f1800bafc2df625a | 928 | ex | Elixir | lib/ex_changerate/fluctuation.ex | 81dr/ex_changerate | b5df0d1aeac755d2826d000b08e23077ca7a0c62 | [
"0BSD"
] | 2 | 2020-06-07T09:29:23.000Z | 2020-11-16T01:59:40.000Z | lib/ex_changerate/fluctuation.ex | 81dr/ex_changerate | b5df0d1aeac755d2826d000b08e23077ca7a0c62 | [
"0BSD"
] | null | null | null | lib/ex_changerate/fluctuation.ex | 81dr/ex_changerate | b5df0d1aeac755d2826d000b08e23077ca7a0c62 | [
"0BSD"
] | null | null | null | defmodule ExChangerate.Fluctuation do
@moduledoc """
Enables the use of Fluctuation Endpoint
*Note from documentation: Using the fluctuation endpoint you will be able to retrieve information about how currencies fluctuate on a day-to-day basis. To use this feature, simply append a start_date and end_date and cho... | 46.4 | 350 | 0.751078 |
1c8a91914194f78d7522a13d9d4ecfbcce7a09c6 | 2,295 | ex | Elixir | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/achievement_configuration_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/achievement_configuration_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/achievement_configuration_list_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... | 35.859375 | 192 | 0.740305 |
1c8aaebab9f6d75b76bf6d28939540356a3583f9 | 2,186 | exs | Elixir | config/prod.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | config/prod.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | config/prod.exs | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# MtpoWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don't... | 32.147059 | 67 | 0.720952 |
1c8aef40a16df8a60ec2eb2114db53c1b8cc270d | 5,263 | ex | Elixir | lib/erl2ex/source.ex | axelson/erl2ex | 382d87ab5fe4a3a3bdb03001226c9c514b889eb0 | [
"BSD-3-Clause"
] | 77 | 2015-12-28T10:54:32.000Z | 2021-11-17T16:14:41.000Z | lib/erl2ex/source.ex | axelson/erl2ex | 382d87ab5fe4a3a3bdb03001226c9c514b889eb0 | [
"BSD-3-Clause"
] | 5 | 2016-02-13T09:36:59.000Z | 2022-02-23T16:57:58.000Z | lib/erl2ex/source.ex | axelson/erl2ex | 382d87ab5fe4a3a3bdb03001226c9c514b889eb0 | [
"BSD-3-Clause"
] | 13 | 2016-06-04T06:49:19.000Z | 2021-10-14T03:00:54.000Z |
defmodule Erl2ex.Source do
@moduledoc """
Erl2ex.Source is a process that produces Erlang source, normally reading
files from the file system.
"""
@typedoc """
The ProcessID of a source process.
"""
@type t :: pid()
@doc """
Starts a source and returns its PID.
"""
@spec start_link(list)... | 23.185022 | 77 | 0.593578 |
1c8af4dd49ed97b16a65dfd78c5568fdc072c761 | 1,250 | ex | Elixir | lib/ex_clubhouse/model/milestone.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | lib/ex_clubhouse/model/milestone.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | lib/ex_clubhouse/model/milestone.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Model.Milestone do
@moduledoc """
Milestone response model
"""
alias ExClubhouse.Model
@type t :: %__MODULE__{
app_url: binary(),
categories: list(Model.Category.t()),
completed: boolean(),
completed_at: binary() | nil,
completed_at_ove... | 27.173913 | 48 | 0.5096 |
1c8b1587d6ea3bde5bbe87da0a1e00719ee52b4a | 1,654 | ex | Elixir | apps/snitch_api/lib/snitch_api_web/views/product_view.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/snitch_api/lib/snitch_api_web/views/product_view.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/snitch_api/lib/snitch_api_web/views/product_view.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule SnitchApiWeb.ProductView do
use SnitchApiWeb, :view
use JaSerializer.PhoenixView
alias Snitch.Data.Model.{Product, ProductReview}
alias Snitch.Core.Tools.MultiTenancy.Repo
location("/products/:slug")
attributes([
:name,
:description,
:available_on,
:deleted_at,
:discontinue_o... | 19.927711 | 91 | 0.674728 |
1c8b273c10878f24fa838be3e02fcf57ae5efe37 | 57 | ex | Elixir | web/views/page_view.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | web/views/page_view.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | web/views/page_view.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | defmodule FooApi.PageView do
use FooApi.Web, :view
end
| 14.25 | 28 | 0.77193 |
1c8b950e654a7e55fa62f1068e9aa32dbda4aa16 | 1,168 | exs | Elixir | test/lib/tilex/rate_limiter_test.exs | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | 1 | 2021-05-27T16:46:34.000Z | 2021-05-27T16:46:34.000Z | test/lib/tilex/rate_limiter_test.exs | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | null | null | null | test/lib/tilex/rate_limiter_test.exs | plicjo/tilex | f3d9cba7f2ca99c75622cd1a9992508614dd455f | [
"MIT"
] | null | null | null | defmodule Tilex.RateLimiterTest do
use ExUnit.Case, async: false
alias Tilex.RateLimiter
alias Tilex.DateTimeMock
setup do
RateLimiter.start_link()
:ok
end
test "it responds to valid calls with true" do
DateTimeMock.start_link([])
assert RateLimiter.check(ip: "abc.def.ghi.123")
end
t... | 22.037736 | 94 | 0.640411 |
1c8ba586acc949afafdaa5734fb1b94ef12aa516 | 3,428 | exs | Elixir | us_address/test/us_address_test.exs | reidmorrison/us_address_service | 988bcfbb57fc4cb8a51ffe850527fdbfe1ea4b92 | [
"Apache-2.0"
] | 2 | 2021-05-03T20:04:11.000Z | 2021-07-12T09:23:20.000Z | us_address/test/us_address_test.exs | reidmorrison/us_address_service | 988bcfbb57fc4cb8a51ffe850527fdbfe1ea4b92 | [
"Apache-2.0"
] | null | null | null | us_address/test/us_address_test.exs | reidmorrison/us_address_service | 988bcfbb57fc4cb8a51ffe850527fdbfe1ea4b92 | [
"Apache-2.0"
] | null | null | null | defmodule PostalAddressTest do
use ExUnit.Case
doctest USAddress
test "verify" do
address = %{"address" => "2811 Safe Harbor Drive", "city" => "Tampa", "state" => "FL", "zip" => "33618"}
verified = USAddress.verify(address)
assert verified[:address] == "2811 Safe Harbor Dr"
assert verified[:city... | 32.961538 | 115 | 0.626021 |
1c8bab1a991d1ac8a1201621b781e098252fcf9d | 408 | ex | Elixir | lib/markdown_server.ex | knewter/markdown_server | 0b852d23247589ad23557bf1a205e9d1b9af7dda | [
"Unlicense"
] | null | null | null | lib/markdown_server.ex | knewter/markdown_server | 0b852d23247589ad23557bf1a205e9d1b9af7dda | [
"Unlicense"
] | 1 | 2015-12-13T19:55:09.000Z | 2015-12-13T19:55:09.000Z | lib/markdown_server.ex | knewter/markdown_server | 0b852d23247589ad23557bf1a205e9d1b9af7dda | [
"Unlicense"
] | null | null | null | defmodule MarkdownServer do
use Application.Behaviour
# See http://elixir-lang.org/docs/stable/Application.Behaviour.html
# for more information on OTP Applications
def start(_type, _args) do
MarkdownServer.Supervisor.start_link
end
def base_dir do
System.get_env("MARKDOWN_SERVER_DIR") || default_... | 22.666667 | 69 | 0.757353 |
1c8bb5d296482757ae76cc1e9cc197c5dabf3a74 | 208 | exs | Elixir | test/nanocrawler_web/controllers/page_controller_test.exs | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | 1 | 2020-04-19T07:48:46.000Z | 2020-04-19T07:48:46.000Z | test/nanocrawler_web/controllers/page_controller_test.exs | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | 2 | 2021-03-09T20:27:19.000Z | 2021-05-10T17:32:50.000Z | test/nanocrawler_web/controllers/page_controller_test.exs | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | null | null | null | defmodule NanocrawlerWeb.PageControllerTest do
use NanocrawlerWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.111111 | 60 | 0.692308 |
1c8bc774a558ca1755ed33b22cf46d206e74a567 | 588 | ex | Elixir | lib/real_world_web/components/editor/editor_page.ex | razuf/elixir-phoenix-liveview-realworld | 182eb845b2b56f146468d9a095a8d5d72fc44f17 | [
"MIT"
] | 10 | 2020-09-21T23:24:53.000Z | 2022-03-08T02:12:32.000Z | lib/real_world_web/components/editor/editor_page.ex | razuf/elixir-phoenix-liveview-realworld | 182eb845b2b56f146468d9a095a8d5d72fc44f17 | [
"MIT"
] | null | null | null | lib/real_world_web/components/editor/editor_page.ex | razuf/elixir-phoenix-liveview-realworld | 182eb845b2b56f146468d9a095a8d5d72fc44f17 | [
"MIT"
] | 1 | 2021-06-26T19:46:09.000Z | 2021-06-26T19:46:09.000Z | defmodule RealWorldWeb.EditorPage do
use RealWorldWeb, :live_component
alias RealWorldWeb.FormErrorList
alias RealWorldWeb.EditorForm
@impl true
def render(assigns) do
~L"""
<div class="editor-page">
<div class="container page">
<div class="row">
<div class="col-md-10 offset-... | 22.615385 | 93 | 0.605442 |
1c8c004a416d0d50218230b5d652ca0dfd0130b4 | 774 | exs | Elixir | test/commands/user/list_handles_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/commands/user/list_handles_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/commands/user/list_handles_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Test.Commands.User.ListHandlesTest do
use Cog.CommandCase, command_module: Cog.Commands.User.ListHandles
import Cog.Support.ModelUtilities, only: [user: 1,
with_chat_handle_for: 2]
setup :with_users
test "listing chat handles works", %{users: users} d... | 26.689655 | 68 | 0.562016 |
1c8c1af7c6c36f8b08accf52f994f4af9c3dd383 | 3,086 | ex | Elixir | lib/koans/13_functions.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | 1 | 2020-02-19T12:30:13.000Z | 2020-02-19T12:30:13.000Z | lib/koans/13_functions.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | lib/koans/13_functions.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | defmodule Functions do
use Koans
@intro "Functions"
def greet(name) do
"Hello, #{name}!"
end
koan "Functions map arguments to outputs" do
assert greet("World") == "Hello, World!"
end
def multiply(a, b), do: a * b
koan "Single line functions are cool, but mind the comma and the colon!" do
... | 30.554455 | 104 | 0.645172 |
1c8c37141d91e960b6fbff9d1cabdb776775157d | 53,482 | ex | Elixir | lib/ex_admin/form.ex | spunkedy/ex_admin | a576bead2a030f3dfe7abec0ff610809eb0db06f | [
"MIT"
] | 1 | 2019-11-25T17:53:57.000Z | 2019-11-25T17:53:57.000Z | lib/ex_admin/form.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | null | null | null | lib/ex_admin/form.ex | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | null | null | null | defmodule ExAdmin.Form do
@moduledoc """
Override the default new and edit form pages for an ExAdmin resource.
By default, ExAdmin renders the form page without any additional
configuration. It renders each column in the model, except the id,
inserted_at, and updated_at columns in an attributes table.
To ... | 29.177305 | 107 | 0.590535 |
1c8c543832493275783abd83e5da2b68e2715b3f | 1,280 | ex | Elixir | lib/crudimentary/absinthe/plugs/cache.ex | CRUDimentary/crudimentary_absinthe | af903e9e87b4e0931d1f3a0a220f5114ae8de460 | [
"MIT"
] | null | null | null | lib/crudimentary/absinthe/plugs/cache.ex | CRUDimentary/crudimentary_absinthe | af903e9e87b4e0931d1f3a0a220f5114ae8de460 | [
"MIT"
] | 1 | 2019-01-21T18:00:00.000Z | 2019-01-21T18:00:00.000Z | lib/crudimentary/absinthe/plugs/cache.ex | CRUDimentary/crudimentary_absinthe | af903e9e87b4e0931d1f3a0a220f5114ae8de460 | [
"MIT"
] | null | null | null | defmodule CRUDimentary.Absinthe.Plugs.Cache do
@moduledoc """
Plug for issuing cache during response creation.
This plug creates temporary cache storage uppon incoming request, cache (GenServer) pid is stored in Absinthe Resolution Context.
Also it creates hook which destorys created and populated cache before ... | 23.703704 | 131 | 0.614844 |
1c8c629da2bdb03f1099c1d7847e70e37f4e3429 | 1,388 | ex | Elixir | home_page_local/test/support/data_case.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 8 | 2019-06-02T05:02:36.000Z | 2021-08-11T04:23:10.000Z | home_page_local/test/support/data_case.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 7 | 2019-05-15T08:32:51.000Z | 2020-06-10T07:46:43.000Z | home_page_local/test/support/data_case.ex | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 1 | 2019-06-02T05:02:47.000Z | 2019-06-02T05:02:47.000Z | defmodule HomePage.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 tes... | 25.703704 | 77 | 0.680836 |
1c8c62cd9344c6affac5ea51f286b38a95f74241 | 871 | ex | Elixir | lib/rocketpay_web/controllers/accounts_controller.ex | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 2 | 2021-03-09T22:58:09.000Z | 2021-03-28T12:22:11.000Z | lib/rocketpay_web/controllers/accounts_controller.ex | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 9 | 2021-02-28T20:29:58.000Z | 2021-03-26T01:28:01.000Z | lib/rocketpay_web/controllers/accounts_controller.ex | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 1 | 2021-03-28T11:56:37.000Z | 2021-03-28T11:56:37.000Z | defmodule RocketpayWeb.AccountsController do
use RocketpayWeb, :controller
alias Rocketpay.Account
alias Rocketpay.Account.Transaction.Response, as: TransactionResponse
action_fallback RocketpayWeb.FallbackController
def deposit(conn, params) do
with {:ok, %Account{} = account} <- Rocketpay.deposit(par... | 26.393939 | 87 | 0.676234 |
1c8c941b9044fff8da61b242bd35b159681ab400 | 969 | ex | Elixir | lib/demo/accounts/user.ex | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | lib/demo/accounts/user.ex | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | lib/demo/accounts/user.ex | jefk/phoenix_live_view | 5ef754b4246d3ba5aeeceb3875eda116bddfa834 | [
"MIT"
] | null | null | null | defmodule Demo.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :username, :string
field :email, :string
field :phone_number, :string
field :password, :string, virtual: true
field :password_confirmation, :string, virtual: true
timestamps()
end
@phone ~r... | 30.28125 | 83 | 0.642931 |
1c8c99c9418262001e118731ae6c68d287c8af4c | 933 | ex | Elixir | test/support/channel_case.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 12 | 2019-05-10T21:48:06.000Z | 2021-11-07T14:04:30.000Z | test/support/channel_case.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 2 | 2019-05-14T19:07:10.000Z | 2019-05-20T21:06:27.000Z | test/support/channel_case.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 3 | 2019-05-19T18:24:20.000Z | 2019-10-31T20:29:12.000Z | defmodule OkrAppWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts wit... | 24.552632 | 68 | 0.714898 |
1c8cc543b97baa6df3764ad859547edcb1818d18 | 901 | exs | Elixir | test/bitstring_test.exs | Cantido/int_set | 9418200e5c15326bee04e4a272a0ff0b5caca9b5 | [
"MIT"
] | 5 | 2019-11-11T17:43:40.000Z | 2021-10-20T05:59:31.000Z | test/bitstring_test.exs | Cantido/int_set | 9418200e5c15326bee04e4a272a0ff0b5caca9b5 | [
"MIT"
] | 6 | 2020-11-07T22:55:39.000Z | 2022-02-28T11:05:39.000Z | test/bitstring_test.exs | Cantido/int_set | 9418200e5c15326bee04e4a272a0ff0b5caca9b5 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule IntSetBitstringTest do
use ExUnit.Case, async: true
use ExUnitProperties
describe "IntSet.bitstring/1" do
property "returns an equal bitstring to that which created it" do
check all int <- positive_integer() do
... | 27.30303 | 75 | 0.657048 |
1c8ccb60f1c0ed1b64e3906f16d44a2343d21082 | 9,149 | ex | Elixir | lib/broadway_cloud_pub_sub/producer.ex | kianmeng/broadway_cloud_pub_sub | 0d59845c16864aa336e8399b12b33ace7a772cd5 | [
"Apache-2.0"
] | null | null | null | lib/broadway_cloud_pub_sub/producer.ex | kianmeng/broadway_cloud_pub_sub | 0d59845c16864aa336e8399b12b33ace7a772cd5 | [
"Apache-2.0"
] | null | null | null | lib/broadway_cloud_pub_sub/producer.ex | kianmeng/broadway_cloud_pub_sub | 0d59845c16864aa336e8399b12b33ace7a772cd5 | [
"Apache-2.0"
] | null | null | null | defmodule BroadwayCloudPubSub.Producer do
@moduledoc """
A GenStage producer that continuously receives messages from a Google Cloud Pub/Sub
topic and acknowledges them after being successfully processed.
By default this producer uses `BroadwayCloudPubSub.PullClient` to talk to Cloud
Pub/Sub, but you can pro... | 36.019685 | 102 | 0.704886 |
1c8cf329b1c10290c07a2e8f484e255ba994e207 | 954 | ex | Elixir | lib/glimesh_web/uploaders/stream_thumbnail.ex | mja00/glimesh.tv | 1f543bfdf68de269d0984041ed8394b78fb2158d | [
"MIT"
] | 1 | 2020-08-02T00:12:28.000Z | 2020-08-02T00:12:28.000Z | lib/glimesh_web/uploaders/stream_thumbnail.ex | mja00/glimesh.tv | 1f543bfdf68de269d0984041ed8394b78fb2158d | [
"MIT"
] | null | null | null | lib/glimesh_web/uploaders/stream_thumbnail.ex | mja00/glimesh.tv | 1f543bfdf68de269d0984041ed8394b78fb2158d | [
"MIT"
] | null | null | null | defmodule Glimesh.StreamThumbnail do
@moduledoc false
use Waffle.Definition
use Waffle.Ecto.Definition
@versions [:original]
def acl(:original, _), do: :public_read
# Whitelist file extensions:
def validate({file, _}) do
~w(.jpg .jpeg .png) |> Enum.member?(Path.extname(file.file_name))
end
# ... | 25.105263 | 128 | 0.702306 |
1c8d0c9fd17eb090c0f50a85554189e980ee996c | 1,319 | ex | Elixir | lib/game_of_life/board.ex | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | 57 | 2016-04-28T09:02:27.000Z | 2021-12-16T20:03:05.000Z | lib/game_of_life/board.ex | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | 1 | 2016-05-30T05:51:10.000Z | 2016-05-31T21:32:44.000Z | lib/game_of_life/board.ex | potto007/elixir-game_of_life | 28402f57f63e16c2c4c0d52b1130f52a2373e1bd | [
"MIT"
] | 4 | 2016-05-27T18:38:23.000Z | 2019-05-30T11:03:45.000Z | defmodule GameOfLife.Board do
def add_cells(alive_cells, new_cells) do
alive_cells ++ new_cells
|> Enum.uniq
end
def remove_cells(alive_cells, kill_cells) do
alive_cells -- kill_cells
end
@doc "Returns cells that should still live on the next generation"
def keep_alive_tick(alive_cells) do
... | 32.975 | 168 | 0.736164 |
1c8d17ba5625d3e8f4b735361a050dbd3dddd96e | 45,107 | ex | Elixir | lib/phoenix_live_view.ex | Ian-GL/phoenix_live_view | 52bf9a4a929a499aa7280f2d914cd36412f7ee6f | [
"MIT"
] | 1 | 2021-04-22T16:40:32.000Z | 2021-04-22T16:40:32.000Z | lib/phoenix_live_view.ex | msaraiva/phoenix_live_view | 5eae7ed93e29fa00b695b7e063f2426d63861f29 | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | msaraiva/phoenix_live_view | 5eae7ed93e29fa00b695b7e063f2426d63861f29 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc ~S'''
LiveView provides rich, real-time user experiences with
server-rendered HTML.
The LiveView programming model is declarative: instead of
saying "once event X happens, change Y on the page",
events in LiveView are regular messages which may cause
changes to it... | 36.494337 | 148 | 0.682023 |
1c8d2533849d2d4b8b6874fcf1cfbb976f7b9bc5 | 146 | ex | Elixir | code examples/example-15-12.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/example-15-12.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/example-15-12.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | iex(1)> VegetableStew.cook
%{{:carot, :piece} => 3, {:onion, :piece} => 2, {:tomato, :piece} => 2}
iex(2)> BeefStew.cook
How much beef? 250 grams
| 29.2 | 71 | 0.616438 |
1c8d2ebb7f67ed843b9d3bc5b32085da40a12e77 | 1,464 | ex | Elixir | geo3x3.ex | yrm006/Geo3x3 | 269124682b307e0e8b100d179e3bf21d931df722 | [
"CC0-1.0"
] | 23 | 2021-02-20T12:53:34.000Z | 2021-12-07T02:56:21.000Z | geo3x3.ex | yrm006/Geo3x3 | 269124682b307e0e8b100d179e3bf21d931df722 | [
"CC0-1.0"
] | 22 | 2021-02-21T03:44:34.000Z | 2022-03-27T13:32:24.000Z | geo3x3.ex | yrm006/Geo3x3 | 269124682b307e0e8b100d179e3bf21d931df722 | [
"CC0-1.0"
] | 14 | 2021-02-20T23:51:46.000Z | 2021-08-17T13:20:41.000Z | defmodule Geo3x3 do
def encode(_lat, _lng, level) when level < 1, do: ""
def encode(lat, lng, level) do
{res, lng} = if lng >= 0, do: {"E", lng}, else: {"W", lng + 180}
lat = lat + 90 # 180:the North Pole, 0:the South Pole
unit = 180.0
{_, _, _, res} =
1..level-1
|> Enum.reduce({unit, ... | 24 | 87 | 0.443306 |
1c8d465b14282c8deb3af4679a4c49bb773a95a3 | 44,877 | ex | Elixir | lib/aws/storage_gateway.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | lib/aws/storage_gateway.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | lib/aws/storage_gateway.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.StorageGateway do
@moduledoc """
AWS Storage Gateway Service
AWS Storage Gateway is the service that connects an on-premises software
appliance with cloud-based storage to provide seamless ... | 42.019663 | 151 | 0.745571 |
1c8d7710730d81e21795a1ff8d0c829d410f75c6 | 80 | ex | Elixir | lib/retroflect_web/views/user_reset_password_view.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | 3 | 2021-10-04T15:03:09.000Z | 2021-10-05T00:42:19.000Z | lib/retroflect_web/views/user_reset_password_view.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | 29 | 2021-10-04T12:56:21.000Z | 2021-10-20T17:38:12.000Z | lib/retroflect_web/views/user_reset_password_view.ex | gaslight/retroflect | d98a52dbe4ef14dd50ef06970fba9c673e456647 | [
"MIT"
] | null | null | null | defmodule RetroflectWeb.UserResetPasswordView do
use RetroflectWeb, :view
end
| 20 | 48 | 0.85 |
1c8d9ee1d9e8265e5c81bc158052528a676debd7 | 3,717 | ex | Elixir | lib/ash/resource.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | lib/ash/resource.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | lib/ash/resource.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | defmodule Ash.Resource do
@moduledoc """
A resource is a static definition of an entity in your system.
Resource DSL documentation: `Ash.Resource.Dsl`
"""
@type t :: module
@type record :: struct()
use Ash.Dsl,
single_extension_kinds: [:data_layer],
many_extension_kinds: [
:authorizers,
... | 29.5 | 113 | 0.566317 |
1c8e0bfb023ac20a0924eaf84c021321b3aed090 | 1,734 | ex | Elixir | lib/has_my_gsuite_been_pwned_web/endpoint.ex | obahareth/has-my-gsuite-been-pwned | 03762027e94c16fc939ec6a7174b13f2a622d456 | [
"MIT"
] | 4 | 2018-09-21T19:41:02.000Z | 2019-06-12T04:40:42.000Z | lib/has_my_gsuite_been_pwned_web/endpoint.ex | obahareth/has-my-gsuite-been-pwned | 03762027e94c16fc939ec6a7174b13f2a622d456 | [
"MIT"
] | 9 | 2018-10-05T15:02:33.000Z | 2018-10-30T03:12:50.000Z | lib/has_my_gsuite_been_pwned_web/endpoint.ex | obahareth/has-my-gsuite-been-pwned | 03762027e94c16fc939ec6a7174b13f2a622d456 | [
"MIT"
] | 1 | 2018-10-06T15:46:15.000Z | 2018-10-06T15:46:15.000Z | defmodule HasMyGsuiteBeenPwnedWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :has_my_gsuite_been_pwned
socket "/socket", HasMyGsuiteBeenPwnedWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your ... | 30.421053 | 95 | 0.72203 |
1c8e640e87f2e3281c5ca132f159d772d86ffdee | 715 | exs | Elixir | y_combinator.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | 34 | 2015-02-27T14:41:12.000Z | 2021-09-26T06:06:18.000Z | y_combinator.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | null | null | null | y_combinator.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | 3 | 2016-02-05T16:09:41.000Z | 2017-10-21T15:47:04.000Z | defmodule Combinator do
def fix(f) do
(fn x ->
f.(fn y -> (x.(x)).(y) end)
end).(fn x ->
f.(fn y -> (x.(x)).(y) end)
end)
end
end
# run this inline suite with "elixir #{__ENV__.file} test"
if System.argv |> List.first == "test" do
ExUnit.start
defmodule CombinatorTest do
use ExUnit... | 22.34375 | 72 | 0.490909 |
1c8e7a9a9c2414eb12e8c215babcff35ecf7d6e0 | 148 | ex | Elixir | web/controllers/page_controller.ex | simonasdev/splurty | 0bee8871803b25d19d4ba96c872d51321ce81d2f | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | simonasdev/splurty | 0bee8871803b25d19d4ba96c872d51321ce81d2f | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | simonasdev/splurty | 0bee8871803b25d19d4ba96c872d51321ce81d2f | [
"MIT"
] | null | null | null | defmodule Splurty.PageController do
use Phoenix.Controller
plug :action
def index(conn, _params) do
render conn, "index.html"
end
end
| 14.8 | 35 | 0.72973 |
1c8e7df4faddde4486e0638c3fc2b3b61dd214fd | 687 | exs | Elixir | test/acceptance/transform/meta_test.exs | feld/earmark | 149a174e8955de2c6833d4497e5d445dceea63dc | [
"Apache-1.1"
] | null | null | null | test/acceptance/transform/meta_test.exs | feld/earmark | 149a174e8955de2c6833d4497e5d445dceea63dc | [
"Apache-1.1"
] | null | null | null | test/acceptance/transform/meta_test.exs | feld/earmark | 149a174e8955de2c6833d4497e5d445dceea63dc | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Transform.MetaTest do
use ExUnit.Case
import Support.AstHelpers, only: [ast_from_md: 1]
import Earmark.Transform
# Needs to pass with #359
describe "pre and verbatim" do
@pre """
some code
"""
test "base case w/o verbatim" do
{:ok, ast, _} = ast_from_md(@pre)... | 26.423077 | 80 | 0.608443 |
1c8eb955d44aed4a4e7219cdb014a21785f63b03 | 2,353 | ex | Elixir | lib/exfavicon/finder.ex | ikeikeikeike/exfavicon | c3248befb037f3579891b79ef91da479bc25a754 | [
"MIT"
] | 8 | 2015-12-13T05:08:43.000Z | 2021-06-04T15:59:21.000Z | lib/exfavicon/finder.ex | ikeikeikeike/exfavicon | c3248befb037f3579891b79ef91da479bc25a754 | [
"MIT"
] | null | null | null | lib/exfavicon/finder.ex | ikeikeikeike/exfavicon | c3248befb037f3579891b79ef91da479bc25a754 | [
"MIT"
] | null | null | null | defmodule Exfavicon.Finder do
use HTTPoison.Base
def find(url) do
{:ok, location, resp} = req(url)
icon_url = find_from_html(resp.body, location)
if icon_url, do: icon_url, else: default_path(location)
end
def find_from_html(html, url) do
case detect(html, url) do
{:ok, icon_url} ->
... | 24.010204 | 82 | 0.514237 |
1c8ecd42be645911ceb903730658eb811bc2c798 | 1,613 | ex | Elixir | lib/shipsim/extract_map.ex | jeremysquires/shipsim | cacf0b7b825a3086e1cc1676374691de3d1cb0c5 | [
"MIT"
] | null | null | null | lib/shipsim/extract_map.ex | jeremysquires/shipsim | cacf0b7b825a3086e1cc1676374691de3d1cb0c5 | [
"MIT"
] | null | null | null | lib/shipsim/extract_map.ex | jeremysquires/shipsim | cacf0b7b825a3086e1cc1676374691de3d1cb0c5 | [
"MIT"
] | 1 | 2019-06-04T04:49:42.000Z | 2019-06-04T04:49:42.000Z | defmodule ShipSim.ExtractMap do
@doc """
Extract all the data from the JSON maps into the arrays and maps
needed to do the next steps of calculation
Also use:
Map.fetch!(extract_article_content, "key")
Enum.find(fn {key, _value} ->
case Integer.parse(key) do
:error -> false
_ -> ke... | 23.042857 | 69 | 0.568506 |
1c8ed19d4df63d39db36bdc1d8f86f4a4c4ab19b | 3,506 | exs | Elixir | farmbot_ext/test/farmbot_ext/amqp/terminal_channel_test.exs | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/amqp/terminal_channel_test.exs | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/amqp/terminal_channel_test.exs | va2ron1/farmbot_os | c80a38058713adc2ad91a4802664bcfe8da9d96c | [
"MIT"
] | null | null | null | defmodule FarmbotExt.AMQP.TerminalChannelTest do
require Helpers
use ExUnit.Case, async: false
use Mimic
setup :verify_on_exit!
setup :set_mimic_global
alias FarmbotExt.AMQP.TerminalChannel
alias FarmbotExt.AMQP.TerminalChannelSupport, as: Support
@jwt %FarmbotExt.JWT{bot: "device_#{Enum.random(1000..... | 30.486957 | 89 | 0.667427 |
1c8ed8abeaea5a7ec3d93cc3543f735f3c6da7a7 | 693 | ex | Elixir | src/Data/Ord.ex | sriduth/purescript-prelude | 018250e052ec11dc6faae61ea41c1a11fdf64e0e | [
"MIT"
] | null | null | null | src/Data/Ord.ex | sriduth/purescript-prelude | 018250e052ec11dc6faae61ea41c1a11fdf64e0e | [
"MIT"
] | null | null | null | src/Data/Ord.ex | sriduth/purescript-prelude | 018250e052ec11dc6faae61ea41c1a11fdf64e0e | [
"MIT"
] | null | null | null | defmodule Ord.Foreign do
def ordArrayImpl do
fn(f) ->
fn(xs) ->
fn(ys) ->
1
end
end
end
end
end
# "use strict";
# exports.ordArrayImpl = function (f) {
# return function (xs) {
# return function (ys) {
# var i = 0;
# var xlen = xs.length;
# var ylen = ys.length;... | 17.325 | 39 | 0.383838 |
1c8ee6d9b17b0d7fc69c747d5e1000a84dedb8fd | 2,612 | ex | Elixir | lib/ecto_extract_migrations/commands/create_index.ex | jonseaberg/ecto_extract_migrations | 6372825495b702386c291a5dda2f63ad1c8317ca | [
"Apache-2.0"
] | 7 | 2020-09-02T14:50:12.000Z | 2021-11-12T20:07:36.000Z | lib/ecto_extract_migrations/commands/create_index.ex | jonseaberg/ecto_extract_migrations | 6372825495b702386c291a5dda2f63ad1c8317ca | [
"Apache-2.0"
] | 2 | 2020-10-31T12:17:25.000Z | 2020-11-05T13:13:13.000Z | lib/ecto_extract_migrations/commands/create_index.ex | jonseaberg/ecto_extract_migrations | 6372825495b702386c291a5dda2f63ad1c8317ca | [
"Apache-2.0"
] | 3 | 2020-10-31T11:46:31.000Z | 2022-02-11T15:23:10.000Z | defmodule EctoExtractMigrations.Commands.CreateIndex do
@moduledoc "Handle CREATE INDEX."
def type, do: :create_index
defdelegate parse(sql), to: EctoExtractMigrations.Parsers.CreateIndex
defdelegate parse(sql, state), to: EctoExtractMigrations.Parsers.CreateIndex
defdelegate match(sql), to: EctoExtractMigra... | 37.855072 | 168 | 0.685681 |
1c8f0130e027dad002357a8e7a14393a3f885389 | 8,431 | exs | Elixir | test/groupher_server/cms/comments/drink_comment_replies_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/comments/drink_comment_replies_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/comments/drink_comment_replies_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.Comments.DrinkCommentReplies do
@moduledoc false
use GroupherServer.TestTools
alias Helper.ORM
alias GroupherServer.CMS
alias CMS.Model.{Comment, Drink}
@max_parent_replies_count Comment.max_parent_replies_count()
setup do
{:ok, user} = db_insert(:user)
{:ok,... | 41.126829 | 95 | 0.703594 |
1c8f12728306e368d146e3a6b7f1bda6fc62fdc9 | 1,451 | exs | Elixir | test/test_helper.exs | summerchat/dlex | 58f8624d047b93b3ce026b65c7cf8a1d85d13f85 | [
"Apache-2.0"
] | 79 | 2018-12-22T23:15:55.000Z | 2021-11-14T05:56:31.000Z | test/test_helper.exs | m0dnar/dlex | 1a3d0216d0aabb8c1ab5c92c5e6847c140769201 | [
"Apache-2.0"
] | 120 | 2019-02-26T17:44:39.000Z | 2021-11-12T23:07:51.000Z | test/test_helper.exs | m0dnar/dlex | 1a3d0216d0aabb8c1ab5c92c5e6847c140769201 | [
"Apache-2.0"
] | 25 | 2018-12-22T23:15:57.000Z | 2021-12-28T18:43:24.000Z | defmodule Dlex.TestHelper do
@dlex_adapter :"#{System.get_env("DLEX_ADAPTER", "grpc")}"
@offset String.to_integer(System.get_env("DLEX_PORT_OFFSET", "0"))
def opts() do
case @dlex_adapter do
:http -> [transport: :http, port: 8080 + @offset]
:grpc -> [transport: :grpc, port: 9080 + @offset]
en... | 21.656716 | 77 | 0.623019 |
1c8f187176594c0e45a65af241fa1f2ecd99e0f1 | 44 | exs | Elixir | config/prod.exs | niahoo/elixir-todo | ae5cc01e5770387c753cb735b43fa38a69566383 | [
"MIT"
] | 8 | 2015-09-10T21:19:01.000Z | 2020-03-25T02:19:02.000Z | config/prod.exs | niahoo/elixir-todo | ae5cc01e5770387c753cb735b43fa38a69566383 | [
"MIT"
] | 2 | 2016-03-16T22:56:00.000Z | 2016-03-18T14:39:06.000Z | config/prod.exs | niahoo/elixir-todo | ae5cc01e5770387c753cb735b43fa38a69566383 | [
"MIT"
] | 1 | 2020-01-29T16:12:34.000Z | 2020-01-29T16:12:34.000Z | import Config
# config :todo, persist: true
| 14.666667 | 29 | 0.75 |
1c8f266afdd8cbef8829345ddf11b1a6d2ccaf91 | 14,842 | ex | Elixir | lib/joken.ex | echenim/joken | 91b3f2560d2f5b88230926cab0f674bcf237109a | [
"Apache-2.0"
] | 1 | 2019-02-11T20:46:56.000Z | 2019-02-11T20:46:56.000Z | lib/joken.ex | echenim/joken | 91b3f2560d2f5b88230926cab0f674bcf237109a | [
"Apache-2.0"
] | null | null | null | lib/joken.ex | echenim/joken | 91b3f2560d2f5b88230926cab0f674bcf237109a | [
"Apache-2.0"
] | null | null | null | defmodule Joken do
@moduledoc """
Joken is a library for working with standard JSON Web Tokens.
It provides 4 basic operations:
- Verify: the act of confirming the signature of the JWT;
- Validate: processing validation logic on the set of claims;
- Claim generation: generate dynamic value at token creati... | 36.024272 | 103 | 0.664196 |
1c8f2d95c654639aaf1911be50a4b667d655313a | 759 | exs | Elixir | mix.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 5 | 2019-06-12T11:26:12.000Z | 2022-01-28T19:45:47.000Z | mix.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 2 | 2019-06-04T13:19:55.000Z | 2021-04-19T07:17:34.000Z | mix.exs | smartvokat/door_frame | 9052ab233b2af65582dd1925a998e2b46b0eb569 | [
"Apache-2.0"
] | 1 | 2019-06-12T11:26:14.000Z | 2019-06-12T11:26:14.000Z | defmodule DoorFrame.MixProject do
use Mix.Project
def project do
[
app: :door_frame,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about appl... | 21.685714 | 62 | 0.587615 |
1c8f3e8429ab9812a43e7c5396b726a3e1542fc5 | 1,062 | ex | Elixir | lib/nlw_05_elixir_web/router.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | lib/nlw_05_elixir_web/router.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | lib/nlw_05_elixir_web/router.ex | wfercosta/nlw_05_elexir | a833f62c6a9985fe43a22f8450250b8ceea3dd34 | [
"MIT"
] | null | null | null | defmodule Nlw05ElixirWeb.Router do
use Nlw05ElixirWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", Nlw05ElixirWeb do
pipe_through :api
get "/", WelcomeController, :index
post "/restaurants", RestaurantsController, :create
resources "/supplies", SuppliesController, ... | 28.702703 | 70 | 0.712806 |
1c8f6b26e1b94998946d05fafcdb05201bc17358 | 4,978 | exs | Elixir | mix.exs | alexgriff/phoenix | 87244793035572d9b119a90b1294db8e34961f8b | [
"MIT"
] | 1 | 2019-04-24T09:28:15.000Z | 2019-04-24T09:28:15.000Z | mix.exs | alexgriff/phoenix | 87244793035572d9b119a90b1294db8e34961f8b | [
"MIT"
] | null | null | null | mix.exs | alexgriff/phoenix | 87244793035572d9b119a90b1294db8e34961f8b | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
@version "1.4.0"
def project do
[
app: :phoenix,
version: @version,
elixir: "~> 1.4",
deps: deps(),
package: package(),
lockfile: lockfile(),
preferred_cli_env: [docs: :docs],
consolidate_protocols: Mix.env != :t... | 25.141414 | 116 | 0.581961 |
1c8f6fd36f2a4b0f686f577fad1e679ca06dba57 | 3,234 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__logo_recognition_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__logo_recognition_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1__logo_recognition_annotation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.425 | 286 | 0.750155 |
1c8f73b5f4e3a764449e5bb5ce70149cc448b826 | 1,866 | exs | Elixir | test/is_type_test.exs | DoggettCK/is_type | 1770e506413b6d8096ddf6b72f4d188ccbac96f8 | [
"MIT"
] | null | null | null | test/is_type_test.exs | DoggettCK/is_type | 1770e506413b6d8096ddf6b72f4d188ccbac96f8 | [
"MIT"
] | null | null | null | test/is_type_test.exs | DoggettCK/is_type | 1770e506413b6d8096ddf6b72f4d188ccbac96f8 | [
"MIT"
] | null | null | null | defmodule IsTypeTest do
use ExUnit.Case
doctest IsType
describe "injects is_type_name? method" do
defmodule Person do
use IsType
defstruct id: nil, name: nil
end
test "injected method properly matches against type" do
assert Person.is_person?(%Person{id: 1, name: "Chris"})
r... | 31.627119 | 86 | 0.710075 |
1c8f8392433aaad72b0832197b5d3135b7daf201 | 232 | ex | Elixir | test/support/schema/room.ex | eahanson/schema_assertions | 35760374e2c1e837c5ea6fc0bde4baea53677c83 | [
"Apache-2.0"
] | null | null | null | test/support/schema/room.ex | eahanson/schema_assertions | 35760374e2c1e837c5ea6fc0bde4baea53677c83 | [
"Apache-2.0"
] | null | null | null | test/support/schema/room.ex | eahanson/schema_assertions | 35760374e2c1e837c5ea6fc0bde4baea53677c83 | [
"Apache-2.0"
] | null | null | null | defmodule SchemaAssertions.Test.Schema.Room do
@moduledoc false
use Ecto.Schema
schema "rooms" do
belongs_to :house, SchemaAssertions.Test.Schema.House
has_many :windows, SchemaAssertions.Test.Schema.Window
end
end
| 23.2 | 58 | 0.775862 |
1c8fbdbe3a50dbc156f672b861075e29595482ca | 74 | ex | Elixir | apps/emporium_api/lib/emporium_api/repo.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/lib/emporium_api/repo.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/lib/emporium_api/repo.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | defmodule EmporiumApi.Repo do
use Ecto.Repo, otp_app: :emporium_api
end
| 18.5 | 39 | 0.797297 |
1c8fd1b351acca689fe7fd38c4f224c93bc5399a | 2,194 | exs | Elixir | traceme/config/dev.exs | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | 9 | 2017-10-29T17:35:14.000Z | 2020-04-19T14:06:50.000Z | traceme/config/dev.exs | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | traceme/config/dev.exs | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"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.
config :traceme, TracemeWeb.Endpoint,
http: [port: 40... | 32.264706 | 170 | 0.705105 |
1c8fd772e765ec283f616c5fa8bde8dd087d24d3 | 2,052 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/directory_sites_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/directory_sites_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/directory_sites_list_response.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... | 38.716981 | 198 | 0.741715 |
1c8fde0537788d3d97250d6cfc59115d75b5ed8f | 295 | ex | Elixir | lib/dealer_rater/dealership.ex | andrhevictor/review_scraper | 7628b814d7d35b185bd9bfbe83400c68486bd19a | [
"MIT"
] | null | null | null | lib/dealer_rater/dealership.ex | andrhevictor/review_scraper | 7628b814d7d35b185bd9bfbe83400c68486bd19a | [
"MIT"
] | null | null | null | lib/dealer_rater/dealership.ex | andrhevictor/review_scraper | 7628b814d7d35b185bd9bfbe83400c68486bd19a | [
"MIT"
] | null | null | null | defmodule ReviewScraper.DealerRater.Dealership do
defstruct dealer_id: "",
dealer_name: "",
dealer_name_encoded: ""
@type t() :: %__MODULE__{
dealer_id: String.t(),
dealer_name: String.t(),
dealer_name_encoded: String.t()
}
end
| 24.583333 | 49 | 0.579661 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.