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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9336b88c525988ab839fa8071270f29e4e7c4ade | 548 | ex | Elixir | lib/exbee/frames/generic_frame.ex | msm/exbee | b99b7996c5da9092472371b8bc0bd5e7c2daa3f6 | [
"Apache-2.0"
] | 6 | 2017-06-18T14:29:59.000Z | 2019-07-28T15:47:02.000Z | lib/exbee/frames/generic_frame.ex | msm/exbee | b99b7996c5da9092472371b8bc0bd5e7c2daa3f6 | [
"Apache-2.0"
] | 3 | 2018-01-28T22:00:06.000Z | 2019-10-14T11:14:47.000Z | lib/exbee/frames/generic_frame.ex | msm/exbee | b99b7996c5da9092472371b8bc0bd5e7c2daa3f6 | [
"Apache-2.0"
] | 4 | 2016-09-22T02:50:34.000Z | 2019-10-14T07:43:38.000Z | defmodule Exbee.GenericFrame do
@type t :: %__MODULE__{type: integer, payload: binary}
defstruct [:type, :payload]
defimpl Exbee.DecodableFrame do
def decode(frame, encoded_binary) do
case encoded_binary do
<<type::8, payload::binary>> -> {:ok, %{frame | type: type, payload: payload}}
_... | 24.909091 | 86 | 0.64781 |
9336da3c82147bbd5185cd7a2cff2e7c2b0202c4 | 3,296 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/change.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/change.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/change.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 42.25641 | 205 | 0.695085 |
9336fb38c836f151f49a704c90213c7560bc38eb | 311 | ex | Elixir | lib/web/views/admin/announcement_view.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/views/admin/announcement_view.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/views/admin/announcement_view.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.Admin.AnnouncementView do
use Web, :view
alias Web.Admin.SharedView
alias Web.Color
alias Web.TimeView
import Ecto.Changeset, only: [get_field: 2]
def tags(changeset) do
case get_field(changeset, :tags) do
nil -> ""
tags -> tags |> Enum.join(", ")
end
end
end
| 18.294118 | 45 | 0.655949 |
933715219ee8cff267aa86d198f0b9b7f2f31b72 | 306 | ex | Elixir | learning/gnome/game/hangman/lib/hangman.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/gnome/game/hangman/lib/hangman.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/gnome/game/hangman/lib/hangman.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule Hangman do
def new_game() do
{:ok, pid} = DynamicSupervisor.start_child(Hangman.Supervisor, Hangman.Server)
pid
end
def make_move(game_pid, guess) do
GenServer.call(game_pid, {:make_move, guess})
end
def tally(game_pid) do
GenServer.call(game_pid, {:tally})
end
end
| 20.4 | 82 | 0.702614 |
93372e70bcc491e73ba65bc3a9bdce0e9dab01af | 4,409 | ex | Elixir | lib/aws/generated/braket.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/braket.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/braket.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Braket do
@moduledoc """
The Amazon Braket API Reference provides information about the operations and
structures supported in Amazon Braket.
"""
alias AWS.Client
alias AWS.Request
... | 19.7713 | 88 | 0.577228 |
933733083f74759f6defddd3f8620ff31d810126 | 778 | exs | Elixir | rel/plugins/phoenix_digest_task.exs | michelada/dash | dce8e85c07b093c2cb8880290a461a7fc76d2e7d | [
"MIT"
] | 10 | 2015-09-23T05:26:35.000Z | 2020-10-09T16:59:11.000Z | rel/plugins/phoenix_digest_task.exs | michelada/dash | dce8e85c07b093c2cb8880290a461a7fc76d2e7d | [
"MIT"
] | 3 | 2015-09-23T05:29:42.000Z | 2017-12-21T19:38:39.000Z | rel/plugins/phoenix_digest_task.exs | michelada/dash | dce8e85c07b093c2cb8880290a461a7fc76d2e7d | [
"MIT"
] | 2 | 2015-10-03T12:25:28.000Z | 2015-10-15T04:45:22.000Z | defmodule PhoenixDigestTask do
use Mix.Releases.Plugin
def before_assembly(%Release{} = _release) do
# NOTE: If your app has brunch, you can enable this code.
case System.cmd("npm", ["run", "deploy"]) do
{output, 0} ->
info output
Mix.Task.run("phoenix.digest")
nil
{outp... | 21.611111 | 61 | 0.597686 |
93373b502f6f4c173f1172591c3f9c8eed6f7815 | 558 | exs | Elixir | config/test.exs | laszlohegedus/phoenix_pubsub_eventstore | 7645eb70a90422dfd8ab587bec2734c702e55e64 | [
"MIT"
] | 11 | 2020-05-15T19:54:50.000Z | 2021-06-30T15:51:41.000Z | config/test.exs | laszlohegedus/phoenix_pubsub_eventstore | 7645eb70a90422dfd8ab587bec2734c702e55e64 | [
"MIT"
] | null | null | null | config/test.exs | laszlohegedus/phoenix_pubsub_eventstore | 7645eb70a90422dfd8ab587bec2734c702e55e64 | [
"MIT"
] | null | null | null | import Config
config :phoenix_pubsub_eventstore,
pubsub: [
name: EventStoreTest.PubSub,
adapter: Phoenix.PubSub.EventStore,
eventstore: Phoenix.PubSub.EventStoreTest.TestApp.EventStore
]
config :phoenix_pubsub_eventstore, Phoenix.PubSub.EventStoreTest.TestApp.EventStore,
serializer: EventStore.TermS... | 27.9 | 84 | 0.786738 |
93374fc9fa4d4853802ccc0658a50fc802caf3ea | 7,885 | ex | Elixir | farmbot_core/lib/farmbot_core/firmware_side_effects.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/firmware_side_effects.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/firmware_side_effects.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | defmodule FarmbotCore.FirmwareSideEffects do
@moduledoc "Handles firmware data and syncing it with BotState."
@behaviour FarmbotFirmware.SideEffects
require Logger
require FarmbotCore.Logger
alias FarmbotCore.{Asset, BotState, FirmwareEstopTimer, Leds}
@impl FarmbotFirmware.SideEffects
def handle_positio... | 28.777372 | 89 | 0.69702 |
9337514d656c767394eb2744ce9e25c3251de38f | 77 | ex | Elixir | web/views/post_view.ex | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | 1 | 2018-04-25T15:03:42.000Z | 2018-04-25T15:03:42.000Z | web/views/post_view.ex | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | null | null | null | web/views/post_view.ex | gilcierweb/appElixirPhoenix | 4c594b365ddc07e732bd421901620469a49b2395 | [
"MIT"
] | null | null | null | defmodule AppElixirPhoenix.PostView do
use AppElixirPhoenix.Web, :view
end
| 19.25 | 38 | 0.831169 |
93375d5ac28dfb75ba85e00ae108459f2821b68b | 717 | ex | Elixir | lib/slackin_ex/web/gettext.ex | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | lib/slackin_ex/web/gettext.ex | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | lib/slackin_ex/web/gettext.ex | deadtrickster/slackin_ex | a3584eb51a9bc2a7ff193e313fa6c1ebdf4bccab | [
"MIT"
] | null | null | null | defmodule SlackinEx.Web.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 SlackinEx.Web.Gettext
# Simple translation
gettext "Her... | 28.68 | 72 | 0.682008 |
9337b058c5e37a523215d3caebf7f1b47bbb60e7 | 5,270 | exs | Elixir | lib/elixir/test/elixir/protocol/consolidation_test.exs | smaximov/elixir | 5353f971ae3bd6b29974f0b3f34297f7bb2339c4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/protocol/consolidation_test.exs | smaximov/elixir | 5353f971ae3bd6b29974f0b3f34297f7bb2339c4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/protocol/consolidation_test.exs | smaximov/elixir | 5353f971ae3bd6b29974f0b3f34297f7bb2339c4 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
path = Path.expand("../../ebin", __DIR__)
File.mkdir_p!(path)
files = Path.wildcard(PathHelpers.fixture_path("consolidation/*"))
Kernel.ParallelCompiler.compile_to_path(files, path)
defmodule Protocol.ConsolidationTest do
use ExUnit.Case, async: true
alias Protoco... | 31.183432 | 103 | 0.685009 |
9337e8718745bf96e82ed31582019aa6893edcb4 | 2,725 | exs | Elixir | mix.exs | rasamimalala/custom_rpi3 | d27e5d68ced859569397e942fc945ceb194687f9 | [
"Apache-2.0"
] | null | null | null | mix.exs | rasamimalala/custom_rpi3 | d27e5d68ced859569397e942fc945ceb194687f9 | [
"Apache-2.0"
] | null | null | null | mix.exs | rasamimalala/custom_rpi3 | d27e5d68ced859569397e942fc945ceb194687f9 | [
"Apache-2.0"
] | null | null | null | # defmodule NervesSystemRpi3.MixProject do
defmodule CustomRpi3.MixProject do
use Mix.Project
@app :custom_rpi3
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.6",
compilers: ... | 23.09322 | 79 | 0.581284 |
9337f8fc0cb326f05dfe76942535dc206a28dfd1 | 12,033 | ex | Elixir | lib/cafex/consumer/group_manager/zk.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | lib/cafex/consumer/group_manager/zk.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | lib/cafex/consumer/group_manager/zk.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | defmodule Cafex.Consumer.GroupManager.ZK do
@moduledoc """
This depends on ZooKeeper to rebalancing and managing consumer group
## zookeeper structure
It will build the structure on zookeeper like below after consumer started:
```
/cafex
|-- topic
| |-- group_name
| | |-- leader
... | 34.577586 | 100 | 0.630184 |
93380de2318ccd461295c696e9f3bc7b14e61ec3 | 4,068 | ex | Elixir | lib/changelog_web/views/admin/episode_view.ex | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | lib/changelog_web/views/admin/episode_view.ex | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | lib/changelog_web/views/admin/episode_view.ex | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.EpisodeView do
use ChangelogWeb, :admin_view
alias Changelog.{Episode, EpisodeStat, Person, Sponsor, Topic}
alias ChangelogWeb.{EpisodeView, PersonView, TimeView}
alias ChangelogWeb.Admin.{EpisodeRequestView, PodcastView}
def audio_filename(episode), do: EpisodeView.audio_filena... | 27.486486 | 80 | 0.611357 |
933835a48197e4bb61b11e2552506e854dbad537 | 368 | ex | Elixir | web/views/error_view.ex | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | diegoangel/todo-app-elixir | 7dc8d1734a6435f78a243dc621766f523177eea0 | [
"Apache-2.0"
] | null | null | null | defmodule Todo.ErrorView do
use Todo.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_found(_template, assig... | 20.444444 | 47 | 0.692935 |
93385ba64ad8b3d15b52e6876617b913a4afe7fb | 2,368 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_serving_restrictions_contexts.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_serving_restrictions_contexts.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/creative_serving_restrictions_contexts.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... | 40.827586 | 290 | 0.731419 |
93389445fb10f13bc6a67db6929a4b885fc7776a | 1,173 | ex | Elixir | lib/elixirfm/album.ex | jrichocean/Elixirfm | 5595c08c3217500bbc3fe74fe1657fe0e7bfcda8 | [
"MIT"
] | 9 | 2016-10-04T10:09:17.000Z | 2020-10-20T10:34:47.000Z | lib/elixirfm/album.ex | jrichocean/Elixirfm | 5595c08c3217500bbc3fe74fe1657fe0e7bfcda8 | [
"MIT"
] | 4 | 2017-06-19T11:11:15.000Z | 2021-11-10T04:31:45.000Z | lib/elixirfm/album.ex | jrichocean/Elixirfm | 5595c08c3217500bbc3fe74fe1657fe0e7bfcda8 | [
"MIT"
] | 2 | 2018-10-12T09:53:36.000Z | 2019-09-29T13:19:41.000Z | defmodule Elixirfm.Album do
@moduledoc "Functions for Last.fm Album endpoints."
@method "album"
defp req(url, args), do: Elixirfm.get_request(@method <> url, args)
@doc """
Search for an album by name. Returns album matches sorted by relevance.
"""
@spec search(String.t(), keyword()) :: Elixirfm.respon... | 29.325 | 88 | 0.644501 |
9338d1e61bea280b72e8a029e093623e25e4896a | 3,898 | ex | Elixir | lib/ash/resource/validation.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | lib/ash/resource/validation.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | lib/ash/resource/validation.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Validation do
@moduledoc """
Represents a validation in Ash.
See `Ash.Resource.Validation.Builtins` for a list of builtin validations.
To write your own validation, define a module that implements the `c:init/1` callback
to validate options at compile time, and `c:validate/2` callback... | 25.986667 | 178 | 0.610826 |
9339316467a44f3f8f4a06ed7c626848ca49e598 | 2,135 | ex | Elixir | lib/codes/codes_q06.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q06.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q06.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Q06 do
alias IcdCode.ICDCode
def _Q060 do
%ICDCode{full_code: "Q060",
category_code: "Q06",
short_code: "0",
full_name: "Amyelia",
short_name: "Amyelia",
category_name: "Amyelia"
}
end
def _Q061 do
%ICDCode{full_code... | 30.5 | 82 | 0.610304 |
93393e11a5fe96805288903390d5dc658057a4ea | 455 | ex | Elixir | code/project/5/issues/lib/issues.ex | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/project/5/issues/lib/issues.ex | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/project/5/issues/lib/issues.ex | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 32.5 | 85 | 0.740659 |
9339599c458aff5cb7461b81bd57ed76330f78e6 | 504 | exs | Elixir | elixir/test/junks/mailer_test.exs | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | 1 | 2019-04-29T17:46:44.000Z | 2019-04-29T17:46:44.000Z | elixir/test/junks/mailer_test.exs | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | null | null | null | elixir/test/junks/mailer_test.exs | crappygraphix/junks | a56b5b86e1a5cbcf0a71fc44d6292d6bcd525b76 | [
"Apache-2.0"
] | null | null | null | defmodule Junks.MailerTest do
use Junks.DataCase
import Swoosh.TestAssertions
alias Junks.Auth
def user_fixture(name, email, password) do
{:ok, t} = Auth.create_user(%{name: name, email: email, password: password})
t.user
end
test "send email forgot password" do
user = user_fixture("Chris", "... | 26.526316 | 80 | 0.71627 |
93396ecc45a61da82d234353d429a03f45494b6b | 1,128 | ex | Elixir | apps/crash_dump_1/lib/supervisor.ex | WhiteRookPL/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 14 | 2017-08-09T14:21:47.000Z | 2022-03-11T04:10:49.000Z | apps/crash_dump_1/lib/supervisor.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | null | null | null | apps/crash_dump_1/lib/supervisor.ex | nicholasjhenry/elixir-fire-brigade-workshop | 1c6183339fc623842a09f4d10be75bcecf2c37e7 | [
"MIT"
] | 15 | 2017-09-05T15:43:53.000Z | 2020-04-13T16:20:18.000Z | defmodule Crasher.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok)
end
def init(:ok) do
children = [
worker(Crasher.MemoryEater, [ Crasher.MemoryEater1 ], id: Crasher.MemoryEater1),
worker(Crasher.AtomEater, [ Crasher.AtomEater1 ], id: Crasher.AtomEat... | 43.384615 | 86 | 0.707447 |
9339a69868dbf43afb51adef234d090694ea5af4 | 4,376 | exs | Elixir | test/integration/telemetry_test.exs | iautom8things/oban | 5f1dfc277c2933fdc0dada812dbbca31c6d55fa0 | [
"Apache-2.0"
] | null | null | null | test/integration/telemetry_test.exs | iautom8things/oban | 5f1dfc277c2933fdc0dada812dbbca31c6d55fa0 | [
"Apache-2.0"
] | null | null | null | test/integration/telemetry_test.exs | iautom8things/oban | 5f1dfc277c2933fdc0dada812dbbca31c6d55fa0 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Integration.TelemetryTest do
use Oban.Case
import ExUnit.CaptureLog
alias Oban.{PerformError, Telemetry}
@moduletag :integration
defmodule Handler do
def handle([:oban, :job, :start], %{system_time: start_time}, meta, pid) do
send(pid, {:event, :start, start_time, meta})
end
... | 29.567568 | 97 | 0.587523 |
9339aaf5e5b23815931086394d5d9340d1ae9633 | 1,664 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/location.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/location.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/location.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.28 | 178 | 0.71875 |
9339c44cc8ff8501a8300288bdcc59ee0e08f7e1 | 4,239 | ex | Elixir | lib/commanded/event_store/subscription.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | lib/commanded/event_store/subscription.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | lib/commanded/event_store/subscription.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.EventStore.Subscription do
@moduledoc false
alias Commanded.EventStore
alias Commanded.EventStore
alias Commanded.EventStore.RecordedEvent
alias Commanded.EventStore.Subscription
@enforce_keys [
:application,
:subscribe_to,
:subscribe_from,
:subscription_name,
:subs... | 28.449664 | 94 | 0.686011 |
9339f2c6b4d032e09c8ee10b18dbd92e6ad25c46 | 2,705 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/exit_processor/exit_info.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.823529 | 117 | 0.664325 |
933a081e03fc7b3cafb0e3d91506953cd9eb9aef | 9,233 | ex | Elixir | lib/wax/attestation_statement_format/packed.ex | 4eek/wax | eee7c5460267dce2cd8fe76df2e05f46e90e50b6 | [
"Apache-2.0"
] | 101 | 2019-02-11T10:39:34.000Z | 2022-03-18T16:01:26.000Z | lib/wax/attestation_statement_format/packed.ex | 4eek/wax | eee7c5460267dce2cd8fe76df2e05f46e90e50b6 | [
"Apache-2.0"
] | 19 | 2019-02-14T22:34:34.000Z | 2022-01-25T17:42:13.000Z | lib/wax/attestation_statement_format/packed.ex | 4eek/wax | eee7c5460267dce2cd8fe76df2e05f46e90e50b6 | [
"Apache-2.0"
] | 10 | 2019-03-12T15:56:21.000Z | 2020-09-20T01:36:23.000Z | defmodule Wax.AttestationStatementFormat.Packed do
require Logger
@moduledoc false
@behaviour Wax.AttestationStatementFormat
# from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
# on the 27/01/2019
@iso_3166_codes [
"AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", ... | 34.196296 | 106 | 0.581285 |
933a1ee8121b98d4b2fc884ed56dfcc468fbedd6 | 522 | exs | Elixir | test/structs/overwrite_test.exs | jchristgit/crux_structs | 9545295e0ffd2261ebe17a935270546bd52861f6 | [
"MIT"
] | null | null | null | test/structs/overwrite_test.exs | jchristgit/crux_structs | 9545295e0ffd2261ebe17a935270546bd52861f6 | [
"MIT"
] | null | null | null | test/structs/overwrite_test.exs | jchristgit/crux_structs | 9545295e0ffd2261ebe17a935270546bd52861f6 | [
"MIT"
] | null | null | null | defmodule Crux.Structs.OverwriteTest do
use ExUnit.Case, async: true
doctest Crux.Structs.Overwrite
test "create" do
overwrite =
%{
"type" => "member",
"id" => "218348062828003328",
"allow" => 0x400,
"deny" => 0x800
}
|> Crux.Structs.create(Crux.Structs.Overw... | 22.695652 | 52 | 0.547893 |
933a4bea9ffb60594c1ac2d5da204055d0f3152a | 482 | exs | Elixir | weather_tracker/test/weather_tracker_web/views/error_view_test.exs | NickMcG/WeatherStation | 83ff0ad75467c10eead409c4fc3a437643b9a994 | [
"MIT"
] | null | null | null | weather_tracker/test/weather_tracker_web/views/error_view_test.exs | NickMcG/WeatherStation | 83ff0ad75467c10eead409c4fc3a437643b9a994 | [
"MIT"
] | null | null | null | weather_tracker/test/weather_tracker_web/views/error_view_test.exs | NickMcG/WeatherStation | 83ff0ad75467c10eead409c4fc3a437643b9a994 | [
"MIT"
] | null | null | null | defmodule WeatherTrackerWeb.ErrorViewTest do
use WeatherTrackerWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(WeatherTrackerWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
... | 30.125 | 99 | 0.701245 |
933a55a8795a5456d9e831f071dad4121bfad086 | 2,573 | exs | Elixir | test/eth_test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | 4 | 2021-12-01T17:20:34.000Z | 2021-12-09T23:09:03.000Z | test/eth_test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | null | null | null | test/eth_test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | 4 | 2021-04-29T23:42:55.000Z | 2022-01-30T23:55:58.000Z | # NOTE: FAILING
defmodule ETHTest do
use ExUnit.Case
# @first_transaction_list [
# "", "09184e72a000", "2710", "0000000000000000000000000000000000000000", "",
# "7f7465737432000000000000000000000000000000000000000000000000000000600057", "29",
# "f2d54d3399c9bcd3ac3482a5ffaeddfe68e9a805375f626b4f2f8cf53... | 46.781818 | 306 | 0.779246 |
933a6cbaa768fb71be05035e2a5c16325ec02a2f | 267 | ex | Elixir | test/support/repo_case.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | test/support/repo_case.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | test/support/repo_case.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Accent.RepoCase do
use ExUnit.CaseTemplate, async: true
setup tags do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Accent.Repo)
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Accent.Repo, {:shared, self()})
end
:ok
end
end
| 19.071429 | 68 | 0.681648 |
933acc44c04b7f43203474d5d2f480d1b55acabe | 5,808 | ex | Elixir | lib/zaryn/crypto/keystore/node/tpm_impl.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | 1 | 2021-07-06T19:47:14.000Z | 2021-07-06T19:47:14.000Z | lib/zaryn/crypto/keystore/node/tpm_impl.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/crypto/keystore/node/tpm_impl.ex | ambareesha7/node-zaryn | 136e542801bf9b6fa4a015d3464609fdf3dacee8 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.Crypto.NodeKeystore.TPMImpl do
@moduledoc false
alias Zaryn.Crypto
alias Zaryn.Crypto.ID
alias Zaryn.Crypto.NodeKeystore
alias Zaryn.TransactionChain
alias Zaryn.Utils.PortHandler
@behaviour NodeKeystore
use GenServer
def start_link(args \\ []) do
GenServer.start_link(__MODUL... | 28.610837 | 99 | 0.688705 |
933ad75d0066f9ab2a9787baaf5b3131ce13a5f3 | 964 | exs | Elixir | test/type/fetch_type/basics_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 97 | 2020-09-22T01:52:19.000Z | 2022-03-21T17:50:13.000Z | test/type/fetch_type/basics_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 106 | 2020-09-22T18:55:28.000Z | 2021-11-30T01:51:04.000Z | test/type/fetch_type/basics_test.exs | ityonemo/mavis | 6f71c1ff9e12626c1ac5fcd1276c9adb433bfb99 | [
"MIT"
] | 3 | 2020-10-27T22:36:56.000Z | 2022-01-25T21:00:24.000Z | defmodule TypeTest.Type.FetchType.BasicsTest do
use ExUnit.Case, async: true
import Type, only: :macros
import Type.Operators
@moduletag :fetch
@source TypeTest.TypeExample.Basics
test "any is any" do
assert {:ok, any()} == Type.fetch_type(@source, :any_type)
end
test "term is any" do
asser... | 23.512195 | 74 | 0.651452 |
933ae3538e61271f4ef791aa8e33f4125a6e55bf | 2,104 | ex | Elixir | lib/calcinator/view.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | lib/calcinator/view.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | 1 | 2018-09-24T21:48:46.000Z | 2018-09-24T21:48:46.000Z | lib/calcinator/view.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | defmodule Calcinator.View do
@moduledoc """
A view for `Calcinator.Resources`
"""
# Types
@type pagination :: map
@typedoc """
`pagination` or `nil` if no pagination
"""
@type maybe_pagination :: nil | pagination
@typedoc """
The raw request params that need to be parsed for view options
"""... | 28.432432 | 116 | 0.611692 |
933afc28b5561b1bbfcefd655d0e46716afe2550 | 665 | ex | Elixir | lib/today/cli.ex | rockwood/today | 4ce3a92d1bee5bb32040e1d2d333df50cd0c24ff | [
"MIT"
] | null | null | null | lib/today/cli.ex | rockwood/today | 4ce3a92d1bee5bb32040e1d2d333df50cd0c24ff | [
"MIT"
] | null | null | null | lib/today/cli.ex | rockwood/today | 4ce3a92d1bee5bb32040e1d2d333df50cd0c24ff | [
"MIT"
] | null | null | null | defmodule Today.CLI do
alias Today.{Entry, Runner}
@moduledoc """
usage: today [options]
"""
@switches [help: :boolean]
@aliases [h: :help]
def main(argv) do
argv
|> parse_argv
|> process
end
def parse_argv(args) do
args
|> OptionParser.parse(switches: @switches, aliases: @al... | 15.833333 | 65 | 0.609023 |
933b0ed1c844eb4a13ea521059c4d27fbba44ec3 | 787 | ex | Elixir | lib/events/forms.ex | o7/bud | 36ff93bdaab648044190cf56a6b078664f5c84c2 | [
"0BSD"
] | 3 | 2019-06-19T14:00:28.000Z | 2019-06-20T23:26:06.000Z | lib/events/forms.ex | o7/bud | 36ff93bdaab648044190cf56a6b078664f5c84c2 | [
"0BSD"
] | null | null | null | lib/events/forms.ex | o7/bud | 36ff93bdaab648044190cf56a6b078664f5c84c2 | [
"0BSD"
] | null | null | null | defmodule PLM.Forms do
use N2O, with: [:n2o, :nitro, :form]
require Logger
def event({:client, {:form, mod}}) do
NITRO.insert_bottom(:stand, h3(body: NITRO.to_binary(mod)))
NITRO.insert_bottom(
:stand,
h5(body: mod.doc(), style: "margin-bottom: 10px;")
)
NITRO.insert_bottom(
:... | 20.179487 | 69 | 0.547649 |
933b2de4bc14b34ff7697bf34747b0e98e2bd2af | 3,091 | ex | Elixir | clients/content/lib/google_api/content/v21/model/region.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/region.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/region.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... | 47.553846 | 241 | 0.719185 |
933b4696102960b1c4be6755dcb0021281e23957 | 340 | ex | Elixir | lib/bible_study_spreadsheet_web/controllers/page_controller.ex | dbishai/bible-study-spreadsheet | 9009cf8c343c215b2d8d6c1d8d24fd1ed2219434 | [
"MIT"
] | null | null | null | lib/bible_study_spreadsheet_web/controllers/page_controller.ex | dbishai/bible-study-spreadsheet | 9009cf8c343c215b2d8d6c1d8d24fd1ed2219434 | [
"MIT"
] | 1 | 2021-03-10T06:25:15.000Z | 2021-03-10T06:25:15.000Z | lib/bible_study_spreadsheet_web/controllers/page_controller.ex | dbishai/bible-study-spreadsheet | 9009cf8c343c215b2d8d6c1d8d24fd1ed2219434 | [
"MIT"
] | null | null | null | defmodule BibleStudySpreadsheetWeb.PageController do
use BibleStudySpreadsheetWeb, :controller
def index(conn, _params) do
authenticated = get_session(conn, "authenticated")
if authenticated do
redirect(conn, to: Routes.sheet_path(conn, :new))
else
render(conn, :index, authenticated: false... | 24.285714 | 55 | 0.729412 |
933b479032bce5e1c0b2aca085527a83fce933be | 24,182 | ex | Elixir | lib/baiji/service/cloudhsm.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/cloudhsm.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/cloudhsm.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | defmodule Baiji.CloudHSM do
@moduledoc """
AWS CloudHSM Service
"""
@doc """
Adds or overwrites one or more tags for the specified AWS CloudHSM
resource.
Each tag consists of a key and a value. Tag keys must be unique to each
resource.
"""
def add_tags_to_resource(input \\ %{}, options \\ ... | 60.911839 | 11,858 | 0.550244 |
933b8e9b9d9de9a5836b14f5d4b526963d5dbda9 | 1,873 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitoring_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.339623 | 125 | 0.739989 |
933ba66b8a6c4a4dc7754413a126f5eec3e648ed | 47,585 | ex | Elixir | lib/elixir/lib/calendar.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/calendar.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | defmodule Calendar do
@moduledoc """
This module defines the responsibilities for working with
calendars, dates, times and datetimes in Elixir.
Currently it defines types and the minimal implementation
for a calendar behaviour in Elixir. The goal of the Calendar
features in Elixir is to provide a base for ... | 33.676575 | 112 | 0.636734 |
933babc040928a46bf7081e900f15dd90e0e421d | 3,553 | ex | Elixir | lib/scenic/primitive/line.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/line.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/line.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-05-06.
# Copyright © 2017-2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.Line do
@moduledoc """
Draw a line on the screen.
## Data
`{point_a, point_b}`
The data for a line is a tuple containing two points.
* `point_a` - position to start draw... | 27.757813 | 124 | 0.545736 |
933bb761ca3608c7d2f7c277c7485a7f47d615bf | 1,395 | ex | Elixir | lib/paypal/plan.ex | era/pay | 8a47781dd47baf5ed053a1d12e8955b6aff759f0 | [
"MIT"
] | 29 | 2015-10-01T01:51:24.000Z | 2021-03-02T13:32:39.000Z | lib/paypal/plan.ex | era/pay | 8a47781dd47baf5ed053a1d12e8955b6aff759f0 | [
"MIT"
] | 16 | 2015-10-05T13:32:00.000Z | 2020-12-05T00:15:09.000Z | lib/paypal/plan.ex | era/pay | 8a47781dd47baf5ed053a1d12e8955b6aff759f0 | [
"MIT"
] | 13 | 2015-10-13T20:44:03.000Z | 2020-11-02T03:59:04.000Z | defmodule Paypal.Plan do
@derive [Poison.Encoder]
defstruct id: nil, name: nil, description: nil, type: nil, payment_definitions: nil, merchant_preferences: nil
end
defimpl Plan, for: Paypal.Plan do
def create(plan) do
Task.async(fn -> do_create(plan) end)
end
defp do_create(plan) do
string_plan = ... | 33.214286 | 162 | 0.657348 |
933bd57814f2618c41b9b1bd9368111130db0d9a | 16,195 | ex | Elixir | lib/elixir_sense/lib/elixir_sense/core/introspection.ex | robmckinnon/atom-elixir | 50be0fa165ff9a07caf30ecf9dfe96322d6a0f95 | [
"MIT"
] | 477 | 2016-02-12T15:49:05.000Z | 2021-01-13T22:28:46.000Z | lib/elixir_sense/lib/elixir_sense/core/introspection.ex | robmckinnon/atom-elixir | 50be0fa165ff9a07caf30ecf9dfe96322d6a0f95 | [
"MIT"
] | 84 | 2016-02-15T11:00:29.000Z | 2020-08-20T01:18:08.000Z | lib/elixir_sense/lib/elixir_sense/core/introspection.ex | robmckinnon/atom-elixir | 50be0fa165ff9a07caf30ecf9dfe96322d6a0f95 | [
"MIT"
] | 49 | 2016-02-13T01:49:17.000Z | 2021-02-12T05:03:42.000Z | defmodule ElixirSense.Core.Introspection do
@moduledoc """
A collection of functions to introspect/format docs, specs, types and callbacks.
Based on:
https://github.com/elixir-lang/elixir/blob/c983b3db6936ce869f2668b9465a50007ffb9896/lib/iex/lib/iex/introspection.ex
https://github.com/elixir-lang/ex_doc/blo... | 28.462214 | 118 | 0.605249 |
933c13dd86ac7f64cfdac906cb28ca67172bccaa | 7,238 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent_message.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 50.971831 | 212 | 0.742608 |
933c2e975273ec225c65520a8d700a187a50985a | 4,566 | exs | Elixir | mix.exs | capitalist/livebook | a648a4768e0b9da6c15e222368948116866651aa | [
"Apache-2.0"
] | null | null | null | mix.exs | capitalist/livebook | a648a4768e0b9da6c15e222368948116866651aa | [
"Apache-2.0"
] | null | null | null | mix.exs | capitalist/livebook | a648a4768e0b9da6c15e222368948116866651aa | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.MixProject do
use Mix.Project
@version "0.5.1"
@description "Interactive and collaborative code notebooks - made with Phoenix LiveView"
def project do
[
app: :livebook,
version: @version,
elixir: "~> 1.13",
name: "Livebook",
description: @description,
... | 27.017751 | 98 | 0.576654 |
933c3c1036b5069b15b78be7d6db5620d98f69b9 | 5,871 | ex | Elixir | lib/pow/store/credentials_cache.ex | joshchernoff/pow | b9b0dad405adb64608455c0ff62faeb482af5eb3 | [
"MIT"
] | null | null | null | lib/pow/store/credentials_cache.ex | joshchernoff/pow | b9b0dad405adb64608455c0ff62faeb482af5eb3 | [
"MIT"
] | null | null | null | lib/pow/store/credentials_cache.ex | joshchernoff/pow | b9b0dad405adb64608455c0ff62faeb482af5eb3 | [
"MIT"
] | null | null | null | defmodule Pow.Store.CredentialsCache do
@moduledoc """
Default module for credentials session storage.
A key (session id) is used to store, fetch, or delete credentials. The
credentials are expected to take the form of
`{credentials, session_metadata}`, where session metadata is data exclusive
to the sessi... | 30.262887 | 104 | 0.657469 |
933c55982c84d9479b6332670af1e1701db3baf4 | 1,166 | exs | Elixir | clients/ad_exchange_seller/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_seller/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_seller/mix.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApi.AdExchangeSeller.V20.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :google_api_ad_exchange_seller,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
packag... | 24.291667 | 118 | 0.616638 |
933c9e2e79b28e5292b9f92855e3c70a51fb7256 | 144 | exs | Elixir | test/air_elixir_test.exs | nabinno/air_elixir | 59dce413a4b46519859b7b62a4585290aef94f61 | [
"MIT"
] | 4 | 2018-12-16T15:10:39.000Z | 2020-04-26T00:16:45.000Z | test/air_elixir_test.exs | nabinno/air_elixir | 59dce413a4b46519859b7b62a4585290aef94f61 | [
"MIT"
] | null | null | null | test/air_elixir_test.exs | nabinno/air_elixir | 59dce413a4b46519859b7b62a4585290aef94f61 | [
"MIT"
] | null | null | null | defmodule AirElixirTest do
use ExUnit.Case
doctest AirElixir
test "greets the world" do
assert AirElixir.hello() == :world
end
end
| 16 | 38 | 0.722222 |
933ca451145f6b14b1300d925db2998bb7b5fb7d | 396 | ex | Elixir | lib/hello_hipster_stack_web/views/error_view.ex | jmarca/hello_hipster_stack | 1391b8c9ba16f80d753a5694ed7c0c9d9b494bb4 | [
"Apache-2.0"
] | null | null | null | lib/hello_hipster_stack_web/views/error_view.ex | jmarca/hello_hipster_stack | 1391b8c9ba16f80d753a5694ed7c0c9d9b494bb4 | [
"Apache-2.0"
] | null | null | null | lib/hello_hipster_stack_web/views/error_view.ex | jmarca/hello_hipster_stack | 1391b8c9ba16f80d753a5694ed7c0c9d9b494bb4 | [
"Apache-2.0"
] | null | null | null | defmodule HelloHipsterStackWeb.ErrorView do
use HelloHipsterStackWeb, :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 templat... | 22 | 47 | 0.717172 |
933cb511f9133ee5008ae60121bda887b4b1e6b1 | 5,119 | ex | Elixir | lib/clickhouse_ecto/connection.ex | santiment/clickhouse_ecto | bf8835b10bbb491664f679efe167c9514b03bfca | [
"Apache-2.0"
] | null | null | null | lib/clickhouse_ecto/connection.ex | santiment/clickhouse_ecto | bf8835b10bbb491664f679efe167c9514b03bfca | [
"Apache-2.0"
] | 1 | 2018-07-26T22:01:39.000Z | 2018-08-09T09:59:36.000Z | lib/clickhouse_ecto/connection.ex | santiment/clickhouse_ecto | bf8835b10bbb491664f679efe167c9514b03bfca | [
"Apache-2.0"
] | null | null | null | defmodule ClickhouseEcto.Connection do
alias Clickhousex.Query
alias ClickhouseEcto.Query, as: SQL
@typedoc "The prepared query which is an SQL command"
@type prepared :: String.t
@typedoc "The cache query which is a DBConnection Query"
@type cached :: map
@doc """
Receives options and returns `DBCon... | 35.061644 | 150 | 0.64622 |
933cdd10e8a14129dc5f5fa7581663085471b39e | 510 | ex | Elixir | lib/mix/lists.ex | twined/ex_chimp | af346bf7e6ac5c1d60929fa42749ffad25524482 | [
"MIT"
] | 3 | 2015-12-22T15:26:43.000Z | 2020-01-13T23:42:49.000Z | lib/mix/lists.ex | twined/ex_chimp | af346bf7e6ac5c1d60929fa42749ffad25524482 | [
"MIT"
] | 3 | 2018-05-03T08:02:33.000Z | 2021-12-23T14:10:25.000Z | lib/mix/lists.ex | twined/ex_chimp | af346bf7e6ac5c1d60929fa42749ffad25524482 | [
"MIT"
] | 9 | 2017-03-01T10:57:36.000Z | 2021-07-19T12:36:19.000Z | defmodule Mix.Tasks.Exchimp.Lists do
use Mix.Task
def run(args) do
api_key = List.first(args)
Application.ensure_all_started(:httpoison)
IO.puts("-------------------")
IO.puts("id - name - members")
IO.puts("-------------------")
case ExChimp.List.all(api_key) do
{:ok, lists} ->
... | 24.285714 | 94 | 0.509804 |
933d226f0b82c6a889710206e324c0b1fcf4665e | 1,088 | ex | Elixir | lib/phxpay_web/channels/user_socket.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | lib/phxpay_web/channels/user_socket.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | lib/phxpay_web/channels/user_socket.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | defmodule PhxpayWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", PhxpayWeb.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 channels... | 30.222222 | 83 | 0.693934 |
933d2c4b63baa4ba047f49d0fca5d904916a07ae | 5,948 | ex | Elixir | lib/stripe/core_resources/customer.ex | esvinson/stripity_stripe | 952664e6b77ac603b1f50692d5a66bbcb398e7c6 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/core_resources/customer.ex | esvinson/stripity_stripe | 952664e6b77ac603b1f50692d5a66bbcb398e7c6 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/core_resources/customer.ex | esvinson/stripity_stripe | 952664e6b77ac603b1f50692d5a66bbcb398e7c6 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Customer do
@moduledoc """
Work with Stripe customer objects.
You can:
- Create a customer
- Retrieve a customer
- Update a customer
- Delete a customer
Stripe API reference: https://stripe.com/docs/api#customer
"""
use Stripe.Entity
import Stripe.Request
@type t :: %__MODU... | 31.305263 | 98 | 0.54842 |
933d4eec995927394b86fc8622934c8febd39850 | 493 | ex | Elixir | sous_chef/lib/sous_chef_web/views/error_view.ex | sergiotapia/bakeware | e7b752c873a88c6a4018b6162608c16da109bf14 | [
"Apache-2.0"
] | null | null | null | sous_chef/lib/sous_chef_web/views/error_view.ex | sergiotapia/bakeware | e7b752c873a88c6a4018b6162608c16da109bf14 | [
"Apache-2.0"
] | null | null | null | sous_chef/lib/sous_chef_web/views/error_view.ex | sergiotapia/bakeware | e7b752c873a88c6a4018b6162608c16da109bf14 | [
"Apache-2.0"
] | null | null | null | defmodule SousChefWeb.ErrorView do
use SousChefWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template na... | 29 | 61 | 0.736308 |
933d70a4ae41905f81c4cff7082cd4103b6df90a | 372 | ex | Elixir | web/views/error_view.ex | arthurcolle/vanity | 22b29391a8a15f0972b79aba527c7de2b3a17934 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | arthurcolle/vanity | 22b29391a8a15f0972b79aba527c7de2b3a17934 | [
"Apache-2.0"
] | null | null | null | web/views/error_view.ex | arthurcolle/vanity | 22b29391a8a15f0972b79aba527c7de2b3a17934 | [
"Apache-2.0"
] | null | null | null | defmodule Vanity.ErrorView do
use Vanity.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, a... | 20.666667 | 47 | 0.696237 |
933dbe14f8a0bec334c0ff4b2bcc342f14f0bcaf | 22,576 | ex | Elixir | lib/elixir/lib/io/ansi/docs.ex | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | 1 | 2020-01-14T18:44:56.000Z | 2020-01-14T18:44:56.000Z | lib/elixir/lib/io/ansi/docs.ex | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io/ansi/docs.ex | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | defmodule IO.ANSI.Docs do
@moduledoc false
@bullets [?*, ?-, ?+]
@spaces [" ", "\n", "\t"]
@doc """
The default options used by this module.
The supported keys are:
* `:enabled` - toggles coloring on and off (true)
* `:doc_bold` - bold text (bright)
* `:doc_code` ... | 30.715646 | 98 | 0.629961 |
933ddfbe508ffeb6da09f6e827ecac881263ab2e | 666 | ex | Elixir | lib/client/expected_status_code.ex | terianil/sendgridex | e2a998fcea794cf71ab9df1ffb0b73198f916206 | [
"MIT"
] | null | null | null | lib/client/expected_status_code.ex | terianil/sendgridex | e2a998fcea794cf71ab9df1ffb0b73198f916206 | [
"MIT"
] | null | null | null | lib/client/expected_status_code.ex | terianil/sendgridex | e2a998fcea794cf71ab9df1ffb0b73198f916206 | [
"MIT"
] | null | null | null | defmodule SendGridEx.Client.ExpectedStatusCode do
@moduledoc """
Checks SendGrid response HTTP status code
## Example usage
```
defmodule Myclient do
use Tesla
plug SendGridEx.Client.ExpectedStatusCode
end
```
"""
@behaviour Tesla.Middleware
@impl Tesla.Middleware
def call(env, next, ... | 19.588235 | 81 | 0.642643 |
933df94818a8aa3db2a8451d6b7274c27078eab2 | 2,004 | ex | Elixir | clients/domains/lib/google_api/domains/v1alpha2/model/custom_dns.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/domains/lib/google_api/domains/v1alpha2/model/custom_dns.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/domains/lib/google_api/domains/v1alpha2/model/custom_dns.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.08 | 278 | 0.738024 |
933e3158e76a87b1f43131bb36c026356ee1ded0 | 655 | exs | Elixir | rna-transcription/rna_transcription.exs | Hafizuddin-Darman/exercism-elixir | 6407b032ec97515a1f93b766da217357bcb0e7eb | [
"MIT"
] | null | null | null | rna-transcription/rna_transcription.exs | Hafizuddin-Darman/exercism-elixir | 6407b032ec97515a1f93b766da217357bcb0e7eb | [
"MIT"
] | null | null | null | rna-transcription/rna_transcription.exs | Hafizuddin-Darman/exercism-elixir | 6407b032ec97515a1f93b766da217357bcb0e7eb | [
"MIT"
] | null | null | null | defmodule RNATranscription do
# define a map constant
@rna_complements %{
# using ? to find the character’s code point
?G => ?C,
?C => ?G,
?T => ?A,
?A => ?U
}
@doc """
Transcribes a character list representing DNA nucleotides to RNA
## Examples
iex> RNATranscription.to_rna('ACTG')
... | 23.392857 | 69 | 0.619847 |
933e407ca942f2e7d989314ae678441096ed0f2b | 265 | ex | Elixir | lib/gh_web/views/layout_view.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | lib/gh_web/views/layout_view.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | lib/gh_web/views/layout_view.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | defmodule GhWeb.LayoutView do
use GhWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
end
| 33.125 | 72 | 0.766038 |
933e73085b1d216da81639f396dc76ee9fe4e3b2 | 6,781 | ex | Elixir | lib/worker/batcher/message.ex | dmorina/bors-ng | 833a3685747c441d13068a140849d759c05fe5c5 | [
"Apache-2.0"
] | null | null | null | lib/worker/batcher/message.ex | dmorina/bors-ng | 833a3685747c441d13068a140849d759c05fe5c5 | [
"Apache-2.0"
] | 71 | 2021-07-06T15:27:45.000Z | 2021-07-07T14:20:40.000Z | lib/worker/batcher/message.ex | dmorina/bors-ng | 833a3685747c441d13068a140849d759c05fe5c5 | [
"Apache-2.0"
] | 5 | 2020-11-18T23:38:29.000Z | 2021-09-30T17:45:56.000Z | defmodule BorsNG.Worker.Batcher.Message do
@moduledoc """
User-readable strings that go in commit messages and comments.
"""
def generate_status(:waiting) do
{"Waiting in queue", :running}
end
def generate_status(:canceled) do
{"Canceled", :error}
end
def generate_status(:running) do
{"Ru... | 26.90873 | 192 | 0.661997 |
933e73a2b40cfe57383b0c41f223286b35084604 | 1,885 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/source_location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/source_location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/source_location.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... | 34.272727 | 125 | 0.707692 |
933ee5e0a994aa5c48bb2116e41d60e5513342ae | 2,375 | ex | Elixir | lib/plug/session/ets.ex | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 1,218 | 2017-07-14T15:13:32.000Z | 2022-03-30T16:42:42.000Z | lib/plug/session/ets.ex | outstand/plug | e75d542b3028b5c1f348ac9d128306c46a6b6e70 | [
"Apache-2.0"
] | 502 | 2017-07-19T15:36:44.000Z | 2022-03-31T06:47:36.000Z | deps/plug/lib/plug/session/ets.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 376 | 2017-07-17T15:47:55.000Z | 2022-03-23T19:24:30.000Z | defmodule Plug.Session.ETS do
@moduledoc """
Stores the session in an in-memory ETS table.
This store does not create the ETS table; it expects that an
existing named table with public properties is passed as an
argument.
We don't recommend using this store in production as every
session will be stored ... | 23.989899 | 73 | 0.662316 |
933f45b4ede7ebaec01dd487b617220a3a23e935 | 15,308 | ex | Elixir | lib/mix/lib/mix/task.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | 1 | 2020-09-24T12:37:29.000Z | 2020-09-24T12:37:29.000Z | lib/mix/lib/mix/task.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/task.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Task do
@moduledoc """
Provides conveniences for creating, loading, and manipulating Mix tasks.
A Mix task can be defined by using `Mix.Task` in a module whose name
begins with `Mix.Tasks.` and which defines the `run/1` function.
Typically, task modules live inside the `lib/mix/tasks/` director... | 28.453532 | 98 | 0.648484 |
933f5869ec309973252ed3217f7ba004cfedbc33 | 85 | exs | Elixir | test/mix/tasks/graphme_test.exs | shiryel/graphme | 32c99eefc84b940eead91ddbf9ccbf3d327286df | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/graphme_test.exs | shiryel/graphme | 32c99eefc84b940eead91ddbf9ccbf3d327286df | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/graphme_test.exs | shiryel/graphme | 32c99eefc84b940eead91ddbf9ccbf3d327286df | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.GraphmeTest do
use ExUnit.Case
doctest Mix.Tasks.Graphme
end
| 17 | 34 | 0.8 |
933f58841ff1f10b231a1e4b2ea5561d55a7607b | 586 | ex | Elixir | elixir-in-action/lib/change_cache.ex | TristanCacqueray/beam-playground | aae1d6b2b974d5d7c9d3709bb8ae06a8b8cb0959 | [
"BSD-3-Clause"
] | null | null | null | elixir-in-action/lib/change_cache.ex | TristanCacqueray/beam-playground | aae1d6b2b974d5d7c9d3709bb8ae06a8b8cb0959 | [
"BSD-3-Clause"
] | null | null | null | elixir-in-action/lib/change_cache.ex | TristanCacqueray/beam-playground | aae1d6b2b974d5d7c9d3709bb8ae06a8b8cb0959 | [
"BSD-3-Clause"
] | null | null | null | defmodule Change.Cache do
def start_link() do
IO.puts("Starting changes cache.")
DynamicSupervisor.start_link(name: __MODULE__, strategy: :one_for_one)
end
def child_spec(_arg) do
%{
id: __MODULE__,
start: {__MODULE__, :start_link, []},
type: :supervisor
}
end
def server_pr... | 22.538462 | 75 | 0.668942 |
933f6836be60308cdc7c552e78d740e14a821db9 | 21,893 | exs | Elixir | lib/elixir/test/elixir/uri_test.exs | ericklima-ca/elixir | 9512bcce90a85fe3cc6d503e92a2b522d6b9825e | [
"Apache-2.0"
] | 2 | 2020-08-11T16:19:53.000Z | 2020-08-11T18:07:11.000Z | lib/elixir/test/elixir/uri_test.exs | ericklima-ca/elixir | 9512bcce90a85fe3cc6d503e92a2b522d6b9825e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/uri_test.exs | ericklima-ca/elixir | 9512bcce90a85fe3cc6d503e92a2b522d6b9825e | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule URITest do
use ExUnit.Case, async: true
doctest URI
test "encode/1,2" do
assert URI.encode("4_test.is-s~") == "4_test.is-s~"
assert URI.encode("\r\n&<%>\" ゆ", &URI.char_unreserved?/1) ==
"%0D%0A%26%3C%25%3E%22%20%E3%82%86"
end
t... | 33.171212 | 98 | 0.567076 |
933fa7236c9ff9efce9d1eac7d311353a0df260a | 355 | exs | Elixir | prime_square_solver/test/math_test.exs | mikestok/tpm-2016-07 | a3775073859476c34c755657aa7e99f2b5bb970e | [
"MIT"
] | 1 | 2016-07-19T23:08:58.000Z | 2016-07-19T23:08:58.000Z | prime_square_solver/test/math_test.exs | mikestok/tpm-2016-07 | a3775073859476c34c755657aa7e99f2b5bb970e | [
"MIT"
] | null | null | null | prime_square_solver/test/math_test.exs | mikestok/tpm-2016-07 | a3775073859476c34c755657aa7e99f2b5bb970e | [
"MIT"
] | null | null | null | defmodule MathTest do
use ExUnit.Case
doctest Math
# http://www.ask.com/math/prime-numbers-less-100-3ea8ce05c7c21b1a
@primes_lt_100 [
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
73, 79, 83, 89, 97
]
test "prime?" do
assert (1 .. 100) |> Enum.filter(&(Math.prime?... | 23.666667 | 79 | 0.602817 |
933fbbae30ec9489052d6abe669a3e1e8ed0e080 | 3,446 | ex | Elixir | part2/.spoiler/lib/game.ex | Tuxified/weert-workshop | abe48af48631acac89a374277b98b981702deed7 | [
"Apache-2.0"
] | null | null | null | part2/.spoiler/lib/game.ex | Tuxified/weert-workshop | abe48af48631acac89a374277b98b981702deed7 | [
"Apache-2.0"
] | null | null | null | part2/.spoiler/lib/game.ex | Tuxified/weert-workshop | abe48af48631acac89a374277b98b981702deed7 | [
"Apache-2.0"
] | null | null | null | defmodule Game do
use GenServer
require Logger
require Player
@moduledoc """
Module which functions as game master: assigning turns,
enforcing rules, declaring winners etc
"""
# public api
def start([player1_pid, player2_pid]) when is_pid(player1_pid) do
player1 = Player.current_state player1_pid... | 33.456311 | 111 | 0.689785 |
933fe91948891b4babbf25b4c016e7a539885c5f | 639 | exs | Elixir | config/config.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 1 | 2019-09-08T07:48:10.000Z | 2019-09-08T07:48:10.000Z | config/config.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | config/config.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | use Mix.Config
# By default, the umbrella project as well as each child
# application will require this configuration file, ensuring
# they all use the same configuration. While one could
# configure all applications here, we prefer to delegate
# back to each application for organization purposes.
import_config "../ap... | 35.5 | 68 | 0.769953 |
93402ed429ea6e1f9c7e31eb96b4c97cd5c45050 | 8,330 | ex | Elixir | apps/omg_eth/lib/omg_eth/root_chain/fields.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/lib/omg_eth/root_chain/fields.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/lib/omg_eth/root_chain/fields.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.564315 | 110 | 0.696999 |
9340576df759accd073c5bb477d545e0ad39652c | 110 | ex | Elixir | lib/warehouse/repo.ex | riebeekn/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | 14 | 2019-02-27T18:49:28.000Z | 2020-12-24T21:39:16.000Z | lib/warehouse/repo.ex | ammy-bajwa/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | null | null | null | lib/warehouse/repo.ex | ammy-bajwa/phx-auth-with-pow | 2b555365d6961b9afbff99f25540ca41264eba82 | [
"MIT"
] | 5 | 2019-07-16T17:50:36.000Z | 2020-08-12T22:14:41.000Z | defmodule Warehouse.Repo do
use Ecto.Repo,
otp_app: :warehouse,
adapter: Ecto.Adapters.Postgres
end
| 18.333333 | 35 | 0.736364 |
93406656900c218d8f54a769d0f01fad52ddc169 | 14,987 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/training_options.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/training_options.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/training_options.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 65.16087 | 618 | 0.675452 |
93406ca740d0c3f1c72913900fb476cd7a2d4d1f | 13,425 | ex | Elixir | lib/aws/generated/sdb.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sdb.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sdb.ex | smanolloff/aws-elixir | c7cb6577802f5010be7e7b6ccb2c0f3c8c73ea84 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Sdb do
@moduledoc """
Amazon SimpleDB is a web service providing the core database functions of data
indexing and querying in the cloud.
By offloading the time and effort associated with ... | 41.82243 | 118 | 0.733706 |
934091acf302992bf809728e63e5ed2987851512 | 2,656 | ex | Elixir | lib/towwwer/job.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 1 | 2019-05-03T13:39:40.000Z | 2019-05-03T13:39:40.000Z | lib/towwwer/job.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | 13 | 2019-03-27T05:40:41.000Z | 2019-05-24T10:43:31.000Z | lib/towwwer/job.ex | juhalehtonen/towwwer | 552fe57e93adc9c521a4c6a8ef550b84efec32ca | [
"MIT"
] | null | null | null | defmodule Towwwer.Job do
@moduledoc """
Enqueue job for later execution and return immediately:
Rihanna.enqueue(Towwwer.Job, [arg1, arg2])
A recurring job is implemented by having the job reschedule itself after completion
and Postgres’ ACID guarantees will ensure that it continues running.
NOTE: You will... | 34.493506 | 91 | 0.687123 |
9340968e27db603f47b0cbeb9866b54d559c3281 | 274 | exs | Elixir | test/fixtures/two_mods/mix.exs | hauleth/mix_unused | 778f60773a1c0d10e62b85c5fd39611b71b41e53 | [
"MIT"
] | 116 | 2019-01-05T02:08:47.000Z | 2022-03-29T08:10:16.000Z | test/fixtures/two_mods/mix.exs | hauleth/mix_unused | 778f60773a1c0d10e62b85c5fd39611b71b41e53 | [
"MIT"
] | 22 | 2020-04-12T23:29:14.000Z | 2022-03-30T17:23:21.000Z | test/fixtures/two_mods/mix.exs | hauleth/mix_unused | 778f60773a1c0d10e62b85c5fd39611b71b41e53 | [
"MIT"
] | 2 | 2021-09-28T10:35:00.000Z | 2022-03-24T14:08:27.000Z | defmodule MixUnused.Fixtures.TwoModsProject do
use Mix.Project
def project do
[
app: :two_mods,
compilers: [:unused | Mix.compilers()],
version: "0.0.0",
unused: [
ignore: [
{Bar, :bar, 0}
]
]
]
end
end
| 16.117647 | 46 | 0.510949 |
9340a4184b94a268560980e0055cb19ae8251f1c | 2,347 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_import_data_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_import_data_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1p1alpha1_import_data_operation_metadata.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... | 39.116667 | 262 | 0.745633 |
9340ba021d3fc05fdd8090173afb5df0a2a44132 | 661 | exs | Elixir | mix.exs | hh-ex/march-2016-coding | e9f2db70bfedfcdcc964defb61396364d48d9124 | [
"MIT"
] | null | null | null | mix.exs | hh-ex/march-2016-coding | e9f2db70bfedfcdcc964defb61396364d48d9124 | [
"MIT"
] | 2 | 2016-04-02T14:29:17.000Z | 2016-04-13T23:03:39.000Z | mix.exs | hh-ex/march-2016-coding | e9f2db70bfedfcdcc964defb61396364d48d9124 | [
"MIT"
] | null | null | null | defmodule Span.Mixfile do
use Mix.Project
def project do
[app: :span,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more infor... | 20.030303 | 77 | 0.605144 |
9340d441204a9eddc2601f790522eae8f8fdff82 | 511 | ex | Elixir | lib/medic/checks.ex | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | 3 | 2021-06-18T18:42:35.000Z | 2022-02-09T01:54:58.000Z | lib/medic/checks.ex | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | 3 | 2021-06-17T19:02:32.000Z | 2021-06-17T19:44:35.000Z | lib/medic/checks.ex | eahanson/medic | 01f35f2aa22e7120cf1bd492e6e5400a29224791 | [
"MIT"
] | 1 | 2022-03-10T19:16:14.000Z | 2022-03-10T19:16:14.000Z | defmodule Medic.Checks do
@moduledoc """
Namespace for check modules provided by Medic.
"""
@checks_dir ".medic/checks"
@doc false
def load_local_files do
with :ok <- checks_dir_exists?(),
{:ok, files} <- File.ls(@checks_dir) do
for file <- files do
Code.require_file(file, @chec... | 18.925926 | 48 | 0.594912 |
9340f18a15836782b4f11d3041d5dcbd52f4a327 | 268 | ex | Elixir | lib/phoenix.ex | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | lib/phoenix.ex | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | lib/phoenix.ex | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | defmodule Phoenix do
use Application
@doc false
def start(_type, _args) do
# Warm up caches
_ = Phoenix.Template.engines
_ = Phoenix.Template.format_encoder("index.html")
# Start the supervision tree
Phoenix.Supervisor.start_link
end
end
| 19.142857 | 53 | 0.708955 |
9340f2b004abcbcc5a95bd226e765fa1b247c3aa | 1,614 | ex | Elixir | clients/people/lib/google_api/people/v1/model/skill.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/people/lib/google_api/people/v1/model/skill.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/people/lib/google_api/people/v1/model/skill.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... | 32.28 | 116 | 0.716233 |
9340f2dbc2c24114dba89b1d8da5c668c2cb0cc9 | 597 | ex | Elixir | lib/flix/catalogs/favorite.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 3 | 2021-03-21T23:52:16.000Z | 2021-06-02T03:47:00.000Z | lib/flix/catalogs/favorite.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 44 | 2021-04-09T04:04:13.000Z | 2022-03-29T06:29:37.000Z | lib/flix/catalogs/favorite.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | null | null | null | defmodule Flix.Catalogs.Favorite do
use Ecto.Schema
import Ecto.Changeset
alias Flix.Accounts.User
alias Flix.Catalogs.Movie
schema "favorites" do
belongs_to :user, User
belongs_to :movie, Movie
timestamps()
end
@doc false
def changeset(favorite, attrs) do
favorite
|> cast(attrs,... | 18.090909 | 41 | 0.696817 |
934118f2b6a40efa94a9ae0b566d45cf1e8ac112 | 1,679 | ex | Elixir | lib/phx_template_web.ex | sinorga/phx_template | 730a44df362c1e035cb8afd55d2e49d44fa60632 | [
"MIT"
] | null | null | null | lib/phx_template_web.ex | sinorga/phx_template | 730a44df362c1e035cb8afd55d2e49d44fa60632 | [
"MIT"
] | null | null | null | lib/phx_template_web.ex | sinorga/phx_template | 730a44df362c1e035cb8afd55d2e49d44fa60632 | [
"MIT"
] | null | null | null | defmodule PhxTemplateWeb 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 PhxTemplateWeb, :controller
use PhxTemplateWeb, :view
The definitions below will be executed for every view,
... | 23.985714 | 83 | 0.698035 |
93411e464b7b5bc015d3eee026a0d740595b96fe | 2,086 | ex | Elixir | lib/nerves_hub_user_api/deployment.ex | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 2 | 2019-06-18T19:59:13.000Z | 2020-01-13T18:45:50.000Z | lib/nerves_hub_user_api/deployment.ex | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 9 | 2019-03-08T19:06:33.000Z | 2022-03-16T21:35:04.000Z | lib/nerves_hub_user_api/deployment.ex | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 3 | 2019-11-25T12:15:30.000Z | 2021-01-22T16:17:37.000Z | defmodule NervesHubUserAPI.Deployment do
@moduledoc """
Manage NervesHub deployments
Path: /orgs/:org_name/products/:product_name/deployments
"""
alias NervesHubUserAPI.{Auth, API, Product}
@path "deployments"
@doc """
List all deployments for a product.
Verb: GET
Path: /orgs/:org_name/products/... | 28.189189 | 91 | 0.633269 |
934134bcb26e8d858ebb21f70e3d0f0229af1253 | 625 | ex | Elixir | extended_example/lib/web/views/view_helpers.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 19 | 2020-10-08T14:05:30.000Z | 2022-03-18T08:43:11.000Z | extended_example/lib/web/views/view_helpers.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | null | null | null | extended_example/lib/web/views/view_helpers.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 3 | 2021-02-19T08:31:58.000Z | 2021-12-09T05:28:55.000Z | defmodule Web.ViewHelpers do
def time(nil), do: ""
def time(time) when is_binary(time) do
time
|> Time.from_iso8601!()
|> time()
end
def time(%Time{} = time) do
time
|> Time.truncate(:second)
|> Time.to_string()
end
def icon(name, opts \\ []) do
assigns = [name: name, class: o... | 18.939394 | 53 | 0.5984 |
93413ff86e4ab8fe79f39236f350aaf5b2358d04 | 847 | ex | Elixir | lib/bonfire/sharing/projector.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 71 | 2020-03-09T02:09:30.000Z | 2022-03-09T06:10:23.000Z | lib/bonfire/sharing/projector.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | null | null | null | lib/bonfire/sharing/projector.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 4 | 2020-04-03T02:28:05.000Z | 2021-11-24T20:07:25.000Z | defmodule Bonfire.Sharing.Projector do
@moduledoc """
A projector with hooks on sharing changes.
"""
use Commanded.Projections.Ecto,
application: Bonfire.EventApp,
repo: Bonfire.Repo,
name: "sharing_track_projection"
alias Bonfire.Sharing.{
Events.SharingStarted,
Profile
}
require L... | 25.666667 | 91 | 0.68595 |
934149cd9662be6b9e27d1d4edefcc75e59884cd | 51,449 | ex | Elixir | lib/aws/generated/dynamodb.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/dynamodb.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/dynamodb.ex | andrewhr/aws-elixir | 861dc2fafca50a2b2f83badba4cdcb44b5b0c171 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.DynamoDB do
@moduledoc """
Amazon DynamoDB
Amazon DynamoDB is a fully managed NoSQL database service that provides fast and
predictable performance with seamless scalability.
DynamoDB ... | 43.563929 | 185 | 0.752512 |
934151e3829475b8a91dd71ed1bb2378d9bc74ef | 9,024 | ex | Elixir | lib/video/source.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | lib/video/source.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | lib/video/source.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule Video.Source do
import SweetXml
@known_params [
:source,
:available_detections,
:available_gpx,
:date
]
@enforce_keys @known_params
defstruct @known_params
@type t :: %__MODULE__{}
def new_from_path(source_path) do
error_unless_valid_source(source_path) ||
new_from_... | 32.228571 | 295 | 0.635527 |
934175a79d514d024ee2fbd27ef947f17ec5e8ec | 78,303 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.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... | 45.844848 | 607 | 0.619133 |
9341811da34bb779af0471728de1fe6ff351503d | 824 | ex | Elixir | lib/excoveralls/json.ex | Apelsinka223/excoveralls | 500b8638851a3b6f261127ee72fe4a4a1805ea61 | [
"MIT"
] | null | null | null | lib/excoveralls/json.ex | Apelsinka223/excoveralls | 500b8638851a3b6f261127ee72fe4a4a1805ea61 | [
"MIT"
] | null | null | null | lib/excoveralls/json.ex | Apelsinka223/excoveralls | 500b8638851a3b6f261127ee72fe4a4a1805ea61 | [
"MIT"
] | 2 | 2019-03-15T08:12:53.000Z | 2019-06-11T11:34:04.000Z | defmodule ExCoveralls.Json do
@moduledoc """
Generate JSON output for results.
"""
@file_name "excoveralls.json"
@doc """
Provides an entry point for the module.
"""
def execute(stats, options \\ []) do
generate_json(stats, Enum.into(options, %{})) |> write_file
ExCoveralls.Local.print_summar... | 20.6 | 63 | 0.656553 |
934183bb12d0577d1e8801a30241f20df77ffc56 | 148 | exs | Elixir | .formatter.exs | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | .formatter.exs | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | .formatter.exs | ZucchiniZe/nightcrawler_elixir | be82b0e7c25f55c7d2c2d3aa2860371cb68aeeb6 | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
subdirectories: ["apps/*"],
import_deps: [:phoenix, :ecto]
]
| 21.142857 | 57 | 0.574324 |
9341995d178298cd189c2c0f35d6973f8d1c1512 | 1,125 | ex | Elixir | backend/lib/honeyland/appliances/appliance_model_part_number.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/appliances/appliance_model_part_number.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/lib/honeyland/appliances/appliance_model_part_number.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 28.125 | 74 | 0.757333 |
9341a60532e296739be19e890d7dfcb855fb0112 | 223 | ex | Elixir | lib/phone/ru.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | null | null | null | lib/phone/ru.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | null | null | null | lib/phone/ru.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 1 | 2019-05-30T15:05:51.000Z | 2019-05-30T15:05:51.000Z | defmodule Phone.RU do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(7)([3-589]..)(.{7})/
def country, do: "Russia"
def a2, do: "RU"
def a3, do: "RUS"
matcher(:regex, ["73", "75", "78", "79"])
end
| 17.153846 | 43 | 0.560538 |
9341cff0482d174a27174a117b8cbadabc045cb9 | 2,402 | exs | Elixir | test/plug_test.exs | arjan/exstatic | 57364511f509f8ba8bee2e3bb7226db1d5f6d8b7 | [
"MIT"
] | 32 | 2015-11-09T19:55:01.000Z | 2021-09-19T08:12:52.000Z | test/plug_test.exs | arjan/exstatic | 57364511f509f8ba8bee2e3bb7226db1d5f6d8b7 | [
"MIT"
] | null | null | null | test/plug_test.exs | arjan/exstatic | 57364511f509f8ba8bee2e3bb7226db1d5f6d8b7 | [
"MIT"
] | 2 | 2016-05-25T08:31:04.000Z | 2019-04-29T03:14:05.000Z | defmodule ExStatic.Test.Plug do
use ExUnit.Case
use Plug.Test
setup do
Mix.Tasks.Exstatic.Compile.run(["test/fixtures/priv"])
end
test "Pass through non-existing files" do
conn = conn(:get, "/doesnotexist")
assert ^conn = serve(conn, [at: "/"])
end
test "Pass through invalid req method ... | 29.292683 | 83 | 0.614904 |
9341d9984195d27a9b68c7856aa42f809a4ea792 | 391 | ex | Elixir | ex/loqui/lib/loqui/types.ex | cwertyar/loqui | 3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0 | [
"MIT"
] | null | null | null | ex/loqui/lib/loqui/types.ex | cwertyar/loqui | 3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0 | [
"MIT"
] | null | null | null | ex/loqui/lib/loqui/types.ex | cwertyar/loqui | 3dfd2dfedb35d8d7942adc7dc494feeac5d55bf0 | [
"MIT"
] | null | null | null | defmodule Loqui.Types do
@moduledoc false
defmacro __using__(_) do
quote do
@doc false
defmacro uint8 do
quote do: unsigned-integer-size(8)
end
@doc false
defmacro uint16 do
quote do: unsigned-integer-size(16)
end
@doc false
defmacro uint32 do
... | 17 | 43 | 0.598465 |
9341ef788fa2e82b0821355d7f416ebe425d79ef | 34,484 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.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... | 63.389706 | 1,327 | 0.715143 |
9341f6c3d13d72c99e93fd34dd4fcf5a2b1a9f6b | 682 | ex | Elixir | web/router.ex | chrismccord/phorechat | 26c5b2f752f5c8e50d07d49b2b20d9341d8b2464 | [
"MIT"
] | 1 | 2021-01-19T05:40:52.000Z | 2021-01-19T05:40:52.000Z | web/router.ex | chrismccord/phorechat | 26c5b2f752f5c8e50d07d49b2b20d9341d8b2464 | [
"MIT"
] | null | null | null | web/router.ex | chrismccord/phorechat | 26c5b2f752f5c8e50d07d49b2b20d9341d8b2464 | [
"MIT"
] | 1 | 2015-10-02T15:58:09.000Z | 2015-10-02T15:58:09.000Z | defmodule Phorechat.Router do
use Phorechat.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Phorechat do
pipe_through :browser # Use the default b... | 20.666667 | 70 | 0.674487 |
9342015e0523898c50c087f42a55a6b905954221 | 780 | ex | Elixir | elixir-phoenix/test/support/channel_case.ex | saurav1991/interview-boilerplates | 9e0abf64d9cc0a97df0e3be9483108b3920679e1 | [
"MIT"
] | null | null | null | elixir-phoenix/test/support/channel_case.ex | saurav1991/interview-boilerplates | 9e0abf64d9cc0a97df0e3be9483108b3920679e1 | [
"MIT"
] | null | null | null | elixir-phoenix/test/support/channel_case.ex | saurav1991/interview-boilerplates | 9e0abf64d9cc0a97df0e3be9483108b3920679e1 | [
"MIT"
] | null | null | null | defmodule HelloworldWeb.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... | 22.941176 | 58 | 0.728205 |
934210c8c57d1c22160f9fe18324517342a6e4d2 | 2,395 | ex | Elixir | lib/phoenix/live_dashboard/info/app_info_component.ex | wojtekmach/phoenix_live_dashboard | 5b0a001bd5772ffc1e9de82b954a62c860490fc5 | [
"MIT"
] | 1 | 2020-06-11T00:39:12.000Z | 2020-06-11T00:39:12.000Z | lib/phoenix/live_dashboard/info/app_info_component.ex | wojtekmach/phoenix_live_dashboard | 5b0a001bd5772ffc1e9de82b954a62c860490fc5 | [
"MIT"
] | 1 | 2020-06-11T01:43:00.000Z | 2020-06-16T04:48:00.000Z | lib/phoenix/live_dashboard/info/app_info_component.ex | wojtekmach/phoenix_live_dashboard | 5b0a001bd5772ffc1e9de82b954a62c860490fc5 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.AppInfoComponent do
use Phoenix.LiveDashboard.Web, :live_component
alias Phoenix.LiveDashboard.{SystemInfo, ReingoldTilford}
@impl true
def render(assigns) do
~L"""
<div class="app-info">
<%= if @alive do %>
<svg width="<%= @width %>" height="<%= @height %... | 36.846154 | 144 | 0.57286 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.