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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5ca71774ff7e1ccc9186d8172b45a96a8b27016 | 1,869 | ex | Elixir | lib/sonda/agent/agent.ex | Fire-Dragon-DoL/sonda | 6565ff3a0a8303a120a3e6637fa2616614837cf3 | [
"MIT"
] | null | null | null | lib/sonda/agent/agent.ex | Fire-Dragon-DoL/sonda | 6565ff3a0a8303a120a3e6637fa2616614837cf3 | [
"MIT"
] | null | null | null | lib/sonda/agent/agent.ex | Fire-Dragon-DoL/sonda | 6565ff3a0a8303a120a3e6637fa2616614837cf3 | [
"MIT"
] | null | null | null | defmodule Sonda.Agent do
use Agent
@type t :: Agent.agent()
@type clock :: (() -> Sonda.Sink.timestamp())
@type config :: {Sonda.Sink.t(), clock()}
@type config_opts :: config() | Sonda.Sink.t()
@spec configure(sink :: Sonda.Sink.t()) :: config()
def configure(sink) do
{sink, &NaiveDateTime.utc_now/... | 24.592105 | 78 | 0.596041 |
d5ca8985e659e40654339db9a8c14d3b23e63aa1 | 470 | ex | Elixir | lib/file_size/sigil.ex | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 5 | 2019-05-25T14:33:23.000Z | 2020-10-25T01:23:17.000Z | lib/file_size/sigil.ex | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 6 | 2020-04-14T21:48:53.000Z | 2020-09-25T12:52:03.000Z | lib/file_size/sigil.ex | sitch/file_size | 1bd6d884d6cd124f7f8ccfa7f2485cd32f290ac0 | [
"MIT"
] | 1 | 2020-09-23T21:51:37.000Z | 2020-09-23T21:51:37.000Z | defmodule FileSize.Sigil do
@moduledoc """
Provides a sigil that you can use as shortcut to define file sizes easily.
"""
@doc """
A sigil function that you can use as shortcut to define file sizes easily.
## Examples
iex> ~F(16 kB)
#FileSize<"16 kB">
iex> ~F(8.2 Mibit)
#FileSize... | 21.363636 | 76 | 0.634043 |
d5cab67123a04abc5e2447323209a74246eca665 | 1,228 | ex | Elixir | packages/sim/apps/messenger/lib/utils/matrix.ex | TNOCS/popsim | a25cca22de42161ef3bc4848c6c20bfdc85f7647 | [
"MIT"
] | 1 | 2017-09-23T09:41:44.000Z | 2017-09-23T09:41:44.000Z | packages/sim/apps/messenger/lib/utils/matrix.ex | TNOCS/popsim | a25cca22de42161ef3bc4848c6c20bfdc85f7647 | [
"MIT"
] | 8 | 2017-06-21T07:57:47.000Z | 2017-06-22T13:09:32.000Z | packages/sim/apps/messenger/lib/utils/matrix.ex | TNOCS/popsim | a25cca22de42161ef3bc4848c6c20bfdc85f7647 | [
"MIT"
] | 1 | 2021-02-14T16:50:16.000Z | 2021-02-14T16:50:16.000Z | defmodule Matrix do
@moduledoc """
Helpers for working with multidimensional lists, also called matrices.
[Source](http://blog.danielberkompas.com/2016/04/23/multidimensional-arrays-in-elixir.html)
"""
@doc """
Converts a multidimensional list into a zero-indexed map.
## Example
iex> list = [["x... | 25.583333 | 93 | 0.600977 |
d5cadf06c147ace3788b101875c554a65f4a9fc9 | 2,742 | ex | Elixir | src/lib/changelog_web/controllers/admin/person_controller.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/lib/changelog_web/controllers/admin/person_controller.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/lib/changelog_web/controllers/admin/person_controller.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.PersonController do
use ChangelogWeb, :controller
alias Changelog.{Mailer, Newsletters, Person}
alias ChangelogWeb.Email
alias Craisin.Subscriber
plug :scrub_params, "person" when action in [:create, :update]
def index(conn, params) do
page = Person
|> order_by([p], d... | 30.131868 | 78 | 0.664114 |
d5cae4d89871f4cc4800ff401cfeb27ecc75bc7a | 1,595 | ex | Elixir | exercism/markdown/markdown.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/markdown/markdown.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | exercism/markdown/markdown.ex | defndaines/elixir_bits | 78a9c2dc0c9946df715a662ef62cd437fdd9e3d1 | [
"Apache-2.0"
] | null | null | null | defmodule Markdown do
@doc """
Parses a given string with Markdown syntax and returns the associated HTML for that string.
## Examples
iex> Markdown.parse("This is a paragraph")
"<p>This is a paragraph</p>"
iex> Markdown.parse("#Header!\n* __Bold Item__\n* _Italic Item_")
"<h1>Header!</h1><... | 26.147541 | 95 | 0.598119 |
d5caf4c3742201041c034e450f82d81509b6d9a2 | 2,248 | ex | Elixir | lib/norwegian_id_number.ex | starbuildr/norwegian_id_number | 5cc4769d9e1f455574f8e463910b2a4f681aecdd | [
"MIT"
] | 1 | 2019-02-07T14:35:55.000Z | 2019-02-07T14:35:55.000Z | lib/norwegian_id_number.ex | starbuildr/norwegian_id_number | 5cc4769d9e1f455574f8e463910b2a4f681aecdd | [
"MIT"
] | null | null | null | lib/norwegian_id_number.ex | starbuildr/norwegian_id_number | 5cc4769d9e1f455574f8e463910b2a4f681aecdd | [
"MIT"
] | null | null | null | defmodule NorwegianIdNumber do
@moduledoc """
Useful information extracted from Norwegian national identification number.
From 2017, checksum is included to the personal number and no longer validated.
"""
@type id_type :: :fh_number | :d_number | :h_number | :birth_number
defstruct [:id_type, :birth_da... | 29.973333 | 85 | 0.663701 |
d5caf7af8725cc15f83e48b3f85e9bd974779be8 | 1,813 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/list_datasets_response.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/v1beta1/model/list_datasets_response.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/v1beta1/model/list_datasets_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.26 | 157 | 0.738003 |
d5cb0a2cbf24ec9770edd3bcd61b9386adbeec5a | 386 | ex | Elixir | lib/ex_oneroster/web/views/error_view.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | 3 | 2018-09-06T11:15:07.000Z | 2021-12-27T15:36:51.000Z | lib/ex_oneroster/web/views/error_view.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | lib/ex_oneroster/web/views/error_view.ex | jrissler/ex_oneroster | cec492117bffc14aec91e2448643682ceeb449e9 | [
"Apache-2.0"
] | null | null | null | defmodule ExOneroster.Web.ErrorView do
use ExOneroster.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_foun... | 21.444444 | 47 | 0.704663 |
d5cb0d9a99a663c11df0028e789b3a50e42d22ab | 1,288 | exs | Elixir | priv/repo/migrations/20200717081813_create_signups.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | priv/repo/migrations/20200717081813_create_signups.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | 5 | 2020-07-20T01:49:01.000Z | 2021-09-08T00:17:04.000Z | priv/repo/migrations/20200717081813_create_signups.exs | anamba/crew | c25f6a1d6ddbe0b58da9d556ff53a641c4d2a7b1 | [
"BSL-1.0"
] | null | null | null | defmodule Crew.Repo.Migrations.CreateSignups do
use Ecto.Migration
def change do
create table(:signups, primary_key: false) do
add :id, :binary_id, primary_key: true
# FK NOTE: we do not cascade delete signups for any reason other than deleting the entire site
add :site_id, references(:sites... | 30.666667 | 100 | 0.684783 |
d5cb2576c1293a2210fbc223446064c63dbd02dc | 12,001 | ex | Elixir | lib/jamdb_oracle.ex | ad-pro/jamdb_oracle | 334617bdd1f8e0382b7058832eff5d1f5a92a616 | [
"MIT"
] | null | null | null | lib/jamdb_oracle.ex | ad-pro/jamdb_oracle | 334617bdd1f8e0382b7058832eff5d1f5a92a616 | [
"MIT"
] | null | null | null | lib/jamdb_oracle.ex | ad-pro/jamdb_oracle | 334617bdd1f8e0382b7058832eff5d1f5a92a616 | [
"MIT"
] | null | null | null | defmodule Jamdb.Oracle do
@vsn "0.4.3"
@moduledoc """
Adapter module for Oracle. `DBConnection` behaviour implementation.
It uses `jamdb_oracle` for communicating to the database.
"""
use DBConnection
defstruct [:pid, :mode, :cursors]
@doc """
Starts and links to a database connection process.
... | 35.611276 | 104 | 0.617199 |
d5cb2846419cd06d94169a152850f8a0d3485832 | 11,417 | ex | Elixir | lib/kaffy/resource_form.ex | brosquinha/kaffy | 117a4f6e40c2abbfe72909b8b75250e47edd8e32 | [
"MIT"
] | null | null | null | lib/kaffy/resource_form.ex | brosquinha/kaffy | 117a4f6e40c2abbfe72909b8b75250e47edd8e32 | [
"MIT"
] | null | null | null | lib/kaffy/resource_form.ex | brosquinha/kaffy | 117a4f6e40c2abbfe72909b8b75250e47edd8e32 | [
"MIT"
] | 1 | 2020-09-18T14:25:00.000Z | 2020-09-18T14:25:00.000Z | defmodule Kaffy.ResourceForm do
use Phoenix.HTML
def form_label_string({field, options}), do: Map.get(options, :label, field)
def form_label_string(field) when is_atom(field), do: field
def form_label(form, field) do
label_text = form_label_string(field)
label(form, label_text)
end
def form_help_... | 30.940379 | 99 | 0.557064 |
d5cb3eb6df0d208758628a5daa5722d03d6aa755 | 236 | ex | Elixir | apps/tai/lib/tai/advisors/instance.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/advisors/instance.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/advisors/instance.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Advisors.Instance do
@type t :: %__MODULE__{}
@enforce_keys ~w[advisor_id fleet_id status pid start_on_boot restart shutdown]a
defstruct ~w[advisor_id fleet_id status pid start_on_boot restart shutdown config]a
end
| 33.714286 | 85 | 0.800847 |
d5cbaa31fcdb377758197a6d6c03f7a2b89978a4 | 2,038 | ex | Elixir | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/analytics_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/analytics_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/analytics_info.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... | 37.740741 | 157 | 0.763984 |
d5cbb0c8b5d48cbf1aeb6b4bbeb1eca20c7a99aa | 464 | ex | Elixir | agma/lib/agma_web/views/error_helpers.ex | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | 37 | 2021-01-31T17:43:03.000Z | 2021-11-17T12:29:00.000Z | lib/agma_web/views/error_helpers.ex | queer/agma | f240a7bdf743049b8b1b994ee340b6cce47551bf | [
"BSD-3-Clause"
] | 4 | 2021-05-29T04:54:28.000Z | 2021-06-26T20:40:48.000Z | lib/agma_web/views/error_helpers.ex | queer/agma | f240a7bdf743049b8b1b994ee340b6cce47551bf | [
"BSD-3-Clause"
] | null | null | null | defmodule AgmaWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message.
"""
def translate_error({msg, opts}) do
# Because the error messages we show in our forms and APIs
# are defined inside Ecto, we need to translate t... | 27.294118 | 69 | 0.674569 |
d5cbc80fb5e9d68d730c44b72a31ff3fd596c0a4 | 1,529 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/custom_list_targeting_setting.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/custom_list_targeting_setting.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/custom_list_targeting_setting.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... | 31.854167 | 115 | 0.748201 |
d5cc58bcd3789f0706c2557d3bc7505ef1b1a3fc | 496 | exs | Elixir | config/test.exs | hvnsweeting/hphoenix | 5e0a93f12af64e8be2ccff7f15feab7f9e20be48 | [
"MIT"
] | null | null | null | config/test.exs | hvnsweeting/hphoenix | 5e0a93f12af64e8be2ccff7f15feab7f9e20be48 | [
"MIT"
] | null | null | null | config/test.exs | hvnsweeting/hphoenix | 5e0a93f12af64e8be2ccff7f15feab7f9e20be48 | [
"MIT"
] | 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 :hphoenix, Hphoenix.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :hphoenix, Hphoenix.R... | 24.8 | 56 | 0.735887 |
d5cc62257ce8631b7239d53cfd8b0c410ec6558a | 1,868 | exs | Elixir | elixir/mix.exs | yangho1231/web-homework | a2adc8aa51fe38536c7a5d07926e2da9bf89b907 | [
"MIT"
] | null | null | null | elixir/mix.exs | yangho1231/web-homework | a2adc8aa51fe38536c7a5d07926e2da9bf89b907 | [
"MIT"
] | null | null | null | elixir/mix.exs | yangho1231/web-homework | a2adc8aa51fe38536c7a5d07926e2da9bf89b907 | [
"MIT"
] | null | null | null | defmodule Homework.MixProject do
use Mix.Project
def project do
[
app: :homework,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: a... | 27.880597 | 85 | 0.550857 |
d5cc760923ba9b55b60db7940a5a8c159592fe1c | 940 | ex | Elixir | test/support/factory.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | 3 | 2019-01-02T17:45:21.000Z | 2019-12-04T18:11:53.000Z | test/support/factory.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | null | null | null | test/support/factory.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | null | null | null | defmodule LazyContext.Factory do
@moduledoc false
use ExMachina.Ecto, repo: LazyContext.Examples.Repo
def user_factory do
%LazyContext.Examples.Users.Schemas.User{
first_name: "some first_name",
last_name: "some last_name",
age: sequence(:age, & &1),
email: sequence(:email, &generate... | 20.434783 | 53 | 0.626596 |
d5cc9563c5195a8b5106241224b31df2632d962b | 420 | exs | Elixir | config/test.exs | aman-io/exq_ui | 28a02575481a5ddf77a0ea302d711c55c7420bab | [
"Apache-2.0"
] | null | null | null | config/test.exs | aman-io/exq_ui | 28a02575481a5ddf77a0ea302d711c55c7420bab | [
"Apache-2.0"
] | null | null | null | config/test.exs | aman-io/exq_ui | 28a02575481a5ddf77a0ea302d711c55c7420bab | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :logger, :console, format: "\n$date $time [$level]: $message \n"
config :exq,
host: System.get_env("REDIS_HOST") || "127.0.0.1",
port: System.get_env("REDIS_PORT") || 6555,
namespace: "exq",
queues: ["default"],
scheduler_enable: false,
scheduler_poll_timeout: 200,
poll_timeout: 50... | 24.705882 | 71 | 0.695238 |
d5cc95926fb1fd3977c35c00ae9c9738fff889e9 | 4,345 | ex | Elixir | lib/ex_tweet/url_format.ex | IanVermes/ex_tweet | d37ebcb89a84a2cae50c9b09fc9c94a6090b971f | [
"MIT"
] | 1 | 2020-04-01T11:41:55.000Z | 2020-04-01T11:41:55.000Z | lib/ex_tweet/url_format.ex | IanVermes/ex_tweet | d37ebcb89a84a2cae50c9b09fc9c94a6090b971f | [
"MIT"
] | null | null | null | lib/ex_tweet/url_format.ex | IanVermes/ex_tweet | d37ebcb89a84a2cae50c9b09fc9c94a6090b971f | [
"MIT"
] | null | null | null | defmodule ExTweet.UrlFormat do
@json_twitter_base "https://twitter.com/i/search/timeline?f=tweets&vertical=news"
@json_twitter_query_substring "-filter:replies"
@json_twitter_constants_1 "&src=typd&&include_available_features=1&include_entities=1"
@json_twitter_constants_2 "&reset_error_state=false"
alias Ex... | 28.398693 | 98 | 0.667664 |
d5ccbbfe3898f1ae67572f66a95a02b664704bfd | 237 | ex | Elixir | lib/product_catalog.ex | poegroup/example-product-catalog-api | ad902dccc94c2ba5c71cedfe35b4125486b35f01 | [
"MIT"
] | null | null | null | lib/product_catalog.ex | poegroup/example-product-catalog-api | ad902dccc94c2ba5c71cedfe35b4125486b35f01 | [
"MIT"
] | null | null | null | lib/product_catalog.ex | poegroup/example-product-catalog-api | ad902dccc94c2ba5c71cedfe35b4125486b35f01 | [
"MIT"
] | null | null | null | defmodule ProductCatalog do
use Application
require Logger
def start(_type, _args) do
if Mix.env == :dev do
PoeApi.Dev.start()
end
ProductCatalog.HTTP.start()
ProductCatalog.Supervisor.start_link()
end
end
| 18.230769 | 42 | 0.696203 |
d5ccbdbfd368ed9e006dc16198346bbd52ce0985 | 22,185 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/products.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/products.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/products.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... | 44.458918 | 393 | 0.635835 |
d5cccf8f17fe89510e160264178624f9f24d8a8e | 35,039 | ex | Elixir | lib/elixir/lib/gen_event.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_event.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_event.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | defmodule GenEvent do
@moduledoc """
A behaviour module for implementing event handling functionality.
The event handling model consists of a generic event manager
process with an arbitrary number of event handlers which are
added and deleted dynamically.
An event manager implemented using this module wil... | 33.243833 | 110 | 0.644139 |
d5cce78270b8c2f8d38f25974c033ab16d5ae9e5 | 4,194 | ex | Elixir | apps/feedex_core/lib/feedex_core/accounts/user_token.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_core/lib/feedex_core/accounts/user_token.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_core/lib/feedex_core/accounts/user_token.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FeedexCore.Accounts.UserToken do
use Ecto.Schema
import Ecto.Query
@hash_algorithm :sha256
@rand_size 32
# It is very important to keep the reset password token expiry short,
# since someone with access to the email may take over the account.
@reset_password_validity_in_days 1
@confirm_valid... | 29.535211 | 100 | 0.691226 |
d5cd197ddb4f81e1544db90932cd3326a87ff5d6 | 555 | ex | Elixir | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/web/models/user.ex | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | 15 | 2017-09-19T08:09:01.000Z | 2019-04-29T00:37:51.000Z | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/web/models/user.ex | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | null | null | null | 19-02-02-The-Complete-Elixir-And-Phoenix-Bootcamp/05-Phoenix/discuss/web/models/user.ex | arcyfelix/Courses | fa1336ff2295e67e03a116bba3c4fd5df653325c | [
"Apache-2.0"
] | 17 | 2018-02-27T03:15:54.000Z | 2019-04-24T09:26:46.000Z | defmodule Discuss.User do
use Discuss.Web, :model
@derive {Poison.Encoder, only: [:email, :provider, :token]}
schema "users" do
field :email, :string
field :provider, :string
field :token, :string
# The user has many topics
has_many :topics, Discuss.Topic
# A user can have multiple comme... | 23.125 | 61 | 0.654054 |
d5cd267958a79a9eb47e16d1169f6722c9b2bfd6 | 738 | ex | Elixir | lib/rockelivery.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/rockelivery.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/rockelivery.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | defmodule Rockelivery do
alias Rockelivery.Item.Actions.Create, as: ItemCreate
alias Rockelivery.Order.Actions.Create, as: OrderCreate
alias Rockelivery.User.Actions.Create, as: UserCreate
alias Rockelivery.User.Actions.Delete, as: UserDelete
alias Rockelivery.User.Actions.Find, as: UserFind
alias Rockeli... | 36.9 | 62 | 0.776423 |
d5cd56a4ccc431a8bef4919d6c41fd27d3160aa9 | 1,392 | ex | Elixir | examples/react-demo/lib/demo_web/telemetry.ex | Virtual-Repetitions/vite_phx | 8f102e77ed36ea3b8f39afa0f9716c25aa9b7879 | [
"MIT"
] | 21 | 2019-12-15T19:14:56.000Z | 2022-02-07T16:04:30.000Z | examples/react-demo/lib/demo_web/telemetry.ex | Virtual-Repetitions/vite_phx | 8f102e77ed36ea3b8f39afa0f9716c25aa9b7879 | [
"MIT"
] | 12 | 2021-07-06T21:08:21.000Z | 2021-09-27T11:11:19.000Z | demo/lib/demo_web/telemetry.ex | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | 6 | 2019-12-15T19:15:02.000Z | 2021-09-16T20:35:53.000Z | defmodule DemoWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn mor... | 28.408163 | 86 | 0.668822 |
d5cd92f170c7cbe089a8fd1438452d3c5b8bcdc0 | 1,217 | ex | Elixir | lib/attendance_web/views/error_helpers.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | lib/attendance_web/views/error_helpers.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | lib/attendance_web/views/error_helpers.ex | hex337/attendance-phoenix | aaade35897b5910d00f2c047cc29bfe2d213f786 | [
"MIT"
] | null | null | null | defmodule AttendanceWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static a... | 35.794118 | 79 | 0.67461 |
d5cda70dda70240b240d552a3030db6e6c34fe2d | 829 | exs | Elixir | examples/simple_app/mix.exs | vans163/bakeware | 94ece18059868c0cd37ec6dadd2b6c6afcd83867 | [
"Apache-2.0"
] | 557 | 2020-10-23T14:01:18.000Z | 2022-03-29T18:26:41.000Z | examples/simple_app/mix.exs | vans163/bakeware | 94ece18059868c0cd37ec6dadd2b6c6afcd83867 | [
"Apache-2.0"
] | 54 | 2020-10-23T15:01:10.000Z | 2022-03-22T23:23:15.000Z | examples/simple_app/mix.exs | vans163/bakeware | 94ece18059868c0cd37ec6dadd2b6c6afcd83867 | [
"Apache-2.0"
] | 21 | 2020-10-23T20:52:21.000Z | 2022-03-08T17:42:38.000Z | defmodule SimpleApp.MixProject do
use Mix.Project
@app :simple_app
def project do
[
app: @app,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: [{@app, release()}],
preferred_cli_env: [release: :prod]
]
end
#... | 19.27907 | 59 | 0.564536 |
d5cdc6a5082225fbffe675eb645f6a1f54e0d574 | 639 | exs | Elixir | priv/repo/seeds.exs | geowa4/graphql-elixir-phoenix-preso | 9d0de23a09506e46a4a0bf71db26e4691f254849 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | geowa4/graphql-elixir-phoenix-preso | 9d0de23a09506e46a4a0bf71db26e4691f254849 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | geowa4/graphql-elixir-phoenix-preso | 9d0de23a09506e46a4a0bf71db26e4691f254849 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# HelloPhoenix.Repo.insert!(%HelloPhoenix.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as ... | 20.612903 | 61 | 0.713615 |
d5cded55dc2288a841b8f9dc1d7f63f1c2b466fb | 1,891 | ex | Elixir | lib/go_champs_api/tournaments/tournament.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | null | null | null | lib/go_champs_api/tournaments/tournament.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 2 | 2019-08-30T04:44:20.000Z | 2019-08-30T04:44:28.000Z | lib/go_champs_api/tournaments/tournament.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | null | null | null | defmodule GoChampsApi.Tournaments.Tournament do
use Ecto.Schema
use GoChampsApi.Schema
import Ecto.Changeset
alias GoChampsApi.Organizations.Organization
alias GoChampsApi.Phases.Phase
alias GoChampsApi.Players.Player
alias GoChampsApi.Teams.Team
schema "tournaments" do
field :name, :string
fie... | 26.633803 | 78 | 0.682708 |
d5cdf54d59f41b22d208cd9e30e8ac2e17f80e94 | 169 | ex | Elixir | test/unit/fixtures/template/renderers/component_renderer/module_5.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/fixtures/template/renderers/component_renderer/module_5.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/fixtures/template/renderers/component_renderer/module_5.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Test.Fixtures.Template.ComponentRenderer.Module5 do
use Hologram.Component
def template do
~H"""
<span><slot /></span>
"""
end
end
| 16.9 | 70 | 0.680473 |
d5ce111c4848b365deb83a7e187f50d50a620970 | 685 | ex | Elixir | web/channels/status_channel.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | web/channels/status_channel.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | web/channels/status_channel.ex | bed42/bedsgarage | 608e9509b931078f62ff93e7e34f2451b0d10f49 | [
"Apache-2.0"
] | null | null | null | defmodule Bedsgarage.StatusChannel do
use Phoenix.Channel
alias Bedsgarage.PiGarage
require Logger
intercept ["status"]
def join("garage:status", _message, socket) do
#do initial check async when the client joins to update initiate state
Task.async(fn -> PiGarage.check_status() end)
{:ok,... | 25.37037 | 76 | 0.70219 |
d5ce92d0cc1c7f1357676bd33aa444b06f4eb6d3 | 555 | exs | Elixir | config/test.exs | mazz/Phoenix-File-Upload | 7ab9438bce9c3839ce8129cccb60b40dff2cc538 | [
"MIT"
] | 3 | 2019-04-19T15:55:58.000Z | 2021-06-04T14:02:34.000Z | config/test.exs | mazz/Phoenix-File-Upload | 7ab9438bce9c3839ce8129cccb60b40dff2cc538 | [
"MIT"
] | null | null | null | config/test.exs | mazz/Phoenix-File-Upload | 7ab9438bce9c3839ce8129cccb60b40dff2cc538 | [
"MIT"
] | 2 | 2019-04-19T15:56:02.000Z | 2020-11-15T06:13:49.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :file_uploader, FileUploaderWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :file_upl... | 25.227273 | 56 | 0.745946 |
d5cea237630b3c5626318575dd58d74cbe5d3f6f | 2,568 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/track_country_availability.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/track_country_availability.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/model/track_country_availability.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... | 48.45283 | 429 | 0.75662 |
d5ceb6b6c687df99c9804a41321d66d71526fd9c | 715 | ex | Elixir | lib/august_db_web/gettext.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | 5 | 2021-07-28T15:56:42.000Z | 2021-08-18T20:58:43.000Z | lib/august_db_web/gettext.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | 54 | 2021-07-28T14:51:49.000Z | 2021-08-11T21:56:10.000Z | lib/august_db_web/gettext.ex | Terkwood/AugustDB | 6de696a80bc4eb523b89d64cd4292ac342bdb3aa | [
"MIT"
] | null | null | null | defmodule AugustDbWeb.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 AugustDbWeb.Gettext
# Simple translation
gettext("Here is... | 28.6 | 72 | 0.67972 |
d5ced6881058777e7957efc8b7fa18c4cce123a0 | 1,659 | exs | Elixir | exercises/pangram/pangram_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/pangram/pangram_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/pangram/pangram_test.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 1 | 2018-07-19T23:43:56.000Z | 2018-07-19T23:43:56.000Z | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("pangram.exs", __DIR__)
end
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)
defmodule PangramTest do
use ExUnit.Case
# @tag :pending
test "empty sentence" do
refute Pangram.pangram?("")
end
@tag :pending
test "pangram w... | 26.333333 | 100 | 0.716094 |
d5cedb10fd3da8de5b9d1d51dd4bef96342692d1 | 2,058 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/generate_config_report_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/generate_config_report_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_management/lib/google_api/service_management/v1/model/generate_config_report_request.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... | 41.16 | 291 | 0.754616 |
d5cf12f211dd4cd4c9ffc30561cf89a744d4a934 | 1,592 | exs | Elixir | test/commodity_api/iam/user/email/log/log_controller_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | test/commodity_api/iam/user/email/log/log_controller_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | test/commodity_api/iam/user/email/log/log_controller_test.exs | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 31.215686 | 77 | 0.721734 |
d5cf36d543484ad005d39f402657d79316b8bbf0 | 1,946 | exs | Elixir | 01_cloak_ecto/mix.exs | PJUllrich/PeterAndCode | 8caf37ceb7a80594f6fab5a673d1637312c40a3e | [
"MIT"
] | 7 | 2021-02-25T09:51:25.000Z | 2022-03-09T02:01:04.000Z | 01_cloak_ecto/mix.exs | PJUllrich/PeterAndCode | 8caf37ceb7a80594f6fab5a673d1637312c40a3e | [
"MIT"
] | 1 | 2022-01-23T07:27:09.000Z | 2022-01-23T07:27:09.000Z | 01_cloak_ecto/mix.exs | PJUllrich/PeterAndCode | 8caf37ceb7a80594f6fab5a673d1637312c40a3e | [
"MIT"
] | 2 | 2021-10-04T16:58:50.000Z | 2022-03-28T20:47:11.000Z | defmodule App.MixProject do
use Mix.Project
def project do
[
app: :app,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps:... | 28.202899 | 84 | 0.569887 |
d5cf6befbb6f2540417d1c4eb0ab5527753f0a59 | 924 | exs | Elixir | elixir/string_matching.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | elixir/string_matching.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | elixir/string_matching.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | str = "acb"
defmodule Lib do
def parse(str) do
str
|> String.split("", trim: true)
|> Enum.reduce([], fn(chr, acc) ->
# IO.puts(chr)
parsed = do_parse(chr)
acc ++ [parsed]
end)
end
def debug(chr), do: do_parse(chr)
def parse_r(str), do: parse_r(str, [])
def parse_r("", a... | 22 | 46 | 0.546537 |
d5cf91a2d32a908d7ea4ce8e1d0791f004bf79d8 | 60,959 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/api/spreadsheets.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/api/spreadsheets.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/api/spreadsheets.ex | chingor13/elixir-google-api | 85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b | [
"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 ... | 45.188288 | 196 | 0.630424 |
d5cfaa41f77c0fcadd8e7d1caa0fc4b82d86640c | 1,343 | ex | Elixir | lib/mix/lib/mix/tasks/deps.update.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.update.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.update.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule Mix.Tasks.Deps.Update do
use Mix.Task
@shortdoc "Update the given dependencies"
@moduledoc """
Update the given dependencies.
Since this is a destructive action, update of all dependencies
can only happen by passing the `--all` command line option.
All dependencies are automatically recompil... | 30.522727 | 88 | 0.639613 |
d5cfd200be594dd8f7c33bc4c2f67585c177dcec | 202 | exs | Elixir | priv/repo/migrations/20190918091846_add_trial_end_subscriptions.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | priv/repo/migrations/20190918091846_add_trial_end_subscriptions.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | priv/repo/migrations/20190918091846_add_trial_end_subscriptions.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Repo.Migrations.AddTrialEndSubscriptions do
use Ecto.Migration
def change do
alter table(:subscriptions) do
add(:trial_end, :utc_datetime, null: true)
end
end
end
| 20.2 | 61 | 0.737624 |
d5cfd9c4c4734cb86455dfb0d039d10e9f549fe7 | 2,337 | ex | Elixir | lib/k8s/conn/pki.ex | pedep/k8s | 7390339e1f7d9a773ef54a761552a33373b31e25 | [
"MIT"
] | null | null | null | lib/k8s/conn/pki.ex | pedep/k8s | 7390339e1f7d9a773ef54a761552a33373b31e25 | [
"MIT"
] | null | null | null | lib/k8s/conn/pki.ex | pedep/k8s | 7390339e1f7d9a773ef54a761552a33373b31e25 | [
"MIT"
] | null | null | null | defmodule K8s.Conn.PKI do
@moduledoc """
Retrieves information from certificates
"""
alias K8s.Conn
alias K8s.Conn.PKI
@private_key_atoms [
:RSAPrivateKey,
:DSAPrivateKey,
:ECPrivateKey,
:PrivateKeyInfo
]
@doc """
Reads the certificate from PEM file or base64 encoding
"""
@spec ... | 23.37 | 86 | 0.662816 |
d5cfdc54826bd9542956bac5c04a600b79facc88 | 1,459 | exs | Elixir | test/acceptance/w3c-test-suites/distinct_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | test/acceptance/w3c-test-suites/distinct_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | test/acceptance/w3c-test-suites/distinct_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.W3C.TestSuite.DistinctTest do
@moduledoc """
The W3C SPARQL 1.0 cast test cases for DISTINCT.
<https://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/>
"""
use SPARQL.W3C.TestSuite.Case, async: false
@test_suite {"1.0", "distinct"}
@manifest_graph TestSuite.manifest_graph(@test_s... | 37.410256 | 132 | 0.64976 |
d5d032ccc0052797bd32cb0b59829633d02ba0d1 | 876 | ex | Elixir | clients/vault/lib/google_api/vault/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.444444 | 74 | 0.756849 |
d5d07883c3dd3cda26520826aeeedeaa25c01ff8 | 4,040 | ex | Elixir | apps/cli/test/support/cli/mock_http_client.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/cli/test/support/cli/mock_http_client.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/cli/test/support/cli/mock_http_client.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule CLI.MockHttpClient do
@moduledoc """
Simple mock client used instead of Ethereumex.HttpClient
"""
@blocks [
%{
"difficulty" => "0x100000",
"extraData" => "0x3535353535353535353535353535353535353535353535353535353535353535",
"gasLimit" => "0x1000000",
"gasUsed" => "0x0",
... | 49.268293 | 525 | 0.762624 |
d5d07d491eccd623964140bb35f55cc066616b35 | 545 | ex | Elixir | lib/bitcoin/key/public.ex | rosettacash/book | 2937c90e2c3595984e6f5eee91eb454f03b82ef0 | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/key/public.ex | rosettacash/book | 2937c90e2c3595984e6f5eee91eb454f03b82ef0 | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/key/public.ex | rosettacash/book | 2937c90e2c3595984e6f5eee91eb454f03b82ef0 | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Key.Public do
@moduledoc """
Public key operations.
"""
use Bitcoin.Common
alias Bitcoin.Crypto
alias Bitcoin.Base58Check
@type t :: binary
@doc """
Convert public key into a Bitcoin address.
Details can be found here: https://en.bitcoin.it/wiki/Technical_background_of_version... | 20.185185 | 107 | 0.689908 |
d5d0b85590626d8411a684160fb558b3de6fda9c | 9,911 | exs | Elixir | test/mix/tasks/hex.outdated_test.exs | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/hex.outdated_test.exs | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:19:59.000Z | 2021-06-25T15:19:59.000Z | test/mix/tasks/hex.outdated_test.exs | sudix/hex | f739a57d8829ea0b0f7759c164dc9149c3340e49 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.OutdatedTest do
use HexTest.Case
@moduletag :integration
defmodule OutdatedDeps.MixProject do
def project do
[
app: :outdated_app,
version: "0.0.2",
deps: [
{:bar, "0.1.0"},
{:ex_doc, "~> 0.0.1"}
]
]
end
end
defm... | 24.715711 | 87 | 0.445263 |
d5d0c0da303b29c3ca9024aaad0befac88541721 | 2,710 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/web_app.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_management/lib/google_api/android_management/v1/model/web_app.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_management/lib/google_api/android_management/v1/model/web_app.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.709677 | 248 | 0.698893 |
d5d0d70af251a4f9b643fa701fce61eef9ca3444 | 1,644 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/list_namespaces_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/list_namespaces_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/list_namespaces_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.25 | 111 | 0.773114 |
d5d0e5a70cdc6567f1b98ba0bc73b8eaf601dabe | 470 | ex | Elixir | test/ticket/testTicket/proto/protocol.pb.ex | ArcBlock/forge-python-sdk | 4e72d75d3c06b16554d660860708732c83b5f8b2 | [
"Apache-2.0"
] | 9 | 2019-05-08T01:30:22.000Z | 2020-05-08T22:11:40.000Z | test/ticket/testTicket/proto/protocol.pb.ex | ArcBlock/forge-python-sdk | 4e72d75d3c06b16554d660860708732c83b5f8b2 | [
"Apache-2.0"
] | 22 | 2019-05-14T18:36:17.000Z | 2019-12-24T10:09:42.000Z | test/ticket/testTicket/proto/protocol.pb.ex | ArcBlock/forge-python-sdk | 4e72d75d3c06b16554d660860708732c83b5f8b2 | [
"Apache-2.0"
] | null | null | null | defmodule ForgeAbi.TestTicket do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
row: String.t(),
seat: String.t(),
room: String.t(),
time: String.t(),
name: String.t()
}
defstruct [:row, :seat, :room, :time, :name]
field :row,... | 23.5 | 46 | 0.56383 |
d5d108c8143ce6f0b16421f625345d37130817b2 | 5,318 | ex | Elixir | lib/tempfile.ex | glejeune/tempfile | 00b4174ffc167b644942a66c6c66e67d1a1fdf6b | [
"FSFAP"
] | 1 | 2017-10-16T07:24:27.000Z | 2017-10-16T07:24:27.000Z | lib/tempfile.ex | glejeune/tempfile | 00b4174ffc167b644942a66c6c66e67d1a1fdf6b | [
"FSFAP"
] | null | null | null | lib/tempfile.ex | glejeune/tempfile | 00b4174ffc167b644942a66c6c66e67d1a1fdf6b | [
"FSFAP"
] | null | null | null | defmodule Tempfile do
defexception IOError, message: "unknown error", can_retry: false do
def full_message(me) do
"Tempfile failed: #{me.message}, retriable: #{me.can_retry}"
end
end
defrecord File, io: nil, path: nil, is_open: false
defp randstring(size) do
chars = "abcdefghijklmnopqrstuvw... | 28.287234 | 115 | 0.65551 |
d5d140e39deca99075988533435277550dbff809 | 647 | ex | Elixir | web/controllers/user_controller.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | null | null | null | web/controllers/user_controller.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | 4 | 2015-12-18T20:35:49.000Z | 2015-12-18T20:36:43.000Z | web/controllers/user_controller.ex | cdegroot/clueless | c7f575159a42f55eb843df0e37802e778826c845 | [
"MIT"
] | null | null | null | defmodule Clueless.UserController do
use Clueless.Web, :controller
alias Clueless.User
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.html", users: users)
end
def show(conn, %{"id" => id}) do
user = Repo.get!(User, id)
render(conn, "show.html", user: user)
end
d... | 23.107143 | 60 | 0.630603 |
d5d1461e252471c7e39f15e0bd0207625e401c3c | 1,417 | ex | Elixir | lib/erlef_web/controllers/members/slack_invite_controller.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | lib/erlef_web/controllers/members/slack_invite_controller.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | lib/erlef_web/controllers/members/slack_invite_controller.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule ErlefWeb.Members.SlackInviteController do
use ErlefWeb, :controller
alias Erlef.Accounts
alias Erlef.Accounts.Member
alias Erlef.Admins
def new(conn, _) do
render(conn, "new.html")
end
def create(conn, _) do
member = conn.assigns.current_user
process(conn, member)
end
defp pr... | 28.34 | 94 | 0.685251 |
d5d16793931d9cd17f467272eb2bcc4336935956 | 2,443 | ex | Elixir | lib/wootheex/user_agent.ex | benfreu/wootheex | 8a94da54fcde45c079c253cc055a0b5be8859ff1 | [
"Apache-2.0"
] | 4 | 2020-09-29T17:52:04.000Z | 2021-04-29T05:06:30.000Z | lib/wootheex/user_agent.ex | benfreu/wootheex | 8a94da54fcde45c079c253cc055a0b5be8859ff1 | [
"Apache-2.0"
] | 1 | 2020-11-12T01:04:52.000Z | 2020-11-13T18:21:38.000Z | lib/wootheex/user_agent.ex | benfreu/wootheex | 8a94da54fcde45c079c253cc055a0b5be8859ff1 | [
"Apache-2.0"
] | 2 | 2021-04-28T11:58:04.000Z | 2021-05-25T08:32:19.000Z | defmodule Wootheex.UserAgent do
@type t :: %__MODULE__{
category: Wootheex.category(),
browser_name: Wootheex.browser_name(),
browser_type: Wootheex.browser_type(),
browser_version: Wootheex.browser_version(),
os: Wootheex.os(),
os_version: Wootheex.os_version()... | 27.144444 | 160 | 0.561195 |
d5d17c98e7afec085ac41dd3ef3b233915cc9447 | 1,864 | exs | Elixir | test/client_test.exs | royels/Pubmates | 656d66080c0a49b39d55eca94d8d8400f79e5814 | [
"MIT"
] | 3 | 2016-02-27T23:37:15.000Z | 2016-03-15T15:08:41.000Z | test/client_test.exs | royels/Pubmates | 656d66080c0a49b39d55eca94d8d8400f79e5814 | [
"MIT"
] | 1 | 2017-06-22T04:36:11.000Z | 2017-06-22T12:58:46.000Z | test/client_test.exs | royels/Pubmates | 656d66080c0a49b39d55eca94d8d8400f79e5814 | [
"MIT"
] | 2 | 2017-03-09T21:54:52.000Z | 2019-04-03T19:08:43.000Z |
defmodule ClientTest do
use ExUnit.Case
doctest Pubmates
test "get delivery quote" do
response = Pubmates.Client.get_delivery_quote(System.get_env("TEST_CUSTOMER_ID"), "20 McAllister St, San Francisco, CA", "101 Market St, San Francisco, CA")
assert(Map.fetch!(response.body, "kind") == "delivery_quote"... | 35.846154 | 161 | 0.718884 |
d5d19f2305bf4b8baaa24ea3039888669173be65 | 1,426 | ex | Elixir | lib/bitstamp/bitstamp.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | lib/bitstamp/bitstamp.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | lib/bitstamp/bitstamp.ex | HPJM/crypto_apis | fe8b191a7b95ec3d066bf1881277c3f920df1457 | [
"MIT"
] | null | null | null | defmodule CryptoApis.Bitstamp do
@moduledoc """
https://www.bitstamp.net/api/
"""
@root_url "https://www.bitstamp.net/api/v2"
alias CryptoApis.Pair
defp process_pair(pair) do
pair |> Pair.new() |> Pair.join(downcase?: true)
end
defp get(type, pair, opts) do
pair = process_pair(pair)
typ... | 19.805556 | 81 | 0.600982 |
d5d1b5c5c2473fc32ce753f438ea94ed961791a9 | 31,375 | ex | Elixir | clients/people/lib/google_api/people/v1/api/people.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/api/people.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/api/people.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 ... | 44.190141 | 196 | 0.613896 |
d5d1b67997b8963b9ca08eb136456655e6739c4f | 6,340 | exs | Elixir | test/student_list_web/controllers/user_auth_test.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | 1 | 2021-06-27T20:02:11.000Z | 2021-06-27T20:02:11.000Z | test/student_list_web/controllers/user_auth_test.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | test/student_list_web/controllers/user_auth_test.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | defmodule StudentListWeb.UserAuthTest do
use StudentListWeb.ConnCase, async: true
alias StudentList.Accounts
alias StudentListWeb.UserAuth
import StudentList.AccountsFixtures
@remember_me_cookie "_student_list_web_user_remember_me"
setup %{conn: conn} do
conn =
conn
|> Map.replace!(:secre... | 36.436782 | 98 | 0.677603 |
d5d1b9833b73af4801dfb0b703bac5e2dabc8874 | 195 | exs | Elixir | test/test_helper.exs | amalbuquerque/ecto-explorer | 0c1d4daeae158de7dbee6ddbc48ffd68c9908b35 | [
"MIT"
] | 7 | 2021-07-17T16:03:06.000Z | 2022-01-21T13:21:52.000Z | test/test_helper.exs | amalbuquerque/ecto-explorer | 0c1d4daeae158de7dbee6ddbc48ffd68c9908b35 | [
"MIT"
] | null | null | null | test/test_helper.exs | amalbuquerque/ecto-explorer | 0c1d4daeae158de7dbee6ddbc48ffd68c9908b35 | [
"MIT"
] | null | null | null | IO.puts("[TestHelper] Creating and filling tables")
# create tables and fill seed data needed for tests
EctoExplorer.DbSeeder.create_tables()
EctoExplorer.DbSeeder.fill_tables()
ExUnit.start()
| 24.375 | 51 | 0.8 |
d5d21ab985f1714bde97e27d08f2154faaf81196 | 4,873 | exs | Elixir | test/bankapi_web/controllers/operation_controller_test.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 4 | 2020-05-05T18:37:28.000Z | 2022-01-05T00:56:19.000Z | test/bankapi_web/controllers/operation_controller_test.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 21 | 2019-12-01T15:32:02.000Z | 2019-12-19T13:10:36.000Z | test/bankapi_web/controllers/operation_controller_test.exs | t00lmaker/elixir-bank | 41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0 | [
"MIT"
] | 2 | 2020-09-12T16:07:11.000Z | 2020-12-11T06:46:45.000Z | defmodule BankWeb.OperationControllerTest do
use BankWeb.ConnCase
alias Bank.Repo
alias Bank.Clients
alias Bank.Accounts
alias Bank.Operations
alias Bank.Operations.Operation
import Bank.AuthTestHelper, only: [api_token: 1]
@client_attrs %{
name: "Luan Pontes",
social_id: "3",
birth_date:... | 27.6875 | 94 | 0.611328 |
d5d21c10edc9b372d3653582546ee79b4c9ce4ac | 952 | ex | Elixir | lib/ex338/fantasy_teams/standings_history.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 17 | 2016-12-22T06:39:26.000Z | 2021-01-20T13:51:13.000Z | lib/ex338/fantasy_teams/standings_history.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 608 | 2016-08-06T18:57:58.000Z | 2022-03-01T02:48:17.000Z | lib/ex338/fantasy_teams/standings_history.ex | axelclark/ex338 | 3fb3c260d93bda61f7636ee1a677770d2dc1b89a | [
"MIT"
] | 6 | 2017-11-21T22:35:45.000Z | 2022-01-11T21:37:40.000Z | defmodule Ex338.FantasyTeams.StandingsHistory do
@moduledoc """
Functions to generate league standings history
"""
@months ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]
def get_dates_for_league(league) do
%{year: year} = league
Enum.map(@months, &format_date(&1, year))
e... | 23.8 | 82 | 0.630252 |
d5d227c1f239f030f6bbca32b45c18ae33a7d740 | 6,916 | exs | Elixir | .credo.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | .credo.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | .credo.exs | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.209945 | 114 | 0.612782 |
d5d2341f97f7ae5edada6fffd879318aa2f68e3b | 714 | ex | Elixir | elixir/langxpay/lib/langxpay_web/gettext.ex | ednailson/languages-experiments | 309a0360c6c26a3c95f3c8e25fe37bc7a5cbb8d4 | [
"MIT"
] | null | null | null | elixir/langxpay/lib/langxpay_web/gettext.ex | ednailson/languages-experiments | 309a0360c6c26a3c95f3c8e25fe37bc7a5cbb8d4 | [
"MIT"
] | null | null | null | elixir/langxpay/lib/langxpay_web/gettext.ex | ednailson/languages-experiments | 309a0360c6c26a3c95f3c8e25fe37bc7a5cbb8d4 | [
"MIT"
] | null | null | null | defmodule LangxpayWeb.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 LangxpayWeb.Gettext
# Simple translation
gettext("Here is... | 28.56 | 72 | 0.679272 |
d5d23ef9309f535a3c217a0f04b46fe9b9d142d1 | 1,822 | exs | Elixir | mix.exs | 7hoenix/ex_aws | 2a3b34a2ab59aae50e09c61770b9a5dacabd8b3c | [
"MIT"
] | null | null | null | mix.exs | 7hoenix/ex_aws | 2a3b34a2ab59aae50e09c61770b9a5dacabd8b3c | [
"MIT"
] | null | null | null | mix.exs | 7hoenix/ex_aws | 2a3b34a2ab59aae50e09c61770b9a5dacabd8b3c | [
"MIT"
] | null | null | null | defmodule ExAws.Mixfile do
use Mix.Project
@source_url "https://github.com/ex-aws/ex_aws"
@version "2.1.9"
def project do
[
app: :ex_aws,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
description: "Generic AWS client",
name: "ExAws",
... | 24.293333 | 73 | 0.543908 |
d5d242e85706da4503ab8fdec3d4b01a073ec936 | 907 | exs | Elixir | phoenix/test/models/saml_sign_test.exs | sap-archive/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | 1 | 2020-01-03T16:00:09.000Z | 2020-01-03T16:00:09.000Z | phoenix/test/models/saml_sign_test.exs | SAP/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | null | null | null | phoenix/test/models/saml_sign_test.exs | SAP/jam-login-microservice | 9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2 | [
"Apache-2.0"
] | null | null | null | defmodule LoginProxy.SamlSign.Test do
use ExUnit.Case
require Logger
setup do
{:ok, sp, _idp} = LoginProxy.EsamlSetup.setup_esaml(%{base: "http://jam.test2.sapkora.ca",
idp_metadata_url: "https://accounts400.sap.com/saml2/metadata/accounts.sap.com",
issuer: "jamclm... | 37.791667 | 108 | 0.664829 |
d5d28d2ad676cb432a110698a5f78b0297589ec6 | 1,576 | ex | Elixir | clients/composer/lib/google_api/composer/v1/model/cidr_block.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/cidr_block.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/cidr_block.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... | 31.52 | 110 | 0.718274 |
d5d2ad3c08b2e4f6daa4c432c53ba65d2e5bd941 | 4,266 | ex | Elixir | lib/stripe/core_resources/webhook_endpoint.ex | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | lib/stripe/core_resources/webhook_endpoint.ex | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | lib/stripe/core_resources/webhook_endpoint.ex | erhlee-bird/stripity_stripe | 8c4c5712f391bf76e0a168125882c85048d3192f | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.WebhookEndpoint do
@moduledoc """
Work with [Stripe `webhook_endpoint` objects](https://stripe.com/docs/api/webhook_endpoints).
You can:
- [Create a webhook_endpoint](https://stripe.com/docs/api/webhook_endpoints/create)
- [Retrieve a webhook_endpoint](https://stripe.com/docs/api/webhook_end... | 30.913043 | 98 | 0.565635 |
d5d2be9c98a4c6790b73cae3a472d74e14db1130 | 1,509 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_upload_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_upload_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/images_upload_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.106383 | 90 | 0.750166 |
d5d2d9ab0f9e51828a48e12e0f9bff98830d8c9f | 991 | exs | Elixir | bench/witchcraft/semigroup/list_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | bench/witchcraft/semigroup/list_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | bench/witchcraft/semigroup/list_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | defmodule Witchcraft.Semigroup.ListBench do
@moduledoc false
use Benchfella
use Witchcraft.Semigroup
#########
# Setup #
#########
# ---------- #
# Data Types #
# ---------- #
@list_a 11..100 |> Enum.to_list() |> Enum.shuffle()
@list_b 99..999 |> Enum.to_list() |> Enum.shuffle()
##########
... | 20.645833 | 61 | 0.503532 |
d5d301c1179eca4f38d891f686e5606e246f6b21 | 7,074 | ex | Elixir | lib/pow/ecto/context.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | null | null | null | lib/pow/ecto/context.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | null | null | null | lib/pow/ecto/context.ex | randaalex/pow | 2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b | [
"MIT"
] | null | null | null | defmodule Pow.Ecto.Context do
@moduledoc """
Handles pow users context for user.
## Usage
This module will be used by pow by default. If you
wish to have control over context methods, you can
do configure `lib/my_project/users/users.ex`
the following way:
defmodule MyApp.Users do
use Pow.... | 28.756098 | 115 | 0.663981 |
d5d30e4732091ace965d1dcc05ff0c635ee69716 | 17,746 | ex | Elixir | lib/elixir/lib/float.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2019-06-27T08:47:13.000Z | 2019-06-27T08:47:13.000Z | lib/elixir/lib/float.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/float.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [round: 1]
defmodule Float do
@moduledoc """
Functions for working with floating-point numbers.
## Kernel functions
There are functions related to floating-point numbers on the `Kernel` module
too. Here is a list of them:
* `Kernel.round/1`: rounds a number to the nearest intege... | 30.077966 | 105 | 0.651471 |
d5d31fb2500c5378ef3893aac56994356d3f2de8 | 1,299 | ex | Elixir | lib/web/controllers/team_controller.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 5 | 2019-08-29T20:22:25.000Z | 2020-04-01T17:40:48.000Z | lib/web/controllers/team_controller.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 34 | 2019-03-06T17:53:29.000Z | 2021-09-01T01:25:23.000Z | lib/web/controllers/team_controller.ex | BaltimoreCity/IdeaPortal | dc1c775dfaec2aac974b821cd3700d76770c1e76 | [
"MIT"
] | 2 | 2020-01-10T22:12:36.000Z | 2021-01-22T04:37:45.000Z | defmodule Web.TeamController do
use Web, :controller
alias IdeaPortal.Accounts
alias IdeaPortal.Teams
plug(Web.Plugs.FetchPage, [per: 12] when action in [:index])
action_fallback(Web.FallbackController)
def index(conn, _params) do
%{page: page, per: per} = conn.assigns
%{page: teams, pagination:... | 24.055556 | 76 | 0.597383 |
d5d3378de1bd2a54c975addc12a03e83f69f1c85 | 3,200 | ex | Elixir | lib/faker/file.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | lib/faker/file.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | lib/faker/file.ex | pharosproduction/faker | 91deca51b3dc4bf8de75f81480e9f8880aa93886 | [
"MIT"
] | null | null | null | defmodule Faker.File do
alias Faker.Lorem
@moduledoc """
Functions for generating file related data
"""
@extensions %{
image: ~w(bmp gif jpeg jpg png tiff),
audio: ~w(flac mp3 wav),
text: ~w(css csv html js json txt),
video: ~w(mp4 avi mov webm),
office: ~w(doc docx xls xlsx ppt pptx odt... | 30.769231 | 378 | 0.70375 |
d5d3425a759c58b1e69eb1b3c7906fd66bf38d77 | 126 | exs | Elixir | mom/test/mom_test.exs | yuriscosta/tads-sistemas-distribuidos | 1bdcd3ff87bb5ecc2a722ef70bb4e7fd7c8540da | [
"MIT"
] | 1 | 2017-10-18T03:04:49.000Z | 2017-10-18T03:04:49.000Z | mom/test/mom_test.exs | yuriscosta/tads-sistemas-distribuidos | 1bdcd3ff87bb5ecc2a722ef70bb4e7fd7c8540da | [
"MIT"
] | 1 | 2020-06-05T17:51:11.000Z | 2020-06-05T17:51:11.000Z | mom/test/mom_test.exs | yuriscosta/tads-sistemas-distribuidos | 1bdcd3ff87bb5ecc2a722ef70bb4e7fd7c8540da | [
"MIT"
] | null | null | null | defmodule MomTest do
use ExUnit.Case
doctest Mom
test "greets the world" do
assert Mom.hello() == :world
end
end
| 14 | 32 | 0.68254 |
d5d370235e5afa2c7af06e4b3f60badcf1c886cd | 2,917 | exs | Elixir | priv/repo/migrations/00000000000001_providers.exs | runasio/sna | 39127ec4c2c9b97fd4583b2683fce634fe74613b | [
"Apache-2.0"
] | 6 | 2019-07-16T13:34:33.000Z | 2020-08-25T08:51:01.000Z | priv/repo/migrations/00000000000001_providers.exs | runasio/sna | 39127ec4c2c9b97fd4583b2683fce634fe74613b | [
"Apache-2.0"
] | 3 | 2019-07-17T14:18:50.000Z | 2020-06-06T08:07:45.000Z | priv/repo/migrations/00000000000001_providers.exs | runasio/sna | 39127ec4c2c9b97fd4583b2683fce634fe74613b | [
"Apache-2.0"
] | 2 | 2019-07-17T05:42:04.000Z | 2020-05-06T11:12:53.000Z | # --------------------------------------------------------------------
# Ecto.Migration Database File for SNA
#
# You can deploy this migration file by executing this code. You need
# superadmin access (right to create/drop database) for the first
# command.
#
# #!/bin/sh
# # drop the content of the database
# mi... | 32.775281 | 70 | 0.516969 |
d5d37cc7efd363082b59ddb81b70fd5edc131f12 | 11,303 | ex | Elixir | lib/credo/code/strings.ex | jc00ke/credo | bd0be751888dea402af6b16cbb675b53eaa49c83 | [
"MIT"
] | null | null | null | lib/credo/code/strings.ex | jc00ke/credo | bd0be751888dea402af6b16cbb675b53eaa49c83 | [
"MIT"
] | null | null | null | lib/credo/code/strings.ex | jc00ke/credo | bd0be751888dea402af6b16cbb675b53eaa49c83 | [
"MIT"
] | null | null | null | defmodule Credo.Code.Strings do
@moduledoc """
This module lets you strip strings from source code.
"""
alias Credo.Code.InterpolationHelper
alias Credo.SourceFile
string_sigil_delimiters = [
{"(", ")"},
{"[", "]"},
{"{", "}"},
{"<", ">"},
{"|", "|"},
{"\"", "\""},
{"'", "'"},
... | 25.688636 | 95 | 0.568168 |
d5d37d6b155e824d3fa99fef42da35e994302899 | 968 | ex | Elixir | apps/tai/lib/tai/venues/config.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/venues/config.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venues/config.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.Venues.Config do
@type config :: Tai.Config.t()
@spec parse_adapters() :: map
@spec parse_adapters(config) :: map
def parse_adapters(%Tai.Config{} = config \\ Tai.Config.parse()) do
config.venues
|> Enum.reduce(
%{},
fn
{id, params}, acc ->
if Keyword.get(par... | 30.25 | 76 | 0.532025 |
d5d3bfd47f2d04dbf19607a47daaed46d9f12ae1 | 3,237 | ex | Elixir | test/support/cobol_to_elixir_case.ex | TheFirstAvenger/cobol_to_elixir | 549528aed3dd1de8a14bb3a763539b5cbf714811 | [
"MIT"
] | 65 | 2021-08-10T19:16:25.000Z | 2022-02-23T01:38:13.000Z | test/support/cobol_to_elixir_case.ex | TheFirstAvenger/cobol_to_elixir | 549528aed3dd1de8a14bb3a763539b5cbf714811 | [
"MIT"
] | 1 | 2021-08-15T21:59:54.000Z | 2021-08-20T20:30:06.000Z | test/support/cobol_to_elixir_case.ex | TheFirstAvenger/cobol_to_elixir | 549528aed3dd1de8a14bb3a763539b5cbf714811 | [
"MIT"
] | 1 | 2021-08-21T19:53:13.000Z | 2021-08-21T19:53:13.000Z | defmodule CobolToElixirCase do
import ExUnit.CaptureIO
alias CobolToElixir.Util
require ExUnit.Assertions
require Logger
defmacro __using__([]) do
quote do
use ExUnit.Case
import CobolToElixirCase
end
end
@doc """
Compiles the cobol code and ensures there are no errors/warnings
... | 29.972222 | 113 | 0.674699 |
d5d419c9219edf4de5bd88d0ea4bc965b9c7673f | 705 | ex | Elixir | lib/betex_web/gettext.ex | esl/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 1 | 2021-06-15T08:18:50.000Z | 2021-06-15T08:18:50.000Z | lib/betex_web/gettext.ex | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | null | null | null | lib/betex_web/gettext.ex | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 2 | 2021-06-23T16:35:04.000Z | 2021-06-23T16:35:44.000Z | defmodule BetexWeb.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 BetexWeb.Gettext
# Simple translation
gettext("Here is the s... | 28.2 | 72 | 0.675177 |
d5d4408e8bdef4603d579709bd4de65d8337d7df | 6,061 | ex | Elixir | lib/sanbase_web/graphql/schema/queries/blockchain_address_queries.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/schema/queries/blockchain_address_queries.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/schema/queries/blockchain_address_queries.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Schema.BlockchainAddressQueries do
use Absinthe.Schema.Notation
import SanbaseWeb.Graphql.Cache, only: [cache_resolve: 1]
alias SanbaseWeb.Graphql.Complexity
alias SanbaseWeb.Graphql.Middlewares.JWTAuth
alias SanbaseWeb.Graphql.Middlewares.AccessControl
alias SanbaseWeb.Graphq... | 32.940217 | 97 | 0.717538 |
d5d47a64502e021d79f78e29ebf4ef967877b9b9 | 2,245 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_type_time_of_day.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_type_time_of_day.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_type_time_of_day.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... | 37.416667 | 131 | 0.701114 |
d5d47adec236bb42037c95ae4cc3327cce6062ff | 819 | ex | Elixir | lib/derivco_web/controllers/team_controller.ex | AdolfodelSel/Derivco | ad3090208dfc9e11415825f5ce1374ef3f8c2985 | [
"MIT"
] | null | null | null | lib/derivco_web/controllers/team_controller.ex | AdolfodelSel/Derivco | ad3090208dfc9e11415825f5ce1374ef3f8c2985 | [
"MIT"
] | 2 | 2021-03-09T15:53:17.000Z | 2021-05-10T09:50:18.000Z | lib/derivco_web/controllers/team_controller.ex | AdolfodelSel/Derivco | ad3090208dfc9e11415825f5ce1374ef3f8c2985 | [
"MIT"
] | null | null | null | defmodule DerivcoWeb.TeamController do
use DerivcoWeb, :controller
alias Derivco.Database.DerivcoDatabase
alias Derivco.Helpers.ResponseBuilder
alias Derivco.Helpers.RequestFilter
@protoTypes Application.get_env(:derivco, :protoTypes, []) |> Enum.into(%{})
@doc """
Controller of the option to get the l... | 26.419355 | 78 | 0.673993 |
d5d4841d53ec83d457e6617ca12eefcf0b626c56 | 452 | ex | Elixir | lib/calm/www/router.ex | did-app/project-calm | bc2d4618497622783ea47629fc146195ff261522 | [
"Apache-2.0"
] | 3 | 2020-04-20T17:02:29.000Z | 2020-04-26T13:49:31.000Z | lib/calm/www/router.ex | did-app/project-calm | bc2d4618497622783ea47629fc146195ff261522 | [
"Apache-2.0"
] | 2 | 2020-04-20T10:31:55.000Z | 2021-05-11T10:52:52.000Z | lib/calm/www/router.ex | did-app/project-calm | bc2d4618497622783ea47629fc146195ff261522 | [
"Apache-2.0"
] | null | null | null | defmodule Calm.WWW.Router do
use Raxx.Router
alias Calm.WWW.Actions
section([{Raxx.Logger, Raxx.Logger.setup(level: :info)}], [
{%{path: []}, Actions.HomePage},
{%{path: ["t", _thread_id]}, Actions.ThreadPage},
{%{path: ["t", _thread_id, "post"]}, Actions.PostMessage},
{%{path: ["i", _id, _secret... | 28.25 | 62 | 0.623894 |
d5d4a11a6f0ae904dbc581b3a1d7dcdacd892570 | 1,201 | exs | Elixir | mix.exs | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 37 | 2018-04-17T09:37:48.000Z | 2022-01-23T23:43:16.000Z | mix.exs | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 2 | 2018-08-21T17:42:58.000Z | 2019-11-13T04:42:24.000Z | mix.exs | sb8244/elixir_response_snapshot | 0f1e84f258678167e28869bbb041757728acd878 | [
"MIT"
] | 3 | 2018-04-22T13:34:21.000Z | 2019-11-13T04:33:23.000Z | defmodule ResponseSnapshot.MixProject do
use Mix.Project
def project do
[
app: :response_snapshot,
version: "1.0.1",
elixir: "~> 1.6",
description: description(),
package: package(),
deps: deps(),
name: "Response Snapshot",
source_url: github_url()
]
end
... | 22.660377 | 87 | 0.601166 |
d5d4af7b4a455cf38176cf647473c507b78a081f | 77 | ex | Elixir | lib/between.ex | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | null | null | null | lib/between.ex | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | 70 | 2020-01-07T01:21:38.000Z | 2021-06-18T02:57:39.000Z | lib/between.ex | lupinthe14th/codewars | 5c71a1be6dd5c42a6217d70e5cfcd43c6c016ac7 | [
"MIT"
] | null | null | null | defmodule Between do
def between(a, b) do
Enum.to_list(a..b)
end
end
| 12.833333 | 22 | 0.662338 |
d5d4f7484ce9b3d430c4c185503baced5c2aa50b | 534 | ex | Elixir | nevernote/lib/nevernote_web/auth/auth_pipeline.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | 4 | 2019-01-07T09:15:23.000Z | 2021-06-18T02:56:14.000Z | nevernote/lib/nevernote_web/auth/auth_pipeline.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | nevernote/lib/nevernote_web/auth/auth_pipeline.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | defmodule NevernoteWeb.Guardian.AuthPipeline do
use Guardian.Plug.Pipeline,
otp_app: :nevernote,
module: Nevernote.Guardian,
error_handler: Nevernote.Guardian.AuthErrorHandler
# If there is a session token, validate it
plug(Guardian.Plug.VerifySession, claims: %{"typ" => "access"})
# If there is an... | 38.142857 | 65 | 0.747191 |
d5d501abde7c9457180f3f69ac9655e2d10b49b8 | 2,476 | ex | Elixir | elixir/lib/homework/transactions.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/lib/homework/transactions.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | elixir/lib/homework/transactions.ex | hogiyogi597/web-homework | d394458b7e0761301451ed51f69fd6a9629fba76 | [
"MIT"
] | null | null | null | defmodule Homework.Transactions do
@moduledoc """
The Transactions context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Transactions.Transaction
alias Homework.Pagination
@doc """
Returns the list of transactions.
## Examples
iex> list_transactions([])
[%Tr... | 20.46281 | 71 | 0.654685 |
d5d545381c0e7be35dac9faa1927a178d02fa9dd | 1,686 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/geo_point.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/geo_point.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/geo_point.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 31.222222 | 95 | 0.718861 |
d5d55d6955f958fa1a4b136ccd35958c40661cca | 1,179 | ex | Elixir | lib/requestbx_web/channels/user_socket.ex | semlabs/requestbx | b9dfb33efd04f067ede1a8e2659f84c92abbed67 | [
"MIT"
] | null | null | null | lib/requestbx_web/channels/user_socket.ex | semlabs/requestbx | b9dfb33efd04f067ede1a8e2659f84c92abbed67 | [
"MIT"
] | 1 | 2018-01-19T15:23:36.000Z | 2018-01-19T15:23:36.000Z | lib/requestbx_web/channels/user_socket.ex | semlabs/requestbx | b9dfb33efd04f067ede1a8e2659f84c92abbed67 | [
"MIT"
] | null | null | null | defmodule RequestbxWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", RequestbxWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify a... | 31.026316 | 84 | 0.704835 |
d5d59abe51b6ade58497f55acf61aa2ade20b4b2 | 1,514 | ex | Elixir | test/support/data_case.ex | lulabad/ager | aec17e74819367e634746c8e22fc3584d78286d8 | [
"MIT"
] | 1 | 2021-04-04T07:15:07.000Z | 2021-04-04T07:15:07.000Z | test/support/data_case.ex | lulabad/ager | aec17e74819367e634746c8e22fc3584d78286d8 | [
"MIT"
] | null | null | null | test/support/data_case.ex | lulabad/ager | aec17e74819367e634746c8e22fc3584d78286d8 | [
"MIT"
] | null | null | null | defmodule Ager.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to the ... | 27.035714 | 77 | 0.684941 |
d5d5b7f021ef10d7e8996ae0c2aeef39bcb58ad1 | 1,659 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.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... | 34.5625 | 167 | 0.757685 |
d5d5b8c7c246dfa600a78db2a1551dc209ef7e0d | 1,791 | ex | Elixir | raspberry_phoenix/web/web.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | raspberry_phoenix/web/web.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | raspberry_phoenix/web/web.ex | raymondboswel/raspberry_phoenix | ec0594c765db4405f2ec1f876ef9f76e685fcea4 | [
"Apache-2.0"
] | null | null | null | defmodule RaspberryPhoenix.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use RaspberryPhoenix.Web, :controller
use RaspberryPhoenix.Web, :view
The definitions below will be executed for every view,
contro... | 21.841463 | 88 | 0.67895 |
d5d60a368b04335e59e2a8066d4f41368c214710 | 8,470 | exs | Elixir | test/vintage_net_wizard/web/api_test.exs | jmerriweather/vintage_net_wizard | dc67e75d11911dec536571344e00d0e5ed250b7f | [
"Apache-2.0"
] | null | null | null | test/vintage_net_wizard/web/api_test.exs | jmerriweather/vintage_net_wizard | dc67e75d11911dec536571344e00d0e5ed250b7f | [
"Apache-2.0"
] | 1 | 2020-03-05T12:21:10.000Z | 2020-03-05T12:21:10.000Z | test/vintage_net_wizard/web/api_test.exs | magaloop/vintage_net_wizard | 43edd17fd82cde16846a3ca2870bfae57f5577ad | [
"Apache-2.0"
] | null | null | null | defmodule VintageNetWizard.Web.ApiTest do
use ExUnit.Case, async: true
use Plug.Test
alias VintageNetWizard.Web.Api
alias VintageNetWizard.Backend
alias VintageNetWizard.WiFiConfiguration.{WPAPersonal, NoSecurity, PEAPEnterprise}
@opts Api.init([])
test "get a configuration status" do
{_conn, statu... | 24.911765 | 97 | 0.604132 |
d5d61aa51e78643ee79b3484dd0e983b96d5a741 | 1,229 | ex | Elixir | lib/seely/controllers/echo_controller.ex | iboard/seely | 2389a7543d9e9897855f73e35abd6fec9abf95f3 | [
"MIT"
] | 1 | 2022-03-26T14:53:56.000Z | 2022-03-26T14:53:56.000Z | lib/seely/controllers/echo_controller.ex | iboard/seely | 2389a7543d9e9897855f73e35abd6fec9abf95f3 | [
"MIT"
] | null | null | null | lib/seely/controllers/echo_controller.ex | iboard/seely | 2389a7543d9e9897855f73e35abd6fec9abf95f3 | [
"MIT"
] | null | null | null | defmodule Seely.EchoController do
@moduledoc """
The EchoController is used to echo whatever the user inputs after the command
CLI> echo "Hello, world!"
{:ok, "Hello, world!}
--upper and --trim are examples of options you can use.
"""
@doc ~s"""
Echo the `string`. Possible options are `--trim... | 24.098039 | 79 | 0.620016 |
d5d61dcf4f2a70b34f179a23e6937411372827c7 | 1,795 | exs | Elixir | lib/elixir/test/elixir/access_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/access_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/access_test.exs | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule AccessTest do
use ExUnit.Case, async: true
test :list do
assert [foo: :bar][:foo] == :bar
assert [foo: [bar: :baz]][:foo][:bar] == :baz
assert [foo: [bar: :baz]][:fuu][:bar] == nil
end
test :nil do
assert nil[:foo] == nil
end
# Test ... | 23.618421 | 132 | 0.650696 |
d5d6272c3da5941b62c746c7c5890f77fea20550 | 34 | ex | Elixir | lib/advent_of_code_2016.ex | fboyer/advent_of_code_2016 | ffe02f093298fa60a5547dc6a9391c1acfb2b325 | [
"MIT"
] | null | null | null | lib/advent_of_code_2016.ex | fboyer/advent_of_code_2016 | ffe02f093298fa60a5547dc6a9391c1acfb2b325 | [
"MIT"
] | null | null | null | lib/advent_of_code_2016.ex | fboyer/advent_of_code_2016 | ffe02f093298fa60a5547dc6a9391c1acfb2b325 | [
"MIT"
] | null | null | null | defmodule AdventOfCode2016 do
end
| 11.333333 | 29 | 0.882353 |
d5d62fda7f25082c612973ded127999bec7fcb7b | 1,431 | exs | Elixir | mix.exs | kianmeng/librin | d9a06d68bd09dd5abbcbb3d20a5de14ee3c6ea5a | [
"MIT"
] | null | null | null | mix.exs | kianmeng/librin | d9a06d68bd09dd5abbcbb3d20a5de14ee3c6ea5a | [
"MIT"
] | null | null | null | mix.exs | kianmeng/librin | d9a06d68bd09dd5abbcbb3d20a5de14ee3c6ea5a | [
"MIT"
] | null | null | null | defmodule HashRing.Mixfile do
use Mix.Project
def project do
[
app: :libring,
version: "1.5.0",
elixir: "~> 1.6",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: "A fast consistent hash ring implementation in Elixir",
package: package(... | 24.254237 | 98 | 0.545073 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.