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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ff462174c364ad75042c6ab2409ea16171a92b4 | 720 | ex | Elixir | lib/oli_web/live/projects/card.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/live/projects/card.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli_web/live/projects/card.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule OliWeb.Projects.Card do
use Phoenix.LiveComponent
alias OliWeb.Router.Helpers, as: Routes
def render(assigns) do
~L"""
<div class="col my-1">
<a class="course-card-link card h-100 mb-4" href="<%= Routes.project_path(OliWeb.Endpoint, :overview, @project)%>">
<div class="card-body">... | 34.285714 | 126 | 0.593056 |
3ff4632fd06827657b0e1fb44f3837ed95e71596 | 401 | ex | Elixir | lib/eql/expression.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/eql/expression.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/eql/expression.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | defmodule EQL.Expression do
@moduledoc false
alias EQL.AST
@callback to_ast(term) :: AST.t() | nil
@spec to_ast([module] | module, term) :: AST.t() | nil
def to_ast([], _), do: nil
def to_ast([module | t], term) do
case to_ast(module, term) do
nil -> to_ast(t, term)
otherwise -> otherwis... | 18.227273 | 56 | 0.61596 |
3ff464821ea3b51049c15525ee827ff5e4f3f64a | 1,537 | ex | Elixir | turtle_pose_phoenix/lib/turtle_pose_phoenix_web/router.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | null | null | null | turtle_pose_phoenix/lib/turtle_pose_phoenix_web/router.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | 4 | 2022-01-25T00:53:34.000Z | 2022-03-26T15:28:18.000Z | turtle_pose_phoenix/lib/turtle_pose_phoenix_web/router.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | null | null | null | defmodule TurtlePosePhoenixWeb.Router do
use TurtlePosePhoenixWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {TurtlePosePhoenixWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
en... | 26.050847 | 74 | 0.706571 |
3ff493500a9b160f5e2ab29ebbbceafcaa8e5c7d | 558 | ex | Elixir | lib/band_manager/artists/album.ex | tutsplus/get-started-with-phoenix | c729d25291fedda134ce7a4d307fe4b3cc50db89 | [
"BSD-2-Clause"
] | 3 | 2019-04-11T07:29:58.000Z | 2021-03-14T00:01:58.000Z | lib/band_manager/artists/album.ex | tutsplus/get-started-with-phoenix | c729d25291fedda134ce7a4d307fe4b3cc50db89 | [
"BSD-2-Clause"
] | null | null | null | lib/band_manager/artists/album.ex | tutsplus/get-started-with-phoenix | c729d25291fedda134ce7a4d307fe4b3cc50db89 | [
"BSD-2-Clause"
] | null | null | null | defmodule BandManager.Artists.Album do
use Ecto.Schema
import Ecto.Changeset
alias BandManager.Artists.{Album, Band, Song}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "albums" do
field :name, :string
field :year, :integer
belongs_to :band, Band
h... | 20.666667 | 52 | 0.663082 |
3ff4ad65670c95278f26c662fff980bbd885b697 | 71 | ex | Elixir | lib/twinklyhaha_web/views/layout_view.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | 2 | 2020-10-04T12:41:53.000Z | 2020-11-11T11:24:54.000Z | lib/twinklyhaha_web/views/layout_view.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | 22 | 2021-12-02T09:16:30.000Z | 2022-03-21T06:33:29.000Z | lib/twinklyhaha_web/views/layout_view.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | 2 | 2020-11-09T08:27:19.000Z | 2020-11-10T04:25:21.000Z | defmodule TwinklyhahaWeb.LayoutView do
use TwinklyhahaWeb, :view
end
| 17.75 | 38 | 0.830986 |
3ff4af5a093289f896c951153d6108893a8f33e0 | 929 | ex | Elixir | test/support/channel_case.ex | jmilamwalters/pm_bot | 480b1435aa1e4f1c3e3234039f8e3567aba82a31 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | jmilamwalters/pm_bot | 480b1435aa1e4f1c3e3234039f8e3567aba82a31 | [
"MIT"
] | 3 | 2018-01-15T02:30:21.000Z | 2018-02-02T21:02:41.000Z | test/support/channel_case.ex | jmilamwalters/pm_bot | 480b1435aa1e4f1c3e3234039f8e3567aba82a31 | [
"MIT"
] | null | null | null | defmodule PmBotWeb.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 with... | 24.447368 | 67 | 0.713671 |
3ff4b07f26213e83d832407270a87188734bf9ea | 441 | ex | Elixir | lib/api/reporting_api.ex | iwatakeshi/square-elixir-sdk | 011b4575b0723a16942b87b6fb98fab558e8d847 | [
"Apache-2.0"
] | null | null | null | lib/api/reporting_api.ex | iwatakeshi/square-elixir-sdk | 011b4575b0723a16942b87b6fb98fab558e8d847 | [
"Apache-2.0"
] | null | null | null | lib/api/reporting_api.ex | iwatakeshi/square-elixir-sdk | 011b4575b0723a16942b87b6fb98fab558e8d847 | [
"Apache-2.0"
] | null | null | null | defmodule Square.Reporting do
def list_additional_recipient_receivables_refunds(client, location_id, params \\ []),
do:
Tesla.get(client, "locations/#{location_id}/additional-recipient-receivable-refunds",
query: params
)
def list_additional_recipient_receivables(client, location_id, params... | 36.75 | 99 | 0.732426 |
3ff4b693f6e360ff826ad4e97b99dfe4132db610 | 411 | ex | Elixir | benchmark/lib/compiled.ex | IanLuites/adapter | 3491d1d73aeb693ca8d68df276a52310578f69bb | [
"MIT"
] | 8 | 2020-11-02T18:02:30.000Z | 2021-09-22T12:58:44.000Z | benchmark/lib/compiled.ex | IanLuites/adapter | 3491d1d73aeb693ca8d68df276a52310578f69bb | [
"MIT"
] | null | null | null | benchmark/lib/compiled.ex | IanLuites/adapter | 3491d1d73aeb693ca8d68df276a52310578f69bb | [
"MIT"
] | null | null | null | defmodule BenchCompiled do
use Adapter, default: BenchCompiled.A, mode: :compile, log: false
behavior do
@doc ~S"Some docs"
@callback some_function :: boolean
end
end
defmodule BenchCompiled.A do
@behaviour BenchCompiled
@impl BenchCompiled
def some_function, do: false
end
defmodule BenchCompile... | 17.869565 | 67 | 0.751825 |
3ff4d11208dd93e84f8b423ae8689ec095dab208 | 581 | ex | Elixir | lib/busybox/application.ex | aadavids/elixir_busybox | 075a6c9702c6320161df0e932357ebac548867b5 | [
"MIT"
] | 2 | 2019-06-06T20:16:07.000Z | 2019-06-06T22:12:25.000Z | lib/busybox/application.ex | aadavids/elixir_busybox | 075a6c9702c6320161df0e932357ebac548867b5 | [
"MIT"
] | 5 | 2019-06-26T16:07:24.000Z | 2019-11-22T15:59:12.000Z | lib/busybox/application.ex | aadavids/elixir_busybox | 075a6c9702c6320161df0e932357ebac548867b5 | [
"MIT"
] | 2 | 2019-08-21T16:12:24.000Z | 2020-09-04T18:16:38.000Z | defmodule Busybox.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: Busybox.Worker.start_l... | 27.666667 | 66 | 0.710843 |
3ff4e4b02dfd4bbd1d832fc0d39981e6be16973a | 920 | ex | Elixir | lib/iex_line_bot/application.ex | pastleo/iex_line_bot | 73d02b45adc05bc7331fa5f88859861d04a2e71f | [
"MIT"
] | 1 | 2019-06-24T23:55:26.000Z | 2019-06-24T23:55:26.000Z | lib/iex_line_bot/application.ex | pastleo/iex_line_bot | 73d02b45adc05bc7331fa5f88859861d04a2e71f | [
"MIT"
] | null | null | null | lib/iex_line_bot/application.ex | pastleo/iex_line_bot | 73d02b45adc05bc7331fa5f88859861d04a2e71f | [
"MIT"
] | null | null | null | defmodule IexLineBot.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 29.677419 | 69 | 0.722826 |
3ff4ef386f05caec1cc4959d535c3223802d290f | 753 | exs | Elixir | test/unit/hologram/compiler/transformers/list_subtraction_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/transformers/list_subtraction_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/transformers/list_subtraction_operator_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.ListSubtractionOperatorTransformerTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.{Context, ListSubtractionOperatorTransformer}
alias Hologram.Compiler.IR.{IntegerType, ListSubtractionOperator, ListType}
test "transform/3" do
code = "[1, 2] -- [3, 2]"
... | 24.290323 | 77 | 0.63081 |
3ff50d2f6ae99aaa4e57c23c562a98f1133f83ef | 55,354 | ex | Elixir | lib/elixir/lib/kernel/special_forms.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/special_forms.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/special_forms.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.SpecialForms do
@moduledoc """
Special forms are the basic building blocks of Elixir, and therefore
cannot be overridden by the developer.
We define them in this module. Some of these forms are lexical (like
`alias/2`, `case/2`, etc). The macros `{}` and `<<>>` are also special
forms used ... | 28.127033 | 115 | 0.630542 |
3ff530983e5fe1fe5295500c15693ca9657ce9e7 | 3,252 | ex | Elixir | apps/instance/lib/instance/stack/config_loader.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/instance/lib/instance/stack/config_loader.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/instance/lib/instance/stack/config_loader.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.Instance.Stack.ConfigLoader do
@moduledoc """
Module will load list of stack configs form folder (see: `Application.get_env(:instance, :stacks_dir)`)
State for config loader will consist of map in format:
```elixir
%{
"stack_name" => %Staxx.Instance.Stack.Config{},
"another_stack_name... | 22.741259 | 105 | 0.640529 |
3ff530be0b53aae867fc21b3aa3a9cc52024e0a6 | 6,728 | ex | Elixir | programming/elixir/conduit/lib/conduit/blog/blog.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/lib/conduit/blog/blog.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/lib/conduit/blog/blog.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule Conduit.Blog do
@moduledoc """
The boundary for the Blog system.
"""
alias Conduit.Accounts.Projections.User
alias Conduit.Blog.Commands.{FavoriteArticle,FollowAuthor,CommentOnArticle,CreateAuthor,DeleteComment,FavoriteArticle,PublishArticle,UnfavoriteArticle,UnfollowAuthor}
alias Conduit.Blog.Pr... | 28.508475 | 168 | 0.670036 |
3ff54da63bd1b3243a73d661a1883826a9bd6416 | 1,514 | ex | Elixir | apps/cb_web/lib/cb_web/router.ex | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 16 | 2016-09-14T16:57:33.000Z | 2017-11-11T16:31:14.000Z | apps/cb_web/lib/cb_web/router.ex | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 5 | 2016-09-08T07:14:44.000Z | 2018-11-09T12:34:19.000Z | apps/cb_web/lib/cb_web/router.ex | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | null | null | null | defmodule CbWeb.Router do
@moduledoc """
A Plug router that acts as an interface to control the robot. The
control page is displayed initially with `get /`. All state changing operations
are posts.
"""
use Plug.Router
plug Plug.Parsers, parsers: [:urlencoded]
alias CbLocomotion.Locomotion
alias CbWeb... | 22.939394 | 81 | 0.679657 |
3ff54f910889f46186df16af591d8e58eec5d97c | 23,915 | exs | Elixir | lib/elixir/test/elixir/base_test.exs | vanstee/elixir | ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/base_test.exs | vanstee/elixir | ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/base_test.exs | vanstee/elixir | ecce4a991f02bc04c7a6527b6a8e7a8ddbfe4f64 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule BaseTest do
use ExUnit.Case, async: true
doctest Base
import Base
test "encode16/1" do
assert "" == encode16("")
assert "66" == encode16("f")
assert "666F" == encode16("fo")
assert "666F6F" == encode16("foo")
assert "666F6F62" == enc... | 31.717507 | 110 | 0.663308 |
3ff575302d5152addf81fb8a91f614f037a37326 | 1,642 | exs | Elixir | lib/elixir/test/elixir/behaviour_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/elixir/test/elixir/behaviour_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/behaviour_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | Code.require_file "test_helper.exs", __DIR__
defmodule BehaviourTest do
use ExUnit.Case, async: true
defmodule Sample do
use Behaviour
@doc "I should be first."
defcallback first(integer) :: integer
@doc "Foo"
defcallback foo(atom(), binary) :: binary
@doc "Bar"
defcallback bar(Exte... | 25.261538 | 122 | 0.609622 |
3ff58a9c6e52d53dacf0e1059e7849234172392c | 33,420 | exs | Elixir | test/ecto/query/planner_test.exs | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/planner_test.exs | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../../integration_test/support/types.exs", __DIR__
defmodule Ecto.Query.PlannerTest do
use ExUnit.Case, async: true
import Ecto.Query
alias Ecto.Query.Planner
alias Ecto.Query.JoinExpr
defmodule Comment do
use Ecto.Schema
schema "comments" do
field :text, :string
... | 40.120048 | 140 | 0.587642 |
3ff58d602995b3f7f52c385f0524b630ee12c596 | 11,496 | ex | Elixir | lib/la_famiglia/villa.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 5 | 2016-10-20T10:00:59.000Z | 2017-11-19T08:14:18.000Z | lib/la_famiglia/villa.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 39 | 2020-04-22T05:27:32.000Z | 2022-03-13T17:22:26.000Z | lib/la_famiglia/villa.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | null | null | null | defmodule LaFamiglia.Villa do
use LaFamiglia.Web, :model
alias LaFamiglia.Mechanics
alias LaFamiglia.{Resource, Building, Unit}
alias LaFamiglia.Repo
alias LaFamiglia.Player
alias LaFamiglia.Villa
alias LaFamiglia.BuildingQueueItem
alias LaFamiglia.UnitQueueItem
alias LaFamiglia.{AttackMovement, Com... | 29.251908 | 96 | 0.66397 |
3ff5927a0e9a28afcfafe80275fc0083b93c0ecd | 2,198 | ex | Elixir | deps/phoenix/lib/phoenix/exceptions.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/exceptions.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/exceptions.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Phoenix.NotAcceptableError do
@moduledoc """
Raised when one of the `accept*` headers is not accepted by the server.
This exception is commonly raised by `Phoenix.Controller.accepts/2`
which negotiates the media types the server is able to serve with
the contents the client is able to render.... | 31.4 | 80 | 0.704277 |
3ff5a338f56200f9927123566e2be3c885f40f12 | 334 | ex | Elixir | lib/supabase_surface/components/icons/icon_key.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_key.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_key.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconKey do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.key(width: icon_size, height: icon_size)}
</IconContainer>
... | 22.266667 | 61 | 0.712575 |
3ff5ce063a2aeb9c7b70f8cf1dd72629c7d80700 | 1,103 | exs | Elixir | mix.exs | salemove/tesla_statsd | 9bfc49cd28da9f910d092f961bcb0d42626ceab9 | [
"MIT"
] | 1 | 2018-08-24T10:13:55.000Z | 2018-08-24T10:13:55.000Z | mix.exs | salemove/tesla_statsd | 9bfc49cd28da9f910d092f961bcb0d42626ceab9 | [
"MIT"
] | 1 | 2019-10-15T08:03:02.000Z | 2019-10-15T08:03:02.000Z | mix.exs | salemove/tesla_statsd | 9bfc49cd28da9f910d092f961bcb0d42626ceab9 | [
"MIT"
] | 1 | 2019-10-15T07:27:23.000Z | 2019-10-15T07:27:23.000Z | defmodule Tesla.StatsD.Mixfile do
use Mix.Project
def project do
[
app: :tesla_statsd,
version: "0.4.0",
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description(),
... | 20.811321 | 70 | 0.543064 |
3ff5ffdbb1309904d1c33386ce10ffda7642b422 | 1,424 | ex | Elixir | lib/meal_tracker/commands/help.ex | lee-dohm/meal-tracker | cfcf738ecf262b1763d239e6936826909d23f46e | [
"MIT"
] | 2 | 2019-07-21T22:47:33.000Z | 2020-01-26T17:54:07.000Z | lib/meal_tracker/commands/help.ex | lee-dohm/meal-tracker | cfcf738ecf262b1763d239e6936826909d23f46e | [
"MIT"
] | 21 | 2015-09-14T06:37:06.000Z | 2019-08-05T02:30:22.000Z | lib/meal_tracker/commands/help.ex | lee-dohm/meal-tracker | cfcf738ecf262b1763d239e6936826909d23f46e | [
"MIT"
] | null | null | null | defmodule MealTracker.Commands.Help do
@moduledoc """
Displays delp for the application or a command.
```
track help [COMMAND]
```
"""
use MealTracker.Command
alias MealTracker.Command
@shortdoc "Prints help information for commands"
@doc false
def run(options) do
Command.load_all()
... | 20.056338 | 92 | 0.591994 |
3ff6026e26a7c5e364101dbea3e6cd27d65ff5fd | 1,347 | exs | Elixir | mix.exs | whitfin/child-spec-compat | 58d8e1e7ea6c79f19d60a2e56cd877c6c3bc9cb6 | [
"MIT"
] | 2 | 2017-12-04T10:30:18.000Z | 2017-12-04T17:46:35.000Z | mix.exs | whitfin/child-spec-compat | 58d8e1e7ea6c79f19d60a2e56cd877c6c3bc9cb6 | [
"MIT"
] | null | null | null | mix.exs | whitfin/child-spec-compat | 58d8e1e7ea6c79f19d60a2e56cd877c6c3bc9cb6 | [
"MIT"
] | null | null | null | defmodule ChildSpecCompat.Mixfile do
use Mix.Project
# Constants for repository information
@url_docs "http://hexdocs.pm/child-spec-compat"
@url_github "https://github.com/whitfin/child-spec-compat"
# Project specification
def project do
[
app: :child_spec_compat,
name: "child-spec-compat"... | 22.830508 | 80 | 0.561247 |
3ff616fec98a5611bf9a2159b4e1cb9cd79c4293 | 1,445 | ex | Elixir | lib/excoveralls/xml.ex | michaelst/excoveralls | cf806aa18c116ef344a6a39bcec8a8f5e111644a | [
"MIT"
] | null | null | null | lib/excoveralls/xml.ex | michaelst/excoveralls | cf806aa18c116ef344a6a39bcec8a8f5e111644a | [
"MIT"
] | null | null | null | lib/excoveralls/xml.ex | michaelst/excoveralls | cf806aa18c116ef344a6a39bcec8a8f5e111644a | [
"MIT"
] | null | null | null | defmodule ExCoveralls.Xml do
@moduledoc """
Generate XML output for results.
"""
alias ExCoveralls.Settings
@file_name "excoveralls.xml"
@doc """
Provides an entry point for the module.
"""
def execute(stats, options \\ []) do
stats
|> generate_xml(Enum.into(options, %{}))
|> write_file... | 25.350877 | 94 | 0.592388 |
3ff68b6df0d7e405bde240287be93adf32aaf227 | 77 | exs | Elixir | test/vcr_mock_helper_test.exs | sudix/vcr_mock_helper | 1a25df6ffa54a484bc25a5972d386e5f9e610a16 | [
"MIT"
] | 1 | 2018-05-27T09:27:04.000Z | 2018-05-27T09:27:04.000Z | test/vcr_mock_helper_test.exs | sudix/vcr_mock_helper | 1a25df6ffa54a484bc25a5972d386e5f9e610a16 | [
"MIT"
] | null | null | null | test/vcr_mock_helper_test.exs | sudix/vcr_mock_helper | 1a25df6ffa54a484bc25a5972d386e5f9e610a16 | [
"MIT"
] | null | null | null | defmodule VCRMockHelperTest do
use ExUnit.Case
doctest VCRMockHelper
end
| 15.4 | 30 | 0.831169 |
3ff69a5090d8fff9b109114b7862373745e22960 | 212 | exs | Elixir | .formatter.exs | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | 3 | 2021-10-30T20:02:52.000Z | 2021-11-12T22:55:30.000Z | .formatter.exs | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | 7 | 2021-11-18T00:39:10.000Z | 2022-03-23T11:11:26.000Z | .formatter.exs | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | null | null | null | # Used by "mix format"
[
import_deps: [:ecto],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [field: 3, assert_valid_changeset: 1, refute_valid_changeset: 1]
]
| 30.285714 | 89 | 0.669811 |
3ff6c0b792edf522ef4be60e60261c0d4442e7b3 | 1,636 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_review_document_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_review_document_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta2/model/google_cloud_documentai_v1beta3_review_document_response.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... | 31.461538 | 118 | 0.757946 |
3ff6c5ea1366c161da065b49a3e5db133ce26b99 | 15,141 | ex | Elixir | clients/groups_settings/lib/google_api/groups_settings/v1/model/groups.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/groups_settings/lib/google_api/groups_settings/v1/model/groups.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/groups_settings/lib/google_api/groups_settings/v1/model/groups.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... | 66.407895 | 234 | 0.754243 |
3ff6eaaa23d68f62bcea7e6baf2621ea4427e3b7 | 212 | ex | Elixir | lib/drink/and_parse.ex | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | lib/drink/and_parse.ex | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | lib/drink/and_parse.ex | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule EctoTestDSL.Drink.AndParse do
@moduledoc """
"""
defmacro __using__(_) do
quote do
alias EctoTestDSL.Parse.{Pnode,BuildState,Hooks}
alias EctoTestDSL.Run.Rnode
end
end
end
| 16.307692 | 54 | 0.683962 |
3ff731d4ae3d6fa954dfb5fdf39ee7b6fbc90a0e | 159 | ex | Elixir | lib/wise_homex/models/zip_code.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 2 | 2019-03-14T09:09:14.000Z | 2020-11-25T06:44:46.000Z | lib/wise_homex/models/zip_code.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 139 | 2019-03-14T06:58:55.000Z | 2022-03-29T12:28:09.000Z | lib/wise_homex/models/zip_code.ex | wise-home/wise_homex | 851f13191ed67acb1003888c12f4e6b71800d31b | [
"MIT"
] | 7 | 2021-04-09T13:55:45.000Z | 2021-04-16T15:49:36.000Z | defmodule WiseHomex.ZipCode do
@moduledoc false
use WiseHomex.BaseModel
embedded_schema do
field :city, :string
field :code, :string
end
end
| 14.454545 | 30 | 0.72327 |
3ff7354376ae0692ac1b99118051404112feec2e | 4,091 | exs | Elixir | test/accent/plug/response_test.exs | bournerj/accent | c12691ce754f9ba17b5d433768be4c4f72a99240 | [
"MIT"
] | null | null | null | test/accent/plug/response_test.exs | bournerj/accent | c12691ce754f9ba17b5d433768be4c4f72a99240 | [
"MIT"
] | null | null | null | test/accent/plug/response_test.exs | bournerj/accent | c12691ce754f9ba17b5d433768be4c4f72a99240 | [
"MIT"
] | null | null | null | defmodule Accent.Plug.ResponseTest do
use ExUnit.Case
use Plug.Test
@default_opts [json_codec: Jason]
@opts Accent.Plug.Response.init(json_codec: Jason)
describe "init/1" do
test "sets the \"default_case\" option to the value passed in" do
opts = Accent.Plug.Response.init(@default_opts ++ [defaul... | 33.532787 | 96 | 0.603275 |
3ff752cc4737c6e9d5b89b52b2462d5162765900 | 1,658 | ex | Elixir | lib/auto_api/capabilities/doors_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/doors_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | lib/auto_api/capabilities/doors_capability.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | null | null | null | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 36.844444 | 79 | 0.738842 |
3ff75ee12f53ca38ef5fddef0a0d8e40576f64b6 | 680 | ex | Elixir | test/support/config_provider_stub.ex | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | 4 | 2019-01-30T11:51:44.000Z | 2019-10-14T02:38:26.000Z | test/support/config_provider_stub.ex | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | null | null | null | test/support/config_provider_stub.ex | rodrigues/deli | a5bdb3df6eb2a943069fa2e4658493f90730bd90 | [
"MIT"
] | null | null | null | defmodule ConfigProviderStub do
import TestAgent, only: [get: 1, get: 2]
@moduledoc false
def get_env(:deli, key, default \\ nil) do
if use_application?() do
Application.get_env(:deli, key, default)
else
get({:config, key}, default)
end
end
def put_env(:deli, key, value) do
if u... | 21.25 | 57 | 0.647059 |
3ff77af9a35c66c6f3f3afa3728967ee09109316 | 1,080 | ex | Elixir | elixir/beer-song-alternatives/beer_song_general.ex | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | elixir/beer-song-alternatives/beer_song_general.ex | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | elixir/beer-song-alternatives/beer_song_general.ex | nickbosch/exercism | de81b5ff07bb314160e5a171bedcfca3e7d1e307 | [
"MIT"
] | null | null | null | defmodule BeerSong do
@object_name_singular "piece of cake"
@object_name_plural "pieces of cake"
@location "in the fridge"
@preposition "out"
defp how_many_objects(-1), do: "99 #{@object_name_plural}"
defp how_many_objects(0), do: "no more #{@object_name_plural}"
defp how_many_objects(1), do: "1 #{@objec... | 29.189189 | 83 | 0.646296 |
3ff78533ce9a76e9b344d914405da7b64626613a | 1,166 | exs | Elixir | config/config.exs | jclem/encrypted_field | 29da394f9dfcfa4c3d8efde21d8bddcc4d904d9a | [
"MIT"
] | 6 | 2019-01-26T20:10:11.000Z | 2020-01-19T01:51:59.000Z | config/config.exs | jclem/encrypted_field | 29da394f9dfcfa4c3d8efde21d8bddcc4d904d9a | [
"MIT"
] | null | null | null | config/config.exs | jclem/encrypted_field | 29da394f9dfcfa4c3d8efde21d8bddcc4d904d9a | [
"MIT"
] | 4 | 2019-01-26T19:18:30.000Z | 2019-05-14T03:53:51.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.333333 | 73 | 0.752144 |
3ff789d69e851bdf2cdfa9b7a8899b8804acd5d2 | 3,124 | ex | Elixir | lib/sanbase/internal_services/ethauth.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase/internal_services/ethauth.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase/internal_services/ethauth.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.InternalServices.Ethauth do
use Tesla
require Sanbase.Utils.Config, as: Config
@san_token_decimals Sanbase.SantimentContract.decimals_expanded()
@tesla_opts [adapter: [recv_timeout: 15_000]]
def token_decimals(contract) when is_binary(contract) do
case get(client(), "decimals", query: ... | 35.101124 | 97 | 0.618118 |
3ff7a87f8fa2c0d68836d77dee63c15f714de3c4 | 11,245 | ex | Elixir | lib/acs.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | 2 | 2020-06-18T06:24:24.000Z | 2021-02-21T02:16:37.000Z | lib/acs.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | 45 | 2019-11-21T10:49:14.000Z | 2021-08-02T10:21:01.000Z | lib/acs.ex | naramore/ex_spec | d3e52be6efd43f112f58e33f8488434c34608247 | [
"MIT"
] | null | null | null | defmodule Acs.Improper do
@moduledoc """
A set of utilities for interacting with improper lists.
"""
@doc """
Converts a proper list into an improper list, popping of the tail of the
list and using it as the improper tail of the new improper list.
The given list must have at least 2 elements.
"""
@s... | 26.901914 | 97 | 0.614762 |
3ff7aef64c8141a4d0482a1215ce1a15879b69ad | 3,777 | exs | Elixir | test/open_location_code_test.exs | bryanjos/open_location_code | f7904d0b247a0d7189bfe348e34aa3cf8179be3e | [
"MIT"
] | 4 | 2019-09-19T04:26:48.000Z | 2021-01-30T20:49:04.000Z | test/open_location_code_test.exs | bryanjos/open_location_code | f7904d0b247a0d7189bfe348e34aa3cf8179be3e | [
"MIT"
] | 2 | 2019-09-18T19:02:57.000Z | 2019-10-11T14:39:31.000Z | test/open_location_code_test.exs | bryanjos/open_location_code | f7904d0b247a0d7189bfe348e34aa3cf8179be3e | [
"MIT"
] | 1 | 2019-10-11T02:44:58.000Z | 2019-10-11T02:44:58.000Z | defmodule OpenLocationCodeTest do
use ExUnit.Case, async: true
doctest OpenLocationCode
use ExUnitProperties
test "encoding" do
Path.join([File.cwd() |> elem(1), "test", "test_data", "encoding.csv"])
|> File.read!()
|> String.split("\n", trim: true)
|> Enum.reject(fn
"#" <> _ -> true
... | 33.424779 | 98 | 0.59624 |
3ff7b1097049f70f37c568eb38e732cd4de6c97b | 4,882 | ex | Elixir | lib/mix/tasks/ash_postgres.generate_migrations.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 13 | 2020-09-04T22:31:23.000Z | 2022-02-06T13:24:23.000Z | lib/mix/tasks/ash_postgres.generate_migrations.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 57 | 2019-12-04T15:23:41.000Z | 2022-02-14T22:55:16.000Z | lib/mix/tasks/ash_postgres.generate_migrations.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 15 | 2020-10-22T13:26:25.000Z | 2021-07-26T23:49:42.000Z | defmodule Mix.Tasks.AshPostgres.GenerateMigrations do
@moduledoc """
Generates migrations, and stores a snapshot of your resources.
Options:
* `apis` - a comma separated list of API modules, for which migrations will be generated
* `snapshot-path` - a custom path to store the snapshots, defaults to "priv/re... | 46.495238 | 120 | 0.730029 |
3ff7dda03c8742895d143b0120af214ccc648ddc | 1,063 | ex | Elixir | lib/oli_web/live/common/table/common.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | lib/oli_web/live/common/table/common.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | lib/oli_web/live/common/table/common.ex | ehilfer/oli-torus | c2babe03047bfca2d3fe59ae3b7604597e34001e | [
"MIT"
] | null | null | null | defmodule OliWeb.Common.Table.Common do
alias OliWeb.Common.Table.ColumnSpec
alias Oli.Accounts
alias Oli.Accounts.Author
def sort_date(direction, spec) do
{fn r ->
case Map.get(r, spec.name) do
nil ->
0
d ->
DateTime.to_unix(d)
end
end, directio... | 21.693878 | 86 | 0.627469 |
3ff7df0644427742983d155fd1984f7d50b16cef | 521 | ex | Elixir | lib/absinthe/blueprint/document/source_location.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/blueprint/document/source_location.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/blueprint/document/source_location.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Blueprint.Document.SourceLocation do
@moduledoc false
@enforce_keys [:line]
defstruct line: nil,
column: nil
@type t :: %__MODULE__{
line: integer,
column: nil | integer
}
@doc """
Easily generate a SourceLocation.t give a line and optional colum... | 20.038462 | 69 | 0.62572 |
3ff7df7e461e7cab361c504e653e9168272a7e34 | 1,218 | ex | Elixir | web/channels/user_socket.ex | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | 2 | 2016-07-02T21:53:17.000Z | 2016-07-07T16:35:58.000Z | web/channels/user_socket.ex | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | null | null | null | web/channels/user_socket.ex | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | null | null | null | defmodule LivecodingWorkspace.UserSocket do
use Phoenix.Socket
## Channels
channel "hot_code_update", LivecodingWorkspace.HotCodeUpdateChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client a... | 32.052632 | 92 | 0.71757 |
3ff7ecc0f56ffddf6f384b5637e5487f07a47fcd | 2,305 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_app_profiles_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_app_profiles_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/list_app_profiles_response.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... | 43.490566 | 305 | 0.744469 |
3ff807895c0dc5437a46185d5e23956cff02794f | 5,202 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/crypto_key_version.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/crypto_key_version.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/crypto_key_version.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 59.113636 | 394 | 0.721838 |
3ff81a407a691238b1c8f21e55ddafa34f6dfa3e | 100 | ex | Elixir | lib/bell/repo.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | null | null | null | lib/bell/repo.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | 11 | 2021-03-11T05:46:57.000Z | 2021-12-08T15:39:25.000Z | lib/bell/repo.ex | jwworth/bell | 9b4aeea691d7f8f7dc8cc60f2ff7b19244ada6e4 | [
"MIT"
] | null | null | null | defmodule Bell.Repo do
use Ecto.Repo,
otp_app: :bell,
adapter: Ecto.Adapters.Postgres
end
| 16.666667 | 35 | 0.71 |
3ff8258545d8edc8f51cf4958d496b3a56f74808 | 1,743 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/teardown_tag.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/teardown_tag.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/teardown_tag.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... | 32.886792 | 136 | 0.725186 |
3ff82e21996350e20a1a5751694707dbf2eb8f03 | 819 | exs | Elixir | .formatter.exs | kyle5794/ash_json_api | 461cd745c69e63cf8961523dc0eb91f1d45eca21 | [
"MIT"
] | null | null | null | .formatter.exs | kyle5794/ash_json_api | 461cd745c69e63cf8961523dc0eb91f1d45eca21 | [
"MIT"
] | null | null | null | .formatter.exs | kyle5794/ash_json_api | 461cd745c69e63cf8961523dc0eb91f1d45eca21 | [
"MIT"
] | null | null | null | # THIS FILE IS AUTOGENERATED USING `mix ash.formatter`
# DONT MODIFY IT BY HAND
locals_without_parens = [
authorize?: 1,
base: 1,
delete: 1,
delete: 2,
delete_from_relationship: 2,
delete_from_relationship: 3,
delimeter: 1,
get: 1,
get: 2,
includes: 1,
index: 1,
index: 2,
keys: 1,
log_errors... | 18.2 | 70 | 0.655678 |
3ff8427837296956ab7f72e08c9b1fd907251571 | 5,698 | ex | Elixir | lib/mix/lib/mix/tasks/run.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | 2 | 2020-06-02T18:00:28.000Z | 2021-12-10T03:21:42.000Z | lib/mix/lib/mix/tasks/run.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/run.ex | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Run do
use Mix.Task
@shortdoc "Starts and runs the current application"
@moduledoc """
Starts the current application and runs code.
`mix run` can be used to start the current application dependencies,
the application itself, and optionally run some code in its context.
For long run... | 28.923858 | 88 | 0.607933 |
3ff84a04b89f37eddab1322fc3d21508c71f7f97 | 1,530 | exs | Elixir | mix.exs | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 37 | 2016-11-02T11:51:12.000Z | 2021-07-10T14:05:05.000Z | mix.exs | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 9 | 2016-10-25T20:26:49.000Z | 2018-11-04T09:59:41.000Z | mix.exs | pouyapayandeh/elixir-cassandra | 3fbfa5bbcea722090c564cc0064ff6b27226a9c2 | [
"Apache-2.0"
] | 17 | 2016-10-25T06:12:05.000Z | 2022-03-02T12:45:08.000Z | defmodule Cassandra.Mixfile do
use Mix.Project
def project, do: [
app: :cassandra,
version: version(),
name: "Cassandra",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:elixir_make | Mix.compilers],
test_coverage: [tool: ExCoveral... | 25.081967 | 67 | 0.560784 |
3ff859cf3bd56a6c589677caaa6aba12226e1152 | 11,607 | exs | Elixir | lib/iex/test/iex/helpers_test.exs | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/helpers_test.exs | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/helpers_test.exs | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule IEx.HelpersTest do
use IEx.Case
import IEx.Helpers
@doc """
Test function 1
"""
def test_fun_1, do: :ok
@doc """
Test function 2
"""
def test_fun_1(arg), do: arg
test "clear helper" do
assert "\e[H\e[2J" == capture_iex("clear")
e... | 27.055944 | 114 | 0.609718 |
3ff87cc36f9fbac5a08228dd41240eafd7367c73 | 2,068 | ex | Elixir | apps/local_ledger/lib/local_ledger/wallet.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/lib/local_ledger/wallet.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger/lib/local_ledger/wallet.ex | enyan94/ewallet | e938e686319867d133b21cd0eb5496e213ae7620 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 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 ... | 28.722222 | 81 | 0.695841 |
3ff88e3df9b1ef205197a8e68049ee8c5027fb3e | 406 | ex | Elixir | web/views/organization_github_app_installation_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/views/organization_github_app_installation_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | web/views/organization_github_app_installation_view.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | null | null | null | defmodule CodeCorps.OrganizationGithubAppInstallationView do
use CodeCorps.PreloadHelpers, default_preloads: [:github_app_installation, :organization]
use CodeCorps.Web, :view
use JaSerializer.PhoenixView
attributes [:inserted_at, :updated_at]
has_one :github_app_installation, serializer: CodeCorps.GithubAp... | 36.909091 | 91 | 0.839901 |
3ff896741773d731c8a7c39cc2563b1777ae675a | 1,747 | exs | Elixir | mix.exs | hippware/eventually | 7ed002cd38345acf591695665ba7a8ee45c84ca9 | [
"MIT"
] | 8 | 2019-09-01T10:07:23.000Z | 2021-08-23T12:38:57.000Z | mix.exs | hippware/eventually | 7ed002cd38345acf591695665ba7a8ee45c84ca9 | [
"MIT"
] | 2 | 2019-04-06T00:01:27.000Z | 2019-04-15T22:41:21.000Z | mix.exs | hippware/eventually | 7ed002cd38345acf591695665ba7a8ee45c84ca9 | [
"MIT"
] | null | null | null | defmodule Eventually.MixProject do
use Mix.Project
@version "1.1.0"
def project do
[
app: :eventually,
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
description: description(),
t... | 22.986842 | 70 | 0.556955 |
3ff8a83b2ba1ffa75fb46decb75579b101ee890d | 861 | ex | Elixir | lib/my104job_crawler/job.ex | masato25/my104job_crawler | 6a11f988f30cd9ec8d43d143e7bbc5c333113c38 | [
"Apache-2.0"
] | null | null | null | lib/my104job_crawler/job.ex | masato25/my104job_crawler | 6a11f988f30cd9ec8d43d143e7bbc5c333113c38 | [
"Apache-2.0"
] | null | null | null | lib/my104job_crawler/job.ex | masato25/my104job_crawler | 6a11f988f30cd9ec8d43d143e7bbc5c333113c38 | [
"Apache-2.0"
] | null | null | null | defmodule My104jobCrawler.Job do
use Ecto.Model
import Ecto.Changeset
import Ecto.Queryable
schema "jobs" do
field :company_name, :string
field :job_name, :string
field :area, :string
field :create_at, Ecto.Date
field :sal_low, :integer
field :sal_high, :integer
field :welfare, :s... | 23.916667 | 96 | 0.691057 |
3ff8bc55a521ee495dcb41280f682dec93a4dda9 | 1,697 | ex | Elixir | lib/k8s/discovery.ex | thephw/k8s | a4d157ad0191ac49b27ec9197f342d8d4d33e52a | [
"MIT"
] | 226 | 2019-02-03T00:49:32.000Z | 2022-03-30T15:02:22.000Z | lib/k8s/discovery.ex | thephw/k8s | a4d157ad0191ac49b27ec9197f342d8d4d33e52a | [
"MIT"
] | 109 | 2019-01-20T20:39:33.000Z | 2022-03-31T20:21:34.000Z | lib/k8s/discovery.ex | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | 43 | 2019-02-07T01:18:31.000Z | 2022-03-08T04:15:33.000Z | defmodule K8s.Discovery do
@moduledoc "Kubernetes API Discovery"
alias K8s.{Conn, Operation}
@behaviour K8s.Discovery.Driver
@impl true
@doc "Kubernetes API Resources supported by the cluster."
def resources(api_version, %K8s.Conn{discovery_driver: driver} = conn, opts \\ []) do
driver.resources(api_v... | 35.354167 | 105 | 0.672952 |
3ff8dc28dae46e7e5df9a1a9c7d5e918370dcfbe | 260 | exs | Elixir | config/test.exs | andyl/rfxi | 9007c75693d643555c45a20e9634dd4b3867deba | [
"MIT"
] | 1 | 2021-08-10T14:46:10.000Z | 2021-08-10T14:46:10.000Z | config/test.exs | andyl/rfxi | 9007c75693d643555c45a20e9634dd4b3867deba | [
"MIT"
] | 2 | 2021-06-22T14:12:37.000Z | 2021-06-28T05:06:23.000Z | config/test.exs | andyl/rfxi | 9007c75693d643555c45a20e9634dd4b3867deba | [
"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 :rfxi, RfxiWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 23.636364 | 56 | 0.730769 |
3ff90644ea0ad747f567700e7f65723b9260e5d2 | 19,201 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/provider_auth/wallet_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/provider_auth/wallet_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/provider_auth/wallet_controller_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.ProviderAuth.WalletControllerTest do
use AdminAPI.ConnCase, async: true
alias EWallet.Web.V1.UserSerializer
alias EWallet.Web.Date
alias EWalletDB.{Repo, Wallet, Account, User, Token, AccountUser}
describe "/wallet.all" do
test "returns a list of wallets and pagination data" do
... | 34.226381 | 96 | 0.540597 |
3ff9084ecd342558a776433bc09f9e46992b62ff | 1,759 | ex | Elixir | clients/my_business_verifications/lib/google_api/my_business_verifications/v1/model/generate_verification_token_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/my_business_verifications/lib/google_api/my_business_verifications/v1/model/generate_verification_token_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/my_business_verifications/lib/google_api/my_business_verifications/v1/model/generate_verification_token_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.826923 | 152 | 0.765776 |
3ff90ff37548f987af4a385bb2f22a7c64b8dc2f | 982 | ex | Elixir | basic/Bitwise.ex | sylviot/algoritmo | f553c0345bb82b0bed28904f906e5833006a8045 | [
"MIT"
] | 2 | 2016-04-27T16:39:32.000Z | 2016-04-27T17:06:33.000Z | basic/Bitwise.ex | sylviot/algoritmo | f553c0345bb82b0bed28904f906e5833006a8045 | [
"MIT"
] | null | null | null | basic/Bitwise.ex | sylviot/algoritmo | f553c0345bb82b0bed28904f906e5833006a8045 | [
"MIT"
] | 1 | 2016-04-27T17:06:42.000Z | 2016-04-27T17:06:42.000Z | defmodule Bitwise do
# Para usar o bitwise
use Bitwise
def main do
n = 31
"""
0001 1111 (31 base 2)
<<< (move 1 bit)
---------
0011 1110 (62 base 2)
"""
IO.puts n <<< 1
"""
0001 1111 (31 base 2)
>>> (remove 1 bit)
---------
0000 1111 (15 base 2)
... | 15.587302 | 45 | 0.412424 |
3ff9813c29f119663d3fc14dfef7d3bd21dfb24e | 266 | exs | Elixir | test/books_web/views/layout_view_test.exs | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | test/books_web/views/layout_view_test.exs | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | test/books_web/views/layout_view_test.exs | nickagliano/books | eec595ed4add9d678278785d9ab10106e1e426d1 | [
"MIT"
] | null | null | null | defmodule BooksWeb.LayoutViewTest do
use BooksWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 29.555556 | 65 | 0.763158 |
3ff9935df2536f7e4fe4a6054749507ce7d7b09e | 6,535 | ex | Elixir | lib/webbkoll_web/controllers/site_controller.ex | bfg1981/webbkoll | ec7c6167e46fe1e27f01f5d98f3daa068af40f63 | [
"MIT"
] | 1 | 2020-03-06T15:39:43.000Z | 2020-03-06T15:39:43.000Z | lib/webbkoll_web/controllers/site_controller.ex | bfg1981/webbkoll | ec7c6167e46fe1e27f01f5d98f3daa068af40f63 | [
"MIT"
] | null | null | null | lib/webbkoll_web/controllers/site_controller.ex | bfg1981/webbkoll | ec7c6167e46fe1e27f01f5d98f3daa068af40f63 | [
"MIT"
] | null | null | null | defmodule WebbkollWeb.SiteController do
use WebbkollWeb, :controller
alias Webbkoll.Sites
@backends Application.get_env(:webbkoll, :backends)
@rate_limit_client Application.get_env(:webbkoll, :rate_limit_client)
@rate_limit_host Application.get_env(:webbkoll, :rate_limit_host)
@validate_urls Application.ge... | 27.343096 | 96 | 0.621882 |
3ff9f7bc61b27014ff9dae28bd133976e70a8361 | 764 | exs | Elixir | mix.exs | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 65 | 2020-07-07T01:51:27.000Z | 2021-09-27T00:13:59.000Z | mix.exs | Cinderella-Man/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 5 | 2021-02-12T08:21:15.000Z | 2021-09-01T21:17:27.000Z | mix.exs | frathon/hedgehog | 3ed1469919ba819280709a8f26def761003a99df | [
"Unlicense"
] | 10 | 2020-08-13T13:39:31.000Z | 2021-09-14T12:46:51.000Z | defmodule Hedgehog.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
consolidate_protocols: Mix.env() == :prod
]
end
defp aliases do
[
setup: [
... | 19.589744 | 59 | 0.566754 |
3ff9fca2827d0ef24a2f81cf457aa98cf89cd23b | 1,452 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/create_sheets_chart_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/create_sheets_chart_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/slides/lib/google_api/slides/v1/model/create_sheets_chart_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.893617 | 93 | 0.741736 |
3ffa0fa3c9d597e7144e97ea83f2524687b4ea50 | 325 | ex | Elixir | lib/elmverse_web/controllers/index_controller.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | null | null | null | lib/elmverse_web/controllers/index_controller.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | 3 | 2021-03-09T01:27:03.000Z | 2022-02-10T17:08:49.000Z | lib/elmverse_web/controllers/index_controller.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | null | null | null | defmodule ElmverseWeb.IndexController do
use ElmverseWeb, :controller
alias Elmverse.Repository.Summary
def index(conn, _params) do
repositories =
with {:ok, repos} <- Summary.list() do
repos
else
_ -> []
end
render(conn, "index.html", repositories: repositories)
end... | 19.117647 | 58 | 0.646154 |
3ffa6ff8fd016dc883e1bbb83b089e0589ccdaf1 | 2,015 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/rule.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/rule.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/rule.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.018868 | 224 | 0.720596 |
3ffa7020943a2bf004b806794bfc20a9a23571a5 | 2,396 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/update_database_ddl_metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/update_database_ddl_metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/update_database_ddl_metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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... | 42.785714 | 252 | 0.724958 |
3ffa9db0b73ae67666c0f7b2c2996bfeb79cef5c | 492 | exs | Elixir | 2016/day05/test/day05/hash_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day05/test/day05/hash_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day05/test/day05/hash_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | defmodule Day05.HashTest do
use ExUnit.Case
alias Day05.Hash
test "computes the hash correctly" do
hash = Hash.hash("abc", 123) |> Base.encode16 |> String.downcase
assert hash == "e99a18c428cb38d5f260853678922e03"
end
test "determines whether a hash is interesting" do
assert Hash.interesting?(<... | 27.333333 | 68 | 0.656504 |
3ffb0777c61cb18ce386ea541227fb6f7a7497ed | 775 | ex | Elixir | lib/common_graphql_client/schema.ex | wingcon/common_graphql_client | 6a603902bac154c1a7dad13fe69455f430893077 | [
"MIT"
] | 37 | 2018-07-13T20:55:09.000Z | 2022-01-27T08:23:55.000Z | lib/common_graphql_client/schema.ex | wingcon/common_graphql_client | 6a603902bac154c1a7dad13fe69455f430893077 | [
"MIT"
] | 12 | 2018-07-12T23:01:38.000Z | 2021-10-19T10:27:48.000Z | lib/common_graphql_client/schema.ex | wingcon/common_graphql_client | 6a603902bac154c1a7dad13fe69455f430893077 | [
"MIT"
] | 8 | 2018-10-05T05:33:23.000Z | 2021-09-08T23:35:56.000Z | defmodule CommonGraphQLClient.Schema do
@moduledoc """
This module defines the behavior a `schema` must implement in order
to be accessible through the native callers of this package.
This module adds extendability to this package. By using this module
and defining certain callbacks, a new set of resource ca... | 26.724138 | 74 | 0.727742 |
3ffb23cb4008db8c50fd41eca2dfc4d16e15bb55 | 2,640 | exs | Elixir | test/pow/extension/phoenix/router_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | 1 | 2021-06-25T10:36:01.000Z | 2021-06-25T10:36:01.000Z | test/pow/extension/phoenix/router_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | test/pow/extension/phoenix/router_test.exs | thejones/pow | 217d3d915ce6832a5b138535a54fa2c39b2d9be5 | [
"MIT"
] | null | null | null | defmodule Pow.Extension.Phoenix.RouterTest do
# Implementation needed for `Pow.Extension.Base.has?/2` check
defmodule ExtensionMock do
use Pow.Extension.Base
@impl true
def phoenix_router?(), do: true
end
defmodule ExtensionMock.Phoenix.Router do
use Pow.Extension.Phoenix.Router.Base
alia... | 30.344828 | 128 | 0.694318 |
3ffb5d3e16e5b5626ac99136ac54d8f5aa4f4cbc | 116 | ex | Elixir | testData/org/elixir_lang/code_insight/completion/contributor/call_definition_clause/private_macro_usage.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/code_insight/completion/contributor/call_definition_clause/private_macro_usage.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/code_insight/completion/contributor/call_definition_clause/private_macro_usage.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | defmodule Prefix.PrivateMacroUsage do
alias Prefix.PrivateMacroDeclaration
PrivateMacroDeclaration.<caret>
end
| 19.333333 | 38 | 0.853448 |
3ffb883c0ebb579ccb5b6a704da23957039c1723 | 311 | exs | Elixir | config/test.exs | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | config/test.exs | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | config/test.exs | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :conv_claim, ConvClaimWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
config :bypass, enable_debug_log: true
| 23.923077 | 56 | 0.749196 |
3ffbca81524a99847b16344f529c97a7f4f1af06 | 519 | ex | Elixir | apps/fc_tesla/lib/fc_tesla/base.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/fc_tesla/lib/fc_tesla/base.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/fc_tesla/lib/fc_tesla/base.ex | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FcTesla.Base do
@moduledoc """
Documentation for `FcTesla`.
"""
use Tesla
plug Tesla.Middleware.FollowRedirects
def fc_post(url, opt \\ []) do
case post(url, opt) do
{:ok, response} -> response
error -> error
end
end
def fc_get(url, opt \\ []) do
case get(url, opt) ... | 16.21875 | 46 | 0.601156 |
3ffbcbdf2d1b547bfaf03b88f22e57575af066e7 | 713 | ex | Elixir | elixir/lib/astrum/domains/relic/create.ex | explore-astrum/astrum | 868fa6d28e1c44d0a99a72edc7f6b5b7d818da07 | [
"MIT"
] | 2 | 2019-01-21T17:49:19.000Z | 2019-06-20T03:01:06.000Z | elixir/lib/astrum/domains/relic/create.ex | explore-astrum/astrum | 868fa6d28e1c44d0a99a72edc7f6b5b7d818da07 | [
"MIT"
] | 1 | 2022-01-27T16:05:47.000Z | 2022-01-27T16:05:47.000Z | elixir/lib/astrum/domains/relic/create.ex | explore-astrum/astrum | 868fa6d28e1c44d0a99a72edc7f6b5b7d818da07 | [
"MIT"
] | null | null | null | alias Astrum.Relic
alias Kora.Mutation
defmodule Astrum.Relic.Create do
use Kora.Interceptor
def before_mutation(["relic:info", relic], %{merge: %{"key" => _}}, _mut, _user) do
{type, _} = Relic.key_decode(relic)
{:combine,
Mutation.new()
|> Mutation.merge(["relic:info", relic], %{
"crea... | 25.464286 | 85 | 0.612903 |
3ffbd60ebe2b716608040919c52887203ffc137a | 229 | exs | Elixir | mix.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | mix.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | mix.exs | joaop21/hermes | 2e274221ef8365edec847307231c134921db0270 | [
"Apache-2.0"
] | null | null | null | defmodule Hermes.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
defp deps do
[]
end
end
| 13.470588 | 42 | 0.554585 |
3ffbec02e7a2cae9f155d94db3218020aca052d8 | 150 | ex | Elixir | elixir/lib/foobar.ex | bendiken/templates | 7ff9c308dd4d6804e289955d764ddaa6ccc9a451 | [
"Unlicense"
] | 3 | 2015-11-01T20:34:52.000Z | 2016-07-18T16:05:03.000Z | elixir/lib/foobar.ex | bendiken/templates | 7ff9c308dd4d6804e289955d764ddaa6ccc9a451 | [
"Unlicense"
] | null | null | null | elixir/lib/foobar.ex | bendiken/templates | 7ff9c308dd4d6804e289955d764ddaa6ccc9a451 | [
"Unlicense"
] | null | null | null | # This is free and unencumbered software released into the public domain.
defmodule Foobar do
@moduledoc """
Documentation for Foobar.
"""
end
| 18.75 | 73 | 0.74 |
3ffbfda2aafee0882fe8a47daf1b53d0b7eb119e | 147 | ex | Elixir | examples/lwm 59 - Using Dependencies in our Own Project/dep_project/lib/json_convert.ex | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 38 | 2018-12-31T10:51:42.000Z | 2022-03-25T18:18:10.000Z | examples/lwm 59 - Using Dependencies in our Own Project/dep_project/lib/json_convert.ex | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | null | null | null | examples/lwm 59 - Using Dependencies in our Own Project/dep_project/lib/json_convert.ex | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 6 | 2019-08-19T03:21:36.000Z | 2021-07-16T09:34:49.000Z | defmodule JsonConvert do
def convert_to_json(data) do
Poison.encode(data)
end
def parse_json(json) do
Poison.decode(json)
end
end
| 14.7 | 30 | 0.721088 |
3ffc25b6c6a35e2b1f0eae273ad81bceaeddcabf | 2,802 | ex | Elixir | deps/phoenix_html/lib/phoenix_html/safe.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | 2 | 2017-06-08T23:28:13.000Z | 2017-06-08T23:28:16.000Z | deps/phoenix_html/lib/phoenix_html/safe.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix_html/lib/phoenix_html/safe.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defprotocol Phoenix.HTML.Safe do
@moduledoc """
Defines the HTML safe protocol.
In order to promote HTML safety, Phoenix templates
do not use `Kernel.to_string/1` to convert data types to
strings in templates. Instead, Phoenix uses this
protocol which must be implemented by data structures
and guarantee ... | 26.942308 | 118 | 0.713419 |
3ffc33c20061f4f1d6599cfc2da0904a8d8cfd9e | 3,873 | ex | Elixir | lib/guardian/plug/verify_cookie.ex | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | null | null | null | lib/guardian/plug/verify_cookie.ex | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | null | null | null | lib/guardian/plug/verify_cookie.ex | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule Guardian.Plug.VerifyCookie do
@moduledoc """
Looks for and validates a token found in the request cookies.
In the case where:
a. The cookies are not loaded
b. A token is already found for `:key`
This plug will not do anything.
This, like all ot... | 36.196262 | 120 | 0.658146 |
3ffc4b5b5a2af7ff4fb807bd69d8bca66ad16677 | 588 | ex | Elixir | lib/console/multi_buys/multi_buy_resolver.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console/multi_buys/multi_buy_resolver.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console/multi_buys/multi_buy_resolver.ex | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.MultiBuys.MultiBuyResolver do
alias Console.Repo
alias Console.MultiBuys.MultiBuy
import Ecto.Query
def all(_, %{context: %{current_organization: current_organization}}) do
multi_buys = MultiBuy
|> where([a], a.organization_id == ^current_organization.id)
|> Repo.all()
{:... | 26.727273 | 83 | 0.673469 |
3ffc5d06cdf411272e528cfe76b74bbe03ff4504 | 7,228 | ex | Elixir | lib/infusionsoft/endpoints/xml/email.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | null | null | null | lib/infusionsoft/endpoints/xml/email.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | 2 | 2019-01-30T20:57:48.000Z | 2019-03-25T17:29:16.000Z | lib/infusionsoft/endpoints/xml/email.ex | damonvjanis/infusionsoft | 1d70f30a81136506c291820a32295a9c81168302 | [
"MIT"
] | null | null | null | defmodule Infusionsoft.Endpoints.XML.Email do
@moduledoc """
Provides the raw endpoints to Infusionsoft's XML API for Email actions.
"""
alias Infusionsoft.Endpoints.XML.Helpers
@doc "https://developer.infusionsoft.com/docs/xml-rpc/#email-opt-in-an-email-address"
@spec opt_in_an_email_address(String.t(), S... | 30.888889 | 95 | 0.587576 |
3ffc74f90e9daab8f3eb675e2f18f106e1b7f5c0 | 2,202 | exs | Elixir | test/aeacus/authenticator_test.exs | MainShayne233/aeacus | b91685a051f1b03de6d061eec4a720bcbf613638 | [
"BSD-3-Clause"
] | 42 | 2015-07-05T12:20:04.000Z | 2022-02-20T23:38:16.000Z | test/aeacus/authenticator_test.exs | MainShayne233/aeacus | b91685a051f1b03de6d061eec4a720bcbf613638 | [
"BSD-3-Clause"
] | 1 | 2015-07-06T19:48:00.000Z | 2015-07-06T20:54:03.000Z | test/aeacus/authenticator_test.exs | MainShayne233/aeacus | b91685a051f1b03de6d061eec4a720bcbf613638 | [
"BSD-3-Clause"
] | 5 | 2016-02-13T05:13:46.000Z | 2022-01-23T00:45:44.000Z | defmodule Aeacus.AuthenticatorTest do
use ExUnit.Case
use Aeacus.Test.Helper
setup tags do
unless tags[:async] do
Ecto.Adapters.SQL.restart_test_transaction(Repo, [])
end
:ok
end
test "authenticate with app config" do
assert_ok Authenticator.authenticate %{identity: @email, password: ... | 31.457143 | 98 | 0.714805 |
3ffcbbe97af363fdcee0e1a65348092462bffe3f | 2,705 | ex | Elixir | lib/ex_unit_span/track.ex | ananthakumaran/ex_unit_span | 5472768a44b577c4ab1da5b5170a42a18086a6ea | [
"MIT"
] | 17 | 2022-01-09T06:58:40.000Z | 2022-01-28T22:07:58.000Z | lib/ex_unit_span/track.ex | ananthakumaran/ex_unit_span | 5472768a44b577c4ab1da5b5170a42a18086a6ea | [
"MIT"
] | null | null | null | lib/ex_unit_span/track.ex | ananthakumaran/ex_unit_span | 5472768a44b577c4ab1da5b5170a42a18086a6ea | [
"MIT"
] | null | null | null | defmodule ExUnitSpan.Track do
@moduledoc false
defstruct [:lanes, :free_lanes, :started_at]
def from_events(events) do
Enum.reduce(events, %__MODULE__{}, fn event, track -> build(track, event) end)
end
defp build(%__MODULE__{}, {ts, {:suite_started, _}}) do
%__MODULE__{lanes: %{}, free_lanes: %{}, ... | 31.453488 | 87 | 0.608133 |
3ffcc1fec3eb983c199d643a0db649e2a8b1b968 | 2,195 | ex | Elixir | lib/ark_tbw_delegate_server/delegate.ex | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"MIT"
] | null | null | null | lib/ark_tbw_delegate_server/delegate.ex | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"MIT"
] | null | null | null | lib/ark_tbw_delegate_server/delegate.ex | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"MIT"
] | null | null | null | defmodule ArkTbwDelegateServer.Delegate do
alias ArkElixir.Models.Block
alias ArkTbwDelegateServer.Cache
import ArkTbwDelegateServer.Utils
@limit 100
def display(%{
delegate: %{
address: address,
missedblocks: missed,
producedblocks: produced,
productivity: productivity,
u... | 22.628866 | 80 | 0.621412 |
3ffcc2c3d5fda69a27869ca6fdc2113e7ed741b1 | 996 | ex | Elixir | apps/service_receive/lib/receive/accept/store.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | apps/service_receive/lib/receive/accept/store.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | apps/service_receive/lib/receive/accept/store.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | defmodule Receive.Accept.Store do
@instance Receive.Application.instance()
@collection "accepts"
import Definition, only: [identifier: 1, identifier: 2]
@spec collection() :: String.t()
def collection(), do: @collection
@spec persist(Accept.t()) :: :ok
def persist(accept) do
Brook.ViewState.merge(@... | 29.294118 | 81 | 0.663655 |
3ffcd15073a13d45b9035caf11a2c887d1e7f2b7 | 3,856 | ex | Elixir | lib/semver.ex | lee-dohm/semver | afc6fc1f5609b631920230c2bca009df84d5a726 | [
"MIT"
] | 3 | 2016-01-15T08:15:48.000Z | 2016-12-02T20:02:52.000Z | lib/semver.ex | lee-dohm/semver | afc6fc1f5609b631920230c2bca009df84d5a726 | [
"MIT"
] | null | null | null | lib/semver.ex | lee-dohm/semver | afc6fc1f5609b631920230c2bca009df84d5a726 | [
"MIT"
] | null | null | null | defmodule Semver do
@moduledoc """
Utilities for working with [semver.org](http://semver.org)-compliant version strings.
"""
@vsn File.read!("VERSION") |> String.strip
@pattern ~r"""
^v?
(?<major>0|[1-9]\d*)\.
(?<minor>0|[1-9]\d*)\.
(?<patch>0|[1-9]\d*)
... | 29.891473 | 111 | 0.612811 |
3ffce31c9322def1a825f40df297f37588eea96c | 320 | ex | Elixir | lib/mockin.ex | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | lib/mockin.ex | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | lib/mockin.ex | victor-mesquita/mockin-api | 31efb457067b0b1cf8878eccc87480e009934fc9 | [
"MIT"
] | null | null | null | defmodule Mockin do
@moduledoc """
Mockin keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
{Phoenix.PubSub, [name: Mockin.PubSub, adapter: Phoenix.PubSub.PG2]}
end
| 29.090909 | 70 | 0.746875 |
3ffce37af88a40f90db8169ecf48add41094ac80 | 213 | ex | Elixir | lib/real_world/accounts/encryption.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | 1 | 2019-09-28T05:50:46.000Z | 2019-09-28T05:50:46.000Z | lib/real_world/accounts/encryption.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | lib/real_world/accounts/encryption.ex | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | defmodule RealWorld.Accounts.Encryption do
alias Comeonin.Bcrypt
def password_hashing(password), do: Bcrypt.hashpwsalt password
def validate_password(password, hash), do: Bcrypt.checkpw password, hash
end
| 26.625 | 74 | 0.807512 |
3ffce75676980d4ab753cbea45f3b763971c088f | 7,933 | exs | Elixir | test/controllers/user_controller_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | test/controllers/user_controller_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | 22 | 2017-05-15T07:34:08.000Z | 2018-02-25T07:26:18.000Z | test/controllers/user_controller_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | defmodule Bibliotheca.UserControllerTest do
use Bibliotheca.ConnCase, async: true
alias Bibliotheca.{Repo, User}
alias Bibliotheca.Auth.HMAC
@user1 @user
describe "index/2" do
test "by normal user.", %{conn: conn} do
email2 = "user2@examile.com"
user2 = %User{
@user1
| id: ... | 28.332143 | 94 | 0.518845 |
3ffcf1fc1dc363eb2d17aa354f5dbd2b7c678605 | 1,147 | exs | Elixir | mix.exs | wardes/simon_system_rpi3 | 836c77b2bbe90f74b8c81cda52adb9a52a7bbbcc | [
"Apache-2.0"
] | null | null | null | mix.exs | wardes/simon_system_rpi3 | 836c77b2bbe90f74b8c81cda52adb9a52a7bbbcc | [
"Apache-2.0"
] | null | null | null | mix.exs | wardes/simon_system_rpi3 | 836c77b2bbe90f74b8c81cda52adb9a52a7bbbcc | [
"Apache-2.0"
] | null | null | null | defmodule NervesSystemRpi3.Mixfile do
use Mix.Project
@version Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
def project do
[app: :nerves_system_rpi3,
version: @version,
elixir: "~> 1.3",
compilers: Mix.compilers ++ [:nerves_package],
description: description(),
... | 27.309524 | 197 | 0.629468 |
3ffd071fea616d976f2f45b7164ebaee46658663 | 426 | ex | Elixir | lib/erlef_web/controllers/admin/events_controller.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/admin/events_controller.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/admin/events_controller.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.Admin.EventController do
use ErlefWeb, :controller
action_fallback ErlefWeb.FallbackController
alias Erlef.{Event, Posts}
def index(conn, _params) do
render(conn,
gcal_api_key: System.get_env("GCAL_API_KEY"),
gcal_id: System.get_env("GCAL_ID")
)
end
def show(conn, %... | 22.421053 | 51 | 0.685446 |
3ffd0830a2dd0511745f064fe200e0e3aca9ff91 | 1,187 | exs | Elixir | ex/apps/corals/test/specs/user_opts_test.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/corals/test/specs/user_opts_test.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/corals/test/specs/user_opts_test.exs | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | defmodule UserOptsTest do
use ExUnit.Case, async: true
import Corals.Resolver
test "passthru" do
user_opts = %{hello: :world}
assert %{} |> resolve([], user_opts) == %{hello: :world}
end
test "use" do
user_opts = %{name: :neo}
rules = [hello: fn %{name: name} -> name end]
assert %{} |> ... | 24.729167 | 73 | 0.558551 |
3ffd323a91e89a5a0f4bf684047ff5aa8b7b4308 | 482 | ex | Elixir | lib/hex/http/certs.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | lib/hex/http/certs.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | lib/hex/http/certs.ex | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Hex.HTTP.Certs do
@moduledoc false
crt_file = Path.join(__DIR__, "ca-bundle.crt")
crt = File.read!(crt_file)
pems = :public_key.pem_decode(crt)
ders = Enum.map(pems, fn {:Certificate, der, _} -> der end)
@der_encoded ders
@external_resource crt_file
def cacerts do
@der_encoded
end
... | 20.956522 | 61 | 0.676349 |
3ffd405b44d61496726f28333f2293d6c5339a07 | 1,474 | ex | Elixir | apps/omg_status/lib/omg_status/configuration.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_status/lib/omg_status/configuration.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_status/lib/omg_status/configuration.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 30.708333 | 74 | 0.738128 |
3ffd56c5649b4bb1877cbf1e4bc4476f2b3b676b | 6,864 | exs | Elixir | lib/elixir/test/elixir/kernel/cli_test.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/cli_test.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/cli_test.exs | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
import PathHelpers
defmodule Kernel.CLI.ARGVTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
defp run(argv) do
{config, argv} = Kernel.CLI.parse_argv(argv)
assert Kernel.CLI.process_commands(config) == []
argv
end
test "argv handling... | 35.564767 | 126 | 0.660839 |
3ffd5dc86b50fe55534ffff18c327134879dd01a | 2,881 | exs | Elixir | test/integration/pdfa_generation_test.exs | resterle/chromic_pdf | 58cf474f6ac60bebb205b382d4febd3ff2430247 | [
"Apache-2.0"
] | 177 | 2020-02-28T13:37:23.000Z | 2022-03-25T13:37:46.000Z | test/integration/pdfa_generation_test.exs | resterle/chromic_pdf | 58cf474f6ac60bebb205b382d4febd3ff2430247 | [
"Apache-2.0"
] | 46 | 2020-02-28T11:31:41.000Z | 2022-03-31T14:49:26.000Z | test/integration/pdfa_generation_test.exs | resterle/chromic_pdf | 58cf474f6ac60bebb205b382d4febd3ff2430247 | [
"Apache-2.0"
] | 14 | 2020-07-09T02:09:34.000Z | 2022-03-25T13:37:48.000Z | defmodule ChromicPDF.PDFAGenerationTest do
use ExUnit.Case, async: false
import ChromicPDF.Utils, only: [system_cmd!: 2]
@test_html Path.expand("../fixtures/test.html", __ENV__.file)
setup do
{:ok, _pid} = start_supervised(ChromicPDF)
:ok
end
describe "PDF/A conversion" do
defp print_to_pdfa(... | 32.370787 | 90 | 0.61194 |
3ffda3ddcfe4919e009a068bc40db963bba0bb24 | 309 | ex | Elixir | apps/info_sys/lib/info_sys/supervisor.ex | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | apps/info_sys/lib/info_sys/supervisor.ex | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | apps/info_sys/lib/info_sys/supervisor.ex | Krustee/rumbrella | 252ee46da0c563680f8dddb381523ab7a75069fe | [
"MIT"
] | null | null | null | defmodule InfoSys.Supervisor do
use Supervisor
def start_link() do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init(_opts) do
children = [
worker(Rumbl.InfoSys, [], restart: :temporary)
]
supervise children, strategy: :simple_one_for_one
end
end
| 19.3125 | 59 | 0.673139 |
3ffdb746fb74e0300667db54bdc8142742ec7361 | 1,795 | ex | Elixir | test/support/generators.ex | dmitriid/panpipe | c93a189dd8aa40a3cef4d9fac5830268682df9eb | [
"MIT"
] | 24 | 2019-08-19T02:53:06.000Z | 2022-03-13T14:41:08.000Z | test/support/generators.ex | dmitriid/panpipe | c93a189dd8aa40a3cef4d9fac5830268682df9eb | [
"MIT"
] | 4 | 2020-04-02T02:05:52.000Z | 2022-03-18T00:56:23.000Z | test/support/generators.ex | dmitriid/panpipe | c93a189dd8aa40a3cef4d9fac5830268682df9eb | [
"MIT"
] | 2 | 2019-10-28T15:38:47.000Z | 2021-03-24T17:43:27.000Z | defmodule Panpipe.Generators do
alias Panpipe.AST
def ast_node do
end
def ast_node(:inline) do
[:str] # TODO: add more ...
|> Enum.map(&ast_node/1)
|> StreamData.one_of()
end
def ast_node(:plain) do
gen_node AST.Plain, %{
children: :children
}
end
def ast_node(:header) do
... | 19.095745 | 68 | 0.597772 |
3ffdc0a402632ec4b6639136efab49b8f93edfd6 | 561 | ex | Elixir | lib/four_lucha/resource/concept.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | 1 | 2021-02-21T19:15:27.000Z | 2021-02-21T19:15:27.000Z | lib/four_lucha/resource/concept.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | lib/four_lucha/resource/concept.ex | Thomas-Jean/four_lucha | 591627059c02edc3315b5cac2c35eacb821108ff | [
"Apache-2.0"
] | null | null | null | defmodule FourLucha.Resource.Concept do
@moduledoc false
defstruct(
aliases: nil,
api_detail_url: nil,
characters: nil,
concepts: nil,
date_added: nil,
date_last_updated: nil,
deck: nil,
description: nil,
first_appeared_in_franchise: nil,
first_appeared_in_game: nil,
fran... | 19.344828 | 39 | 0.639929 |
3ffde5be00dbd4f5369b0afd6d1733f097b56e4f | 2,171 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/region_autoscaler_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_autoscaler_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_autoscaler_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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.203704 | 194 | 0.72363 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.